@everymatrix/cashier-carousel 1.86.2 → 1.86.4

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,28 +1,28 @@
1
1
  function L() {
2
2
  }
3
- function lr(e) {
3
+ function ar(e) {
4
4
  return e();
5
5
  }
6
- function Pt() {
6
+ function Ct() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ce(e) {
10
- e.forEach(lr);
9
+ function fe(e) {
10
+ e.forEach(ar);
11
11
  }
12
- function Tt(e) {
12
+ function Et(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function hr(e, t) {
15
+ function ur(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let Pe;
19
- function Mt(e, t) {
19
+ function At(e, t) {
20
20
  return e === t ? !0 : (Pe || (Pe = document.createElement("a")), Pe.href = t, e === Pe.href);
21
21
  }
22
- function Zr(e) {
22
+ function zr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function cr(e, ...t) {
25
+ function lr(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,20 +31,20 @@ function cr(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Qr(e, t, r) {
35
- e.$$.on_destroy.push(cr(t, r));
34
+ function Zr(e, t, r) {
35
+ e.$$.on_destroy.push(lr(t, r));
36
36
  }
37
37
  function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Jr(e, t, r) {
41
- const n = Yr(e);
40
+ function Qr(e, t, r) {
41
+ const n = Jr(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = T("style");
44
- i.id = t, i.textContent = r, qr(n, i);
43
+ const i = H("style");
44
+ i.id = t, i.textContent = r, Yr(n, i);
45
45
  }
46
46
  }
47
- function Yr(e) {
47
+ function Jr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,24 +54,24 @@ function Yr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function qr(e, t) {
57
+ function Yr(e, t) {
58
58
  return v(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function j(e, t, r) {
64
+ function G(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
67
  function D(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function Ot(e, t) {
70
+ function Pt(e, t) {
71
71
  for (let r = 0; r < e.length; r += 1)
72
72
  e[r] && e[r].d(t);
73
73
  }
74
- function T(e) {
74
+ function H(e) {
75
75
  return document.createElement(e);
76
76
  }
77
77
  function F(e) {
@@ -83,18 +83,18 @@ function R() {
83
83
  function Z(e, t, r, n) {
84
84
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
85
  }
86
- function P(e, t, r) {
86
+ function M(e, t, r) {
87
87
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
88
  }
89
- function Kr(e) {
89
+ function qr(e) {
90
90
  return Array.from(e.childNodes);
91
91
  }
92
- function V(e, t) {
92
+ function k(e, t) {
93
93
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
94
94
  t);
95
95
  }
96
96
  let Me;
97
- function en() {
97
+ function Kr() {
98
98
  if (Me === void 0) {
99
99
  Me = !1;
100
100
  try {
@@ -105,21 +105,21 @@ function en() {
105
105
  }
106
106
  return Me;
107
107
  }
108
- function tn(e, t) {
108
+ function en(e, t) {
109
109
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
110
- const n = T("iframe");
110
+ const n = H("iframe");
111
111
  n.setAttribute(
112
112
  "style",
113
113
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
114
114
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
115
- const i = en();
115
+ const i = Kr();
116
116
  let o;
117
117
  return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Z(
118
118
  window,
119
119
  "message",
120
120
  /** @param {MessageEvent} event */
121
- (s) => {
122
- s.source === n.contentWindow && t();
121
+ (a) => {
122
+ a.source === n.contentWindow && t();
123
123
  }
124
124
  )) : (n.src = "about:blank", n.onload = () => {
125
125
  o = Z(n.contentWindow, "resize", t), t();
@@ -127,7 +127,7 @@ function tn(e, t) {
127
127
  (i || o && n.contentWindow) && o(), D(n);
128
128
  };
129
129
  }
130
- function rn(e) {
130
+ function tn(e) {
131
131
  const t = {};
132
132
  return e.childNodes.forEach(
133
133
  /** @param {Element} node */
@@ -136,90 +136,90 @@ function rn(e) {
136
136
  }
137
137
  ), t;
138
138
  }
139
- let ve;
140
- function ye(e) {
141
- ve = e;
139
+ let _e;
140
+ function ve(e) {
141
+ _e = e;
142
142
  }
143
- function nn() {
144
- if (!ve)
143
+ function rn() {
144
+ if (!_e)
145
145
  throw new Error("Function called outside component initialization");
146
- return ve;
146
+ return _e;
147
147
  }
148
- function on(e) {
149
- nn().$$.on_mount.push(e);
148
+ function nn(e) {
149
+ rn().$$.on_mount.push(e);
150
150
  }
151
151
  const oe = [], Fe = [];
152
152
  let se = [];
153
- const Bt = [], sn = /* @__PURE__ */ Promise.resolve();
154
- let at = !1;
155
- function an() {
156
- at || (at = !0, sn.then(N));
153
+ const Mt = [], on = /* @__PURE__ */ Promise.resolve();
154
+ let ot = !1;
155
+ function sn() {
156
+ ot || (ot = !0, on.then(N));
157
157
  }
158
158
  function Ge(e) {
159
159
  se.push(e);
160
160
  }
161
- const Ke = /* @__PURE__ */ new Set();
161
+ const Ye = /* @__PURE__ */ new Set();
162
162
  let ne = 0;
163
163
  function N() {
164
164
  if (ne !== 0)
165
165
  return;
166
- const e = ve;
166
+ const e = _e;
167
167
  do {
168
168
  try {
169
169
  for (; ne < oe.length; ) {
170
170
  const t = oe[ne];
171
- ne++, ye(t), un(t.$$);
171
+ ne++, ve(t), an(t.$$);
172
172
  }
173
173
  } catch (t) {
174
174
  throw oe.length = 0, ne = 0, t;
175
175
  }
176
- for (ye(null), oe.length = 0, ne = 0; Fe.length; )
176
+ for (ve(null), oe.length = 0, ne = 0; Fe.length; )
177
177
  Fe.pop()();
178
178
  for (let t = 0; t < se.length; t += 1) {
179
179
  const r = se[t];
180
- Ke.has(r) || (Ke.add(r), r());
180
+ Ye.has(r) || (Ye.add(r), r());
181
181
  }
182
182
  se.length = 0;
183
183
  } while (oe.length);
184
- for (; Bt.length; )
185
- Bt.pop()();
186
- at = !1, Ke.clear(), ye(e);
184
+ for (; Mt.length; )
185
+ Mt.pop()();
186
+ ot = !1, Ye.clear(), ve(e);
187
187
  }
188
- function un(e) {
188
+ function an(e) {
189
189
  if (e.fragment !== null) {
190
- e.update(), ce(e.before_update);
190
+ e.update(), fe(e.before_update);
191
191
  const t = e.dirty;
192
192
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
193
193
  }
194
194
  }
195
- function ln(e) {
195
+ function un(e) {
196
196
  const t = [], r = [];
197
197
  se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
198
198
  }
199
- const hn = /* @__PURE__ */ new Set();
200
- function cn(e, t) {
201
- e && e.i && (hn.delete(e), e.i(t));
199
+ const ln = /* @__PURE__ */ new Set();
200
+ function hn(e, t) {
201
+ e && e.i && (ln.delete(e), e.i(t));
202
202
  }
203
- function Oe(e) {
203
+ function Be(e) {
204
204
  return e?.length !== void 0 ? e : Array.from(e);
205
205
  }
206
- function fn(e, t, r) {
206
+ function cn(e, t, r) {
207
207
  const { fragment: n, after_update: i } = e.$$;
208
208
  n && n.m(t, r), Ge(() => {
209
- const o = e.$$.on_mount.map(lr).filter(Tt);
210
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
209
+ const o = e.$$.on_mount.map(ar).filter(Et);
210
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : fe(o), e.$$.on_mount = [];
211
211
  }), i.forEach(Ge);
212
212
  }
213
- function pn(e, t) {
213
+ function fn(e, t) {
214
214
  const r = e.$$;
215
- r.fragment !== null && (ln(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
215
+ r.fragment !== null && (un(r.after_update), fe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
216
216
  }
217
217
  function mn(e, t) {
218
- e.$$.dirty[0] === -1 && (oe.push(e), an(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
218
+ e.$$.dirty[0] === -1 && (oe.push(e), sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
219
219
  }
220
- function dn(e, t, r, n, i, o, s = null, a = [-1]) {
221
- const l = ve;
222
- ye(e);
220
+ function dn(e, t, r, n, i, o, a = null, s = [-1]) {
221
+ const l = _e;
222
+ ve(e);
223
223
  const u = e.$$ = {
224
224
  fragment: null,
225
225
  ctx: [],
@@ -227,7 +227,7 @@ function dn(e, t, r, n, i, o, s = null, a = [-1]) {
227
227
  props: o,
228
228
  update: L,
229
229
  not_equal: i,
230
- bound: Pt(),
230
+ bound: Ct(),
231
231
  // lifecycle
232
232
  on_mount: [],
233
233
  on_destroy: [],
@@ -236,28 +236,28 @@ function dn(e, t, r, n, i, o, s = null, a = [-1]) {
236
236
  after_update: [],
237
237
  context: new Map(t.context || (l ? l.$$.context : [])),
238
238
  // everything else
239
- callbacks: Pt(),
240
- dirty: a,
239
+ callbacks: Ct(),
240
+ dirty: s,
241
241
  skip_bound: !1,
242
242
  root: t.target || l.$$.root
243
243
  };
244
- s && s(u.root);
244
+ a && a(u.root);
245
245
  let h = !1;
246
246
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
247
- const d = g.length ? g[0] : c;
248
- return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && mn(e, f)), c;
249
- }) : [], u.update(), h = !0, ce(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
247
+ const p = g.length ? g[0] : c;
248
+ return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && mn(e, f)), c;
249
+ }) : [], u.update(), h = !0, fe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
250
250
  if (t.hydrate) {
251
- const f = Kr(t.target);
251
+ const f = qr(t.target);
252
252
  u.fragment && u.fragment.l(f), f.forEach(D);
253
253
  } else
254
254
  u.fragment && u.fragment.c();
255
- t.intro && cn(e.$$.fragment), fn(e, t.target, t.anchor), N();
255
+ t.intro && hn(e.$$.fragment), cn(e, t.target, t.anchor), N();
256
256
  }
257
- ye(l);
257
+ ve(l);
258
258
  }
259
- let fr;
260
- typeof HTMLElement == "function" && (fr = class extends HTMLElement {
259
+ let hr;
260
+ typeof HTMLElement == "function" && (hr = class extends HTMLElement {
261
261
  /** The Svelte component constructor */
262
262
  $$ctor;
263
263
  /** Slots */
@@ -299,14 +299,14 @@ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
299
299
  let o;
300
300
  return {
301
301
  c: function() {
302
- o = T("slot"), i !== "default" && P(o, "name", i);
302
+ o = H("slot"), i !== "default" && M(o, "name", i);
303
303
  },
304
304
  /**
305
305
  * @param {HTMLElement} target
306
306
  * @param {HTMLElement} [anchor]
307
307
  */
308
308
  m: function(l, u) {
309
- j(l, o, u);
309
+ G(l, o, u);
310
310
  },
311
311
  d: function(l) {
312
312
  l && D(o);
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
316
316
  };
317
317
  if (await Promise.resolve(), !this.$$cn || this.$$c)
318
318
  return;
319
- const t = {}, r = rn(this);
319
+ const t = {}, r = tn(this);
320
320
  for (const i of this.$$s)
321
321
  i in r && (t[i] = [e(i)]);
322
322
  for (const i of this.attributes) {
@@ -352,8 +352,8 @@ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
352
352
  this.$$c.$$.after_update.push(n), n();
353
353
  for (const i in this.$$l)
354
354
  for (const o of this.$$l[i]) {
355
- const s = this.$$c.$on(i, o);
356
- this.$$l_u.set(o, s);
355
+ const a = this.$$c.$on(i, o);
356
+ this.$$l_u.set(o, a);
357
357
  }
358
358
  this.$$l = {};
359
359
  }
@@ -403,36 +403,36 @@ function Re(e, t, r, n) {
403
403
  return t;
404
404
  }
405
405
  }
406
- function bn(e, t, r, n, i, o) {
407
- let s = class extends fr {
406
+ function pn(e, t, r, n, i, o) {
407
+ let a = class extends hr {
408
408
  constructor() {
409
409
  super(e, r, i), this.$$p_d = t;
410
410
  }
411
411
  static get observedAttributes() {
412
412
  return Object.keys(t).map(
413
- (a) => (t[a].attribute || a).toLowerCase()
413
+ (s) => (t[s].attribute || s).toLowerCase()
414
414
  );
415
415
  }
416
416
  };
417
- return Object.keys(t).forEach((a) => {
418
- Object.defineProperty(s.prototype, a, {
417
+ return Object.keys(t).forEach((s) => {
418
+ Object.defineProperty(a.prototype, s, {
419
419
  get() {
420
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
420
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
421
421
  },
422
422
  set(l) {
423
- l = Re(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
423
+ l = Re(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
424
424
  }
425
425
  });
426
- }), n.forEach((a) => {
427
- Object.defineProperty(s.prototype, a, {
426
+ }), n.forEach((s) => {
427
+ Object.defineProperty(a.prototype, s, {
428
428
  get() {
429
- return this.$$c?.[a];
429
+ return this.$$c?.[s];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
433
- s, s;
433
+ a, a;
434
434
  }
435
- class gn {
435
+ class bn {
436
436
  /**
437
437
  * ### PRIVATE API
438
438
  *
@@ -451,7 +451,7 @@ class gn {
451
451
  $$set = void 0;
452
452
  /** @returns {void} */
453
453
  $destroy() {
454
- pn(this, 1), this.$destroy = L;
454
+ fn(this, 1), this.$destroy = L;
455
455
  }
456
456
  /**
457
457
  * @template {Extract<keyof Events, string>} K
@@ -460,7 +460,7 @@ class gn {
460
460
  * @returns {() => void}
461
461
  */
462
462
  $on(t, r) {
463
- if (!Tt(r))
463
+ if (!Et(r))
464
464
  return L;
465
465
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
466
466
  return n.push(r), () => {
@@ -473,22 +473,22 @@ class gn {
473
473
  * @returns {void}
474
474
  */
475
475
  $set(t) {
476
- this.$$set && !Zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
476
+ this.$$set && !zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
477
477
  }
478
478
  }
479
- const yn = "4";
480
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
479
+ const gn = "4";
480
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gn);
481
481
  const ie = [];
482
- function vn(e, t) {
482
+ function yn(e, t) {
483
483
  return {
484
- subscribe: We(e, t).subscribe
484
+ subscribe: Xe(e, t).subscribe
485
485
  };
486
486
  }
487
- function We(e, t = L) {
487
+ function Xe(e, t = L) {
488
488
  let r;
489
489
  const n = /* @__PURE__ */ new Set();
490
- function i(a) {
491
- if (hr(e, a) && (e = a, r)) {
490
+ function i(s) {
491
+ if (ur(e, s) && (e = s, r)) {
492
492
  const l = !ie.length;
493
493
  for (const u of n)
494
494
  u[1](), ie.push(u, e);
@@ -499,23 +499,23 @@ function We(e, t = L) {
499
499
  }
500
500
  }
501
501
  }
502
- function o(a) {
503
- i(a(e));
502
+ function o(s) {
503
+ i(s(e));
504
504
  }
505
- function s(a, l = L) {
506
- const u = [a, l];
507
- return n.add(u), n.size === 1 && (r = t(i, o) || L), a(e), () => {
505
+ function a(s, l = L) {
506
+ const u = [s, l];
507
+ return n.add(u), n.size === 1 && (r = t(i, o) || L), s(e), () => {
508
508
  n.delete(u), n.size === 0 && r && (r(), r = null);
509
509
  };
510
510
  }
511
- return { set: i, update: o, subscribe: s };
511
+ return { set: i, update: o, subscribe: a };
512
512
  }
513
- function fe(e, t, r) {
513
+ function me(e, t, r) {
514
514
  const n = !Array.isArray(e), i = n ? [e] : e;
515
515
  if (!i.every(Boolean))
516
516
  throw new Error("derived() expects stores as input, got a falsy value");
517
517
  const o = t.length < 2;
518
- return vn(r, (s, a) => {
518
+ return yn(r, (a, s) => {
519
519
  let l = !1;
520
520
  const u = [];
521
521
  let h = 0, f = L;
@@ -523,126 +523,140 @@ function fe(e, t, r) {
523
523
  if (h)
524
524
  return;
525
525
  f();
526
- const d = t(n ? u[0] : u, s, a);
527
- o ? s(d) : f = Tt(d) ? d : L;
526
+ const p = t(n ? u[0] : u, a, s);
527
+ o ? a(p) : f = Et(p) ? p : L;
528
528
  }, g = i.map(
529
- (d, m) => cr(
530
- d,
529
+ (p, d) => lr(
530
+ p,
531
531
  (_) => {
532
- u[m] = _, h &= ~(1 << m), l && c();
532
+ u[d] = _, h &= ~(1 << d), l && c();
533
533
  },
534
534
  () => {
535
- h |= 1 << m;
535
+ h |= 1 << d;
536
536
  }
537
537
  )
538
538
  );
539
539
  return l = !0, c(), function() {
540
- ce(g), f(), l = !1;
540
+ fe(g), f(), l = !1;
541
541
  };
542
542
  });
543
543
  }
544
- function _n(e) {
544
+ function vn(e) {
545
545
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
546
546
  }
547
- var En = function(t) {
548
- return xn(t) && !wn(t);
547
+ var _n = function(t) {
548
+ return En(t) && !xn(t);
549
549
  };
550
- function xn(e) {
550
+ function En(e) {
551
551
  return !!e && typeof e == "object";
552
552
  }
553
- function wn(e) {
553
+ function xn(e) {
554
554
  var t = Object.prototype.toString.call(e);
555
- return t === "[object RegExp]" || t === "[object Date]" || Hn(e);
555
+ return t === "[object RegExp]" || t === "[object Date]" || Tn(e);
556
556
  }
557
- var Sn = typeof Symbol == "function" && Symbol.for, Tn = Sn ? Symbol.for("react.element") : 60103;
558
- function Hn(e) {
559
- return e.$$typeof === Tn;
557
+ var wn = typeof Symbol == "function" && Symbol.for, Sn = wn ? Symbol.for("react.element") : 60103;
558
+ function Tn(e) {
559
+ return e.$$typeof === Sn;
560
560
  }
561
- function Cn(e) {
561
+ function Hn(e) {
562
562
  return Array.isArray(e) ? [] : {};
563
563
  }
564
- function _e(e, t) {
565
- return t.clone !== !1 && t.isMergeableObject(e) ? ae(Cn(e), e, t) : e;
564
+ function Ee(e, t) {
565
+ return t.clone !== !1 && t.isMergeableObject(e) ? ue(Hn(e), e, t) : e;
566
566
  }
567
- function An(e, t, r) {
567
+ function Cn(e, t, r) {
568
568
  return e.concat(t).map(function(n) {
569
- return _e(n, r);
569
+ return Ee(n, r);
570
570
  });
571
571
  }
572
- function Pn(e, t) {
572
+ function An(e, t) {
573
573
  if (!t.customMerge)
574
- return ae;
574
+ return ue;
575
575
  var r = t.customMerge(e);
576
- return typeof r == "function" ? r : ae;
576
+ return typeof r == "function" ? r : ue;
577
577
  }
578
- function Mn(e) {
578
+ function Pn(e) {
579
579
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
580
580
  return Object.propertyIsEnumerable.call(e, t);
581
581
  }) : [];
582
582
  }
583
- function It(e) {
584
- return Object.keys(e).concat(Mn(e));
583
+ function Bt(e) {
584
+ return Object.keys(e).concat(Pn(e));
585
585
  }
586
- function pr(e, t) {
586
+ function cr(e, t) {
587
587
  try {
588
588
  return t in e;
589
589
  } catch {
590
590
  return !1;
591
591
  }
592
592
  }
593
- function On(e, t) {
594
- return pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
593
+ function Mn(e, t) {
594
+ return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
595
595
  }
596
596
  function Bn(e, t, r) {
597
597
  var n = {};
598
- return r.isMergeableObject(e) && It(e).forEach(function(i) {
599
- n[i] = _e(e[i], r);
600
- }), It(t).forEach(function(i) {
601
- On(e, i) || (pr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pn(i, r)(e[i], t[i], r) : n[i] = _e(t[i], r));
598
+ return r.isMergeableObject(e) && Bt(e).forEach(function(i) {
599
+ n[i] = Ee(e[i], r);
600
+ }), Bt(t).forEach(function(i) {
601
+ Mn(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = Ee(t[i], r));
602
602
  }), n;
603
603
  }
604
- function ae(e, t, r) {
605
- r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = _e;
604
+ function ue(e, t, r) {
605
+ r = r || {}, r.arrayMerge = r.arrayMerge || Cn, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified = Ee;
606
606
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
607
- return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : _e(t, r);
607
+ return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : Ee(t, r);
608
608
  }
609
- ae.all = function(t, r) {
609
+ ue.all = function(t, r) {
610
610
  if (!Array.isArray(t))
611
611
  throw new Error("first argument should be an array");
612
612
  return t.reduce(function(n, i) {
613
- return ae(n, i, r);
613
+ return ue(n, i, r);
614
614
  }, {});
615
615
  };
616
- var In = ae, Ln = In;
617
- const Nn = /* @__PURE__ */ _n(Ln);
618
- var ut = function(e, t) {
619
- return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
616
+ var On = ue, In = On;
617
+ const Ln = /* @__PURE__ */ vn(In);
618
+ /*! *****************************************************************************
619
+ Copyright (c) Microsoft Corporation.
620
+
621
+ Permission to use, copy, modify, and/or distribute this software for any
622
+ purpose with or without fee is hereby granted.
623
+
624
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
625
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
626
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
627
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
628
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
629
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
630
+ PERFORMANCE OF THIS SOFTWARE.
631
+ ***************************************************************************** */
632
+ var st = function(e, t) {
633
+ return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
620
634
  r.__proto__ = n;
621
635
  } || function(r, n) {
622
636
  for (var i in n)
623
637
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
624
- }, ut(e, t);
638
+ }, st(e, t);
625
639
  };
626
- function ze(e, t) {
640
+ function X(e, t) {
627
641
  if (typeof t != "function" && t !== null)
628
642
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
629
- ut(e, t);
643
+ st(e, t);
630
644
  function r() {
631
645
  this.constructor = e;
632
646
  }
633
647
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
634
648
  }
635
- var G = function() {
636
- return G = Object.assign || function(t) {
649
+ var T = function() {
650
+ return T = Object.assign || function(t) {
637
651
  for (var r, n = 1, i = arguments.length; n < i; n++) {
638
652
  r = arguments[n];
639
653
  for (var o in r)
640
654
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
641
655
  }
642
656
  return t;
643
- }, G.apply(this, arguments);
657
+ }, T.apply(this, arguments);
644
658
  };
645
- function Rn(e, t) {
659
+ function Nn(e, t) {
646
660
  var r = {};
647
661
  for (var n in e)
648
662
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -651,119 +665,143 @@ function Rn(e, t) {
651
665
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
652
666
  return r;
653
667
  }
654
- function et(e, t, r) {
668
+ function at(e) {
669
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
670
+ if (r)
671
+ return r.call(e);
672
+ if (e && typeof e.length == "number")
673
+ return {
674
+ next: function() {
675
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
676
+ }
677
+ };
678
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
679
+ }
680
+ function ut(e, t) {
681
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
682
+ if (!r)
683
+ return e;
684
+ var n = r.call(e), i, o = [], a;
685
+ try {
686
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
687
+ o.push(i.value);
688
+ } catch (s) {
689
+ a = { error: s };
690
+ } finally {
691
+ try {
692
+ i && !i.done && (r = n.return) && r.call(n);
693
+ } finally {
694
+ if (a)
695
+ throw a.error;
696
+ }
697
+ }
698
+ return o;
699
+ }
700
+ function ae(e, t, r) {
655
701
  if (r || arguments.length === 2)
656
702
  for (var n = 0, i = t.length, o; n < i; n++)
657
703
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
658
- return e.concat(o || Array.prototype.slice.call(t));
704
+ return e.concat(o || t);
659
705
  }
660
- function tt(e, t) {
661
- var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Un;
706
+ function qe(e, t) {
707
+ var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
662
708
  return i(e, {
663
709
  cache: r,
664
710
  serializer: n
665
711
  });
666
712
  }
667
- function Dn(e) {
713
+ function Rn(e) {
668
714
  return e == null || typeof e == "number" || typeof e == "boolean";
669
715
  }
670
- function $n(e, t, r, n) {
671
- var i = Dn(n) ? n : r(n), o = t.get(i);
716
+ function fr(e, t, r, n) {
717
+ var i = Rn(n) ? n : r(n), o = t.get(i);
672
718
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
673
719
  }
674
720
  function mr(e, t, r) {
675
721
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
676
722
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
677
723
  }
678
- function dr(e, t, r, n, i) {
724
+ function xt(e, t, r, n, i) {
679
725
  return r.bind(t, e, n, i);
680
726
  }
681
- function Un(e, t) {
682
- var r = e.length === 1 ? $n : mr;
683
- return dr(e, this, r, t.cache.create(), t.serializer);
727
+ function Dn(e, t) {
728
+ var r = e.length === 1 ? fr : mr;
729
+ return xt(e, this, r, t.cache.create(), t.serializer);
730
+ }
731
+ function $n(e, t) {
732
+ return xt(e, this, mr, t.cache.create(), t.serializer);
684
733
  }
685
- function Fn(e, t) {
686
- return dr(e, this, mr, t.cache.create(), t.serializer);
734
+ function Un(e, t) {
735
+ return xt(e, this, fr, t.cache.create(), t.serializer);
687
736
  }
688
- var Gn = function() {
737
+ var Fn = function() {
689
738
  return JSON.stringify(arguments);
690
- }, jn = (
691
- /** @class */
692
- function() {
693
- function e() {
694
- this.cache = /* @__PURE__ */ Object.create(null);
695
- }
696
- return e.prototype.get = function(t) {
697
- return this.cache[t];
698
- }, e.prototype.set = function(t, r) {
699
- this.cache[t] = r;
700
- }, e;
701
- }()
702
- ), kn = {
739
+ };
740
+ function wt() {
741
+ this.cache = /* @__PURE__ */ Object.create(null);
742
+ }
743
+ wt.prototype.get = function(e) {
744
+ return this.cache[e];
745
+ };
746
+ wt.prototype.set = function(e, t) {
747
+ this.cache[e] = t;
748
+ };
749
+ var Gn = {
703
750
  create: function() {
704
- return new jn();
751
+ return new wt();
705
752
  }
706
- }, rt = {
707
- variadic: Fn
708
- }, je = function() {
709
- return je = Object.assign || function(t) {
710
- for (var r, n = 1, i = arguments.length; n < i; n++) {
711
- r = arguments[n];
712
- for (var o in r)
713
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
714
- }
715
- return t;
716
- }, je.apply(this, arguments);
717
- };
718
- var x;
753
+ }, Ke = {
754
+ variadic: $n,
755
+ monadic: Un
756
+ }, x;
719
757
  (function(e) {
720
758
  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";
721
759
  })(x || (x = {}));
722
- var C;
760
+ var A;
723
761
  (function(e) {
724
762
  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";
725
- })(C || (C = {}));
726
- var ue;
763
+ })(A || (A = {}));
764
+ var le;
727
765
  (function(e) {
728
766
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
729
- })(ue || (ue = {}));
730
- function Lt(e) {
731
- return e.type === C.literal;
767
+ })(le || (le = {}));
768
+ function Ot(e) {
769
+ return e.type === A.literal;
770
+ }
771
+ function jn(e) {
772
+ return e.type === A.argument;
773
+ }
774
+ function dr(e) {
775
+ return e.type === A.number;
732
776
  }
733
- function Vn(e) {
734
- return e.type === C.argument;
777
+ function pr(e) {
778
+ return e.type === A.date;
735
779
  }
736
780
  function br(e) {
737
- return e.type === C.number;
781
+ return e.type === A.time;
738
782
  }
739
783
  function gr(e) {
740
- return e.type === C.date;
784
+ return e.type === A.select;
741
785
  }
742
786
  function yr(e) {
743
- return e.type === C.time;
787
+ return e.type === A.plural;
788
+ }
789
+ function kn(e) {
790
+ return e.type === A.pound;
744
791
  }
745
792
  function vr(e) {
746
- return e.type === C.select;
793
+ return e.type === A.tag;
747
794
  }
748
795
  function _r(e) {
749
- return e.type === C.plural;
750
- }
751
- function Xn(e) {
752
- return e.type === C.pound;
753
- }
754
- function Er(e) {
755
- return e.type === C.tag;
756
- }
757
- function xr(e) {
758
- return !!(e && typeof e == "object" && e.type === ue.number);
796
+ return !!(e && typeof e == "object" && e.type === le.number);
759
797
  }
760
798
  function lt(e) {
761
- return !!(e && typeof e == "object" && e.type === ue.dateTime);
799
+ return !!(e && typeof e == "object" && e.type === le.dateTime);
762
800
  }
763
- var wr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[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;
764
- function zn(e) {
801
+ var Er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
802
+ function Xn(e) {
765
803
  var t = {};
766
- return e.replace(Wn, function(r) {
804
+ return e.replace(Vn, function(r) {
767
805
  var n = r.length;
768
806
  switch (r[0]) {
769
807
  case "G":
@@ -852,46 +890,36 @@ function zn(e) {
852
890
  return "";
853
891
  }), t;
854
892
  }
855
- var M = function() {
856
- return M = Object.assign || function(t) {
857
- for (var r, n = 1, i = arguments.length; n < i; n++) {
858
- r = arguments[n];
859
- for (var o in r)
860
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
861
- }
862
- return t;
863
- }, M.apply(this, arguments);
864
- };
865
- var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
866
- function Qn(e) {
893
+ var Wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
894
+ function zn(e) {
867
895
  if (e.length === 0)
868
896
  throw new Error("Number skeleton cannot be empty");
869
- for (var t = e.split(Zn).filter(function(c) {
897
+ for (var t = e.split(Wn).filter(function(c) {
870
898
  return c.length > 0;
871
899
  }), r = [], n = 0, i = t; n < i.length; n++) {
872
- var o = i[n], s = o.split("/");
873
- if (s.length === 0)
900
+ var o = i[n], a = o.split("/");
901
+ if (a.length === 0)
874
902
  throw new Error("Invalid number skeleton");
875
- for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
903
+ for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
876
904
  var f = h[u];
877
905
  if (f.length === 0)
878
906
  throw new Error("Invalid number skeleton");
879
907
  }
880
- r.push({ stem: a, options: l });
908
+ r.push({ stem: s, options: l });
881
909
  }
882
910
  return r;
883
911
  }
884
- function Jn(e) {
912
+ function Zn(e) {
885
913
  return e.replace(/^(.*?)-/, "");
886
914
  }
887
- var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Sr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Tr = /^(0+)$/;
888
- function Rt(e) {
915
+ var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xr = /^(@+)?(\+|#+)?[rs]?$/g, Qn = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
916
+ function Lt(e) {
889
917
  var t = {};
890
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Sr, function(r, n, i) {
918
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xr, function(r, n, i) {
891
919
  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)), "";
892
920
  }), t;
893
921
  }
894
- function Hr(e) {
922
+ function Sr(e) {
895
923
  switch (e) {
896
924
  case "sign-auto":
897
925
  return {
@@ -931,7 +959,7 @@ function Hr(e) {
931
959
  };
932
960
  }
933
961
  }
934
- function qn(e) {
962
+ function Jn(e) {
935
963
  var t;
936
964
  if (e[0] === "E" && e[1] === "E" ? (t = {
937
965
  notation: "engineering"
@@ -939,17 +967,17 @@ function qn(e) {
939
967
  notation: "scientific"
940
968
  }, e = e.slice(1)), t) {
941
969
  var r = e.slice(0, 2);
942
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tr.test(e))
970
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wr.test(e))
943
971
  throw new Error("Malformed concise eng/scientific notation");
944
972
  t.minimumIntegerDigits = e.length;
945
973
  }
946
974
  return t;
947
975
  }
948
- function Dt(e) {
949
- var t = {}, r = Hr(e);
976
+ function Nt(e) {
977
+ var t = {}, r = Sr(e);
950
978
  return r || t;
951
979
  }
952
- function Kn(e) {
980
+ function Yn(e) {
953
981
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
954
982
  var i = n[r];
955
983
  switch (i.stem) {
@@ -973,7 +1001,7 @@ function Kn(e) {
973
1001
  continue;
974
1002
  case "measure-unit":
975
1003
  case "unit":
976
- t.style = "unit", t.unit = Jn(i.options[0]);
1004
+ t.style = "unit", t.unit = Zn(i.options[0]);
977
1005
  continue;
978
1006
  case "compact-short":
979
1007
  case "K":
@@ -984,13 +1012,13 @@ function Kn(e) {
984
1012
  t.notation = "compact", t.compactDisplay = "long";
985
1013
  continue;
986
1014
  case "scientific":
987
- t = M(M(M({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
988
- return M(M({}, l), Dt(u));
1015
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1016
+ return T(T({}, l), Nt(u));
989
1017
  }, {}));
990
1018
  continue;
991
1019
  case "engineering":
992
- t = M(M(M({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
993
- return M(M({}, l), Dt(u));
1020
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1021
+ return T(T({}, l), Nt(u));
994
1022
  }, {}));
995
1023
  continue;
996
1024
  case "notation-simple":
@@ -1035,7 +1063,7 @@ function Kn(e) {
1035
1063
  case "integer-width":
1036
1064
  if (i.options.length > 1)
1037
1065
  throw new RangeError("integer-width stems only accept a single optional option");
1038
- i.options[0].replace(Yn, function(l, u, h, f, c, g) {
1066
+ i.options[0].replace(Qn, function(l, u, h, f, c, g) {
1039
1067
  if (u)
1040
1068
  t.minimumIntegerDigits = h.length;
1041
1069
  else {
@@ -1048,32 +1076,32 @@ function Kn(e) {
1048
1076
  });
1049
1077
  continue;
1050
1078
  }
1051
- if (Tr.test(i.stem)) {
1079
+ if (wr.test(i.stem)) {
1052
1080
  t.minimumIntegerDigits = i.stem.length;
1053
1081
  continue;
1054
1082
  }
1055
- if (Nt.test(i.stem)) {
1083
+ if (It.test(i.stem)) {
1056
1084
  if (i.options.length > 1)
1057
1085
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1058
- i.stem.replace(Nt, function(l, u, h, f, c, g) {
1086
+ i.stem.replace(It, function(l, u, h, f, c, g) {
1059
1087
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1060
1088
  });
1061
1089
  var o = i.options[0];
1062
- o === "w" ? t = M(M({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = M(M({}, t), Rt(o)));
1090
+ o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), Lt(o)));
1063
1091
  continue;
1064
1092
  }
1065
- if (Sr.test(i.stem)) {
1066
- t = M(M({}, t), Rt(i.stem));
1093
+ if (xr.test(i.stem)) {
1094
+ t = T(T({}, t), Lt(i.stem));
1067
1095
  continue;
1068
1096
  }
1069
- var s = Hr(i.stem);
1070
- s && (t = M(M({}, t), s));
1071
- var a = qn(i.stem);
1072
- a && (t = M(M({}, t), a));
1097
+ var a = Sr(i.stem);
1098
+ a && (t = T(T({}, t), a));
1099
+ var s = Jn(i.stem);
1100
+ s && (t = T(T({}, t), s));
1073
1101
  }
1074
1102
  return t;
1075
1103
  }
1076
- var Be = {
1104
+ var Oe = {
1077
1105
  "001": [
1078
1106
  "H",
1079
1107
  "h"
@@ -2488,23 +2516,23 @@ var Be = {
2488
2516
  "h"
2489
2517
  ]
2490
2518
  };
2491
- function ei(e, t) {
2519
+ function qn(e, t) {
2492
2520
  for (var r = "", n = 0; n < e.length; n++) {
2493
2521
  var i = e.charAt(n);
2494
2522
  if (i === "j") {
2495
2523
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2496
2524
  o++, n++;
2497
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ti(t);
2498
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2525
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Kn(t);
2526
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2499
2527
  r += l;
2500
- for (; s-- > 0; )
2528
+ for (; a-- > 0; )
2501
2529
  r = u + r;
2502
2530
  } else
2503
2531
  i === "J" ? r += "H" : r += i;
2504
2532
  }
2505
2533
  return r;
2506
2534
  }
2507
- function ti(e) {
2535
+ function Kn(e) {
2508
2536
  var t = e.hourCycle;
2509
2537
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2510
2538
  e.hourCycles && // @ts-ignore
@@ -2523,23 +2551,23 @@ function ti(e) {
2523
2551
  }
2524
2552
  var r = e.language, n;
2525
2553
  r !== "root" && (n = e.maximize().region);
2526
- var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
2554
+ var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
2527
2555
  return i[0];
2528
2556
  }
2529
- var nt, ri = new RegExp("^".concat(wr.source, "*")), ni = new RegExp("".concat(wr.source, "*$"));
2557
+ var et, ei = new RegExp("^".concat(Er.source, "*")), ti = new RegExp("".concat(Er.source, "*$"));
2530
2558
  function w(e, t) {
2531
2559
  return { start: e, end: t };
2532
2560
  }
2533
- var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, li = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, ci = hi ? Number.isSafeInteger : function(e) {
2561
+ var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, ui = !!Number.isSafeInteger, li = ui ? Number.isSafeInteger : function(e) {
2534
2562
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2535
2563
  }, ht = !0;
2536
2564
  try {
2537
- var fi = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2538
- ht = ((nt = fi.exec("a")) === null || nt === void 0 ? void 0 : nt[0]) === "a";
2565
+ var hi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2566
+ ht = ((et = hi.exec("a")) === null || et === void 0 ? void 0 : et[0]) === "a";
2539
2567
  } catch {
2540
2568
  ht = !1;
2541
2569
  }
2542
- var $t = ii ? (
2570
+ var Rt = ri ? (
2543
2571
  // Native
2544
2572
  function(t, r, n) {
2545
2573
  return t.startsWith(r, n);
@@ -2549,31 +2577,31 @@ var $t = ii ? (
2549
2577
  function(t, r, n) {
2550
2578
  return t.slice(n, n + r.length) === r;
2551
2579
  }
2552
- ), ct = oi ? String.fromCodePoint : (
2580
+ ), ct = ni ? String.fromCodePoint : (
2553
2581
  // IE11
2554
2582
  function() {
2555
2583
  for (var t = [], r = 0; r < arguments.length; r++)
2556
2584
  t[r] = arguments[r];
2557
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2558
- if (s = t[o++], s > 1114111)
2559
- throw RangeError(s + " is not a valid code point");
2560
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2585
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
2586
+ if (a = t[o++], a > 1114111)
2587
+ throw RangeError(a + " is not a valid code point");
2588
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2561
2589
  }
2562
2590
  return n;
2563
2591
  }
2564
- ), Ut = (
2592
+ ), Dt = (
2565
2593
  // native
2566
- si ? Object.fromEntries : (
2594
+ ii ? Object.fromEntries : (
2567
2595
  // Ponyfill
2568
2596
  function(t) {
2569
2597
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2570
- var o = i[n], s = o[0], a = o[1];
2571
- r[s] = a;
2598
+ var o = i[n], a = o[0], s = o[1];
2599
+ r[a] = s;
2572
2600
  }
2573
2601
  return r;
2574
2602
  }
2575
2603
  )
2576
- ), Cr = ai ? (
2604
+ ), Tr = oi ? (
2577
2605
  // Native
2578
2606
  function(t, r) {
2579
2607
  return t.codePointAt(r);
@@ -2587,7 +2615,7 @@ var $t = ii ? (
2587
2615
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2588
2616
  }
2589
2617
  }
2590
- ), pi = ui ? (
2618
+ ), ci = si ? (
2591
2619
  // Native
2592
2620
  function(t) {
2593
2621
  return t.trimStart();
@@ -2595,9 +2623,9 @@ var $t = ii ? (
2595
2623
  ) : (
2596
2624
  // Ponyfill
2597
2625
  function(t) {
2598
- return t.replace(ri, "");
2626
+ return t.replace(ei, "");
2599
2627
  }
2600
- ), mi = li ? (
2628
+ ), fi = ai ? (
2601
2629
  // Native
2602
2630
  function(t) {
2603
2631
  return t.trimEnd();
@@ -2605,32 +2633,32 @@ var $t = ii ? (
2605
2633
  ) : (
2606
2634
  // Ponyfill
2607
2635
  function(t) {
2608
- return t.replace(ni, "");
2636
+ return t.replace(ti, "");
2609
2637
  }
2610
2638
  );
2611
- function Ar(e, t) {
2639
+ function Hr(e, t) {
2612
2640
  return new RegExp(e, t);
2613
2641
  }
2614
2642
  var ft;
2615
2643
  if (ht) {
2616
- var Ft = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2644
+ var $t = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2617
2645
  ft = function(t, r) {
2618
2646
  var n;
2619
- Ft.lastIndex = r;
2620
- var i = Ft.exec(t);
2647
+ $t.lastIndex = r;
2648
+ var i = $t.exec(t);
2621
2649
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2622
2650
  };
2623
2651
  } else
2624
2652
  ft = function(t, r) {
2625
2653
  for (var n = []; ; ) {
2626
- var i = Cr(t, r);
2627
- if (i === void 0 || Pr(i) || yi(i))
2654
+ var i = Tr(t, r);
2655
+ if (i === void 0 || Cr(i) || bi(i))
2628
2656
  break;
2629
2657
  n.push(i), r += i >= 65536 ? 2 : 1;
2630
2658
  }
2631
2659
  return ct.apply(void 0, n);
2632
2660
  };
2633
- var di = (
2661
+ var mi = (
2634
2662
  /** @class */
2635
2663
  function() {
2636
2664
  function e(t, r) {
@@ -2644,33 +2672,33 @@ var di = (
2644
2672
  for (var i = []; !this.isEOF(); ) {
2645
2673
  var o = this.char();
2646
2674
  if (o === 123) {
2647
- var s = this.parseArgument(t, n);
2648
- if (s.err)
2649
- return s;
2650
- i.push(s.val);
2675
+ var a = this.parseArgument(t, n);
2676
+ if (a.err)
2677
+ return a;
2678
+ i.push(a.val);
2651
2679
  } else {
2652
2680
  if (o === 125 && t > 0)
2653
2681
  break;
2654
2682
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2655
- var a = this.clonePosition();
2683
+ var s = this.clonePosition();
2656
2684
  this.bump(), i.push({
2657
- type: C.pound,
2658
- location: w(a, this.clonePosition())
2685
+ type: A.pound,
2686
+ location: w(s, this.clonePosition())
2659
2687
  });
2660
2688
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2661
2689
  if (n)
2662
2690
  break;
2663
2691
  return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2664
- } else if (o === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
2665
- var s = this.parseTag(t, r);
2666
- if (s.err)
2667
- return s;
2668
- i.push(s.val);
2692
+ } else if (o === 60 && !this.ignoreTag && mt(this.peek() || 0)) {
2693
+ var a = this.parseTag(t, r);
2694
+ if (a.err)
2695
+ return a;
2696
+ i.push(a.val);
2669
2697
  } else {
2670
- var s = this.parseLiteral(t, r);
2671
- if (s.err)
2672
- return s;
2673
- i.push(s.val);
2698
+ var a = this.parseLiteral(t, r);
2699
+ if (a.err)
2700
+ return a;
2701
+ i.push(a.val);
2674
2702
  }
2675
2703
  }
2676
2704
  }
@@ -2682,7 +2710,7 @@ var di = (
2682
2710
  if (this.bumpSpace(), this.bumpIf("/>"))
2683
2711
  return {
2684
2712
  val: {
2685
- type: C.literal,
2713
+ type: A.literal,
2686
2714
  value: "<".concat(i, "/>"),
2687
2715
  location: w(n, this.clonePosition())
2688
2716
  },
@@ -2692,27 +2720,27 @@ var di = (
2692
2720
  var o = this.parseMessage(t + 1, r, !0);
2693
2721
  if (o.err)
2694
2722
  return o;
2695
- var s = o.val, a = this.clonePosition();
2723
+ var a = o.val, s = this.clonePosition();
2696
2724
  if (this.bumpIf("</")) {
2697
- if (this.isEOF() || !pt(this.char()))
2698
- return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
2725
+ if (this.isEOF() || !mt(this.char()))
2726
+ return this.error(x.INVALID_TAG, w(s, this.clonePosition()));
2699
2727
  var l = this.clonePosition(), u = this.parseTagName();
2700
2728
  return i !== u ? this.error(x.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2701
2729
  val: {
2702
- type: C.tag,
2730
+ type: A.tag,
2703
2731
  value: i,
2704
- children: s,
2732
+ children: a,
2705
2733
  location: w(n, this.clonePosition())
2706
2734
  },
2707
2735
  err: null
2708
- } : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
2736
+ } : this.error(x.INVALID_TAG, w(s, this.clonePosition())));
2709
2737
  } else
2710
2738
  return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
2711
2739
  } else
2712
2740
  return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
2713
2741
  }, e.prototype.parseTagName = function() {
2714
2742
  var t = this.offset();
2715
- for (this.bump(); !this.isEOF() && gi(this.char()); )
2743
+ for (this.bump(); !this.isEOF() && pi(this.char()); )
2716
2744
  this.bump();
2717
2745
  return this.message.slice(t, this.offset());
2718
2746
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2722,26 +2750,26 @@ var di = (
2722
2750
  i += o;
2723
2751
  continue;
2724
2752
  }
2725
- var s = this.tryParseUnquoted(t, r);
2726
- if (s) {
2727
- i += s;
2728
- continue;
2729
- }
2730
- var a = this.tryParseLeftAngleBracket();
2753
+ var a = this.tryParseUnquoted(t, r);
2731
2754
  if (a) {
2732
2755
  i += a;
2733
2756
  continue;
2734
2757
  }
2758
+ var s = this.tryParseLeftAngleBracket();
2759
+ if (s) {
2760
+ i += s;
2761
+ continue;
2762
+ }
2735
2763
  break;
2736
2764
  }
2737
2765
  var l = w(n, this.clonePosition());
2738
2766
  return {
2739
- val: { type: C.literal, value: i, location: l },
2767
+ val: { type: A.literal, value: i, location: l },
2740
2768
  err: null
2741
2769
  };
2742
2770
  }, e.prototype.tryParseLeftAngleBracket = function() {
2743
2771
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2744
- !bi(this.peek() || 0)) ? (this.bump(), "<") : null;
2772
+ !di(this.peek() || 0)) ? (this.bump(), "<") : null;
2745
2773
  }, e.prototype.tryParseQuote = function(t) {
2746
2774
  if (this.isEOF() || this.char() !== 39)
2747
2775
  return null;
@@ -2796,7 +2824,7 @@ var di = (
2796
2824
  case 125:
2797
2825
  return this.bump(), {
2798
2826
  val: {
2799
- type: C.argument,
2827
+ type: A.argument,
2800
2828
  // value does not include the opening and closing braces.
2801
2829
  value: i,
2802
2830
  location: w(n, this.clonePosition())
@@ -2811,13 +2839,13 @@ var di = (
2811
2839
  }, e.prototype.parseIdentifierIfPossible = function() {
2812
2840
  var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
2813
2841
  this.bumpTo(i);
2814
- var o = this.clonePosition(), s = w(t, o);
2815
- return { value: n, location: s };
2842
+ var o = this.clonePosition(), a = w(t, o);
2843
+ return { value: n, location: a };
2816
2844
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2817
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2818
- switch (a) {
2845
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2846
+ switch (s) {
2819
2847
  case "":
2820
- return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, l));
2848
+ return this.error(x.EXPECT_ARGUMENT_TYPE, w(a, l));
2821
2849
  case "number":
2822
2850
  case "date":
2823
2851
  case "time": {
@@ -2828,46 +2856,46 @@ var di = (
2828
2856
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2829
2857
  if (f.err)
2830
2858
  return f;
2831
- var c = mi(f.val);
2859
+ var c = fi(f.val);
2832
2860
  if (c.length === 0)
2833
2861
  return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2834
2862
  var g = w(h, this.clonePosition());
2835
2863
  u = { style: c, styleLocation: g };
2836
2864
  }
2837
- var d = this.tryParseArgumentClose(i);
2838
- if (d.err)
2839
- return d;
2840
- var m = w(i, this.clonePosition());
2841
- if (u && $t(u?.style, "::", 0)) {
2842
- var _ = pi(u.style.slice(2));
2843
- if (a === "number") {
2865
+ var p = this.tryParseArgumentClose(i);
2866
+ if (p.err)
2867
+ return p;
2868
+ var d = w(i, this.clonePosition());
2869
+ if (u && Rt(u?.style, "::", 0)) {
2870
+ var _ = ci(u.style.slice(2));
2871
+ if (s === "number") {
2844
2872
  var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
2845
2873
  return f.err ? f : {
2846
- val: { type: C.number, value: n, location: m, style: f.val },
2874
+ val: { type: A.number, value: n, location: d, style: f.val },
2847
2875
  err: null
2848
2876
  };
2849
2877
  } else {
2850
2878
  if (_.length === 0)
2851
- return this.error(x.EXPECT_DATE_TIME_SKELETON, m);
2879
+ return this.error(x.EXPECT_DATE_TIME_SKELETON, d);
2852
2880
  var E = _;
2853
- this.locale && (E = ei(_, this.locale));
2881
+ this.locale && (E = qn(_, this.locale));
2854
2882
  var c = {
2855
- type: ue.dateTime,
2883
+ type: le.dateTime,
2856
2884
  pattern: E,
2857
2885
  location: u.styleLocation,
2858
- parsedOptions: this.shouldParseSkeletons ? zn(E) : {}
2859
- }, p = a === "date" ? C.date : C.time;
2886
+ parsedOptions: this.shouldParseSkeletons ? Xn(E) : {}
2887
+ }, m = s === "date" ? A.date : A.time;
2860
2888
  return {
2861
- val: { type: p, value: n, location: m, style: c },
2889
+ val: { type: m, value: n, location: d, style: c },
2862
2890
  err: null
2863
2891
  };
2864
2892
  }
2865
2893
  }
2866
2894
  return {
2867
2895
  val: {
2868
- type: a === "number" ? C.number : a === "date" ? C.date : C.time,
2896
+ type: s === "number" ? A.number : s === "date" ? A.date : A.time,
2869
2897
  value: n,
2870
- location: m,
2898
+ location: d,
2871
2899
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2872
2900
  },
2873
2901
  err: null
@@ -2878,47 +2906,47 @@ var di = (
2878
2906
  case "select": {
2879
2907
  var S = this.clonePosition();
2880
2908
  if (this.bumpSpace(), !this.bumpIf(","))
2881
- return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(S, je({}, S)));
2909
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(S, T({}, S)));
2882
2910
  this.bumpSpace();
2883
- var y = this.parseIdentifierIfPossible(), A = 0;
2884
- if (a !== "select" && y.value === "offset") {
2911
+ var y = this.parseIdentifierIfPossible(), P = 0;
2912
+ if (s !== "select" && y.value === "offset") {
2885
2913
  if (!this.bumpIf(":"))
2886
2914
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2887
2915
  this.bumpSpace();
2888
2916
  var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2889
2917
  if (f.err)
2890
2918
  return f;
2891
- this.bumpSpace(), y = this.parseIdentifierIfPossible(), A = f.val;
2919
+ this.bumpSpace(), y = this.parseIdentifierIfPossible(), P = f.val;
2892
2920
  }
2893
- var H = this.tryParsePluralOrSelectOptions(t, a, r, y);
2894
- if (H.err)
2895
- return H;
2896
- var d = this.tryParseArgumentClose(i);
2897
- if (d.err)
2898
- return d;
2921
+ var C = this.tryParsePluralOrSelectOptions(t, s, r, y);
2922
+ if (C.err)
2923
+ return C;
2924
+ var p = this.tryParseArgumentClose(i);
2925
+ if (p.err)
2926
+ return p;
2899
2927
  var $ = w(i, this.clonePosition());
2900
- return a === "select" ? {
2928
+ return s === "select" ? {
2901
2929
  val: {
2902
- type: C.select,
2930
+ type: A.select,
2903
2931
  value: n,
2904
- options: Ut(H.val),
2932
+ options: Dt(C.val),
2905
2933
  location: $
2906
2934
  },
2907
2935
  err: null
2908
2936
  } : {
2909
2937
  val: {
2910
- type: C.plural,
2938
+ type: A.plural,
2911
2939
  value: n,
2912
- options: Ut(H.val),
2913
- offset: A,
2914
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2940
+ options: Dt(C.val),
2941
+ offset: P,
2942
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2915
2943
  location: $
2916
2944
  },
2917
2945
  err: null
2918
2946
  };
2919
2947
  }
2920
2948
  default:
2921
- return this.error(x.INVALID_ARGUMENT_TYPE, w(s, l));
2949
+ return this.error(x.INVALID_ARGUMENT_TYPE, w(a, l));
2922
2950
  }
2923
2951
  }, e.prototype.tryParseArgumentClose = function(t) {
2924
2952
  return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2960,21 +2988,21 @@ var di = (
2960
2988
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2961
2989
  var n = [];
2962
2990
  try {
2963
- n = Qn(t);
2991
+ n = zn(t);
2964
2992
  } catch {
2965
2993
  return this.error(x.INVALID_NUMBER_SKELETON, r);
2966
2994
  }
2967
2995
  return {
2968
2996
  val: {
2969
- type: ue.number,
2997
+ type: le.number,
2970
2998
  tokens: n,
2971
2999
  location: r,
2972
- parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
3000
+ parsedOptions: this.shouldParseSkeletons ? Yn(n) : {}
2973
3001
  },
2974
3002
  err: null
2975
3003
  };
2976
3004
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2977
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3005
+ for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2978
3006
  if (u.length === 0) {
2979
3007
  var f = this.clonePosition();
2980
3008
  if (r !== "select" && this.bumpIf("=")) {
@@ -2987,37 +3015,37 @@ var di = (
2987
3015
  }
2988
3016
  if (l.has(u))
2989
3017
  return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2990
- u === "other" && (s = !0), this.bumpSpace();
3018
+ u === "other" && (a = !0), this.bumpSpace();
2991
3019
  var g = this.clonePosition();
2992
3020
  if (!this.bumpIf("{"))
2993
3021
  return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
2994
- var d = this.parseMessage(t + 1, r, n);
3022
+ var p = this.parseMessage(t + 1, r, n);
3023
+ if (p.err)
3024
+ return p;
3025
+ var d = this.tryParseArgumentClose(g);
2995
3026
  if (d.err)
2996
3027
  return d;
2997
- var m = this.tryParseArgumentClose(g);
2998
- if (m.err)
2999
- return m;
3000
- a.push([
3028
+ s.push([
3001
3029
  u,
3002
3030
  {
3003
- value: d.val,
3031
+ value: p.val,
3004
3032
  location: w(g, this.clonePosition())
3005
3033
  }
3006
3034
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3007
3035
  }
3008
- return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3036
+ return s.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3009
3037
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3010
3038
  var n = 1, i = this.clonePosition();
3011
3039
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3012
- for (var o = !1, s = 0; !this.isEOF(); ) {
3013
- var a = this.char();
3014
- if (a >= 48 && a <= 57)
3015
- o = !0, s = s * 10 + (a - 48), this.bump();
3040
+ for (var o = !1, a = 0; !this.isEOF(); ) {
3041
+ var s = this.char();
3042
+ if (s >= 48 && s <= 57)
3043
+ o = !0, a = a * 10 + (s - 48), this.bump();
3016
3044
  else
3017
3045
  break;
3018
3046
  }
3019
3047
  var l = w(i, this.clonePosition());
3020
- return o ? (s *= n, ci(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3048
+ return o ? (a *= n, li(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3021
3049
  }, e.prototype.offset = function() {
3022
3050
  return this.position.offset;
3023
3051
  }, e.prototype.isEOF = function() {
@@ -3032,7 +3060,7 @@ var di = (
3032
3060
  var t = this.position.offset;
3033
3061
  if (t >= this.message.length)
3034
3062
  throw Error("out of bound");
3035
- var r = Cr(this.message, t);
3063
+ var r = Tr(this.message, t);
3036
3064
  if (r === void 0)
3037
3065
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3038
3066
  return r;
@@ -3051,7 +3079,7 @@ var di = (
3051
3079
  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);
3052
3080
  }
3053
3081
  }, e.prototype.bumpIf = function(t) {
3054
- if ($t(this.message, t, this.offset())) {
3082
+ if (Rt(this.message, t, this.offset())) {
3055
3083
  for (var r = 0; r < t.length; r++)
3056
3084
  this.bump();
3057
3085
  return !0;
@@ -3073,7 +3101,7 @@ var di = (
3073
3101
  break;
3074
3102
  }
3075
3103
  }, e.prototype.bumpSpace = function() {
3076
- for (; !this.isEOF() && Pr(this.char()); )
3104
+ for (; !this.isEOF() && Cr(this.char()); )
3077
3105
  this.bump();
3078
3106
  }, e.prototype.peek = function() {
3079
3107
  if (this.isEOF())
@@ -3083,47 +3111,47 @@ var di = (
3083
3111
  }, e;
3084
3112
  }()
3085
3113
  );
3086
- function pt(e) {
3114
+ function mt(e) {
3087
3115
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3088
3116
  }
3089
- function bi(e) {
3090
- return pt(e) || e === 47;
3117
+ function di(e) {
3118
+ return mt(e) || e === 47;
3091
3119
  }
3092
- function gi(e) {
3120
+ function pi(e) {
3093
3121
  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;
3094
3122
  }
3095
- function Pr(e) {
3123
+ function Cr(e) {
3096
3124
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3097
3125
  }
3098
- function yi(e) {
3126
+ function bi(e) {
3099
3127
  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;
3100
3128
  }
3101
- function mt(e) {
3129
+ function dt(e) {
3102
3130
  e.forEach(function(t) {
3103
- if (delete t.location, vr(t) || _r(t))
3131
+ if (delete t.location, gr(t) || yr(t))
3104
3132
  for (var r in t.options)
3105
- delete t.options[r].location, mt(t.options[r].value);
3133
+ delete t.options[r].location, dt(t.options[r].value);
3106
3134
  else
3107
- br(t) && xr(t.style) || (gr(t) || yr(t)) && lt(t.style) ? delete t.style.location : Er(t) && mt(t.children);
3135
+ dr(t) && _r(t.style) || (pr(t) || br(t)) && lt(t.style) ? delete t.style.location : vr(t) && dt(t.children);
3108
3136
  });
3109
3137
  }
3110
- function vi(e, t) {
3111
- t === void 0 && (t = {}), t = je({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3112
- var r = new di(e, t).parse();
3138
+ function gi(e, t) {
3139
+ t === void 0 && (t = {}), t = T({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3140
+ var r = new mi(e, t).parse();
3113
3141
  if (r.err) {
3114
3142
  var n = SyntaxError(x[r.err.kind]);
3115
3143
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3116
3144
  }
3117
- return t?.captureLocation || mt(r.val), r.val;
3145
+ return t?.captureLocation || dt(r.val), r.val;
3118
3146
  }
3119
- var le;
3147
+ var he;
3120
3148
  (function(e) {
3121
3149
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3122
- })(le || (le = {}));
3123
- var Ze = (
3150
+ })(he || (he = {}));
3151
+ var We = (
3124
3152
  /** @class */
3125
3153
  function(e) {
3126
- ze(t, e);
3154
+ X(t, e);
3127
3155
  function t(r, n, i) {
3128
3156
  var o = e.call(this, r) || this;
3129
3157
  return o.code = n, o.originalMessage = i, o;
@@ -3132,155 +3160,155 @@ var Ze = (
3132
3160
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3133
3161
  }, t;
3134
3162
  }(Error)
3135
- ), Gt = (
3163
+ ), Ut = (
3136
3164
  /** @class */
3137
3165
  function(e) {
3138
- ze(t, e);
3166
+ X(t, e);
3139
3167
  function t(r, n, i, o) {
3140
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), le.INVALID_VALUE, o) || this;
3168
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
3141
3169
  }
3142
3170
  return t;
3143
- }(Ze)
3144
- ), _i = (
3171
+ }(We)
3172
+ ), yi = (
3145
3173
  /** @class */
3146
3174
  function(e) {
3147
- ze(t, e);
3175
+ X(t, e);
3148
3176
  function t(r, n, i) {
3149
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), le.INVALID_VALUE, i) || this;
3177
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
3150
3178
  }
3151
3179
  return t;
3152
- }(Ze)
3153
- ), Ei = (
3180
+ }(We)
3181
+ ), vi = (
3154
3182
  /** @class */
3155
3183
  function(e) {
3156
- ze(t, e);
3184
+ X(t, e);
3157
3185
  function t(r, n) {
3158
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), le.MISSING_VALUE, n) || this;
3186
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
3159
3187
  }
3160
3188
  return t;
3161
- }(Ze)
3162
- ), B;
3189
+ }(We)
3190
+ ), O;
3163
3191
  (function(e) {
3164
3192
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3165
- })(B || (B = {}));
3166
- function xi(e) {
3193
+ })(O || (O = {}));
3194
+ function _i(e) {
3167
3195
  return e.length < 2 ? e : e.reduce(function(t, r) {
3168
3196
  var n = t[t.length - 1];
3169
- return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3197
+ return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3170
3198
  }, []);
3171
3199
  }
3172
- function wi(e) {
3200
+ function Ei(e) {
3173
3201
  return typeof e == "function";
3174
3202
  }
3175
- function De(e, t, r, n, i, o, s) {
3176
- if (e.length === 1 && Lt(e[0]))
3203
+ function De(e, t, r, n, i, o, a) {
3204
+ if (e.length === 1 && Ot(e[0]))
3177
3205
  return [
3178
3206
  {
3179
- type: B.literal,
3207
+ type: O.literal,
3180
3208
  value: e[0].value
3181
3209
  }
3182
3210
  ];
3183
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3211
+ for (var s = [], l = 0, u = e; l < u.length; l++) {
3184
3212
  var h = u[l];
3185
- if (Lt(h)) {
3186
- a.push({
3187
- type: B.literal,
3213
+ if (Ot(h)) {
3214
+ s.push({
3215
+ type: O.literal,
3188
3216
  value: h.value
3189
3217
  });
3190
3218
  continue;
3191
3219
  }
3192
- if (Xn(h)) {
3193
- typeof o == "number" && a.push({
3194
- type: B.literal,
3220
+ if (kn(h)) {
3221
+ typeof o == "number" && s.push({
3222
+ type: O.literal,
3195
3223
  value: r.getNumberFormat(t).format(o)
3196
3224
  });
3197
3225
  continue;
3198
3226
  }
3199
3227
  var f = h.value;
3200
3228
  if (!(i && f in i))
3201
- throw new Ei(f, s);
3229
+ throw new vi(f, a);
3202
3230
  var c = i[f];
3203
- if (Vn(h)) {
3204
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3205
- type: typeof c == "string" ? B.literal : B.object,
3231
+ if (jn(h)) {
3232
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3233
+ type: typeof c == "string" ? O.literal : O.object,
3206
3234
  value: c
3207
3235
  });
3208
3236
  continue;
3209
3237
  }
3210
- if (gr(h)) {
3238
+ if (pr(h)) {
3211
3239
  var g = typeof h.style == "string" ? n.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
3212
- a.push({
3213
- type: B.literal,
3240
+ s.push({
3241
+ type: O.literal,
3214
3242
  value: r.getDateTimeFormat(t, g).format(c)
3215
3243
  });
3216
3244
  continue;
3217
3245
  }
3218
- if (yr(h)) {
3246
+ if (br(h)) {
3219
3247
  var g = typeof h.style == "string" ? n.time[h.style] : lt(h.style) ? h.style.parsedOptions : n.time.medium;
3220
- a.push({
3221
- type: B.literal,
3248
+ s.push({
3249
+ type: O.literal,
3222
3250
  value: r.getDateTimeFormat(t, g).format(c)
3223
3251
  });
3224
3252
  continue;
3225
3253
  }
3226
- if (br(h)) {
3227
- var g = typeof h.style == "string" ? n.number[h.style] : xr(h.style) ? h.style.parsedOptions : void 0;
3228
- g && g.scale && (c = c * (g.scale || 1)), a.push({
3229
- type: B.literal,
3254
+ if (dr(h)) {
3255
+ var g = typeof h.style == "string" ? n.number[h.style] : _r(h.style) ? h.style.parsedOptions : void 0;
3256
+ g && g.scale && (c = c * (g.scale || 1)), s.push({
3257
+ type: O.literal,
3230
3258
  value: r.getNumberFormat(t, g).format(c)
3231
3259
  });
3232
3260
  continue;
3233
3261
  }
3234
- if (Er(h)) {
3235
- var d = h.children, m = h.value, _ = i[m];
3236
- if (!wi(_))
3237
- throw new _i(m, "function", s);
3238
- var E = De(d, t, r, n, i, o), p = _(E.map(function(A) {
3239
- return A.value;
3262
+ if (vr(h)) {
3263
+ var p = h.children, d = h.value, _ = i[d];
3264
+ if (!Ei(_))
3265
+ throw new yi(d, "function", a);
3266
+ var E = De(p, t, r, n, i, o), m = _(E.map(function(P) {
3267
+ return P.value;
3240
3268
  }));
3241
- Array.isArray(p) || (p = [p]), a.push.apply(a, p.map(function(A) {
3269
+ Array.isArray(m) || (m = [m]), s.push.apply(s, m.map(function(P) {
3242
3270
  return {
3243
- type: typeof A == "string" ? B.literal : B.object,
3244
- value: A
3271
+ type: typeof P == "string" ? O.literal : O.object,
3272
+ value: P
3245
3273
  };
3246
3274
  }));
3247
3275
  }
3248
- if (vr(h)) {
3276
+ if (gr(h)) {
3249
3277
  var S = h.options[c] || h.options.other;
3250
3278
  if (!S)
3251
- throw new Gt(h.value, c, Object.keys(h.options), s);
3252
- a.push.apply(a, De(S.value, t, r, n, i));
3279
+ throw new Ut(h.value, c, Object.keys(h.options), a);
3280
+ s.push.apply(s, De(S.value, t, r, n, i));
3253
3281
  continue;
3254
3282
  }
3255
- if (_r(h)) {
3283
+ if (yr(h)) {
3256
3284
  var S = h.options["=".concat(c)];
3257
3285
  if (!S) {
3258
3286
  if (!Intl.PluralRules)
3259
- throw new Ze(`Intl.PluralRules is not available in this environment.
3287
+ throw new We(`Intl.PluralRules is not available in this environment.
3260
3288
  Try polyfilling it using "@formatjs/intl-pluralrules"
3261
- `, le.MISSING_INTL_API, s);
3289
+ `, he.MISSING_INTL_API, a);
3262
3290
  var y = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3263
3291
  S = h.options[y] || h.options.other;
3264
3292
  }
3265
3293
  if (!S)
3266
- throw new Gt(h.value, c, Object.keys(h.options), s);
3267
- a.push.apply(a, De(S.value, t, r, n, i, c - (h.offset || 0)));
3294
+ throw new Ut(h.value, c, Object.keys(h.options), a);
3295
+ s.push.apply(s, De(S.value, t, r, n, i, c - (h.offset || 0)));
3268
3296
  continue;
3269
3297
  }
3270
3298
  }
3271
- return xi(a);
3299
+ return _i(s);
3272
3300
  }
3273
- function Si(e, t) {
3274
- return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3275
- return r[n] = G(G({}, e[n]), t[n] || {}), r;
3301
+ function xi(e, t) {
3302
+ return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3303
+ return r[n] = T(T({}, e[n]), t[n] || {}), r;
3276
3304
  }, {})) : e;
3277
3305
  }
3278
- function Ti(e, t) {
3306
+ function wi(e, t) {
3279
3307
  return t ? Object.keys(e).reduce(function(r, n) {
3280
- return r[n] = Si(e[n], t[n]), r;
3281
- }, G({}, e)) : e;
3308
+ return r[n] = xi(e[n], t[n]), r;
3309
+ }, T({}, e)) : e;
3282
3310
  }
3283
- function it(e) {
3311
+ function tt(e) {
3284
3312
  return {
3285
3313
  create: function() {
3286
3314
  return {
@@ -3294,39 +3322,39 @@ function it(e) {
3294
3322
  }
3295
3323
  };
3296
3324
  }
3297
- function Hi(e) {
3325
+ function Si(e) {
3298
3326
  return e === void 0 && (e = {
3299
3327
  number: {},
3300
3328
  dateTime: {},
3301
3329
  pluralRules: {}
3302
3330
  }), {
3303
- getNumberFormat: tt(function() {
3331
+ getNumberFormat: qe(function() {
3304
3332
  for (var t, r = [], n = 0; n < arguments.length; n++)
3305
3333
  r[n] = arguments[n];
3306
- return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], r, !1)))();
3334
+ return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
3307
3335
  }, {
3308
- cache: it(e.number),
3309
- strategy: rt.variadic
3336
+ cache: tt(e.number),
3337
+ strategy: Ke.variadic
3310
3338
  }),
3311
- getDateTimeFormat: tt(function() {
3339
+ getDateTimeFormat: qe(function() {
3312
3340
  for (var t, r = [], n = 0; n < arguments.length; n++)
3313
3341
  r[n] = arguments[n];
3314
- return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], r, !1)))();
3342
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
3315
3343
  }, {
3316
- cache: it(e.dateTime),
3317
- strategy: rt.variadic
3344
+ cache: tt(e.dateTime),
3345
+ strategy: Ke.variadic
3318
3346
  }),
3319
- getPluralRules: tt(function() {
3347
+ getPluralRules: qe(function() {
3320
3348
  for (var t, r = [], n = 0; n < arguments.length; n++)
3321
3349
  r[n] = arguments[n];
3322
- return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], r, !1)))();
3350
+ return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
3323
3351
  }, {
3324
- cache: it(e.pluralRules),
3325
- strategy: rt.variadic
3352
+ cache: tt(e.pluralRules),
3353
+ strategy: Ke.variadic
3326
3354
  })
3327
3355
  };
3328
3356
  }
3329
- var Mr = (
3357
+ var Ar = (
3330
3358
  /** @class */
3331
3359
  function() {
3332
3360
  function e(t, r, n, i) {
@@ -3341,7 +3369,7 @@ var Mr = (
3341
3369
  if (u.length === 1)
3342
3370
  return u[0].value;
3343
3371
  var h = u.reduce(function(f, c) {
3344
- return !f.length || c.type !== B.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3372
+ return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3345
3373
  }, []);
3346
3374
  return h.length <= 1 ? h[0] || "" : h;
3347
3375
  }, this.formatToParts = function(l) {
@@ -3356,15 +3384,15 @@ var Mr = (
3356
3384
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3357
3385
  if (this.message = t, !e.__parse)
3358
3386
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3359
- var s = i || {};
3360
- s.formatters;
3361
- var a = Rn(s, ["formatters"]);
3362
- this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
3387
+ var a = i || {};
3388
+ a.formatters;
3389
+ var s = Nn(a, ["formatters"]);
3390
+ this.ast = e.__parse(t, T(T({}, s), { locale: this.resolvedLocale }));
3363
3391
  } else
3364
3392
  this.ast = t;
3365
3393
  if (!Array.isArray(this.ast))
3366
3394
  throw new TypeError("A message must be provided as a String or AST.");
3367
- this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
3395
+ this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
3368
3396
  }
3369
3397
  return Object.defineProperty(e, "defaultLocale", {
3370
3398
  get: function() {
@@ -3377,7 +3405,7 @@ var Mr = (
3377
3405
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3378
3406
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3379
3407
  }
3380
- }, e.__parse = vi, e.formats = {
3408
+ }, e.__parse = gi, e.formats = {
3381
3409
  number: {
3382
3410
  integer: {
3383
3411
  maximumFractionDigits: 0
@@ -3438,7 +3466,7 @@ var Mr = (
3438
3466
  }, e;
3439
3467
  }()
3440
3468
  );
3441
- function Ci(e, t) {
3469
+ function Ti(e, t) {
3442
3470
  if (t == null)
3443
3471
  return;
3444
3472
  if (t in e)
@@ -3459,101 +3487,101 @@ function Ci(e, t) {
3459
3487
  n = void 0;
3460
3488
  return n;
3461
3489
  }
3462
- const z = {}, Ai = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Or = (e, t) => {
3490
+ const z = {}, Hi = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Pr = (e, t) => {
3463
3491
  if (t == null)
3464
3492
  return;
3465
3493
  if (t in z && e in z[t])
3466
3494
  return z[t][e];
3467
- const r = we(t);
3495
+ const r = Se(t);
3468
3496
  for (let n = 0; n < r.length; n++) {
3469
- const i = r[n], o = Mi(i, e);
3497
+ const i = r[n], o = Ai(i, e);
3470
3498
  if (o)
3471
- return Ai(e, t, o);
3499
+ return Hi(e, t, o);
3472
3500
  }
3473
3501
  };
3474
- let Ht;
3475
- const xe = We({});
3476
- function Pi(e) {
3477
- return Ht[e] || null;
3502
+ let St;
3503
+ const we = Xe({});
3504
+ function Ci(e) {
3505
+ return St[e] || null;
3478
3506
  }
3479
- function Br(e) {
3480
- return e in Ht;
3507
+ function Mr(e) {
3508
+ return e in St;
3481
3509
  }
3482
- function Mi(e, t) {
3483
- if (!Br(e))
3510
+ function Ai(e, t) {
3511
+ if (!Mr(e))
3484
3512
  return null;
3485
- const r = Pi(e);
3486
- return Ci(r, t);
3513
+ const r = Ci(e);
3514
+ return Ti(r, t);
3487
3515
  }
3488
- function Oi(e) {
3516
+ function Pi(e) {
3489
3517
  if (e == null)
3490
3518
  return;
3491
- const t = we(e);
3519
+ const t = Se(e);
3492
3520
  for (let r = 0; r < t.length; r++) {
3493
3521
  const n = t[r];
3494
- if (Br(n))
3522
+ if (Mr(n))
3495
3523
  return n;
3496
3524
  }
3497
3525
  }
3498
- function Ir(e, ...t) {
3499
- delete z[e], xe.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
3526
+ function Br(e, ...t) {
3527
+ delete z[e], we.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
3500
3528
  }
3501
- fe(
3502
- [xe],
3529
+ me(
3530
+ [we],
3503
3531
  ([e]) => Object.keys(e)
3504
3532
  );
3505
- xe.subscribe((e) => Ht = e);
3533
+ we.subscribe((e) => St = e);
3506
3534
  const $e = {};
3507
- function Bi(e, t) {
3535
+ function Mi(e, t) {
3508
3536
  $e[e].delete(t), $e[e].size === 0 && delete $e[e];
3509
3537
  }
3510
- function Lr(e) {
3538
+ function Or(e) {
3511
3539
  return $e[e];
3512
3540
  }
3513
- function Ii(e) {
3514
- return we(e).map((t) => {
3515
- const r = Lr(t);
3541
+ function Bi(e) {
3542
+ return Se(e).map((t) => {
3543
+ const r = Or(t);
3516
3544
  return [t, r ? [...r] : []];
3517
3545
  }).filter(([, t]) => t.length > 0);
3518
3546
  }
3519
- function ke(e) {
3520
- return e == null ? !1 : we(e).some(
3547
+ function je(e) {
3548
+ return e == null ? !1 : Se(e).some(
3521
3549
  (t) => {
3522
3550
  var r;
3523
- return (r = Lr(t)) == null ? void 0 : r.size;
3551
+ return (r = Or(t)) == null ? void 0 : r.size;
3524
3552
  }
3525
3553
  );
3526
3554
  }
3527
- function Li(e, t) {
3555
+ function Oi(e, t) {
3528
3556
  return Promise.all(
3529
- t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
3530
- ).then((n) => Ir(e, ...n));
3531
- }
3532
- const be = {};
3533
- function Nr(e) {
3534
- if (!ke(e))
3535
- return e in be ? be[e] : Promise.resolve();
3536
- const t = Ii(e);
3537
- return be[e] = Promise.all(
3557
+ t.map((n) => (Mi(e, n), n().then((i) => i.default || i)))
3558
+ ).then((n) => Br(e, ...n));
3559
+ }
3560
+ const ge = {};
3561
+ function Ir(e) {
3562
+ if (!je(e))
3563
+ return e in ge ? ge[e] : Promise.resolve();
3564
+ const t = Bi(e);
3565
+ return ge[e] = Promise.all(
3538
3566
  t.map(
3539
- ([r, n]) => Li(r, n)
3567
+ ([r, n]) => Oi(r, n)
3540
3568
  )
3541
3569
  ).then(() => {
3542
- if (ke(e))
3543
- return Nr(e);
3544
- delete be[e];
3545
- }), be[e];
3570
+ if (je(e))
3571
+ return Ir(e);
3572
+ delete ge[e];
3573
+ }), ge[e];
3546
3574
  }
3547
- var jt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Di = (e, t) => {
3575
+ var Ft = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, Ni = (e, t) => {
3548
3576
  var r = {};
3549
3577
  for (var n in e)
3550
- Ni.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3551
- if (e != null && jt)
3552
- for (var n of jt(e))
3553
- t.indexOf(n) < 0 && Ri.call(e, n) && (r[n] = e[n]);
3578
+ Ii.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3579
+ if (e != null && Ft)
3580
+ for (var n of Ft(e))
3581
+ t.indexOf(n) < 0 && Li.call(e, n) && (r[n] = e[n]);
3554
3582
  return r;
3555
3583
  };
3556
- const $i = {
3584
+ const Ri = {
3557
3585
  number: {
3558
3586
  scientific: { notation: "scientific" },
3559
3587
  engineering: { notation: "engineering" },
@@ -3583,183 +3611,183 @@ const $i = {
3583
3611
  }
3584
3612
  }
3585
3613
  };
3586
- function Ui({ locale: e, id: t }) {
3614
+ function Di({ locale: e, id: t }) {
3587
3615
  console.warn(
3588
- `[svelte-i18n] The message "${t}" was not found in "${we(
3616
+ `[svelte-i18n] The message "${t}" was not found in "${Se(
3589
3617
  e
3590
- ).join('", "')}".${ke(Q()) ? `
3618
+ ).join('", "')}".${je(Q()) ? `
3591
3619
 
3592
3620
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3593
3621
  );
3594
3622
  }
3595
- const Fi = {
3623
+ const $i = {
3596
3624
  fallbackLocale: null,
3597
3625
  loadingDelay: 200,
3598
- formats: $i,
3626
+ formats: Ri,
3599
3627
  warnOnMissingMessages: !0,
3600
3628
  handleMissingMessage: void 0,
3601
3629
  ignoreTag: !0
3602
- }, ge = Fi;
3603
- function he() {
3604
- return ge;
3630
+ }, ye = $i;
3631
+ function ce() {
3632
+ return ye;
3605
3633
  }
3606
- function Gi(e) {
3607
- const t = e, { formats: r } = t, n = Di(t, ["formats"]);
3634
+ function Ui(e) {
3635
+ const t = e, { formats: r } = t, n = Ni(t, ["formats"]);
3608
3636
  let i = e.fallbackLocale;
3609
3637
  if (e.initialLocale)
3610
3638
  try {
3611
- Mr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3639
+ Ar.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3612
3640
  } catch {
3613
3641
  console.warn(
3614
3642
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3615
3643
  );
3616
3644
  }
3617
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Ui : console.warn(
3645
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Di : console.warn(
3618
3646
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3619
- )), Object.assign(ge, n, { initialLocale: i }), r && ("number" in r && Object.assign(ge.formats.number, r.number), "date" in r && Object.assign(ge.formats.date, r.date), "time" in r && Object.assign(ge.formats.time, r.time)), K.set(i);
3647
+ )), Object.assign(ye, n, { initialLocale: i }), r && ("number" in r && Object.assign(ye.formats.number, r.number), "date" in r && Object.assign(ye.formats.date, r.date), "time" in r && Object.assign(ye.formats.time, r.time)), K.set(i);
3620
3648
  }
3621
- const ot = We(!1);
3622
- var ji = Object.defineProperty, ki = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Wi = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
3649
+ const rt = Xe(!1);
3650
+ var Fi = Object.defineProperty, Gi = Object.defineProperties, ji = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, ki = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xi = (e, t) => {
3623
3651
  for (var r in t || (t = {}))
3624
- Xi.call(t, r) && Vt(e, r, t[r]);
3625
- if (kt)
3626
- for (var r of kt(t))
3627
- Wi.call(t, r) && Vt(e, r, t[r]);
3652
+ ki.call(t, r) && jt(e, r, t[r]);
3653
+ if (Gt)
3654
+ for (var r of Gt(t))
3655
+ Vi.call(t, r) && jt(e, r, t[r]);
3628
3656
  return e;
3629
- }, Zi = (e, t) => ki(e, Vi(t));
3630
- let dt;
3631
- const Ve = We(null);
3632
- function Xt(e) {
3657
+ }, Wi = (e, t) => Gi(e, ji(t));
3658
+ let pt;
3659
+ const ke = Xe(null);
3660
+ function kt(e) {
3633
3661
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3634
3662
  }
3635
- function we(e, t = he().fallbackLocale) {
3636
- const r = Xt(e);
3637
- return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
3663
+ function Se(e, t = ce().fallbackLocale) {
3664
+ const r = kt(e);
3665
+ return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
3638
3666
  }
3639
3667
  function Q() {
3640
- return dt ?? void 0;
3668
+ return pt ?? void 0;
3641
3669
  }
3642
- Ve.subscribe((e) => {
3643
- dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3670
+ ke.subscribe((e) => {
3671
+ pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3644
3672
  });
3645
- const Qi = (e) => {
3646
- if (e && Oi(e) && ke(e)) {
3647
- const { loadingDelay: t } = he();
3673
+ const zi = (e) => {
3674
+ if (e && Pi(e) && je(e)) {
3675
+ const { loadingDelay: t } = ce();
3648
3676
  let r;
3649
3677
  return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
3650
- () => ot.set(!0),
3678
+ () => rt.set(!0),
3651
3679
  t
3652
- ) : ot.set(!0), Nr(e).then(() => {
3653
- Ve.set(e);
3680
+ ) : rt.set(!0), Ir(e).then(() => {
3681
+ ke.set(e);
3654
3682
  }).finally(() => {
3655
- clearTimeout(r), ot.set(!1);
3683
+ clearTimeout(r), rt.set(!1);
3656
3684
  });
3657
3685
  }
3658
- return Ve.set(e);
3659
- }, K = Zi(zi({}, Ve), {
3660
- set: Qi
3661
- }), Qe = (e) => {
3686
+ return ke.set(e);
3687
+ }, K = Wi(Xi({}, ke), {
3688
+ set: zi
3689
+ }), ze = (e) => {
3662
3690
  const t = /* @__PURE__ */ Object.create(null);
3663
3691
  return (n) => {
3664
3692
  const i = JSON.stringify(n);
3665
3693
  return i in t ? t[i] : t[i] = e(n);
3666
3694
  };
3667
3695
  };
3668
- var Ji = Object.defineProperty, Xe = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ct = (e, t) => {
3696
+ var Zi = Object.defineProperty, Ve = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
3669
3697
  for (var r in t || (t = {}))
3670
- Rr.call(t, r) && Wt(e, r, t[r]);
3671
- if (Xe)
3672
- for (var r of Xe(t))
3673
- Dr.call(t, r) && Wt(e, r, t[r]);
3698
+ Lr.call(t, r) && Vt(e, r, t[r]);
3699
+ if (Ve)
3700
+ for (var r of Ve(t))
3701
+ Nr.call(t, r) && Vt(e, r, t[r]);
3674
3702
  return e;
3675
- }, pe = (e, t) => {
3703
+ }, de = (e, t) => {
3676
3704
  var r = {};
3677
3705
  for (var n in e)
3678
- Rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3679
- if (e != null && Xe)
3680
- for (var n of Xe(e))
3681
- t.indexOf(n) < 0 && Dr.call(e, n) && (r[n] = e[n]);
3706
+ Lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3707
+ if (e != null && Ve)
3708
+ for (var n of Ve(e))
3709
+ t.indexOf(n) < 0 && Nr.call(e, n) && (r[n] = e[n]);
3682
3710
  return r;
3683
3711
  };
3684
- const Ee = (e, t) => {
3685
- const { formats: r } = he();
3712
+ const xe = (e, t) => {
3713
+ const { formats: r } = ce();
3686
3714
  if (e in r && t in r[e])
3687
3715
  return r[e][t];
3688
3716
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3689
- }, Yi = Qe(
3717
+ }, Qi = ze(
3690
3718
  (e) => {
3691
- var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3719
+ var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
3692
3720
  if (r == null)
3693
3721
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3694
- return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
3722
+ return n && (i = xe("number", n)), new Intl.NumberFormat(r, i);
3695
3723
  }
3696
- ), qi = Qe(
3724
+ ), Ji = ze(
3697
3725
  (e) => {
3698
- var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3726
+ var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
3699
3727
  if (r == null)
3700
3728
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3701
- return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
3729
+ return n ? i = xe("date", n) : Object.keys(i).length === 0 && (i = xe("date", "short")), new Intl.DateTimeFormat(r, i);
3702
3730
  }
3703
- ), Ki = Qe(
3731
+ ), Yi = ze(
3704
3732
  (e) => {
3705
- var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3733
+ var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
3706
3734
  if (r == null)
3707
3735
  throw new Error(
3708
3736
  '[svelte-i18n] A "locale" must be set to format time values'
3709
3737
  );
3710
- return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
3738
+ return n ? i = xe("time", n) : Object.keys(i).length === 0 && (i = xe("time", "short")), new Intl.DateTimeFormat(r, i);
3711
3739
  }
3712
- ), eo = (e = {}) => {
3740
+ ), qi = (e = {}) => {
3713
3741
  var t = e, {
3714
3742
  locale: r = Q()
3715
- } = t, n = pe(t, [
3743
+ } = t, n = de(t, [
3716
3744
  "locale"
3717
3745
  ]);
3718
- return Yi(Ct({ locale: r }, n));
3719
- }, to = (e = {}) => {
3746
+ return Qi(Tt({ locale: r }, n));
3747
+ }, Ki = (e = {}) => {
3720
3748
  var t = e, {
3721
3749
  locale: r = Q()
3722
- } = t, n = pe(t, [
3750
+ } = t, n = de(t, [
3723
3751
  "locale"
3724
3752
  ]);
3725
- return qi(Ct({ locale: r }, n));
3726
- }, ro = (e = {}) => {
3753
+ return Ji(Tt({ locale: r }, n));
3754
+ }, eo = (e = {}) => {
3727
3755
  var t = e, {
3728
3756
  locale: r = Q()
3729
- } = t, n = pe(t, [
3757
+ } = t, n = de(t, [
3730
3758
  "locale"
3731
3759
  ]);
3732
- return Ki(Ct({ locale: r }, n));
3733
- }, no = Qe(
3760
+ return Yi(Tt({ locale: r }, n));
3761
+ }, to = ze(
3734
3762
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3735
- (e, t = Q()) => new Mr(e, t, he().formats, {
3736
- ignoreTag: he().ignoreTag
3763
+ (e, t = Q()) => new Ar(e, t, ce().formats, {
3764
+ ignoreTag: ce().ignoreTag
3737
3765
  })
3738
- ), io = (e, t = {}) => {
3766
+ ), ro = (e, t = {}) => {
3739
3767
  var r, n, i, o;
3740
- let s = t;
3741
- typeof e == "object" && (s = e, e = s.id);
3768
+ let a = t;
3769
+ typeof e == "object" && (a = e, e = a.id);
3742
3770
  const {
3743
- values: a,
3771
+ values: s,
3744
3772
  locale: l = Q(),
3745
3773
  default: u
3746
- } = s;
3774
+ } = a;
3747
3775
  if (l == null)
3748
3776
  throw new Error(
3749
3777
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3750
3778
  );
3751
- let h = Or(e, l);
3779
+ let h = Pr(e, l);
3752
3780
  if (!h)
3753
- h = (o = (i = (n = (r = he()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3781
+ h = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3754
3782
  else if (typeof h != "string")
3755
3783
  return console.warn(
3756
3784
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3757
3785
  ), h;
3758
- if (!a)
3786
+ if (!s)
3759
3787
  return h;
3760
3788
  let f = h;
3761
3789
  try {
3762
- f = no(h, l).format(a);
3790
+ f = to(h, l).format(s);
3763
3791
  } catch (c) {
3764
3792
  c instanceof Error && console.warn(
3765
3793
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3767,26 +3795,26 @@ const Ee = (e, t) => {
3767
3795
  );
3768
3796
  }
3769
3797
  return f;
3770
- }, oo = (e, t) => ro(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = Q()) => Or(e, t), lo = fe([K, xe], () => io);
3771
- fe([K], () => oo);
3772
- fe([K], () => so);
3773
- fe([K], () => ao);
3774
- fe([K, xe], () => uo);
3775
- function zt(e, t) {
3776
- Ir(e, t);
3777
- }
3778
- function ho(e) {
3779
- Gi({
3798
+ }, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => qi(t).format(e), so = (e, t = Q()) => Pr(e, t), ao = me([K, we], () => ro);
3799
+ me([K], () => no);
3800
+ me([K], () => io);
3801
+ me([K], () => oo);
3802
+ me([K, we], () => so);
3803
+ function Xt(e, t) {
3804
+ Br(e, t);
3805
+ }
3806
+ function uo(e) {
3807
+ Ui({
3780
3808
  fallbackLocale: "en"
3781
3809
  }), K.set(e);
3782
3810
  }
3783
- function co(e, t) {
3811
+ function lo(e, t) {
3784
3812
  if (e) {
3785
3813
  const r = document.createElement("style");
3786
3814
  r.innerHTML = t, e.appendChild(r);
3787
3815
  }
3788
3816
  }
3789
- function fo(e, t) {
3817
+ function ho(e, t) {
3790
3818
  if (!e || !t)
3791
3819
  return;
3792
3820
  const r = new URL(t);
@@ -3797,7 +3825,7 @@ function fo(e, t) {
3797
3825
  console.error("There was an error while trying to load client styling from URL", n);
3798
3826
  });
3799
3827
  }
3800
- function po(e, t, r) {
3828
+ function co(e, t, r) {
3801
3829
  if (window.emMessageBus) {
3802
3830
  const n = document.createElement("style");
3803
3831
  window.emMessageBus.subscribe(t, (i) => {
@@ -3805,85 +3833,16 @@ function po(e, t, r) {
3805
3833
  });
3806
3834
  }
3807
3835
  }
3808
- /*! *****************************************************************************
3809
- Copyright (c) Microsoft Corporation.
3810
-
3811
- Permission to use, copy, modify, and/or distribute this software for any
3812
- purpose with or without fee is hereby granted.
3813
-
3814
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3815
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3816
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3817
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3818
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3819
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3820
- PERFORMANCE OF THIS SOFTWARE.
3821
- ***************************************************************************** */
3822
- var bt = function(e, t) {
3823
- return bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3824
- r.__proto__ = n;
3825
- } || function(r, n) {
3826
- for (var i in n)
3827
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3828
- }, bt(e, t);
3829
- };
3830
- function Se(e, t) {
3831
- if (typeof t != "function" && t !== null)
3832
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3833
- bt(e, t);
3834
- function r() {
3835
- this.constructor = e;
3836
- }
3837
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3838
- }
3839
- function gt(e) {
3840
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
3841
- if (r)
3842
- return r.call(e);
3843
- if (e && typeof e.length == "number")
3844
- return {
3845
- next: function() {
3846
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
3847
- }
3848
- };
3849
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3850
- }
3851
- function yt(e, t) {
3852
- var r = typeof Symbol == "function" && e[Symbol.iterator];
3853
- if (!r)
3854
- return e;
3855
- var n = r.call(e), i, o = [], s;
3856
- try {
3857
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
3858
- o.push(i.value);
3859
- } catch (a) {
3860
- s = { error: a };
3861
- } finally {
3862
- try {
3863
- i && !i.done && (r = n.return) && r.call(n);
3864
- } finally {
3865
- if (s)
3866
- throw s.error;
3867
- }
3868
- }
3869
- return o;
3870
- }
3871
- function vt(e, t, r) {
3872
- if (arguments.length === 2)
3873
- for (var n = 0, i = t.length, o; n < i; n++)
3874
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
3875
- return e.concat(o || t);
3876
- }
3877
- function X(e) {
3836
+ function V(e) {
3878
3837
  return typeof e == "function";
3879
3838
  }
3880
- function $r(e) {
3839
+ function Rr(e) {
3881
3840
  var t = function(n) {
3882
3841
  Error.call(n), n.stack = new Error().stack;
3883
3842
  }, r = e(t);
3884
3843
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
3885
3844
  }
3886
- var st = $r(function(e) {
3845
+ var nt = Rr(function(e) {
3887
3846
  return function(r) {
3888
3847
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
3889
3848
  ` + r.map(function(n, i) {
@@ -3892,13 +3851,13 @@ var st = $r(function(e) {
3892
3851
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
3893
3852
  };
3894
3853
  });
3895
- function _t(e, t) {
3854
+ function bt(e, t) {
3896
3855
  if (e) {
3897
3856
  var r = e.indexOf(t);
3898
3857
  0 <= r && e.splice(r, 1);
3899
3858
  }
3900
3859
  }
3901
- var Je = function() {
3860
+ var Ze = function() {
3902
3861
  function e(t) {
3903
3862
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3904
3863
  }
@@ -3906,47 +3865,47 @@ var Je = function() {
3906
3865
  var t, r, n, i, o;
3907
3866
  if (!this.closed) {
3908
3867
  this.closed = !0;
3909
- var s = this._parentage;
3910
- if (s)
3911
- if (this._parentage = null, Array.isArray(s))
3868
+ var a = this._parentage;
3869
+ if (a)
3870
+ if (this._parentage = null, Array.isArray(a))
3912
3871
  try {
3913
- for (var a = gt(s), l = a.next(); !l.done; l = a.next()) {
3872
+ for (var s = at(a), l = s.next(); !l.done; l = s.next()) {
3914
3873
  var u = l.value;
3915
3874
  u.remove(this);
3916
3875
  }
3917
- } catch (m) {
3918
- t = { error: m };
3876
+ } catch (d) {
3877
+ t = { error: d };
3919
3878
  } finally {
3920
3879
  try {
3921
- l && !l.done && (r = a.return) && r.call(a);
3880
+ l && !l.done && (r = s.return) && r.call(s);
3922
3881
  } finally {
3923
3882
  if (t)
3924
3883
  throw t.error;
3925
3884
  }
3926
3885
  }
3927
3886
  else
3928
- s.remove(this);
3887
+ a.remove(this);
3929
3888
  var h = this.initialTeardown;
3930
- if (X(h))
3889
+ if (V(h))
3931
3890
  try {
3932
3891
  h();
3933
- } catch (m) {
3934
- o = m instanceof st ? m.errors : [m];
3892
+ } catch (d) {
3893
+ o = d instanceof nt ? d.errors : [d];
3935
3894
  }
3936
3895
  var f = this._finalizers;
3937
3896
  if (f) {
3938
3897
  this._finalizers = null;
3939
3898
  try {
3940
- for (var c = gt(f), g = c.next(); !g.done; g = c.next()) {
3941
- var d = g.value;
3899
+ for (var c = at(f), g = c.next(); !g.done; g = c.next()) {
3900
+ var p = g.value;
3942
3901
  try {
3943
- Zt(d);
3944
- } catch (m) {
3945
- o = o ?? [], m instanceof st ? o = vt(vt([], yt(o)), yt(m.errors)) : o.push(m);
3902
+ Wt(p);
3903
+ } catch (d) {
3904
+ o = o ?? [], d instanceof nt ? o = ae(ae([], ut(o)), ut(d.errors)) : o.push(d);
3946
3905
  }
3947
3906
  }
3948
- } catch (m) {
3949
- n = { error: m };
3907
+ } catch (d) {
3908
+ n = { error: d };
3950
3909
  } finally {
3951
3910
  try {
3952
3911
  g && !g.done && (i = c.return) && i.call(c);
@@ -3957,13 +3916,13 @@ var Je = function() {
3957
3916
  }
3958
3917
  }
3959
3918
  if (o)
3960
- throw new st(o);
3919
+ throw new nt(o);
3961
3920
  }
3962
3921
  }, e.prototype.add = function(t) {
3963
3922
  var r;
3964
3923
  if (t && t !== this)
3965
3924
  if (this.closed)
3966
- Zt(t);
3925
+ Wt(t);
3967
3926
  else {
3968
3927
  if (t instanceof e) {
3969
3928
  if (t.closed || t._hasParent(this))
@@ -3980,52 +3939,56 @@ var Je = function() {
3980
3939
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
3981
3940
  }, e.prototype._removeParent = function(t) {
3982
3941
  var r = this._parentage;
3983
- r === t ? this._parentage = null : Array.isArray(r) && _t(r, t);
3942
+ r === t ? this._parentage = null : Array.isArray(r) && bt(r, t);
3984
3943
  }, e.prototype.remove = function(t) {
3985
3944
  var r = this._finalizers;
3986
- r && _t(r, t), t instanceof e && t._removeParent(this);
3945
+ r && bt(r, t), t instanceof e && t._removeParent(this);
3987
3946
  }, e.EMPTY = function() {
3988
3947
  var t = new e();
3989
3948
  return t.closed = !0, t;
3990
3949
  }(), e;
3991
- }(), Ur = Je.EMPTY;
3992
- function Fr(e) {
3993
- return e instanceof Je || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
3994
- }
3995
- function Zt(e) {
3996
- X(e) ? e() : e.unsubscribe();
3997
- }
3998
- var mo = {
3999
- Promise: void 0
4000
- }, bo = {
3950
+ }(), Dr = Ze.EMPTY;
3951
+ function $r(e) {
3952
+ return e instanceof Ze || e && "closed" in e && V(e.remove) && V(e.add) && V(e.unsubscribe);
3953
+ }
3954
+ function Wt(e) {
3955
+ V(e) ? e() : e.unsubscribe();
3956
+ }
3957
+ var Ur = {
3958
+ onUnhandledError: null,
3959
+ onStoppedNotification: null,
3960
+ Promise: void 0,
3961
+ useDeprecatedSynchronousErrorHandling: !1,
3962
+ useDeprecatedNextContext: !1
3963
+ }, fo = {
4001
3964
  setTimeout: function(e, t) {
4002
3965
  for (var r = [], n = 2; n < arguments.length; n++)
4003
3966
  r[n - 2] = arguments[n];
4004
- return setTimeout.apply(void 0, vt([e, t], yt(r)));
3967
+ return setTimeout.apply(void 0, ae([e, t], ut(r)));
4005
3968
  },
4006
3969
  clearTimeout: function(e) {
4007
3970
  return clearTimeout(e);
4008
3971
  },
4009
3972
  delegate: void 0
4010
3973
  };
4011
- function go(e) {
4012
- bo.setTimeout(function() {
3974
+ function mo(e) {
3975
+ fo.setTimeout(function() {
4013
3976
  throw e;
4014
3977
  });
4015
3978
  }
4016
- function Qt() {
3979
+ function zt() {
4017
3980
  }
4018
3981
  function Ue(e) {
4019
3982
  e();
4020
3983
  }
4021
- var Gr = function(e) {
4022
- Se(t, e);
3984
+ var Fr = function(e) {
3985
+ X(t, e);
4023
3986
  function t(r) {
4024
3987
  var n = e.call(this) || this;
4025
- return n.isStopped = !1, r ? (n.destination = r, Fr(r) && r.add(n)) : n.destination = _o, n;
3988
+ return n.isStopped = !1, r ? (n.destination = r, $r(r) && r.add(n)) : n.destination = yo, n;
4026
3989
  }
4027
3990
  return t.create = function(r, n, i) {
4028
- return new Et(r, n, i);
3991
+ return new gt(r, n, i);
4029
3992
  }, t.prototype.next = function(r) {
4030
3993
  this.isStopped || this._next(r);
4031
3994
  }, t.prototype.error = function(r) {
@@ -4049,7 +4012,11 @@ var Gr = function(e) {
4049
4012
  this.unsubscribe();
4050
4013
  }
4051
4014
  }, t;
4052
- }(Je), yo = function() {
4015
+ }(Ze), po = Function.prototype.bind;
4016
+ function it(e, t) {
4017
+ return po.call(e, t);
4018
+ }
4019
+ var bo = function() {
4053
4020
  function e(t) {
4054
4021
  this.partialObserver = t;
4055
4022
  }
@@ -4080,43 +4047,55 @@ var Gr = function(e) {
4080
4047
  Ie(r);
4081
4048
  }
4082
4049
  }, e;
4083
- }(), Et = function(e) {
4084
- Se(t, e);
4050
+ }(), gt = function(e) {
4051
+ X(t, e);
4085
4052
  function t(r, n, i) {
4086
- var o = e.call(this) || this, s;
4087
- return X(r) || !r ? s = {
4088
- next: r ?? void 0,
4089
- error: n ?? void 0,
4090
- complete: i ?? void 0
4091
- } : s = r, o.destination = new yo(s), o;
4053
+ var o = e.call(this) || this, a;
4054
+ if (V(r) || !r)
4055
+ a = {
4056
+ next: r ?? void 0,
4057
+ error: n ?? void 0,
4058
+ complete: i ?? void 0
4059
+ };
4060
+ else {
4061
+ var s;
4062
+ o && Ur.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
4063
+ return o.unsubscribe();
4064
+ }, a = {
4065
+ next: r.next && it(r.next, s),
4066
+ error: r.error && it(r.error, s),
4067
+ complete: r.complete && it(r.complete, s)
4068
+ }) : a = r;
4069
+ }
4070
+ return o.destination = new bo(a), o;
4092
4071
  }
4093
4072
  return t;
4094
- }(Gr);
4073
+ }(Fr);
4095
4074
  function Ie(e) {
4096
- go(e);
4075
+ mo(e);
4097
4076
  }
4098
- function vo(e) {
4077
+ function go(e) {
4099
4078
  throw e;
4100
4079
  }
4101
- var _o = {
4080
+ var yo = {
4102
4081
  closed: !0,
4103
- next: Qt,
4104
- error: vo,
4105
- complete: Qt
4106
- }, Eo = function() {
4082
+ next: zt,
4083
+ error: go,
4084
+ complete: zt
4085
+ }, vo = function() {
4107
4086
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4108
4087
  }();
4109
- function xo(e) {
4088
+ function _o(e) {
4110
4089
  return e;
4111
4090
  }
4112
- function wo(e) {
4113
- return e.length === 0 ? xo : e.length === 1 ? e[0] : function(r) {
4091
+ function Eo(e) {
4092
+ return e.length === 0 ? _o : e.length === 1 ? e[0] : function(r) {
4114
4093
  return e.reduce(function(n, i) {
4115
4094
  return i(n);
4116
4095
  }, r);
4117
4096
  };
4118
4097
  }
4119
- var Jt = function() {
4098
+ var Zt = function() {
4120
4099
  function e(t) {
4121
4100
  t && (this._subscribe = t);
4122
4101
  }
@@ -4124,10 +4103,10 @@ var Jt = function() {
4124
4103
  var r = new e();
4125
4104
  return r.source = this, r.operator = t, r;
4126
4105
  }, e.prototype.subscribe = function(t, r, n) {
4127
- var i = this, o = To(t) ? t : new Et(t, r, n);
4106
+ var i = this, o = wo(t) ? t : new gt(t, r, n);
4128
4107
  return Ue(function() {
4129
- var s = i, a = s.operator, l = s.source;
4130
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4108
+ var a = i, s = a.operator, l = a.source;
4109
+ o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4131
4110
  }), o;
4132
4111
  }, e.prototype._trySubscribe = function(t) {
4133
4112
  try {
@@ -4137,37 +4116,37 @@ var Jt = function() {
4137
4116
  }
4138
4117
  }, e.prototype.forEach = function(t, r) {
4139
4118
  var n = this;
4140
- return r = Yt(r), new r(function(i, o) {
4141
- var s = new Et({
4142
- next: function(a) {
4119
+ return r = Qt(r), new r(function(i, o) {
4120
+ var a = new gt({
4121
+ next: function(s) {
4143
4122
  try {
4144
- t(a);
4123
+ t(s);
4145
4124
  } catch (l) {
4146
- o(l), s.unsubscribe();
4125
+ o(l), a.unsubscribe();
4147
4126
  }
4148
4127
  },
4149
4128
  error: o,
4150
4129
  complete: i
4151
4130
  });
4152
- n.subscribe(s);
4131
+ n.subscribe(a);
4153
4132
  });
4154
4133
  }, e.prototype._subscribe = function(t) {
4155
4134
  var r;
4156
4135
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4157
- }, e.prototype[Eo] = function() {
4136
+ }, e.prototype[vo] = function() {
4158
4137
  return this;
4159
4138
  }, e.prototype.pipe = function() {
4160
4139
  for (var t = [], r = 0; r < arguments.length; r++)
4161
4140
  t[r] = arguments[r];
4162
- return wo(t)(this);
4141
+ return Eo(t)(this);
4163
4142
  }, e.prototype.toPromise = function(t) {
4164
4143
  var r = this;
4165
- return t = Yt(t), new t(function(n, i) {
4144
+ return t = Qt(t), new t(function(n, i) {
4166
4145
  var o;
4167
- r.subscribe(function(s) {
4168
- return o = s;
4169
- }, function(s) {
4170
- return i(s);
4146
+ r.subscribe(function(a) {
4147
+ return o = a;
4148
+ }, function(a) {
4149
+ return i(a);
4171
4150
  }, function() {
4172
4151
  return n(o);
4173
4152
  });
@@ -4176,32 +4155,32 @@ var Jt = function() {
4176
4155
  return new e(t);
4177
4156
  }, e;
4178
4157
  }();
4179
- function Yt(e) {
4158
+ function Qt(e) {
4180
4159
  var t;
4181
- return (t = e ?? mo.Promise) !== null && t !== void 0 ? t : Promise;
4160
+ return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
4182
4161
  }
4183
- function So(e) {
4184
- return e && X(e.next) && X(e.error) && X(e.complete);
4162
+ function xo(e) {
4163
+ return e && V(e.next) && V(e.error) && V(e.complete);
4185
4164
  }
4186
- function To(e) {
4187
- return e && e instanceof Gr || So(e) && Fr(e);
4165
+ function wo(e) {
4166
+ return e && e instanceof Fr || xo(e) && $r(e);
4188
4167
  }
4189
- var Ho = $r(function(e) {
4168
+ var So = Rr(function(e) {
4190
4169
  return function() {
4191
4170
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4192
4171
  };
4193
- }), jr = function(e) {
4194
- Se(t, e);
4172
+ }), Gr = function(e) {
4173
+ X(t, e);
4195
4174
  function t() {
4196
4175
  var r = e.call(this) || this;
4197
4176
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4198
4177
  }
4199
4178
  return t.prototype.lift = function(r) {
4200
- var n = new qt(this, this);
4179
+ var n = new Jt(this, this);
4201
4180
  return n.operator = r, n;
4202
4181
  }, t.prototype._throwIfClosed = function() {
4203
4182
  if (this.closed)
4204
- throw new Ho();
4183
+ throw new So();
4205
4184
  }, t.prototype.next = function(r) {
4206
4185
  var n = this;
4207
4186
  Ue(function() {
@@ -4209,15 +4188,15 @@ var Ho = $r(function(e) {
4209
4188
  if (n._throwIfClosed(), !n.isStopped) {
4210
4189
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4211
4190
  try {
4212
- for (var s = gt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4213
- var l = a.value;
4191
+ for (var a = at(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
4192
+ var l = s.value;
4214
4193
  l.next(r);
4215
4194
  }
4216
4195
  } catch (u) {
4217
4196
  i = { error: u };
4218
4197
  } finally {
4219
4198
  try {
4220
- a && !a.done && (o = s.return) && o.call(s);
4199
+ s && !s.done && (o = a.return) && o.call(a);
4221
4200
  } finally {
4222
4201
  if (i)
4223
4202
  throw i.error;
@@ -4257,21 +4236,21 @@ var Ho = $r(function(e) {
4257
4236
  }, t.prototype._subscribe = function(r) {
4258
4237
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4259
4238
  }, t.prototype._innerSubscribe = function(r) {
4260
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4261
- return o || s ? Ur : (this.currentObservers = null, a.push(r), new Je(function() {
4262
- n.currentObservers = null, _t(a, r);
4239
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
4240
+ return o || a ? Dr : (this.currentObservers = null, s.push(r), new Ze(function() {
4241
+ n.currentObservers = null, bt(s, r);
4263
4242
  }));
4264
4243
  }, t.prototype._checkFinalizedStatuses = function(r) {
4265
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4266
- i ? r.error(o) : s && r.complete();
4244
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
4245
+ i ? r.error(o) : a && r.complete();
4267
4246
  }, t.prototype.asObservable = function() {
4268
- var r = new Jt();
4247
+ var r = new Zt();
4269
4248
  return r.source = this, r;
4270
4249
  }, t.create = function(r, n) {
4271
- return new qt(r, n);
4250
+ return new Jt(r, n);
4272
4251
  }, t;
4273
- }(Jt), qt = function(e) {
4274
- Se(t, e);
4252
+ }(Zt), Jt = function(e) {
4253
+ X(t, e);
4275
4254
  function t(r, n) {
4276
4255
  var i = e.call(this) || this;
4277
4256
  return i.destination = r, i.source = n, i;
@@ -4287,48 +4266,48 @@ var Ho = $r(function(e) {
4287
4266
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4288
4267
  }, t.prototype._subscribe = function(r) {
4289
4268
  var n, i;
4290
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ur;
4269
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Dr;
4291
4270
  }, t;
4292
- }(jr), kr = {
4271
+ }(Gr), jr = {
4293
4272
  now: function() {
4294
- return (kr.delegate || Date).now();
4273
+ return (jr.delegate || Date).now();
4295
4274
  },
4296
4275
  delegate: void 0
4297
- }, Co = function(e) {
4298
- Se(t, e);
4276
+ }, To = function(e) {
4277
+ X(t, e);
4299
4278
  function t(r, n, i) {
4300
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kr);
4279
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jr);
4301
4280
  var o = e.call(this) || this;
4302
4281
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
4303
4282
  }
4304
4283
  return t.prototype.next = function(r) {
4305
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
4306
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
4284
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
4285
+ i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
4307
4286
  }, t.prototype._subscribe = function(r) {
4308
4287
  this._throwIfClosed(), this._trimBuffer();
4309
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
4310
- r.next(a[l]);
4288
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
4289
+ r.next(s[l]);
4311
4290
  return this._checkFinalizedStatuses(r), n;
4312
4291
  }, t.prototype._trimBuffer = function() {
4313
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
4314
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4292
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
4293
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
4315
4294
  for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
4316
4295
  u = h;
4317
4296
  u && o.splice(0, u + 1);
4318
4297
  }
4319
4298
  }, t;
4320
- }(jr);
4321
- const Kt = [], er = {}, Ao = (e, t = 0) => {
4322
- if (Kt.indexOf(e) == -1) {
4323
- const r = new Co(t);
4324
- er[e] = r, Kt.push(e);
4299
+ }(Gr);
4300
+ const Yt = [], qt = {}, Ho = (e, t = 0) => {
4301
+ if (Yt.indexOf(e) == -1) {
4302
+ const r = new To(t);
4303
+ qt[e] = r, Yt.push(e);
4325
4304
  }
4326
- return er[e];
4305
+ return qt[e];
4327
4306
  };
4328
- let xt = "en-UK", Vr = "true", wt = 0, St = "";
4329
- const Po = (e, t, r, n) => {
4330
- xt = e || "en-UK", Vr = t || "true", wt = +n || 0, St = r || "";
4331
- }, tr = ({ local: e, options: t = {}, amount: r }) => {
4307
+ let yt = "en-UK", kr = "true", vt = 0, _t = "";
4308
+ const Co = (e, t, r, n) => {
4309
+ yt = e || "en-UK", kr = t || "true", vt = +n || 0, _t = r || "";
4310
+ }, Kt = ({ local: e, options: t = {}, amount: r }) => {
4332
4311
  try {
4333
4312
  return new Intl.NumberFormat(e, t);
4334
4313
  } catch (n) {
@@ -4339,24 +4318,24 @@ const Po = (e, t, r, n) => {
4339
4318
  }
4340
4319
  }, Le = (e, t, r = {}, n = !0) => {
4341
4320
  const i = {
4342
- maximumFractionDigits: wt,
4343
- minimumFractionDigits: wt,
4321
+ maximumFractionDigits: vt,
4322
+ minimumFractionDigits: vt,
4344
4323
  ...n && {
4345
4324
  style: "currency",
4346
4325
  currency: t,
4347
- currencyDisplay: Vr === "true" ? "symbol" : "code"
4326
+ currencyDisplay: kr === "true" ? "symbol" : "code"
4348
4327
  },
4349
4328
  ...r
4350
4329
  };
4351
- if (!St)
4352
- return tr({ local: xt, options: i }).format(e);
4353
- const s = tr({ local: xt, options: i }).formatToParts(e), a = s.find(({ type: h = "" } = {}) => h === "currency") || {}, l = s.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
4354
- return St === "before" ? `${a.value || t || ""} ${l}` : `${l} ${a.value || t || ""}`;
4330
+ if (!_t)
4331
+ return Kt({ local: yt, options: i }).format(e);
4332
+ const a = Kt({ local: yt, options: i }).formatToParts(e), s = a.find(({ type: h = "" } = {}) => h === "currency") || {}, l = a.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
4333
+ return _t === "before" ? `${s.value || t || ""} ${l}` : `${l} ${s.value || t || ""}`;
4355
4334
  };
4356
- window.emWidgets = { topic: Ao };
4335
+ window.emWidgets = { topic: Ho };
4357
4336
  const Ne = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4358
4337
  String(Number.MAX_SAFE_INTEGER).length;
4359
- const rr = {
4338
+ const er = {
4360
4339
  en: {
4361
4340
  generalMin: "Min",
4362
4341
  generalMax: "Max",
@@ -4382,82 +4361,82 @@ const rr = {
4382
4361
  carouselSubtitle: "En popüler ödeme yöntemleri"
4383
4362
  }
4384
4363
  };
4385
- function Mo(e) {
4386
- Jr(e, "svelte-u54bgm", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%}.Carousel{display:flex;gap:10px;height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1);cursor:pointer}.VisualDotIndicator .Dot:hover{opacity:0.7;transform:scale(1.1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px;transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo{display:flex;justify-content:center;align-content:center;align-items:center;height:100%}.CarouselCardWrapper .MethodLogo img{height:40px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
4364
+ function Ao(e) {
4365
+ Qr(e, "svelte-u54bgm", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%}.Carousel{display:flex;gap:10px;height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1);cursor:pointer}.VisualDotIndicator .Dot:hover{opacity:0.7;transform:scale(1.1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px;transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo{display:flex;justify-content:center;align-content:center;align-items:center;height:100%}.CarouselCardWrapper .MethodLogo img{height:40px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
4387
4366
  }
4388
- function nr(e, t, r) {
4367
+ function tr(e, t, r) {
4389
4368
  const n = e.slice();
4390
4369
  return n[40] = t[r], n[42] = r, n;
4391
4370
  }
4392
- function ir(e, t, r) {
4371
+ function rr(e, t, r) {
4393
4372
  const n = e.slice();
4394
4373
  return n[43] = t[r], n[42] = r, n;
4395
4374
  }
4396
- function Oo(e) {
4375
+ function Po(e) {
4397
4376
  let t, r = (
4398
4377
  /*$_*/
4399
4378
  e[8]("noFavoritePaymentMethods") + ""
4400
4379
  ), n;
4401
4380
  return {
4402
4381
  c() {
4403
- t = T("p"), n = F(r), P(t, "class", "NoFavoritePaymentMethods");
4382
+ t = H("p"), n = F(r), M(t, "class", "NoFavoritePaymentMethods");
4404
4383
  },
4405
4384
  m(i, o) {
4406
- j(i, t, o), v(t, n);
4385
+ G(i, t, o), v(t, n);
4407
4386
  },
4408
4387
  p(i, o) {
4409
4388
  o[0] & /*$_*/
4410
4389
  256 && r !== (r = /*$_*/
4411
- i[8]("noFavoritePaymentMethods") + "") && V(n, r);
4390
+ i[8]("noFavoritePaymentMethods") + "") && k(n, r);
4412
4391
  },
4413
4392
  d(i) {
4414
4393
  i && D(t);
4415
4394
  }
4416
4395
  };
4417
4396
  }
4418
- function Bo(e) {
4397
+ function Mo(e) {
4419
4398
  let t, r = !Ne(
4420
4399
  /*userAgent*/
4421
4400
  e[9]
4422
4401
  ) && /*promotedPaymentMethods*/
4423
- e[5].length > 1, n, i, o, s = !Ne(
4402
+ e[5].length > 1, n, i, o, a = !Ne(
4424
4403
  /*userAgent*/
4425
4404
  e[9]
4426
4405
  ) && /*promotedPaymentMethods*/
4427
- e[5].length > 1, a, l, u, h, f, c = r && or(e), g = Oe(
4406
+ e[5].length > 1, s, l, u, h, f, c = r && nr(e), g = Be(
4428
4407
  /*promotedPaymentMethods*/
4429
4408
  e[5]
4430
- ), d = [];
4431
- for (let p = 0; p < g.length; p += 1)
4432
- d[p] = sr(ir(e, g, p));
4433
- let m = s && ar(e), _ = Oe(Array(
4409
+ ), p = [];
4410
+ for (let m = 0; m < g.length; m += 1)
4411
+ p[m] = ir(rr(e, g, m));
4412
+ let d = a && or(e), _ = Be(Array(
4434
4413
  /*promotedPaymentMethods*/
4435
4414
  e[5].length
4436
4415
  )), E = [];
4437
- for (let p = 0; p < _.length; p += 1)
4438
- E[p] = ur(nr(e, _, p));
4416
+ for (let m = 0; m < _.length; m += 1)
4417
+ E[m] = sr(tr(e, _, m));
4439
4418
  return {
4440
4419
  c() {
4441
- t = T("div"), c && c.c(), n = R(), i = T("div");
4442
- for (let p = 0; p < d.length; p += 1)
4443
- d[p].c();
4444
- o = R(), m && m.c(), l = R(), u = T("div");
4445
- for (let p = 0; p < E.length; p += 1)
4446
- E[p].c();
4447
- P(i, "class", "Carousel"), P(t, "class", "CarouselCardsContainer"), Ge(() => (
4420
+ t = H("div"), c && c.c(), n = R(), i = H("div");
4421
+ for (let m = 0; m < p.length; m += 1)
4422
+ p[m].c();
4423
+ o = R(), d && d.c(), l = R(), u = H("div");
4424
+ for (let m = 0; m < E.length; m += 1)
4425
+ E[m].c();
4426
+ M(i, "class", "Carousel"), M(t, "class", "CarouselCardsContainer"), Ge(() => (
4448
4427
  /*div1_elementresize_handler*/
4449
4428
  e[28].call(t)
4450
- )), P(u, "class", "VisualDotIndicator");
4429
+ )), M(u, "class", "VisualDotIndicator");
4451
4430
  },
4452
- m(p, S) {
4453
- j(p, t, S), c && c.m(t, null), v(t, n), v(t, i);
4454
- for (let y = 0; y < d.length; y += 1)
4455
- d[y] && d[y].m(i, null);
4456
- e[26](i), v(t, o), m && m.m(t, null), a = tn(
4431
+ m(m, S) {
4432
+ G(m, t, S), c && c.m(t, null), v(t, n), v(t, i);
4433
+ for (let y = 0; y < p.length; y += 1)
4434
+ p[y] && p[y].m(i, null);
4435
+ e[26](i), v(t, o), d && d.m(t, null), s = en(
4457
4436
  t,
4458
4437
  /*div1_elementresize_handler*/
4459
4438
  e[28].bind(t)
4460
- ), j(p, l, S), j(p, u, S);
4439
+ ), G(m, l, S), G(m, u, S);
4461
4440
  for (let y = 0; y < E.length; y += 1)
4462
4441
  E[y] && E[y].m(u, null);
4463
4442
  h || (f = [
@@ -4481,61 +4460,61 @@ function Bo(e) {
4481
4460
  )
4482
4461
  ], h = !0);
4483
4462
  },
4484
- p(p, S) {
4463
+ p(m, S) {
4485
4464
  if (S[0] & /*promotedPaymentMethods*/
4486
4465
  32 && (r = !Ne(
4487
4466
  /*userAgent*/
4488
- p[9]
4467
+ m[9]
4489
4468
  ) && /*promotedPaymentMethods*/
4490
- p[5].length > 1), r ? c ? c.p(p, S) : (c = or(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), S[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals, $_, methodtype*/
4469
+ m[5].length > 1), r ? c ? c.p(m, S) : (c = nr(m), c.c(), c.m(t, n)) : c && (c.d(1), c = null), S[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals, $_, methodtype*/
4491
4470
  1521) {
4492
- g = Oe(
4471
+ g = Be(
4493
4472
  /*promotedPaymentMethods*/
4494
- p[5]
4473
+ m[5]
4495
4474
  );
4496
4475
  let y;
4497
4476
  for (y = 0; y < g.length; y += 1) {
4498
- const A = ir(p, g, y);
4499
- d[y] ? d[y].p(A, S) : (d[y] = sr(A), d[y].c(), d[y].m(i, null));
4477
+ const P = rr(m, g, y);
4478
+ p[y] ? p[y].p(P, S) : (p[y] = ir(P), p[y].c(), p[y].m(i, null));
4500
4479
  }
4501
- for (; y < d.length; y += 1)
4502
- d[y].d(1);
4503
- d.length = g.length;
4480
+ for (; y < p.length; y += 1)
4481
+ p[y].d(1);
4482
+ p.length = g.length;
4504
4483
  }
4505
4484
  if (S[0] & /*promotedPaymentMethods*/
4506
- 32 && (s = !Ne(
4485
+ 32 && (a = !Ne(
4507
4486
  /*userAgent*/
4508
- p[9]
4487
+ m[9]
4509
4488
  ) && /*promotedPaymentMethods*/
4510
- p[5].length > 1), s ? m ? m.p(p, S) : (m = ar(p), m.c(), m.m(t, null)) : m && (m.d(1), m = null), S[0] & /*activeIndex, promotedPaymentMethods*/
4489
+ m[5].length > 1), a ? d ? d.p(m, S) : (d = or(m), d.c(), d.m(t, null)) : d && (d.d(1), d = null), S[0] & /*activeIndex, promotedPaymentMethods*/
4511
4490
  96) {
4512
- _ = Oe(Array(
4491
+ _ = Be(Array(
4513
4492
  /*promotedPaymentMethods*/
4514
- p[5].length
4493
+ m[5].length
4515
4494
  ));
4516
4495
  let y;
4517
4496
  for (y = 0; y < _.length; y += 1) {
4518
- const A = nr(p, _, y);
4519
- E[y] ? E[y].p(A, S) : (E[y] = ur(A), E[y].c(), E[y].m(u, null));
4497
+ const P = tr(m, _, y);
4498
+ E[y] ? E[y].p(P, S) : (E[y] = sr(P), E[y].c(), E[y].m(u, null));
4520
4499
  }
4521
4500
  for (; y < E.length; y += 1)
4522
4501
  E[y].d(1);
4523
4502
  E.length = _.length;
4524
4503
  }
4525
4504
  },
4526
- d(p) {
4527
- p && (D(t), D(l), D(u)), c && c.d(), Ot(d, p), e[26](null), m && m.d(), a(), Ot(E, p), h = !1, ce(f);
4505
+ d(m) {
4506
+ m && (D(t), D(l), D(u)), c && c.d(), Pt(p, m), e[26](null), d && d.d(), s(), Pt(E, m), h = !1, fe(f);
4528
4507
  }
4529
4508
  };
4530
4509
  }
4531
- function or(e) {
4510
+ function nr(e) {
4532
4511
  let t, r, n;
4533
4512
  return {
4534
4513
  c() {
4535
- t = T("div"), t.innerHTML = '<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>', P(t, "class", "NavigationArrow Left");
4514
+ t = H("div"), t.innerHTML = '<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>', M(t, "class", "NavigationArrow Left");
4536
4515
  },
4537
4516
  m(i, o) {
4538
- j(i, t, o), r || (n = Z(
4517
+ G(i, t, o), r || (n = Z(
4539
4518
  t,
4540
4519
  "click",
4541
4520
  /*click_handler*/
@@ -4548,20 +4527,20 @@ function or(e) {
4548
4527
  }
4549
4528
  };
4550
4529
  }
4551
- function sr(e) {
4552
- let t, r, n, i, o, s, a, l, u, h = (
4530
+ function ir(e) {
4531
+ let t, r, n, i, o, a, s, l, u, h = (
4553
4532
  /*method*/
4554
4533
  (e[43].Label || /*method*/
4555
4534
  e[43].Name) + ""
4556
- ), f, c, g, d, m = (
4535
+ ), f, c, g, p, d = (
4557
4536
  /*$_*/
4558
4537
  e[8](`${/*methodtype*/
4559
4538
  e[0]}${/*method*/
4560
4539
  e[43].ProcessingTime}`) + ""
4561
- ), _, E, p, S, y, A = (
4540
+ ), _, E, m, S, y, P = (
4562
4541
  /*$_*/
4563
4542
  e[8]("generalMin") + ""
4564
- ), H, $, ee = Le(
4543
+ ), C, $, ee = Le(
4565
4544
  /*method*/
4566
4545
  e[43].DisplayCurrency.MinAmountLimit,
4567
4546
  /*method*/
@@ -4587,7 +4566,7 @@ function sr(e) {
4587
4566
  ) + "", te, Te, J, Y = (
4588
4567
  /*$_*/
4589
4568
  e[8]("generalMax") + ""
4590
- ), k, He, re = Le(
4569
+ ), j, He, re = Le(
4591
4570
  /*method*/
4592
4571
  e[43].DisplayCurrency.MaxAmountLimit,
4593
4572
  /*method*/
@@ -4610,8 +4589,8 @@ function sr(e) {
4610
4589
  e[7]
4611
4590
  )
4612
4591
  }
4613
- ) + "", me, Ce, W, de, Ae;
4614
- function Ye() {
4592
+ ) + "", pe, Ce, W, be, Ae;
4593
+ function Qe() {
4615
4594
  return (
4616
4595
  /*click_handler_1*/
4617
4596
  e[25](
@@ -4624,30 +4603,30 @@ function sr(e) {
4624
4603
  }
4625
4604
  return {
4626
4605
  c() {
4627
- t = T("div"), r = T("div"), n = T("img"), s = R(), a = T("div"), l = T("div"), u = T("span"), f = F(h), c = R(), g = T("div"), d = T("span"), _ = F(m), E = R(), p = T("div"), S = T("span"), y = T("span"), H = F(A), $ = R(), te = F(ee), Te = R(), J = T("span"), k = F(Y), He = R(), me = F(re), Ce = R(), Mt(n.src, i = /*method*/
4628
- e[43].LogoUrl) || P(n, "src", i), P(n, "alt", o = /*method*/
4629
- e[43].Label), P(r, "class", "MethodLogo"), P(l, "class", "MethodTitle"), P(g, "class", "MethodProcessingTime"), P(S, "class", "Limits"), P(p, "class", "MethodLimits"), P(a, "class", "MethodInfo"), P(t, "class", W = `CarouselCardWrapper ${/*index*/
4606
+ t = H("div"), r = H("div"), n = H("img"), a = R(), s = H("div"), l = H("div"), u = H("span"), f = F(h), c = R(), g = H("div"), p = H("span"), _ = F(d), E = R(), m = H("div"), S = H("span"), y = H("span"), C = F(P), $ = R(), te = F(ee), Te = R(), J = H("span"), j = F(Y), He = R(), pe = F(re), Ce = R(), At(n.src, i = /*method*/
4607
+ e[43].LogoUrl) || M(n, "src", i), M(n, "alt", o = /*method*/
4608
+ e[43].Label), M(r, "class", "MethodLogo"), M(l, "class", "MethodTitle"), M(g, "class", "MethodProcessingTime"), M(S, "class", "Limits"), M(m, "class", "MethodLimits"), M(s, "class", "MethodInfo"), M(t, "class", W = `CarouselCardWrapper ${/*index*/
4630
4609
  e[42] === /*activeIndex*/
4631
4610
  e[6] ? "active" : ""}`);
4632
4611
  },
4633
4612
  m(q, I) {
4634
- j(q, t, I), v(t, r), v(r, n), v(t, s), v(t, a), v(a, l), v(l, u), v(u, f), v(a, c), v(a, g), v(g, d), v(d, _), v(a, E), v(a, p), v(p, S), v(S, y), v(y, H), v(y, $), v(y, te), v(S, Te), v(S, J), v(J, k), v(J, He), v(J, me), v(t, Ce), de || (Ae = Z(t, "click", Ye), de = !0);
4613
+ G(q, t, I), v(t, r), v(r, n), v(t, a), v(t, s), v(s, l), v(l, u), v(u, f), v(s, c), v(s, g), v(g, p), v(p, _), v(s, E), v(s, m), v(m, S), v(S, y), v(y, C), v(y, $), v(y, te), v(S, Te), v(S, J), v(J, j), v(J, He), v(J, pe), v(t, Ce), be || (Ae = Z(t, "click", Qe), be = !0);
4635
4614
  },
4636
4615
  p(q, I) {
4637
4616
  e = q, I[0] & /*promotedPaymentMethods*/
4638
- 32 && !Mt(n.src, i = /*method*/
4639
- e[43].LogoUrl) && P(n, "src", i), I[0] & /*promotedPaymentMethods*/
4617
+ 32 && !At(n.src, i = /*method*/
4618
+ e[43].LogoUrl) && M(n, "src", i), I[0] & /*promotedPaymentMethods*/
4640
4619
  32 && o !== (o = /*method*/
4641
- e[43].Label) && P(n, "alt", o), I[0] & /*promotedPaymentMethods*/
4620
+ e[43].Label) && M(n, "alt", o), I[0] & /*promotedPaymentMethods*/
4642
4621
  32 && h !== (h = /*method*/
4643
4622
  (e[43].Label || /*method*/
4644
- e[43].Name) + "") && V(f, h), I[0] & /*$_, methodtype, promotedPaymentMethods*/
4645
- 289 && m !== (m = /*$_*/
4623
+ e[43].Name) + "") && k(f, h), I[0] & /*$_, methodtype, promotedPaymentMethods*/
4624
+ 289 && d !== (d = /*$_*/
4646
4625
  e[8](`${/*methodtype*/
4647
4626
  e[0]}${/*method*/
4648
- e[43].ProcessingTime}`) + "") && V(_, m), I[0] & /*$_*/
4649
- 256 && A !== (A = /*$_*/
4650
- e[8]("generalMin") + "") && V(H, A), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4627
+ e[43].ProcessingTime}`) + "") && k(_, d), I[0] & /*$_*/
4628
+ 256 && P !== (P = /*$_*/
4629
+ e[8]("generalMin") + "") && k(C, P), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4651
4630
  176 && ee !== (ee = Le(
4652
4631
  /*method*/
4653
4632
  e[43].DisplayCurrency.MinAmountLimit,
@@ -4671,9 +4650,9 @@ function sr(e) {
4671
4650
  e[7]
4672
4651
  )
4673
4652
  }
4674
- ) + "") && V(te, ee), I[0] & /*$_*/
4653
+ ) + "") && k(te, ee), I[0] & /*$_*/
4675
4654
  256 && Y !== (Y = /*$_*/
4676
- e[8]("generalMax") + "") && V(k, Y), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4655
+ e[8]("generalMax") + "") && k(j, Y), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4677
4656
  176 && re !== (re = Le(
4678
4657
  /*method*/
4679
4658
  e[43].DisplayCurrency.MaxAmountLimit,
@@ -4697,24 +4676,24 @@ function sr(e) {
4697
4676
  e[7]
4698
4677
  )
4699
4678
  }
4700
- ) + "") && V(me, re), I[0] & /*activeIndex*/
4679
+ ) + "") && k(pe, re), I[0] & /*activeIndex*/
4701
4680
  64 && W !== (W = `CarouselCardWrapper ${/*index*/
4702
4681
  e[42] === /*activeIndex*/
4703
- e[6] ? "active" : ""}`) && P(t, "class", W);
4682
+ e[6] ? "active" : ""}`) && M(t, "class", W);
4704
4683
  },
4705
4684
  d(q) {
4706
- q && D(t), de = !1, Ae();
4685
+ q && D(t), be = !1, Ae();
4707
4686
  }
4708
4687
  };
4709
4688
  }
4710
- function ar(e) {
4689
+ function or(e) {
4711
4690
  let t, r, n;
4712
4691
  return {
4713
4692
  c() {
4714
- t = T("div"), t.innerHTML = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>', P(t, "class", "NavigationArrow Right");
4693
+ t = H("div"), t.innerHTML = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>', M(t, "class", "NavigationArrow Right");
4715
4694
  },
4716
4695
  m(i, o) {
4717
- j(i, t, o), r || (n = Z(
4696
+ G(i, t, o), r || (n = Z(
4718
4697
  t,
4719
4698
  "click",
4720
4699
  /*click_handler_2*/
@@ -4727,98 +4706,98 @@ function ar(e) {
4727
4706
  }
4728
4707
  };
4729
4708
  }
4730
- function ur(e) {
4709
+ function sr(e) {
4731
4710
  let t, r;
4732
4711
  return {
4733
4712
  c() {
4734
- t = T("div"), P(t, "class", r = `Dot ${/*index*/
4713
+ t = H("div"), M(t, "class", r = `Dot ${/*index*/
4735
4714
  e[42] === /*activeIndex*/
4736
4715
  e[6] ? "active" : ""}`);
4737
4716
  },
4738
4717
  m(n, i) {
4739
- j(n, t, i);
4718
+ G(n, t, i);
4740
4719
  },
4741
4720
  p(n, i) {
4742
4721
  i[0] & /*activeIndex*/
4743
4722
  64 && r !== (r = `Dot ${/*index*/
4744
4723
  n[42] === /*activeIndex*/
4745
- n[6] ? "active" : ""}`) && P(t, "class", r);
4724
+ n[6] ? "active" : ""}`) && M(t, "class", r);
4746
4725
  },
4747
4726
  d(n) {
4748
4727
  n && D(t);
4749
4728
  }
4750
4729
  };
4751
4730
  }
4752
- function Io(e) {
4731
+ function Bo(e) {
4753
4732
  let t, r, n, i, o = (
4754
4733
  /*$_*/
4755
4734
  e[8]("carouselTitle") + ""
4756
- ), s, a, l, u = (
4735
+ ), a, s, l, u = (
4757
4736
  /*$_*/
4758
4737
  e[8]("carouselSubtitle") + ""
4759
4738
  ), h, f;
4760
- function c(m, _) {
4739
+ function c(d, _) {
4761
4740
  return (
4762
4741
  /*promotedPaymentMethods*/
4763
- m[5].length > 0 ? Bo : Oo
4742
+ d[5].length > 0 ? Mo : Po
4764
4743
  );
4765
4744
  }
4766
- let g = c(e), d = g(e);
4745
+ let g = c(e), p = g(e);
4767
4746
  return {
4768
4747
  c() {
4769
- t = T("div"), r = T("div"), n = T("div"), i = T("h4"), s = F(o), a = R(), l = T("p"), h = F(u), f = R(), d.c(), P(n, "class", "CarouselHeader"), P(r, "class", "CashierCarouselWarpper");
4748
+ t = H("div"), r = H("div"), n = H("div"), i = H("h4"), a = F(o), s = R(), l = H("p"), h = F(u), f = R(), p.c(), M(n, "class", "CarouselHeader"), M(r, "class", "CashierCarouselWarpper");
4770
4749
  },
4771
- m(m, _) {
4772
- j(m, t, _), v(t, r), v(r, n), v(n, i), v(i, s), v(n, a), v(n, l), v(l, h), v(r, f), d.m(r, null), e[29](t);
4750
+ m(d, _) {
4751
+ G(d, t, _), v(t, r), v(r, n), v(n, i), v(i, a), v(n, s), v(n, l), v(l, h), v(r, f), p.m(r, null), e[29](t);
4773
4752
  },
4774
- p(m, _) {
4753
+ p(d, _) {
4775
4754
  _[0] & /*$_*/
4776
4755
  256 && o !== (o = /*$_*/
4777
- m[8]("carouselTitle") + "") && V(s, o), _[0] & /*$_*/
4756
+ d[8]("carouselTitle") + "") && k(a, o), _[0] & /*$_*/
4778
4757
  256 && u !== (u = /*$_*/
4779
- m[8]("carouselSubtitle") + "") && V(h, u), g === (g = c(m)) && d ? d.p(m, _) : (d.d(1), d = g(m), d && (d.c(), d.m(r, null)));
4758
+ d[8]("carouselSubtitle") + "") && k(h, u), g === (g = c(d)) && p ? p.p(d, _) : (p.d(1), p = g(d), p && (p.c(), p.m(r, null)));
4780
4759
  },
4781
4760
  i: L,
4782
4761
  o: L,
4783
- d(m) {
4784
- m && D(t), d.d(), e[29](null);
4762
+ d(d) {
4763
+ d && D(t), p.d(), e[29](null);
4785
4764
  }
4786
4765
  };
4787
4766
  }
4788
- function Lo(e, t, r) {
4767
+ function Oo(e, t, r) {
4789
4768
  let n, i;
4790
- Qr(e, lo, (b) => r(8, i = b));
4791
- let { lang: o = "en" } = t, { local: s = "en-US" } = t, { currencysymbol: a = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "0" } = t, { methodtype: h = "" } = t, { clientstyling: f = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: g = "" } = t, { translationurl: d = "" } = t, m = {}, _, E = [], p = 0, S = !0, y = 0, A = !1, H, $, ee = window.navigator.userAgent;
4769
+ Zr(e, ao, (b) => r(8, i = b));
4770
+ let { lang: o = "en" } = t, { local: a = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "0" } = t, { methodtype: h = "" } = t, { clientstyling: f = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: g = "" } = t, { translationurl: p = "" } = t, d = {}, _, E = [], m = 0, S = !0, y = 0, P = !1, C, $, ee = window.navigator.userAgent;
4792
4771
  const te = (b) => {
4793
- const { data: { type: O } = {} } = b || {};
4794
- switch (O) {
4772
+ const { data: { type: B } = {} } = b || {};
4773
+ switch (B) {
4795
4774
  case "PromotedPaymentMethods": {
4796
- r(5, E = b?.data?.promotedPaymentMethods), r(6, p = Math.floor((E.length - 1) / 2));
4775
+ r(5, E = b?.data?.promotedPaymentMethods), r(6, m = Math.floor((E.length - 1) / 2));
4797
4776
  break;
4798
4777
  }
4799
4778
  case "PrecisionCurrenciesMap": {
4800
- r(4, m = b?.data?.payload || {});
4779
+ r(4, d = b?.data?.payload || {});
4801
4780
  break;
4802
4781
  }
4803
4782
  }
4804
4783
  };
4805
- Object.keys(rr).forEach((b) => {
4806
- zt(b, rr[b]);
4784
+ Object.keys(er).forEach((b) => {
4785
+ Xt(b, er[b]);
4807
4786
  });
4808
4787
  const Te = () => {
4809
- let b = d;
4788
+ let b = p;
4810
4789
  if (b)
4811
- return fetch(b).then((O) => O.json()).then((O) => {
4812
- Object.keys(O).forEach((U) => {
4813
- zt(U, O[U]);
4790
+ return fetch(b).then((B) => B.json()).then((B) => {
4791
+ Object.keys(B).forEach((U) => {
4792
+ Xt(U, B[U]);
4814
4793
  });
4815
- }).catch((O) => {
4816
- console.log(O);
4794
+ }).catch((B) => {
4795
+ console.log(B);
4817
4796
  });
4818
4797
  }, J = () => {
4819
- ho(o);
4820
- }, Y = (b, O) => {
4821
- r(6, p = O), r(2, H.style.transform = k(), H), b.Name, window.postMessage({ type: "SelectPayMeth", details: b }, window.location.href), dispatchEvent(new CustomEvent(
4798
+ uo(o);
4799
+ }, Y = (b, B) => {
4800
+ r(6, m = B), r(2, C.style.transform = j(), C), b.Name, window.postMessage({ type: "SelectPayMeth", details: b }, window.location.href), dispatchEvent(new CustomEvent(
4822
4801
  "selectPayMeth",
4823
4802
  {
4824
4803
  detail: b,
@@ -4827,103 +4806,103 @@ function Lo(e, t, r) {
4827
4806
  composed: !0
4828
4807
  }
4829
4808
  ));
4830
- }, k = () => {
4809
+ }, j = () => {
4831
4810
  if (E.length == 1)
4832
4811
  return "translateX(0px)";
4833
- const U = 160 + 5, At = U * E.length;
4834
- let qe;
4835
- E.length % 2 === 1 ? qe = Math.floor(E.length / 2) : qe = Math.floor(E.length / 2) - 0.5;
4836
- let Wr = $ - At;
4837
- const zr = qe - p;
4838
- return `translateX(${Wr / 2 + zr * U - 20}px)`;
4812
+ const U = 160 + 5, Ht = U * E.length;
4813
+ let Je;
4814
+ E.length % 2 === 1 ? Je = Math.floor(E.length / 2) : Je = Math.floor(E.length / 2) - 0.5;
4815
+ let Xr = $ - Ht;
4816
+ const Wr = Je - m;
4817
+ return `translateX(${Xr / 2 + Wr * U - 20}px)`;
4839
4818
  }, He = (b) => {
4840
- y = b.touches[0].clientX, A = !0, H.classList.add("dragging");
4819
+ y = b.touches[0].clientX, P = !0, C.classList.add("dragging");
4841
4820
  }, re = (b) => {
4842
- if (!A)
4821
+ if (!P)
4843
4822
  return;
4844
- const O = b.touches[0].clientX;
4845
- Math.abs(O - y) > 10 && b.preventDefault();
4846
- }, me = (b) => {
4847
- if (!A)
4823
+ const B = b.touches[0].clientX;
4824
+ Math.abs(B - y) > 10 && b.preventDefault();
4825
+ }, pe = (b) => {
4826
+ if (!P)
4848
4827
  return;
4849
- A = !1, H.classList.remove("dragging");
4850
- const O = b.changedTouches[0].clientX, U = y - O;
4851
- Math.abs(U) > 50 && (U > 0 && p < E.length - 1 ? r(6, p++, p) : U < 0 && p > 0 && r(6, p--, p), r(2, H.style.transform = k(), H));
4828
+ P = !1, C.classList.remove("dragging");
4829
+ const B = b.changedTouches[0].clientX, U = y - B;
4830
+ Math.abs(U) > 50 && (U > 0 && m < E.length - 1 ? r(6, m++, m) : U < 0 && m > 0 && r(6, m--, m), r(2, C.style.transform = j(), C));
4852
4831
  }, Ce = () => {
4853
- S && (r(2, H.style.transform = k(), H), S = !1);
4832
+ S && (r(2, C.style.transform = j(), C), S = !1);
4854
4833
  }, W = (b) => {
4855
- b === "next" && p < E.length - 1 ? r(6, p++, p) : b === "prev" && p > 0 && r(6, p--, p), r(2, H.style.transform = k(), H);
4834
+ b === "next" && m < E.length - 1 ? r(6, m++, m) : b === "prev" && m > 0 && r(6, m--, m), r(2, C.style.transform = j(), C);
4856
4835
  };
4857
- on(() => (Po(s, a, l, u), window.addEventListener("message", te), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), H && k(), () => {
4836
+ nn(() => (Co(a, s, l, u), window.addEventListener("message", te), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), C && j(), () => {
4858
4837
  window.removeEventListener("message", te);
4859
4838
  }));
4860
- const de = () => W("prev"), Ae = (b, O) => Y(b, O);
4861
- function Ye(b) {
4839
+ const be = () => W("prev"), Ae = (b, B) => Y(b, B);
4840
+ function Qe(b) {
4862
4841
  Fe[b ? "unshift" : "push"](() => {
4863
- H = b, r(2, H);
4842
+ C = b, r(2, C);
4864
4843
  });
4865
4844
  }
4866
4845
  const q = () => W("next");
4867
4846
  function I() {
4868
4847
  $ = this.clientWidth, r(3, $);
4869
4848
  }
4870
- function Xr(b) {
4849
+ function Vr(b) {
4871
4850
  Fe[b ? "unshift" : "push"](() => {
4872
4851
  _ = b, r(1, _);
4873
4852
  });
4874
4853
  }
4875
4854
  return e.$$set = (b) => {
4876
- "lang" in b && r(15, o = b.lang), "local" in b && r(16, s = b.local), "currencysymbol" in b && r(17, a = b.currencysymbol), "currencyposition" in b && r(18, l = b.currencyposition), "currencydecimals" in b && r(19, u = b.currencydecimals), "methodtype" in b && r(0, h = b.methodtype), "clientstyling" in b && r(20, f = b.clientstyling), "clientstylingurl" in b && r(21, c = b.clientstylingurl), "mbsource" in b && r(22, g = b.mbsource), "translationurl" in b && r(23, d = b.translationurl);
4855
+ "lang" in b && r(15, o = b.lang), "local" in b && r(16, a = b.local), "currencysymbol" in b && r(17, s = b.currencysymbol), "currencyposition" in b && r(18, l = b.currencyposition), "currencydecimals" in b && r(19, u = b.currencydecimals), "methodtype" in b && r(0, h = b.methodtype), "clientstyling" in b && r(20, f = b.clientstyling), "clientstylingurl" in b && r(21, c = b.clientstylingurl), "mbsource" in b && r(22, g = b.mbsource), "translationurl" in b && r(23, p = b.translationurl);
4877
4856
  }, e.$$.update = () => {
4878
4857
  e.$$.dirty[0] & /*lang*/
4879
4858
  32768 && o && J(), e.$$.dirty[0] & /*lang, translationurl*/
4880
- 8421376 && o && d && Te(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
4881
- 12 && H && $ && Ce(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4882
- 1048578 && f && _ && co(_, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4883
- 2097154 && c && _ && fo(_, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4884
- 4194306 && g && _ && po(_, `${g}.Style`), e.$$.dirty[0] & /*currencydecimals*/
4859
+ 8421376 && o && p && Te(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
4860
+ 12 && C && $ && Ce(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4861
+ 1048578 && f && _ && lo(_, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4862
+ 2097154 && c && _ && ho(_, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4863
+ 4194306 && g && _ && co(_, `${g}.Style`), e.$$.dirty[0] & /*currencydecimals*/
4885
4864
  524288 && r(7, n = Number(u));
4886
4865
  }, [
4887
4866
  h,
4888
4867
  _,
4889
- H,
4868
+ C,
4890
4869
  $,
4891
- m,
4870
+ d,
4892
4871
  E,
4893
- p,
4872
+ m,
4894
4873
  n,
4895
4874
  i,
4896
4875
  ee,
4897
4876
  Y,
4898
4877
  He,
4899
4878
  re,
4900
- me,
4879
+ pe,
4901
4880
  W,
4902
4881
  o,
4903
- s,
4904
4882
  a,
4883
+ s,
4905
4884
  l,
4906
4885
  u,
4907
4886
  f,
4908
4887
  c,
4909
4888
  g,
4910
- d,
4911
- de,
4889
+ p,
4890
+ be,
4912
4891
  Ae,
4913
- Ye,
4892
+ Qe,
4914
4893
  q,
4915
4894
  I,
4916
- Xr
4895
+ Vr
4917
4896
  ];
4918
4897
  }
4919
- class No extends gn {
4898
+ class Io extends bn {
4920
4899
  constructor(t) {
4921
4900
  super(), dn(
4922
4901
  this,
4923
4902
  t,
4924
- Lo,
4925
- Io,
4926
- hr,
4903
+ Oo,
4904
+ Bo,
4905
+ ur,
4927
4906
  {
4928
4907
  lang: 15,
4929
4908
  local: 16,
@@ -4936,7 +4915,7 @@ class No extends gn {
4936
4915
  mbsource: 22,
4937
4916
  translationurl: 23
4938
4917
  },
4939
- Mo,
4918
+ Ao,
4940
4919
  [-1, -1]
4941
4920
  );
4942
4921
  }
@@ -5001,7 +4980,7 @@ class No extends gn {
5001
4980
  this.$$set({ translationurl: t }), N();
5002
4981
  }
5003
4982
  }
5004
- bn(No, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4983
+ pn(Io, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
5005
4984
  export {
5006
- No as C
4985
+ Io as C
5007
4986
  };