@everymatrix/cashier-receipt-page 1.98.96 → 1.98.105

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.
@@ -1,8 +1,8 @@
1
1
  import "../stencil/ui-image-Ch-GHki1.js";
2
2
  function A() {
3
3
  }
4
- const Rt = (e) => e;
5
- function Pn(e, t) {
4
+ const Gt = (e) => e;
5
+ function Ln(e, t) {
6
6
  for (const n in t)
7
7
  e[n] = t[n];
8
8
  return (
@@ -10,29 +10,29 @@ function Pn(e, t) {
10
10
  e
11
11
  );
12
12
  }
13
- function Ut(e) {
13
+ function jt(e) {
14
14
  return e();
15
15
  }
16
- function ht() {
16
+ function gt() {
17
17
  return /* @__PURE__ */ Object.create(null);
18
18
  }
19
- function R(e) {
20
- e.forEach(Ut);
19
+ function U(e) {
20
+ e.forEach(jt);
21
21
  }
22
22
  function ge(e) {
23
23
  return typeof e == "function";
24
24
  }
25
- function $t(e, t) {
25
+ function Vt(e, t) {
26
26
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
27
27
  }
28
28
  let be;
29
- function mt(e, t) {
29
+ function pt(e, t) {
30
30
  return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
31
31
  }
32
- function Ln(e) {
32
+ function On(e) {
33
33
  return Object.keys(e).length === 0;
34
34
  }
35
- function Gt(e, ...t) {
35
+ function st(e, ...t) {
36
36
  if (e == null) {
37
37
  for (const r of t)
38
38
  r(void 0);
@@ -41,17 +41,21 @@ function Gt(e, ...t) {
41
41
  const n = e.subscribe(...t);
42
42
  return n.unsubscribe ? () => n.unsubscribe() : n;
43
43
  }
44
- function On(e, t, n) {
45
- e.$$.on_destroy.push(Gt(t, n));
44
+ function Mn(e) {
45
+ let t;
46
+ return st(e, (n) => t = n)(), t;
47
+ }
48
+ function Nn(e, t, n) {
49
+ e.$$.on_destroy.push(st(t, n));
46
50
  }
47
51
  function ye(e, t, n, r) {
48
52
  if (e) {
49
- const i = jt(e, t, n, r);
53
+ const i = Wt(e, t, n, r);
50
54
  return e[0](i);
51
55
  }
52
56
  }
53
- function jt(e, t, n, r) {
54
- return e[1] && r ? Pn(n.ctx.slice(), e[1](r(t))) : n.ctx;
57
+ function Wt(e, t, n, r) {
58
+ return e[1] && r ? Ln(n.ctx.slice(), e[1](r(t))) : n.ctx;
55
59
  }
56
60
  function ve(e, t, n, r) {
57
61
  if (e[2] && r) {
@@ -70,11 +74,11 @@ function ve(e, t, n, r) {
70
74
  }
71
75
  function Fe(e, t, n, r, i, a) {
72
76
  if (i) {
73
- const s = jt(t, n, r, a);
77
+ const s = Wt(t, n, r, a);
74
78
  e.p(s, i);
75
79
  }
76
80
  }
77
- function xe(e) {
81
+ function _e(e) {
78
82
  if (e.ctx.length > 32) {
79
83
  const t = [], n = e.ctx.length / 32;
80
84
  for (let r = 0; r < n; r++)
@@ -83,36 +87,36 @@ function xe(e) {
83
87
  }
84
88
  return -1;
85
89
  }
86
- const Vt = typeof window < "u";
87
- let Wt = Vt ? () => window.performance.now() : () => Date.now(), at = Vt ? (e) => requestAnimationFrame(e) : A;
88
- const q = /* @__PURE__ */ new Set();
89
- function qt(e) {
90
- q.forEach((t) => {
91
- t.c(e) || (q.delete(t), t.f());
92
- }), q.size !== 0 && at(qt);
90
+ const qt = typeof window < "u";
91
+ let Xt = qt ? () => window.performance.now() : () => Date.now(), ot = qt ? (e) => requestAnimationFrame(e) : A;
92
+ const X = /* @__PURE__ */ new Set();
93
+ function Zt(e) {
94
+ X.forEach((t) => {
95
+ t.c(e) || (X.delete(t), t.f());
96
+ }), X.size !== 0 && ot(Zt);
93
97
  }
94
- function Xt(e) {
98
+ function Kt(e) {
95
99
  let t;
96
- return q.size === 0 && at(qt), {
100
+ return X.size === 0 && ot(Zt), {
97
101
  promise: new Promise((n) => {
98
- q.add(t = { c: e, f: n });
102
+ X.add(t = { c: e, f: n });
99
103
  }),
100
104
  abort() {
101
- q.delete(t);
105
+ X.delete(t);
102
106
  }
103
107
  };
104
108
  }
105
109
  function B(e, t) {
106
110
  e.appendChild(t);
107
111
  }
108
- function Mn(e, t, n) {
109
- const r = st(e);
112
+ function Dn(e, t, n) {
113
+ const r = lt(e);
110
114
  if (!r.getElementById(t)) {
111
115
  const i = I("style");
112
- i.id = t, i.textContent = n, Zt(r, i);
116
+ i.id = t, i.textContent = n, Jt(r, i);
113
117
  }
114
118
  }
115
- function st(e) {
119
+ function lt(e) {
116
120
  if (!e)
117
121
  return document;
118
122
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -122,11 +126,11 @@ function st(e) {
122
126
  t
123
127
  ) : e.ownerDocument;
124
128
  }
125
- function Nn(e) {
129
+ function zn(e) {
126
130
  const t = I("style");
127
- return t.textContent = "/* empty */", Zt(st(e), t), t.sheet;
131
+ return t.textContent = "/* empty */", Jt(lt(e), t), t.sheet;
128
132
  }
129
- function Zt(e, t) {
133
+ function Jt(e, t) {
130
134
  return B(
131
135
  /** @type {Document} */
132
136
  e.head || e,
@@ -139,46 +143,46 @@ function S(e, t, n) {
139
143
  function T(e) {
140
144
  e.parentNode && e.parentNode.removeChild(e);
141
145
  }
142
- function Ta(e, t) {
146
+ function Aa(e, t) {
143
147
  for (let n = 0; n < e.length; n += 1)
144
148
  e[n] && e[n].d(t);
145
149
  }
146
150
  function I(e) {
147
151
  return document.createElement(e);
148
152
  }
149
- function wa(e) {
153
+ function Ia(e) {
150
154
  return document.createElementNS("http://www.w3.org/2000/svg", e);
151
155
  }
152
156
  function D(e) {
153
157
  return document.createTextNode(e);
154
158
  }
155
- function X() {
159
+ function Z() {
156
160
  return D(" ");
157
161
  }
158
- function ot() {
162
+ function ut() {
159
163
  return D("");
160
164
  }
161
- function Dn(e, t, n, r) {
165
+ function Rn(e, t, n, r) {
162
166
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
163
167
  }
164
168
  function O(e, t, n) {
165
169
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
166
170
  }
167
- function _e(e, t, n) {
171
+ function xe(e, t, n) {
168
172
  const r = t.toLowerCase();
169
173
  r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : O(e, t, n);
170
174
  }
171
- function zn(e) {
175
+ function Un(e) {
172
176
  return Array.from(e.childNodes);
173
177
  }
174
- function K(e, t) {
178
+ function J(e, t) {
175
179
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
176
180
  t);
177
181
  }
178
- function Rn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
182
+ function $n(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
179
183
  return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
180
184
  }
181
- function Un(e) {
185
+ function Gn(e) {
182
186
  const t = {};
183
187
  return e.childNodes.forEach(
184
188
  /** @param {Element} node */
@@ -189,118 +193,118 @@ function Un(e) {
189
193
  }
190
194
  const Ie = /* @__PURE__ */ new Map();
191
195
  let Ce = 0;
192
- function $n(e) {
196
+ function jn(e) {
193
197
  let t = 5381, n = e.length;
194
198
  for (; n--; )
195
199
  t = (t << 5) - t ^ e.charCodeAt(n);
196
200
  return t >>> 0;
197
201
  }
198
- function Gn(e, t) {
199
- const n = { stylesheet: Nn(t), rules: {} };
202
+ function Vn(e, t) {
203
+ const n = { stylesheet: zn(t), rules: {} };
200
204
  return Ie.set(e, n), n;
201
205
  }
202
- function Kt(e, t, n, r, i, a, s, o = 0) {
206
+ function Yt(e, t, n, r, i, a, s, o = 0) {
203
207
  const c = 16.666 / r;
204
208
  let l = `{
205
209
  `;
206
- for (let x = 0; x <= 1; x += c) {
207
- const E = t + (n - t) * a(x);
208
- l += x * 100 + `%{${s(E, 1 - E)}}
210
+ for (let _ = 0; _ <= 1; _ += c) {
211
+ const E = t + (n - t) * a(_);
212
+ l += _ * 100 + `%{${s(E, 1 - E)}}
209
213
  `;
210
214
  }
211
215
  const u = l + `100% {${s(n, 1 - n)}}
212
- }`, d = `__svelte_${$n(u)}_${o}`, h = st(e), { stylesheet: g, rules: f } = Ie.get(h) || Gn(h, e);
216
+ }`, d = `__svelte_${jn(u)}_${o}`, h = lt(e), { stylesheet: g, rules: f } = Ie.get(h) || Vn(h, e);
213
217
  f[d] || (f[d] = !0, g.insertRule(`@keyframes ${d} ${u}`, g.cssRules.length));
214
218
  const y = e.style.animation || "";
215
219
  return e.style.animation = `${y ? `${y}, ` : ""}${d} ${r}ms linear ${i}ms 1 both`, Ce += 1, d;
216
220
  }
217
- function Xe(e, t) {
221
+ function Ze(e, t) {
218
222
  const n = (e.style.animation || "").split(", "), r = n.filter(
219
223
  t ? (a) => a.indexOf(t) < 0 : (a) => a.indexOf("__svelte") === -1
220
224
  // remove all Svelte animations
221
225
  ), i = n.length - r.length;
222
- i && (e.style.animation = r.join(", "), Ce -= i, Ce || jn());
226
+ i && (e.style.animation = r.join(", "), Ce -= i, Ce || Wn());
223
227
  }
224
- function jn() {
225
- at(() => {
228
+ function Wn() {
229
+ ot(() => {
226
230
  Ce || (Ie.forEach((e) => {
227
231
  const { ownerNode: t } = e.stylesheet;
228
232
  t && T(t);
229
233
  }), Ie.clear());
230
234
  });
231
235
  }
232
- let ce;
233
- function ue(e) {
234
- ce = e;
236
+ let de;
237
+ function ce(e) {
238
+ de = e;
235
239
  }
236
- function Vn() {
237
- if (!ce)
240
+ function qn() {
241
+ if (!de)
238
242
  throw new Error("Function called outside component initialization");
239
- return ce;
243
+ return de;
240
244
  }
241
- function Wn(e) {
242
- Vn().$$.on_mount.push(e);
245
+ function Xn(e) {
246
+ qn().$$.on_mount.push(e);
243
247
  }
244
- const V = [], Ze = [];
245
- let Z = [];
246
- const ft = [], qn = /* @__PURE__ */ Promise.resolve();
247
- let Ke = !1;
248
- function Xn() {
249
- Ke || (Ke = !0, qn.then(H));
248
+ const W = [], Ke = [];
249
+ let K = [];
250
+ const Et = [], Zn = /* @__PURE__ */ Promise.resolve();
251
+ let Je = !1;
252
+ function Kn() {
253
+ Je || (Je = !0, Zn.then(H));
250
254
  }
251
- function de(e) {
252
- Z.push(e);
255
+ function he(e) {
256
+ K.push(e);
253
257
  }
254
- const Ue = /* @__PURE__ */ new Set();
255
- let G = 0;
258
+ const $e = /* @__PURE__ */ new Set();
259
+ let j = 0;
256
260
  function H() {
257
- if (G !== 0)
261
+ if (j !== 0)
258
262
  return;
259
- const e = ce;
263
+ const e = de;
260
264
  do {
261
265
  try {
262
- for (; G < V.length; ) {
263
- const t = V[G];
264
- G++, ue(t), Zn(t.$$);
266
+ for (; j < W.length; ) {
267
+ const t = W[j];
268
+ j++, ce(t), Jn(t.$$);
265
269
  }
266
270
  } catch (t) {
267
- throw V.length = 0, G = 0, t;
271
+ throw W.length = 0, j = 0, t;
268
272
  }
269
- for (ue(null), V.length = 0, G = 0; Ze.length; )
270
- Ze.pop()();
271
- for (let t = 0; t < Z.length; t += 1) {
272
- const n = Z[t];
273
- Ue.has(n) || (Ue.add(n), n());
273
+ for (ce(null), W.length = 0, j = 0; Ke.length; )
274
+ Ke.pop()();
275
+ for (let t = 0; t < K.length; t += 1) {
276
+ const n = K[t];
277
+ $e.has(n) || ($e.add(n), n());
274
278
  }
275
- Z.length = 0;
276
- } while (V.length);
277
- for (; ft.length; )
278
- ft.pop()();
279
- Ke = !1, Ue.clear(), ue(e);
279
+ K.length = 0;
280
+ } while (W.length);
281
+ for (; Et.length; )
282
+ Et.pop()();
283
+ Je = !1, $e.clear(), ce(e);
280
284
  }
281
- function Zn(e) {
285
+ function Jn(e) {
282
286
  if (e.fragment !== null) {
283
- e.update(), R(e.before_update);
287
+ e.update(), U(e.before_update);
284
288
  const t = e.dirty;
285
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(de);
289
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(he);
286
290
  }
287
291
  }
288
- function Kn(e) {
292
+ function Yn(e) {
289
293
  const t = [], n = [];
290
- Z.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Z = t;
294
+ K.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), K = t;
291
295
  }
292
- let ae;
293
- function Jt() {
294
- return ae || (ae = Promise.resolve(), ae.then(() => {
295
- ae = null;
296
- })), ae;
296
+ let se;
297
+ function Qt() {
298
+ return se || (se = Promise.resolve(), se.then(() => {
299
+ se = null;
300
+ })), se;
297
301
  }
298
302
  function He(e, t, n) {
299
- e.dispatchEvent(Rn(`${t ? "intro" : "outro"}${n}`));
303
+ e.dispatchEvent($n(`${t ? "intro" : "outro"}${n}`));
300
304
  }
301
305
  const we = /* @__PURE__ */ new Set();
302
306
  let M;
303
- function Sa() {
307
+ function Ca() {
304
308
  M = {
305
309
  r: 0,
306
310
  c: [],
@@ -308,10 +312,10 @@ function Sa() {
308
312
  // parent group
309
313
  };
310
314
  }
311
- function Ba() {
312
- M.r || R(M.c), M = M.p;
315
+ function Ha() {
316
+ M.r || U(M.c), M = M.p;
313
317
  }
314
- function oe(e, t) {
318
+ function le(e, t) {
315
319
  e && e.i && (we.delete(e), e.i(t));
316
320
  }
317
321
  function ke(e, t, n, r) {
@@ -324,24 +328,24 @@ function ke(e, t, n, r) {
324
328
  } else
325
329
  r && r();
326
330
  }
327
- const Yt = { duration: 0 };
328
- function Aa(e, t, n) {
331
+ const en = { duration: 0 };
332
+ function Pa(e, t, n) {
329
333
  const r = { direction: "in" };
330
334
  let i = t(e, n, r), a = !1, s, o, c = 0;
331
335
  function l() {
332
- s && Xe(e, s);
336
+ s && Ze(e, s);
333
337
  }
334
338
  function u() {
335
339
  const {
336
340
  delay: h = 0,
337
341
  duration: g = 300,
338
- easing: f = Rt,
342
+ easing: f = Gt,
339
343
  tick: y = A,
340
- css: x
341
- } = i || Yt;
342
- x && (s = Kt(e, 0, 1, g, h, f, x, c++)), y(0, 1);
343
- const E = Wt() + h, m = E + g;
344
- o && o.abort(), a = !0, de(() => He(e, !0, "start")), o = Xt((v) => {
344
+ css: _
345
+ } = i || en;
346
+ _ && (s = Yt(e, 0, 1, g, h, f, _, c++)), y(0, 1);
347
+ const E = Xt() + h, m = E + g;
348
+ o && o.abort(), a = !0, he(() => He(e, !0, "start")), o = Kt((v) => {
345
349
  if (a) {
346
350
  if (v >= m)
347
351
  return y(1, 0), He(e, !0, "end"), l(), a = !1;
@@ -356,7 +360,7 @@ function Aa(e, t, n) {
356
360
  let d = !1;
357
361
  return {
358
362
  start() {
359
- d || (d = !0, Xe(e), ge(i) ? (i = i(r), Jt().then(u)) : u());
363
+ d || (d = !0, Ze(e), ge(i) ? (i = i(r), Qt().then(u)) : u());
360
364
  },
361
365
  invalidate() {
362
366
  d = !1;
@@ -366,7 +370,7 @@ function Aa(e, t, n) {
366
370
  }
367
371
  };
368
372
  }
369
- function Ia(e, t, n) {
373
+ function La(e, t, n) {
370
374
  const r = { direction: "out" };
371
375
  let i = t(e, n, r), a = !0, s;
372
376
  const o = M;
@@ -376,17 +380,17 @@ function Ia(e, t, n) {
376
380
  const {
377
381
  delay: u = 0,
378
382
  duration: d = 300,
379
- easing: h = Rt,
383
+ easing: h = Gt,
380
384
  tick: g = A,
381
385
  css: f
382
- } = i || Yt;
383
- f && (s = Kt(e, 1, 0, d, u, h, f));
384
- const y = Wt() + u, x = y + d;
385
- de(() => He(e, !1, "start")), "inert" in e && (c = /** @type {HTMLElement} */
386
- e.inert, e.inert = !0), Xt((E) => {
386
+ } = i || en;
387
+ f && (s = Yt(e, 1, 0, d, u, h, f));
388
+ const y = Xt() + u, _ = y + d;
389
+ he(() => He(e, !1, "start")), "inert" in e && (c = /** @type {HTMLElement} */
390
+ e.inert, e.inert = !0), Kt((E) => {
387
391
  if (a) {
388
- if (E >= x)
389
- return g(0, 1), He(e, !1, "end"), --o.r || R(o.c), !1;
392
+ if (E >= _)
393
+ return g(0, 1), He(e, !1, "end"), --o.r || U(o.c), !1;
390
394
  if (E >= y) {
391
395
  const m = h((E - y) / d);
392
396
  g(1 - m, m);
@@ -395,34 +399,34 @@ function Ia(e, t, n) {
395
399
  return a;
396
400
  });
397
401
  }
398
- return ge(i) ? Jt().then(() => {
402
+ return ge(i) ? Qt().then(() => {
399
403
  i = i(r), l();
400
404
  }) : l(), {
401
405
  end(u) {
402
- u && "inert" in e && (e.inert = c), u && i.tick && i.tick(1, 0), a && (s && Xe(e, s), a = !1);
406
+ u && "inert" in e && (e.inert = c), u && i.tick && i.tick(1, 0), a && (s && Ze(e, s), a = !1);
403
407
  }
404
408
  };
405
409
  }
406
- function Ca(e) {
410
+ function Oa(e) {
407
411
  return e?.length !== void 0 ? e : Array.from(e);
408
412
  }
409
- function Jn(e, t, n) {
413
+ function Qn(e, t, n) {
410
414
  const { fragment: r, after_update: i } = e.$$;
411
- r && r.m(t, n), de(() => {
412
- const a = e.$$.on_mount.map(Ut).filter(ge);
413
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : R(a), e.$$.on_mount = [];
414
- }), i.forEach(de);
415
+ r && r.m(t, n), he(() => {
416
+ const a = e.$$.on_mount.map(jt).filter(ge);
417
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : U(a), e.$$.on_mount = [];
418
+ }), i.forEach(he);
415
419
  }
416
- function Yn(e, t) {
420
+ function er(e, t) {
417
421
  const n = e.$$;
418
- n.fragment !== null && (Kn(n.after_update), R(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
422
+ n.fragment !== null && (Yn(n.after_update), U(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
419
423
  }
420
- function Qn(e, t) {
421
- e.$$.dirty[0] === -1 && (V.push(e), Xn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
424
+ function tr(e, t) {
425
+ e.$$.dirty[0] === -1 && (W.push(e), Kn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
422
426
  }
423
- function er(e, t, n, r, i, a, s = null, o = [-1]) {
424
- const c = ce;
425
- ue(e);
427
+ function nr(e, t, n, r, i, a, s = null, o = [-1]) {
428
+ const c = de;
429
+ ce(e);
426
430
  const l = e.$$ = {
427
431
  fragment: null,
428
432
  ctx: [],
@@ -430,7 +434,7 @@ function er(e, t, n, r, i, a, s = null, o = [-1]) {
430
434
  props: a,
431
435
  update: A,
432
436
  not_equal: i,
433
- bound: ht(),
437
+ bound: gt(),
434
438
  // lifecycle
435
439
  on_mount: [],
436
440
  on_destroy: [],
@@ -439,7 +443,7 @@ function er(e, t, n, r, i, a, s = null, o = [-1]) {
439
443
  after_update: [],
440
444
  context: new Map(t.context || (c ? c.$$.context : [])),
441
445
  // everything else
442
- callbacks: ht(),
446
+ callbacks: gt(),
443
447
  dirty: o,
444
448
  skip_bound: !1,
445
449
  root: t.target || c.$$.root
@@ -448,19 +452,19 @@ function er(e, t, n, r, i, a, s = null, o = [-1]) {
448
452
  let u = !1;
449
453
  if (l.ctx = n ? n(e, t.props || {}, (d, h, ...g) => {
450
454
  const f = g.length ? g[0] : h;
451
- return l.ctx && i(l.ctx[d], l.ctx[d] = f) && (!l.skip_bound && l.bound[d] && l.bound[d](f), u && Qn(e, d)), h;
452
- }) : [], l.update(), u = !0, R(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
455
+ return l.ctx && i(l.ctx[d], l.ctx[d] = f) && (!l.skip_bound && l.bound[d] && l.bound[d](f), u && tr(e, d)), h;
456
+ }) : [], l.update(), u = !0, U(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
453
457
  if (t.hydrate) {
454
- const d = zn(t.target);
458
+ const d = Un(t.target);
455
459
  l.fragment && l.fragment.l(d), d.forEach(T);
456
460
  } else
457
461
  l.fragment && l.fragment.c();
458
- t.intro && oe(e.$$.fragment), Jn(e, t.target, t.anchor), H();
462
+ t.intro && le(e.$$.fragment), Qn(e, t.target, t.anchor), H();
459
463
  }
460
- ue(c);
464
+ ce(c);
461
465
  }
462
- let Qt;
463
- typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
466
+ let tn;
467
+ typeof HTMLElement == "function" && (tn = class extends HTMLElement {
464
468
  /** The Svelte component constructor */
465
469
  $$ctor;
466
470
  /** Slots */
@@ -519,7 +523,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
519
523
  };
520
524
  if (await Promise.resolve(), !this.$$cn || this.$$c)
521
525
  return;
522
- const t = {}, n = Un(this);
526
+ const t = {}, n = Gn(this);
523
527
  for (const i of this.$$s)
524
528
  i in n && (t[i] = [e(i)]);
525
529
  for (const i of this.attributes) {
@@ -606,8 +610,8 @@ function Se(e, t, n, r) {
606
610
  return t;
607
611
  }
608
612
  }
609
- function tr(e, t, n, r, i, a) {
610
- let s = class extends Qt {
613
+ function rr(e, t, n, r, i, a) {
614
+ let s = class extends tn {
611
615
  constructor() {
612
616
  super(e, n, i), this.$$p_d = t;
613
617
  }
@@ -635,7 +639,7 @@ function tr(e, t, n, r, i, a) {
635
639
  }), e.element = /** @type {any} */
636
640
  s, s;
637
641
  }
638
- class nr {
642
+ class ir {
639
643
  /**
640
644
  * ### PRIVATE API
641
645
  *
@@ -654,7 +658,7 @@ class nr {
654
658
  $$set = void 0;
655
659
  /** @returns {void} */
656
660
  $destroy() {
657
- Yn(this, 1), this.$destroy = A;
661
+ er(this, 1), this.$destroy = A;
658
662
  }
659
663
  /**
660
664
  * @template {Extract<keyof Events, string>} K
@@ -676,29 +680,29 @@ class nr {
676
680
  * @returns {void}
677
681
  */
678
682
  $set(t) {
679
- this.$$set && !Ln(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
683
+ this.$$set && !On(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
680
684
  }
681
685
  }
682
- const rr = "4";
683
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rr);
684
- const j = [];
685
- function ir(e, t) {
686
+ const ar = "4";
687
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ar);
688
+ const V = [];
689
+ function sr(e, t) {
686
690
  return {
687
- subscribe: Ne(e, t).subscribe
691
+ subscribe: De(e, t).subscribe
688
692
  };
689
693
  }
690
- function Ne(e, t = A) {
694
+ function De(e, t = A) {
691
695
  let n;
692
696
  const r = /* @__PURE__ */ new Set();
693
697
  function i(o) {
694
- if ($t(e, o) && (e = o, n)) {
695
- const c = !j.length;
698
+ if (Vt(e, o) && (e = o, n)) {
699
+ const c = !V.length;
696
700
  for (const l of r)
697
- l[1](), j.push(l, e);
701
+ l[1](), V.push(l, e);
698
702
  if (c) {
699
- for (let l = 0; l < j.length; l += 2)
700
- j[l][0](j[l + 1]);
701
- j.length = 0;
703
+ for (let l = 0; l < V.length; l += 2)
704
+ V[l][0](V[l + 1]);
705
+ V.length = 0;
702
706
  }
703
707
  }
704
708
  }
@@ -713,12 +717,12 @@ function Ne(e, t = A) {
713
717
  }
714
718
  return { set: i, update: a, subscribe: s };
715
719
  }
716
- function ne(e, t, n) {
720
+ function re(e, t, n) {
717
721
  const r = !Array.isArray(e), i = r ? [e] : e;
718
722
  if (!i.every(Boolean))
719
723
  throw new Error("derived() expects stores as input, got a falsy value");
720
724
  const a = t.length < 2;
721
- return ir(n, (s, o) => {
725
+ return sr(n, (s, o) => {
722
726
  let c = !1;
723
727
  const l = [];
724
728
  let u = 0, d = A;
@@ -729,10 +733,10 @@ function ne(e, t, n) {
729
733
  const f = t(r ? l[0] : l, s, o);
730
734
  a ? s(f) : d = ge(f) ? f : A;
731
735
  }, g = i.map(
732
- (f, y) => Gt(
736
+ (f, y) => st(
733
737
  f,
734
- (x) => {
735
- l[y] = x, u &= ~(1 << y), c && h();
738
+ (_) => {
739
+ l[y] = _, u &= ~(1 << y), c && h();
736
740
  },
737
741
  () => {
738
742
  u |= 1 << y;
@@ -740,97 +744,97 @@ function ne(e, t, n) {
740
744
  )
741
745
  );
742
746
  return c = !0, h(), function() {
743
- R(g), d(), c = !1;
747
+ U(g), d(), c = !1;
744
748
  };
745
749
  });
746
750
  }
747
- var Ha = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
748
- function ar(e) {
751
+ var Ma = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
752
+ function or(e) {
749
753
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
750
754
  }
751
- var sr = function(t) {
752
- return or(t) && !lr(t);
755
+ var lr = function(t) {
756
+ return ur(t) && !cr(t);
753
757
  };
754
- function or(e) {
758
+ function ur(e) {
755
759
  return !!e && typeof e == "object";
756
760
  }
757
- function lr(e) {
761
+ function cr(e) {
758
762
  var t = Object.prototype.toString.call(e);
759
- return t === "[object RegExp]" || t === "[object Date]" || dr(e);
763
+ return t === "[object RegExp]" || t === "[object Date]" || mr(e);
760
764
  }
761
- var ur = typeof Symbol == "function" && Symbol.for, cr = ur ? Symbol.for("react.element") : 60103;
762
- function dr(e) {
763
- return e.$$typeof === cr;
765
+ var dr = typeof Symbol == "function" && Symbol.for, hr = dr ? Symbol.for("react.element") : 60103;
766
+ function mr(e) {
767
+ return e.$$typeof === hr;
764
768
  }
765
- function hr(e) {
769
+ function fr(e) {
766
770
  return Array.isArray(e) ? [] : {};
767
771
  }
768
- function he(e, t) {
769
- return t.clone !== !1 && t.isMergeableObject(e) ? J(hr(e), e, t) : e;
772
+ function me(e, t) {
773
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(fr(e), e, t) : e;
770
774
  }
771
- function mr(e, t, n) {
775
+ function gr(e, t, n) {
772
776
  return e.concat(t).map(function(r) {
773
- return he(r, n);
777
+ return me(r, n);
774
778
  });
775
779
  }
776
- function fr(e, t) {
780
+ function pr(e, t) {
777
781
  if (!t.customMerge)
778
- return J;
782
+ return Y;
779
783
  var n = t.customMerge(e);
780
- return typeof n == "function" ? n : J;
784
+ return typeof n == "function" ? n : Y;
781
785
  }
782
- function gr(e) {
786
+ function Er(e) {
783
787
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
784
788
  return Object.propertyIsEnumerable.call(e, t);
785
789
  }) : [];
786
790
  }
787
- function gt(e) {
788
- return Object.keys(e).concat(gr(e));
791
+ function bt(e) {
792
+ return Object.keys(e).concat(Er(e));
789
793
  }
790
- function en(e, t) {
794
+ function nn(e, t) {
791
795
  try {
792
796
  return t in e;
793
797
  } catch {
794
798
  return !1;
795
799
  }
796
800
  }
797
- function pr(e, t) {
798
- return en(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
801
+ function br(e, t) {
802
+ return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
799
803
  }
800
- function Er(e, t, n) {
804
+ function yr(e, t, n) {
801
805
  var r = {};
802
- return n.isMergeableObject(e) && gt(e).forEach(function(i) {
803
- r[i] = he(e[i], n);
804
- }), gt(t).forEach(function(i) {
805
- pr(e, i) || (en(e, i) && n.isMergeableObject(t[i]) ? r[i] = fr(i, n)(e[i], t[i], n) : r[i] = he(t[i], n));
806
+ return n.isMergeableObject(e) && bt(e).forEach(function(i) {
807
+ r[i] = me(e[i], n);
808
+ }), bt(t).forEach(function(i) {
809
+ br(e, i) || (nn(e, i) && n.isMergeableObject(t[i]) ? r[i] = pr(i, n)(e[i], t[i], n) : r[i] = me(t[i], n));
806
810
  }), r;
807
811
  }
808
- function J(e, t, n) {
809
- n = n || {}, n.arrayMerge = n.arrayMerge || mr, n.isMergeableObject = n.isMergeableObject || sr, n.cloneUnlessOtherwiseSpecified = he;
812
+ function Y(e, t, n) {
813
+ n = n || {}, n.arrayMerge = n.arrayMerge || gr, n.isMergeableObject = n.isMergeableObject || lr, n.cloneUnlessOtherwiseSpecified = me;
810
814
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
811
- return a ? r ? n.arrayMerge(e, t, n) : Er(e, t, n) : he(t, n);
815
+ return a ? r ? n.arrayMerge(e, t, n) : yr(e, t, n) : me(t, n);
812
816
  }
813
- J.all = function(t, n) {
817
+ Y.all = function(t, n) {
814
818
  if (!Array.isArray(t))
815
819
  throw new Error("first argument should be an array");
816
820
  return t.reduce(function(r, i) {
817
- return J(r, i, n);
821
+ return Y(r, i, n);
818
822
  }, {});
819
823
  };
820
- var br = J, yr = br;
821
- const vr = /* @__PURE__ */ ar(yr);
822
- var Je = function(e, t) {
823
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
824
+ var vr = Y, Fr = vr;
825
+ const _r = /* @__PURE__ */ or(Fr);
826
+ var Ye = function(e, t) {
827
+ return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
824
828
  n.__proto__ = r;
825
829
  } || function(n, r) {
826
830
  for (var i in r)
827
831
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
828
- }, Je(e, t);
832
+ }, Ye(e, t);
829
833
  };
830
- function De(e, t) {
834
+ function ze(e, t) {
831
835
  if (typeof t != "function" && t !== null)
832
836
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
833
- Je(e, t);
837
+ Ye(e, t);
834
838
  function n() {
835
839
  this.constructor = e;
836
840
  }
@@ -846,7 +850,7 @@ var P = function() {
846
850
  return t;
847
851
  }, P.apply(this, arguments);
848
852
  };
849
- function Fr(e, t) {
853
+ function xr(e, t) {
850
854
  var n = {};
851
855
  for (var r in e)
852
856
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -855,43 +859,43 @@ function Fr(e, t) {
855
859
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
856
860
  return n;
857
861
  }
858
- function $e(e, t, n) {
862
+ function Ge(e, t, n) {
859
863
  if (n || arguments.length === 2)
860
864
  for (var r = 0, i = t.length, a; r < i; r++)
861
865
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
862
866
  return e.concat(a || Array.prototype.slice.call(t));
863
867
  }
864
- function Ge(e, t) {
865
- var n = t && t.cache ? t.cache : Br, r = t && t.serializer ? t.serializer : wr, i = t && t.strategy ? t.strategy : kr;
868
+ function je(e, t) {
869
+ var n = t && t.cache ? t.cache : Ir, r = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : wr;
866
870
  return i(e, {
867
871
  cache: n,
868
872
  serializer: r
869
873
  });
870
874
  }
871
- function xr(e) {
875
+ function kr(e) {
872
876
  return e == null || typeof e == "number" || typeof e == "boolean";
873
877
  }
874
- function _r(e, t, n, r) {
875
- var i = xr(r) ? r : n(r), a = t.get(i);
878
+ function Tr(e, t, n, r) {
879
+ var i = kr(r) ? r : n(r), a = t.get(i);
876
880
  return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
877
881
  }
878
- function tn(e, t, n) {
882
+ function rn(e, t, n) {
879
883
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
880
884
  return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
881
885
  }
882
- function nn(e, t, n, r, i) {
886
+ function an(e, t, n, r, i) {
883
887
  return n.bind(t, e, r, i);
884
888
  }
885
- function kr(e, t) {
886
- var n = e.length === 1 ? _r : tn;
887
- return nn(e, this, n, t.cache.create(), t.serializer);
889
+ function wr(e, t) {
890
+ var n = e.length === 1 ? Tr : rn;
891
+ return an(e, this, n, t.cache.create(), t.serializer);
888
892
  }
889
- function Tr(e, t) {
890
- return nn(e, this, tn, t.cache.create(), t.serializer);
893
+ function Sr(e, t) {
894
+ return an(e, this, rn, t.cache.create(), t.serializer);
891
895
  }
892
- var wr = function() {
896
+ var Br = function() {
893
897
  return JSON.stringify(arguments);
894
- }, Sr = (
898
+ }, Ar = (
895
899
  /** @class */
896
900
  function() {
897
901
  function e() {
@@ -903,12 +907,12 @@ var wr = function() {
903
907
  this.cache[t] = n;
904
908
  }, e;
905
909
  }()
906
- ), Br = {
910
+ ), Ir = {
907
911
  create: function() {
908
- return new Sr();
912
+ return new Ar();
909
913
  }
910
- }, je = {
911
- variadic: Tr
914
+ }, Ve = {
915
+ variadic: Sr
912
916
  }, Pe = function() {
913
917
  return Pe = Object.assign || function(t) {
914
918
  for (var n, r = 1, i = arguments.length; r < i; r++) {
@@ -923,51 +927,51 @@ var b;
923
927
  (function(e) {
924
928
  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";
925
929
  })(b || (b = {}));
926
- var _;
930
+ var x;
927
931
  (function(e) {
928
932
  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";
929
- })(_ || (_ = {}));
930
- var Y;
933
+ })(x || (x = {}));
934
+ var Q;
931
935
  (function(e) {
932
936
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
933
- })(Y || (Y = {}));
934
- function pt(e) {
935
- return e.type === _.literal;
936
- }
937
- function Ar(e) {
938
- return e.type === _.argument;
939
- }
940
- function rn(e) {
941
- return e.type === _.number;
937
+ })(Q || (Q = {}));
938
+ function yt(e) {
939
+ return e.type === x.literal;
942
940
  }
943
- function an(e) {
944
- return e.type === _.date;
941
+ function Cr(e) {
942
+ return e.type === x.argument;
945
943
  }
946
944
  function sn(e) {
947
- return e.type === _.time;
945
+ return e.type === x.number;
948
946
  }
949
947
  function on(e) {
950
- return e.type === _.select;
948
+ return e.type === x.date;
951
949
  }
952
950
  function ln(e) {
953
- return e.type === _.plural;
954
- }
955
- function Ir(e) {
956
- return e.type === _.pound;
951
+ return e.type === x.time;
957
952
  }
958
953
  function un(e) {
959
- return e.type === _.tag;
954
+ return e.type === x.select;
960
955
  }
961
956
  function cn(e) {
962
- return !!(e && typeof e == "object" && e.type === Y.number);
963
- }
964
- function Ye(e) {
965
- return !!(e && typeof e == "object" && e.type === Y.dateTime);
957
+ return e.type === x.plural;
966
958
  }
967
- var dn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cr = /(?:[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;
968
959
  function Hr(e) {
960
+ return e.type === x.pound;
961
+ }
962
+ function dn(e) {
963
+ return e.type === x.tag;
964
+ }
965
+ function hn(e) {
966
+ return !!(e && typeof e == "object" && e.type === Q.number);
967
+ }
968
+ function Qe(e) {
969
+ return !!(e && typeof e == "object" && e.type === Q.dateTime);
970
+ }
971
+ var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
972
+ function Lr(e) {
969
973
  var t = {};
970
- return e.replace(Cr, function(n) {
974
+ return e.replace(Pr, function(n) {
971
975
  var r = n.length;
972
976
  switch (n[0]) {
973
977
  case "G":
@@ -1066,11 +1070,11 @@ var k = function() {
1066
1070
  return t;
1067
1071
  }, k.apply(this, arguments);
1068
1072
  };
1069
- var Pr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1070
- function Lr(e) {
1073
+ var Or = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1074
+ function Mr(e) {
1071
1075
  if (e.length === 0)
1072
1076
  throw new Error("Number skeleton cannot be empty");
1073
- for (var t = e.split(Pr).filter(function(h) {
1077
+ for (var t = e.split(Or).filter(function(h) {
1074
1078
  return h.length > 0;
1075
1079
  }), n = [], r = 0, i = t; r < i.length; r++) {
1076
1080
  var a = i[r], s = a.split("/");
@@ -1085,17 +1089,17 @@ function Lr(e) {
1085
1089
  }
1086
1090
  return n;
1087
1091
  }
1088
- function Or(e) {
1092
+ function Nr(e) {
1089
1093
  return e.replace(/^(.*?)-/, "");
1090
1094
  }
1091
- var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hn = /^(@+)?(\+|#+)?[rs]?$/g, Mr = /(\*)(0+)|(#+)(0+)|(0+)/g, mn = /^(0+)$/;
1092
- function bt(e) {
1095
+ var vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fn = /^(@+)?(\+|#+)?[rs]?$/g, Dr = /(\*)(0+)|(#+)(0+)|(0+)/g, gn = /^(0+)$/;
1096
+ function Ft(e) {
1093
1097
  var t = {};
1094
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hn, function(n, r, i) {
1098
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fn, function(n, r, i) {
1095
1099
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1096
1100
  }), t;
1097
1101
  }
1098
- function fn(e) {
1102
+ function pn(e) {
1099
1103
  switch (e) {
1100
1104
  case "sign-auto":
1101
1105
  return {
@@ -1135,7 +1139,7 @@ function fn(e) {
1135
1139
  };
1136
1140
  }
1137
1141
  }
1138
- function Nr(e) {
1142
+ function zr(e) {
1139
1143
  var t;
1140
1144
  if (e[0] === "E" && e[1] === "E" ? (t = {
1141
1145
  notation: "engineering"
@@ -1143,17 +1147,17 @@ function Nr(e) {
1143
1147
  notation: "scientific"
1144
1148
  }, e = e.slice(1)), t) {
1145
1149
  var n = e.slice(0, 2);
1146
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mn.test(e))
1150
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gn.test(e))
1147
1151
  throw new Error("Malformed concise eng/scientific notation");
1148
1152
  t.minimumIntegerDigits = e.length;
1149
1153
  }
1150
1154
  return t;
1151
1155
  }
1152
- function yt(e) {
1153
- var t = {}, n = fn(e);
1156
+ function _t(e) {
1157
+ var t = {}, n = pn(e);
1154
1158
  return n || t;
1155
1159
  }
1156
- function Dr(e) {
1160
+ function Rr(e) {
1157
1161
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1158
1162
  var i = r[n];
1159
1163
  switch (i.stem) {
@@ -1177,7 +1181,7 @@ function Dr(e) {
1177
1181
  continue;
1178
1182
  case "measure-unit":
1179
1183
  case "unit":
1180
- t.style = "unit", t.unit = Or(i.options[0]);
1184
+ t.style = "unit", t.unit = Nr(i.options[0]);
1181
1185
  continue;
1182
1186
  case "compact-short":
1183
1187
  case "K":
@@ -1189,12 +1193,12 @@ function Dr(e) {
1189
1193
  continue;
1190
1194
  case "scientific":
1191
1195
  t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1192
- return k(k({}, c), yt(l));
1196
+ return k(k({}, c), _t(l));
1193
1197
  }, {}));
1194
1198
  continue;
1195
1199
  case "engineering":
1196
1200
  t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1197
- return k(k({}, c), yt(l));
1201
+ return k(k({}, c), _t(l));
1198
1202
  }, {}));
1199
1203
  continue;
1200
1204
  case "notation-simple":
@@ -1239,7 +1243,7 @@ function Dr(e) {
1239
1243
  case "integer-width":
1240
1244
  if (i.options.length > 1)
1241
1245
  throw new RangeError("integer-width stems only accept a single optional option");
1242
- i.options[0].replace(Mr, function(c, l, u, d, h, g) {
1246
+ i.options[0].replace(Dr, function(c, l, u, d, h, g) {
1243
1247
  if (l)
1244
1248
  t.minimumIntegerDigits = u.length;
1245
1249
  else {
@@ -1252,27 +1256,27 @@ function Dr(e) {
1252
1256
  });
1253
1257
  continue;
1254
1258
  }
1255
- if (mn.test(i.stem)) {
1259
+ if (gn.test(i.stem)) {
1256
1260
  t.minimumIntegerDigits = i.stem.length;
1257
1261
  continue;
1258
1262
  }
1259
- if (Et.test(i.stem)) {
1263
+ if (vt.test(i.stem)) {
1260
1264
  if (i.options.length > 1)
1261
1265
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1262
- i.stem.replace(Et, function(c, l, u, d, h, g) {
1266
+ i.stem.replace(vt, function(c, l, u, d, h, g) {
1263
1267
  return u === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && g ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1264
1268
  });
1265
1269
  var a = i.options[0];
1266
- a === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = k(k({}, t), bt(a)));
1270
+ a === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = k(k({}, t), Ft(a)));
1267
1271
  continue;
1268
1272
  }
1269
- if (hn.test(i.stem)) {
1270
- t = k(k({}, t), bt(i.stem));
1273
+ if (fn.test(i.stem)) {
1274
+ t = k(k({}, t), Ft(i.stem));
1271
1275
  continue;
1272
1276
  }
1273
- var s = fn(i.stem);
1277
+ var s = pn(i.stem);
1274
1278
  s && (t = k(k({}, t), s));
1275
- var o = Nr(i.stem);
1279
+ var o = zr(i.stem);
1276
1280
  o && (t = k(k({}, t), o));
1277
1281
  }
1278
1282
  return t;
@@ -2692,13 +2696,13 @@ var Te = {
2692
2696
  "h"
2693
2697
  ]
2694
2698
  };
2695
- function zr(e, t) {
2699
+ function Ur(e, t) {
2696
2700
  for (var n = "", r = 0; r < e.length; r++) {
2697
2701
  var i = e.charAt(r);
2698
2702
  if (i === "j") {
2699
2703
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2700
2704
  a++, r++;
2701
- var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = Rr(t);
2705
+ var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = $r(t);
2702
2706
  for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
2703
2707
  n += c;
2704
2708
  for (; s-- > 0; )
@@ -2708,7 +2712,7 @@ function zr(e, t) {
2708
2712
  }
2709
2713
  return n;
2710
2714
  }
2711
- function Rr(e) {
2715
+ function $r(e) {
2712
2716
  var t = e.hourCycle;
2713
2717
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2714
2718
  e.hourCycles && // @ts-ignore
@@ -2730,20 +2734,20 @@ function Rr(e) {
2730
2734
  var i = Te[r || ""] || Te[n || ""] || Te["".concat(n, "-001")] || Te["001"];
2731
2735
  return i[0];
2732
2736
  }
2733
- var Ve, Ur = new RegExp("^".concat(dn.source, "*")), $r = new RegExp("".concat(dn.source, "*$"));
2737
+ var We, Gr = new RegExp("^".concat(mn.source, "*")), jr = new RegExp("".concat(mn.source, "*$"));
2734
2738
  function F(e, t) {
2735
2739
  return { start: e, end: t };
2736
2740
  }
2737
- var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Wr = !!String.prototype.codePointAt, qr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Kr = Zr ? Number.isSafeInteger : function(e) {
2741
+ var Vr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wr = !!String.fromCodePoint, qr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, Zr = !!String.prototype.trimStart, Kr = !!String.prototype.trimEnd, Jr = !!Number.isSafeInteger, Yr = Jr ? Number.isSafeInteger : function(e) {
2738
2742
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2739
- }, Qe = !0;
2743
+ }, et = !0;
2740
2744
  try {
2741
- var Jr = pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2742
- Qe = ((Ve = Jr.exec("a")) === null || Ve === void 0 ? void 0 : Ve[0]) === "a";
2745
+ var Qr = bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2746
+ et = ((We = Qr.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
2743
2747
  } catch {
2744
- Qe = !1;
2748
+ et = !1;
2745
2749
  }
2746
- var vt = Gr ? (
2750
+ var xt = Vr ? (
2747
2751
  // Native
2748
2752
  function(t, n, r) {
2749
2753
  return t.startsWith(n, r);
@@ -2753,7 +2757,7 @@ var vt = Gr ? (
2753
2757
  function(t, n, r) {
2754
2758
  return t.slice(r, r + n.length) === n;
2755
2759
  }
2756
- ), et = jr ? String.fromCodePoint : (
2760
+ ), tt = Wr ? String.fromCodePoint : (
2757
2761
  // IE11
2758
2762
  function() {
2759
2763
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2765,9 +2769,9 @@ var vt = Gr ? (
2765
2769
  }
2766
2770
  return r;
2767
2771
  }
2768
- ), Ft = (
2772
+ ), kt = (
2769
2773
  // native
2770
- Vr ? Object.fromEntries : (
2774
+ qr ? Object.fromEntries : (
2771
2775
  // Ponyfill
2772
2776
  function(t) {
2773
2777
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2777,7 +2781,7 @@ var vt = Gr ? (
2777
2781
  return n;
2778
2782
  }
2779
2783
  )
2780
- ), gn = Wr ? (
2784
+ ), En = Xr ? (
2781
2785
  // Native
2782
2786
  function(t, n) {
2783
2787
  return t.codePointAt(n);
@@ -2791,7 +2795,7 @@ var vt = Gr ? (
2791
2795
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2792
2796
  }
2793
2797
  }
2794
- ), Yr = qr ? (
2798
+ ), ei = Zr ? (
2795
2799
  // Native
2796
2800
  function(t) {
2797
2801
  return t.trimStart();
@@ -2799,9 +2803,9 @@ var vt = Gr ? (
2799
2803
  ) : (
2800
2804
  // Ponyfill
2801
2805
  function(t) {
2802
- return t.replace(Ur, "");
2806
+ return t.replace(Gr, "");
2803
2807
  }
2804
- ), Qr = Xr ? (
2808
+ ), ti = Kr ? (
2805
2809
  // Native
2806
2810
  function(t) {
2807
2811
  return t.trimEnd();
@@ -2809,32 +2813,32 @@ var vt = Gr ? (
2809
2813
  ) : (
2810
2814
  // Ponyfill
2811
2815
  function(t) {
2812
- return t.replace($r, "");
2816
+ return t.replace(jr, "");
2813
2817
  }
2814
2818
  );
2815
- function pn(e, t) {
2819
+ function bn(e, t) {
2816
2820
  return new RegExp(e, t);
2817
2821
  }
2818
- var tt;
2819
- if (Qe) {
2820
- var xt = pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2821
- tt = function(t, n) {
2822
+ var nt;
2823
+ if (et) {
2824
+ var Tt = bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2825
+ nt = function(t, n) {
2822
2826
  var r;
2823
- xt.lastIndex = n;
2824
- var i = xt.exec(t);
2827
+ Tt.lastIndex = n;
2828
+ var i = Tt.exec(t);
2825
2829
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2826
2830
  };
2827
2831
  } else
2828
- tt = function(t, n) {
2832
+ nt = function(t, n) {
2829
2833
  for (var r = []; ; ) {
2830
- var i = gn(t, n);
2831
- if (i === void 0 || En(i) || ri(i))
2834
+ var i = En(t, n);
2835
+ if (i === void 0 || yn(i) || ai(i))
2832
2836
  break;
2833
2837
  r.push(i), n += i >= 65536 ? 2 : 1;
2834
2838
  }
2835
- return et.apply(void 0, r);
2839
+ return tt.apply(void 0, r);
2836
2840
  };
2837
- var ei = (
2841
+ var ni = (
2838
2842
  /** @class */
2839
2843
  function() {
2840
2844
  function e(t, n) {
@@ -2858,14 +2862,14 @@ var ei = (
2858
2862
  if (a === 35 && (n === "plural" || n === "selectordinal")) {
2859
2863
  var o = this.clonePosition();
2860
2864
  this.bump(), i.push({
2861
- type: _.pound,
2865
+ type: x.pound,
2862
2866
  location: F(o, this.clonePosition())
2863
2867
  });
2864
2868
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2865
2869
  if (r)
2866
2870
  break;
2867
2871
  return this.error(b.UNMATCHED_CLOSING_TAG, F(this.clonePosition(), this.clonePosition()));
2868
- } else if (a === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
2872
+ } else if (a === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
2869
2873
  var s = this.parseTag(t, n);
2870
2874
  if (s.err)
2871
2875
  return s;
@@ -2886,7 +2890,7 @@ var ei = (
2886
2890
  if (this.bumpSpace(), this.bumpIf("/>"))
2887
2891
  return {
2888
2892
  val: {
2889
- type: _.literal,
2893
+ type: x.literal,
2890
2894
  value: "<".concat(i, "/>"),
2891
2895
  location: F(r, this.clonePosition())
2892
2896
  },
@@ -2898,12 +2902,12 @@ var ei = (
2898
2902
  return a;
2899
2903
  var s = a.val, o = this.clonePosition();
2900
2904
  if (this.bumpIf("</")) {
2901
- if (this.isEOF() || !nt(this.char()))
2905
+ if (this.isEOF() || !rt(this.char()))
2902
2906
  return this.error(b.INVALID_TAG, F(o, this.clonePosition()));
2903
2907
  var c = this.clonePosition(), l = this.parseTagName();
2904
2908
  return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, F(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2905
2909
  val: {
2906
- type: _.tag,
2910
+ type: x.tag,
2907
2911
  value: i,
2908
2912
  children: s,
2909
2913
  location: F(r, this.clonePosition())
@@ -2916,7 +2920,7 @@ var ei = (
2916
2920
  return this.error(b.INVALID_TAG, F(r, this.clonePosition()));
2917
2921
  }, e.prototype.parseTagName = function() {
2918
2922
  var t = this.offset();
2919
- for (this.bump(); !this.isEOF() && ni(this.char()); )
2923
+ for (this.bump(); !this.isEOF() && ii(this.char()); )
2920
2924
  this.bump();
2921
2925
  return this.message.slice(t, this.offset());
2922
2926
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2940,12 +2944,12 @@ var ei = (
2940
2944
  }
2941
2945
  var c = F(r, this.clonePosition());
2942
2946
  return {
2943
- val: { type: _.literal, value: i, location: c },
2947
+ val: { type: x.literal, value: i, location: c },
2944
2948
  err: null
2945
2949
  };
2946
2950
  }, e.prototype.tryParseLeftAngleBracket = function() {
2947
2951
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2948
- !ti(this.peek() || 0)) ? (this.bump(), "<") : null;
2952
+ !ri(this.peek() || 0)) ? (this.bump(), "<") : null;
2949
2953
  }, e.prototype.tryParseQuote = function(t) {
2950
2954
  if (this.isEOF() || this.char() !== 39)
2951
2955
  return null;
@@ -2979,12 +2983,12 @@ var ei = (
2979
2983
  n.push(r);
2980
2984
  this.bump();
2981
2985
  }
2982
- return et.apply(void 0, n);
2986
+ return tt.apply(void 0, n);
2983
2987
  }, e.prototype.tryParseUnquoted = function(t, n) {
2984
2988
  if (this.isEOF())
2985
2989
  return null;
2986
2990
  var r = this.char();
2987
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), et(r));
2991
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), tt(r));
2988
2992
  }, e.prototype.parseArgument = function(t, n) {
2989
2993
  var r = this.clonePosition();
2990
2994
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3000,7 +3004,7 @@ var ei = (
3000
3004
  case 125:
3001
3005
  return this.bump(), {
3002
3006
  val: {
3003
- type: _.argument,
3007
+ type: x.argument,
3004
3008
  // value does not include the opening and closing braces.
3005
3009
  value: i,
3006
3010
  location: F(r, this.clonePosition())
@@ -3013,7 +3017,7 @@ var ei = (
3013
3017
  return this.error(b.MALFORMED_ARGUMENT, F(r, this.clonePosition()));
3014
3018
  }
3015
3019
  }, e.prototype.parseIdentifierIfPossible = function() {
3016
- var t = this.clonePosition(), n = this.offset(), r = tt(this.message, n), i = n + r.length;
3020
+ var t = this.clonePosition(), n = this.offset(), r = nt(this.message, n), i = n + r.length;
3017
3021
  this.bumpTo(i);
3018
3022
  var a = this.clonePosition(), s = F(t, a);
3019
3023
  return { value: r, location: s };
@@ -3032,7 +3036,7 @@ var ei = (
3032
3036
  var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
3033
3037
  if (d.err)
3034
3038
  return d;
3035
- var h = Qr(d.val);
3039
+ var h = ti(d.val);
3036
3040
  if (h.length === 0)
3037
3041
  return this.error(b.EXPECT_ARGUMENT_STYLE, F(this.clonePosition(), this.clonePosition()));
3038
3042
  var g = F(u, this.clonePosition());
@@ -3042,25 +3046,25 @@ var ei = (
3042
3046
  if (f.err)
3043
3047
  return f;
3044
3048
  var y = F(i, this.clonePosition());
3045
- if (l && vt(l?.style, "::", 0)) {
3046
- var x = Yr(l.style.slice(2));
3049
+ if (l && xt(l?.style, "::", 0)) {
3050
+ var _ = ei(l.style.slice(2));
3047
3051
  if (o === "number") {
3048
- var d = this.parseNumberSkeletonFromString(x, l.styleLocation);
3052
+ var d = this.parseNumberSkeletonFromString(_, l.styleLocation);
3049
3053
  return d.err ? d : {
3050
- val: { type: _.number, value: r, location: y, style: d.val },
3054
+ val: { type: x.number, value: r, location: y, style: d.val },
3051
3055
  err: null
3052
3056
  };
3053
3057
  } else {
3054
- if (x.length === 0)
3058
+ if (_.length === 0)
3055
3059
  return this.error(b.EXPECT_DATE_TIME_SKELETON, y);
3056
- var E = x;
3057
- this.locale && (E = zr(x, this.locale));
3060
+ var E = _;
3061
+ this.locale && (E = Ur(_, this.locale));
3058
3062
  var h = {
3059
- type: Y.dateTime,
3063
+ type: Q.dateTime,
3060
3064
  pattern: E,
3061
3065
  location: l.styleLocation,
3062
- parsedOptions: this.shouldParseSkeletons ? Hr(E) : {}
3063
- }, m = o === "date" ? _.date : _.time;
3066
+ parsedOptions: this.shouldParseSkeletons ? Lr(E) : {}
3067
+ }, m = o === "date" ? x.date : x.time;
3064
3068
  return {
3065
3069
  val: { type: m, value: r, location: y, style: h },
3066
3070
  err: null
@@ -3069,7 +3073,7 @@ var ei = (
3069
3073
  }
3070
3074
  return {
3071
3075
  val: {
3072
- type: o === "number" ? _.number : o === "date" ? _.date : _.time,
3076
+ type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3073
3077
  value: r,
3074
3078
  location: y,
3075
3079
  style: (a = l?.style) !== null && a !== void 0 ? a : null
@@ -3094,26 +3098,26 @@ var ei = (
3094
3098
  return d;
3095
3099
  this.bumpSpace(), C = this.parseIdentifierIfPossible(), L = d.val;
3096
3100
  }
3097
- var $ = this.tryParsePluralOrSelectOptions(t, o, n, C);
3098
- if ($.err)
3099
- return $;
3101
+ var G = this.tryParsePluralOrSelectOptions(t, o, n, C);
3102
+ if (G.err)
3103
+ return G;
3100
3104
  var f = this.tryParseArgumentClose(i);
3101
3105
  if (f.err)
3102
3106
  return f;
3103
3107
  var Ee = F(i, this.clonePosition());
3104
3108
  return o === "select" ? {
3105
3109
  val: {
3106
- type: _.select,
3110
+ type: x.select,
3107
3111
  value: r,
3108
- options: Ft($.val),
3112
+ options: kt(G.val),
3109
3113
  location: Ee
3110
3114
  },
3111
3115
  err: null
3112
3116
  } : {
3113
3117
  val: {
3114
- type: _.plural,
3118
+ type: x.plural,
3115
3119
  value: r,
3116
- options: Ft($.val),
3120
+ options: kt(G.val),
3117
3121
  offset: L,
3118
3122
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3119
3123
  location: Ee
@@ -3164,16 +3168,16 @@ var ei = (
3164
3168
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3165
3169
  var r = [];
3166
3170
  try {
3167
- r = Lr(t);
3171
+ r = Mr(t);
3168
3172
  } catch {
3169
3173
  return this.error(b.INVALID_NUMBER_SKELETON, n);
3170
3174
  }
3171
3175
  return {
3172
3176
  val: {
3173
- type: Y.number,
3177
+ type: Q.number,
3174
3178
  tokens: r,
3175
3179
  location: n,
3176
- parsedOptions: this.shouldParseSkeletons ? Dr(r) : {}
3180
+ parsedOptions: this.shouldParseSkeletons ? Rr(r) : {}
3177
3181
  },
3178
3182
  err: null
3179
3183
  };
@@ -3221,7 +3225,7 @@ var ei = (
3221
3225
  break;
3222
3226
  }
3223
3227
  var c = F(i, this.clonePosition());
3224
- return a ? (s *= r, Kr(s) ? { val: s, err: null } : this.error(n, c)) : this.error(t, c);
3228
+ return a ? (s *= r, Yr(s) ? { val: s, err: null } : this.error(n, c)) : this.error(t, c);
3225
3229
  }, e.prototype.offset = function() {
3226
3230
  return this.position.offset;
3227
3231
  }, e.prototype.isEOF = function() {
@@ -3236,7 +3240,7 @@ var ei = (
3236
3240
  var t = this.position.offset;
3237
3241
  if (t >= this.message.length)
3238
3242
  throw Error("out of bound");
3239
- var n = gn(this.message, t);
3243
+ var n = En(this.message, t);
3240
3244
  if (n === void 0)
3241
3245
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3242
3246
  return n;
@@ -3255,7 +3259,7 @@ var ei = (
3255
3259
  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);
3256
3260
  }
3257
3261
  }, e.prototype.bumpIf = function(t) {
3258
- if (vt(this.message, t, this.offset())) {
3262
+ if (xt(this.message, t, this.offset())) {
3259
3263
  for (var n = 0; n < t.length; n++)
3260
3264
  this.bump();
3261
3265
  return !0;
@@ -3277,7 +3281,7 @@ var ei = (
3277
3281
  break;
3278
3282
  }
3279
3283
  }, e.prototype.bumpSpace = function() {
3280
- for (; !this.isEOF() && En(this.char()); )
3284
+ for (; !this.isEOF() && yn(this.char()); )
3281
3285
  this.bump();
3282
3286
  }, e.prototype.peek = function() {
3283
3287
  if (this.isEOF())
@@ -3287,47 +3291,47 @@ var ei = (
3287
3291
  }, e;
3288
3292
  }()
3289
3293
  );
3290
- function nt(e) {
3294
+ function rt(e) {
3291
3295
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3292
3296
  }
3293
- function ti(e) {
3294
- return nt(e) || e === 47;
3297
+ function ri(e) {
3298
+ return rt(e) || e === 47;
3295
3299
  }
3296
- function ni(e) {
3300
+ function ii(e) {
3297
3301
  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;
3298
3302
  }
3299
- function En(e) {
3303
+ function yn(e) {
3300
3304
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3301
3305
  }
3302
- function ri(e) {
3306
+ function ai(e) {
3303
3307
  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;
3304
3308
  }
3305
- function rt(e) {
3309
+ function it(e) {
3306
3310
  e.forEach(function(t) {
3307
- if (delete t.location, on(t) || ln(t))
3311
+ if (delete t.location, un(t) || cn(t))
3308
3312
  for (var n in t.options)
3309
- delete t.options[n].location, rt(t.options[n].value);
3313
+ delete t.options[n].location, it(t.options[n].value);
3310
3314
  else
3311
- rn(t) && cn(t.style) || (an(t) || sn(t)) && Ye(t.style) ? delete t.style.location : un(t) && rt(t.children);
3315
+ sn(t) && hn(t.style) || (on(t) || ln(t)) && Qe(t.style) ? delete t.style.location : dn(t) && it(t.children);
3312
3316
  });
3313
3317
  }
3314
- function ii(e, t) {
3318
+ function si(e, t) {
3315
3319
  t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3316
- var n = new ei(e, t).parse();
3320
+ var n = new ni(e, t).parse();
3317
3321
  if (n.err) {
3318
3322
  var r = SyntaxError(b[n.err.kind]);
3319
3323
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3320
3324
  }
3321
- return t?.captureLocation || rt(n.val), n.val;
3325
+ return t?.captureLocation || it(n.val), n.val;
3322
3326
  }
3323
- var Q;
3327
+ var ee;
3324
3328
  (function(e) {
3325
3329
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3326
- })(Q || (Q = {}));
3327
- var ze = (
3330
+ })(ee || (ee = {}));
3331
+ var Re = (
3328
3332
  /** @class */
3329
3333
  function(e) {
3330
- De(t, e);
3334
+ ze(t, e);
3331
3335
  function t(n, r, i) {
3332
3336
  var a = e.call(this, n) || this;
3333
3337
  return a.code = r, a.originalMessage = i, a;
@@ -3336,48 +3340,48 @@ var ze = (
3336
3340
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3337
3341
  }, t;
3338
3342
  }(Error)
3339
- ), _t = (
3343
+ ), wt = (
3340
3344
  /** @class */
3341
3345
  function(e) {
3342
- De(t, e);
3346
+ ze(t, e);
3343
3347
  function t(n, r, i, a) {
3344
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, a) || this;
3348
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, a) || this;
3345
3349
  }
3346
3350
  return t;
3347
- }(ze)
3348
- ), ai = (
3351
+ }(Re)
3352
+ ), oi = (
3349
3353
  /** @class */
3350
3354
  function(e) {
3351
- De(t, e);
3355
+ ze(t, e);
3352
3356
  function t(n, r, i) {
3353
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Q.INVALID_VALUE, i) || this;
3357
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ee.INVALID_VALUE, i) || this;
3354
3358
  }
3355
3359
  return t;
3356
- }(ze)
3357
- ), si = (
3360
+ }(Re)
3361
+ ), li = (
3358
3362
  /** @class */
3359
3363
  function(e) {
3360
- De(t, e);
3364
+ ze(t, e);
3361
3365
  function t(n, r) {
3362
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Q.MISSING_VALUE, r) || this;
3366
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ee.MISSING_VALUE, r) || this;
3363
3367
  }
3364
3368
  return t;
3365
- }(ze)
3369
+ }(Re)
3366
3370
  ), w;
3367
3371
  (function(e) {
3368
3372
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3369
3373
  })(w || (w = {}));
3370
- function oi(e) {
3374
+ function ui(e) {
3371
3375
  return e.length < 2 ? e : e.reduce(function(t, n) {
3372
3376
  var r = t[t.length - 1];
3373
3377
  return !r || r.type !== w.literal || n.type !== w.literal ? t.push(n) : r.value += n.value, t;
3374
3378
  }, []);
3375
3379
  }
3376
- function li(e) {
3380
+ function ci(e) {
3377
3381
  return typeof e == "function";
3378
3382
  }
3379
3383
  function Be(e, t, n, r, i, a, s) {
3380
- if (e.length === 1 && pt(e[0]))
3384
+ if (e.length === 1 && yt(e[0]))
3381
3385
  return [
3382
3386
  {
3383
3387
  type: w.literal,
@@ -3386,14 +3390,14 @@ function Be(e, t, n, r, i, a, s) {
3386
3390
  ];
3387
3391
  for (var o = [], c = 0, l = e; c < l.length; c++) {
3388
3392
  var u = l[c];
3389
- if (pt(u)) {
3393
+ if (yt(u)) {
3390
3394
  o.push({
3391
3395
  type: w.literal,
3392
3396
  value: u.value
3393
3397
  });
3394
3398
  continue;
3395
3399
  }
3396
- if (Ir(u)) {
3400
+ if (Hr(u)) {
3397
3401
  typeof a == "number" && o.push({
3398
3402
  type: w.literal,
3399
3403
  value: n.getNumberFormat(t).format(a)
@@ -3402,44 +3406,44 @@ function Be(e, t, n, r, i, a, s) {
3402
3406
  }
3403
3407
  var d = u.value;
3404
3408
  if (!(i && d in i))
3405
- throw new si(d, s);
3409
+ throw new li(d, s);
3406
3410
  var h = i[d];
3407
- if (Ar(u)) {
3411
+ if (Cr(u)) {
3408
3412
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
3409
3413
  type: typeof h == "string" ? w.literal : w.object,
3410
3414
  value: h
3411
3415
  });
3412
3416
  continue;
3413
3417
  }
3414
- if (an(u)) {
3415
- var g = typeof u.style == "string" ? r.date[u.style] : Ye(u.style) ? u.style.parsedOptions : void 0;
3418
+ if (on(u)) {
3419
+ var g = typeof u.style == "string" ? r.date[u.style] : Qe(u.style) ? u.style.parsedOptions : void 0;
3416
3420
  o.push({
3417
3421
  type: w.literal,
3418
3422
  value: n.getDateTimeFormat(t, g).format(h)
3419
3423
  });
3420
3424
  continue;
3421
3425
  }
3422
- if (sn(u)) {
3423
- var g = typeof u.style == "string" ? r.time[u.style] : Ye(u.style) ? u.style.parsedOptions : r.time.medium;
3426
+ if (ln(u)) {
3427
+ var g = typeof u.style == "string" ? r.time[u.style] : Qe(u.style) ? u.style.parsedOptions : r.time.medium;
3424
3428
  o.push({
3425
3429
  type: w.literal,
3426
3430
  value: n.getDateTimeFormat(t, g).format(h)
3427
3431
  });
3428
3432
  continue;
3429
3433
  }
3430
- if (rn(u)) {
3431
- var g = typeof u.style == "string" ? r.number[u.style] : cn(u.style) ? u.style.parsedOptions : void 0;
3434
+ if (sn(u)) {
3435
+ var g = typeof u.style == "string" ? r.number[u.style] : hn(u.style) ? u.style.parsedOptions : void 0;
3432
3436
  g && g.scale && (h = h * (g.scale || 1)), o.push({
3433
3437
  type: w.literal,
3434
3438
  value: n.getNumberFormat(t, g).format(h)
3435
3439
  });
3436
3440
  continue;
3437
3441
  }
3438
- if (un(u)) {
3439
- var f = u.children, y = u.value, x = i[y];
3440
- if (!li(x))
3441
- throw new ai(y, "function", s);
3442
- var E = Be(f, t, n, r, i, a), m = x(E.map(function(L) {
3442
+ if (dn(u)) {
3443
+ var f = u.children, y = u.value, _ = i[y];
3444
+ if (!ci(_))
3445
+ throw new oi(y, "function", s);
3446
+ var E = Be(f, t, n, r, i, a), m = _(E.map(function(L) {
3443
3447
  return L.value;
3444
3448
  }));
3445
3449
  Array.isArray(m) || (m = [m]), o.push.apply(o, m.map(function(L) {
@@ -3449,42 +3453,42 @@ function Be(e, t, n, r, i, a, s) {
3449
3453
  };
3450
3454
  }));
3451
3455
  }
3452
- if (on(u)) {
3456
+ if (un(u)) {
3453
3457
  var v = u.options[h] || u.options.other;
3454
3458
  if (!v)
3455
- throw new _t(u.value, h, Object.keys(u.options), s);
3459
+ throw new wt(u.value, h, Object.keys(u.options), s);
3456
3460
  o.push.apply(o, Be(v.value, t, n, r, i));
3457
3461
  continue;
3458
3462
  }
3459
- if (ln(u)) {
3463
+ if (cn(u)) {
3460
3464
  var v = u.options["=".concat(h)];
3461
3465
  if (!v) {
3462
3466
  if (!Intl.PluralRules)
3463
- throw new ze(`Intl.PluralRules is not available in this environment.
3467
+ throw new Re(`Intl.PluralRules is not available in this environment.
3464
3468
  Try polyfilling it using "@formatjs/intl-pluralrules"
3465
- `, Q.MISSING_INTL_API, s);
3469
+ `, ee.MISSING_INTL_API, s);
3466
3470
  var C = n.getPluralRules(t, { type: u.pluralType }).select(h - (u.offset || 0));
3467
3471
  v = u.options[C] || u.options.other;
3468
3472
  }
3469
3473
  if (!v)
3470
- throw new _t(u.value, h, Object.keys(u.options), s);
3474
+ throw new wt(u.value, h, Object.keys(u.options), s);
3471
3475
  o.push.apply(o, Be(v.value, t, n, r, i, h - (u.offset || 0)));
3472
3476
  continue;
3473
3477
  }
3474
3478
  }
3475
- return oi(o);
3479
+ return ui(o);
3476
3480
  }
3477
- function ui(e, t) {
3481
+ function di(e, t) {
3478
3482
  return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3479
3483
  return n[r] = P(P({}, e[r]), t[r] || {}), n;
3480
3484
  }, {})) : e;
3481
3485
  }
3482
- function ci(e, t) {
3486
+ function hi(e, t) {
3483
3487
  return t ? Object.keys(e).reduce(function(n, r) {
3484
- return n[r] = ui(e[r], t[r]), n;
3488
+ return n[r] = di(e[r], t[r]), n;
3485
3489
  }, P({}, e)) : e;
3486
3490
  }
3487
- function We(e) {
3491
+ function qe(e) {
3488
3492
  return {
3489
3493
  create: function() {
3490
3494
  return {
@@ -3498,39 +3502,39 @@ function We(e) {
3498
3502
  }
3499
3503
  };
3500
3504
  }
3501
- function di(e) {
3505
+ function mi(e) {
3502
3506
  return e === void 0 && (e = {
3503
3507
  number: {},
3504
3508
  dateTime: {},
3505
3509
  pluralRules: {}
3506
3510
  }), {
3507
- getNumberFormat: Ge(function() {
3511
+ getNumberFormat: je(function() {
3508
3512
  for (var t, n = [], r = 0; r < arguments.length; r++)
3509
3513
  n[r] = arguments[r];
3510
- return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], n, !1)))();
3514
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], n, !1)))();
3511
3515
  }, {
3512
- cache: We(e.number),
3513
- strategy: je.variadic
3516
+ cache: qe(e.number),
3517
+ strategy: Ve.variadic
3514
3518
  }),
3515
- getDateTimeFormat: Ge(function() {
3519
+ getDateTimeFormat: je(function() {
3516
3520
  for (var t, n = [], r = 0; r < arguments.length; r++)
3517
3521
  n[r] = arguments[r];
3518
- return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], n, !1)))();
3522
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], n, !1)))();
3519
3523
  }, {
3520
- cache: We(e.dateTime),
3521
- strategy: je.variadic
3524
+ cache: qe(e.dateTime),
3525
+ strategy: Ve.variadic
3522
3526
  }),
3523
- getPluralRules: Ge(function() {
3527
+ getPluralRules: je(function() {
3524
3528
  for (var t, n = [], r = 0; r < arguments.length; r++)
3525
3529
  n[r] = arguments[r];
3526
- return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], n, !1)))();
3530
+ return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], n, !1)))();
3527
3531
  }, {
3528
- cache: We(e.pluralRules),
3529
- strategy: je.variadic
3532
+ cache: qe(e.pluralRules),
3533
+ strategy: Ve.variadic
3530
3534
  })
3531
3535
  };
3532
3536
  }
3533
- var bn = (
3537
+ var vn = (
3534
3538
  /** @class */
3535
3539
  function() {
3536
3540
  function e(t, n, r, i) {
@@ -3562,13 +3566,13 @@ var bn = (
3562
3566
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3563
3567
  var s = i || {};
3564
3568
  s.formatters;
3565
- var o = Fr(s, ["formatters"]);
3569
+ var o = xr(s, ["formatters"]);
3566
3570
  this.ast = e.__parse(t, P(P({}, o), { locale: this.resolvedLocale }));
3567
3571
  } else
3568
3572
  this.ast = t;
3569
3573
  if (!Array.isArray(this.ast))
3570
3574
  throw new TypeError("A message must be provided as a String or AST.");
3571
- this.formats = ci(e.formats, r), this.formatters = i && i.formatters || di(this.formatterCache);
3575
+ this.formats = hi(e.formats, r), this.formatters = i && i.formatters || mi(this.formatterCache);
3572
3576
  }
3573
3577
  return Object.defineProperty(e, "defaultLocale", {
3574
3578
  get: function() {
@@ -3581,7 +3585,7 @@ var bn = (
3581
3585
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3582
3586
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3583
3587
  }
3584
- }, e.__parse = ii, e.formats = {
3588
+ }, e.__parse = si, e.formats = {
3585
3589
  number: {
3586
3590
  integer: {
3587
3591
  maximumFractionDigits: 0
@@ -3642,7 +3646,7 @@ var bn = (
3642
3646
  }, e;
3643
3647
  }()
3644
3648
  );
3645
- function hi(e, t) {
3649
+ function fi(e, t) {
3646
3650
  if (t == null)
3647
3651
  return;
3648
3652
  if (t in e)
@@ -3663,60 +3667,60 @@ function hi(e, t) {
3663
3667
  r = void 0;
3664
3668
  return r;
3665
3669
  }
3666
- const N = {}, mi = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), yn = (e, t) => {
3670
+ const N = {}, gi = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), Fn = (e, t) => {
3667
3671
  if (t == null)
3668
3672
  return;
3669
3673
  if (t in N && e in N[t])
3670
3674
  return N[t][e];
3671
3675
  const n = pe(t);
3672
3676
  for (let r = 0; r < n.length; r++) {
3673
- const i = n[r], a = gi(i, e);
3677
+ const i = n[r], a = Ei(i, e);
3674
3678
  if (a)
3675
- return mi(e, t, a);
3679
+ return gi(e, t, a);
3676
3680
  }
3677
3681
  };
3678
- let lt;
3679
- const re = Ne({});
3680
- function fi(e) {
3681
- return lt[e] || null;
3682
+ let ct;
3683
+ const ie = De({});
3684
+ function pi(e) {
3685
+ return ct[e] || null;
3682
3686
  }
3683
- function vn(e) {
3684
- return e in lt;
3687
+ function _n(e) {
3688
+ return e in ct;
3685
3689
  }
3686
- function gi(e, t) {
3687
- if (!vn(e))
3690
+ function Ei(e, t) {
3691
+ if (!_n(e))
3688
3692
  return null;
3689
- const n = fi(e);
3690
- return hi(n, t);
3693
+ const n = pi(e);
3694
+ return fi(n, t);
3691
3695
  }
3692
- function pi(e) {
3696
+ function bi(e) {
3693
3697
  if (e == null)
3694
3698
  return;
3695
3699
  const t = pe(e);
3696
3700
  for (let n = 0; n < t.length; n++) {
3697
3701
  const r = t[n];
3698
- if (vn(r))
3702
+ if (_n(r))
3699
3703
  return r;
3700
3704
  }
3701
3705
  }
3702
- function Fn(e, ...t) {
3703
- delete N[e], re.update((n) => (n[e] = vr.all([n[e] || {}, ...t]), n));
3706
+ function xn(e, ...t) {
3707
+ delete N[e], ie.update((n) => (n[e] = _r.all([n[e] || {}, ...t]), n));
3704
3708
  }
3705
- ne(
3706
- [re],
3709
+ re(
3710
+ [ie],
3707
3711
  ([e]) => Object.keys(e)
3708
3712
  );
3709
- re.subscribe((e) => lt = e);
3713
+ ie.subscribe((e) => ct = e);
3710
3714
  const Ae = {};
3711
- function Ei(e, t) {
3715
+ function yi(e, t) {
3712
3716
  Ae[e].delete(t), Ae[e].size === 0 && delete Ae[e];
3713
3717
  }
3714
- function xn(e) {
3718
+ function kn(e) {
3715
3719
  return Ae[e];
3716
3720
  }
3717
- function bi(e) {
3721
+ function vi(e) {
3718
3722
  return pe(e).map((t) => {
3719
- const n = xn(t);
3723
+ const n = kn(t);
3720
3724
  return [t, n ? [...n] : []];
3721
3725
  }).filter(([, t]) => t.length > 0);
3722
3726
  }
@@ -3724,40 +3728,40 @@ function Le(e) {
3724
3728
  return e == null ? !1 : pe(e).some(
3725
3729
  (t) => {
3726
3730
  var n;
3727
- return (n = xn(t)) == null ? void 0 : n.size;
3731
+ return (n = kn(t)) == null ? void 0 : n.size;
3728
3732
  }
3729
3733
  );
3730
3734
  }
3731
- function yi(e, t) {
3735
+ function Fi(e, t) {
3732
3736
  return Promise.all(
3733
- t.map((r) => (Ei(e, r), r().then((i) => i.default || i)))
3734
- ).then((r) => Fn(e, ...r));
3737
+ t.map((r) => (yi(e, r), r().then((i) => i.default || i)))
3738
+ ).then((r) => xn(e, ...r));
3735
3739
  }
3736
- const se = {};
3737
- function _n(e) {
3740
+ const oe = {};
3741
+ function Tn(e) {
3738
3742
  if (!Le(e))
3739
- return e in se ? se[e] : Promise.resolve();
3740
- const t = bi(e);
3741
- return se[e] = Promise.all(
3743
+ return e in oe ? oe[e] : Promise.resolve();
3744
+ const t = vi(e);
3745
+ return oe[e] = Promise.all(
3742
3746
  t.map(
3743
- ([n, r]) => yi(n, r)
3747
+ ([n, r]) => Fi(n, r)
3744
3748
  )
3745
3749
  ).then(() => {
3746
3750
  if (Le(e))
3747
- return _n(e);
3748
- delete se[e];
3749
- }), se[e];
3751
+ return Tn(e);
3752
+ delete oe[e];
3753
+ }), oe[e];
3750
3754
  }
3751
- var kt = Object.getOwnPropertySymbols, vi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, xi = (e, t) => {
3755
+ var St = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, ki = (e, t) => {
3752
3756
  var n = {};
3753
3757
  for (var r in e)
3754
- vi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3755
- if (e != null && kt)
3756
- for (var r of kt(e))
3757
- t.indexOf(r) < 0 && Fi.call(e, r) && (n[r] = e[r]);
3758
+ _i.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3759
+ if (e != null && St)
3760
+ for (var r of St(e))
3761
+ t.indexOf(r) < 0 && xi.call(e, r) && (n[r] = e[r]);
3758
3762
  return n;
3759
3763
  };
3760
- const _i = {
3764
+ const Ti = {
3761
3765
  number: {
3762
3766
  scientific: { notation: "scientific" },
3763
3767
  engineering: { notation: "engineering" },
@@ -3787,7 +3791,7 @@ const _i = {
3787
3791
  }
3788
3792
  }
3789
3793
  };
3790
- function ki({ locale: e, id: t }) {
3794
+ function wi({ locale: e, id: t }) {
3791
3795
  console.warn(
3792
3796
  `[svelte-i18n] The message "${t}" was not found in "${pe(
3793
3797
  e
@@ -3796,150 +3800,150 @@ function ki({ locale: e, id: t }) {
3796
3800
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3797
3801
  );
3798
3802
  }
3799
- const Ti = {
3803
+ const Si = {
3800
3804
  fallbackLocale: null,
3801
3805
  loadingDelay: 200,
3802
- formats: _i,
3806
+ formats: Ti,
3803
3807
  warnOnMissingMessages: !0,
3804
3808
  handleMissingMessage: void 0,
3805
3809
  ignoreTag: !0
3806
- }, le = Ti;
3807
- function ee() {
3808
- return le;
3810
+ }, ue = Si;
3811
+ function te() {
3812
+ return ue;
3809
3813
  }
3810
- function wi(e) {
3811
- const t = e, { formats: n } = t, r = xi(t, ["formats"]);
3814
+ function Bi(e) {
3815
+ const t = e, { formats: n } = t, r = ki(t, ["formats"]);
3812
3816
  let i = e.fallbackLocale;
3813
3817
  if (e.initialLocale)
3814
3818
  try {
3815
- bn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3819
+ vn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3816
3820
  } catch {
3817
3821
  console.warn(
3818
3822
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3819
3823
  );
3820
3824
  }
3821
- return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ki : console.warn(
3825
+ return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = wi : console.warn(
3822
3826
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3823
- )), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)), U.set(i);
3827
+ )), Object.assign(ue, r, { initialLocale: i }), n && ("number" in n && Object.assign(ue.formats.number, n.number), "date" in n && Object.assign(ue.formats.date, n.date), "time" in n && Object.assign(ue.formats.time, n.time)), $.set(i);
3824
3828
  }
3825
- const qe = Ne(!1);
3826
- var Si = Object.defineProperty, Bi = Object.defineProperties, Ai = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, wt = (e, t, n) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Hi = (e, t) => {
3829
+ const Xe = De(!1);
3830
+ var Ai = Object.defineProperty, Ii = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, At = (e, t, n) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Li = (e, t) => {
3827
3831
  for (var n in t || (t = {}))
3828
- Ii.call(t, n) && wt(e, n, t[n]);
3829
- if (Tt)
3830
- for (var n of Tt(t))
3831
- Ci.call(t, n) && wt(e, n, t[n]);
3832
+ Hi.call(t, n) && At(e, n, t[n]);
3833
+ if (Bt)
3834
+ for (var n of Bt(t))
3835
+ Pi.call(t, n) && At(e, n, t[n]);
3832
3836
  return e;
3833
- }, Pi = (e, t) => Bi(e, Ai(t));
3834
- let it;
3835
- const Oe = Ne(null);
3836
- function St(e) {
3837
+ }, Oi = (e, t) => Ii(e, Ci(t));
3838
+ let at;
3839
+ const Oe = De(null);
3840
+ function It(e) {
3837
3841
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3838
3842
  }
3839
- function pe(e, t = ee().fallbackLocale) {
3840
- const n = St(e);
3841
- return t ? [.../* @__PURE__ */ new Set([...n, ...St(t)])] : n;
3843
+ function pe(e, t = te().fallbackLocale) {
3844
+ const n = It(e);
3845
+ return t ? [.../* @__PURE__ */ new Set([...n, ...It(t)])] : n;
3842
3846
  }
3843
3847
  function z() {
3844
- return it ?? void 0;
3848
+ return at ?? void 0;
3845
3849
  }
3846
3850
  Oe.subscribe((e) => {
3847
- it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3851
+ at = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3848
3852
  });
3849
- const Li = (e) => {
3850
- if (e && pi(e) && Le(e)) {
3851
- const { loadingDelay: t } = ee();
3853
+ const Mi = (e) => {
3854
+ if (e && bi(e) && Le(e)) {
3855
+ const { loadingDelay: t } = te();
3852
3856
  let n;
3853
3857
  return typeof window < "u" && z() != null && t ? n = window.setTimeout(
3854
- () => qe.set(!0),
3858
+ () => Xe.set(!0),
3855
3859
  t
3856
- ) : qe.set(!0), _n(e).then(() => {
3860
+ ) : Xe.set(!0), Tn(e).then(() => {
3857
3861
  Oe.set(e);
3858
3862
  }).finally(() => {
3859
- clearTimeout(n), qe.set(!1);
3863
+ clearTimeout(n), Xe.set(!1);
3860
3864
  });
3861
3865
  }
3862
3866
  return Oe.set(e);
3863
- }, U = Pi(Hi({}, Oe), {
3864
- set: Li
3865
- }), Re = (e) => {
3867
+ }, $ = Oi(Li({}, Oe), {
3868
+ set: Mi
3869
+ }), Ue = (e) => {
3866
3870
  const t = /* @__PURE__ */ Object.create(null);
3867
3871
  return (r) => {
3868
3872
  const i = JSON.stringify(r);
3869
3873
  return i in t ? t[i] : t[i] = e(r);
3870
3874
  };
3871
3875
  };
3872
- var Oi = Object.defineProperty, Me = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Bt = (e, t, n) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ut = (e, t) => {
3876
+ var Ni = Object.defineProperty, Me = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Ct = (e, t, n) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, dt = (e, t) => {
3873
3877
  for (var n in t || (t = {}))
3874
- kn.call(t, n) && Bt(e, n, t[n]);
3878
+ wn.call(t, n) && Ct(e, n, t[n]);
3875
3879
  if (Me)
3876
3880
  for (var n of Me(t))
3877
- Tn.call(t, n) && Bt(e, n, t[n]);
3881
+ Sn.call(t, n) && Ct(e, n, t[n]);
3878
3882
  return e;
3879
- }, ie = (e, t) => {
3883
+ }, ae = (e, t) => {
3880
3884
  var n = {};
3881
3885
  for (var r in e)
3882
- kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3886
+ wn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3883
3887
  if (e != null && Me)
3884
3888
  for (var r of Me(e))
3885
- t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
3889
+ t.indexOf(r) < 0 && Sn.call(e, r) && (n[r] = e[r]);
3886
3890
  return n;
3887
3891
  };
3888
- const me = (e, t) => {
3889
- const { formats: n } = ee();
3892
+ const fe = (e, t) => {
3893
+ const { formats: n } = te();
3890
3894
  if (e in n && t in n[e])
3891
3895
  return n[e][t];
3892
3896
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3893
- }, Mi = Re(
3897
+ }, Di = Ue(
3894
3898
  (e) => {
3895
- var t = e, { locale: n, format: r } = t, i = ie(t, ["locale", "format"]);
3899
+ var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3896
3900
  if (n == null)
3897
3901
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3898
- return r && (i = me("number", r)), new Intl.NumberFormat(n, i);
3902
+ return r && (i = fe("number", r)), new Intl.NumberFormat(n, i);
3899
3903
  }
3900
- ), Ni = Re(
3904
+ ), zi = Ue(
3901
3905
  (e) => {
3902
- var t = e, { locale: n, format: r } = t, i = ie(t, ["locale", "format"]);
3906
+ var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3903
3907
  if (n == null)
3904
3908
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3905
- return r ? i = me("date", r) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(n, i);
3909
+ return r ? i = fe("date", r) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(n, i);
3906
3910
  }
3907
- ), Di = Re(
3911
+ ), Ri = Ue(
3908
3912
  (e) => {
3909
- var t = e, { locale: n, format: r } = t, i = ie(t, ["locale", "format"]);
3913
+ var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3910
3914
  if (n == null)
3911
3915
  throw new Error(
3912
3916
  '[svelte-i18n] A "locale" must be set to format time values'
3913
3917
  );
3914
- return r ? i = me("time", r) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(n, i);
3918
+ return r ? i = fe("time", r) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(n, i);
3915
3919
  }
3916
- ), zi = (e = {}) => {
3920
+ ), Ui = (e = {}) => {
3917
3921
  var t = e, {
3918
3922
  locale: n = z()
3919
- } = t, r = ie(t, [
3923
+ } = t, r = ae(t, [
3920
3924
  "locale"
3921
3925
  ]);
3922
- return Mi(ut({ locale: n }, r));
3923
- }, Ri = (e = {}) => {
3926
+ return Di(dt({ locale: n }, r));
3927
+ }, $i = (e = {}) => {
3924
3928
  var t = e, {
3925
3929
  locale: n = z()
3926
- } = t, r = ie(t, [
3930
+ } = t, r = ae(t, [
3927
3931
  "locale"
3928
3932
  ]);
3929
- return Ni(ut({ locale: n }, r));
3930
- }, Ui = (e = {}) => {
3933
+ return zi(dt({ locale: n }, r));
3934
+ }, Gi = (e = {}) => {
3931
3935
  var t = e, {
3932
3936
  locale: n = z()
3933
- } = t, r = ie(t, [
3937
+ } = t, r = ae(t, [
3934
3938
  "locale"
3935
3939
  ]);
3936
- return Di(ut({ locale: n }, r));
3937
- }, $i = Re(
3940
+ return Ri(dt({ locale: n }, r));
3941
+ }, ji = Ue(
3938
3942
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3939
- (e, t = z()) => new bn(e, t, ee().formats, {
3940
- ignoreTag: ee().ignoreTag
3943
+ (e, t = z()) => new vn(e, t, te().formats, {
3944
+ ignoreTag: te().ignoreTag
3941
3945
  })
3942
- ), Gi = (e, t = {}) => {
3946
+ ), Vi = (e, t = {}) => {
3943
3947
  var n, r, i, a;
3944
3948
  let s = t;
3945
3949
  typeof e == "object" && (s = e, e = s.id);
@@ -3952,9 +3956,9 @@ const me = (e, t) => {
3952
3956
  throw new Error(
3953
3957
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3954
3958
  );
3955
- let u = yn(e, c);
3959
+ let u = Fn(e, c);
3956
3960
  if (!u)
3957
- u = (a = (i = (r = (n = ee()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3961
+ u = (a = (i = (r = (n = te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3958
3962
  else if (typeof u != "string")
3959
3963
  return console.warn(
3960
3964
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3963,7 +3967,7 @@ const me = (e, t) => {
3963
3967
  return u;
3964
3968
  let d = u;
3965
3969
  try {
3966
- d = $i(u, c).format(o);
3970
+ d = ji(u, c).format(o);
3967
3971
  } catch (h) {
3968
3972
  h instanceof Error && console.warn(
3969
3973
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3971,93 +3975,97 @@ const me = (e, t) => {
3971
3975
  );
3972
3976
  }
3973
3977
  return d;
3974
- }, ji = (e, t) => Ui(t).format(e), Vi = (e, t) => Ri(t).format(e), Wi = (e, t) => zi(t).format(e), qi = (e, t = z()) => yn(e, t), Xi = ne([U, re], () => Gi);
3975
- ne([U], () => ji);
3976
- ne([U], () => Vi);
3977
- ne([U], () => Wi);
3978
- ne([U, re], () => qi);
3979
- const Zi = "EMWCashierTranslations", Ki = 1, te = "feTranslations", wn = () => typeof indexedDB < "u";
3980
- function Sn() {
3978
+ }, Wi = (e, t) => Gi(t).format(e), qi = (e, t) => $i(t).format(e), Xi = (e, t) => Ui(t).format(e), Zi = (e, t = z()) => Fn(e, t), Ki = re([$, ie], () => Vi);
3979
+ re([$], () => Wi);
3980
+ re([$], () => qi);
3981
+ re([$], () => Xi);
3982
+ re([$, ie], () => Zi);
3983
+ const Ji = "EMWCashierTranslations", Yi = 1, ne = "feTranslations", Bn = () => typeof indexedDB < "u";
3984
+ function An() {
3981
3985
  return new Promise((e, t) => {
3982
- const n = indexedDB.open(Zi, Ki);
3986
+ const n = indexedDB.open(Ji, Yi);
3983
3987
  n.onupgradeneeded = () => {
3984
- n.result.objectStoreNames.contains(te) || n.result.createObjectStore(te, { keyPath: "lang" });
3988
+ n.result.objectStoreNames.contains(ne) || n.result.createObjectStore(ne, { keyPath: "lang" });
3985
3989
  }, n.onsuccess = () => e(n.result), n.onerror = () => t(n.error);
3986
3990
  });
3987
3991
  }
3988
- async function At(e) {
3989
- if (!wn())
3992
+ async function Ht(e) {
3993
+ if (!Bn())
3990
3994
  return null;
3991
3995
  try {
3992
- const t = await Sn();
3996
+ const t = await An();
3993
3997
  return await new Promise((n, r) => {
3994
- const i = t.transaction(te, "readonly").objectStore(te).get(e);
3998
+ const i = t.transaction(ne, "readonly").objectStore(ne).get(e);
3995
3999
  i.onsuccess = () => n(i.result || null), i.onerror = () => r(i.error);
3996
4000
  });
3997
4001
  } catch (t) {
3998
4002
  return console.error("Failed to read cached FE translations from IndexedDB.", t), null;
3999
4003
  }
4000
4004
  }
4001
- async function Ji(e, t, n) {
4002
- if (wn())
4005
+ async function Qi(e, t, n) {
4006
+ if (Bn())
4003
4007
  try {
4004
- const r = await Sn();
4008
+ const r = await An();
4005
4009
  await new Promise((i, a) => {
4006
- const s = r.transaction(te, "readwrite");
4007
- s.objectStore(te).put({ lang: e, fileUrl: t, translations: n }), s.oncomplete = () => i(), s.onerror = () => a(s.error);
4010
+ const s = r.transaction(ne, "readwrite");
4011
+ s.objectStore(ne).put({ lang: e, fileUrl: t, translations: n }), s.oncomplete = () => i(), s.onerror = () => a(s.error);
4008
4012
  });
4009
4013
  } catch (r) {
4010
4014
  console.error("Failed to cache FE translations in IndexedDB.", r);
4011
4015
  }
4012
4016
  }
4013
- function Yi(e) {
4017
+ function ea(e) {
4014
4018
  return Object.keys(e || {}).reduce((t, n) => (t[n] = e[n], t), {});
4015
4019
  }
4016
- const It = (e) => {
4020
+ const Pt = (e) => {
4017
4021
  const t = new URL(e);
4018
4022
  return t.searchParams.set("_", Date.now().toString()), t;
4019
4023
  };
4020
- async function Pa(e, t) {
4024
+ async function Na(e, t) {
4021
4025
  try {
4022
4026
  const { url: n, language: r } = await fetch(
4023
- It(`${e}/api/payment/v1/localization/${t}/url`)
4024
- ).then((c) => c.json()), i = r || t, a = await At(i);
4027
+ Pt(`${e}/api/payment/v1/localization/${t}/url`)
4028
+ ).then((c) => c.json()), i = r || t, a = await Ht(i);
4025
4029
  if (!n)
4026
4030
  return a ? { lang: i, translations: a.translations } : null;
4027
4031
  if (a?.fileUrl === n)
4028
4032
  return { lang: i, translations: a.translations };
4029
- const s = await fetch(It(n)).then((c) => c.json()), o = Yi(s);
4030
- return await Ji(i, n, o), { lang: i, translations: o };
4033
+ const s = await fetch(Pt(n)).then((c) => c.json()), o = ea(s);
4034
+ return await Qi(i, n, o), { lang: i, translations: o };
4031
4035
  } catch (n) {
4032
4036
  console.error("Failed to resolve remote FE translations, falling back to cache.", n);
4033
- const r = await At(t);
4037
+ const r = await Ht(t);
4034
4038
  return r ? { lang: t, translations: r.translations } : null;
4035
4039
  }
4036
4040
  }
4037
- const Qi = "FE.errorGeneralText", ea = (e) => /^[A-Za-z][A-Za-z0-9_]*$/.test(e), Bn = (e) => /^\d+$/.test(e), ta = (e) => ea(e) || Bn(e), na = (e) => /\s/.test(e), An = (e) => e == null ? "" : String(e).trim();
4038
- function In(e, t) {
4039
- return [e, t].map(An).find(ta) || "";
4041
+ const ta = "FE.errorGeneralText", na = (e) => /^[A-Za-z][A-Za-z0-9_]*$/.test(e), Ne = (e) => /^\d+$/.test(e), In = (e) => na(e) || Ne(e), ra = (e) => /\s/.test(e), ht = (e) => e == null ? "" : String(e).trim();
4042
+ function ia(e, t) {
4043
+ return [e, t].map(ht).find(In) || "";
4040
4044
  }
4041
- function ra(e) {
4045
+ function aa(e) {
4042
4046
  if (!e)
4043
4047
  return [];
4044
- if (Bn(e))
4048
+ if (Ne(e))
4045
4049
  return [e, `FE.${e}`];
4046
4050
  const t = `FE.${e.charAt(0).toLowerCase()}${e.slice(1)}`, n = `FE.${e}`;
4047
4051
  return t === n ? [n] : [t, n];
4048
4052
  }
4049
- function ia({ code: e, message: t }, n, r = Qi) {
4050
- const i = In(e, t), a = ra(i).map((s) => ({ key: s, text: n(s) })).find(({ key: s, text: o }) => o && o !== s);
4051
- return a ? a.text : [t, e].map(An).find(na) || n(r);
4053
+ function sa(e, t) {
4054
+ const n = [e, t].map(ht).filter(In);
4055
+ return [...n.filter(Ne), ...n.filter((r) => !Ne(r))];
4056
+ }
4057
+ function oa({ code: e, message: t }, n, r = ta) {
4058
+ const i = sa(e, t).flatMap(aa).map((a) => ({ key: a, text: n(a) })).find(({ key: a, text: s }) => s && s !== a);
4059
+ return i ? i.text : [t, e].map(ht).find(ra) || n(r);
4052
4060
  }
4053
- const W = "__WIDGET_GLOBAL_STYLE_CACHE__";
4054
- function aa(e, t) {
4061
+ const q = "__WIDGET_GLOBAL_STYLE_CACHE__";
4062
+ function la(e, t) {
4055
4063
  if (e) {
4056
4064
  const n = document.createElement("style");
4057
4065
  n.innerHTML = t, e.appendChild(n);
4058
4066
  }
4059
4067
  }
4060
- function sa(e, t) {
4068
+ function ua(e, t) {
4061
4069
  if (!e || !t)
4062
4070
  return;
4063
4071
  const n = new URL(t);
@@ -4068,32 +4076,32 @@ function sa(e, t) {
4068
4076
  console.error("There was an error while trying to load client styling from URL", r);
4069
4077
  });
4070
4078
  }
4071
- function oa(e, t, n, r = !1) {
4079
+ function ca(e, t, n, r = !1) {
4072
4080
  if (!window.emMessageBus)
4073
4081
  return;
4074
4082
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
4075
- return n = la(e, t), n;
4076
- window[W] || (window[W] = {}), n = ua(e, t);
4083
+ return n = da(e, t), n;
4084
+ window[q] || (window[q] = {}), n = ha(e, t);
4077
4085
  const a = n.unsubscribe.bind(n), s = () => {
4078
- if (window[W][t]) {
4079
- const o = window[W][t];
4080
- o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[W][t];
4086
+ if (window[q][t]) {
4087
+ const o = window[q][t];
4088
+ o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[q][t];
4081
4089
  }
4082
4090
  a();
4083
4091
  };
4084
4092
  return n.unsubscribe = s, n;
4085
4093
  }
4086
- function la(e, t) {
4094
+ function da(e, t) {
4087
4095
  const n = document.createElement("style");
4088
4096
  return window.emMessageBus.subscribe(t, (r) => {
4089
4097
  e && (n.innerHTML = r, e.appendChild(n));
4090
4098
  });
4091
4099
  }
4092
- function ua(e, t) {
4100
+ function ha(e, t) {
4093
4101
  return window.emMessageBus.subscribe(t, (n) => {
4094
4102
  if (!e)
4095
4103
  return;
4096
- const r = e.getRootNode(), i = window[W];
4104
+ const r = e.getRootNode(), i = window[q];
4097
4105
  let a = i[t] && i[t].sheet;
4098
4106
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
4099
4107
  sheet: a,
@@ -4103,18 +4111,22 @@ function ua(e, t) {
4103
4111
  s.includes(a) || (r.adoptedStyleSheets = [...s, a]);
4104
4112
  });
4105
4113
  }
4106
- const fe = typeof window < "u" && window.__EMWCashierI18n || { dictionary: re, locale: U, init: wi, addMessages: Fn, format: Xi };
4107
- typeof window < "u" && !window.__EMWCashierI18n && (window.__EMWCashierI18n = fe);
4108
- const ca = fe.format;
4109
- function Ct(e, t) {
4110
- fe.addMessages(e, t);
4114
+ const R = typeof window < "u" && window.__EMWCashierI18n || { dictionary: ie, locale: $, init: Bi, addMessages: xn, format: Ki };
4115
+ typeof window < "u" && !window.__EMWCashierI18n && (window.__EMWCashierI18n = R);
4116
+ const ma = R.format;
4117
+ function Lt(e, t) {
4118
+ R.addMessages(e, t);
4119
+ }
4120
+ function fa(e, t) {
4121
+ const n = Mn(R.dictionary)[e] || {}, r = Object.keys(t).reduce((i, a) => (a in n || (i[a] = t[a]), i), {});
4122
+ Object.keys(r).length && R.addMessages(e, r);
4111
4123
  }
4112
- function da(e) {
4113
- fe.init({
4124
+ function ga(e) {
4125
+ R.init({
4114
4126
  fallbackLocale: "en"
4115
- }), fe.locale.set(e);
4127
+ }), R.locale.set(e);
4116
4128
  }
4117
- const Ht = {
4129
+ const Ot = {
4118
4130
  en: {
4119
4131
  "FE.DailyTransactionFrequencyLimitReached": "The transaction cannot be performed at the moment, please try again later.",
4120
4132
  "FE.vendorMicroserviceCommunicationError": "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
@@ -4549,63 +4561,63 @@ const Ht = {
4549
4561
  "FE.CardTokenIsBlocked": "Kart tokeni bloklanıb"
4550
4562
  }
4551
4563
  };
4552
- function ha(e) {
4553
- Mn(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.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}');
4564
+ function pa(e) {
4565
+ Dn(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.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}');
4554
4566
  }
4555
- const ma = (e) => ({}), Pt = (e) => ({}), fa = (e) => ({}), Lt = (e) => ({}), ga = (e) => ({}), Ot = (e) => ({}), pa = (e) => ({}), Mt = (e) => ({});
4556
- function Nt(e) {
4567
+ const Ea = (e) => ({}), Mt = (e) => ({}), ba = (e) => ({}), Nt = (e) => ({}), ya = (e) => ({}), Dt = (e) => ({}), va = (e) => ({}), zt = (e) => ({});
4568
+ function Rt(e) {
4557
4569
  let t, n;
4558
4570
  return {
4559
4571
  c() {
4560
- t = I("ui-image"), mt(t.src, n = `${/*assetsurl*/
4561
- e[0]}/error-general-icon.png`) || _e(t, "src", n), _e(t, "width", "300px"), _e(t, "alt", "error");
4572
+ t = I("ui-image"), pt(t.src, n = `${/*assetsurl*/
4573
+ e[0]}/error-general-icon.png`) || xe(t, "src", n), xe(t, "width", "300px"), xe(t, "alt", "error");
4562
4574
  },
4563
4575
  m(r, i) {
4564
4576
  S(r, t, i);
4565
4577
  },
4566
4578
  p(r, i) {
4567
4579
  i & /*assetsurl*/
4568
- 1 && !mt(t.src, n = `${/*assetsurl*/
4569
- r[0]}/error-general-icon.png`) && _e(t, "src", n);
4580
+ 1 && !pt(t.src, n = `${/*assetsurl*/
4581
+ r[0]}/error-general-icon.png`) && xe(t, "src", n);
4570
4582
  },
4571
4583
  d(r) {
4572
4584
  r && T(t);
4573
4585
  }
4574
4586
  };
4575
4587
  }
4576
- function Ea(e) {
4588
+ function Fa(e) {
4577
4589
  let t, n = (
4578
4590
  /*assetsurl*/
4579
- e[0] && Nt(e)
4591
+ e[0] && Rt(e)
4580
4592
  );
4581
4593
  return {
4582
4594
  c() {
4583
- n && n.c(), t = ot();
4595
+ n && n.c(), t = ut();
4584
4596
  },
4585
4597
  m(r, i) {
4586
4598
  n && n.m(r, i), S(r, t, i);
4587
4599
  },
4588
4600
  p(r, i) {
4589
4601
  /*assetsurl*/
4590
- r[0] ? n ? n.p(r, i) : (n = Nt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4602
+ r[0] ? n ? n.p(r, i) : (n = Rt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4591
4603
  },
4592
4604
  d(r) {
4593
4605
  r && T(t), n && n.d(r);
4594
4606
  }
4595
4607
  };
4596
4608
  }
4597
- function Dt(e) {
4609
+ function Ut(e) {
4598
4610
  let t;
4599
4611
  function n(a, s) {
4600
4612
  return (
4601
4613
  /*depositWageringAmount*/
4602
- a[3] < 0 ? ya : ba
4614
+ a[3] < 0 ? xa : _a
4603
4615
  );
4604
4616
  }
4605
4617
  let r = n(e), i = r(e);
4606
4618
  return {
4607
4619
  c() {
4608
- i.c(), t = ot();
4620
+ i.c(), t = ut();
4609
4621
  },
4610
4622
  m(a, s) {
4611
4623
  i.m(a, s), S(a, t, s);
@@ -4618,17 +4630,17 @@ function Dt(e) {
4618
4630
  }
4619
4631
  };
4620
4632
  }
4621
- function ba(e) {
4633
+ function _a(e) {
4622
4634
  let t, n = (
4623
4635
  /*$_*/
4624
4636
  e[2]("FE.depositWageringLimitText") + ""
4625
4637
  ), r, i, a = (
4626
4638
  /*depositWageringAmount*/
4627
- e[3] > 0 && zt(e)
4639
+ e[3] > 0 && $t(e)
4628
4640
  );
4629
4641
  return {
4630
4642
  c() {
4631
- t = I("span"), r = D(n), i = X(), a && a.c(), O(t, "class", "CashierErrorText");
4643
+ t = I("span"), r = D(n), i = Z(), a && a.c(), O(t, "class", "CashierErrorText");
4632
4644
  },
4633
4645
  m(s, o) {
4634
4646
  S(s, t, o), B(t, r), B(t, i), a && a.m(t, null);
@@ -4636,15 +4648,15 @@ function ba(e) {
4636
4648
  p(s, o) {
4637
4649
  o & /*$_*/
4638
4650
  4 && n !== (n = /*$_*/
4639
- s[2]("FE.depositWageringLimitText") + "") && K(r, n), /*depositWageringAmount*/
4640
- s[3] > 0 ? a ? a.p(s, o) : (a = zt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4651
+ s[2]("FE.depositWageringLimitText") + "") && J(r, n), /*depositWageringAmount*/
4652
+ s[3] > 0 ? a ? a.p(s, o) : (a = $t(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4641
4653
  },
4642
4654
  d(s) {
4643
4655
  s && T(t), a && a.d();
4644
4656
  }
4645
4657
  };
4646
4658
  }
4647
- function ya(e) {
4659
+ function xa(e) {
4648
4660
  let t, n, r = (
4649
4661
  /*$_*/
4650
4662
  e[2]("FE.depositWageringFetching") + ""
@@ -4659,21 +4671,21 @@ function ya(e) {
4659
4671
  p(a, s) {
4660
4672
  s & /*$_*/
4661
4673
  4 && r !== (r = /*$_*/
4662
- a[2]("FE.depositWageringFetching") + "") && K(i, r);
4674
+ a[2]("FE.depositWageringFetching") + "") && J(i, r);
4663
4675
  },
4664
4676
  d(a) {
4665
4677
  a && T(t);
4666
4678
  }
4667
4679
  };
4668
4680
  }
4669
- function zt(e) {
4681
+ function $t(e) {
4670
4682
  let t, n, r;
4671
4683
  return {
4672
4684
  c() {
4673
4685
  t = D(
4674
4686
  /*depositWageringAmount*/
4675
4687
  e[3]
4676
- ), n = X(), r = D(
4688
+ ), n = Z(), r = D(
4677
4689
  /*depositWageringCurrency*/
4678
4690
  e[4]
4679
4691
  );
@@ -4683,12 +4695,12 @@ function zt(e) {
4683
4695
  },
4684
4696
  p(i, a) {
4685
4697
  a & /*depositWageringAmount*/
4686
- 8 && K(
4698
+ 8 && J(
4687
4699
  t,
4688
4700
  /*depositWageringAmount*/
4689
4701
  i[3]
4690
4702
  ), a & /*depositWageringCurrency*/
4691
- 16 && K(
4703
+ 16 && J(
4692
4704
  r,
4693
4705
  /*depositWageringCurrency*/
4694
4706
  i[4]
@@ -4699,36 +4711,36 @@ function zt(e) {
4699
4711
  }
4700
4712
  };
4701
4713
  }
4702
- function va(e) {
4714
+ function ka(e) {
4703
4715
  let t, n, r, i, a = (
4704
4716
  /*resolvedErrorCode*/
4705
- e[6] == "DepositWageringLimit" && Dt(e)
4717
+ e[6] == "DepositWageringLimit" && Ut(e)
4706
4718
  );
4707
4719
  return {
4708
4720
  c() {
4709
4721
  t = I("span"), n = D(
4710
4722
  /*shownError*/
4711
4723
  e[5]
4712
- ), r = X(), a && a.c(), i = ot(), O(t, "class", "CashierErrorText");
4724
+ ), r = Z(), a && a.c(), i = ut(), O(t, "class", "CashierErrorText");
4713
4725
  },
4714
4726
  m(s, o) {
4715
4727
  S(s, t, o), B(t, n), S(s, r, o), a && a.m(s, o), S(s, i, o);
4716
4728
  },
4717
4729
  p(s, o) {
4718
4730
  o & /*shownError*/
4719
- 32 && K(
4731
+ 32 && J(
4720
4732
  n,
4721
4733
  /*shownError*/
4722
4734
  s[5]
4723
4735
  ), /*resolvedErrorCode*/
4724
- s[6] == "DepositWageringLimit" ? a ? a.p(s, o) : (a = Dt(s), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null);
4736
+ s[6] == "DepositWageringLimit" ? a ? a.p(s, o) : (a = Ut(s), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null);
4725
4737
  },
4726
4738
  d(s) {
4727
4739
  s && (T(t), T(r), T(i)), a && a.d(s);
4728
4740
  }
4729
4741
  };
4730
4742
  }
4731
- function Fa(e) {
4743
+ function Ta(e) {
4732
4744
  let t, n, r = (
4733
4745
  /*$_*/
4734
4746
  e[2]("FE.errorGeneralButton") + ""
@@ -4738,7 +4750,7 @@ function Fa(e) {
4738
4750
  t = I("button"), n = I("span"), i = D(r), O(t, "class", "CashierErrorButton");
4739
4751
  },
4740
4752
  m(o, c) {
4741
- S(o, t, c), B(t, n), B(n, i), a || (s = Dn(
4753
+ S(o, t, c), B(t, n), B(n, i), a || (s = Rn(
4742
4754
  t,
4743
4755
  "click",
4744
4756
  /*close*/
@@ -4748,14 +4760,14 @@ function Fa(e) {
4748
4760
  p(o, c) {
4749
4761
  c & /*$_*/
4750
4762
  4 && r !== (r = /*$_*/
4751
- o[2]("FE.errorGeneralButton") + "") && K(i, r);
4763
+ o[2]("FE.errorGeneralButton") + "") && J(i, r);
4752
4764
  },
4753
4765
  d(o) {
4754
4766
  o && T(t), a = !1, s();
4755
4767
  }
4756
4768
  };
4757
4769
  }
4758
- function xa(e) {
4770
+ function wa(e) {
4759
4771
  let t, n, r, i, a, s;
4760
4772
  const o = (
4761
4773
  /*#slots*/
@@ -4765,8 +4777,8 @@ function xa(e) {
4765
4777
  e,
4766
4778
  /*$$scope*/
4767
4779
  e[16],
4768
- Mt
4769
- ), l = c || Ea(e), u = (
4780
+ zt
4781
+ ), l = c || Fa(e), u = (
4770
4782
  /*#slots*/
4771
4783
  e[17].title
4772
4784
  ), d = ye(
@@ -4774,7 +4786,7 @@ function xa(e) {
4774
4786
  e,
4775
4787
  /*$$scope*/
4776
4788
  e[16],
4777
- Ot
4789
+ Dt
4778
4790
  ), h = (
4779
4791
  /*#slots*/
4780
4792
  e[17].text
@@ -4783,20 +4795,20 @@ function xa(e) {
4783
4795
  e,
4784
4796
  /*$$scope*/
4785
4797
  e[16],
4786
- Lt
4787
- ), f = g || va(e), y = (
4798
+ Nt
4799
+ ), f = g || ka(e), y = (
4788
4800
  /*#slots*/
4789
4801
  e[17].button
4790
- ), x = ye(
4802
+ ), _ = ye(
4791
4803
  y,
4792
4804
  e,
4793
4805
  /*$$scope*/
4794
4806
  e[16],
4795
- Pt
4796
- ), E = x || Fa(e);
4807
+ Mt
4808
+ ), E = _ || Ta(e);
4797
4809
  return {
4798
4810
  c() {
4799
- t = I("div"), n = I("div"), l && l.c(), r = X(), d && d.c(), i = X(), f && f.c(), a = X(), E && E.c(), O(n, "class", "CashierErrorContent"), O(t, "class", "CashierError");
4811
+ t = I("div"), n = I("div"), l && l.c(), r = Z(), d && d.c(), i = Z(), f && f.c(), a = Z(), E && E.c(), O(n, "class", "CashierErrorContent"), O(t, "class", "CashierError");
4800
4812
  },
4801
4813
  m(m, v) {
4802
4814
  S(m, t, v), B(t, n), l && l.m(n, null), B(n, r), d && d.m(n, null), B(n, i), f && f.m(n, null), B(n, a), E && E.m(n, null), e[18](t), s = !0;
@@ -4814,12 +4826,12 @@ function xa(e) {
4814
4826
  /*$$scope*/
4815
4827
  m[16],
4816
4828
  v,
4817
- pa
4818
- ) : xe(
4829
+ va
4830
+ ) : _e(
4819
4831
  /*$$scope*/
4820
4832
  m[16]
4821
4833
  ),
4822
- Mt
4834
+ zt
4823
4835
  ) : l && l.p && (!s || v & /*assetsurl*/
4824
4836
  1) && l.p(m, s ? v : -1), d && d.p && (!s || v & /*$$scope*/
4825
4837
  65536) && Fe(
@@ -4833,12 +4845,12 @@ function xa(e) {
4833
4845
  /*$$scope*/
4834
4846
  m[16],
4835
4847
  v,
4836
- ga
4837
- ) : xe(
4848
+ ya
4849
+ ) : _e(
4838
4850
  /*$$scope*/
4839
4851
  m[16]
4840
4852
  ),
4841
- Ot
4853
+ Dt
4842
4854
  ), g ? g.p && (!s || v & /*$$scope*/
4843
4855
  65536) && Fe(
4844
4856
  g,
@@ -4851,16 +4863,16 @@ function xa(e) {
4851
4863
  /*$$scope*/
4852
4864
  m[16],
4853
4865
  v,
4854
- fa
4855
- ) : xe(
4866
+ ba
4867
+ ) : _e(
4856
4868
  /*$$scope*/
4857
4869
  m[16]
4858
4870
  ),
4859
- Lt
4871
+ Nt
4860
4872
  ) : f && f.p && (!s || v & /*$_, depositWageringAmount, depositWageringCurrency, resolvedErrorCode, shownError*/
4861
- 124) && f.p(m, s ? v : -1), x ? x.p && (!s || v & /*$$scope*/
4873
+ 124) && f.p(m, s ? v : -1), _ ? _.p && (!s || v & /*$$scope*/
4862
4874
  65536) && Fe(
4863
- x,
4875
+ _,
4864
4876
  y,
4865
4877
  m,
4866
4878
  /*$$scope*/
@@ -4870,17 +4882,17 @@ function xa(e) {
4870
4882
  /*$$scope*/
4871
4883
  m[16],
4872
4884
  v,
4873
- ma
4874
- ) : xe(
4885
+ Ea
4886
+ ) : _e(
4875
4887
  /*$$scope*/
4876
4888
  m[16]
4877
4889
  ),
4878
- Pt
4890
+ Mt
4879
4891
  ) : E && E.p && (!s || v & /*$_*/
4880
4892
  4) && E.p(m, s ? v : -1);
4881
4893
  },
4882
4894
  i(m) {
4883
- s || (oe(l, m), oe(d, m), oe(f, m), oe(E, m), s = !0);
4895
+ s || (le(l, m), le(d, m), le(f, m), le(E, m), s = !0);
4884
4896
  },
4885
4897
  o(m) {
4886
4898
  ke(l, m), ke(d, m), ke(f, m), ke(E, m), s = !1;
@@ -4890,27 +4902,27 @@ function xa(e) {
4890
4902
  }
4891
4903
  };
4892
4904
  }
4893
- function _a(e, t, n) {
4905
+ function Sa(e, t, n) {
4894
4906
  let r, i, a;
4895
- On(e, ca, (p) => n(2, a = p));
4896
- let { $$slots: s = {}, $$scope: o } = t, { assetsurl: c = "" } = t, { lang: l = "en" } = t, { errorcode: u = "" } = t, { errormessage: d = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: g = "" } = t, { translationurl: f = "" } = t, { mbsource: y = "" } = t, { usecashiertranslations: x = "false" } = t, E, m, v = -1, C;
4907
+ Nn(e, ma, (p) => n(2, a = p));
4908
+ let { $$slots: s = {}, $$scope: o } = t, { assetsurl: c = "" } = t, { lang: l = "en" } = t, { errorcode: u = "" } = t, { errormessage: d = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: g = "" } = t, { translationurl: f = "" } = t, { mbsource: y = "" } = t, { usecashiertranslations: _ = "false" } = t, E, m, v = -1, C;
4897
4909
  const L = () => {
4898
- da(l);
4899
- }, $ = () => {
4910
+ ga(l);
4911
+ }, G = () => {
4900
4912
  fetch(f).then((p) => p.json()).then((p) => {
4901
- Object.keys(p).forEach((dt) => {
4902
- Ct(dt, p[dt]);
4913
+ Object.keys(p).forEach((ft) => {
4914
+ Lt(ft, p[ft]);
4903
4915
  });
4904
4916
  }).catch((p) => {
4905
4917
  console.log(p);
4906
4918
  });
4907
- };
4908
- x == "false" && Object.keys(Ht).forEach((p) => {
4909
- Ct(p, Ht[p]);
4919
+ }, Ee = _ == "true" ? fa : Lt;
4920
+ Object.keys(Ot).forEach((p) => {
4921
+ Ee(p, Ot[p]);
4910
4922
  });
4911
- const Ee = () => {
4923
+ const Hn = () => {
4912
4924
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4913
- }, ct = (p) => {
4925
+ }, mt = (p) => {
4914
4926
  if (p.data)
4915
4927
  switch (p.data.type) {
4916
4928
  case "DepositWageringAmount":
@@ -4918,25 +4930,25 @@ function _a(e, t, n) {
4918
4930
  break;
4919
4931
  }
4920
4932
  };
4921
- Wn(() => (window.addEventListener("message", ct, !1), () => {
4922
- window.removeEventListener("message", ct);
4933
+ Xn(() => (window.addEventListener("message", mt, !1), () => {
4934
+ window.removeEventListener("message", mt);
4923
4935
  }));
4924
- function Hn(p) {
4925
- Ze[p ? "unshift" : "push"](() => {
4936
+ function Pn(p) {
4937
+ Ke[p ? "unshift" : "push"](() => {
4926
4938
  E = p, n(1, E);
4927
4939
  });
4928
4940
  }
4929
4941
  return e.$$set = (p) => {
4930
- "assetsurl" in p && n(0, c = p.assetsurl), "lang" in p && n(8, l = p.lang), "errorcode" in p && n(9, u = p.errorcode), "errormessage" in p && n(10, d = p.errormessage), "clientstyling" in p && n(11, h = p.clientstyling), "clientstylingurl" in p && n(12, g = p.clientstylingurl), "translationurl" in p && n(13, f = p.translationurl), "mbsource" in p && n(14, y = p.mbsource), "usecashiertranslations" in p && n(15, x = p.usecashiertranslations), "$$scope" in p && n(16, o = p.$$scope);
4942
+ "assetsurl" in p && n(0, c = p.assetsurl), "lang" in p && n(8, l = p.lang), "errorcode" in p && n(9, u = p.errorcode), "errormessage" in p && n(10, d = p.errormessage), "clientstyling" in p && n(11, h = p.clientstyling), "clientstylingurl" in p && n(12, g = p.clientstylingurl), "translationurl" in p && n(13, f = p.translationurl), "mbsource" in p && n(14, y = p.mbsource), "usecashiertranslations" in p && n(15, _ = p.usecashiertranslations), "$$scope" in p && n(16, o = p.$$scope);
4931
4943
  }, e.$$.update = () => {
4932
4944
  e.$$.dirty & /*lang*/
4933
4945
  256 && l && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4934
- 2050 && h && E && aa(E, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4935
- 4098 && g && E && sa(E, g), e.$$.dirty & /*mbsource, customStylingContainer*/
4936
- 16386 && y && E && oa(E, `${y}.Style`, m), e.$$.dirty & /*usecashiertranslations, translationurl*/
4937
- 40960 && x == "false" && f && $(), e.$$.dirty & /*errorcode, errormessage*/
4938
- 1536 && n(6, r = In(u, d)), e.$$.dirty & /*errorcode, errormessage, $_*/
4939
- 1540 && n(5, i = ia({ code: u, message: d }, a));
4946
+ 2050 && h && E && la(E, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4947
+ 4098 && g && E && ua(E, g), e.$$.dirty & /*mbsource, customStylingContainer*/
4948
+ 16386 && y && E && ca(E, `${y}.Style`, m), e.$$.dirty & /*usecashiertranslations, translationurl*/
4949
+ 40960 && _ == "false" && f && G(), e.$$.dirty & /*errorcode, errormessage*/
4950
+ 1536 && n(6, r = ia(u, d)), e.$$.dirty & /*errorcode, errormessage, $_*/
4951
+ 1540 && n(5, i = oa({ code: u, message: d }, a));
4940
4952
  }, [
4941
4953
  c,
4942
4954
  E,
@@ -4945,7 +4957,7 @@ function _a(e, t, n) {
4945
4957
  C,
4946
4958
  i,
4947
4959
  r,
4948
- Ee,
4960
+ Hn,
4949
4961
  l,
4950
4962
  u,
4951
4963
  d,
@@ -4953,20 +4965,20 @@ function _a(e, t, n) {
4953
4965
  g,
4954
4966
  f,
4955
4967
  y,
4956
- x,
4968
+ _,
4957
4969
  o,
4958
4970
  s,
4959
- Hn
4971
+ Pn
4960
4972
  ];
4961
4973
  }
4962
- class Cn extends nr {
4974
+ class Cn extends ir {
4963
4975
  constructor(t) {
4964
- super(), er(
4976
+ super(), nr(
4965
4977
  this,
4966
4978
  t,
4967
- _a,
4968
- xa,
4969
- $t,
4979
+ Sa,
4980
+ wa,
4981
+ Vt,
4970
4982
  {
4971
4983
  assetsurl: 0,
4972
4984
  lang: 8,
@@ -4978,7 +4990,7 @@ class Cn extends nr {
4978
4990
  mbsource: 14,
4979
4991
  usecashiertranslations: 15
4980
4992
  },
4981
- ha
4993
+ pa
4982
4994
  );
4983
4995
  }
4984
4996
  get assetsurl() {
@@ -5036,56 +5048,57 @@ class Cn extends nr {
5036
5048
  this.$$set({ usecashiertranslations: t }), H();
5037
5049
  }
5038
5050
  }
5039
- tr(Cn, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, usecashiertranslations: {} }, ["icon", "title", "text", "button"], [], !0);
5040
- const La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5051
+ rr(Cn, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, usecashiertranslations: {} }, ["icon", "title", "text", "button"], [], !0);
5052
+ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5041
5053
  __proto__: null,
5042
5054
  default: Cn
5043
5055
  }, Symbol.toStringTag, { value: "Module" }));
5044
5056
  export {
5045
- Xi as $,
5046
- Ia as A,
5047
- de as B,
5048
- Aa as C,
5049
- K as D,
5050
- D as E,
5051
- _e as F,
5052
- R as G,
5053
- Dn as H,
5054
- ot as I,
5055
- Ca as J,
5056
- Ta as K,
5057
- wa as L,
5058
- mt as M,
5059
- Sa as N,
5060
- aa as O,
5061
- sa as P,
5062
- oa as Q,
5063
- La as R,
5064
- nr as S,
5065
- Fn as a,
5066
- wi as b,
5067
- U as c,
5068
- re as d,
5069
- Ha as e,
5070
- tr as f,
5071
- ar as g,
5072
- er as h,
5073
- Rt as i,
5074
- H as j,
5075
- Mn as k,
5076
- T as l,
5077
- S as m,
5057
+ Ki as $,
5058
+ Z as A,
5059
+ La as B,
5060
+ he as C,
5061
+ Pa as D,
5062
+ J as E,
5063
+ D as F,
5064
+ xe as G,
5065
+ U as H,
5066
+ Rn as I,
5067
+ ut as J,
5068
+ Oa as K,
5069
+ Aa as L,
5070
+ Ia as M,
5071
+ pt as N,
5072
+ Ca as O,
5073
+ la as P,
5074
+ ua as Q,
5075
+ ca as R,
5076
+ ir as S,
5077
+ Da as T,
5078
+ xn as a,
5079
+ Bi as b,
5080
+ $ as c,
5081
+ ie as d,
5082
+ Ma as e,
5083
+ or as f,
5084
+ Mn as g,
5085
+ rr as h,
5086
+ Gt as i,
5087
+ nr as j,
5088
+ H as k,
5089
+ Dn as l,
5090
+ T as m,
5078
5091
  A as n,
5079
- I as o,
5080
- O as p,
5081
- On as q,
5082
- Wn as r,
5083
- $t as s,
5084
- Pa as t,
5085
- Ze as u,
5086
- oe as v,
5087
- ke as w,
5088
- Ba as x,
5089
- B as y,
5090
- X as z
5092
+ S as o,
5093
+ I as p,
5094
+ O as q,
5095
+ Nn as r,
5096
+ Vt as s,
5097
+ Xn as t,
5098
+ Na as u,
5099
+ Ke as v,
5100
+ le as w,
5101
+ ke as x,
5102
+ Ha as y,
5103
+ B as z
5091
5104
  };