@everymatrix/cashier-method-details 1.85.17 → 1.85.19

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 (28) hide show
  1. package/components/{CashierError-DHPOZnyt.js → CashierError-BhvXibYp.js} +1133 -1109
  2. package/components/CashierError-D1eXSPCU.cjs +8 -0
  3. package/components/{CashierError-CUmHm-N_.js → CashierError-a_fg14Ao.js} +1048 -1024
  4. package/components/CashierMethodDetails-C2BAJBTY.cjs +100 -0
  5. package/components/CashierMethodDetails-CVXOiLWJ.js +10762 -0
  6. package/components/CashierMethodDetails-VJp42yMX.js +10720 -0
  7. package/components/CashierModal-Cebv8Eg_.js +358 -0
  8. package/components/CashierModal-CyMyw8WK.js +342 -0
  9. package/components/CashierModal-D28LMEeL.cjs +1 -0
  10. package/components/{CashierNotifications-Dm98E5vd.cjs → CashierNotifications-B4KaGVBQ.cjs} +1 -1
  11. package/components/{CashierNotifications-DU9GNF3t.js → CashierNotifications-BRaNYGz7.js} +19 -19
  12. package/components/{CashierNotifications-DeY6s2of.js → CashierNotifications-CUXgbtIZ.js} +17 -17
  13. package/components/CashierReceiptPage-BMVJK-t4.js +1840 -0
  14. package/components/{CashierReceiptPage-Dl8xh9yu.js → CashierReceiptPage-CnBjTPDD.js} +860 -715
  15. package/components/CashierReceiptPage-isL4z11i.cjs +26 -0
  16. package/es2015/cashier-method-details.cjs +1 -1
  17. package/es2015/cashier-method-details.js +1 -1
  18. package/esnext/cashier-method-details.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CashierError-ChKkrToC.cjs +0 -8
  21. package/components/CashierMethodDetails-Bkv9rWDz.js +0 -9546
  22. package/components/CashierMethodDetails-C7crbp8C.js +0 -9523
  23. package/components/CashierMethodDetails-_8B2PVw7.cjs +0 -100
  24. package/components/CashierModal-DaSRKM6d.js +0 -263
  25. package/components/CashierModal-FBlLErTI.js +0 -263
  26. package/components/CashierModal-b_Xfv3we.cjs +0 -1
  27. package/components/CashierReceiptPage-CuAvXvTB.cjs +0 -26
  28. package/components/CashierReceiptPage-lXXFerwV.js +0 -1695
@@ -1,8 +1,8 @@
1
1
  import "../stencil/ui-image-Ch-GHki1.js";
2
2
  function B() {
3
3
  }
4
- const fr = (e) => e;
5
- function mr(e, t) {
4
+ const Lt = (e) => e;
5
+ function xr(e, t) {
6
6
  for (const r in t)
7
7
  e[r] = t[r];
8
8
  return (
@@ -10,29 +10,29 @@ function mr(e, t) {
10
10
  e
11
11
  );
12
12
  }
13
- function It(e) {
13
+ function $t(e) {
14
14
  return e();
15
15
  }
16
- function ot() {
16
+ function ct() {
17
17
  return /* @__PURE__ */ Object.create(null);
18
18
  }
19
- function D(e) {
20
- e.forEach(It);
19
+ function k(e) {
20
+ e.forEach($t);
21
21
  }
22
- function Pe(e) {
22
+ function he(e) {
23
23
  return typeof e == "function";
24
24
  }
25
- function Nt(e, t) {
25
+ function Rt(e, t) {
26
26
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
27
27
  }
28
- let he;
29
- function at(e, t) {
30
- return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
28
+ let pe;
29
+ function ft(e, t) {
30
+ return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
31
31
  }
32
- function dr(e) {
32
+ function wr(e) {
33
33
  return Object.keys(e).length === 0;
34
34
  }
35
- function Mt(e, ...t) {
35
+ function st(e, ...t) {
36
36
  if (e == null) {
37
37
  for (const n of t)
38
38
  n(void 0);
@@ -41,40 +41,44 @@ function Mt(e, ...t) {
41
41
  const r = e.subscribe(...t);
42
42
  return r.unsubscribe ? () => r.unsubscribe() : r;
43
43
  }
44
- function pr(e, t, r) {
45
- e.$$.on_destroy.push(Mt(t, r));
44
+ function es(e) {
45
+ let t;
46
+ return st(e, (r) => t = r)(), t;
47
+ }
48
+ function Tr(e, t, r) {
49
+ e.$$.on_destroy.push(st(t, r));
46
50
  }
47
- function de(e, t, r, n) {
51
+ function ge(e, t, r, n) {
48
52
  if (e) {
49
- const i = Lt(e, t, r, n);
53
+ const i = Dt(e, t, r, n);
50
54
  return e[0](i);
51
55
  }
52
56
  }
53
- function Lt(e, t, r, n) {
54
- return e[1] && n ? mr(r.ctx.slice(), e[1](n(t))) : r.ctx;
57
+ function Dt(e, t, r, n) {
58
+ return e[1] && n ? xr(r.ctx.slice(), e[1](n(t))) : r.ctx;
55
59
  }
56
- function pe(e, t, r, n) {
60
+ function be(e, t, r, n) {
57
61
  if (e[2] && n) {
58
62
  const i = e[2](n(r));
59
63
  if (t.dirty === void 0)
60
64
  return i;
61
65
  if (typeof i == "object") {
62
- const s = [], a = Math.max(t.dirty.length, i.length);
63
- for (let o = 0; o < a; o += 1)
64
- s[o] = t.dirty[o] | i[o];
66
+ const s = [], o = Math.max(t.dirty.length, i.length);
67
+ for (let a = 0; a < o; a += 1)
68
+ s[a] = t.dirty[a] | i[a];
65
69
  return s;
66
70
  }
67
71
  return t.dirty | i;
68
72
  }
69
73
  return t.dirty;
70
74
  }
71
- function ge(e, t, r, n, i, s) {
75
+ function ye(e, t, r, n, i, s) {
72
76
  if (i) {
73
- const a = Lt(t, r, n, s);
74
- e.p(a, i);
77
+ const o = Dt(t, r, n, s);
78
+ e.p(o, i);
75
79
  }
76
80
  }
77
- function be(e) {
81
+ function _e(e) {
78
82
  if (e.ctx.length > 32) {
79
83
  const t = [], r = e.ctx.length / 32;
80
84
  for (let n = 0; n < r; n++)
@@ -83,40 +87,40 @@ function be(e) {
83
87
  }
84
88
  return -1;
85
89
  }
86
- const $t = typeof window < "u";
87
- let gr = $t ? () => window.performance.now() : () => Date.now(), et = $t ? (e) => requestAnimationFrame(e) : B;
88
- const X = /* @__PURE__ */ new Set();
89
- function Rt(e) {
90
- X.forEach((t) => {
91
- t.c(e) || (X.delete(t), t.f());
92
- }), X.size !== 0 && et(Rt);
90
+ const kt = typeof window < "u";
91
+ let Ut = kt ? () => window.performance.now() : () => Date.now(), ot = kt ? (e) => requestAnimationFrame(e) : B;
92
+ const Z = /* @__PURE__ */ new Set();
93
+ function Gt(e) {
94
+ Z.forEach((t) => {
95
+ t.c(e) || (Z.delete(t), t.f());
96
+ }), Z.size !== 0 && ot(Gt);
93
97
  }
94
- function br(e) {
98
+ function Ft(e) {
95
99
  let t;
96
- return X.size === 0 && et(Rt), {
100
+ return Z.size === 0 && ot(Gt), {
97
101
  promise: new Promise((r) => {
98
- X.add(t = { c: e, f: r });
102
+ Z.add(t = { c: e, f: r });
99
103
  }),
100
104
  abort() {
101
- X.delete(t);
105
+ Z.delete(t);
102
106
  }
103
107
  };
104
108
  }
105
- const es = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
109
+ const ts = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
106
110
  // @ts-ignore Node typings have this
107
111
  global
108
112
  );
109
- function C(e, t) {
113
+ function M(e, t) {
110
114
  e.appendChild(t);
111
115
  }
112
- function yr(e, t, r) {
113
- const n = tt(e);
116
+ function Hr(e, t, r) {
117
+ const n = at(e);
114
118
  if (!n.getElementById(t)) {
115
119
  const i = A("style");
116
- i.id = t, i.textContent = r, Dt(n, i);
120
+ i.id = t, i.textContent = r, jt(n, i);
117
121
  }
118
122
  }
119
- function tt(e) {
123
+ function at(e) {
120
124
  if (!e)
121
125
  return document;
122
126
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -126,114 +130,114 @@ function tt(e) {
126
130
  t
127
131
  ) : e.ownerDocument;
128
132
  }
129
- function _r(e) {
133
+ function Sr(e) {
130
134
  const t = A("style");
131
- return t.textContent = "/* empty */", Dt(tt(e), t), t.sheet;
135
+ return t.textContent = "/* empty */", jt(at(e), t), t.sheet;
132
136
  }
133
- function Dt(e, t) {
134
- return C(
137
+ function jt(e, t) {
138
+ return M(
135
139
  /** @type {Document} */
136
140
  e.head || e,
137
141
  t
138
142
  ), t.sheet;
139
143
  }
140
- function U(e, t, r) {
144
+ function F(e, t, r) {
141
145
  e.insertBefore(t, r || null);
142
146
  }
143
- function I(e) {
147
+ function N(e) {
144
148
  e.parentNode && e.parentNode.removeChild(e);
145
149
  }
146
- function ts(e, t) {
150
+ function rs(e, t) {
147
151
  for (let r = 0; r < e.length; r += 1)
148
152
  e[r] && e[r].d(t);
149
153
  }
150
154
  function A(e) {
151
155
  return document.createElement(e);
152
156
  }
153
- function rs(e) {
157
+ function ns(e) {
154
158
  return document.createElementNS("http://www.w3.org/2000/svg", e);
155
159
  }
156
- function ae(e) {
160
+ function ce(e) {
157
161
  return document.createTextNode(e);
158
162
  }
159
- function Me() {
160
- return ae(" ");
163
+ function ke() {
164
+ return ce(" ");
161
165
  }
162
- function Er() {
163
- return ae("");
166
+ function Br() {
167
+ return ce("");
164
168
  }
165
- function je(e, t, r, n) {
169
+ function We(e, t, r, n) {
166
170
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
167
171
  }
168
- function ns(e) {
172
+ function is(e) {
169
173
  return function(t) {
170
174
  return t.preventDefault(), e.call(this, t);
171
175
  };
172
176
  }
173
- function R(e, t, r) {
177
+ function G(e, t, r) {
174
178
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
175
179
  }
176
- function ce(e, t, r) {
180
+ function ve(e, t, r) {
177
181
  const n = t.toLowerCase();
178
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
182
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
179
183
  }
180
- function is(e) {
184
+ function ss(e) {
181
185
  return e === "" ? null : +e;
182
186
  }
183
- function vr(e) {
187
+ function Ar(e) {
184
188
  return Array.from(e.childNodes);
185
189
  }
186
- function rt(e, t) {
190
+ function ut(e, t) {
187
191
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
188
192
  t);
189
193
  }
190
- function ss(e, t) {
194
+ function os(e, t) {
191
195
  e.value = t ?? "";
192
196
  }
193
- function os(e, t, r, n) {
197
+ function as(e, t, r, n) {
194
198
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
195
199
  }
196
- let fe;
197
- function xr() {
198
- if (fe === void 0) {
199
- fe = !1;
200
+ let Ee;
201
+ function Pr() {
202
+ if (Ee === void 0) {
203
+ Ee = !1;
200
204
  try {
201
205
  typeof window < "u" && window.parent && window.parent.document;
202
206
  } catch {
203
- fe = !0;
207
+ Ee = !0;
204
208
  }
205
209
  }
206
- return fe;
210
+ return Ee;
207
211
  }
208
- function as(e, t) {
212
+ function us(e, t) {
209
213
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
210
214
  const n = A("iframe");
211
215
  n.setAttribute(
212
216
  "style",
213
217
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
214
218
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
215
- const i = xr();
219
+ const i = Pr();
216
220
  let s;
217
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = je(
221
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = We(
218
222
  window,
219
223
  "message",
220
224
  /** @param {MessageEvent} event */
221
- (a) => {
222
- a.source === n.contentWindow && t();
225
+ (o) => {
226
+ o.source === n.contentWindow && t();
223
227
  }
224
228
  )) : (n.src = "about:blank", n.onload = () => {
225
- s = je(n.contentWindow, "resize", t), t();
226
- }), C(e, n), () => {
227
- (i || s && n.contentWindow) && s(), I(n);
229
+ s = We(n.contentWindow, "resize", t), t();
230
+ }), M(e, n), () => {
231
+ (i || s && n.contentWindow) && s(), N(n);
228
232
  };
229
233
  }
230
- function us(e, t, r) {
234
+ function ls(e, t, r) {
231
235
  e.classList.toggle(t, !!r);
232
236
  }
233
- function Tr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
237
+ function Or(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
234
238
  return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
235
239
  }
236
- function wr(e) {
240
+ function Cr(e) {
237
241
  const t = {};
238
242
  return e.childNodes.forEach(
239
243
  /** @param {Element} node */
@@ -242,227 +246,279 @@ function wr(e) {
242
246
  }
243
247
  ), t;
244
248
  }
245
- const xe = /* @__PURE__ */ new Map();
246
- let Te = 0;
247
- function Hr(e) {
249
+ const Ae = /* @__PURE__ */ new Map();
250
+ let Pe = 0;
251
+ function Ir(e) {
248
252
  let t = 5381, r = e.length;
249
253
  for (; r--; )
250
254
  t = (t << 5) - t ^ e.charCodeAt(r);
251
255
  return t >>> 0;
252
256
  }
253
- function Sr(e, t) {
254
- const r = { stylesheet: _r(t), rules: {} };
255
- return xe.set(e, r), r;
257
+ function Mr(e, t) {
258
+ const r = { stylesheet: Sr(t), rules: {} };
259
+ return Ae.set(e, r), r;
256
260
  }
257
- function ut(e, t, r, n, i, s, a, o = 0) {
258
- const l = 16.666 / n;
261
+ function zt(e, t, r, n, i, s, o, a = 0) {
262
+ const c = 16.666 / n;
259
263
  let u = `{
260
264
  `;
261
- for (let p = 0; p <= 1; p += l) {
262
- const d = t + (r - t) * s(p);
263
- u += p * 100 + `%{${a(d, 1 - d)}}
265
+ for (let E = 0; E <= 1; E += c) {
266
+ const x = t + (r - t) * s(E);
267
+ u += E * 100 + `%{${o(x, 1 - x)}}
264
268
  `;
265
269
  }
266
- const h = u + `100% {${a(r, 1 - r)}}
267
- }`, f = `__svelte_${Hr(h)}_${o}`, c = tt(e), { stylesheet: y, rules: m } = xe.get(c) || Sr(c, e);
268
- m[f] || (m[f] = !0, y.insertRule(`@keyframes ${f} ${h}`, y.cssRules.length));
270
+ const l = u + `100% {${o(r, 1 - r)}}
271
+ }`, f = `__svelte_${Ir(l)}_${a}`, h = at(e), { stylesheet: d, rules: g } = Ae.get(h) || Mr(h, e);
272
+ g[f] || (g[f] = !0, d.insertRule(`@keyframes ${f} ${l}`, d.cssRules.length));
269
273
  const b = e.style.animation || "";
270
- return e.style.animation = `${b ? `${b}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Te += 1, f;
274
+ return e.style.animation = `${b ? `${b}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Pe += 1, f;
271
275
  }
272
- function Br(e, t) {
276
+ function Ze(e, t) {
273
277
  const r = (e.style.animation || "").split(", "), n = r.filter(
274
278
  t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
275
279
  // remove all Svelte animations
276
280
  ), i = r.length - n.length;
277
- i && (e.style.animation = n.join(", "), Te -= i, Te || Ar());
281
+ i && (e.style.animation = n.join(", "), Pe -= i, Pe || Nr());
278
282
  }
279
- function Ar() {
280
- et(() => {
281
- Te || (xe.forEach((e) => {
283
+ function Nr() {
284
+ ot(() => {
285
+ Pe || (Ae.forEach((e) => {
282
286
  const { ownerNode: t } = e.stylesheet;
283
- t && I(t);
284
- }), xe.clear());
287
+ t && N(t);
288
+ }), Ae.clear());
285
289
  });
286
290
  }
287
- let ie;
288
- function ne(e) {
289
- ie = e;
291
+ let oe;
292
+ function se(e) {
293
+ oe = e;
290
294
  }
291
- function Pr() {
292
- if (!ie)
295
+ function Lr() {
296
+ if (!oe)
293
297
  throw new Error("Function called outside component initialization");
294
- return ie;
298
+ return oe;
299
+ }
300
+ function $r(e) {
301
+ Lr().$$.on_mount.push(e);
295
302
  }
296
- function Or(e) {
297
- Pr().$$.on_mount.push(e);
303
+ function hs(e, t) {
304
+ const r = e.$$.callbacks[t.type];
305
+ r && r.slice().forEach((n) => n.call(this, t));
298
306
  }
299
- const z = [], ze = [];
300
- let W = [];
301
- const lt = [], Cr = /* @__PURE__ */ Promise.resolve();
302
- let Ve = !1;
303
- function Ir() {
304
- Ve || (Ve = !0, Cr.then(P));
307
+ const X = [], Je = [];
308
+ let J = [];
309
+ const mt = [], Vt = /* @__PURE__ */ Promise.resolve();
310
+ let qe = !1;
311
+ function Xt() {
312
+ qe || (qe = !0, Vt.then(L));
305
313
  }
306
- function we(e) {
307
- W.push(e);
314
+ function cs() {
315
+ return Xt(), Vt;
316
+ }
317
+ function ae(e) {
318
+ J.push(e);
308
319
  }
309
- const Le = /* @__PURE__ */ new Set();
310
- let F = 0;
311
- function P() {
312
- if (F !== 0)
320
+ const Ue = /* @__PURE__ */ new Set();
321
+ let z = 0;
322
+ function L() {
323
+ if (z !== 0)
313
324
  return;
314
- const e = ie;
325
+ const e = oe;
315
326
  do {
316
327
  try {
317
- for (; F < z.length; ) {
318
- const t = z[F];
319
- F++, ne(t), Nr(t.$$);
328
+ for (; z < X.length; ) {
329
+ const t = X[z];
330
+ z++, se(t), Rr(t.$$);
320
331
  }
321
332
  } catch (t) {
322
- throw z.length = 0, F = 0, t;
333
+ throw X.length = 0, z = 0, t;
323
334
  }
324
- for (ne(null), z.length = 0, F = 0; ze.length; )
325
- ze.pop()();
326
- for (let t = 0; t < W.length; t += 1) {
327
- const r = W[t];
328
- Le.has(r) || (Le.add(r), r());
335
+ for (se(null), X.length = 0, z = 0; Je.length; )
336
+ Je.pop()();
337
+ for (let t = 0; t < J.length; t += 1) {
338
+ const r = J[t];
339
+ Ue.has(r) || (Ue.add(r), r());
329
340
  }
330
- W.length = 0;
331
- } while (z.length);
332
- for (; lt.length; )
333
- lt.pop()();
334
- Ve = !1, Le.clear(), ne(e);
341
+ J.length = 0;
342
+ } while (X.length);
343
+ for (; mt.length; )
344
+ mt.pop()();
345
+ qe = !1, Ue.clear(), se(e);
335
346
  }
336
- function Nr(e) {
347
+ function Rr(e) {
337
348
  if (e.fragment !== null) {
338
- e.update(), D(e.before_update);
349
+ e.update(), k(e.before_update);
339
350
  const t = e.dirty;
340
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
351
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ae);
341
352
  }
342
353
  }
343
- function Mr(e) {
354
+ function Dr(e) {
344
355
  const t = [], r = [];
345
- W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
356
+ J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
346
357
  }
347
- let ee;
348
- function Lr() {
349
- return ee || (ee = Promise.resolve(), ee.then(() => {
350
- ee = null;
351
- })), ee;
358
+ let re;
359
+ function Wt() {
360
+ return re || (re = Promise.resolve(), re.then(() => {
361
+ re = null;
362
+ })), re;
352
363
  }
353
- function $e(e, t, r) {
354
- e.dispatchEvent(Tr(`${t ? "intro" : "outro"}${r}`));
364
+ function Oe(e, t, r) {
365
+ e.dispatchEvent(Or(`${t ? "intro" : "outro"}${r}`));
355
366
  }
356
- const ye = /* @__PURE__ */ new Set();
357
- let N;
358
- function $r() {
359
- N = {
367
+ const Te = /* @__PURE__ */ new Set();
368
+ let R;
369
+ function fs() {
370
+ R = {
360
371
  r: 0,
361
372
  c: [],
362
- p: N
373
+ p: R
363
374
  // parent group
364
375
  };
365
376
  }
366
- function Rr() {
367
- N.r || D(N.c), N = N.p;
377
+ function ms() {
378
+ R.r || k(R.c), R = R.p;
368
379
  }
369
- function M(e, t) {
370
- e && e.i && (ye.delete(e), e.i(t));
380
+ function W(e, t) {
381
+ e && e.i && (Te.delete(e), e.i(t));
371
382
  }
372
- function V(e, t, r, n) {
383
+ function xe(e, t, r, n) {
373
384
  if (e && e.o) {
374
- if (ye.has(e))
385
+ if (Te.has(e))
375
386
  return;
376
- ye.add(e), N.c.push(() => {
377
- ye.delete(e), n && (r && e.d(1), n());
387
+ Te.add(e), R.c.push(() => {
388
+ Te.delete(e), n && (r && e.d(1), n());
378
389
  }), e.o(t);
379
390
  } else
380
391
  n && n();
381
392
  }
382
- const Dr = { duration: 0 };
383
- function ls(e, t, r, n) {
384
- let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, l = null, u = null, h;
385
- function f() {
386
- u && Br(e, u);
387
- }
388
- function c(m, b) {
389
- const p = (
390
- /** @type {Program['d']} */
391
- m.b - a
392
- );
393
- return b *= Math.abs(p), {
394
- a,
395
- b: m.b,
396
- d: p,
397
- duration: b,
398
- start: m.start,
399
- end: m.start + b,
400
- group: m.group
401
- };
393
+ const Zt = { duration: 0 };
394
+ function ds(e, t, r) {
395
+ const n = { direction: "in" };
396
+ let i = t(e, r, n), s = !1, o, a, c = 0;
397
+ function u() {
398
+ o && Ze(e, o);
402
399
  }
403
- function y(m) {
400
+ function l() {
404
401
  const {
405
- delay: b = 0,
406
- duration: p = 300,
407
- easing: d = fr,
408
- tick: v = B,
409
- css: g
410
- } = s || Dr, w = {
411
- start: gr() + b,
412
- b: m
413
- };
414
- m || (w.group = N, N.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
415
- e.inert, e.inert = !0)), o || l ? l = w : (g && (f(), u = ut(e, a, m, p, b, d, g)), m && v(0, 1), o = c(w, p), we(() => $e(e, m, "start")), br((H) => {
416
- if (l && H > l.start && (o = c(l, p), l = null, $e(e, o.b, "start"), g && (f(), u = ut(
417
- e,
418
- a,
419
- o.b,
420
- o.duration,
421
- 0,
422
- d,
423
- s.css
424
- ))), o) {
425
- if (H >= o.end)
426
- v(a = o.b, 1 - a), $e(e, o.b, "end"), l || (o.b ? f() : --o.group.r || D(o.group.c)), o = null;
427
- else if (H >= o.start) {
428
- const G = H - o.start;
429
- a = o.a + o.d * d(G / o.duration), v(a, 1 - a);
402
+ delay: h = 0,
403
+ duration: d = 300,
404
+ easing: g = Lt,
405
+ tick: b = B,
406
+ css: E
407
+ } = i || Zt;
408
+ E && (o = zt(e, 0, 1, d, h, g, E, c++)), b(0, 1);
409
+ const x = Ut() + h, p = x + d;
410
+ a && a.abort(), s = !0, ae(() => Oe(e, !0, "start")), a = Ft((m) => {
411
+ if (s) {
412
+ if (m >= p)
413
+ return b(1, 0), Oe(e, !0, "end"), u(), s = !1;
414
+ if (m >= x) {
415
+ const v = g((m - x) / d);
416
+ b(v, 1 - v);
430
417
  }
431
418
  }
432
- return !!(o || l);
433
- }));
419
+ return s;
420
+ });
434
421
  }
422
+ let f = !1;
435
423
  return {
436
- run(m) {
437
- Pe(s) ? Lr().then(() => {
438
- s = s({ direction: m ? "in" : "out" }), y(m);
439
- }) : y(m);
424
+ start() {
425
+ f || (f = !0, Ze(e), he(i) ? (i = i(n), Wt().then(l)) : l());
426
+ },
427
+ invalidate() {
428
+ f = !1;
440
429
  },
441
430
  end() {
442
- f(), o = l = null;
431
+ s && (u(), s = !1);
443
432
  }
444
433
  };
445
434
  }
446
- function hs(e) {
435
+ function ps(e, t, r) {
436
+ const n = { direction: "out" };
437
+ let i = t(e, r, n), s = !0, o;
438
+ const a = R;
439
+ a.r += 1;
440
+ let c;
441
+ function u() {
442
+ const {
443
+ delay: l = 0,
444
+ duration: f = 300,
445
+ easing: h = Lt,
446
+ tick: d = B,
447
+ css: g
448
+ } = i || Zt;
449
+ g && (o = zt(e, 1, 0, f, l, h, g));
450
+ const b = Ut() + l, E = b + f;
451
+ ae(() => Oe(e, !1, "start")), "inert" in e && (c = /** @type {HTMLElement} */
452
+ e.inert, e.inert = !0), Ft((x) => {
453
+ if (s) {
454
+ if (x >= E)
455
+ return d(0, 1), Oe(e, !1, "end"), --a.r || k(a.c), !1;
456
+ if (x >= b) {
457
+ const p = h((x - b) / f);
458
+ d(1 - p, p);
459
+ }
460
+ }
461
+ return s;
462
+ });
463
+ }
464
+ return he(i) ? Wt().then(() => {
465
+ i = i(n), u();
466
+ }) : u(), {
467
+ end(l) {
468
+ l && "inert" in e && (e.inert = c), l && i.tick && i.tick(1, 0), s && (o && Ze(e, o), s = !1);
469
+ }
470
+ };
471
+ }
472
+ function gs(e) {
447
473
  return e?.length !== void 0 ? e : Array.from(e);
448
474
  }
449
- function Ur(e, t, r) {
475
+ function bs(e, t) {
476
+ e.d(1), t.delete(e.key);
477
+ }
478
+ function ys(e, t, r, n, i, s, o, a, c, u, l, f) {
479
+ let h = e.length, d = s.length, g = h;
480
+ const b = {};
481
+ for (; g--; )
482
+ b[e[g].key] = g;
483
+ const E = [], x = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = [];
484
+ for (g = d; g--; ) {
485
+ const H = f(i, s, g), O = r(H);
486
+ let C = o.get(O);
487
+ C ? m.push(() => C.p(H, t)) : (C = u(O, H), C.c()), x.set(O, E[g] = C), O in b && p.set(O, Math.abs(g - b[O]));
488
+ }
489
+ const v = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
490
+ function $(H) {
491
+ W(H, 1), H.m(a, l), o.set(H.key, H), l = H.first, d--;
492
+ }
493
+ for (; h && d; ) {
494
+ const H = E[d - 1], O = e[h - 1], C = H.key, de = O.key;
495
+ H === O ? (l = H.first, h--, d--) : x.has(de) ? !o.has(C) || v.has(C) ? $(H) : P.has(de) ? h-- : p.get(C) > p.get(de) ? (P.add(C), $(H)) : (v.add(de), h--) : (c(O, o), h--);
496
+ }
497
+ for (; h--; ) {
498
+ const H = e[h];
499
+ x.has(H.key) || c(H, o);
500
+ }
501
+ for (; d; )
502
+ $(E[d - 1]);
503
+ return k(m), E;
504
+ }
505
+ function kr(e, t, r) {
450
506
  const { fragment: n, after_update: i } = e.$$;
451
- n && n.m(t, r), we(() => {
452
- const s = e.$$.on_mount.map(It).filter(Pe);
453
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : D(s), e.$$.on_mount = [];
454
- }), i.forEach(we);
507
+ n && n.m(t, r), ae(() => {
508
+ const s = e.$$.on_mount.map($t).filter(he);
509
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : k(s), e.$$.on_mount = [];
510
+ }), i.forEach(ae);
455
511
  }
456
- function kr(e, t) {
512
+ function Ur(e, t) {
457
513
  const r = e.$$;
458
- r.fragment !== null && (Mr(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
514
+ r.fragment !== null && (Dr(r.after_update), k(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
459
515
  }
460
516
  function Gr(e, t) {
461
- e.$$.dirty[0] === -1 && (z.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
517
+ e.$$.dirty[0] === -1 && (X.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
462
518
  }
463
- function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
464
- const l = ie;
465
- ne(e);
519
+ function Fr(e, t, r, n, i, s, o = null, a = [-1]) {
520
+ const c = oe;
521
+ se(e);
466
522
  const u = e.$$ = {
467
523
  fragment: null,
468
524
  ctx: [],
@@ -470,37 +526,37 @@ function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
470
526
  props: s,
471
527
  update: B,
472
528
  not_equal: i,
473
- bound: ot(),
529
+ bound: ct(),
474
530
  // lifecycle
475
531
  on_mount: [],
476
532
  on_destroy: [],
477
533
  on_disconnect: [],
478
534
  before_update: [],
479
535
  after_update: [],
480
- context: new Map(t.context || (l ? l.$$.context : [])),
536
+ context: new Map(t.context || (c ? c.$$.context : [])),
481
537
  // everything else
482
- callbacks: ot(),
483
- dirty: o,
538
+ callbacks: ct(),
539
+ dirty: a,
484
540
  skip_bound: !1,
485
- root: t.target || l.$$.root
541
+ root: t.target || c.$$.root
486
542
  };
487
- a && a(u.root);
488
- let h = !1;
489
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
490
- const m = y.length ? y[0] : c;
491
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Gr(e, f)), c;
492
- }) : [], u.update(), h = !0, D(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
543
+ o && o(u.root);
544
+ let l = !1;
545
+ if (u.ctx = r ? r(e, t.props || {}, (f, h, ...d) => {
546
+ const g = d.length ? d[0] : h;
547
+ return u.ctx && i(u.ctx[f], u.ctx[f] = g) && (!u.skip_bound && u.bound[f] && u.bound[f](g), l && Gr(e, f)), h;
548
+ }) : [], u.update(), l = !0, k(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
493
549
  if (t.hydrate) {
494
- const f = vr(t.target);
495
- u.fragment && u.fragment.l(f), f.forEach(I);
550
+ const f = Ar(t.target);
551
+ u.fragment && u.fragment.l(f), f.forEach(N);
496
552
  } else
497
553
  u.fragment && u.fragment.c();
498
- t.intro && M(e.$$.fragment), Ur(e, t.target, t.anchor), P();
554
+ t.intro && W(e.$$.fragment), kr(e, t.target, t.anchor), L();
499
555
  }
500
- ne(l);
556
+ se(c);
501
557
  }
502
- let Ut;
503
- typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
558
+ let Jt;
559
+ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
504
560
  /** The Svelte component constructor */
505
561
  $$ctor;
506
562
  /** Slots */
@@ -542,29 +598,29 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
542
598
  let s;
543
599
  return {
544
600
  c: function() {
545
- s = A("slot"), i !== "default" && R(s, "name", i);
601
+ s = A("slot"), i !== "default" && G(s, "name", i);
546
602
  },
547
603
  /**
548
604
  * @param {HTMLElement} target
549
605
  * @param {HTMLElement} [anchor]
550
606
  */
551
- m: function(l, u) {
552
- U(l, s, u);
607
+ m: function(c, u) {
608
+ F(c, s, u);
553
609
  },
554
- d: function(l) {
555
- l && I(s);
610
+ d: function(c) {
611
+ c && N(s);
556
612
  }
557
613
  };
558
614
  };
559
615
  };
560
616
  if (await Promise.resolve(), !this.$$cn || this.$$c)
561
617
  return;
562
- const t = {}, r = wr(this);
618
+ const t = {}, r = Cr(this);
563
619
  for (const i of this.$$s)
564
620
  i in r && (t[i] = [e(i)]);
565
621
  for (const i of this.attributes) {
566
622
  const s = this.$$g_p(i.name);
567
- s in this.$$d || (this.$$d[s] = _e(s, i.value, this.$$p_d, "toProp"));
623
+ s in this.$$d || (this.$$d[s] = He(s, i.value, this.$$p_d, "toProp"));
568
624
  }
569
625
  for (const i in this.$$p_d)
570
626
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -582,7 +638,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
582
638
  this.$$r = !0;
583
639
  for (const i in this.$$p_d)
584
640
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
585
- const s = _e(
641
+ const s = He(
586
642
  i,
587
643
  this.$$d[i],
588
644
  this.$$p_d,
@@ -595,8 +651,8 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
595
651
  this.$$c.$$.after_update.push(n), n();
596
652
  for (const i in this.$$l)
597
653
  for (const s of this.$$l[i]) {
598
- const a = this.$$c.$on(i, s);
599
- this.$$l_u.set(s, a);
654
+ const o = this.$$c.$on(i, s);
655
+ this.$$l_u.set(s, o);
600
656
  }
601
657
  this.$$l = {};
602
658
  }
@@ -604,7 +660,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
604
660
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
605
661
  // and setting attributes through setAttribute etc, this is helpful
606
662
  attributeChangedCallback(e, t, r) {
607
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = _e(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
663
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = He(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
608
664
  }
609
665
  disconnectedCallback() {
610
666
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -617,7 +673,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
617
673
  ) || e;
618
674
  }
619
675
  });
620
- function _e(e, t, r, n) {
676
+ function He(e, t, r, n) {
621
677
  const i = r[e]?.type;
622
678
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
623
679
  return t;
@@ -647,33 +703,33 @@ function _e(e, t, r, n) {
647
703
  }
648
704
  }
649
705
  function jr(e, t, r, n, i, s) {
650
- let a = class extends Ut {
706
+ let o = class extends Jt {
651
707
  constructor() {
652
708
  super(e, r, i), this.$$p_d = t;
653
709
  }
654
710
  static get observedAttributes() {
655
711
  return Object.keys(t).map(
656
- (o) => (t[o].attribute || o).toLowerCase()
712
+ (a) => (t[a].attribute || a).toLowerCase()
657
713
  );
658
714
  }
659
715
  };
660
- return Object.keys(t).forEach((o) => {
661
- Object.defineProperty(a.prototype, o, {
716
+ return Object.keys(t).forEach((a) => {
717
+ Object.defineProperty(o.prototype, a, {
662
718
  get() {
663
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
719
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
664
720
  },
665
- set(l) {
666
- l = _e(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
721
+ set(c) {
722
+ c = He(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
667
723
  }
668
724
  });
669
- }), n.forEach((o) => {
670
- Object.defineProperty(a.prototype, o, {
725
+ }), n.forEach((a) => {
726
+ Object.defineProperty(o.prototype, a, {
671
727
  get() {
672
- return this.$$c?.[o];
728
+ return this.$$c?.[a];
673
729
  }
674
730
  });
675
731
  }), e.element = /** @type {any} */
676
- a, a;
732
+ o, o;
677
733
  }
678
734
  class zr {
679
735
  /**
@@ -694,7 +750,7 @@ class zr {
694
750
  $$set = void 0;
695
751
  /** @returns {void} */
696
752
  $destroy() {
697
- kr(this, 1), this.$destroy = B;
753
+ Ur(this, 1), this.$destroy = B;
698
754
  }
699
755
  /**
700
756
  * @template {Extract<keyof Events, string>} K
@@ -703,7 +759,7 @@ class zr {
703
759
  * @returns {() => void}
704
760
  */
705
761
  $on(t, r) {
706
- if (!Pe(r))
762
+ if (!he(r))
707
763
  return B;
708
764
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
709
765
  return n.push(r), () => {
@@ -716,75 +772,75 @@ class zr {
716
772
  * @returns {void}
717
773
  */
718
774
  $set(t) {
719
- this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
775
+ this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
720
776
  }
721
777
  }
722
778
  const Vr = "4";
723
779
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
724
- const j = [];
780
+ const V = [];
725
781
  function Xr(e, t) {
726
782
  return {
727
- subscribe: Oe(e, t).subscribe
783
+ subscribe: Le(e, t).subscribe
728
784
  };
729
785
  }
730
- function Oe(e, t = B) {
786
+ function Le(e, t = B) {
731
787
  let r;
732
788
  const n = /* @__PURE__ */ new Set();
733
- function i(o) {
734
- if (Nt(e, o) && (e = o, r)) {
735
- const l = !j.length;
789
+ function i(a) {
790
+ if (Rt(e, a) && (e = a, r)) {
791
+ const c = !V.length;
736
792
  for (const u of n)
737
- u[1](), j.push(u, e);
738
- if (l) {
739
- for (let u = 0; u < j.length; u += 2)
740
- j[u][0](j[u + 1]);
741
- j.length = 0;
793
+ u[1](), V.push(u, e);
794
+ if (c) {
795
+ for (let u = 0; u < V.length; u += 2)
796
+ V[u][0](V[u + 1]);
797
+ V.length = 0;
742
798
  }
743
799
  }
744
800
  }
745
- function s(o) {
746
- i(o(e));
801
+ function s(a) {
802
+ i(a(e));
747
803
  }
748
- function a(o, l = B) {
749
- const u = [o, l];
750
- return n.add(u), n.size === 1 && (r = t(i, s) || B), o(e), () => {
804
+ function o(a, c = B) {
805
+ const u = [a, c];
806
+ return n.add(u), n.size === 1 && (r = t(i, s) || B), a(e), () => {
751
807
  n.delete(u), n.size === 0 && r && (r(), r = null);
752
808
  };
753
809
  }
754
- return { set: i, update: s, subscribe: a };
810
+ return { set: i, update: s, subscribe: o };
755
811
  }
756
- function Y(e, t, r) {
812
+ function ee(e, t, r) {
757
813
  const n = !Array.isArray(e), i = n ? [e] : e;
758
814
  if (!i.every(Boolean))
759
815
  throw new Error("derived() expects stores as input, got a falsy value");
760
816
  const s = t.length < 2;
761
- return Xr(r, (a, o) => {
762
- let l = !1;
817
+ return Xr(r, (o, a) => {
818
+ let c = !1;
763
819
  const u = [];
764
- let h = 0, f = B;
765
- const c = () => {
766
- if (h)
820
+ let l = 0, f = B;
821
+ const h = () => {
822
+ if (l)
767
823
  return;
768
824
  f();
769
- const m = t(n ? u[0] : u, a, o);
770
- s ? a(m) : f = Pe(m) ? m : B;
771
- }, y = i.map(
772
- (m, b) => Mt(
773
- m,
774
- (p) => {
775
- u[b] = p, h &= ~(1 << b), l && c();
825
+ const g = t(n ? u[0] : u, o, a);
826
+ s ? o(g) : f = he(g) ? g : B;
827
+ }, d = i.map(
828
+ (g, b) => st(
829
+ g,
830
+ (E) => {
831
+ u[b] = E, l &= ~(1 << b), c && h();
776
832
  },
777
833
  () => {
778
- h |= 1 << b;
834
+ l |= 1 << b;
779
835
  }
780
836
  )
781
837
  );
782
- return l = !0, c(), function() {
783
- D(y), f(), l = !1;
838
+ return c = !0, h(), function() {
839
+ k(d), f(), c = !1;
784
840
  };
785
841
  });
786
842
  }
787
- var cs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
843
+ var _s = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
788
844
  function Wr(e) {
789
845
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
790
846
  }
@@ -805,29 +861,29 @@ function Kr(e) {
805
861
  function en(e) {
806
862
  return Array.isArray(e) ? [] : {};
807
863
  }
808
- function se(e, t) {
809
- return t.clone !== !1 && t.isMergeableObject(e) ? Z(en(e), e, t) : e;
864
+ function ue(e, t) {
865
+ return t.clone !== !1 && t.isMergeableObject(e) ? q(en(e), e, t) : e;
810
866
  }
811
867
  function tn(e, t, r) {
812
868
  return e.concat(t).map(function(n) {
813
- return se(n, r);
869
+ return ue(n, r);
814
870
  });
815
871
  }
816
872
  function rn(e, t) {
817
873
  if (!t.customMerge)
818
- return Z;
874
+ return q;
819
875
  var r = t.customMerge(e);
820
- return typeof r == "function" ? r : Z;
876
+ return typeof r == "function" ? r : q;
821
877
  }
822
878
  function nn(e) {
823
879
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
824
880
  return Object.propertyIsEnumerable.call(e, t);
825
881
  }) : [];
826
882
  }
827
- function ht(e) {
883
+ function dt(e) {
828
884
  return Object.keys(e).concat(nn(e));
829
885
  }
830
- function kt(e, t) {
886
+ function qt(e, t) {
831
887
  try {
832
888
  return t in e;
833
889
  } catch {
@@ -835,56 +891,56 @@ function kt(e, t) {
835
891
  }
836
892
  }
837
893
  function sn(e, t) {
838
- return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
894
+ return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
839
895
  }
840
896
  function on(e, t, r) {
841
897
  var n = {};
842
- return r.isMergeableObject(e) && ht(e).forEach(function(i) {
843
- n[i] = se(e[i], r);
844
- }), ht(t).forEach(function(i) {
845
- sn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
898
+ return r.isMergeableObject(e) && dt(e).forEach(function(i) {
899
+ n[i] = ue(e[i], r);
900
+ }), dt(t).forEach(function(i) {
901
+ sn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
846
902
  }), n;
847
903
  }
848
- function Z(e, t, r) {
849
- r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = se;
904
+ function q(e, t, r) {
905
+ r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = ue;
850
906
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
851
- return s ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : se(t, r);
907
+ return s ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : ue(t, r);
852
908
  }
853
- Z.all = function(t, r) {
909
+ q.all = function(t, r) {
854
910
  if (!Array.isArray(t))
855
911
  throw new Error("first argument should be an array");
856
912
  return t.reduce(function(n, i) {
857
- return Z(n, i, r);
913
+ return q(n, i, r);
858
914
  }, {});
859
915
  };
860
- var an = Z, un = an;
916
+ var an = q, un = an;
861
917
  const ln = /* @__PURE__ */ Wr(un);
862
- var Xe = function(e, t) {
863
- return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
918
+ var Qe = function(e, t) {
919
+ return Qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
864
920
  r.__proto__ = n;
865
921
  } || function(r, n) {
866
922
  for (var i in n)
867
923
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
868
- }, Xe(e, t);
924
+ }, Qe(e, t);
869
925
  };
870
- function Ce(e, t) {
926
+ function $e(e, t) {
871
927
  if (typeof t != "function" && t !== null)
872
928
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
873
- Xe(e, t);
929
+ Qe(e, t);
874
930
  function r() {
875
931
  this.constructor = e;
876
932
  }
877
933
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
878
934
  }
879
- var O = function() {
880
- return O = Object.assign || function(t) {
935
+ var I = function() {
936
+ return I = Object.assign || function(t) {
881
937
  for (var r, n = 1, i = arguments.length; n < i; n++) {
882
938
  r = arguments[n];
883
939
  for (var s in r)
884
940
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
885
941
  }
886
942
  return t;
887
- }, O.apply(this, arguments);
943
+ }, I.apply(this, arguments);
888
944
  };
889
945
  function hn(e, t) {
890
946
  var r = {};
@@ -895,13 +951,13 @@ function hn(e, t) {
895
951
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
896
952
  return r;
897
953
  }
898
- function Re(e, t, r) {
954
+ function Ge(e, t, r) {
899
955
  if (r || arguments.length === 2)
900
956
  for (var n = 0, i = t.length, s; n < i; n++)
901
957
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
902
958
  return e.concat(s || Array.prototype.slice.call(t));
903
959
  }
904
- function De(e, t) {
960
+ function Fe(e, t) {
905
961
  var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : mn;
906
962
  return i(e, {
907
963
  cache: r,
@@ -915,19 +971,19 @@ function fn(e, t, r, n) {
915
971
  var i = cn(n) ? n : r(n), s = t.get(i);
916
972
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
917
973
  }
918
- function Gt(e, t, r) {
974
+ function Qt(e, t, r) {
919
975
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
920
976
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
921
977
  }
922
- function Ft(e, t, r, n, i) {
978
+ function Yt(e, t, r, n, i) {
923
979
  return r.bind(t, e, n, i);
924
980
  }
925
981
  function mn(e, t) {
926
- var r = e.length === 1 ? fn : Gt;
927
- return Ft(e, this, r, t.cache.create(), t.serializer);
982
+ var r = e.length === 1 ? fn : Qt;
983
+ return Yt(e, this, r, t.cache.create(), t.serializer);
928
984
  }
929
985
  function dn(e, t) {
930
- return Ft(e, this, Gt, t.cache.create(), t.serializer);
986
+ return Yt(e, this, Qt, t.cache.create(), t.serializer);
931
987
  }
932
988
  var pn = function() {
933
989
  return JSON.stringify(arguments);
@@ -947,67 +1003,67 @@ var pn = function() {
947
1003
  create: function() {
948
1004
  return new gn();
949
1005
  }
950
- }, Ue = {
1006
+ }, je = {
951
1007
  variadic: dn
952
- }, He = function() {
953
- return He = Object.assign || function(t) {
1008
+ }, Ce = function() {
1009
+ return Ce = Object.assign || function(t) {
954
1010
  for (var r, n = 1, i = arguments.length; n < i; n++) {
955
1011
  r = arguments[n];
956
1012
  for (var s in r)
957
1013
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
958
1014
  }
959
1015
  return t;
960
- }, He.apply(this, arguments);
1016
+ }, Ce.apply(this, arguments);
961
1017
  };
962
- var _;
1018
+ var y;
963
1019
  (function(e) {
964
1020
  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";
965
- })(_ || (_ = {}));
966
- var x;
1021
+ })(y || (y = {}));
1022
+ var w;
967
1023
  (function(e) {
968
1024
  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";
969
- })(x || (x = {}));
970
- var J;
1025
+ })(w || (w = {}));
1026
+ var Q;
971
1027
  (function(e) {
972
1028
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
973
- })(J || (J = {}));
974
- function ct(e) {
975
- return e.type === x.literal;
1029
+ })(Q || (Q = {}));
1030
+ function pt(e) {
1031
+ return e.type === w.literal;
976
1032
  }
977
1033
  function yn(e) {
978
- return e.type === x.argument;
1034
+ return e.type === w.argument;
979
1035
  }
980
- function jt(e) {
981
- return e.type === x.number;
1036
+ function Kt(e) {
1037
+ return e.type === w.number;
982
1038
  }
983
- function zt(e) {
984
- return e.type === x.date;
1039
+ function er(e) {
1040
+ return e.type === w.date;
985
1041
  }
986
- function Vt(e) {
987
- return e.type === x.time;
1042
+ function tr(e) {
1043
+ return e.type === w.time;
988
1044
  }
989
- function Xt(e) {
990
- return e.type === x.select;
1045
+ function rr(e) {
1046
+ return e.type === w.select;
991
1047
  }
992
- function Wt(e) {
993
- return e.type === x.plural;
1048
+ function nr(e) {
1049
+ return e.type === w.plural;
994
1050
  }
995
1051
  function _n(e) {
996
- return e.type === x.pound;
1052
+ return e.type === w.pound;
997
1053
  }
998
- function Zt(e) {
999
- return e.type === x.tag;
1054
+ function ir(e) {
1055
+ return e.type === w.tag;
1000
1056
  }
1001
- function Jt(e) {
1002
- return !!(e && typeof e == "object" && e.type === J.number);
1057
+ function sr(e) {
1058
+ return !!(e && typeof e == "object" && e.type === Q.number);
1003
1059
  }
1004
- function We(e) {
1005
- return !!(e && typeof e == "object" && e.type === J.dateTime);
1060
+ function Ye(e) {
1061
+ return !!(e && typeof e == "object" && e.type === Q.dateTime);
1006
1062
  }
1007
- var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
1008
- function vn(e) {
1063
+ var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
1064
+ function En(e) {
1009
1065
  var t = {};
1010
- return e.replace(En, function(r) {
1066
+ return e.replace(vn, function(r) {
1011
1067
  var n = r.length;
1012
1068
  switch (r[0]) {
1013
1069
  case "G":
@@ -1107,35 +1163,35 @@ var T = function() {
1107
1163
  }, T.apply(this, arguments);
1108
1164
  };
1109
1165
  var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1110
- function Tn(e) {
1166
+ function wn(e) {
1111
1167
  if (e.length === 0)
1112
1168
  throw new Error("Number skeleton cannot be empty");
1113
- for (var t = e.split(xn).filter(function(c) {
1114
- return c.length > 0;
1169
+ for (var t = e.split(xn).filter(function(h) {
1170
+ return h.length > 0;
1115
1171
  }), r = [], n = 0, i = t; n < i.length; n++) {
1116
- var s = i[n], a = s.split("/");
1117
- if (a.length === 0)
1172
+ var s = i[n], o = s.split("/");
1173
+ if (o.length === 0)
1118
1174
  throw new Error("Invalid number skeleton");
1119
- for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1120
- var f = h[u];
1175
+ for (var a = o[0], c = o.slice(1), u = 0, l = c; u < l.length; u++) {
1176
+ var f = l[u];
1121
1177
  if (f.length === 0)
1122
1178
  throw new Error("Invalid number skeleton");
1123
1179
  }
1124
- r.push({ stem: o, options: l });
1180
+ r.push({ stem: a, options: c });
1125
1181
  }
1126
1182
  return r;
1127
1183
  }
1128
- function wn(e) {
1184
+ function Tn(e) {
1129
1185
  return e.replace(/^(.*?)-/, "");
1130
1186
  }
1131
- var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
1132
- function mt(e) {
1187
+ var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, ur = /^(0+)$/;
1188
+ function bt(e) {
1133
1189
  var t = {};
1134
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
1190
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(r, n, i) {
1135
1191
  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)), "";
1136
1192
  }), t;
1137
1193
  }
1138
- function Kt(e) {
1194
+ function lr(e) {
1139
1195
  switch (e) {
1140
1196
  case "sign-auto":
1141
1197
  return {
@@ -1183,14 +1239,14 @@ function Sn(e) {
1183
1239
  notation: "scientific"
1184
1240
  }, e = e.slice(1)), t) {
1185
1241
  var r = e.slice(0, 2);
1186
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
1242
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ur.test(e))
1187
1243
  throw new Error("Malformed concise eng/scientific notation");
1188
1244
  t.minimumIntegerDigits = e.length;
1189
1245
  }
1190
1246
  return t;
1191
1247
  }
1192
- function dt(e) {
1193
- var t = {}, r = Kt(e);
1248
+ function yt(e) {
1249
+ var t = {}, r = lr(e);
1194
1250
  return r || t;
1195
1251
  }
1196
1252
  function Bn(e) {
@@ -1217,7 +1273,7 @@ function Bn(e) {
1217
1273
  continue;
1218
1274
  case "measure-unit":
1219
1275
  case "unit":
1220
- t.style = "unit", t.unit = wn(i.options[0]);
1276
+ t.style = "unit", t.unit = Tn(i.options[0]);
1221
1277
  continue;
1222
1278
  case "compact-short":
1223
1279
  case "K":
@@ -1228,13 +1284,13 @@ function Bn(e) {
1228
1284
  t.notation = "compact", t.compactDisplay = "long";
1229
1285
  continue;
1230
1286
  case "scientific":
1231
- t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1232
- return T(T({}, l), dt(u));
1287
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1288
+ return T(T({}, c), yt(u));
1233
1289
  }, {}));
1234
1290
  continue;
1235
1291
  case "engineering":
1236
- t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1237
- return T(T({}, l), dt(u));
1292
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1293
+ return T(T({}, c), yt(u));
1238
1294
  }, {}));
1239
1295
  continue;
1240
1296
  case "notation-simple":
@@ -1279,45 +1335,45 @@ function Bn(e) {
1279
1335
  case "integer-width":
1280
1336
  if (i.options.length > 1)
1281
1337
  throw new RangeError("integer-width stems only accept a single optional option");
1282
- i.options[0].replace(Hn, function(l, u, h, f, c, y) {
1338
+ i.options[0].replace(Hn, function(c, u, l, f, h, d) {
1283
1339
  if (u)
1284
- t.minimumIntegerDigits = h.length;
1340
+ t.minimumIntegerDigits = l.length;
1285
1341
  else {
1286
- if (f && c)
1342
+ if (f && h)
1287
1343
  throw new Error("We currently do not support maximum integer digits");
1288
- if (y)
1344
+ if (d)
1289
1345
  throw new Error("We currently do not support exact integer digits");
1290
1346
  }
1291
1347
  return "";
1292
1348
  });
1293
1349
  continue;
1294
1350
  }
1295
- if (Yt.test(i.stem)) {
1351
+ if (ur.test(i.stem)) {
1296
1352
  t.minimumIntegerDigits = i.stem.length;
1297
1353
  continue;
1298
1354
  }
1299
- if (ft.test(i.stem)) {
1355
+ if (gt.test(i.stem)) {
1300
1356
  if (i.options.length > 1)
1301
1357
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1302
- i.stem.replace(ft, function(l, u, h, f, c, y) {
1303
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1358
+ i.stem.replace(gt, function(c, u, l, f, h, d) {
1359
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1304
1360
  });
1305
1361
  var s = i.options[0];
1306
- s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), mt(s)));
1362
+ s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), bt(s)));
1307
1363
  continue;
1308
1364
  }
1309
- if (Qt.test(i.stem)) {
1310
- t = T(T({}, t), mt(i.stem));
1365
+ if (ar.test(i.stem)) {
1366
+ t = T(T({}, t), bt(i.stem));
1311
1367
  continue;
1312
1368
  }
1313
- var a = Kt(i.stem);
1314
- a && (t = T(T({}, t), a));
1315
- var o = Sn(i.stem);
1369
+ var o = lr(i.stem);
1316
1370
  o && (t = T(T({}, t), o));
1371
+ var a = Sn(i.stem);
1372
+ a && (t = T(T({}, t), a));
1317
1373
  }
1318
1374
  return t;
1319
1375
  }
1320
- var me = {
1376
+ var we = {
1321
1377
  "001": [
1322
1378
  "H",
1323
1379
  "h"
@@ -2738,10 +2794,10 @@ function An(e, t) {
2738
2794
  if (i === "j") {
2739
2795
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2740
2796
  s++, n++;
2741
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Pn(t);
2742
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2743
- r += l;
2744
- for (; a-- > 0; )
2797
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), c = "a", u = Pn(t);
2798
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2799
+ r += c;
2800
+ for (; o-- > 0; )
2745
2801
  r = u + r;
2746
2802
  } else
2747
2803
  i === "J" ? r += "H" : r += i;
@@ -2767,23 +2823,23 @@ function Pn(e) {
2767
2823
  }
2768
2824
  var r = e.language, n;
2769
2825
  r !== "root" && (n = e.maximize().region);
2770
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2826
+ var i = we[n || ""] || we[r || ""] || we["".concat(r, "-001")] || we["001"];
2771
2827
  return i[0];
2772
2828
  }
2773
- var ke, On = new RegExp("^".concat(qt.source, "*")), Cn = new RegExp("".concat(qt.source, "*$"));
2774
- function E(e, t) {
2829
+ var ze, On = new RegExp("^".concat(or.source, "*")), Cn = new RegExp("".concat(or.source, "*$"));
2830
+ function _(e, t) {
2775
2831
  return { start: e, end: t };
2776
2832
  }
2777
- var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, Un = Dn ? Number.isSafeInteger : function(e) {
2833
+ var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Nn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, kn = Dn ? Number.isSafeInteger : function(e) {
2778
2834
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2779
- }, Ze = !0;
2835
+ }, Ke = !0;
2780
2836
  try {
2781
- var kn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2782
- Ze = ((ke = kn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
2837
+ var Un = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2838
+ Ke = ((ze = Un.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
2783
2839
  } catch {
2784
- Ze = !1;
2840
+ Ke = !1;
2785
2841
  }
2786
- var pt = In ? (
2842
+ var _t = In ? (
2787
2843
  // Native
2788
2844
  function(t, r, n) {
2789
2845
  return t.startsWith(r, n);
@@ -2793,31 +2849,31 @@ var pt = In ? (
2793
2849
  function(t, r, n) {
2794
2850
  return t.slice(n, n + r.length) === r;
2795
2851
  }
2796
- ), Je = Nn ? String.fromCodePoint : (
2852
+ ), et = Mn ? String.fromCodePoint : (
2797
2853
  // IE11
2798
2854
  function() {
2799
2855
  for (var t = [], r = 0; r < arguments.length; r++)
2800
2856
  t[r] = arguments[r];
2801
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
2802
- if (a = t[s++], a > 1114111)
2803
- throw RangeError(a + " is not a valid code point");
2804
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2857
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2858
+ if (o = t[s++], o > 1114111)
2859
+ throw RangeError(o + " is not a valid code point");
2860
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2805
2861
  }
2806
2862
  return n;
2807
2863
  }
2808
- ), gt = (
2864
+ ), vt = (
2809
2865
  // native
2810
- Mn ? Object.fromEntries : (
2866
+ Nn ? Object.fromEntries : (
2811
2867
  // Ponyfill
2812
2868
  function(t) {
2813
2869
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2814
- var s = i[n], a = s[0], o = s[1];
2815
- r[a] = o;
2870
+ var s = i[n], o = s[0], a = s[1];
2871
+ r[o] = a;
2816
2872
  }
2817
2873
  return r;
2818
2874
  }
2819
2875
  )
2820
- ), er = Ln ? (
2876
+ ), hr = Ln ? (
2821
2877
  // Native
2822
2878
  function(t, r) {
2823
2879
  return t.codePointAt(r);
@@ -2852,27 +2908,27 @@ var pt = In ? (
2852
2908
  return t.replace(Cn, "");
2853
2909
  }
2854
2910
  );
2855
- function tr(e, t) {
2911
+ function cr(e, t) {
2856
2912
  return new RegExp(e, t);
2857
2913
  }
2858
- var qe;
2859
- if (Ze) {
2860
- var bt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2861
- qe = function(t, r) {
2914
+ var tt;
2915
+ if (Ke) {
2916
+ var Et = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2917
+ tt = function(t, r) {
2862
2918
  var n;
2863
- bt.lastIndex = r;
2864
- var i = bt.exec(t);
2919
+ Et.lastIndex = r;
2920
+ var i = Et.exec(t);
2865
2921
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2866
2922
  };
2867
2923
  } else
2868
- qe = function(t, r) {
2924
+ tt = function(t, r) {
2869
2925
  for (var n = []; ; ) {
2870
- var i = er(t, r);
2871
- if (i === void 0 || rr(i) || Xn(i))
2926
+ var i = hr(t, r);
2927
+ if (i === void 0 || fr(i) || Xn(i))
2872
2928
  break;
2873
2929
  n.push(i), r += i >= 65536 ? 2 : 1;
2874
2930
  }
2875
- return Je.apply(void 0, n);
2931
+ return et.apply(void 0, n);
2876
2932
  };
2877
2933
  var jn = (
2878
2934
  /** @class */
@@ -2888,33 +2944,33 @@ var jn = (
2888
2944
  for (var i = []; !this.isEOF(); ) {
2889
2945
  var s = this.char();
2890
2946
  if (s === 123) {
2891
- var a = this.parseArgument(t, n);
2892
- if (a.err)
2893
- return a;
2894
- i.push(a.val);
2947
+ var o = this.parseArgument(t, n);
2948
+ if (o.err)
2949
+ return o;
2950
+ i.push(o.val);
2895
2951
  } else {
2896
2952
  if (s === 125 && t > 0)
2897
2953
  break;
2898
2954
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2899
- var o = this.clonePosition();
2955
+ var a = this.clonePosition();
2900
2956
  this.bump(), i.push({
2901
- type: x.pound,
2902
- location: E(o, this.clonePosition())
2957
+ type: w.pound,
2958
+ location: _(a, this.clonePosition())
2903
2959
  });
2904
2960
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2905
2961
  if (n)
2906
2962
  break;
2907
- return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
2908
- } else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
2909
- var a = this.parseTag(t, r);
2910
- if (a.err)
2911
- return a;
2912
- i.push(a.val);
2963
+ return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2964
+ } else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
2965
+ var o = this.parseTag(t, r);
2966
+ if (o.err)
2967
+ return o;
2968
+ i.push(o.val);
2913
2969
  } else {
2914
- var a = this.parseLiteral(t, r);
2915
- if (a.err)
2916
- return a;
2917
- i.push(a.val);
2970
+ var o = this.parseLiteral(t, r);
2971
+ if (o.err)
2972
+ return o;
2973
+ i.push(o.val);
2918
2974
  }
2919
2975
  }
2920
2976
  }
@@ -2926,9 +2982,9 @@ var jn = (
2926
2982
  if (this.bumpSpace(), this.bumpIf("/>"))
2927
2983
  return {
2928
2984
  val: {
2929
- type: x.literal,
2985
+ type: w.literal,
2930
2986
  value: "<".concat(i, "/>"),
2931
- location: E(n, this.clonePosition())
2987
+ location: _(n, this.clonePosition())
2932
2988
  },
2933
2989
  err: null
2934
2990
  };
@@ -2936,24 +2992,24 @@ var jn = (
2936
2992
  var s = this.parseMessage(t + 1, r, !0);
2937
2993
  if (s.err)
2938
2994
  return s;
2939
- var a = s.val, o = this.clonePosition();
2995
+ var o = s.val, a = this.clonePosition();
2940
2996
  if (this.bumpIf("</")) {
2941
- if (this.isEOF() || !Qe(this.char()))
2942
- return this.error(_.INVALID_TAG, E(o, this.clonePosition()));
2943
- var l = this.clonePosition(), u = this.parseTagName();
2944
- return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2997
+ if (this.isEOF() || !rt(this.char()))
2998
+ return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
2999
+ var c = this.clonePosition(), u = this.parseTagName();
3000
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2945
3001
  val: {
2946
- type: x.tag,
3002
+ type: w.tag,
2947
3003
  value: i,
2948
- children: a,
2949
- location: E(n, this.clonePosition())
3004
+ children: o,
3005
+ location: _(n, this.clonePosition())
2950
3006
  },
2951
3007
  err: null
2952
- } : this.error(_.INVALID_TAG, E(o, this.clonePosition())));
3008
+ } : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
2953
3009
  } else
2954
- return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
3010
+ return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
2955
3011
  } else
2956
- return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
3012
+ return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2957
3013
  }, e.prototype.parseTagName = function() {
2958
3014
  var t = this.offset();
2959
3015
  for (this.bump(); !this.isEOF() && Vn(this.char()); )
@@ -2966,21 +3022,21 @@ var jn = (
2966
3022
  i += s;
2967
3023
  continue;
2968
3024
  }
2969
- var a = this.tryParseUnquoted(t, r);
2970
- if (a) {
2971
- i += a;
2972
- continue;
2973
- }
2974
- var o = this.tryParseLeftAngleBracket();
3025
+ var o = this.tryParseUnquoted(t, r);
2975
3026
  if (o) {
2976
3027
  i += o;
2977
3028
  continue;
2978
3029
  }
3030
+ var a = this.tryParseLeftAngleBracket();
3031
+ if (a) {
3032
+ i += a;
3033
+ continue;
3034
+ }
2979
3035
  break;
2980
3036
  }
2981
- var l = E(n, this.clonePosition());
3037
+ var c = _(n, this.clonePosition());
2982
3038
  return {
2983
- val: { type: x.literal, value: i, location: l },
3039
+ val: { type: w.literal, value: i, location: c },
2984
3040
  err: null
2985
3041
  };
2986
3042
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -3019,49 +3075,49 @@ var jn = (
3019
3075
  r.push(n);
3020
3076
  this.bump();
3021
3077
  }
3022
- return Je.apply(void 0, r);
3078
+ return et.apply(void 0, r);
3023
3079
  }, e.prototype.tryParseUnquoted = function(t, r) {
3024
3080
  if (this.isEOF())
3025
3081
  return null;
3026
3082
  var n = this.char();
3027
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
3083
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
3028
3084
  }, e.prototype.parseArgument = function(t, r) {
3029
3085
  var n = this.clonePosition();
3030
3086
  if (this.bump(), this.bumpSpace(), this.isEOF())
3031
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3087
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3032
3088
  if (this.char() === 125)
3033
- return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
3089
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
3034
3090
  var i = this.parseIdentifierIfPossible().value;
3035
3091
  if (!i)
3036
- return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3092
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3037
3093
  if (this.bumpSpace(), this.isEOF())
3038
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3094
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3039
3095
  switch (this.char()) {
3040
3096
  case 125:
3041
3097
  return this.bump(), {
3042
3098
  val: {
3043
- type: x.argument,
3099
+ type: w.argument,
3044
3100
  // value does not include the opening and closing braces.
3045
3101
  value: i,
3046
- location: E(n, this.clonePosition())
3102
+ location: _(n, this.clonePosition())
3047
3103
  },
3048
3104
  err: null
3049
3105
  };
3050
3106
  case 44:
3051
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3107
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3052
3108
  default:
3053
- return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3109
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3054
3110
  }
3055
3111
  }, e.prototype.parseIdentifierIfPossible = function() {
3056
- var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3112
+ var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
3057
3113
  this.bumpTo(i);
3058
- var s = this.clonePosition(), a = E(t, s);
3059
- return { value: n, location: a };
3114
+ var s = this.clonePosition(), o = _(t, s);
3115
+ return { value: n, location: o };
3060
3116
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3061
- var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3062
- switch (o) {
3117
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
3118
+ switch (a) {
3063
3119
  case "":
3064
- return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
3120
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, c));
3065
3121
  case "number":
3066
3122
  case "date":
3067
3123
  case "time": {
@@ -3069,47 +3125,47 @@ var jn = (
3069
3125
  var u = null;
3070
3126
  if (this.bumpIf(",")) {
3071
3127
  this.bumpSpace();
3072
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3128
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3073
3129
  if (f.err)
3074
3130
  return f;
3075
- var c = Fn(f.val);
3076
- if (c.length === 0)
3077
- return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
3078
- var y = E(h, this.clonePosition());
3079
- u = { style: c, styleLocation: y };
3131
+ var h = Fn(f.val);
3132
+ if (h.length === 0)
3133
+ return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3134
+ var d = _(l, this.clonePosition());
3135
+ u = { style: h, styleLocation: d };
3080
3136
  }
3081
- var m = this.tryParseArgumentClose(i);
3082
- if (m.err)
3083
- return m;
3084
- var b = E(i, this.clonePosition());
3085
- if (u && pt(u?.style, "::", 0)) {
3086
- var p = Gn(u.style.slice(2));
3087
- if (o === "number") {
3088
- var f = this.parseNumberSkeletonFromString(p, u.styleLocation);
3137
+ var g = this.tryParseArgumentClose(i);
3138
+ if (g.err)
3139
+ return g;
3140
+ var b = _(i, this.clonePosition());
3141
+ if (u && _t(u?.style, "::", 0)) {
3142
+ var E = Gn(u.style.slice(2));
3143
+ if (a === "number") {
3144
+ var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
3089
3145
  return f.err ? f : {
3090
- val: { type: x.number, value: n, location: b, style: f.val },
3146
+ val: { type: w.number, value: n, location: b, style: f.val },
3091
3147
  err: null
3092
3148
  };
3093
3149
  } else {
3094
- if (p.length === 0)
3095
- return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
3096
- var d = p;
3097
- this.locale && (d = An(p, this.locale));
3098
- var c = {
3099
- type: J.dateTime,
3100
- pattern: d,
3150
+ if (E.length === 0)
3151
+ return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
3152
+ var x = E;
3153
+ this.locale && (x = An(E, this.locale));
3154
+ var h = {
3155
+ type: Q.dateTime,
3156
+ pattern: x,
3101
3157
  location: u.styleLocation,
3102
- parsedOptions: this.shouldParseSkeletons ? vn(d) : {}
3103
- }, v = o === "date" ? x.date : x.time;
3158
+ parsedOptions: this.shouldParseSkeletons ? En(x) : {}
3159
+ }, p = a === "date" ? w.date : w.time;
3104
3160
  return {
3105
- val: { type: v, value: n, location: b, style: c },
3161
+ val: { type: p, value: n, location: b, style: h },
3106
3162
  err: null
3107
3163
  };
3108
3164
  }
3109
3165
  }
3110
3166
  return {
3111
3167
  val: {
3112
- type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3168
+ type: a === "number" ? w.number : a === "date" ? w.date : w.time,
3113
3169
  value: n,
3114
3170
  location: b,
3115
3171
  style: (s = u?.style) !== null && s !== void 0 ? s : null
@@ -3120,52 +3176,52 @@ var jn = (
3120
3176
  case "plural":
3121
3177
  case "selectordinal":
3122
3178
  case "select": {
3123
- var g = this.clonePosition();
3179
+ var m = this.clonePosition();
3124
3180
  if (this.bumpSpace(), !this.bumpIf(","))
3125
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(g, He({}, g)));
3181
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(m, Ce({}, m)));
3126
3182
  this.bumpSpace();
3127
- var w = this.parseIdentifierIfPossible(), H = 0;
3128
- if (o !== "select" && w.value === "offset") {
3183
+ var v = this.parseIdentifierIfPossible(), P = 0;
3184
+ if (a !== "select" && v.value === "offset") {
3129
3185
  if (!this.bumpIf(":"))
3130
- return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
3186
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3131
3187
  this.bumpSpace();
3132
- var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3188
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3133
3189
  if (f.err)
3134
3190
  return f;
3135
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), H = f.val;
3191
+ this.bumpSpace(), v = this.parseIdentifierIfPossible(), P = f.val;
3136
3192
  }
3137
- var G = this.tryParsePluralOrSelectOptions(t, o, r, w);
3138
- if (G.err)
3139
- return G;
3140
- var m = this.tryParseArgumentClose(i);
3141
- if (m.err)
3142
- return m;
3143
- var st = E(i, this.clonePosition());
3144
- return o === "select" ? {
3193
+ var $ = this.tryParsePluralOrSelectOptions(t, a, r, v);
3194
+ if ($.err)
3195
+ return $;
3196
+ var g = this.tryParseArgumentClose(i);
3197
+ if (g.err)
3198
+ return g;
3199
+ var H = _(i, this.clonePosition());
3200
+ return a === "select" ? {
3145
3201
  val: {
3146
- type: x.select,
3202
+ type: w.select,
3147
3203
  value: n,
3148
- options: gt(G.val),
3149
- location: st
3204
+ options: vt($.val),
3205
+ location: H
3150
3206
  },
3151
3207
  err: null
3152
3208
  } : {
3153
3209
  val: {
3154
- type: x.plural,
3210
+ type: w.plural,
3155
3211
  value: n,
3156
- options: gt(G.val),
3157
- offset: H,
3158
- pluralType: o === "plural" ? "cardinal" : "ordinal",
3159
- location: st
3212
+ options: vt($.val),
3213
+ offset: P,
3214
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3215
+ location: H
3160
3216
  },
3161
3217
  err: null
3162
3218
  };
3163
3219
  }
3164
3220
  default:
3165
- return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
3221
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, c));
3166
3222
  }
3167
3223
  }, e.prototype.tryParseArgumentClose = function(t) {
3168
- return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3224
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3169
3225
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3170
3226
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3171
3227
  var n = this.char();
@@ -3174,7 +3230,7 @@ var jn = (
3174
3230
  this.bump();
3175
3231
  var i = this.clonePosition();
3176
3232
  if (!this.bumpUntil("'"))
3177
- return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
3233
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3178
3234
  this.bump();
3179
3235
  break;
3180
3236
  }
@@ -3204,13 +3260,13 @@ var jn = (
3204
3260
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3205
3261
  var n = [];
3206
3262
  try {
3207
- n = Tn(t);
3263
+ n = wn(t);
3208
3264
  } catch {
3209
- return this.error(_.INVALID_NUMBER_SKELETON, r);
3265
+ return this.error(y.INVALID_NUMBER_SKELETON, r);
3210
3266
  }
3211
3267
  return {
3212
3268
  val: {
3213
- type: J.number,
3269
+ type: Q.number,
3214
3270
  tokens: n,
3215
3271
  location: r,
3216
3272
  parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
@@ -3218,50 +3274,50 @@ var jn = (
3218
3274
  err: null
3219
3275
  };
3220
3276
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3221
- for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3277
+ for (var s, o = !1, a = [], c = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3222
3278
  if (u.length === 0) {
3223
3279
  var f = this.clonePosition();
3224
3280
  if (r !== "select" && this.bumpIf("=")) {
3225
- var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
3226
- if (c.err)
3227
- return c;
3228
- h = E(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3281
+ var h = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3282
+ if (h.err)
3283
+ return h;
3284
+ l = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3229
3285
  } else
3230
3286
  break;
3231
3287
  }
3232
- if (l.has(u))
3233
- return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3234
- u === "other" && (a = !0), this.bumpSpace();
3235
- var y = this.clonePosition();
3288
+ if (c.has(u))
3289
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3290
+ u === "other" && (o = !0), this.bumpSpace();
3291
+ var d = this.clonePosition();
3236
3292
  if (!this.bumpIf("{"))
3237
- return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
3238
- var m = this.parseMessage(t + 1, r, n);
3239
- if (m.err)
3240
- return m;
3241
- var b = this.tryParseArgumentClose(y);
3293
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3294
+ var g = this.parseMessage(t + 1, r, n);
3295
+ if (g.err)
3296
+ return g;
3297
+ var b = this.tryParseArgumentClose(d);
3242
3298
  if (b.err)
3243
3299
  return b;
3244
- o.push([
3300
+ a.push([
3245
3301
  u,
3246
3302
  {
3247
- value: m.val,
3248
- location: E(y, this.clonePosition())
3303
+ value: g.val,
3304
+ location: _(d, this.clonePosition())
3249
3305
  }
3250
- ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3306
+ ]), c.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
3251
3307
  }
3252
- return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3308
+ return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3253
3309
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3254
3310
  var n = 1, i = this.clonePosition();
3255
3311
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3256
- for (var s = !1, a = 0; !this.isEOF(); ) {
3257
- var o = this.char();
3258
- if (o >= 48 && o <= 57)
3259
- s = !0, a = a * 10 + (o - 48), this.bump();
3312
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3313
+ var a = this.char();
3314
+ if (a >= 48 && a <= 57)
3315
+ s = !0, o = o * 10 + (a - 48), this.bump();
3260
3316
  else
3261
3317
  break;
3262
3318
  }
3263
- var l = E(i, this.clonePosition());
3264
- return s ? (a *= n, Un(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3319
+ var c = _(i, this.clonePosition());
3320
+ return s ? (o *= n, kn(o) ? { val: o, err: null } : this.error(r, c)) : this.error(t, c);
3265
3321
  }, e.prototype.offset = function() {
3266
3322
  return this.position.offset;
3267
3323
  }, e.prototype.isEOF = function() {
@@ -3276,7 +3332,7 @@ var jn = (
3276
3332
  var t = this.position.offset;
3277
3333
  if (t >= this.message.length)
3278
3334
  throw Error("out of bound");
3279
- var r = er(this.message, t);
3335
+ var r = hr(this.message, t);
3280
3336
  if (r === void 0)
3281
3337
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3282
3338
  return r;
@@ -3295,7 +3351,7 @@ var jn = (
3295
3351
  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);
3296
3352
  }
3297
3353
  }, e.prototype.bumpIf = function(t) {
3298
- if (pt(this.message, t, this.offset())) {
3354
+ if (_t(this.message, t, this.offset())) {
3299
3355
  for (var r = 0; r < t.length; r++)
3300
3356
  this.bump();
3301
3357
  return !0;
@@ -3317,7 +3373,7 @@ var jn = (
3317
3373
  break;
3318
3374
  }
3319
3375
  }, e.prototype.bumpSpace = function() {
3320
- for (; !this.isEOF() && rr(this.char()); )
3376
+ for (; !this.isEOF() && fr(this.char()); )
3321
3377
  this.bump();
3322
3378
  }, e.prototype.peek = function() {
3323
3379
  if (this.isEOF())
@@ -3327,47 +3383,47 @@ var jn = (
3327
3383
  }, e;
3328
3384
  }()
3329
3385
  );
3330
- function Qe(e) {
3386
+ function rt(e) {
3331
3387
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3332
3388
  }
3333
3389
  function zn(e) {
3334
- return Qe(e) || e === 47;
3390
+ return rt(e) || e === 47;
3335
3391
  }
3336
3392
  function Vn(e) {
3337
3393
  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;
3338
3394
  }
3339
- function rr(e) {
3395
+ function fr(e) {
3340
3396
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3341
3397
  }
3342
3398
  function Xn(e) {
3343
3399
  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;
3344
3400
  }
3345
- function Ye(e) {
3401
+ function nt(e) {
3346
3402
  e.forEach(function(t) {
3347
- if (delete t.location, Xt(t) || Wt(t))
3403
+ if (delete t.location, rr(t) || nr(t))
3348
3404
  for (var r in t.options)
3349
- delete t.options[r].location, Ye(t.options[r].value);
3405
+ delete t.options[r].location, nt(t.options[r].value);
3350
3406
  else
3351
- jt(t) && Jt(t.style) || (zt(t) || Vt(t)) && We(t.style) ? delete t.style.location : Zt(t) && Ye(t.children);
3407
+ Kt(t) && sr(t.style) || (er(t) || tr(t)) && Ye(t.style) ? delete t.style.location : ir(t) && nt(t.children);
3352
3408
  });
3353
3409
  }
3354
3410
  function Wn(e, t) {
3355
- t === void 0 && (t = {}), t = He({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3411
+ t === void 0 && (t = {}), t = Ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3356
3412
  var r = new jn(e, t).parse();
3357
3413
  if (r.err) {
3358
- var n = SyntaxError(_[r.err.kind]);
3414
+ var n = SyntaxError(y[r.err.kind]);
3359
3415
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3360
3416
  }
3361
- return t?.captureLocation || Ye(r.val), r.val;
3417
+ return t?.captureLocation || nt(r.val), r.val;
3362
3418
  }
3363
- var q;
3419
+ var Y;
3364
3420
  (function(e) {
3365
3421
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3366
- })(q || (q = {}));
3367
- var Ie = (
3422
+ })(Y || (Y = {}));
3423
+ var Re = (
3368
3424
  /** @class */
3369
3425
  function(e) {
3370
- Ce(t, e);
3426
+ $e(t, e);
3371
3427
  function t(r, n, i) {
3372
3428
  var s = e.call(this, r) || this;
3373
3429
  return s.code = n, s.originalMessage = i, s;
@@ -3376,33 +3432,33 @@ var Ie = (
3376
3432
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3377
3433
  }, t;
3378
3434
  }(Error)
3379
- ), yt = (
3435
+ ), xt = (
3380
3436
  /** @class */
3381
3437
  function(e) {
3382
- Ce(t, e);
3438
+ $e(t, e);
3383
3439
  function t(r, n, i, s) {
3384
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
3440
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
3385
3441
  }
3386
3442
  return t;
3387
- }(Ie)
3443
+ }(Re)
3388
3444
  ), Zn = (
3389
3445
  /** @class */
3390
3446
  function(e) {
3391
- Ce(t, e);
3447
+ $e(t, e);
3392
3448
  function t(r, n, i) {
3393
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3449
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3394
3450
  }
3395
3451
  return t;
3396
- }(Ie)
3452
+ }(Re)
3397
3453
  ), Jn = (
3398
3454
  /** @class */
3399
3455
  function(e) {
3400
- Ce(t, e);
3456
+ $e(t, e);
3401
3457
  function t(r, n) {
3402
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3458
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3403
3459
  }
3404
3460
  return t;
3405
- }(Ie)
3461
+ }(Re)
3406
3462
  ), S;
3407
3463
  (function(e) {
3408
3464
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3416,115 +3472,115 @@ function qn(e) {
3416
3472
  function Qn(e) {
3417
3473
  return typeof e == "function";
3418
3474
  }
3419
- function Ee(e, t, r, n, i, s, a) {
3420
- if (e.length === 1 && ct(e[0]))
3475
+ function Se(e, t, r, n, i, s, o) {
3476
+ if (e.length === 1 && pt(e[0]))
3421
3477
  return [
3422
3478
  {
3423
3479
  type: S.literal,
3424
3480
  value: e[0].value
3425
3481
  }
3426
3482
  ];
3427
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3428
- var h = u[l];
3429
- if (ct(h)) {
3430
- o.push({
3483
+ for (var a = [], c = 0, u = e; c < u.length; c++) {
3484
+ var l = u[c];
3485
+ if (pt(l)) {
3486
+ a.push({
3431
3487
  type: S.literal,
3432
- value: h.value
3488
+ value: l.value
3433
3489
  });
3434
3490
  continue;
3435
3491
  }
3436
- if (_n(h)) {
3437
- typeof s == "number" && o.push({
3492
+ if (_n(l)) {
3493
+ typeof s == "number" && a.push({
3438
3494
  type: S.literal,
3439
3495
  value: r.getNumberFormat(t).format(s)
3440
3496
  });
3441
3497
  continue;
3442
3498
  }
3443
- var f = h.value;
3499
+ var f = l.value;
3444
3500
  if (!(i && f in i))
3445
- throw new Jn(f, a);
3446
- var c = i[f];
3447
- if (yn(h)) {
3448
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3449
- type: typeof c == "string" ? S.literal : S.object,
3450
- value: c
3501
+ throw new Jn(f, o);
3502
+ var h = i[f];
3503
+ if (yn(l)) {
3504
+ (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
3505
+ type: typeof h == "string" ? S.literal : S.object,
3506
+ value: h
3451
3507
  });
3452
3508
  continue;
3453
3509
  }
3454
- if (zt(h)) {
3455
- var y = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
3456
- o.push({
3510
+ if (er(l)) {
3511
+ var d = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
3512
+ a.push({
3457
3513
  type: S.literal,
3458
- value: r.getDateTimeFormat(t, y).format(c)
3514
+ value: r.getDateTimeFormat(t, d).format(h)
3459
3515
  });
3460
3516
  continue;
3461
3517
  }
3462
- if (Vt(h)) {
3463
- var y = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
3464
- o.push({
3518
+ if (tr(l)) {
3519
+ var d = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
3520
+ a.push({
3465
3521
  type: S.literal,
3466
- value: r.getDateTimeFormat(t, y).format(c)
3522
+ value: r.getDateTimeFormat(t, d).format(h)
3467
3523
  });
3468
3524
  continue;
3469
3525
  }
3470
- if (jt(h)) {
3471
- var y = typeof h.style == "string" ? n.number[h.style] : Jt(h.style) ? h.style.parsedOptions : void 0;
3472
- y && y.scale && (c = c * (y.scale || 1)), o.push({
3526
+ if (Kt(l)) {
3527
+ var d = typeof l.style == "string" ? n.number[l.style] : sr(l.style) ? l.style.parsedOptions : void 0;
3528
+ d && d.scale && (h = h * (d.scale || 1)), a.push({
3473
3529
  type: S.literal,
3474
- value: r.getNumberFormat(t, y).format(c)
3530
+ value: r.getNumberFormat(t, d).format(h)
3475
3531
  });
3476
3532
  continue;
3477
3533
  }
3478
- if (Zt(h)) {
3479
- var m = h.children, b = h.value, p = i[b];
3480
- if (!Qn(p))
3481
- throw new Zn(b, "function", a);
3482
- var d = Ee(m, t, r, n, i, s), v = p(d.map(function(H) {
3483
- return H.value;
3534
+ if (ir(l)) {
3535
+ var g = l.children, b = l.value, E = i[b];
3536
+ if (!Qn(E))
3537
+ throw new Zn(b, "function", o);
3538
+ var x = Se(g, t, r, n, i, s), p = E(x.map(function(P) {
3539
+ return P.value;
3484
3540
  }));
3485
- Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(H) {
3541
+ Array.isArray(p) || (p = [p]), a.push.apply(a, p.map(function(P) {
3486
3542
  return {
3487
- type: typeof H == "string" ? S.literal : S.object,
3488
- value: H
3543
+ type: typeof P == "string" ? S.literal : S.object,
3544
+ value: P
3489
3545
  };
3490
3546
  }));
3491
3547
  }
3492
- if (Xt(h)) {
3493
- var g = h.options[c] || h.options.other;
3494
- if (!g)
3495
- throw new yt(h.value, c, Object.keys(h.options), a);
3496
- o.push.apply(o, Ee(g.value, t, r, n, i));
3548
+ if (rr(l)) {
3549
+ var m = l.options[h] || l.options.other;
3550
+ if (!m)
3551
+ throw new xt(l.value, h, Object.keys(l.options), o);
3552
+ a.push.apply(a, Se(m.value, t, r, n, i));
3497
3553
  continue;
3498
3554
  }
3499
- if (Wt(h)) {
3500
- var g = h.options["=".concat(c)];
3501
- if (!g) {
3555
+ if (nr(l)) {
3556
+ var m = l.options["=".concat(h)];
3557
+ if (!m) {
3502
3558
  if (!Intl.PluralRules)
3503
- throw new Ie(`Intl.PluralRules is not available in this environment.
3559
+ throw new Re(`Intl.PluralRules is not available in this environment.
3504
3560
  Try polyfilling it using "@formatjs/intl-pluralrules"
3505
- `, q.MISSING_INTL_API, a);
3506
- var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3507
- g = h.options[w] || h.options.other;
3561
+ `, Y.MISSING_INTL_API, o);
3562
+ var v = r.getPluralRules(t, { type: l.pluralType }).select(h - (l.offset || 0));
3563
+ m = l.options[v] || l.options.other;
3508
3564
  }
3509
- if (!g)
3510
- throw new yt(h.value, c, Object.keys(h.options), a);
3511
- o.push.apply(o, Ee(g.value, t, r, n, i, c - (h.offset || 0)));
3565
+ if (!m)
3566
+ throw new xt(l.value, h, Object.keys(l.options), o);
3567
+ a.push.apply(a, Se(m.value, t, r, n, i, h - (l.offset || 0)));
3512
3568
  continue;
3513
3569
  }
3514
3570
  }
3515
- return qn(o);
3571
+ return qn(a);
3516
3572
  }
3517
3573
  function Yn(e, t) {
3518
- return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3519
- return r[n] = O(O({}, e[n]), t[n] || {}), r;
3574
+ return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3575
+ return r[n] = I(I({}, e[n]), t[n] || {}), r;
3520
3576
  }, {})) : e;
3521
3577
  }
3522
3578
  function Kn(e, t) {
3523
3579
  return t ? Object.keys(e).reduce(function(r, n) {
3524
3580
  return r[n] = Yn(e[n], t[n]), r;
3525
- }, O({}, e)) : e;
3581
+ }, I({}, e)) : e;
3526
3582
  }
3527
- function Ge(e) {
3583
+ function Ve(e) {
3528
3584
  return {
3529
3585
  create: function() {
3530
3586
  return {
@@ -3544,33 +3600,33 @@ function ei(e) {
3544
3600
  dateTime: {},
3545
3601
  pluralRules: {}
3546
3602
  }), {
3547
- getNumberFormat: De(function() {
3603
+ getNumberFormat: Fe(function() {
3548
3604
  for (var t, r = [], n = 0; n < arguments.length; n++)
3549
3605
  r[n] = arguments[n];
3550
- return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
3606
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
3551
3607
  }, {
3552
- cache: Ge(e.number),
3553
- strategy: Ue.variadic
3608
+ cache: Ve(e.number),
3609
+ strategy: je.variadic
3554
3610
  }),
3555
- getDateTimeFormat: De(function() {
3611
+ getDateTimeFormat: Fe(function() {
3556
3612
  for (var t, r = [], n = 0; n < arguments.length; n++)
3557
3613
  r[n] = arguments[n];
3558
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
3614
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
3559
3615
  }, {
3560
- cache: Ge(e.dateTime),
3561
- strategy: Ue.variadic
3616
+ cache: Ve(e.dateTime),
3617
+ strategy: je.variadic
3562
3618
  }),
3563
- getPluralRules: De(function() {
3619
+ getPluralRules: Fe(function() {
3564
3620
  for (var t, r = [], n = 0; n < arguments.length; n++)
3565
3621
  r[n] = arguments[n];
3566
- return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
3622
+ return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
3567
3623
  }, {
3568
- cache: Ge(e.pluralRules),
3569
- strategy: Ue.variadic
3624
+ cache: Ve(e.pluralRules),
3625
+ strategy: je.variadic
3570
3626
  })
3571
3627
  };
3572
3628
  }
3573
- var nr = (
3629
+ var mr = (
3574
3630
  /** @class */
3575
3631
  function() {
3576
3632
  function e(t, r, n, i) {
@@ -3580,30 +3636,30 @@ var nr = (
3580
3636
  number: {},
3581
3637
  dateTime: {},
3582
3638
  pluralRules: {}
3583
- }, this.format = function(l) {
3584
- var u = s.formatToParts(l);
3639
+ }, this.format = function(c) {
3640
+ var u = s.formatToParts(c);
3585
3641
  if (u.length === 1)
3586
3642
  return u[0].value;
3587
- var h = u.reduce(function(f, c) {
3588
- return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3643
+ var l = u.reduce(function(f, h) {
3644
+ return !f.length || h.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
3589
3645
  }, []);
3590
- return h.length <= 1 ? h[0] || "" : h;
3591
- }, this.formatToParts = function(l) {
3592
- return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3646
+ return l.length <= 1 ? l[0] || "" : l;
3647
+ }, this.formatToParts = function(c) {
3648
+ return Se(s.ast, s.locales, s.formatters, s.formats, c, void 0, s.message);
3593
3649
  }, this.resolvedOptions = function() {
3594
- var l;
3650
+ var c;
3595
3651
  return {
3596
- locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3652
+ locale: ((c = s.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3597
3653
  };
3598
3654
  }, this.getAst = function() {
3599
3655
  return s.ast;
3600
3656
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3601
3657
  if (this.message = t, !e.__parse)
3602
3658
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3603
- var a = i || {};
3604
- a.formatters;
3605
- var o = hn(a, ["formatters"]);
3606
- this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3659
+ var o = i || {};
3660
+ o.formatters;
3661
+ var a = hn(o, ["formatters"]);
3662
+ this.ast = e.__parse(t, I(I({}, a), { locale: this.resolvedLocale }));
3607
3663
  } else
3608
3664
  this.ast = t;
3609
3665
  if (!Array.isArray(this.ast))
@@ -3703,28 +3759,28 @@ function ti(e, t) {
3703
3759
  n = void 0;
3704
3760
  return n;
3705
3761
  }
3706
- const L = {}, ri = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), ir = (e, t) => {
3762
+ const D = {}, ri = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), dr = (e, t) => {
3707
3763
  if (t == null)
3708
3764
  return;
3709
- if (t in L && e in L[t])
3710
- return L[t][e];
3711
- const r = le(t);
3765
+ if (t in D && e in D[t])
3766
+ return D[t][e];
3767
+ const r = me(t);
3712
3768
  for (let n = 0; n < r.length; n++) {
3713
3769
  const i = r[n], s = ii(i, e);
3714
3770
  if (s)
3715
3771
  return ri(e, t, s);
3716
3772
  }
3717
3773
  };
3718
- let nt;
3719
- const ue = Oe({});
3774
+ let lt;
3775
+ const fe = Le({});
3720
3776
  function ni(e) {
3721
- return nt[e] || null;
3777
+ return lt[e] || null;
3722
3778
  }
3723
- function sr(e) {
3724
- return e in nt;
3779
+ function pr(e) {
3780
+ return e in lt;
3725
3781
  }
3726
3782
  function ii(e, t) {
3727
- if (!sr(e))
3783
+ if (!pr(e))
3728
3784
  return null;
3729
3785
  const r = ni(e);
3730
3786
  return ti(r, t);
@@ -3732,68 +3788,68 @@ function ii(e, t) {
3732
3788
  function si(e) {
3733
3789
  if (e == null)
3734
3790
  return;
3735
- const t = le(e);
3791
+ const t = me(e);
3736
3792
  for (let r = 0; r < t.length; r++) {
3737
3793
  const n = t[r];
3738
- if (sr(n))
3794
+ if (pr(n))
3739
3795
  return n;
3740
3796
  }
3741
3797
  }
3742
- function or(e, ...t) {
3743
- delete L[e], ue.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
3798
+ function gr(e, ...t) {
3799
+ delete D[e], fe.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
3744
3800
  }
3745
- Y(
3746
- [ue],
3801
+ ee(
3802
+ [fe],
3747
3803
  ([e]) => Object.keys(e)
3748
3804
  );
3749
- ue.subscribe((e) => nt = e);
3750
- const ve = {};
3805
+ fe.subscribe((e) => lt = e);
3806
+ const Be = {};
3751
3807
  function oi(e, t) {
3752
- ve[e].delete(t), ve[e].size === 0 && delete ve[e];
3808
+ Be[e].delete(t), Be[e].size === 0 && delete Be[e];
3753
3809
  }
3754
- function ar(e) {
3755
- return ve[e];
3810
+ function br(e) {
3811
+ return Be[e];
3756
3812
  }
3757
3813
  function ai(e) {
3758
- return le(e).map((t) => {
3759
- const r = ar(t);
3814
+ return me(e).map((t) => {
3815
+ const r = br(t);
3760
3816
  return [t, r ? [...r] : []];
3761
3817
  }).filter(([, t]) => t.length > 0);
3762
3818
  }
3763
- function Se(e) {
3764
- return e == null ? !1 : le(e).some(
3819
+ function Ie(e) {
3820
+ return e == null ? !1 : me(e).some(
3765
3821
  (t) => {
3766
3822
  var r;
3767
- return (r = ar(t)) == null ? void 0 : r.size;
3823
+ return (r = br(t)) == null ? void 0 : r.size;
3768
3824
  }
3769
3825
  );
3770
3826
  }
3771
3827
  function ui(e, t) {
3772
3828
  return Promise.all(
3773
3829
  t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
3774
- ).then((n) => or(e, ...n));
3830
+ ).then((n) => gr(e, ...n));
3775
3831
  }
3776
- const te = {};
3777
- function ur(e) {
3778
- if (!Se(e))
3779
- return e in te ? te[e] : Promise.resolve();
3832
+ const ne = {};
3833
+ function yr(e) {
3834
+ if (!Ie(e))
3835
+ return e in ne ? ne[e] : Promise.resolve();
3780
3836
  const t = ai(e);
3781
- return te[e] = Promise.all(
3837
+ return ne[e] = Promise.all(
3782
3838
  t.map(
3783
3839
  ([r, n]) => ui(r, n)
3784
3840
  )
3785
3841
  ).then(() => {
3786
- if (Se(e))
3787
- return ur(e);
3788
- delete te[e];
3789
- }), te[e];
3842
+ if (Ie(e))
3843
+ return yr(e);
3844
+ delete ne[e];
3845
+ }), ne[e];
3790
3846
  }
3791
- var _t = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, ci = (e, t) => {
3847
+ var wt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, ci = (e, t) => {
3792
3848
  var r = {};
3793
3849
  for (var n in e)
3794
3850
  li.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3795
- if (e != null && _t)
3796
- for (var n of _t(e))
3851
+ if (e != null && wt)
3852
+ for (var n of wt(e))
3797
3853
  t.indexOf(n) < 0 && hi.call(e, n) && (r[n] = e[n]);
3798
3854
  return r;
3799
3855
  };
@@ -3829,9 +3885,9 @@ const fi = {
3829
3885
  };
3830
3886
  function mi({ locale: e, id: t }) {
3831
3887
  console.warn(
3832
- `[svelte-i18n] The message "${t}" was not found in "${le(
3888
+ `[svelte-i18n] The message "${t}" was not found in "${me(
3833
3889
  e
3834
- ).join('", "')}".${Se($()) ? `
3890
+ ).join('", "')}".${Ie(U()) ? `
3835
3891
 
3836
3892
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3837
3893
  );
@@ -3843,16 +3899,16 @@ const di = {
3843
3899
  warnOnMissingMessages: !0,
3844
3900
  handleMissingMessage: void 0,
3845
3901
  ignoreTag: !0
3846
- }, re = di;
3847
- function Q() {
3848
- return re;
3902
+ }, ie = di;
3903
+ function K() {
3904
+ return ie;
3849
3905
  }
3850
3906
  function pi(e) {
3851
3907
  const t = e, { formats: r } = t, n = ci(t, ["formats"]);
3852
3908
  let i = e.fallbackLocale;
3853
3909
  if (e.initialLocale)
3854
3910
  try {
3855
- nr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3911
+ mr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3856
3912
  } catch {
3857
3913
  console.warn(
3858
3914
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
@@ -3860,169 +3916,171 @@ function pi(e) {
3860
3916
  }
3861
3917
  return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = mi : console.warn(
3862
3918
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3863
- )), Object.assign(re, n, { initialLocale: i }), r && ("number" in r && Object.assign(re.formats.number, r.number), "date" in r && Object.assign(re.formats.date, r.date), "time" in r && Object.assign(re.formats.time, r.time)), k.set(i);
3919
+ )), Object.assign(ie, n, { initialLocale: i }), r && ("number" in r && Object.assign(ie.formats.number, r.number), "date" in r && Object.assign(ie.formats.date, r.date), "time" in r && Object.assign(ie.formats.time, r.time)), j.set(i);
3864
3920
  }
3865
- const Fe = Oe(!1);
3866
- var gi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
3921
+ const Xe = Le(!1);
3922
+ var gi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
3867
3923
  for (var r in t || (t = {}))
3868
- _i.call(t, r) && vt(e, r, t[r]);
3869
- if (Et)
3870
- for (var r of Et(t))
3871
- Ei.call(t, r) && vt(e, r, t[r]);
3924
+ _i.call(t, r) && Ht(e, r, t[r]);
3925
+ if (Tt)
3926
+ for (var r of Tt(t))
3927
+ vi.call(t, r) && Ht(e, r, t[r]);
3872
3928
  return e;
3873
3929
  }, xi = (e, t) => bi(e, yi(t));
3874
- let Ke;
3875
- const Be = Oe(null);
3876
- function xt(e) {
3930
+ let it;
3931
+ const Me = Le(null);
3932
+ function St(e) {
3877
3933
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3878
3934
  }
3879
- function le(e, t = Q().fallbackLocale) {
3880
- const r = xt(e);
3881
- return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
3935
+ function me(e, t = K().fallbackLocale) {
3936
+ const r = St(e);
3937
+ return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
3882
3938
  }
3883
- function $() {
3884
- return Ke ?? void 0;
3939
+ function U() {
3940
+ return it ?? void 0;
3885
3941
  }
3886
- Be.subscribe((e) => {
3887
- Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3942
+ Me.subscribe((e) => {
3943
+ it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3888
3944
  });
3889
- const Ti = (e) => {
3890
- if (e && si(e) && Se(e)) {
3891
- const { loadingDelay: t } = Q();
3945
+ const wi = (e) => {
3946
+ if (e && si(e) && Ie(e)) {
3947
+ const { loadingDelay: t } = K();
3892
3948
  let r;
3893
- return typeof window < "u" && $() != null && t ? r = window.setTimeout(
3894
- () => Fe.set(!0),
3949
+ return typeof window < "u" && U() != null && t ? r = window.setTimeout(
3950
+ () => Xe.set(!0),
3895
3951
  t
3896
- ) : Fe.set(!0), ur(e).then(() => {
3897
- Be.set(e);
3952
+ ) : Xe.set(!0), yr(e).then(() => {
3953
+ Me.set(e);
3898
3954
  }).finally(() => {
3899
- clearTimeout(r), Fe.set(!1);
3955
+ clearTimeout(r), Xe.set(!1);
3900
3956
  });
3901
3957
  }
3902
- return Be.set(e);
3903
- }, k = xi(vi({}, Be), {
3904
- set: Ti
3905
- }), Ne = (e) => {
3958
+ return Me.set(e);
3959
+ }, j = xi(Ei({}, Me), {
3960
+ set: wi
3961
+ }), De = (e) => {
3906
3962
  const t = /* @__PURE__ */ Object.create(null);
3907
3963
  return (n) => {
3908
3964
  const i = JSON.stringify(n);
3909
3965
  return i in t ? t[i] : t[i] = e(n);
3910
3966
  };
3911
3967
  };
3912
- var wi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
3968
+ var Ti = Object.defineProperty, Ne = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
3913
3969
  for (var r in t || (t = {}))
3914
- lr.call(t, r) && Tt(e, r, t[r]);
3915
- if (Ae)
3916
- for (var r of Ae(t))
3917
- hr.call(t, r) && Tt(e, r, t[r]);
3970
+ _r.call(t, r) && Bt(e, r, t[r]);
3971
+ if (Ne)
3972
+ for (var r of Ne(t))
3973
+ vr.call(t, r) && Bt(e, r, t[r]);
3918
3974
  return e;
3919
- }, K = (e, t) => {
3975
+ }, te = (e, t) => {
3920
3976
  var r = {};
3921
3977
  for (var n in e)
3922
- lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3923
- if (e != null && Ae)
3924
- for (var n of Ae(e))
3925
- t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
3978
+ _r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3979
+ if (e != null && Ne)
3980
+ for (var n of Ne(e))
3981
+ t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
3926
3982
  return r;
3927
3983
  };
3928
- const oe = (e, t) => {
3929
- const { formats: r } = Q();
3984
+ const le = (e, t) => {
3985
+ const { formats: r } = K();
3930
3986
  if (e in r && t in r[e])
3931
3987
  return r[e][t];
3932
3988
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3933
- }, Hi = Ne(
3989
+ }, Hi = De(
3934
3990
  (e) => {
3935
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3991
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3936
3992
  if (r == null)
3937
3993
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3938
- return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3994
+ return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
3939
3995
  }
3940
- ), Si = Ne(
3996
+ ), Si = De(
3941
3997
  (e) => {
3942
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3998
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3943
3999
  if (r == null)
3944
4000
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3945
- return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4001
+ return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
3946
4002
  }
3947
- ), Bi = Ne(
4003
+ ), Bi = De(
3948
4004
  (e) => {
3949
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4005
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3950
4006
  if (r == null)
3951
4007
  throw new Error(
3952
4008
  '[svelte-i18n] A "locale" must be set to format time values'
3953
4009
  );
3954
- return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4010
+ return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
3955
4011
  }
3956
4012
  ), Ai = (e = {}) => {
3957
4013
  var t = e, {
3958
- locale: r = $()
3959
- } = t, n = K(t, [
4014
+ locale: r = U()
4015
+ } = t, n = te(t, [
3960
4016
  "locale"
3961
4017
  ]);
3962
- return Hi(it({ locale: r }, n));
4018
+ return Hi(ht({ locale: r }, n));
3963
4019
  }, Pi = (e = {}) => {
3964
4020
  var t = e, {
3965
- locale: r = $()
3966
- } = t, n = K(t, [
4021
+ locale: r = U()
4022
+ } = t, n = te(t, [
3967
4023
  "locale"
3968
4024
  ]);
3969
- return Si(it({ locale: r }, n));
4025
+ return Si(ht({ locale: r }, n));
3970
4026
  }, Oi = (e = {}) => {
3971
4027
  var t = e, {
3972
- locale: r = $()
3973
- } = t, n = K(t, [
4028
+ locale: r = U()
4029
+ } = t, n = te(t, [
3974
4030
  "locale"
3975
4031
  ]);
3976
- return Bi(it({ locale: r }, n));
3977
- }, Ci = Ne(
4032
+ return Bi(ht({ locale: r }, n));
4033
+ }, Ci = De(
3978
4034
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3979
- (e, t = $()) => new nr(e, t, Q().formats, {
3980
- ignoreTag: Q().ignoreTag
4035
+ (e, t = U()) => new mr(e, t, K().formats, {
4036
+ ignoreTag: K().ignoreTag
3981
4037
  })
3982
4038
  ), Ii = (e, t = {}) => {
3983
4039
  var r, n, i, s;
3984
- let a = t;
3985
- typeof e == "object" && (a = e, e = a.id);
4040
+ let o = t;
4041
+ typeof e == "object" && (o = e, e = o.id);
3986
4042
  const {
3987
- values: o,
3988
- locale: l = $(),
4043
+ values: a,
4044
+ locale: c = U(),
3989
4045
  default: u
3990
- } = a;
3991
- if (l == null)
4046
+ } = o;
4047
+ if (c == null)
3992
4048
  throw new Error(
3993
4049
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3994
4050
  );
3995
- let h = ir(e, l);
3996
- if (!h)
3997
- 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;
3998
- else if (typeof h != "string")
4051
+ let l = dr(e, c);
4052
+ if (!l)
4053
+ l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4054
+ else if (typeof l != "string")
3999
4055
  return console.warn(
4000
- `[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.`
4001
- ), h;
4002
- if (!o)
4003
- return h;
4004
- let f = h;
4056
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4057
+ ), l;
4058
+ if (!a)
4059
+ return l;
4060
+ let f = l;
4005
4061
  try {
4006
- f = Ci(h, l).format(o);
4007
- } catch (c) {
4008
- c instanceof Error && console.warn(
4062
+ f = Ci(l, c).format(a);
4063
+ } catch (h) {
4064
+ h instanceof Error && console.warn(
4009
4065
  `[svelte-i18n] Message "${e}" has syntax error:`,
4010
- c.message
4066
+ h.message
4011
4067
  );
4012
4068
  }
4013
4069
  return f;
4014
- }, Ni = (e, t) => Oi(t).format(e), Mi = (e, t) => Pi(t).format(e), Li = (e, t) => Ai(t).format(e), $i = (e, t = $()) => ir(e, t), Ri = Y([k, ue], () => Ii);
4015
- Y([k], () => Ni);
4016
- Y([k], () => Mi);
4017
- Y([k], () => Li);
4018
- Y([k, ue], () => $i);
4070
+ }, Mi = (e, t) => Oi(t).format(e), Ni = (e, t) => Pi(t).format(e), Li = (e, t) => Ai(t).format(e), $i = (e, t = U()) => dr(e, t), Ri = ee([j, fe], () => Ii);
4071
+ ee([j], () => Mi);
4072
+ ee([j], () => Ni);
4073
+ ee([j], () => Li);
4074
+ ee([j, fe], () => $i);
4019
4075
  function Di(e, t) {
4020
4076
  if (e) {
4021
4077
  const r = document.createElement("style");
4022
4078
  r.innerHTML = t, e.appendChild(r);
4023
4079
  }
4024
4080
  }
4025
- function Ui(e, t) {
4081
+ function ki(e, t) {
4082
+ if (!e || !t)
4083
+ return;
4026
4084
  const r = new URL(t);
4027
4085
  fetch(r.href).then((n) => n.text()).then((n) => {
4028
4086
  const i = document.createElement("style");
@@ -4031,7 +4089,7 @@ function Ui(e, t) {
4031
4089
  console.error("There was an error while trying to load client styling from URL", n);
4032
4090
  });
4033
4091
  }
4034
- function ki(e, t, r) {
4092
+ function Ui(e, t, r) {
4035
4093
  if (window.emMessageBus) {
4036
4094
  const n = document.createElement("style");
4037
4095
  window.emMessageBus.subscribe(t, (i) => {
@@ -4039,15 +4097,15 @@ function ki(e, t, r) {
4039
4097
  });
4040
4098
  }
4041
4099
  }
4042
- function wt(e, t) {
4043
- or(e, t);
4100
+ function At(e, t) {
4101
+ gr(e, t);
4044
4102
  }
4045
4103
  function Gi(e) {
4046
4104
  pi({
4047
4105
  fallbackLocale: "en"
4048
- }), k.set(e);
4106
+ }), j.set(e);
4049
4107
  }
4050
- const Ht = {
4108
+ const Pt = {
4051
4109
  en: {
4052
4110
  errorGeneralTitle: "Error Occurred",
4053
4111
  errorGeneralText: "Something went wrong",
@@ -4102,362 +4160,328 @@ const Ht = {
4102
4160
  }
4103
4161
  };
4104
4162
  function Fi(e) {
4105
- yr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
4163
+ Hr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
4106
4164
  }
4107
- const ji = (e) => ({}), St = (e) => ({}), zi = (e) => ({}), Bt = (e) => ({}), Vi = (e) => ({}), At = (e) => ({}), Xi = (e) => ({}), Pt = (e) => ({ class: "CashierErrorIcon" });
4108
- function Ot(e) {
4165
+ const ji = (e) => ({}), Ot = (e) => ({}), zi = (e) => ({}), Ct = (e) => ({}), Vi = (e) => ({}), It = (e) => ({}), Xi = (e) => ({}), Mt = (e) => ({ class: "CashierErrorIcon" });
4166
+ function Nt(e) {
4109
4167
  let t, r;
4110
4168
  return {
4111
4169
  c() {
4112
- t = A("ui-image"), at(t.src, r = `${/*assetsurl*/
4113
- e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
4170
+ t = A("ui-image"), ft(t.src, r = `${/*assetsurl*/
4171
+ e[0]}/error-general-icon.png`) || ve(t, "src", r), ve(t, "width", "300px"), ve(t, "alt", "error");
4114
4172
  },
4115
4173
  m(n, i) {
4116
- U(n, t, i);
4174
+ F(n, t, i);
4117
4175
  },
4118
4176
  p(n, i) {
4119
4177
  i & /*assetsurl*/
4120
- 1 && !at(t.src, r = `${/*assetsurl*/
4121
- n[0]}/error-general-icon.png`) && ce(t, "src", r);
4178
+ 1 && !ft(t.src, r = `${/*assetsurl*/
4179
+ n[0]}/error-general-icon.png`) && ve(t, "src", r);
4122
4180
  },
4123
4181
  d(n) {
4124
- n && I(t);
4182
+ n && N(t);
4125
4183
  }
4126
4184
  };
4127
4185
  }
4128
4186
  function Wi(e) {
4129
4187
  let t, r = (
4130
4188
  /*assetsurl*/
4131
- e[0] && Ot(e)
4189
+ e[0] && Nt(e)
4132
4190
  );
4133
4191
  return {
4134
4192
  c() {
4135
- r && r.c(), t = Er();
4193
+ r && r.c(), t = Br();
4136
4194
  },
4137
4195
  m(n, i) {
4138
- r && r.m(n, i), U(n, t, i);
4196
+ r && r.m(n, i), F(n, t, i);
4139
4197
  },
4140
4198
  p(n, i) {
4141
4199
  /*assetsurl*/
4142
- n[0] ? r ? r.p(n, i) : (r = Ot(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4200
+ n[0] ? r ? r.p(n, i) : (r = Nt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4143
4201
  },
4144
4202
  d(n) {
4145
- n && I(t), r && r.d(n);
4203
+ n && N(t), r && r.d(n);
4146
4204
  }
4147
4205
  };
4148
4206
  }
4149
4207
  function Zi(e) {
4150
4208
  let t, r = (
4151
4209
  /*$_*/
4152
- e[4]("errorGeneralTitle") + ""
4210
+ e[3]("errorGeneralTitle") + ""
4153
4211
  ), n;
4154
4212
  return {
4155
4213
  c() {
4156
- t = A("span"), n = ae(r), R(t, "class", "CashierErrorTitle");
4214
+ t = A("span"), n = ce(r), G(t, "class", "CashierErrorTitle");
4157
4215
  },
4158
4216
  m(i, s) {
4159
- U(i, t, s), C(t, n);
4217
+ F(i, t, s), M(t, n);
4160
4218
  },
4161
4219
  p(i, s) {
4162
4220
  s & /*$_*/
4163
- 16 && r !== (r = /*$_*/
4164
- i[4]("errorGeneralTitle") + "") && rt(n, r);
4221
+ 8 && r !== (r = /*$_*/
4222
+ i[3]("errorGeneralTitle") + "") && ut(n, r);
4165
4223
  },
4166
4224
  d(i) {
4167
- i && I(t);
4225
+ i && N(t);
4168
4226
  }
4169
4227
  };
4170
4228
  }
4171
4229
  function Ji(e) {
4172
4230
  let t, r = (
4173
4231
  /*$_*/
4174
- e[4](`${/*errorcode*/
4175
- e[2] || "errorGeneralText"}`) + ""
4232
+ e[3](`${/*errorcode*/
4233
+ e[1] || "errorGeneralText"}`) + ""
4176
4234
  ), n;
4177
4235
  return {
4178
4236
  c() {
4179
- t = A("span"), n = ae(r), R(t, "class", "CashierErrorText");
4237
+ t = A("span"), n = ce(r), G(t, "class", "CashierErrorText");
4180
4238
  },
4181
4239
  m(i, s) {
4182
- U(i, t, s), C(t, n);
4240
+ F(i, t, s), M(t, n);
4183
4241
  },
4184
4242
  p(i, s) {
4185
4243
  s & /*$_, errorcode*/
4186
- 20 && r !== (r = /*$_*/
4187
- i[4](`${/*errorcode*/
4188
- i[2] || "errorGeneralText"}`) + "") && rt(n, r);
4244
+ 10 && r !== (r = /*$_*/
4245
+ i[3](`${/*errorcode*/
4246
+ i[1] || "errorGeneralText"}`) + "") && ut(n, r);
4189
4247
  },
4190
4248
  d(i) {
4191
- i && I(t);
4192
- }
4193
- };
4194
- }
4195
- function Ct(e) {
4196
- let t;
4197
- const r = (
4198
- /*#slots*/
4199
- e[12].button
4200
- ), n = de(
4201
- r,
4202
- e,
4203
- /*$$scope*/
4204
- e[11],
4205
- St
4206
- ), i = n || qi(e);
4207
- return {
4208
- c() {
4209
- i && i.c();
4210
- },
4211
- m(s, a) {
4212
- i && i.m(s, a), t = !0;
4213
- },
4214
- p(s, a) {
4215
- n ? n.p && (!t || a & /*$$scope*/
4216
- 2048) && ge(
4217
- n,
4218
- r,
4219
- s,
4220
- /*$$scope*/
4221
- s[11],
4222
- t ? pe(
4223
- r,
4224
- /*$$scope*/
4225
- s[11],
4226
- a,
4227
- ji
4228
- ) : be(
4229
- /*$$scope*/
4230
- s[11]
4231
- ),
4232
- St
4233
- ) : i && i.p && (!t || a & /*$_*/
4234
- 16) && i.p(s, t ? a : -1);
4235
- },
4236
- i(s) {
4237
- t || (M(i, s), t = !0);
4238
- },
4239
- o(s) {
4240
- V(i, s), t = !1;
4241
- },
4242
- d(s) {
4243
- i && i.d(s);
4249
+ i && N(t);
4244
4250
  }
4245
4251
  };
4246
4252
  }
4247
4253
  function qi(e) {
4248
4254
  let t, r, n = (
4249
4255
  /*$_*/
4250
- e[4]("errorGeneralButton") + ""
4251
- ), i, s, a;
4256
+ e[3]("errorGeneralButton") + ""
4257
+ ), i, s, o;
4252
4258
  return {
4253
4259
  c() {
4254
- t = A("button"), r = A("span"), i = ae(n), R(t, "class", "CashierErrorButton");
4260
+ t = A("button"), r = A("span"), i = ce(n), G(t, "class", "CashierErrorButton");
4255
4261
  },
4256
- m(o, l) {
4257
- U(o, t, l), C(t, r), C(r, i), s || (a = je(
4262
+ m(a, c) {
4263
+ F(a, t, c), M(t, r), M(r, i), s || (o = We(
4258
4264
  t,
4259
4265
  "click",
4260
4266
  /*close*/
4261
- e[5]
4267
+ e[4]
4262
4268
  ), s = !0);
4263
4269
  },
4264
- p(o, l) {
4265
- l & /*$_*/
4266
- 16 && n !== (n = /*$_*/
4267
- o[4]("errorGeneralButton") + "") && rt(i, n);
4270
+ p(a, c) {
4271
+ c & /*$_*/
4272
+ 8 && n !== (n = /*$_*/
4273
+ a[3]("errorGeneralButton") + "") && ut(i, n);
4268
4274
  },
4269
- d(o) {
4270
- o && I(t), s = !1, a();
4275
+ d(a) {
4276
+ a && N(t), s = !1, o();
4271
4277
  }
4272
4278
  };
4273
4279
  }
4274
4280
  function Qi(e) {
4275
- let t, r, n, i, s, a;
4276
- const o = (
4281
+ let t, r, n, i, s, o;
4282
+ const a = (
4277
4283
  /*#slots*/
4278
- e[12].icon
4279
- ), l = de(
4280
- o,
4284
+ e[11].icon
4285
+ ), c = ge(
4286
+ a,
4281
4287
  e,
4282
4288
  /*$$scope*/
4283
- e[11],
4284
- Pt
4285
- ), u = l || Wi(e), h = (
4289
+ e[10],
4290
+ Mt
4291
+ ), u = c || Wi(e), l = (
4286
4292
  /*#slots*/
4287
- e[12].title
4288
- ), f = de(
4289
- h,
4293
+ e[11].title
4294
+ ), f = ge(
4295
+ l,
4296
+ e,
4297
+ /*$$scope*/
4298
+ e[10],
4299
+ It
4300
+ ), h = f || Zi(e), d = (
4301
+ /*#slots*/
4302
+ e[11].text
4303
+ ), g = ge(
4304
+ d,
4290
4305
  e,
4291
4306
  /*$$scope*/
4292
- e[11],
4293
- At
4294
- ), c = f || Zi(e), y = (
4307
+ e[10],
4308
+ Ct
4309
+ ), b = g || Ji(e), E = (
4295
4310
  /*#slots*/
4296
- e[12].text
4297
- ), m = de(
4298
- y,
4311
+ e[11].button
4312
+ ), x = ge(
4313
+ E,
4299
4314
  e,
4300
4315
  /*$$scope*/
4301
- e[11],
4302
- Bt
4303
- ), b = m || Ji(e);
4304
- let p = (!/*hidebuttons*/
4305
- e[1] || /*hidebuttons*/
4306
- e[1] === "false") && Ct(e);
4316
+ e[10],
4317
+ Ot
4318
+ ), p = x || qi(e);
4307
4319
  return {
4308
4320
  c() {
4309
- t = A("div"), r = A("div"), u && u.c(), n = Me(), c && c.c(), i = Me(), b && b.c(), s = Me(), p && p.c(), R(r, "class", "CashierErrorContent"), R(t, "class", "CashierError");
4321
+ t = A("div"), r = A("div"), u && u.c(), n = ke(), h && h.c(), i = ke(), b && b.c(), s = ke(), p && p.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
4310
4322
  },
4311
- m(d, v) {
4312
- U(d, t, v), C(t, r), u && u.m(r, null), C(r, n), c && c.m(r, null), C(r, i), b && b.m(r, null), C(r, s), p && p.m(r, null), e[13](t), a = !0;
4323
+ m(m, v) {
4324
+ F(m, t, v), M(t, r), u && u.m(r, null), M(r, n), h && h.m(r, null), M(r, i), b && b.m(r, null), M(r, s), p && p.m(r, null), e[12](t), o = !0;
4313
4325
  },
4314
- p(d, [v]) {
4315
- l ? l.p && (!a || v & /*$$scope*/
4316
- 2048) && ge(
4317
- l,
4318
- o,
4319
- d,
4326
+ p(m, [v]) {
4327
+ c ? c.p && (!o || v & /*$$scope*/
4328
+ 1024) && ye(
4329
+ c,
4330
+ a,
4331
+ m,
4320
4332
  /*$$scope*/
4321
- d[11],
4322
- a ? pe(
4323
- o,
4333
+ m[10],
4334
+ o ? be(
4335
+ a,
4324
4336
  /*$$scope*/
4325
- d[11],
4337
+ m[10],
4326
4338
  v,
4327
4339
  Xi
4328
- ) : be(
4340
+ ) : _e(
4329
4341
  /*$$scope*/
4330
- d[11]
4342
+ m[10]
4331
4343
  ),
4332
- Pt
4333
- ) : u && u.p && (!a || v & /*assetsurl*/
4334
- 1) && u.p(d, a ? v : -1), f ? f.p && (!a || v & /*$$scope*/
4335
- 2048) && ge(
4344
+ Mt
4345
+ ) : u && u.p && (!o || v & /*assetsurl*/
4346
+ 1) && u.p(m, o ? v : -1), f ? f.p && (!o || v & /*$$scope*/
4347
+ 1024) && ye(
4336
4348
  f,
4337
- h,
4338
- d,
4349
+ l,
4350
+ m,
4339
4351
  /*$$scope*/
4340
- d[11],
4341
- a ? pe(
4342
- h,
4352
+ m[10],
4353
+ o ? be(
4354
+ l,
4343
4355
  /*$$scope*/
4344
- d[11],
4356
+ m[10],
4345
4357
  v,
4346
4358
  Vi
4347
- ) : be(
4359
+ ) : _e(
4348
4360
  /*$$scope*/
4349
- d[11]
4361
+ m[10]
4350
4362
  ),
4351
- At
4352
- ) : c && c.p && (!a || v & /*$_*/
4353
- 16) && c.p(d, a ? v : -1), m ? m.p && (!a || v & /*$$scope*/
4354
- 2048) && ge(
4355
- m,
4356
- y,
4363
+ It
4364
+ ) : h && h.p && (!o || v & /*$_*/
4365
+ 8) && h.p(m, o ? v : -1), g ? g.p && (!o || v & /*$$scope*/
4366
+ 1024) && ye(
4367
+ g,
4357
4368
  d,
4369
+ m,
4358
4370
  /*$$scope*/
4359
- d[11],
4360
- a ? pe(
4361
- y,
4371
+ m[10],
4372
+ o ? be(
4373
+ d,
4362
4374
  /*$$scope*/
4363
- d[11],
4375
+ m[10],
4364
4376
  v,
4365
4377
  zi
4366
- ) : be(
4378
+ ) : _e(
4379
+ /*$$scope*/
4380
+ m[10]
4381
+ ),
4382
+ Ct
4383
+ ) : b && b.p && (!o || v & /*$_, errorcode*/
4384
+ 10) && b.p(m, o ? v : -1), x ? x.p && (!o || v & /*$$scope*/
4385
+ 1024) && ye(
4386
+ x,
4387
+ E,
4388
+ m,
4389
+ /*$$scope*/
4390
+ m[10],
4391
+ o ? be(
4392
+ E,
4393
+ /*$$scope*/
4394
+ m[10],
4395
+ v,
4396
+ ji
4397
+ ) : _e(
4367
4398
  /*$$scope*/
4368
- d[11]
4399
+ m[10]
4369
4400
  ),
4370
- Bt
4371
- ) : b && b.p && (!a || v & /*$_, errorcode*/
4372
- 20) && b.p(d, a ? v : -1), !/*hidebuttons*/
4373
- d[1] || /*hidebuttons*/
4374
- d[1] === "false" ? p ? (p.p(d, v), v & /*hidebuttons*/
4375
- 2 && M(p, 1)) : (p = Ct(d), p.c(), M(p, 1), p.m(r, null)) : p && ($r(), V(p, 1, 1, () => {
4376
- p = null;
4377
- }), Rr());
4401
+ Ot
4402
+ ) : p && p.p && (!o || v & /*$_*/
4403
+ 8) && p.p(m, o ? v : -1);
4378
4404
  },
4379
- i(d) {
4380
- a || (M(u, d), M(c, d), M(b, d), M(p), a = !0);
4405
+ i(m) {
4406
+ o || (W(u, m), W(h, m), W(b, m), W(p, m), o = !0);
4381
4407
  },
4382
- o(d) {
4383
- V(u, d), V(c, d), V(b, d), V(p), a = !1;
4408
+ o(m) {
4409
+ xe(u, m), xe(h, m), xe(b, m), xe(p, m), o = !1;
4384
4410
  },
4385
- d(d) {
4386
- d && I(t), u && u.d(d), c && c.d(d), b && b.d(d), p && p.d(), e[13](null);
4411
+ d(m) {
4412
+ m && N(t), u && u.d(m), h && h.d(m), b && b.d(m), p && p.d(m), e[12](null);
4387
4413
  }
4388
4414
  };
4389
4415
  }
4390
4416
  function Yi(e, t, r) {
4391
4417
  let n;
4392
- pr(e, Ri, (g) => r(4, n = g));
4393
- let { $$slots: i = {}, $$scope: s } = t, { assetsurl: a = "" } = t, { lang: o = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, m;
4394
- const b = () => {
4395
- Gi(o);
4396
- }, p = () => {
4397
- fetch(c).then((w) => w.json()).then((w) => {
4398
- Object.keys(w).forEach((H) => {
4399
- wt(H, w[H]);
4418
+ Tr(e, Ri, (p) => r(3, n = p));
4419
+ let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { errorcode: c = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: h = "" } = t, d;
4420
+ const g = () => {
4421
+ Gi(a);
4422
+ }, b = () => {
4423
+ fetch(f).then((m) => m.json()).then((m) => {
4424
+ Object.keys(m).forEach((v) => {
4425
+ At(v, m[v]);
4400
4426
  });
4401
- }).catch((w) => {
4402
- console.error(w);
4427
+ }).catch((m) => {
4428
+ console.error(m);
4403
4429
  });
4404
4430
  };
4405
- Object.keys(Ht).forEach((g) => {
4406
- wt(g, Ht[g]);
4431
+ Object.keys(Pt).forEach((p) => {
4432
+ At(p, Pt[p]);
4407
4433
  });
4408
- const d = () => {
4434
+ const E = () => {
4409
4435
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4410
4436
  };
4411
- Or(() => () => {
4437
+ $r(() => () => {
4412
4438
  });
4413
- function v(g) {
4414
- ze[g ? "unshift" : "push"](() => {
4415
- m = g, r(3, m);
4439
+ function x(p) {
4440
+ Je[p ? "unshift" : "push"](() => {
4441
+ d = p, r(2, d);
4416
4442
  });
4417
4443
  }
4418
- return e.$$set = (g) => {
4419
- "assetsurl" in g && r(0, a = g.assetsurl), "lang" in g && r(6, o = g.lang), "hidebuttons" in g && r(1, l = g.hidebuttons), "errorcode" in g && r(2, u = g.errorcode), "clientstyling" in g && r(7, h = g.clientstyling), "clientstylingurl" in g && r(8, f = g.clientstylingurl), "translationurl" in g && r(9, c = g.translationurl), "mbsource" in g && r(10, y = g.mbsource), "$$scope" in g && r(11, s = g.$$scope);
4444
+ return e.$$set = (p) => {
4445
+ "assetsurl" in p && r(0, o = p.assetsurl), "lang" in p && r(5, a = p.lang), "errorcode" in p && r(1, c = p.errorcode), "clientstyling" in p && r(6, u = p.clientstyling), "clientstylingurl" in p && r(7, l = p.clientstylingurl), "translationurl" in p && r(8, f = p.translationurl), "mbsource" in p && r(9, h = p.mbsource), "$$scope" in p && r(10, s = p.$$scope);
4420
4446
  }, e.$$.update = () => {
4421
4447
  e.$$.dirty & /*lang*/
4422
- 64 && o && b(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4423
- 136 && h && m && Di(m, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4424
- 264 && f && m && Ui(m, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4425
- 1032 && y && m && ki(m, `${y}.Style`), e.$$.dirty & /*translationurl*/
4426
- 512 && c && p();
4448
+ 32 && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4449
+ 68 && u && d && Di(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4450
+ 132 && l && d && ki(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4451
+ 516 && h && d && Ui(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4452
+ 256 && f && b();
4427
4453
  }, [
4454
+ o,
4455
+ c,
4456
+ d,
4457
+ n,
4458
+ E,
4428
4459
  a,
4429
- l,
4430
4460
  u,
4431
- m,
4432
- n,
4433
- d,
4434
- o,
4435
- h,
4461
+ l,
4436
4462
  f,
4437
- c,
4438
- y,
4463
+ h,
4439
4464
  s,
4440
4465
  i,
4441
- v
4466
+ x
4442
4467
  ];
4443
4468
  }
4444
- class cr extends zr {
4469
+ class Er extends zr {
4445
4470
  constructor(t) {
4446
4471
  super(), Fr(
4447
4472
  this,
4448
4473
  t,
4449
4474
  Yi,
4450
4475
  Qi,
4451
- Nt,
4476
+ Rt,
4452
4477
  {
4453
4478
  assetsurl: 0,
4454
- lang: 6,
4455
- hidebuttons: 1,
4456
- errorcode: 2,
4457
- clientstyling: 7,
4458
- clientstylingurl: 8,
4459
- translationurl: 9,
4460
- mbsource: 10
4479
+ lang: 5,
4480
+ errorcode: 1,
4481
+ clientstyling: 6,
4482
+ clientstylingurl: 7,
4483
+ translationurl: 8,
4484
+ mbsource: 9
4461
4485
  },
4462
4486
  Fi
4463
4487
  );
@@ -4466,110 +4490,110 @@ class cr extends zr {
4466
4490
  return this.$$.ctx[0];
4467
4491
  }
4468
4492
  set assetsurl(t) {
4469
- this.$$set({ assetsurl: t }), P();
4493
+ this.$$set({ assetsurl: t }), L();
4470
4494
  }
4471
4495
  get lang() {
4472
- return this.$$.ctx[6];
4496
+ return this.$$.ctx[5];
4473
4497
  }
4474
4498
  set lang(t) {
4475
- this.$$set({ lang: t }), P();
4476
- }
4477
- get hidebuttons() {
4478
- return this.$$.ctx[1];
4479
- }
4480
- set hidebuttons(t) {
4481
- this.$$set({ hidebuttons: t }), P();
4499
+ this.$$set({ lang: t }), L();
4482
4500
  }
4483
4501
  get errorcode() {
4484
- return this.$$.ctx[2];
4502
+ return this.$$.ctx[1];
4485
4503
  }
4486
4504
  set errorcode(t) {
4487
- this.$$set({ errorcode: t }), P();
4505
+ this.$$set({ errorcode: t }), L();
4488
4506
  }
4489
4507
  get clientstyling() {
4490
- return this.$$.ctx[7];
4508
+ return this.$$.ctx[6];
4491
4509
  }
4492
4510
  set clientstyling(t) {
4493
- this.$$set({ clientstyling: t }), P();
4511
+ this.$$set({ clientstyling: t }), L();
4494
4512
  }
4495
4513
  get clientstylingurl() {
4496
- return this.$$.ctx[8];
4514
+ return this.$$.ctx[7];
4497
4515
  }
4498
4516
  set clientstylingurl(t) {
4499
- this.$$set({ clientstylingurl: t }), P();
4517
+ this.$$set({ clientstylingurl: t }), L();
4500
4518
  }
4501
4519
  get translationurl() {
4502
- return this.$$.ctx[9];
4520
+ return this.$$.ctx[8];
4503
4521
  }
4504
4522
  set translationurl(t) {
4505
- this.$$set({ translationurl: t }), P();
4523
+ this.$$set({ translationurl: t }), L();
4506
4524
  }
4507
4525
  get mbsource() {
4508
- return this.$$.ctx[10];
4526
+ return this.$$.ctx[9];
4509
4527
  }
4510
4528
  set mbsource(t) {
4511
- this.$$set({ mbsource: t }), P();
4529
+ this.$$set({ mbsource: t }), L();
4512
4530
  }
4513
4531
  }
4514
- jr(cr, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4515
- const fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4532
+ jr(Er, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4533
+ const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4516
4534
  __proto__: null,
4517
- default: cr
4535
+ default: Er
4518
4536
  }, Symbol.toStringTag, { value: "Module" }));
4519
4537
  export {
4520
- k as $,
4521
- is as A,
4522
- ze as B,
4523
- us as C,
4524
- hs as D,
4525
- ts as E,
4526
- at as F,
4527
- ns as G,
4528
- D as H,
4529
- ss as I,
4530
- rs as J,
4531
- os as K,
4532
- Ri as L,
4533
- Di as M,
4534
- Ui as N,
4535
- ki as O,
4536
- fr as P,
4537
- V as Q,
4538
- M as R,
4538
+ j as $,
4539
+ ss as A,
4540
+ ve as B,
4541
+ Br as C,
4542
+ cs as D,
4543
+ ls as E,
4544
+ ns as F,
4545
+ gs as G,
4546
+ ft as H,
4547
+ ut as I,
4548
+ ys as J,
4549
+ is as K,
4550
+ ce as L,
4551
+ k as M,
4552
+ os as N,
4553
+ as as O,
4554
+ rs as P,
4555
+ bs as Q,
4556
+ Di as R,
4539
4557
  zr as S,
4540
- $r as T,
4541
- Rr as U,
4542
- de as V,
4543
- ls as W,
4544
- ge as X,
4545
- be as Y,
4546
- pe as Z,
4547
- as as _,
4548
- or as a,
4549
- fs as a0,
4550
- jr as b,
4551
- cs as c,
4552
- Fr as d,
4553
- yr as e,
4554
- P as f,
4555
- Wr as g,
4556
- we as h,
4558
+ ki as T,
4559
+ Ui as U,
4560
+ xe as V,
4561
+ W,
4562
+ fs as X,
4563
+ ms as Y,
4564
+ ge as Z,
4565
+ ye as _,
4566
+ gr as a,
4567
+ _e as a0,
4568
+ be as a1,
4569
+ us as a2,
4570
+ Lt as a3,
4571
+ ps as a4,
4572
+ ds as a5,
4573
+ vs as a6,
4574
+ Ri as b,
4575
+ _s as c,
4576
+ Wr as d,
4577
+ jr as e,
4578
+ Fr as f,
4579
+ es as g,
4580
+ L as h,
4557
4581
  pi as i,
4558
- I as j,
4559
- U as k,
4560
- C as l,
4561
- je as m,
4582
+ Hr as j,
4583
+ ae as k,
4584
+ N as l,
4585
+ F as m,
4562
4586
  B as n,
4563
- es as o,
4564
- A as p,
4565
- Me as q,
4566
- R as r,
4567
- Nt as s,
4568
- pr as t,
4569
- Or as u,
4570
- Er as v,
4571
- Oe as w,
4572
- rt as x,
4573
- ce as y,
4574
- ae as z
4587
+ M as o,
4588
+ We as p,
4589
+ ts as q,
4590
+ A as r,
4591
+ Rt as s,
4592
+ ke as t,
4593
+ G as u,
4594
+ Tr as v,
4595
+ Le as w,
4596
+ $r as x,
4597
+ hs as y,
4598
+ Je as z
4575
4599
  };