@everymatrix/cashier-iframe-redirect 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,35 @@
1
1
  function B() {
2
2
  }
3
- function er(e, t) {
3
+ function rr(e, t) {
4
4
  for (const r in t) e[r] = t[r];
5
5
  return (
6
6
  /** @type {T & S} */
7
7
  e
8
8
  );
9
9
  }
10
- function _t(e) {
10
+ function Et(e) {
11
11
  return e();
12
12
  }
13
- function Ze() {
13
+ function qe() {
14
14
  return /* @__PURE__ */ Object.create(null);
15
15
  }
16
16
  function te(e) {
17
- e.forEach(_t);
17
+ e.forEach(Et);
18
18
  }
19
19
  function ke(e) {
20
20
  return typeof e == "function";
21
21
  }
22
- function yt(e, t) {
22
+ function xt(e, t) {
23
23
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
24
24
  }
25
25
  let se;
26
- function Hi(e, t) {
26
+ function Bi(e, t) {
27
27
  return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
28
28
  }
29
- function tr(e) {
29
+ function nr(e) {
30
30
  return Object.keys(e).length === 0;
31
31
  }
32
- function Et(e, ...t) {
32
+ function vt(e, ...t) {
33
33
  if (e == null) {
34
34
  for (const n of t)
35
35
  n(void 0);
@@ -38,17 +38,17 @@ function Et(e, ...t) {
38
38
  const r = e.subscribe(...t);
39
39
  return r.unsubscribe ? () => r.unsubscribe() : r;
40
40
  }
41
- function rr(e, t, r) {
42
- e.$$.on_destroy.push(Et(t, r));
41
+ function ir(e, t, r) {
42
+ e.$$.on_destroy.push(vt(t, r));
43
43
  }
44
44
  function Ee(e, t, r, n) {
45
45
  if (e) {
46
- const i = xt(e, t, r, n);
46
+ const i = Ht(e, t, r, n);
47
47
  return e[0](i);
48
48
  }
49
49
  }
50
- function xt(e, t, r, n) {
51
- return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
50
+ function Ht(e, t, r, n) {
51
+ return e[1] && n ? rr(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
52
  }
53
53
  function xe(e, t, r, n) {
54
54
  if (e[2] && n) {
@@ -67,7 +67,7 @@ function xe(e, t, r, n) {
67
67
  }
68
68
  function ve(e, t, r, n, i, s) {
69
69
  if (i) {
70
- const u = xt(t, r, n, s);
70
+ const u = Ht(t, r, n, s);
71
71
  e.p(u, i);
72
72
  }
73
73
  }
@@ -83,14 +83,14 @@ function He(e) {
83
83
  function ce(e, t) {
84
84
  e.appendChild(t);
85
85
  }
86
- function nr(e, t, r) {
87
- const n = ir(e);
86
+ function sr(e, t, r) {
87
+ const n = or(e);
88
88
  if (!n.getElementById(t)) {
89
- const i = W("style");
90
- i.id = t, i.textContent = r, sr(n, i);
89
+ const i = z("style");
90
+ i.id = t, i.textContent = r, ar(n, i);
91
91
  }
92
92
  }
93
- function ir(e) {
93
+ function or(e) {
94
94
  if (!e) return document;
95
95
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
96
96
  return t && /** @type {ShadowRoot} */
@@ -99,7 +99,7 @@ function ir(e) {
99
99
  t
100
100
  ) : e.ownerDocument;
101
101
  }
102
- function sr(e, t) {
102
+ function ar(e, t) {
103
103
  return ce(
104
104
  /** @type {Document} */
105
105
  e.head || e,
@@ -112,36 +112,36 @@ function I(e, t, r) {
112
112
  function O(e) {
113
113
  e.parentNode && e.parentNode.removeChild(e);
114
114
  }
115
- function W(e) {
115
+ function z(e) {
116
116
  return document.createElement(e);
117
117
  }
118
118
  function Ve(e) {
119
119
  return document.createTextNode(e);
120
120
  }
121
- function Qe() {
121
+ function Je() {
122
122
  return Ve(" ");
123
123
  }
124
- function vt() {
124
+ function Bt() {
125
125
  return Ve("");
126
126
  }
127
- function Ht(e, t, r, n) {
127
+ function Tt(e, t, r, n) {
128
128
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
129
129
  }
130
- function z(e, t, r) {
130
+ function W(e, t, r) {
131
131
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
132
132
  }
133
- function Bi(e, t, r) {
133
+ function Ti(e, t, r) {
134
134
  const n = t.toLowerCase();
135
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
135
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
136
136
  }
137
- function or(e) {
137
+ function ur(e) {
138
138
  return Array.from(e.childNodes);
139
139
  }
140
- function ar(e, t) {
140
+ function hr(e, t) {
141
141
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
142
142
  t);
143
143
  }
144
- function ur(e) {
144
+ function lr(e) {
145
145
  const t = {};
146
146
  return e.childNodes.forEach(
147
147
  /** @param {Element} node */
@@ -156,10 +156,10 @@ function Y(e) {
156
156
  }
157
157
  const G = [], Le = [];
158
158
  let F = [];
159
- const qe = [], hr = /* @__PURE__ */ Promise.resolve();
159
+ const Ye = [], fr = /* @__PURE__ */ Promise.resolve();
160
160
  let Ne = !1;
161
- function lr() {
162
- Ne || (Ne = !0, hr.then(S));
161
+ function cr() {
162
+ Ne || (Ne = !0, fr.then(S));
163
163
  }
164
164
  function Ie(e) {
165
165
  F.push(e);
@@ -174,7 +174,7 @@ function S() {
174
174
  try {
175
175
  for (; U < G.length; ) {
176
176
  const t = G[U];
177
- U++, Y(t), fr(t.$$);
177
+ U++, Y(t), mr(t.$$);
178
178
  }
179
179
  } catch (t) {
180
180
  throw G.length = 0, U = 0, t;
@@ -186,49 +186,49 @@ function S() {
186
186
  }
187
187
  F.length = 0;
188
188
  } while (G.length);
189
- for (; qe.length; )
190
- qe.pop()();
189
+ for (; Ye.length; )
190
+ Ye.pop()();
191
191
  Ne = !1, Be.clear(), Y(e);
192
192
  }
193
- function fr(e) {
193
+ function mr(e) {
194
194
  if (e.fragment !== null) {
195
195
  e.update(), te(e.before_update);
196
196
  const t = e.dirty;
197
197
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
198
198
  }
199
199
  }
200
- function cr(e) {
200
+ function pr(e) {
201
201
  const t = [], r = [];
202
202
  F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
203
203
  }
204
204
  const ae = /* @__PURE__ */ new Set();
205
- let mr;
205
+ let dr;
206
206
  function ue(e, t) {
207
207
  e && e.i && (ae.delete(e), e.i(t));
208
208
  }
209
209
  function Te(e, t, r, n) {
210
210
  if (e && e.o) {
211
211
  if (ae.has(e)) return;
212
- ae.add(e), mr.c.push(() => {
212
+ ae.add(e), dr.c.push(() => {
213
213
  ae.delete(e);
214
214
  }), e.o(t);
215
215
  }
216
216
  }
217
- function pr(e, t, r) {
217
+ function br(e, t, r) {
218
218
  const { fragment: n, after_update: i } = e.$$;
219
219
  n && n.m(t, r), Ie(() => {
220
- const s = e.$$.on_mount.map(_t).filter(ke);
220
+ const s = e.$$.on_mount.map(Et).filter(ke);
221
221
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
222
222
  }), i.forEach(Ie);
223
223
  }
224
- function dr(e, t) {
224
+ function gr(e, t) {
225
225
  const r = e.$$;
226
- r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
226
+ r.fragment !== null && (pr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
227
227
  }
228
- function br(e, t) {
229
- e.$$.dirty[0] === -1 && (G.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
228
+ function _r(e, t) {
229
+ e.$$.dirty[0] === -1 && (G.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
230
230
  }
231
- function gr(e, t, r, n, i, s, u = null, o = [-1]) {
231
+ function yr(e, t, r, n, i, s, u = null, o = [-1]) {
232
232
  const l = Xe;
233
233
  Y(e);
234
234
  const a = e.$$ = {
@@ -238,7 +238,7 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
238
238
  props: s,
239
239
  update: B,
240
240
  not_equal: i,
241
- bound: Ze(),
241
+ bound: qe(),
242
242
  // lifecycle
243
243
  on_mount: [],
244
244
  on_destroy: [],
@@ -247,7 +247,7 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
247
247
  after_update: [],
248
248
  context: new Map(t.context || (l ? l.$$.context : [])),
249
249
  // everything else
250
- callbacks: Ze(),
250
+ callbacks: qe(),
251
251
  dirty: o,
252
252
  skip_bound: !1,
253
253
  root: t.target || l.$$.root
@@ -256,19 +256,19 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
256
256
  let h = !1;
257
257
  if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
258
258
  const m = p.length ? p[0] : c;
259
- return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && br(e, f)), c;
259
+ return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && _r(e, f)), c;
260
260
  }) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
261
261
  if (t.hydrate) {
262
- const f = or(t.target);
262
+ const f = ur(t.target);
263
263
  a.fragment && a.fragment.l(f), f.forEach(O);
264
264
  } else
265
265
  a.fragment && a.fragment.c();
266
- t.intro && ue(e.$$.fragment), pr(e, t.target, t.anchor), S();
266
+ t.intro && ue(e.$$.fragment), br(e, t.target, t.anchor), S();
267
267
  }
268
268
  Y(l);
269
269
  }
270
- let Bt;
271
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
270
+ let wt;
271
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
272
272
  /** The Svelte component constructor */
273
273
  $$ctor;
274
274
  /** Slots */
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
310
310
  let s;
311
311
  return {
312
312
  c: function() {
313
- s = W("slot"), i !== "default" && z(s, "name", i);
313
+ s = z("slot"), i !== "default" && W(s, "name", i);
314
314
  },
315
315
  /**
316
316
  * @param {HTMLElement} target
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
327
327
  };
328
328
  if (await Promise.resolve(), !this.$$cn || this.$$c)
329
329
  return;
330
- const t = {}, r = ur(this);
330
+ const t = {}, r = lr(this);
331
331
  for (const i of this.$$s)
332
332
  i in r && (t[i] = [e(i)]);
333
333
  for (const i of this.attributes) {
@@ -414,8 +414,8 @@ function he(e, t, r, n) {
414
414
  return t;
415
415
  }
416
416
  }
417
- function _r(e, t, r, n, i, s) {
418
- let u = class extends Bt {
417
+ function Er(e, t, r, n, i, s) {
418
+ let u = class extends wt {
419
419
  constructor() {
420
420
  super(e, r, i), this.$$p_d = t;
421
421
  }
@@ -443,7 +443,7 @@ function _r(e, t, r, n, i, s) {
443
443
  }), e.element = /** @type {any} */
444
444
  u, u;
445
445
  }
446
- class yr {
446
+ class xr {
447
447
  /**
448
448
  * ### PRIVATE API
449
449
  *
@@ -462,7 +462,7 @@ class yr {
462
462
  $$set = void 0;
463
463
  /** @returns {void} */
464
464
  $destroy() {
465
- dr(this, 1), this.$destroy = B;
465
+ gr(this, 1), this.$destroy = B;
466
466
  }
467
467
  /**
468
468
  * @template {Extract<keyof Events, string>} K
@@ -484,13 +484,13 @@ class yr {
484
484
  * @returns {void}
485
485
  */
486
486
  $set(t) {
487
- this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
487
+ this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
488
488
  }
489
489
  }
490
- const Er = "4";
491
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
490
+ const vr = "4";
491
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
492
492
  const D = [];
493
- function xr(e, t) {
493
+ function Hr(e, t) {
494
494
  return {
495
495
  subscribe: be(e, t).subscribe
496
496
  };
@@ -499,7 +499,7 @@ function be(e, t = B) {
499
499
  let r;
500
500
  const n = /* @__PURE__ */ new Set();
501
501
  function i(o) {
502
- if (yt(e, o) && (e = o, r)) {
502
+ if (xt(e, o) && (e = o, r)) {
503
503
  const l = !D.length;
504
504
  for (const a of n)
505
505
  a[1](), D.push(a, e);
@@ -526,7 +526,7 @@ function Z(e, t, r) {
526
526
  if (!i.every(Boolean))
527
527
  throw new Error("derived() expects stores as input, got a falsy value");
528
528
  const s = t.length < 2;
529
- return xr(r, (u, o) => {
529
+ return Hr(r, (u, o) => {
530
530
  let l = !1;
531
531
  const a = [];
532
532
  let h = 0, f = B;
@@ -537,7 +537,7 @@ function Z(e, t, r) {
537
537
  const m = t(n ? a[0] : a, u, o);
538
538
  s ? u(m) : f = ke(m) ? m : B;
539
539
  }, p = i.map(
540
- (m, g) => Et(
540
+ (m, g) => vt(
541
541
  m,
542
542
  (v) => {
543
543
  a[g] = v, h &= ~(1 << g), l && c();
@@ -552,70 +552,70 @@ function Z(e, t, r) {
552
552
  };
553
553
  });
554
554
  }
555
- function vr(e) {
555
+ function Br(e) {
556
556
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
557
557
  }
558
- var Hr = function(t) {
559
- return Br(t) && !Tr(t);
558
+ var Tr = function(t) {
559
+ return wr(t) && !Sr(t);
560
560
  };
561
- function Br(e) {
561
+ function wr(e) {
562
562
  return !!e && typeof e == "object";
563
563
  }
564
- function Tr(e) {
564
+ function Sr(e) {
565
565
  var t = Object.prototype.toString.call(e);
566
- return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
566
+ return t === "[object RegExp]" || t === "[object Date]" || Or(e);
567
567
  }
568
- var wr = typeof Symbol == "function" && Symbol.for, Sr = wr ? Symbol.for("react.element") : 60103;
569
- function Ar(e) {
570
- return e.$$typeof === Sr;
568
+ var Ar = typeof Symbol == "function" && Symbol.for, Cr = Ar ? Symbol.for("react.element") : 60103;
569
+ function Or(e) {
570
+ return e.$$typeof === Cr;
571
571
  }
572
- function Cr(e) {
572
+ function Pr(e) {
573
573
  return Array.isArray(e) ? [] : {};
574
574
  }
575
575
  function K(e, t) {
576
- return t.clone !== !1 && t.isMergeableObject(e) ? j(Cr(e), e, t) : e;
576
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(Pr(e), e, t) : e;
577
577
  }
578
- function Or(e, t, r) {
578
+ function Lr(e, t, r) {
579
579
  return e.concat(t).map(function(n) {
580
580
  return K(n, r);
581
581
  });
582
582
  }
583
- function Pr(e, t) {
583
+ function Nr(e, t) {
584
584
  if (!t.customMerge)
585
585
  return j;
586
586
  var r = t.customMerge(e);
587
587
  return typeof r == "function" ? r : j;
588
588
  }
589
- function Lr(e) {
589
+ function Ir(e) {
590
590
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
591
591
  return Object.propertyIsEnumerable.call(e, t);
592
592
  }) : [];
593
593
  }
594
- function Je(e) {
595
- return Object.keys(e).concat(Lr(e));
594
+ function Ke(e) {
595
+ return Object.keys(e).concat(Ir(e));
596
596
  }
597
- function Tt(e, t) {
597
+ function St(e, t) {
598
598
  try {
599
599
  return t in e;
600
600
  } catch {
601
601
  return !1;
602
602
  }
603
603
  }
604
- function Nr(e, t) {
605
- return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
604
+ function Mr(e, t) {
605
+ return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
606
606
  }
607
- function Ir(e, t, r) {
607
+ function $r(e, t, r) {
608
608
  var n = {};
609
- return r.isMergeableObject(e) && Je(e).forEach(function(i) {
609
+ return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
610
610
  n[i] = K(e[i], r);
611
- }), Je(t).forEach(function(i) {
612
- Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
611
+ }), Ke(t).forEach(function(i) {
612
+ Mr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
613
613
  }), n;
614
614
  }
615
615
  function j(e, t, r) {
616
- r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = K;
616
+ r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = K;
617
617
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
618
- return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : K(t, r);
618
+ return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
619
619
  }
620
620
  j.all = function(t, r) {
621
621
  if (!Array.isArray(t))
@@ -624,8 +624,8 @@ j.all = function(t, r) {
624
624
  return j(n, i, r);
625
625
  }, {});
626
626
  };
627
- var Mr = j, $r = Mr;
628
- const Rr = /* @__PURE__ */ vr($r);
627
+ var Rr = j, Ur = Rr;
628
+ const Dr = /* @__PURE__ */ Br(Ur);
629
629
  var Me = function(e, t) {
630
630
  return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
631
631
  r.__proto__ = n;
@@ -651,7 +651,7 @@ var y = function() {
651
651
  return t;
652
652
  }, y.apply(this, arguments);
653
653
  };
654
- function Ur(e, t) {
654
+ function Gr(e, t) {
655
655
  var r = {};
656
656
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
657
657
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -665,53 +665,55 @@ function we(e, t, r) {
665
665
  return e.concat(s || Array.prototype.slice.call(t));
666
666
  }
667
667
  function Se(e, t) {
668
- var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
668
+ var r = t && t.cache ? t.cache : zr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
669
669
  return i(e, {
670
670
  cache: r,
671
671
  serializer: n
672
672
  });
673
673
  }
674
- function Dr(e) {
674
+ function Fr(e) {
675
675
  return e == null || typeof e == "number" || typeof e == "boolean";
676
676
  }
677
- function Gr(e, t, r, n) {
678
- var i = Dr(n) ? n : r(n), s = t.get(i);
677
+ function At(e, t, r, n) {
678
+ var i = Fr(n) ? n : r(n), s = t.get(i);
679
679
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
680
680
  }
681
- function wt(e, t, r) {
681
+ function Ct(e, t, r) {
682
682
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
683
683
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
684
684
  }
685
- function St(e, t, r, n, i) {
685
+ function ze(e, t, r, n, i) {
686
686
  return r.bind(t, e, n, i);
687
687
  }
688
- function Fr(e, t) {
689
- var r = e.length === 1 ? Gr : wt;
690
- return St(e, this, r, t.cache.create(), t.serializer);
691
- }
692
688
  function jr(e, t) {
693
- return St(e, this, wt, t.cache.create(), t.serializer);
689
+ var r = e.length === 1 ? At : Ct;
690
+ return ze(e, this, r, t.cache.create(), t.serializer);
694
691
  }
695
- var kr = function() {
692
+ function kr(e, t) {
693
+ return ze(e, this, Ct, t.cache.create(), t.serializer);
694
+ }
695
+ function Vr(e, t) {
696
+ return ze(e, this, At, t.cache.create(), t.serializer);
697
+ }
698
+ var Xr = function() {
696
699
  return JSON.stringify(arguments);
697
- }, Vr = (
698
- /** @class */
699
- function() {
700
- function e() {
701
- this.cache = /* @__PURE__ */ Object.create(null);
702
- }
703
- return e.prototype.get = function(t) {
704
- return this.cache[t];
705
- }, e.prototype.set = function(t, r) {
706
- this.cache[t] = r;
707
- }, e;
708
- }()
709
- ), Xr = {
700
+ };
701
+ function We() {
702
+ this.cache = /* @__PURE__ */ Object.create(null);
703
+ }
704
+ We.prototype.get = function(e) {
705
+ return this.cache[e];
706
+ };
707
+ We.prototype.set = function(e, t) {
708
+ this.cache[e] = t;
709
+ };
710
+ var zr = {
710
711
  create: function() {
711
- return new Vr();
712
+ return new We();
712
713
  }
713
714
  }, Ae = {
714
- variadic: jr
715
+ variadic: kr,
716
+ monadic: Vr
715
717
  }, d;
716
718
  (function(e) {
717
719
  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";
@@ -724,43 +726,43 @@ var k;
724
726
  (function(e) {
725
727
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
726
728
  })(k || (k = {}));
727
- function Ye(e) {
729
+ function et(e) {
728
730
  return e.type === E.literal;
729
731
  }
730
732
  function Wr(e) {
731
733
  return e.type === E.argument;
732
734
  }
733
- function At(e) {
735
+ function Ot(e) {
734
736
  return e.type === E.number;
735
737
  }
736
- function Ct(e) {
738
+ function Pt(e) {
737
739
  return e.type === E.date;
738
740
  }
739
- function Ot(e) {
741
+ function Lt(e) {
740
742
  return e.type === E.time;
741
743
  }
742
- function Pt(e) {
744
+ function Nt(e) {
743
745
  return e.type === E.select;
744
746
  }
745
- function Lt(e) {
747
+ function It(e) {
746
748
  return e.type === E.plural;
747
749
  }
748
- function zr(e) {
750
+ function Zr(e) {
749
751
  return e.type === E.pound;
750
752
  }
751
- function Nt(e) {
753
+ function Mt(e) {
752
754
  return e.type === E.tag;
753
755
  }
754
- function It(e) {
756
+ function $t(e) {
755
757
  return !!(e && typeof e == "object" && e.type === k.number);
756
758
  }
757
759
  function $e(e) {
758
760
  return !!(e && typeof e == "object" && e.type === k.dateTime);
759
761
  }
760
- var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
761
- function Qr(e) {
762
+ var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
763
+ function qr(e) {
762
764
  var t = {};
763
- return e.replace(Zr, function(r) {
765
+ return e.replace(Qr, function(r) {
764
766
  var n = r.length;
765
767
  switch (r[0]) {
766
768
  case "G":
@@ -849,11 +851,11 @@ function Qr(e) {
849
851
  return "";
850
852
  }), t;
851
853
  }
852
- var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
853
- function Jr(e) {
854
+ var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
855
+ function Yr(e) {
854
856
  if (e.length === 0)
855
857
  throw new Error("Number skeleton cannot be empty");
856
- for (var t = e.split(qr).filter(function(c) {
858
+ for (var t = e.split(Jr).filter(function(c) {
857
859
  return c.length > 0;
858
860
  }), r = [], n = 0, i = t; n < i.length; n++) {
859
861
  var s = i[n], u = s.split("/");
@@ -868,17 +870,17 @@ function Jr(e) {
868
870
  }
869
871
  return r;
870
872
  }
871
- function Yr(e) {
873
+ function Kr(e) {
872
874
  return e.replace(/^(.*?)-/, "");
873
875
  }
874
- var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
875
- function et(e) {
876
+ var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
877
+ function rt(e) {
876
878
  var t = {};
877
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
879
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
878
880
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
879
881
  }), t;
880
882
  }
881
- function Ut(e) {
883
+ function Gt(e) {
882
884
  switch (e) {
883
885
  case "sign-auto":
884
886
  return {
@@ -918,7 +920,7 @@ function Ut(e) {
918
920
  };
919
921
  }
920
922
  }
921
- function en(e) {
923
+ function tn(e) {
922
924
  var t;
923
925
  if (e[0] === "E" && e[1] === "E" ? (t = {
924
926
  notation: "engineering"
@@ -926,17 +928,17 @@ function en(e) {
926
928
  notation: "scientific"
927
929
  }, e = e.slice(1)), t) {
928
930
  var r = e.slice(0, 2);
929
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
931
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
930
932
  throw new Error("Malformed concise eng/scientific notation");
931
933
  t.minimumIntegerDigits = e.length;
932
934
  }
933
935
  return t;
934
936
  }
935
- function tt(e) {
936
- var t = {}, r = Ut(e);
937
+ function nt(e) {
938
+ var t = {}, r = Gt(e);
937
939
  return r || t;
938
940
  }
939
- function tn(e) {
941
+ function rn(e) {
940
942
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
941
943
  var i = n[r];
942
944
  switch (i.stem) {
@@ -960,7 +962,7 @@ function tn(e) {
960
962
  continue;
961
963
  case "measure-unit":
962
964
  case "unit":
963
- t.style = "unit", t.unit = Yr(i.options[0]);
965
+ t.style = "unit", t.unit = Kr(i.options[0]);
964
966
  continue;
965
967
  case "compact-short":
966
968
  case "K":
@@ -972,12 +974,12 @@ function tn(e) {
972
974
  continue;
973
975
  case "scientific":
974
976
  t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
975
- return y(y({}, l), tt(a));
977
+ return y(y({}, l), nt(a));
976
978
  }, {}));
977
979
  continue;
978
980
  case "engineering":
979
981
  t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
980
- return y(y({}, l), tt(a));
982
+ return y(y({}, l), nt(a));
981
983
  }, {}));
982
984
  continue;
983
985
  case "notation-simple":
@@ -1022,7 +1024,7 @@ function tn(e) {
1022
1024
  case "integer-width":
1023
1025
  if (i.options.length > 1)
1024
1026
  throw new RangeError("integer-width stems only accept a single optional option");
1025
- i.options[0].replace(Kr, function(l, a, h, f, c, p) {
1027
+ i.options[0].replace(en, function(l, a, h, f, c, p) {
1026
1028
  if (a)
1027
1029
  t.minimumIntegerDigits = h.length;
1028
1030
  else {
@@ -1035,27 +1037,27 @@ function tn(e) {
1035
1037
  });
1036
1038
  continue;
1037
1039
  }
1038
- if (Rt.test(i.stem)) {
1040
+ if (Dt.test(i.stem)) {
1039
1041
  t.minimumIntegerDigits = i.stem.length;
1040
1042
  continue;
1041
1043
  }
1042
- if (Ke.test(i.stem)) {
1044
+ if (tt.test(i.stem)) {
1043
1045
  if (i.options.length > 1)
1044
1046
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1045
- i.stem.replace(Ke, function(l, a, h, f, c, p) {
1047
+ i.stem.replace(tt, function(l, a, h, f, c, p) {
1046
1048
  return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1047
1049
  });
1048
1050
  var s = i.options[0];
1049
- s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), et(s)));
1051
+ s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), rt(s)));
1050
1052
  continue;
1051
1053
  }
1052
- if ($t.test(i.stem)) {
1053
- t = y(y({}, t), et(i.stem));
1054
+ if (Ut.test(i.stem)) {
1055
+ t = y(y({}, t), rt(i.stem));
1054
1056
  continue;
1055
1057
  }
1056
- var u = Ut(i.stem);
1058
+ var u = Gt(i.stem);
1057
1059
  u && (t = y(y({}, t), u));
1058
- var o = en(i.stem);
1060
+ var o = tn(i.stem);
1059
1061
  o && (t = y(y({}, t), o));
1060
1062
  }
1061
1063
  return t;
@@ -2475,13 +2477,13 @@ var oe = {
2475
2477
  "h"
2476
2478
  ]
2477
2479
  };
2478
- function rn(e, t) {
2480
+ function nn(e, t) {
2479
2481
  for (var r = "", n = 0; n < e.length; n++) {
2480
2482
  var i = e.charAt(n);
2481
2483
  if (i === "j") {
2482
2484
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2483
2485
  s++, n++;
2484
- var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
2486
+ var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
2485
2487
  for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2486
2488
  r += l;
2487
2489
  for (; u-- > 0; )
@@ -2490,7 +2492,7 @@ function rn(e, t) {
2490
2492
  }
2491
2493
  return r;
2492
2494
  }
2493
- function nn(e) {
2495
+ function sn(e) {
2494
2496
  var t = e.hourCycle;
2495
2497
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2496
2498
  e.hourCycles && // @ts-ignore
@@ -2512,20 +2514,20 @@ function nn(e) {
2512
2514
  var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2513
2515
  return i[0];
2514
2516
  }
2515
- var Ce, sn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
2517
+ var Ce, on = new RegExp("^".concat(Rt.source, "*")), an = new RegExp("".concat(Rt.source, "*$"));
2516
2518
  function b(e, t) {
2517
2519
  return { start: e, end: t };
2518
2520
  }
2519
- var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, mn = !!Number.isSafeInteger, pn = mn ? Number.isSafeInteger : function(e) {
2521
+ var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, ln = !!Object.fromEntries, fn = !!String.prototype.codePointAt, cn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, dn = pn ? Number.isSafeInteger : function(e) {
2520
2522
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2521
2523
  }, Re = !0;
2522
2524
  try {
2523
- var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2524
- Re = ((Ce = dn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2525
+ var bn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2526
+ Re = ((Ce = bn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2525
2527
  } catch {
2526
2528
  Re = !1;
2527
2529
  }
2528
- var rt = an ? (
2530
+ var it = un ? (
2529
2531
  // Native
2530
2532
  function(t, r, n) {
2531
2533
  return t.startsWith(r, n);
@@ -2535,7 +2537,7 @@ var rt = an ? (
2535
2537
  function(t, r, n) {
2536
2538
  return t.slice(n, n + r.length) === r;
2537
2539
  }
2538
- ), Ue = un ? String.fromCodePoint : (
2540
+ ), Ue = hn ? String.fromCodePoint : (
2539
2541
  // IE11
2540
2542
  function() {
2541
2543
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2547,9 +2549,9 @@ var rt = an ? (
2547
2549
  }
2548
2550
  return n;
2549
2551
  }
2550
- ), nt = (
2552
+ ), st = (
2551
2553
  // native
2552
- hn ? Object.fromEntries : (
2554
+ ln ? Object.fromEntries : (
2553
2555
  // Ponyfill
2554
2556
  function(t) {
2555
2557
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2559,7 +2561,7 @@ var rt = an ? (
2559
2561
  return r;
2560
2562
  }
2561
2563
  )
2562
- ), Dt = ln ? (
2564
+ ), Ft = fn ? (
2563
2565
  // Native
2564
2566
  function(t, r) {
2565
2567
  return t.codePointAt(r);
@@ -2573,7 +2575,7 @@ var rt = an ? (
2573
2575
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2574
2576
  }
2575
2577
  }
2576
- ), bn = fn ? (
2578
+ ), gn = cn ? (
2577
2579
  // Native
2578
2580
  function(t) {
2579
2581
  return t.trimStart();
@@ -2581,9 +2583,9 @@ var rt = an ? (
2581
2583
  ) : (
2582
2584
  // Ponyfill
2583
2585
  function(t) {
2584
- return t.replace(sn, "");
2586
+ return t.replace(on, "");
2585
2587
  }
2586
- ), gn = cn ? (
2588
+ ), _n = mn ? (
2587
2589
  // Native
2588
2590
  function(t) {
2589
2591
  return t.trimEnd();
@@ -2591,32 +2593,32 @@ var rt = an ? (
2591
2593
  ) : (
2592
2594
  // Ponyfill
2593
2595
  function(t) {
2594
- return t.replace(on, "");
2596
+ return t.replace(an, "");
2595
2597
  }
2596
2598
  );
2597
- function Gt(e, t) {
2599
+ function jt(e, t) {
2598
2600
  return new RegExp(e, t);
2599
2601
  }
2600
2602
  var De;
2601
2603
  if (Re) {
2602
- var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2604
+ var ot = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2603
2605
  De = function(t, r) {
2604
2606
  var n;
2605
- it.lastIndex = r;
2606
- var i = it.exec(t);
2607
+ ot.lastIndex = r;
2608
+ var i = ot.exec(t);
2607
2609
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2608
2610
  };
2609
2611
  } else
2610
2612
  De = function(t, r) {
2611
2613
  for (var n = []; ; ) {
2612
- var i = Dt(t, r);
2613
- if (i === void 0 || Ft(i) || xn(i))
2614
+ var i = Ft(t, r);
2615
+ if (i === void 0 || kt(i) || vn(i))
2614
2616
  break;
2615
2617
  n.push(i), r += i >= 65536 ? 2 : 1;
2616
2618
  }
2617
2619
  return Ue.apply(void 0, n);
2618
2620
  };
2619
- var _n = (
2621
+ var yn = (
2620
2622
  /** @class */
2621
2623
  function() {
2622
2624
  function e(t, r) {
@@ -2698,7 +2700,7 @@ var _n = (
2698
2700
  return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
2699
2701
  }, e.prototype.parseTagName = function() {
2700
2702
  var t = this.offset();
2701
- for (this.bump(); !this.isEOF() && En(this.char()); )
2703
+ for (this.bump(); !this.isEOF() && xn(this.char()); )
2702
2704
  this.bump();
2703
2705
  return this.message.slice(t, this.offset());
2704
2706
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2727,7 +2729,7 @@ var _n = (
2727
2729
  };
2728
2730
  }, e.prototype.tryParseLeftAngleBracket = function() {
2729
2731
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2730
- !yn(this.peek() || 0)) ? (this.bump(), "<") : null;
2732
+ !En(this.peek() || 0)) ? (this.bump(), "<") : null;
2731
2733
  }, e.prototype.tryParseQuote = function(t) {
2732
2734
  if (this.isEOF() || this.char() !== 39)
2733
2735
  return null;
@@ -2814,7 +2816,7 @@ var _n = (
2814
2816
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2815
2817
  if (f.err)
2816
2818
  return f;
2817
- var c = gn(f.val);
2819
+ var c = _n(f.val);
2818
2820
  if (c.length === 0)
2819
2821
  return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2820
2822
  var p = b(h, this.clonePosition());
@@ -2824,8 +2826,8 @@ var _n = (
2824
2826
  if (m.err)
2825
2827
  return m;
2826
2828
  var g = b(i, this.clonePosition());
2827
- if (a && rt(a?.style, "::", 0)) {
2828
- var v = bn(a.style.slice(2));
2829
+ if (a && it(a?.style, "::", 0)) {
2830
+ var v = gn(a.style.slice(2));
2829
2831
  if (o === "number") {
2830
2832
  var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
2831
2833
  return f.err ? f : {
@@ -2836,12 +2838,12 @@ var _n = (
2836
2838
  if (v.length === 0)
2837
2839
  return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
2838
2840
  var L = v;
2839
- this.locale && (L = rn(v, this.locale));
2841
+ this.locale && (L = nn(v, this.locale));
2840
2842
  var c = {
2841
2843
  type: k.dateTime,
2842
2844
  pattern: L,
2843
2845
  location: a.styleLocation,
2844
- parsedOptions: this.shouldParseSkeletons ? Qr(L) : {}
2846
+ parsedOptions: this.shouldParseSkeletons ? qr(L) : {}
2845
2847
  }, A = o === "date" ? E.date : E.time;
2846
2848
  return {
2847
2849
  val: { type: A, value: n, location: g, style: c },
@@ -2887,7 +2889,7 @@ var _n = (
2887
2889
  val: {
2888
2890
  type: E.select,
2889
2891
  value: n,
2890
- options: nt($.val),
2892
+ options: st($.val),
2891
2893
  location: ie
2892
2894
  },
2893
2895
  err: null
@@ -2895,7 +2897,7 @@ var _n = (
2895
2897
  val: {
2896
2898
  type: E.plural,
2897
2899
  value: n,
2898
- options: nt($.val),
2900
+ options: st($.val),
2899
2901
  offset: T,
2900
2902
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2901
2903
  location: ie
@@ -2946,7 +2948,7 @@ var _n = (
2946
2948
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2947
2949
  var n = [];
2948
2950
  try {
2949
- n = Jr(t);
2951
+ n = Yr(t);
2950
2952
  } catch {
2951
2953
  return this.error(d.INVALID_NUMBER_SKELETON, r);
2952
2954
  }
@@ -2955,7 +2957,7 @@ var _n = (
2955
2957
  type: k.number,
2956
2958
  tokens: n,
2957
2959
  location: r,
2958
- parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
2960
+ parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
2959
2961
  },
2960
2962
  err: null
2961
2963
  };
@@ -3003,7 +3005,7 @@ var _n = (
3003
3005
  break;
3004
3006
  }
3005
3007
  var l = b(i, this.clonePosition());
3006
- return s ? (u *= n, pn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
3008
+ return s ? (u *= n, dn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
3007
3009
  }, e.prototype.offset = function() {
3008
3010
  return this.position.offset;
3009
3011
  }, e.prototype.isEOF = function() {
@@ -3018,7 +3020,7 @@ var _n = (
3018
3020
  var t = this.position.offset;
3019
3021
  if (t >= this.message.length)
3020
3022
  throw Error("out of bound");
3021
- var r = Dt(this.message, t);
3023
+ var r = Ft(this.message, t);
3022
3024
  if (r === void 0)
3023
3025
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3024
3026
  return r;
@@ -3037,7 +3039,7 @@ var _n = (
3037
3039
  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);
3038
3040
  }
3039
3041
  }, e.prototype.bumpIf = function(t) {
3040
- if (rt(this.message, t, this.offset())) {
3042
+ if (it(this.message, t, this.offset())) {
3041
3043
  for (var r = 0; r < t.length; r++)
3042
3044
  this.bump();
3043
3045
  return !0;
@@ -3059,7 +3061,7 @@ var _n = (
3059
3061
  break;
3060
3062
  }
3061
3063
  }, e.prototype.bumpSpace = function() {
3062
- for (; !this.isEOF() && Ft(this.char()); )
3064
+ for (; !this.isEOF() && kt(this.char()); )
3063
3065
  this.bump();
3064
3066
  }, e.prototype.peek = function() {
3065
3067
  if (this.isEOF())
@@ -3072,29 +3074,29 @@ var _n = (
3072
3074
  function Ge(e) {
3073
3075
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3074
3076
  }
3075
- function yn(e) {
3077
+ function En(e) {
3076
3078
  return Ge(e) || e === 47;
3077
3079
  }
3078
- function En(e) {
3080
+ function xn(e) {
3079
3081
  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;
3080
3082
  }
3081
- function Ft(e) {
3083
+ function kt(e) {
3082
3084
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3083
3085
  }
3084
- function xn(e) {
3086
+ function vn(e) {
3085
3087
  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;
3086
3088
  }
3087
3089
  function Fe(e) {
3088
3090
  e.forEach(function(t) {
3089
- if (delete t.location, Pt(t) || Lt(t))
3091
+ if (delete t.location, Nt(t) || It(t))
3090
3092
  for (var r in t.options)
3091
3093
  delete t.options[r].location, Fe(t.options[r].value);
3092
- else At(t) && It(t.style) || (Ct(t) || Ot(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
3094
+ else Ot(t) && $t(t.style) || (Pt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : Mt(t) && Fe(t.children);
3093
3095
  });
3094
3096
  }
3095
- function vn(e, t) {
3097
+ function Hn(e, t) {
3096
3098
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3097
- var r = new _n(e, t).parse();
3099
+ var r = new yn(e, t).parse();
3098
3100
  if (r.err) {
3099
3101
  var n = SyntaxError(d[r.err.kind]);
3100
3102
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3117,7 +3119,7 @@ var _e = (
3117
3119
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3118
3120
  }, t;
3119
3121
  }(Error)
3120
- ), st = (
3122
+ ), at = (
3121
3123
  /** @class */
3122
3124
  function(e) {
3123
3125
  ge(t, e);
@@ -3126,7 +3128,7 @@ var _e = (
3126
3128
  }
3127
3129
  return t;
3128
3130
  }(_e)
3129
- ), Hn = (
3131
+ ), Bn = (
3130
3132
  /** @class */
3131
3133
  function(e) {
3132
3134
  ge(t, e);
@@ -3135,7 +3137,7 @@ var _e = (
3135
3137
  }
3136
3138
  return t;
3137
3139
  }(_e)
3138
- ), Bn = (
3140
+ ), Tn = (
3139
3141
  /** @class */
3140
3142
  function(e) {
3141
3143
  ge(t, e);
@@ -3148,17 +3150,17 @@ var _e = (
3148
3150
  (function(e) {
3149
3151
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3150
3152
  })(x || (x = {}));
3151
- function Tn(e) {
3153
+ function wn(e) {
3152
3154
  return e.length < 2 ? e : e.reduce(function(t, r) {
3153
3155
  var n = t[t.length - 1];
3154
3156
  return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3155
3157
  }, []);
3156
3158
  }
3157
- function wn(e) {
3159
+ function Sn(e) {
3158
3160
  return typeof e == "function";
3159
3161
  }
3160
3162
  function le(e, t, r, n, i, s, u) {
3161
- if (e.length === 1 && Ye(e[0]))
3163
+ if (e.length === 1 && et(e[0]))
3162
3164
  return [
3163
3165
  {
3164
3166
  type: x.literal,
@@ -3167,14 +3169,14 @@ function le(e, t, r, n, i, s, u) {
3167
3169
  ];
3168
3170
  for (var o = [], l = 0, a = e; l < a.length; l++) {
3169
3171
  var h = a[l];
3170
- if (Ye(h)) {
3172
+ if (et(h)) {
3171
3173
  o.push({
3172
3174
  type: x.literal,
3173
3175
  value: h.value
3174
3176
  });
3175
3177
  continue;
3176
3178
  }
3177
- if (zr(h)) {
3179
+ if (Zr(h)) {
3178
3180
  typeof s == "number" && o.push({
3179
3181
  type: x.literal,
3180
3182
  value: r.getNumberFormat(t).format(s)
@@ -3183,7 +3185,7 @@ function le(e, t, r, n, i, s, u) {
3183
3185
  }
3184
3186
  var f = h.value;
3185
3187
  if (!(i && f in i))
3186
- throw new Bn(f, u);
3188
+ throw new Tn(f, u);
3187
3189
  var c = i[f];
3188
3190
  if (Wr(h)) {
3189
3191
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
@@ -3192,7 +3194,7 @@ function le(e, t, r, n, i, s, u) {
3192
3194
  });
3193
3195
  continue;
3194
3196
  }
3195
- if (Ct(h)) {
3197
+ if (Pt(h)) {
3196
3198
  var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
3197
3199
  o.push({
3198
3200
  type: x.literal,
@@ -3200,7 +3202,7 @@ function le(e, t, r, n, i, s, u) {
3200
3202
  });
3201
3203
  continue;
3202
3204
  }
3203
- if (Ot(h)) {
3205
+ if (Lt(h)) {
3204
3206
  var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
3205
3207
  o.push({
3206
3208
  type: x.literal,
@@ -3208,18 +3210,18 @@ function le(e, t, r, n, i, s, u) {
3208
3210
  });
3209
3211
  continue;
3210
3212
  }
3211
- if (At(h)) {
3212
- var p = typeof h.style == "string" ? n.number[h.style] : It(h.style) ? h.style.parsedOptions : void 0;
3213
+ if (Ot(h)) {
3214
+ var p = typeof h.style == "string" ? n.number[h.style] : $t(h.style) ? h.style.parsedOptions : void 0;
3213
3215
  p && p.scale && (c = c * (p.scale || 1)), o.push({
3214
3216
  type: x.literal,
3215
3217
  value: r.getNumberFormat(t, p).format(c)
3216
3218
  });
3217
3219
  continue;
3218
3220
  }
3219
- if (Nt(h)) {
3221
+ if (Mt(h)) {
3220
3222
  var m = h.children, g = h.value, v = i[g];
3221
- if (!wn(v))
3222
- throw new Hn(g, "function", u);
3223
+ if (!Sn(v))
3224
+ throw new Bn(g, "function", u);
3223
3225
  var L = le(m, t, r, n, i, s), A = v(L.map(function(T) {
3224
3226
  return T.value;
3225
3227
  }));
@@ -3230,14 +3232,14 @@ function le(e, t, r, n, i, s, u) {
3230
3232
  };
3231
3233
  }));
3232
3234
  }
3233
- if (Pt(h)) {
3235
+ if (Nt(h)) {
3234
3236
  var H = h.options[c] || h.options.other;
3235
3237
  if (!H)
3236
- throw new st(h.value, c, Object.keys(h.options), u);
3238
+ throw new at(h.value, c, Object.keys(h.options), u);
3237
3239
  o.push.apply(o, le(H.value, t, r, n, i));
3238
3240
  continue;
3239
3241
  }
3240
- if (Lt(h)) {
3242
+ if (It(h)) {
3241
3243
  var H = h.options["=".concat(c)];
3242
3244
  if (!H) {
3243
3245
  if (!Intl.PluralRules)
@@ -3248,21 +3250,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3248
3250
  H = h.options[N] || h.options.other;
3249
3251
  }
3250
3252
  if (!H)
3251
- throw new st(h.value, c, Object.keys(h.options), u);
3253
+ throw new at(h.value, c, Object.keys(h.options), u);
3252
3254
  o.push.apply(o, le(H.value, t, r, n, i, c - (h.offset || 0)));
3253
3255
  continue;
3254
3256
  }
3255
3257
  }
3256
- return Tn(o);
3258
+ return wn(o);
3257
3259
  }
3258
- function Sn(e, t) {
3260
+ function An(e, t) {
3259
3261
  return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3260
3262
  return r[n] = y(y({}, e[n]), t[n] || {}), r;
3261
3263
  }, {})) : e;
3262
3264
  }
3263
- function An(e, t) {
3265
+ function Cn(e, t) {
3264
3266
  return t ? Object.keys(e).reduce(function(r, n) {
3265
- return r[n] = Sn(e[n], t[n]), r;
3267
+ return r[n] = An(e[n], t[n]), r;
3266
3268
  }, y({}, e)) : e;
3267
3269
  }
3268
3270
  function Oe(e) {
@@ -3279,7 +3281,7 @@ function Oe(e) {
3279
3281
  }
3280
3282
  };
3281
3283
  }
3282
- function Cn(e) {
3284
+ function On(e) {
3283
3285
  return e === void 0 && (e = {
3284
3286
  number: {},
3285
3287
  dateTime: {},
@@ -3311,7 +3313,7 @@ function Cn(e) {
3311
3313
  })
3312
3314
  };
3313
3315
  }
3314
- var jt = (
3316
+ var Vt = (
3315
3317
  /** @class */
3316
3318
  function() {
3317
3319
  function e(t, r, n, i) {
@@ -3343,13 +3345,13 @@ var jt = (
3343
3345
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3344
3346
  var u = i || {};
3345
3347
  u.formatters;
3346
- var o = Ur(u, ["formatters"]);
3348
+ var o = Gr(u, ["formatters"]);
3347
3349
  this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3348
3350
  } else
3349
3351
  this.ast = t;
3350
3352
  if (!Array.isArray(this.ast))
3351
3353
  throw new TypeError("A message must be provided as a String or AST.");
3352
- this.formats = An(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
3354
+ this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3353
3355
  }
3354
3356
  return Object.defineProperty(e, "defaultLocale", {
3355
3357
  get: function() {
@@ -3362,7 +3364,7 @@ var jt = (
3362
3364
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3363
3365
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3364
3366
  }
3365
- }, e.__parse = vn, e.formats = {
3367
+ }, e.__parse = Hn, e.formats = {
3366
3368
  number: {
3367
3369
  integer: {
3368
3370
  maximumFractionDigits: 0
@@ -3423,7 +3425,7 @@ var jt = (
3423
3425
  }, e;
3424
3426
  }()
3425
3427
  );
3426
- function On(e, t) {
3428
+ function Pn(e, t) {
3427
3429
  if (t == null)
3428
3430
  return;
3429
3431
  if (t in e)
@@ -3444,60 +3446,60 @@ function On(e, t) {
3444
3446
  n = void 0;
3445
3447
  return n;
3446
3448
  }
3447
- const C = {}, Pn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), kt = (e, t) => {
3449
+ const C = {}, Ln = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Xt = (e, t) => {
3448
3450
  if (t == null)
3449
3451
  return;
3450
3452
  if (t in C && e in C[t])
3451
3453
  return C[t][e];
3452
3454
  const r = ne(t);
3453
3455
  for (let n = 0; n < r.length; n++) {
3454
- const i = r[n], s = Nn(i, e);
3456
+ const i = r[n], s = In(i, e);
3455
3457
  if (s)
3456
- return Pn(e, t, s);
3458
+ return Ln(e, t, s);
3457
3459
  }
3458
3460
  };
3459
- let We;
3461
+ let Ze;
3460
3462
  const re = be({});
3461
- function Ln(e) {
3462
- return We[e] || null;
3463
+ function Nn(e) {
3464
+ return Ze[e] || null;
3463
3465
  }
3464
- function Vt(e) {
3465
- return e in We;
3466
+ function zt(e) {
3467
+ return e in Ze;
3466
3468
  }
3467
- function Nn(e, t) {
3468
- if (!Vt(e))
3469
+ function In(e, t) {
3470
+ if (!zt(e))
3469
3471
  return null;
3470
- const r = Ln(e);
3471
- return On(r, t);
3472
+ const r = Nn(e);
3473
+ return Pn(r, t);
3472
3474
  }
3473
- function In(e) {
3475
+ function Mn(e) {
3474
3476
  if (e == null)
3475
3477
  return;
3476
3478
  const t = ne(e);
3477
3479
  for (let r = 0; r < t.length; r++) {
3478
3480
  const n = t[r];
3479
- if (Vt(n))
3481
+ if (zt(n))
3480
3482
  return n;
3481
3483
  }
3482
3484
  }
3483
- function Xt(e, ...t) {
3484
- delete C[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
3485
+ function Wt(e, ...t) {
3486
+ delete C[e], re.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
3485
3487
  }
3486
3488
  Z(
3487
3489
  [re],
3488
3490
  ([e]) => Object.keys(e)
3489
3491
  );
3490
- re.subscribe((e) => We = e);
3492
+ re.subscribe((e) => Ze = e);
3491
3493
  const fe = {};
3492
- function Mn(e, t) {
3494
+ function $n(e, t) {
3493
3495
  fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3494
3496
  }
3495
- function Wt(e) {
3497
+ function Zt(e) {
3496
3498
  return fe[e];
3497
3499
  }
3498
- function $n(e) {
3500
+ function Rn(e) {
3499
3501
  return ne(e).map((t) => {
3500
- const r = Wt(t);
3502
+ const r = Zt(t);
3501
3503
  return [t, r ? [...r] : []];
3502
3504
  }).filter(([, t]) => t.length > 0);
3503
3505
  }
@@ -3505,40 +3507,40 @@ function me(e) {
3505
3507
  return e == null ? !1 : ne(e).some(
3506
3508
  (t) => {
3507
3509
  var r;
3508
- return (r = Wt(t)) == null ? void 0 : r.size;
3510
+ return (r = Zt(t)) == null ? void 0 : r.size;
3509
3511
  }
3510
3512
  );
3511
3513
  }
3512
- function Rn(e, t) {
3514
+ function Un(e, t) {
3513
3515
  return Promise.all(
3514
- t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
3515
- ).then((n) => Xt(e, ...n));
3516
+ t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3517
+ ).then((n) => Wt(e, ...n));
3516
3518
  }
3517
3519
  const q = {};
3518
- function zt(e) {
3520
+ function Qt(e) {
3519
3521
  if (!me(e))
3520
3522
  return e in q ? q[e] : Promise.resolve();
3521
- const t = $n(e);
3523
+ const t = Rn(e);
3522
3524
  return q[e] = Promise.all(
3523
3525
  t.map(
3524
- ([r, n]) => Rn(r, n)
3526
+ ([r, n]) => Un(r, n)
3525
3527
  )
3526
3528
  ).then(() => {
3527
3529
  if (me(e))
3528
- return zt(e);
3530
+ return Qt(e);
3529
3531
  delete q[e];
3530
3532
  }), q[e];
3531
3533
  }
3532
- var ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
3534
+ var ut = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3533
3535
  var r = {};
3534
3536
  for (var n in e)
3535
- Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3536
- if (e != null && ot)
3537
- for (var n of ot(e))
3538
- t.indexOf(n) < 0 && Dn.call(e, n) && (r[n] = e[n]);
3537
+ Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3538
+ if (e != null && ut)
3539
+ for (var n of ut(e))
3540
+ t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3539
3541
  return r;
3540
3542
  };
3541
- const Fn = {
3543
+ const jn = {
3542
3544
  number: {
3543
3545
  scientific: { notation: "scientific" },
3544
3546
  engineering: { notation: "engineering" },
@@ -3568,7 +3570,7 @@ const Fn = {
3568
3570
  }
3569
3571
  }
3570
3572
  };
3571
- function jn({ locale: e, id: t }) {
3573
+ function kn({ locale: e, id: t }) {
3572
3574
  console.warn(
3573
3575
  `[svelte-i18n] The message "${t}" was not found in "${ne(
3574
3576
  e
@@ -3577,49 +3579,49 @@ function jn({ locale: e, id: t }) {
3577
3579
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3578
3580
  );
3579
3581
  }
3580
- const kn = {
3582
+ const Vn = {
3581
3583
  fallbackLocale: null,
3582
3584
  loadingDelay: 200,
3583
- formats: Fn,
3585
+ formats: jn,
3584
3586
  warnOnMissingMessages: !0,
3585
3587
  handleMissingMessage: void 0,
3586
3588
  ignoreTag: !0
3587
- }, J = kn;
3589
+ }, J = Vn;
3588
3590
  function X() {
3589
3591
  return J;
3590
3592
  }
3591
- function Vn(e) {
3592
- const t = e, { formats: r } = t, n = Gn(t, ["formats"]);
3593
+ function Xn(e) {
3594
+ const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
3593
3595
  let i = e.fallbackLocale;
3594
3596
  if (e.initialLocale)
3595
3597
  try {
3596
- jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3598
+ Vt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3597
3599
  } catch {
3598
3600
  console.warn(
3599
3601
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3600
3602
  );
3601
3603
  }
3602
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
3604
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = kn : console.warn(
3603
3605
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3604
3606
  )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
3605
3607
  }
3606
3608
  const Pe = be(!1);
3607
- var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
3609
+ var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3608
3610
  for (var r in t || (t = {}))
3609
- Zn.call(t, r) && ut(e, r, t[r]);
3610
- if (at)
3611
- for (var r of at(t))
3612
- Qn.call(t, r) && ut(e, r, t[r]);
3611
+ Qn.call(t, r) && lt(e, r, t[r]);
3612
+ if (ht)
3613
+ for (var r of ht(t))
3614
+ qn.call(t, r) && lt(e, r, t[r]);
3613
3615
  return e;
3614
- }, Jn = (e, t) => Wn(e, zn(t));
3616
+ }, Yn = (e, t) => Wn(e, Zn(t));
3615
3617
  let je;
3616
3618
  const pe = be(null);
3617
- function ht(e) {
3619
+ function ft(e) {
3618
3620
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3619
3621
  }
3620
3622
  function ne(e, t = X().fallbackLocale) {
3621
- const r = ht(e);
3622
- return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3623
+ const r = ft(e);
3624
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3623
3625
  }
3624
3626
  function P() {
3625
3627
  return je ?? void 0;
@@ -3627,22 +3629,22 @@ function P() {
3627
3629
  pe.subscribe((e) => {
3628
3630
  je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3629
3631
  });
3630
- const Yn = (e) => {
3631
- if (e && In(e) && me(e)) {
3632
+ const Kn = (e) => {
3633
+ if (e && Mn(e) && me(e)) {
3632
3634
  const { loadingDelay: t } = X();
3633
3635
  let r;
3634
3636
  return typeof window < "u" && P() != null && t ? r = window.setTimeout(
3635
3637
  () => Pe.set(!0),
3636
3638
  t
3637
- ) : Pe.set(!0), zt(e).then(() => {
3639
+ ) : Pe.set(!0), Qt(e).then(() => {
3638
3640
  pe.set(e);
3639
3641
  }).finally(() => {
3640
3642
  clearTimeout(r), Pe.set(!1);
3641
3643
  });
3642
3644
  }
3643
3645
  return pe.set(e);
3644
- }, M = Jn(qn({}, pe), {
3645
- set: Yn
3646
+ }, M = Yn(Jn({}, pe), {
3647
+ set: Kn
3646
3648
  }), ye = (e) => {
3647
3649
  const t = /* @__PURE__ */ Object.create(null);
3648
3650
  return (n) => {
@@ -3650,20 +3652,20 @@ const Yn = (e) => {
3650
3652
  return i in t ? t[i] : t[i] = e(n);
3651
3653
  };
3652
3654
  };
3653
- var Kn = Object.defineProperty, de = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3655
+ var ei = Object.defineProperty, de = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3654
3656
  for (var r in t || (t = {}))
3655
- Zt.call(t, r) && lt(e, r, t[r]);
3657
+ qt.call(t, r) && ct(e, r, t[r]);
3656
3658
  if (de)
3657
3659
  for (var r of de(t))
3658
- Qt.call(t, r) && lt(e, r, t[r]);
3660
+ Jt.call(t, r) && ct(e, r, t[r]);
3659
3661
  return e;
3660
3662
  }, Q = (e, t) => {
3661
3663
  var r = {};
3662
3664
  for (var n in e)
3663
- Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3665
+ qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3664
3666
  if (e != null && de)
3665
3667
  for (var n of de(e))
3666
- t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3668
+ t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3667
3669
  return r;
3668
3670
  };
3669
3671
  const ee = (e, t) => {
@@ -3671,21 +3673,21 @@ const ee = (e, t) => {
3671
3673
  if (e in r && t in r[e])
3672
3674
  return r[e][t];
3673
3675
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3674
- }, ei = ye(
3676
+ }, ti = ye(
3675
3677
  (e) => {
3676
3678
  var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3677
3679
  if (r == null)
3678
3680
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3679
3681
  return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3680
3682
  }
3681
- ), ti = ye(
3683
+ ), ri = ye(
3682
3684
  (e) => {
3683
3685
  var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3684
3686
  if (r == null)
3685
3687
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3686
3688
  return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3687
3689
  }
3688
- ), ri = ye(
3690
+ ), ni = ye(
3689
3691
  (e) => {
3690
3692
  var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3691
3693
  if (r == null)
@@ -3694,33 +3696,33 @@ const ee = (e, t) => {
3694
3696
  );
3695
3697
  return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3696
3698
  }
3697
- ), ni = (e = {}) => {
3699
+ ), ii = (e = {}) => {
3698
3700
  var t = e, {
3699
3701
  locale: r = P()
3700
3702
  } = t, n = Q(t, [
3701
3703
  "locale"
3702
3704
  ]);
3703
- return ei(ze({ locale: r }, n));
3704
- }, ii = (e = {}) => {
3705
+ return ti(Qe({ locale: r }, n));
3706
+ }, si = (e = {}) => {
3705
3707
  var t = e, {
3706
3708
  locale: r = P()
3707
3709
  } = t, n = Q(t, [
3708
3710
  "locale"
3709
3711
  ]);
3710
- return ti(ze({ locale: r }, n));
3711
- }, si = (e = {}) => {
3712
+ return ri(Qe({ locale: r }, n));
3713
+ }, oi = (e = {}) => {
3712
3714
  var t = e, {
3713
3715
  locale: r = P()
3714
3716
  } = t, n = Q(t, [
3715
3717
  "locale"
3716
3718
  ]);
3717
- return ri(ze({ locale: r }, n));
3718
- }, oi = ye(
3719
+ return ni(Qe({ locale: r }, n));
3720
+ }, ai = ye(
3719
3721
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3720
- (e, t = P()) => new jt(e, t, X().formats, {
3722
+ (e, t = P()) => new Vt(e, t, X().formats, {
3721
3723
  ignoreTag: X().ignoreTag
3722
3724
  })
3723
- ), ai = (e, t = {}) => {
3725
+ ), ui = (e, t = {}) => {
3724
3726
  var r, n, i, s;
3725
3727
  let u = t;
3726
3728
  typeof e == "object" && (u = e, e = u.id);
@@ -3733,7 +3735,7 @@ const ee = (e, t) => {
3733
3735
  throw new Error(
3734
3736
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3735
3737
  );
3736
- let h = kt(e, l);
3738
+ let h = Xt(e, l);
3737
3739
  if (!h)
3738
3740
  h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3739
3741
  else if (typeof h != "string")
@@ -3744,7 +3746,7 @@ const ee = (e, t) => {
3744
3746
  return h;
3745
3747
  let f = h;
3746
3748
  try {
3747
- f = oi(h, l).format(o);
3749
+ f = ai(h, l).format(o);
3748
3750
  } catch (c) {
3749
3751
  c instanceof Error && console.warn(
3750
3752
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3752,20 +3754,20 @@ const ee = (e, t) => {
3752
3754
  );
3753
3755
  }
3754
3756
  return f;
3755
- }, ui = (e, t) => si(t).format(e), hi = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = P()) => kt(e, t), ci = Z([M, re], () => ai);
3756
- Z([M], () => ui);
3757
+ }, hi = (e, t) => oi(t).format(e), li = (e, t) => si(t).format(e), fi = (e, t) => ii(t).format(e), ci = (e, t = P()) => Xt(e, t), mi = Z([M, re], () => ui);
3757
3758
  Z([M], () => hi);
3758
3759
  Z([M], () => li);
3759
- Z([M, re], () => fi);
3760
- function ft(e, t) {
3761
- Xt(e, t);
3760
+ Z([M], () => fi);
3761
+ Z([M, re], () => ci);
3762
+ function mt(e, t) {
3763
+ Wt(e, t);
3762
3764
  }
3763
- function mi(e) {
3764
- Vn({
3765
+ function pi(e) {
3766
+ Xn({
3765
3767
  fallbackLocale: "en"
3766
3768
  }), M.set(e);
3767
3769
  }
3768
- const ct = {
3770
+ const pt = {
3769
3771
  en: {
3770
3772
  header: {
3771
3773
  general: "Cashier",
@@ -3788,18 +3790,18 @@ const ct = {
3788
3790
  }
3789
3791
  }
3790
3792
  };
3791
- function pi(e) {
3792
- nr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3793
+ function di(e) {
3794
+ sr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3793
3795
  }
3794
- const di = (e) => ({}), mt = (e) => ({}), bi = (e) => ({}), pt = (e) => ({}), gi = (e) => ({}), dt = (e) => ({});
3795
- function bt(e) {
3796
+ const bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({});
3797
+ function _t(e) {
3796
3798
  let t, r, n;
3797
3799
  return {
3798
3800
  c() {
3799
- t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderLeftButton");
3801
+ t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderLeftButton");
3800
3802
  },
3801
3803
  m(i, s) {
3802
- I(i, t, s), r || (n = Ht(
3804
+ I(i, t, s), r || (n = Tt(
3803
3805
  t,
3804
3806
  "click",
3805
3807
  /*back*/
@@ -3812,28 +3814,28 @@ function bt(e) {
3812
3814
  }
3813
3815
  };
3814
3816
  }
3815
- function _i(e) {
3817
+ function yi(e) {
3816
3818
  let t, r = (
3817
3819
  /*backButton*/
3818
- e[1] && bt(e)
3820
+ e[1] && _t(e)
3819
3821
  );
3820
3822
  return {
3821
3823
  c() {
3822
- r && r.c(), t = vt();
3824
+ r && r.c(), t = Bt();
3823
3825
  },
3824
3826
  m(n, i) {
3825
3827
  r && r.m(n, i), I(n, t, i);
3826
3828
  },
3827
3829
  p(n, i) {
3828
3830
  /*backButton*/
3829
- n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3831
+ n[1] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3830
3832
  },
3831
3833
  d(n) {
3832
3834
  n && O(t), r && r.d(n);
3833
3835
  }
3834
3836
  };
3835
3837
  }
3836
- function yi(e) {
3838
+ function Ei(e) {
3837
3839
  let t, r = (
3838
3840
  /*$_*/
3839
3841
  e[4](
@@ -3843,7 +3845,7 @@ function yi(e) {
3843
3845
  ), n;
3844
3846
  return {
3845
3847
  c() {
3846
- t = W("span"), n = Ve(r), z(t, "class", "CashierHeaderTitle");
3848
+ t = z("span"), n = Ve(r), W(t, "class", "CashierHeaderTitle");
3847
3849
  },
3848
3850
  m(i, s) {
3849
3851
  I(i, t, s), ce(t, n);
@@ -3854,21 +3856,21 @@ function yi(e) {
3854
3856
  i[4](
3855
3857
  /*titleText*/
3856
3858
  i[2]
3857
- ) + "") && ar(n, r);
3859
+ ) + "") && hr(n, r);
3858
3860
  },
3859
3861
  d(i) {
3860
3862
  i && O(t);
3861
3863
  }
3862
3864
  };
3863
3865
  }
3864
- function gt(e) {
3866
+ function yt(e) {
3865
3867
  let t, r, n;
3866
3868
  return {
3867
3869
  c() {
3868
- t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderRightButton");
3870
+ t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderRightButton");
3869
3871
  },
3870
3872
  m(i, s) {
3871
- I(i, t, s), r || (n = Ht(
3873
+ I(i, t, s), r || (n = Tt(
3872
3874
  t,
3873
3875
  "click",
3874
3876
  /*close*/
@@ -3881,28 +3883,28 @@ function gt(e) {
3881
3883
  }
3882
3884
  };
3883
3885
  }
3884
- function Ei(e) {
3886
+ function xi(e) {
3885
3887
  let t, r = (
3886
3888
  /*closeButton*/
3887
- e[3] && gt(e)
3889
+ e[3] && yt(e)
3888
3890
  );
3889
3891
  return {
3890
3892
  c() {
3891
- r && r.c(), t = vt();
3893
+ r && r.c(), t = Bt();
3892
3894
  },
3893
3895
  m(n, i) {
3894
3896
  r && r.m(n, i), I(n, t, i);
3895
3897
  },
3896
3898
  p(n, i) {
3897
3899
  /*closeButton*/
3898
- n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3900
+ n[3] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3899
3901
  },
3900
3902
  d(n) {
3901
3903
  n && O(t), r && r.d(n);
3902
3904
  }
3903
3905
  };
3904
3906
  }
3905
- function xi(e) {
3907
+ function vi(e) {
3906
3908
  let t, r, n, i;
3907
3909
  const s = (
3908
3910
  /*#slots*/
@@ -3912,8 +3914,8 @@ function xi(e) {
3912
3914
  e,
3913
3915
  /*$$scope*/
3914
3916
  e[14],
3915
- dt
3916
- ), o = u || _i(e), l = (
3917
+ gt
3918
+ ), o = u || yi(e), l = (
3917
3919
  /*#slots*/
3918
3920
  e[15].title
3919
3921
  ), a = Ee(
@@ -3921,8 +3923,8 @@ function xi(e) {
3921
3923
  e,
3922
3924
  /*$$scope*/
3923
3925
  e[14],
3924
- pt
3925
- ), h = a || yi(e), f = (
3926
+ bt
3927
+ ), h = a || Ei(e), f = (
3926
3928
  /*#slots*/
3927
3929
  e[15].rightButton
3928
3930
  ), c = Ee(
@@ -3930,11 +3932,11 @@ function xi(e) {
3930
3932
  e,
3931
3933
  /*$$scope*/
3932
3934
  e[14],
3933
- mt
3934
- ), p = c || Ei(e);
3935
+ dt
3936
+ ), p = c || xi(e);
3935
3937
  return {
3936
3938
  c() {
3937
- t = W("div"), o && o.c(), r = Qe(), h && h.c(), n = Qe(), p && p.c(), z(t, "class", "CashierHeader");
3939
+ t = z("div"), o && o.c(), r = Je(), h && h.c(), n = Je(), p && p.c(), W(t, "class", "CashierHeader");
3938
3940
  },
3939
3941
  m(m, g) {
3940
3942
  I(m, t, g), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[16](t), i = !0;
@@ -3952,12 +3954,12 @@ function xi(e) {
3952
3954
  /*$$scope*/
3953
3955
  m[14],
3954
3956
  g,
3955
- gi
3957
+ _i
3956
3958
  ) : He(
3957
3959
  /*$$scope*/
3958
3960
  m[14]
3959
3961
  ),
3960
- dt
3962
+ gt
3961
3963
  ) : o && o.p && (!i || g & /*backButton*/
3962
3964
  2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
3963
3965
  16384) && ve(
@@ -3971,12 +3973,12 @@ function xi(e) {
3971
3973
  /*$$scope*/
3972
3974
  m[14],
3973
3975
  g,
3974
- bi
3976
+ gi
3975
3977
  ) : He(
3976
3978
  /*$$scope*/
3977
3979
  m[14]
3978
3980
  ),
3979
- pt
3981
+ bt
3980
3982
  ) : h && h.p && (!i || g & /*$_, titleText*/
3981
3983
  20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
3982
3984
  16384) && ve(
@@ -3990,12 +3992,12 @@ function xi(e) {
3990
3992
  /*$$scope*/
3991
3993
  m[14],
3992
3994
  g,
3993
- di
3995
+ bi
3994
3996
  ) : He(
3995
3997
  /*$$scope*/
3996
3998
  m[14]
3997
3999
  ),
3998
- mt
4000
+ dt
3999
4001
  ) : p && p.p && (!i || g & /*closeButton*/
4000
4002
  8) && p.p(m, i ? g : -1);
4001
4003
  },
@@ -4010,22 +4012,22 @@ function xi(e) {
4010
4012
  }
4011
4013
  };
4012
4014
  }
4013
- function vi(e, t, r) {
4015
+ function Hi(e, t, r) {
4014
4016
  let n;
4015
- rr(e, ci, (_) => r(4, n = _));
4017
+ ir(e, mi, (_) => r(4, n = _));
4016
4018
  let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
4017
4019
  const L = () => {
4018
4020
  let _ = l;
4019
4021
  _ && fetch(_).then((w) => w.json()).then((w) => {
4020
4022
  Object.keys(w).forEach((R) => {
4021
- ft(R, w[R]);
4023
+ mt(R, w[R]);
4022
4024
  });
4023
4025
  }).catch((w) => {
4024
4026
  console.log(w);
4025
4027
  });
4026
4028
  };
4027
- Object.keys(ct).forEach((_) => {
4028
- ft(_, ct[_]);
4029
+ Object.keys(pt).forEach((_) => {
4030
+ mt(_, pt[_]);
4029
4031
  });
4030
4032
  const A = () => {
4031
4033
  let _ = document.createElement("style");
@@ -4041,19 +4043,19 @@ function vi(e, t, r) {
4041
4043
  );
4042
4044
  });
4043
4045
  }, N = () => {
4044
- mi(f);
4046
+ pi(f);
4045
4047
  }, T = () => {
4046
4048
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4047
4049
  }, $ = () => {
4048
4050
  window.postMessage({ type: "BackCashier" }, window.location.href);
4049
4051
  }, ie = () => {
4050
4052
  r(1, m = !!a && a !== "false");
4051
- }, Jt = () => {
4053
+ }, Kt = () => {
4052
4054
  r(3, v = !!c && c !== "false");
4053
- }, Yt = () => {
4055
+ }, er = () => {
4054
4056
  r(2, g = h || "header.general");
4055
4057
  };
4056
- function Kt(_) {
4058
+ function tr(_) {
4057
4059
  Le[_ ? "unshift" : "push"](() => {
4058
4060
  p = _, r(0, p);
4059
4061
  });
@@ -4063,12 +4065,12 @@ function vi(e, t, r) {
4063
4065
  }, e.$$.update = () => {
4064
4066
  e.$$.dirty & /*lang*/
4065
4067
  4096 && f && N(), e.$$.dirty & /*lang, title*/
4066
- 6144 && f && h && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4068
+ 6144 && f && h && er(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4067
4069
  129 && u && p && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4068
4070
  257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
4069
4071
  4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
4070
4072
  1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
4071
- 8192 && c && Jt();
4073
+ 8192 && c && Kt();
4072
4074
  }, [
4073
4075
  p,
4074
4076
  m,
@@ -4086,17 +4088,17 @@ function vi(e, t, r) {
4086
4088
  c,
4087
4089
  s,
4088
4090
  i,
4089
- Kt
4091
+ tr
4090
4092
  ];
4091
4093
  }
4092
- class qt extends yr {
4094
+ class Yt extends xr {
4093
4095
  constructor(t) {
4094
- super(), gr(
4096
+ super(), yr(
4095
4097
  this,
4096
4098
  t,
4099
+ Hi,
4097
4100
  vi,
4098
- xi,
4099
- yt,
4101
+ xt,
4100
4102
  {
4101
4103
  clientstyling: 7,
4102
4104
  clientstylingurl: 8,
@@ -4106,7 +4108,7 @@ class qt extends yr {
4106
4108
  lang: 12,
4107
4109
  showclosebutton: 13
4108
4110
  },
4109
- pi
4111
+ di
4110
4112
  );
4111
4113
  }
4112
4114
  get clientstyling() {
@@ -4152,31 +4154,31 @@ class qt extends yr {
4152
4154
  this.$$set({ showclosebutton: t }), S();
4153
4155
  }
4154
4156
  }
4155
- _r(qt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4156
- const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4157
+ Er(Yt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4158
+ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4157
4159
  __proto__: null,
4158
- default: qt
4160
+ default: Yt
4159
4161
  }, Symbol.toStringTag, { value: "Module" }));
4160
4162
  export {
4161
4163
  M as $,
4162
- Ti as C,
4163
- yr as S,
4164
- Xt as a,
4165
- gr as b,
4166
- _r as c,
4167
- nr as d,
4168
- O as e,
4164
+ wi as C,
4165
+ xr as S,
4166
+ Wt as a,
4167
+ yr as b,
4168
+ Er as c,
4169
+ sr as d,
4170
+ z as e,
4169
4171
  S as f,
4170
- Bi as g,
4171
- Hi as h,
4172
- Vn as i,
4173
- z as j,
4174
- I as k,
4175
- ce as l,
4176
- Ht as m,
4177
- B as n,
4178
- W as o,
4179
- Qe as p,
4172
+ Je as g,
4173
+ Ti as h,
4174
+ Xn as i,
4175
+ Bi as j,
4176
+ W as k,
4177
+ I as l,
4178
+ ce as m,
4179
+ Tt as n,
4180
+ B as o,
4181
+ O as p,
4180
4182
  Le as q,
4181
- yt as s
4183
+ xt as s
4182
4184
  };