@everymatrix/cashier-carousel 1.85.16 → 1.85.18

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,50 +1,50 @@
1
- function D() {
1
+ function L() {
2
2
  }
3
- function qt(e) {
3
+ function lr(e) {
4
4
  return e();
5
5
  }
6
- function Et() {
6
+ function Pt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ae(e) {
10
- e.forEach(qt);
9
+ function ce(e) {
10
+ e.forEach(lr);
11
11
  }
12
- function yt(e) {
12
+ function Tt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Kt(e, t) {
15
+ function hr(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- let we;
19
- function xt(e, t) {
20
- return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
18
+ let Me;
19
+ function Mt(e, t) {
20
+ return e === t ? !0 : (Me || (Me = document.createElement("a")), Me.href = t, e === Me.href);
21
21
  }
22
- function Ir(e) {
22
+ function Zr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function er(e, ...t) {
25
+ function cr(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
29
- return D;
29
+ return L;
30
30
  }
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Lr(e, t, r) {
35
- e.$$.on_destroy.push(er(t, r));
34
+ function Qr(e, t, r) {
35
+ e.$$.on_destroy.push(cr(t, r));
36
36
  }
37
- function S(e, t) {
37
+ function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Nr(e, t, r) {
41
- const n = $r(e);
40
+ function Jr(e, t, r) {
41
+ const n = Yr(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = P("style");
44
- i.id = t, i.textContent = r, Rr(n, i);
43
+ const i = T("style");
44
+ i.id = t, i.textContent = r, qr(n, i);
45
45
  }
46
46
  }
47
- function $r(e) {
47
+ function Yr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,46 +54,80 @@ function $r(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function Rr(e, t) {
58
- return S(
57
+ function qr(e, t) {
58
+ return v(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function G(e, t, r) {
64
+ function j(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
- function R(e) {
67
+ function D(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function St(e, t) {
70
+ function Ot(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 P(e) {
74
+ function T(e) {
75
75
  return document.createElement(e);
76
76
  }
77
- function $(e) {
77
+ function F(e) {
78
78
  return document.createTextNode(e);
79
79
  }
80
- function j() {
81
- return $(" ");
80
+ function R() {
81
+ return F(" ");
82
82
  }
83
- function Be(e, t, r, n) {
83
+ function Z(e, t, r, n) {
84
84
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
85
  }
86
- function O(e, t, r) {
86
+ function P(e, t, r) {
87
87
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
88
  }
89
- function Dr(e) {
89
+ function Kr(e) {
90
90
  return Array.from(e.childNodes);
91
91
  }
92
- function k(e, t) {
92
+ function V(e, t) {
93
93
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
94
94
  t);
95
95
  }
96
- function Ur(e) {
96
+ let Oe;
97
+ function en() {
98
+ if (Oe === void 0) {
99
+ Oe = !1;
100
+ try {
101
+ typeof window < "u" && window.parent && window.parent.document;
102
+ } catch {
103
+ Oe = !0;
104
+ }
105
+ }
106
+ return Oe;
107
+ }
108
+ function tn(e, t) {
109
+ getComputedStyle(e).position === "static" && (e.style.position = "relative");
110
+ const n = T("iframe");
111
+ n.setAttribute(
112
+ "style",
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
+ ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
115
+ const i = en();
116
+ let o;
117
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Z(
118
+ window,
119
+ "message",
120
+ /** @param {MessageEvent} event */
121
+ (s) => {
122
+ s.source === n.contentWindow && t();
123
+ }
124
+ )) : (n.src = "about:blank", n.onload = () => {
125
+ o = Z(n.contentWindow, "resize", t), t();
126
+ }), v(e, n), () => {
127
+ (i || o && n.contentWindow) && o(), D(n);
128
+ };
129
+ }
130
+ function rn(e) {
97
131
  const t = {};
98
132
  return e.childNodes.forEach(
99
133
  /** @param {Element} node */
@@ -102,98 +136,98 @@ function Ur(e) {
102
136
  }
103
137
  ), t;
104
138
  }
105
- let be;
106
- function de(e) {
107
- be = e;
139
+ let ve;
140
+ function ye(e) {
141
+ ve = e;
108
142
  }
109
- function Gr() {
110
- if (!be)
143
+ function nn() {
144
+ if (!ve)
111
145
  throw new Error("Function called outside component initialization");
112
- return be;
146
+ return ve;
113
147
  }
114
- function Fr(e) {
115
- Gr().$$.on_mount.push(e);
148
+ function on(e) {
149
+ nn().$$.on_mount.push(e);
116
150
  }
117
- const te = [], Ne = [];
118
- let re = [];
119
- const Tt = [], jr = /* @__PURE__ */ Promise.resolve();
120
- let Ke = !1;
121
- function kr() {
122
- Ke || (Ke = !0, jr.then(N));
151
+ const oe = [], Ge = [];
152
+ let se = [];
153
+ const Bt = [], sn = /* @__PURE__ */ Promise.resolve();
154
+ let ut = !1;
155
+ function an() {
156
+ ut || (ut = !0, sn.then(N));
123
157
  }
124
- function et(e) {
125
- re.push(e);
158
+ function je(e) {
159
+ se.push(e);
126
160
  }
127
- const Xe = /* @__PURE__ */ new Set();
128
- let K = 0;
161
+ const et = /* @__PURE__ */ new Set();
162
+ let ne = 0;
129
163
  function N() {
130
- if (K !== 0)
164
+ if (ne !== 0)
131
165
  return;
132
- const e = be;
166
+ const e = ve;
133
167
  do {
134
168
  try {
135
- for (; K < te.length; ) {
136
- const t = te[K];
137
- K++, de(t), Vr(t.$$);
169
+ for (; ne < oe.length; ) {
170
+ const t = oe[ne];
171
+ ne++, ye(t), un(t.$$);
138
172
  }
139
173
  } catch (t) {
140
- throw te.length = 0, K = 0, t;
174
+ throw oe.length = 0, ne = 0, t;
141
175
  }
142
- for (de(null), te.length = 0, K = 0; Ne.length; )
143
- Ne.pop()();
144
- for (let t = 0; t < re.length; t += 1) {
145
- const r = re[t];
146
- Xe.has(r) || (Xe.add(r), r());
176
+ for (ye(null), oe.length = 0, ne = 0; Ge.length; )
177
+ Ge.pop()();
178
+ for (let t = 0; t < se.length; t += 1) {
179
+ const r = se[t];
180
+ et.has(r) || (et.add(r), r());
147
181
  }
148
- re.length = 0;
149
- } while (te.length);
150
- for (; Tt.length; )
151
- Tt.pop()();
152
- Ke = !1, Xe.clear(), de(e);
182
+ se.length = 0;
183
+ } while (oe.length);
184
+ for (; Bt.length; )
185
+ Bt.pop()();
186
+ ut = !1, et.clear(), ye(e);
153
187
  }
154
- function Vr(e) {
188
+ function un(e) {
155
189
  if (e.fragment !== null) {
156
- e.update(), ae(e.before_update);
190
+ e.update(), ce(e.before_update);
157
191
  const t = e.dirty;
158
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
192
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
159
193
  }
160
194
  }
161
- function Xr(e) {
195
+ function ln(e) {
162
196
  const t = [], r = [];
163
- re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
197
+ se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
164
198
  }
165
- const Wr = /* @__PURE__ */ new Set();
166
- function zr(e, t) {
167
- e && e.i && (Wr.delete(e), e.i(t));
199
+ const hn = /* @__PURE__ */ new Set();
200
+ function cn(e, t) {
201
+ e && e.i && (hn.delete(e), e.i(t));
168
202
  }
169
- function He(e) {
203
+ function Be(e) {
170
204
  return e?.length !== void 0 ? e : Array.from(e);
171
205
  }
172
- function Zr(e, t, r) {
206
+ function fn(e, t, r) {
173
207
  const { fragment: n, after_update: i } = e.$$;
174
- n && n.m(t, r), et(() => {
175
- const o = e.$$.on_mount.map(qt).filter(yt);
176
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
177
- }), i.forEach(et);
208
+ n && n.m(t, r), je(() => {
209
+ const o = e.$$.on_mount.map(lr).filter(Tt);
210
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
211
+ }), i.forEach(je);
178
212
  }
179
- function Qr(e, t) {
213
+ function pn(e, t) {
180
214
  const r = e.$$;
181
- r.fragment !== null && (Xr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
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 = []);
182
216
  }
183
- function Yr(e, t) {
184
- e.$$.dirty[0] === -1 && (te.push(e), kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
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;
185
219
  }
186
- function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
187
- const l = be;
188
- de(e);
220
+ function dn(e, t, r, n, i, o, s = null, a = [-1]) {
221
+ const l = ve;
222
+ ye(e);
189
223
  const u = e.$$ = {
190
224
  fragment: null,
191
225
  ctx: [],
192
226
  // state
193
227
  props: o,
194
- update: D,
228
+ update: L,
195
229
  not_equal: i,
196
- bound: Et(),
230
+ bound: Pt(),
197
231
  // lifecycle
198
232
  on_mount: [],
199
233
  on_destroy: [],
@@ -202,28 +236,28 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
202
236
  after_update: [],
203
237
  context: new Map(t.context || (l ? l.$$.context : [])),
204
238
  // everything else
205
- callbacks: Et(),
239
+ callbacks: Pt(),
206
240
  dirty: a,
207
241
  skip_bound: !1,
208
242
  root: t.target || l.$$.root
209
243
  };
210
244
  s && s(u.root);
211
245
  let h = !1;
212
- if (u.ctx = r ? r(e, t.props || {}, (p, c, ...b) => {
213
- const y = b.length ? b[0] : c;
214
- return u.ctx && i(u.ctx[p], u.ctx[p] = y) && (!u.skip_bound && u.bound[p] && u.bound[p](y), h && Yr(e, p)), c;
215
- }) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
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) {
216
250
  if (t.hydrate) {
217
- const p = Dr(t.target);
218
- u.fragment && u.fragment.l(p), p.forEach(R);
251
+ const f = Kr(t.target);
252
+ u.fragment && u.fragment.l(f), f.forEach(D);
219
253
  } else
220
254
  u.fragment && u.fragment.c();
221
- t.intro && zr(e.$$.fragment), Zr(e, t.target, t.anchor), N();
255
+ t.intro && cn(e.$$.fragment), fn(e, t.target, t.anchor), N();
222
256
  }
223
- de(l);
257
+ ye(l);
224
258
  }
225
- let tr;
226
- typeof HTMLElement == "function" && (tr = class extends HTMLElement {
259
+ let fr;
260
+ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
227
261
  /** The Svelte component constructor */
228
262
  $$ctor;
229
263
  /** Slots */
@@ -265,29 +299,29 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
265
299
  let o;
266
300
  return {
267
301
  c: function() {
268
- o = P("slot"), i !== "default" && O(o, "name", i);
302
+ o = T("slot"), i !== "default" && P(o, "name", i);
269
303
  },
270
304
  /**
271
305
  * @param {HTMLElement} target
272
306
  * @param {HTMLElement} [anchor]
273
307
  */
274
308
  m: function(l, u) {
275
- G(l, o, u);
309
+ j(l, o, u);
276
310
  },
277
311
  d: function(l) {
278
- l && R(o);
312
+ l && D(o);
279
313
  }
280
314
  };
281
315
  };
282
316
  };
283
317
  if (await Promise.resolve(), !this.$$cn || this.$$c)
284
318
  return;
285
- const t = {}, r = Ur(this);
319
+ const t = {}, r = rn(this);
286
320
  for (const i of this.$$s)
287
321
  i in r && (t[i] = [e(i)]);
288
322
  for (const i of this.attributes) {
289
323
  const o = this.$$g_p(i.name);
290
- o in this.$$d || (this.$$d[o] = Me(o, i.value, this.$$p_d, "toProp"));
324
+ o in this.$$d || (this.$$d[o] = De(o, i.value, this.$$p_d, "toProp"));
291
325
  }
292
326
  for (const i in this.$$p_d)
293
327
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -305,7 +339,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
305
339
  this.$$r = !0;
306
340
  for (const i in this.$$p_d)
307
341
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
308
- const o = Me(
342
+ const o = De(
309
343
  i,
310
344
  this.$$d[i],
311
345
  this.$$p_d,
@@ -327,7 +361,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
327
361
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
328
362
  // and setting attributes through setAttribute etc, this is helpful
329
363
  attributeChangedCallback(e, t, r) {
330
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
364
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = De(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
331
365
  }
332
366
  disconnectedCallback() {
333
367
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -340,7 +374,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
340
374
  ) || e;
341
375
  }
342
376
  });
343
- function Me(e, t, r, n) {
377
+ function De(e, t, r, n) {
344
378
  const i = r[e]?.type;
345
379
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
346
380
  return t;
@@ -369,8 +403,8 @@ function Me(e, t, r, n) {
369
403
  return t;
370
404
  }
371
405
  }
372
- function qr(e, t, r, n, i, o) {
373
- let s = class extends tr {
406
+ function bn(e, t, r, n, i, o) {
407
+ let s = class extends fr {
374
408
  constructor() {
375
409
  super(e, r, i), this.$$p_d = t;
376
410
  }
@@ -386,7 +420,7 @@ function qr(e, t, r, n, i, o) {
386
420
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
387
421
  },
388
422
  set(l) {
389
- l = Me(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
423
+ l = De(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
390
424
  }
391
425
  });
392
426
  }), n.forEach((a) => {
@@ -398,7 +432,7 @@ function qr(e, t, r, n, i, o) {
398
432
  }), e.element = /** @type {any} */
399
433
  s, s;
400
434
  }
401
- class Kr {
435
+ class gn {
402
436
  /**
403
437
  * ### PRIVATE API
404
438
  *
@@ -417,7 +451,7 @@ class Kr {
417
451
  $$set = void 0;
418
452
  /** @returns {void} */
419
453
  $destroy() {
420
- Qr(this, 1), this.$destroy = D;
454
+ pn(this, 1), this.$destroy = L;
421
455
  }
422
456
  /**
423
457
  * @template {Extract<keyof Events, string>} K
@@ -426,8 +460,8 @@ class Kr {
426
460
  * @returns {() => void}
427
461
  */
428
462
  $on(t, r) {
429
- if (!yt(r))
430
- return D;
463
+ if (!Tt(r))
464
+ return L;
431
465
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
432
466
  return n.push(r), () => {
433
467
  const i = n.indexOf(r);
@@ -439,176 +473,176 @@ class Kr {
439
473
  * @returns {void}
440
474
  */
441
475
  $set(t) {
442
- this.$$set && !Ir(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);
443
477
  }
444
478
  }
445
- const en = "4";
446
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(en);
447
- const ee = [];
448
- function tn(e, t) {
479
+ const yn = "4";
480
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
481
+ const ie = [];
482
+ function vn(e, t) {
449
483
  return {
450
- subscribe: Ge(e, t).subscribe
484
+ subscribe: ze(e, t).subscribe
451
485
  };
452
486
  }
453
- function Ge(e, t = D) {
487
+ function ze(e, t = L) {
454
488
  let r;
455
489
  const n = /* @__PURE__ */ new Set();
456
490
  function i(a) {
457
- if (Kt(e, a) && (e = a, r)) {
458
- const l = !ee.length;
491
+ if (hr(e, a) && (e = a, r)) {
492
+ const l = !ie.length;
459
493
  for (const u of n)
460
- u[1](), ee.push(u, e);
494
+ u[1](), ie.push(u, e);
461
495
  if (l) {
462
- for (let u = 0; u < ee.length; u += 2)
463
- ee[u][0](ee[u + 1]);
464
- ee.length = 0;
496
+ for (let u = 0; u < ie.length; u += 2)
497
+ ie[u][0](ie[u + 1]);
498
+ ie.length = 0;
465
499
  }
466
500
  }
467
501
  }
468
502
  function o(a) {
469
503
  i(a(e));
470
504
  }
471
- function s(a, l = D) {
505
+ function s(a, l = L) {
472
506
  const u = [a, l];
473
- return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
507
+ return n.add(u), n.size === 1 && (r = t(i, o) || L), a(e), () => {
474
508
  n.delete(u), n.size === 0 && r && (r(), r = null);
475
509
  };
476
510
  }
477
511
  return { set: i, update: o, subscribe: s };
478
512
  }
479
- function ue(e, t, r) {
513
+ function fe(e, t, r) {
480
514
  const n = !Array.isArray(e), i = n ? [e] : e;
481
515
  if (!i.every(Boolean))
482
516
  throw new Error("derived() expects stores as input, got a falsy value");
483
517
  const o = t.length < 2;
484
- return tn(r, (s, a) => {
518
+ return vn(r, (s, a) => {
485
519
  let l = !1;
486
520
  const u = [];
487
- let h = 0, p = D;
521
+ let h = 0, f = L;
488
522
  const c = () => {
489
523
  if (h)
490
524
  return;
491
- p();
492
- const y = t(n ? u[0] : u, s, a);
493
- o ? s(y) : p = yt(y) ? y : D;
494
- }, b = i.map(
495
- (y, g) => er(
496
- y,
497
- (E) => {
498
- u[g] = E, h &= ~(1 << g), l && c();
525
+ f();
526
+ const d = t(n ? u[0] : u, s, a);
527
+ o ? s(d) : f = Tt(d) ? d : L;
528
+ }, g = i.map(
529
+ (d, m) => cr(
530
+ d,
531
+ (_) => {
532
+ u[m] = _, h &= ~(1 << m), l && c();
499
533
  },
500
534
  () => {
501
- h |= 1 << g;
535
+ h |= 1 << m;
502
536
  }
503
537
  )
504
538
  );
505
539
  return l = !0, c(), function() {
506
- ae(b), p(), l = !1;
540
+ ce(g), f(), l = !1;
507
541
  };
508
542
  });
509
543
  }
510
- function rn(e) {
544
+ function _n(e) {
511
545
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
512
546
  }
513
- var nn = function(t) {
514
- return on(t) && !sn(t);
547
+ var En = function(t) {
548
+ return xn(t) && !wn(t);
515
549
  };
516
- function on(e) {
550
+ function xn(e) {
517
551
  return !!e && typeof e == "object";
518
552
  }
519
- function sn(e) {
553
+ function wn(e) {
520
554
  var t = Object.prototype.toString.call(e);
521
- return t === "[object RegExp]" || t === "[object Date]" || ln(e);
555
+ return t === "[object RegExp]" || t === "[object Date]" || Hn(e);
522
556
  }
523
- var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
524
- function ln(e) {
525
- return e.$$typeof === un;
557
+ var Sn = typeof Symbol == "function" && Symbol.for, Tn = Sn ? Symbol.for("react.element") : 60103;
558
+ function Hn(e) {
559
+ return e.$$typeof === Tn;
526
560
  }
527
- function hn(e) {
561
+ function Cn(e) {
528
562
  return Array.isArray(e) ? [] : {};
529
563
  }
530
- function ge(e, t) {
531
- return t.clone !== !1 && t.isMergeableObject(e) ? ne(hn(e), e, t) : e;
564
+ function _e(e, t) {
565
+ return t.clone !== !1 && t.isMergeableObject(e) ? ae(Cn(e), e, t) : e;
532
566
  }
533
- function cn(e, t, r) {
567
+ function An(e, t, r) {
534
568
  return e.concat(t).map(function(n) {
535
- return ge(n, r);
569
+ return _e(n, r);
536
570
  });
537
571
  }
538
- function fn(e, t) {
572
+ function Pn(e, t) {
539
573
  if (!t.customMerge)
540
- return ne;
574
+ return ae;
541
575
  var r = t.customMerge(e);
542
- return typeof r == "function" ? r : ne;
576
+ return typeof r == "function" ? r : ae;
543
577
  }
544
- function pn(e) {
578
+ function Mn(e) {
545
579
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
546
580
  return Object.propertyIsEnumerable.call(e, t);
547
581
  }) : [];
548
582
  }
549
- function wt(e) {
550
- return Object.keys(e).concat(pn(e));
583
+ function It(e) {
584
+ return Object.keys(e).concat(Mn(e));
551
585
  }
552
- function rr(e, t) {
586
+ function pr(e, t) {
553
587
  try {
554
588
  return t in e;
555
589
  } catch {
556
590
  return !1;
557
591
  }
558
592
  }
559
- function mn(e, t) {
560
- return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
593
+ function On(e, t) {
594
+ return pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
561
595
  }
562
- function dn(e, t, r) {
596
+ function Bn(e, t, r) {
563
597
  var n = {};
564
- return r.isMergeableObject(e) && wt(e).forEach(function(i) {
565
- n[i] = ge(e[i], r);
566
- }), wt(t).forEach(function(i) {
567
- mn(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
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));
568
602
  }), n;
569
603
  }
570
- function ne(e, t, r) {
571
- r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ge;
604
+ function ae(e, t, r) {
605
+ r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = _e;
572
606
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
573
- return o ? n ? r.arrayMerge(e, t, r) : dn(e, t, r) : ge(t, r);
607
+ return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : _e(t, r);
574
608
  }
575
- ne.all = function(t, r) {
609
+ ae.all = function(t, r) {
576
610
  if (!Array.isArray(t))
577
611
  throw new Error("first argument should be an array");
578
612
  return t.reduce(function(n, i) {
579
- return ne(n, i, r);
613
+ return ae(n, i, r);
580
614
  }, {});
581
615
  };
582
- var bn = ne, gn = bn;
583
- const yn = /* @__PURE__ */ rn(gn);
584
- var tt = function(e, t) {
585
- return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
616
+ var In = ae, Ln = In;
617
+ const Nn = /* @__PURE__ */ _n(Ln);
618
+ var lt = function(e, t) {
619
+ return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
586
620
  r.__proto__ = n;
587
621
  } || function(r, n) {
588
622
  for (var i in n)
589
623
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
590
- }, tt(e, t);
624
+ }, lt(e, t);
591
625
  };
592
- function Fe(e, t) {
626
+ function Ze(e, t) {
593
627
  if (typeof t != "function" && t !== null)
594
628
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
595
- tt(e, t);
629
+ lt(e, t);
596
630
  function r() {
597
631
  this.constructor = e;
598
632
  }
599
633
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
600
634
  }
601
- var F = function() {
602
- return F = Object.assign || function(t) {
635
+ var G = function() {
636
+ return G = Object.assign || function(t) {
603
637
  for (var r, n = 1, i = arguments.length; n < i; n++) {
604
638
  r = arguments[n];
605
639
  for (var o in r)
606
640
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
607
641
  }
608
642
  return t;
609
- }, F.apply(this, arguments);
643
+ }, G.apply(this, arguments);
610
644
  };
611
- function vn(e, t) {
645
+ function Rn(e, t) {
612
646
  var r = {};
613
647
  for (var n in e)
614
648
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -617,43 +651,43 @@ function vn(e, t) {
617
651
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
618
652
  return r;
619
653
  }
620
- function We(e, t, r) {
654
+ function tt(e, t, r) {
621
655
  if (r || arguments.length === 2)
622
656
  for (var n = 0, i = t.length, o; n < i; n++)
623
657
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
624
658
  return e.concat(o || Array.prototype.slice.call(t));
625
659
  }
626
- function ze(e, t) {
627
- var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : xn;
660
+ function rt(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;
628
662
  return i(e, {
629
663
  cache: r,
630
664
  serializer: n
631
665
  });
632
666
  }
633
- function _n(e) {
667
+ function Dn(e) {
634
668
  return e == null || typeof e == "number" || typeof e == "boolean";
635
669
  }
636
- function En(e, t, r, n) {
637
- var i = _n(n) ? n : r(n), o = t.get(i);
670
+ function $n(e, t, r, n) {
671
+ var i = Dn(n) ? n : r(n), o = t.get(i);
638
672
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
639
673
  }
640
- function nr(e, t, r) {
674
+ function mr(e, t, r) {
641
675
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
642
676
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
643
677
  }
644
- function ir(e, t, r, n, i) {
678
+ function dr(e, t, r, n, i) {
645
679
  return r.bind(t, e, n, i);
646
680
  }
647
- function xn(e, t) {
648
- var r = e.length === 1 ? En : nr;
649
- return ir(e, this, r, t.cache.create(), t.serializer);
681
+ function Un(e, t) {
682
+ var r = e.length === 1 ? $n : mr;
683
+ return dr(e, this, r, t.cache.create(), t.serializer);
650
684
  }
651
- function Sn(e, t) {
652
- return ir(e, this, nr, t.cache.create(), t.serializer);
685
+ function Fn(e, t) {
686
+ return dr(e, this, mr, t.cache.create(), t.serializer);
653
687
  }
654
- var Tn = function() {
688
+ var Gn = function() {
655
689
  return JSON.stringify(arguments);
656
- }, wn = (
690
+ }, jn = (
657
691
  /** @class */
658
692
  function() {
659
693
  function e() {
@@ -665,71 +699,71 @@ var Tn = function() {
665
699
  this.cache[t] = r;
666
700
  }, e;
667
701
  }()
668
- ), Hn = {
702
+ ), kn = {
669
703
  create: function() {
670
- return new wn();
704
+ return new jn();
671
705
  }
672
- }, Ze = {
673
- variadic: Sn
674
- }, $e = function() {
675
- return $e = Object.assign || function(t) {
706
+ }, nt = {
707
+ variadic: Fn
708
+ }, ke = function() {
709
+ return ke = Object.assign || function(t) {
676
710
  for (var r, n = 1, i = arguments.length; n < i; n++) {
677
711
  r = arguments[n];
678
712
  for (var o in r)
679
713
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
680
714
  }
681
715
  return t;
682
- }, $e.apply(this, arguments);
716
+ }, ke.apply(this, arguments);
683
717
  };
684
- var v;
718
+ var x;
685
719
  (function(e) {
686
720
  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";
687
- })(v || (v = {}));
688
- var w;
721
+ })(x || (x = {}));
722
+ var C;
689
723
  (function(e) {
690
724
  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";
691
- })(w || (w = {}));
692
- var ie;
725
+ })(C || (C = {}));
726
+ var ue;
693
727
  (function(e) {
694
728
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
695
- })(ie || (ie = {}));
696
- function Ht(e) {
697
- return e.type === w.literal;
729
+ })(ue || (ue = {}));
730
+ function Lt(e) {
731
+ return e.type === C.literal;
698
732
  }
699
- function Pn(e) {
700
- return e.type === w.argument;
733
+ function Vn(e) {
734
+ return e.type === C.argument;
701
735
  }
702
- function or(e) {
703
- return e.type === w.number;
736
+ function br(e) {
737
+ return e.type === C.number;
704
738
  }
705
- function sr(e) {
706
- return e.type === w.date;
739
+ function gr(e) {
740
+ return e.type === C.date;
707
741
  }
708
- function ar(e) {
709
- return e.type === w.time;
742
+ function yr(e) {
743
+ return e.type === C.time;
710
744
  }
711
- function ur(e) {
712
- return e.type === w.select;
745
+ function vr(e) {
746
+ return e.type === C.select;
713
747
  }
714
- function lr(e) {
715
- return e.type === w.plural;
748
+ function _r(e) {
749
+ return e.type === C.plural;
716
750
  }
717
- function An(e) {
718
- return e.type === w.pound;
751
+ function Xn(e) {
752
+ return e.type === C.pound;
719
753
  }
720
- function hr(e) {
721
- return e.type === w.tag;
754
+ function Er(e) {
755
+ return e.type === C.tag;
722
756
  }
723
- function cr(e) {
724
- return !!(e && typeof e == "object" && e.type === ie.number);
757
+ function xr(e) {
758
+ return !!(e && typeof e == "object" && e.type === ue.number);
725
759
  }
726
- function rt(e) {
727
- return !!(e && typeof e == "object" && e.type === ie.dateTime);
760
+ function ht(e) {
761
+ return !!(e && typeof e == "object" && e.type === ue.dateTime);
728
762
  }
729
- var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
730
- function Bn(e) {
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) {
731
765
  var t = {};
732
- return e.replace(On, function(r) {
766
+ return e.replace(Wn, function(r) {
733
767
  var n = r.length;
734
768
  switch (r[0]) {
735
769
  case "G":
@@ -818,46 +852,46 @@ function Bn(e) {
818
852
  return "";
819
853
  }), t;
820
854
  }
821
- var H = function() {
822
- return H = Object.assign || function(t) {
855
+ var M = function() {
856
+ return M = Object.assign || function(t) {
823
857
  for (var r, n = 1, i = arguments.length; n < i; n++) {
824
858
  r = arguments[n];
825
859
  for (var o in r)
826
860
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
827
861
  }
828
862
  return t;
829
- }, H.apply(this, arguments);
863
+ }, M.apply(this, arguments);
830
864
  };
831
- var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
832
- function Cn(e) {
865
+ var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
866
+ function Qn(e) {
833
867
  if (e.length === 0)
834
868
  throw new Error("Number skeleton cannot be empty");
835
- for (var t = e.split(Mn).filter(function(c) {
869
+ for (var t = e.split(Zn).filter(function(c) {
836
870
  return c.length > 0;
837
871
  }), r = [], n = 0, i = t; n < i.length; n++) {
838
872
  var o = i[n], s = o.split("/");
839
873
  if (s.length === 0)
840
874
  throw new Error("Invalid number skeleton");
841
875
  for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
842
- var p = h[u];
843
- if (p.length === 0)
876
+ var f = h[u];
877
+ if (f.length === 0)
844
878
  throw new Error("Invalid number skeleton");
845
879
  }
846
880
  r.push({ stem: a, options: l });
847
881
  }
848
882
  return r;
849
883
  }
850
- function In(e) {
884
+ function Jn(e) {
851
885
  return e.replace(/^(.*?)-/, "");
852
886
  }
853
- var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
854
- function At(e) {
887
+ var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Sr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Tr = /^(0+)$/;
888
+ function Rt(e) {
855
889
  var t = {};
856
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
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) {
857
891
  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)), "";
858
892
  }), t;
859
893
  }
860
- function dr(e) {
894
+ function Hr(e) {
861
895
  switch (e) {
862
896
  case "sign-auto":
863
897
  return {
@@ -897,7 +931,7 @@ function dr(e) {
897
931
  };
898
932
  }
899
933
  }
900
- function Nn(e) {
934
+ function qn(e) {
901
935
  var t;
902
936
  if (e[0] === "E" && e[1] === "E" ? (t = {
903
937
  notation: "engineering"
@@ -905,17 +939,17 @@ function Nn(e) {
905
939
  notation: "scientific"
906
940
  }, e = e.slice(1)), t) {
907
941
  var r = e.slice(0, 2);
908
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
942
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tr.test(e))
909
943
  throw new Error("Malformed concise eng/scientific notation");
910
944
  t.minimumIntegerDigits = e.length;
911
945
  }
912
946
  return t;
913
947
  }
914
- function Ot(e) {
915
- var t = {}, r = dr(e);
948
+ function Dt(e) {
949
+ var t = {}, r = Hr(e);
916
950
  return r || t;
917
951
  }
918
- function $n(e) {
952
+ function Kn(e) {
919
953
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
920
954
  var i = n[r];
921
955
  switch (i.stem) {
@@ -939,7 +973,7 @@ function $n(e) {
939
973
  continue;
940
974
  case "measure-unit":
941
975
  case "unit":
942
- t.style = "unit", t.unit = In(i.options[0]);
976
+ t.style = "unit", t.unit = Jn(i.options[0]);
943
977
  continue;
944
978
  case "compact-short":
945
979
  case "K":
@@ -950,13 +984,13 @@ function $n(e) {
950
984
  t.notation = "compact", t.compactDisplay = "long";
951
985
  continue;
952
986
  case "scientific":
953
- t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
954
- return H(H({}, l), Ot(u));
987
+ t = M(M(M({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
988
+ return M(M({}, l), Dt(u));
955
989
  }, {}));
956
990
  continue;
957
991
  case "engineering":
958
- t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
959
- return H(H({}, l), Ot(u));
992
+ t = M(M(M({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
993
+ return M(M({}, l), Dt(u));
960
994
  }, {}));
961
995
  continue;
962
996
  case "notation-simple":
@@ -1001,45 +1035,45 @@ function $n(e) {
1001
1035
  case "integer-width":
1002
1036
  if (i.options.length > 1)
1003
1037
  throw new RangeError("integer-width stems only accept a single optional option");
1004
- i.options[0].replace(Ln, function(l, u, h, p, c, b) {
1038
+ i.options[0].replace(Yn, function(l, u, h, f, c, g) {
1005
1039
  if (u)
1006
1040
  t.minimumIntegerDigits = h.length;
1007
1041
  else {
1008
- if (p && c)
1042
+ if (f && c)
1009
1043
  throw new Error("We currently do not support maximum integer digits");
1010
- if (b)
1044
+ if (g)
1011
1045
  throw new Error("We currently do not support exact integer digits");
1012
1046
  }
1013
1047
  return "";
1014
1048
  });
1015
1049
  continue;
1016
1050
  }
1017
- if (mr.test(i.stem)) {
1051
+ if (Tr.test(i.stem)) {
1018
1052
  t.minimumIntegerDigits = i.stem.length;
1019
1053
  continue;
1020
1054
  }
1021
- if (Pt.test(i.stem)) {
1055
+ if (Nt.test(i.stem)) {
1022
1056
  if (i.options.length > 1)
1023
1057
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1024
- i.stem.replace(Pt, function(l, u, h, p, c, b) {
1025
- return h === "*" ? t.minimumFractionDigits = u.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1058
+ i.stem.replace(Nt, function(l, u, h, f, c, g) {
1059
+ 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), "";
1026
1060
  });
1027
1061
  var o = i.options[0];
1028
- o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), At(o)));
1062
+ o === "w" ? t = M(M({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = M(M({}, t), Rt(o)));
1029
1063
  continue;
1030
1064
  }
1031
- if (pr.test(i.stem)) {
1032
- t = H(H({}, t), At(i.stem));
1065
+ if (Sr.test(i.stem)) {
1066
+ t = M(M({}, t), Rt(i.stem));
1033
1067
  continue;
1034
1068
  }
1035
- var s = dr(i.stem);
1036
- s && (t = H(H({}, t), s));
1037
- var a = Nn(i.stem);
1038
- a && (t = H(H({}, t), a));
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));
1039
1073
  }
1040
1074
  return t;
1041
1075
  }
1042
- var Pe = {
1076
+ var Ie = {
1043
1077
  "001": [
1044
1078
  "H",
1045
1079
  "h"
@@ -2454,13 +2488,13 @@ var Pe = {
2454
2488
  "h"
2455
2489
  ]
2456
2490
  };
2457
- function Rn(e, t) {
2491
+ function ei(e, t) {
2458
2492
  for (var r = "", n = 0; n < e.length; n++) {
2459
2493
  var i = e.charAt(n);
2460
2494
  if (i === "j") {
2461
2495
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2462
2496
  o++, n++;
2463
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Dn(t);
2497
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ti(t);
2464
2498
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2465
2499
  r += l;
2466
2500
  for (; s-- > 0; )
@@ -2470,7 +2504,7 @@ function Rn(e, t) {
2470
2504
  }
2471
2505
  return r;
2472
2506
  }
2473
- function Dn(e) {
2507
+ function ti(e) {
2474
2508
  var t = e.hourCycle;
2475
2509
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2476
2510
  e.hourCycles && // @ts-ignore
@@ -2489,23 +2523,23 @@ function Dn(e) {
2489
2523
  }
2490
2524
  var r = e.language, n;
2491
2525
  r !== "root" && (n = e.maximize().region);
2492
- var i = Pe[n || ""] || Pe[r || ""] || Pe["".concat(r, "-001")] || Pe["001"];
2526
+ var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
2493
2527
  return i[0];
2494
2528
  }
2495
- var Qe, Un = new RegExp("^".concat(fr.source, "*")), Gn = new RegExp("".concat(fr.source, "*$"));
2496
- function _(e, t) {
2529
+ var it, ri = new RegExp("^".concat(wr.source, "*")), ni = new RegExp("".concat(wr.source, "*$"));
2530
+ function w(e, t) {
2497
2531
  return { start: e, end: t };
2498
2532
  }
2499
- var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
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) {
2500
2534
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2501
- }, nt = !0;
2535
+ }, ct = !0;
2502
2536
  try {
2503
- var Qn = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2504
- nt = ((Qe = Qn.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
2537
+ var fi = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2538
+ ct = ((it = fi.exec("a")) === null || it === void 0 ? void 0 : it[0]) === "a";
2505
2539
  } catch {
2506
- nt = !1;
2540
+ ct = !1;
2507
2541
  }
2508
- var Bt = Fn ? (
2542
+ var $t = ii ? (
2509
2543
  // Native
2510
2544
  function(t, r, n) {
2511
2545
  return t.startsWith(r, n);
@@ -2515,7 +2549,7 @@ var Bt = Fn ? (
2515
2549
  function(t, r, n) {
2516
2550
  return t.slice(n, n + r.length) === r;
2517
2551
  }
2518
- ), it = jn ? String.fromCodePoint : (
2552
+ ), ft = oi ? String.fromCodePoint : (
2519
2553
  // IE11
2520
2554
  function() {
2521
2555
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2527,9 +2561,9 @@ var Bt = Fn ? (
2527
2561
  }
2528
2562
  return n;
2529
2563
  }
2530
- ), Mt = (
2564
+ ), Ut = (
2531
2565
  // native
2532
- kn ? Object.fromEntries : (
2566
+ si ? Object.fromEntries : (
2533
2567
  // Ponyfill
2534
2568
  function(t) {
2535
2569
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2539,7 +2573,7 @@ var Bt = Fn ? (
2539
2573
  return r;
2540
2574
  }
2541
2575
  )
2542
- ), br = Vn ? (
2576
+ ), Cr = ai ? (
2543
2577
  // Native
2544
2578
  function(t, r) {
2545
2579
  return t.codePointAt(r);
@@ -2553,7 +2587,7 @@ var Bt = Fn ? (
2553
2587
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2554
2588
  }
2555
2589
  }
2556
- ), Yn = Xn ? (
2590
+ ), pi = ui ? (
2557
2591
  // Native
2558
2592
  function(t) {
2559
2593
  return t.trimStart();
@@ -2561,9 +2595,9 @@ var Bt = Fn ? (
2561
2595
  ) : (
2562
2596
  // Ponyfill
2563
2597
  function(t) {
2564
- return t.replace(Un, "");
2598
+ return t.replace(ri, "");
2565
2599
  }
2566
- ), Jn = Wn ? (
2600
+ ), mi = li ? (
2567
2601
  // Native
2568
2602
  function(t) {
2569
2603
  return t.trimEnd();
@@ -2571,32 +2605,32 @@ var Bt = Fn ? (
2571
2605
  ) : (
2572
2606
  // Ponyfill
2573
2607
  function(t) {
2574
- return t.replace(Gn, "");
2608
+ return t.replace(ni, "");
2575
2609
  }
2576
2610
  );
2577
- function gr(e, t) {
2611
+ function Ar(e, t) {
2578
2612
  return new RegExp(e, t);
2579
2613
  }
2580
- var ot;
2581
- if (nt) {
2582
- var Ct = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2583
- ot = function(t, r) {
2614
+ var pt;
2615
+ if (ct) {
2616
+ var Ft = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2617
+ pt = function(t, r) {
2584
2618
  var n;
2585
- Ct.lastIndex = r;
2586
- var i = Ct.exec(t);
2619
+ Ft.lastIndex = r;
2620
+ var i = Ft.exec(t);
2587
2621
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2588
2622
  };
2589
2623
  } else
2590
- ot = function(t, r) {
2624
+ pt = function(t, r) {
2591
2625
  for (var n = []; ; ) {
2592
- var i = br(t, r);
2593
- if (i === void 0 || yr(i) || ti(i))
2626
+ var i = Cr(t, r);
2627
+ if (i === void 0 || Pr(i) || yi(i))
2594
2628
  break;
2595
2629
  n.push(i), r += i >= 65536 ? 2 : 1;
2596
2630
  }
2597
- return it.apply(void 0, n);
2631
+ return ft.apply(void 0, n);
2598
2632
  };
2599
- var qn = (
2633
+ var di = (
2600
2634
  /** @class */
2601
2635
  function() {
2602
2636
  function e(t, r) {
@@ -2620,14 +2654,14 @@ var qn = (
2620
2654
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2621
2655
  var a = this.clonePosition();
2622
2656
  this.bump(), i.push({
2623
- type: w.pound,
2624
- location: _(a, this.clonePosition())
2657
+ type: C.pound,
2658
+ location: w(a, this.clonePosition())
2625
2659
  });
2626
2660
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2627
2661
  if (n)
2628
2662
  break;
2629
- return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2630
- } else if (o === 60 && !this.ignoreTag && st(this.peek() || 0)) {
2663
+ return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2664
+ } else if (o === 60 && !this.ignoreTag && mt(this.peek() || 0)) {
2631
2665
  var s = this.parseTag(t, r);
2632
2666
  if (s.err)
2633
2667
  return s;
@@ -2648,9 +2682,9 @@ var qn = (
2648
2682
  if (this.bumpSpace(), this.bumpIf("/>"))
2649
2683
  return {
2650
2684
  val: {
2651
- type: w.literal,
2685
+ type: C.literal,
2652
2686
  value: "<".concat(i, "/>"),
2653
- location: _(n, this.clonePosition())
2687
+ location: w(n, this.clonePosition())
2654
2688
  },
2655
2689
  err: null
2656
2690
  };
@@ -2660,25 +2694,25 @@ var qn = (
2660
2694
  return o;
2661
2695
  var s = o.val, a = this.clonePosition();
2662
2696
  if (this.bumpIf("</")) {
2663
- if (this.isEOF() || !st(this.char()))
2664
- return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
2697
+ if (this.isEOF() || !mt(this.char()))
2698
+ return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
2665
2699
  var l = this.clonePosition(), u = this.parseTagName();
2666
- return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2700
+ return i !== u ? this.error(x.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2667
2701
  val: {
2668
- type: w.tag,
2702
+ type: C.tag,
2669
2703
  value: i,
2670
2704
  children: s,
2671
- location: _(n, this.clonePosition())
2705
+ location: w(n, this.clonePosition())
2672
2706
  },
2673
2707
  err: null
2674
- } : this.error(v.INVALID_TAG, _(a, this.clonePosition())));
2708
+ } : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
2675
2709
  } else
2676
- return this.error(v.UNCLOSED_TAG, _(n, this.clonePosition()));
2710
+ return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
2677
2711
  } else
2678
- return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
2712
+ return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
2679
2713
  }, e.prototype.parseTagName = function() {
2680
2714
  var t = this.offset();
2681
- for (this.bump(); !this.isEOF() && ei(this.char()); )
2715
+ for (this.bump(); !this.isEOF() && gi(this.char()); )
2682
2716
  this.bump();
2683
2717
  return this.message.slice(t, this.offset());
2684
2718
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2700,14 +2734,14 @@ var qn = (
2700
2734
  }
2701
2735
  break;
2702
2736
  }
2703
- var l = _(n, this.clonePosition());
2737
+ var l = w(n, this.clonePosition());
2704
2738
  return {
2705
- val: { type: w.literal, value: i, location: l },
2739
+ val: { type: C.literal, value: i, location: l },
2706
2740
  err: null
2707
2741
  };
2708
2742
  }, e.prototype.tryParseLeftAngleBracket = function() {
2709
2743
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2710
- !Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
2744
+ !bi(this.peek() || 0)) ? (this.bump(), "<") : null;
2711
2745
  }, e.prototype.tryParseQuote = function(t) {
2712
2746
  if (this.isEOF() || this.char() !== 39)
2713
2747
  return null;
@@ -2741,49 +2775,49 @@ var qn = (
2741
2775
  r.push(n);
2742
2776
  this.bump();
2743
2777
  }
2744
- return it.apply(void 0, r);
2778
+ return ft.apply(void 0, r);
2745
2779
  }, e.prototype.tryParseUnquoted = function(t, r) {
2746
2780
  if (this.isEOF())
2747
2781
  return null;
2748
2782
  var n = this.char();
2749
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), it(n));
2783
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ft(n));
2750
2784
  }, e.prototype.parseArgument = function(t, r) {
2751
2785
  var n = this.clonePosition();
2752
2786
  if (this.bump(), this.bumpSpace(), this.isEOF())
2753
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2787
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2754
2788
  if (this.char() === 125)
2755
- return this.bump(), this.error(v.EMPTY_ARGUMENT, _(n, this.clonePosition()));
2789
+ return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
2756
2790
  var i = this.parseIdentifierIfPossible().value;
2757
2791
  if (!i)
2758
- return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2792
+ return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2759
2793
  if (this.bumpSpace(), this.isEOF())
2760
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2794
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2761
2795
  switch (this.char()) {
2762
2796
  case 125:
2763
2797
  return this.bump(), {
2764
2798
  val: {
2765
- type: w.argument,
2799
+ type: C.argument,
2766
2800
  // value does not include the opening and closing braces.
2767
2801
  value: i,
2768
- location: _(n, this.clonePosition())
2802
+ location: w(n, this.clonePosition())
2769
2803
  },
2770
2804
  err: null
2771
2805
  };
2772
2806
  case 44:
2773
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2807
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2774
2808
  default:
2775
- return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2809
+ return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2776
2810
  }
2777
2811
  }, e.prototype.parseIdentifierIfPossible = function() {
2778
- var t = this.clonePosition(), r = this.offset(), n = ot(this.message, r), i = r + n.length;
2812
+ var t = this.clonePosition(), r = this.offset(), n = pt(this.message, r), i = r + n.length;
2779
2813
  this.bumpTo(i);
2780
- var o = this.clonePosition(), s = _(t, o);
2814
+ var o = this.clonePosition(), s = w(t, o);
2781
2815
  return { value: n, location: s };
2782
2816
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2783
2817
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2784
2818
  switch (a) {
2785
2819
  case "":
2786
- return this.error(v.EXPECT_ARGUMENT_TYPE, _(s, l));
2820
+ return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, l));
2787
2821
  case "number":
2788
2822
  case "date":
2789
2823
  case "time": {
@@ -2791,49 +2825,49 @@ var qn = (
2791
2825
  var u = null;
2792
2826
  if (this.bumpIf(",")) {
2793
2827
  this.bumpSpace();
2794
- var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
2795
- if (p.err)
2796
- return p;
2797
- var c = Jn(p.val);
2828
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2829
+ if (f.err)
2830
+ return f;
2831
+ var c = mi(f.val);
2798
2832
  if (c.length === 0)
2799
- return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2800
- var b = _(h, this.clonePosition());
2801
- u = { style: c, styleLocation: b };
2833
+ return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2834
+ var g = w(h, this.clonePosition());
2835
+ u = { style: c, styleLocation: g };
2802
2836
  }
2803
- var y = this.tryParseArgumentClose(i);
2804
- if (y.err)
2805
- return y;
2806
- var g = _(i, this.clonePosition());
2807
- if (u && Bt(u?.style, "::", 0)) {
2808
- var E = Yn(u.style.slice(2));
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));
2809
2843
  if (a === "number") {
2810
- var p = this.parseNumberSkeletonFromString(E, u.styleLocation);
2811
- return p.err ? p : {
2812
- val: { type: w.number, value: n, location: g, style: p.val },
2844
+ var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
2845
+ return f.err ? f : {
2846
+ val: { type: C.number, value: n, location: m, style: f.val },
2813
2847
  err: null
2814
2848
  };
2815
2849
  } else {
2816
- if (E.length === 0)
2817
- return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
2818
- var A = E;
2819
- this.locale && (A = Rn(E, this.locale));
2850
+ if (_.length === 0)
2851
+ return this.error(x.EXPECT_DATE_TIME_SKELETON, m);
2852
+ var E = _;
2853
+ this.locale && (E = ei(_, this.locale));
2820
2854
  var c = {
2821
- type: ie.dateTime,
2822
- pattern: A,
2855
+ type: ue.dateTime,
2856
+ pattern: E,
2823
2857
  location: u.styleLocation,
2824
- parsedOptions: this.shouldParseSkeletons ? Bn(A) : {}
2825
- }, x = a === "date" ? w.date : w.time;
2858
+ parsedOptions: this.shouldParseSkeletons ? zn(E) : {}
2859
+ }, p = a === "date" ? C.date : C.time;
2826
2860
  return {
2827
- val: { type: x, value: n, location: g, style: c },
2861
+ val: { type: p, value: n, location: m, style: c },
2828
2862
  err: null
2829
2863
  };
2830
2864
  }
2831
2865
  }
2832
2866
  return {
2833
2867
  val: {
2834
- type: a === "number" ? w.number : a === "date" ? w.date : w.time,
2868
+ type: a === "number" ? C.number : a === "date" ? C.date : C.time,
2835
2869
  value: n,
2836
- location: g,
2870
+ location: m,
2837
2871
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2838
2872
  },
2839
2873
  err: null
@@ -2842,52 +2876,52 @@ var qn = (
2842
2876
  case "plural":
2843
2877
  case "selectordinal":
2844
2878
  case "select": {
2845
- var f = this.clonePosition();
2879
+ var S = this.clonePosition();
2846
2880
  if (this.bumpSpace(), !this.bumpIf(","))
2847
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(f, $e({}, f)));
2881
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(S, ke({}, S)));
2848
2882
  this.bumpSpace();
2849
- var T = this.parseIdentifierIfPossible(), d = 0;
2850
- if (a !== "select" && T.value === "offset") {
2883
+ var y = this.parseIdentifierIfPossible(), A = 0;
2884
+ if (a !== "select" && y.value === "offset") {
2851
2885
  if (!this.bumpIf(":"))
2852
- return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2886
+ return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2853
2887
  this.bumpSpace();
2854
- var p = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2855
- if (p.err)
2856
- return p;
2857
- this.bumpSpace(), T = this.parseIdentifierIfPossible(), d = p.val;
2888
+ var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2889
+ if (f.err)
2890
+ return f;
2891
+ this.bumpSpace(), y = this.parseIdentifierIfPossible(), A = f.val;
2858
2892
  }
2859
- var B = this.tryParsePluralOrSelectOptions(t, a, r, T);
2860
- if (B.err)
2861
- return B;
2862
- var y = this.tryParseArgumentClose(i);
2863
- if (y.err)
2864
- return y;
2865
- var U = _(i, this.clonePosition());
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;
2899
+ var $ = w(i, this.clonePosition());
2866
2900
  return a === "select" ? {
2867
2901
  val: {
2868
- type: w.select,
2902
+ type: C.select,
2869
2903
  value: n,
2870
- options: Mt(B.val),
2871
- location: U
2904
+ options: Ut(H.val),
2905
+ location: $
2872
2906
  },
2873
2907
  err: null
2874
2908
  } : {
2875
2909
  val: {
2876
- type: w.plural,
2910
+ type: C.plural,
2877
2911
  value: n,
2878
- options: Mt(B.val),
2879
- offset: d,
2912
+ options: Ut(H.val),
2913
+ offset: A,
2880
2914
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2881
- location: U
2915
+ location: $
2882
2916
  },
2883
2917
  err: null
2884
2918
  };
2885
2919
  }
2886
2920
  default:
2887
- return this.error(v.INVALID_ARGUMENT_TYPE, _(s, l));
2921
+ return this.error(x.INVALID_ARGUMENT_TYPE, w(s, l));
2888
2922
  }
2889
2923
  }, e.prototype.tryParseArgumentClose = function(t) {
2890
- return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2924
+ return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2891
2925
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2892
2926
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2893
2927
  var n = this.char();
@@ -2896,7 +2930,7 @@ var qn = (
2896
2930
  this.bump();
2897
2931
  var i = this.clonePosition();
2898
2932
  if (!this.bumpUntil("'"))
2899
- return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
2933
+ return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
2900
2934
  this.bump();
2901
2935
  break;
2902
2936
  }
@@ -2926,52 +2960,52 @@ var qn = (
2926
2960
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2927
2961
  var n = [];
2928
2962
  try {
2929
- n = Cn(t);
2963
+ n = Qn(t);
2930
2964
  } catch {
2931
- return this.error(v.INVALID_NUMBER_SKELETON, r);
2965
+ return this.error(x.INVALID_NUMBER_SKELETON, r);
2932
2966
  }
2933
2967
  return {
2934
2968
  val: {
2935
- type: ie.number,
2969
+ type: ue.number,
2936
2970
  tokens: n,
2937
2971
  location: r,
2938
- parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
2972
+ parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
2939
2973
  },
2940
2974
  err: null
2941
2975
  };
2942
2976
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2943
2977
  for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2944
2978
  if (u.length === 0) {
2945
- var p = this.clonePosition();
2979
+ var f = this.clonePosition();
2946
2980
  if (r !== "select" && this.bumpIf("=")) {
2947
- var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
2981
+ var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
2948
2982
  if (c.err)
2949
2983
  return c;
2950
- h = _(p, this.clonePosition()), u = this.message.slice(p.offset, this.offset());
2984
+ h = w(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2951
2985
  } else
2952
2986
  break;
2953
2987
  }
2954
2988
  if (l.has(u))
2955
- return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2989
+ return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2956
2990
  u === "other" && (s = !0), this.bumpSpace();
2957
- var b = this.clonePosition();
2991
+ var g = this.clonePosition();
2958
2992
  if (!this.bumpIf("{"))
2959
- return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
2960
- var y = this.parseMessage(t + 1, r, n);
2961
- if (y.err)
2962
- return y;
2963
- var g = this.tryParseArgumentClose(b);
2964
- if (g.err)
2965
- return g;
2993
+ 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);
2995
+ if (d.err)
2996
+ return d;
2997
+ var m = this.tryParseArgumentClose(g);
2998
+ if (m.err)
2999
+ return m;
2966
3000
  a.push([
2967
3001
  u,
2968
3002
  {
2969
- value: y.val,
2970
- location: _(b, this.clonePosition())
3003
+ value: d.val,
3004
+ location: w(g, this.clonePosition())
2971
3005
  }
2972
3006
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
2973
3007
  }
2974
- return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
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 };
2975
3009
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2976
3010
  var n = 1, i = this.clonePosition();
2977
3011
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2982,8 +3016,8 @@ var qn = (
2982
3016
  else
2983
3017
  break;
2984
3018
  }
2985
- var l = _(i, this.clonePosition());
2986
- return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3019
+ 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);
2987
3021
  }, e.prototype.offset = function() {
2988
3022
  return this.position.offset;
2989
3023
  }, e.prototype.isEOF = function() {
@@ -2998,7 +3032,7 @@ var qn = (
2998
3032
  var t = this.position.offset;
2999
3033
  if (t >= this.message.length)
3000
3034
  throw Error("out of bound");
3001
- var r = br(this.message, t);
3035
+ var r = Cr(this.message, t);
3002
3036
  if (r === void 0)
3003
3037
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3004
3038
  return r;
@@ -3017,7 +3051,7 @@ var qn = (
3017
3051
  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);
3018
3052
  }
3019
3053
  }, e.prototype.bumpIf = function(t) {
3020
- if (Bt(this.message, t, this.offset())) {
3054
+ if ($t(this.message, t, this.offset())) {
3021
3055
  for (var r = 0; r < t.length; r++)
3022
3056
  this.bump();
3023
3057
  return !0;
@@ -3039,7 +3073,7 @@ var qn = (
3039
3073
  break;
3040
3074
  }
3041
3075
  }, e.prototype.bumpSpace = function() {
3042
- for (; !this.isEOF() && yr(this.char()); )
3076
+ for (; !this.isEOF() && Pr(this.char()); )
3043
3077
  this.bump();
3044
3078
  }, e.prototype.peek = function() {
3045
3079
  if (this.isEOF())
@@ -3049,47 +3083,47 @@ var qn = (
3049
3083
  }, e;
3050
3084
  }()
3051
3085
  );
3052
- function st(e) {
3086
+ function mt(e) {
3053
3087
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3054
3088
  }
3055
- function Kn(e) {
3056
- return st(e) || e === 47;
3089
+ function bi(e) {
3090
+ return mt(e) || e === 47;
3057
3091
  }
3058
- function ei(e) {
3092
+ function gi(e) {
3059
3093
  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;
3060
3094
  }
3061
- function yr(e) {
3095
+ function Pr(e) {
3062
3096
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3063
3097
  }
3064
- function ti(e) {
3098
+ function yi(e) {
3065
3099
  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;
3066
3100
  }
3067
- function at(e) {
3101
+ function dt(e) {
3068
3102
  e.forEach(function(t) {
3069
- if (delete t.location, ur(t) || lr(t))
3103
+ if (delete t.location, vr(t) || _r(t))
3070
3104
  for (var r in t.options)
3071
- delete t.options[r].location, at(t.options[r].value);
3105
+ delete t.options[r].location, dt(t.options[r].value);
3072
3106
  else
3073
- or(t) && cr(t.style) || (sr(t) || ar(t)) && rt(t.style) ? delete t.style.location : hr(t) && at(t.children);
3107
+ br(t) && xr(t.style) || (gr(t) || yr(t)) && ht(t.style) ? delete t.style.location : Er(t) && dt(t.children);
3074
3108
  });
3075
3109
  }
3076
- function ri(e, t) {
3077
- t === void 0 && (t = {}), t = $e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3078
- var r = new qn(e, t).parse();
3110
+ function vi(e, t) {
3111
+ t === void 0 && (t = {}), t = ke({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3112
+ var r = new di(e, t).parse();
3079
3113
  if (r.err) {
3080
- var n = SyntaxError(v[r.err.kind]);
3114
+ var n = SyntaxError(x[r.err.kind]);
3081
3115
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3082
3116
  }
3083
- return t?.captureLocation || at(r.val), r.val;
3117
+ return t?.captureLocation || dt(r.val), r.val;
3084
3118
  }
3085
- var oe;
3119
+ var le;
3086
3120
  (function(e) {
3087
3121
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3088
- })(oe || (oe = {}));
3089
- var je = (
3122
+ })(le || (le = {}));
3123
+ var Qe = (
3090
3124
  /** @class */
3091
3125
  function(e) {
3092
- Fe(t, e);
3126
+ Ze(t, e);
3093
3127
  function t(r, n, i) {
3094
3128
  var o = e.call(this, r) || this;
3095
3129
  return o.code = n, o.originalMessage = i, o;
@@ -3098,155 +3132,155 @@ var je = (
3098
3132
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3099
3133
  }, t;
3100
3134
  }(Error)
3101
- ), It = (
3135
+ ), Gt = (
3102
3136
  /** @class */
3103
3137
  function(e) {
3104
- Fe(t, e);
3138
+ Ze(t, e);
3105
3139
  function t(r, n, i, o) {
3106
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, o) || this;
3140
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), le.INVALID_VALUE, o) || this;
3107
3141
  }
3108
3142
  return t;
3109
- }(je)
3110
- ), ni = (
3143
+ }(Qe)
3144
+ ), _i = (
3111
3145
  /** @class */
3112
3146
  function(e) {
3113
- Fe(t, e);
3147
+ Ze(t, e);
3114
3148
  function t(r, n, i) {
3115
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
3149
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), le.INVALID_VALUE, i) || this;
3116
3150
  }
3117
3151
  return t;
3118
- }(je)
3119
- ), ii = (
3152
+ }(Qe)
3153
+ ), Ei = (
3120
3154
  /** @class */
3121
3155
  function(e) {
3122
- Fe(t, e);
3156
+ Ze(t, e);
3123
3157
  function t(r, n) {
3124
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
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;
3125
3159
  }
3126
3160
  return t;
3127
- }(je)
3128
- ), C;
3161
+ }(Qe)
3162
+ ), B;
3129
3163
  (function(e) {
3130
3164
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3131
- })(C || (C = {}));
3132
- function oi(e) {
3165
+ })(B || (B = {}));
3166
+ function xi(e) {
3133
3167
  return e.length < 2 ? e : e.reduce(function(t, r) {
3134
3168
  var n = t[t.length - 1];
3135
- return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3169
+ return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3136
3170
  }, []);
3137
3171
  }
3138
- function si(e) {
3172
+ function wi(e) {
3139
3173
  return typeof e == "function";
3140
3174
  }
3141
- function Ce(e, t, r, n, i, o, s) {
3142
- if (e.length === 1 && Ht(e[0]))
3175
+ function $e(e, t, r, n, i, o, s) {
3176
+ if (e.length === 1 && Lt(e[0]))
3143
3177
  return [
3144
3178
  {
3145
- type: C.literal,
3179
+ type: B.literal,
3146
3180
  value: e[0].value
3147
3181
  }
3148
3182
  ];
3149
3183
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3150
3184
  var h = u[l];
3151
- if (Ht(h)) {
3185
+ if (Lt(h)) {
3152
3186
  a.push({
3153
- type: C.literal,
3187
+ type: B.literal,
3154
3188
  value: h.value
3155
3189
  });
3156
3190
  continue;
3157
3191
  }
3158
- if (An(h)) {
3192
+ if (Xn(h)) {
3159
3193
  typeof o == "number" && a.push({
3160
- type: C.literal,
3194
+ type: B.literal,
3161
3195
  value: r.getNumberFormat(t).format(o)
3162
3196
  });
3163
3197
  continue;
3164
3198
  }
3165
- var p = h.value;
3166
- if (!(i && p in i))
3167
- throw new ii(p, s);
3168
- var c = i[p];
3169
- if (Pn(h)) {
3199
+ var f = h.value;
3200
+ if (!(i && f in i))
3201
+ throw new Ei(f, s);
3202
+ var c = i[f];
3203
+ if (Vn(h)) {
3170
3204
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3171
- type: typeof c == "string" ? C.literal : C.object,
3205
+ type: typeof c == "string" ? B.literal : B.object,
3172
3206
  value: c
3173
3207
  });
3174
3208
  continue;
3175
3209
  }
3176
- if (sr(h)) {
3177
- var b = typeof h.style == "string" ? n.date[h.style] : rt(h.style) ? h.style.parsedOptions : void 0;
3210
+ if (gr(h)) {
3211
+ var g = typeof h.style == "string" ? n.date[h.style] : ht(h.style) ? h.style.parsedOptions : void 0;
3178
3212
  a.push({
3179
- type: C.literal,
3180
- value: r.getDateTimeFormat(t, b).format(c)
3213
+ type: B.literal,
3214
+ value: r.getDateTimeFormat(t, g).format(c)
3181
3215
  });
3182
3216
  continue;
3183
3217
  }
3184
- if (ar(h)) {
3185
- var b = typeof h.style == "string" ? n.time[h.style] : rt(h.style) ? h.style.parsedOptions : n.time.medium;
3218
+ if (yr(h)) {
3219
+ var g = typeof h.style == "string" ? n.time[h.style] : ht(h.style) ? h.style.parsedOptions : n.time.medium;
3186
3220
  a.push({
3187
- type: C.literal,
3188
- value: r.getDateTimeFormat(t, b).format(c)
3221
+ type: B.literal,
3222
+ value: r.getDateTimeFormat(t, g).format(c)
3189
3223
  });
3190
3224
  continue;
3191
3225
  }
3192
- if (or(h)) {
3193
- var b = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
3194
- b && b.scale && (c = c * (b.scale || 1)), a.push({
3195
- type: C.literal,
3196
- value: r.getNumberFormat(t, b).format(c)
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,
3230
+ value: r.getNumberFormat(t, g).format(c)
3197
3231
  });
3198
3232
  continue;
3199
3233
  }
3200
- if (hr(h)) {
3201
- var y = h.children, g = h.value, E = i[g];
3202
- if (!si(E))
3203
- throw new ni(g, "function", s);
3204
- var A = Ce(y, t, r, n, i, o), x = E(A.map(function(d) {
3205
- return d.value;
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 = $e(d, t, r, n, i, o), p = _(E.map(function(A) {
3239
+ return A.value;
3206
3240
  }));
3207
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(d) {
3241
+ Array.isArray(p) || (p = [p]), a.push.apply(a, p.map(function(A) {
3208
3242
  return {
3209
- type: typeof d == "string" ? C.literal : C.object,
3210
- value: d
3243
+ type: typeof A == "string" ? B.literal : B.object,
3244
+ value: A
3211
3245
  };
3212
3246
  }));
3213
3247
  }
3214
- if (ur(h)) {
3215
- var f = h.options[c] || h.options.other;
3216
- if (!f)
3217
- throw new It(h.value, c, Object.keys(h.options), s);
3218
- a.push.apply(a, Ce(f.value, t, r, n, i));
3248
+ if (vr(h)) {
3249
+ var S = h.options[c] || h.options.other;
3250
+ if (!S)
3251
+ throw new Gt(h.value, c, Object.keys(h.options), s);
3252
+ a.push.apply(a, $e(S.value, t, r, n, i));
3219
3253
  continue;
3220
3254
  }
3221
- if (lr(h)) {
3222
- var f = h.options["=".concat(c)];
3223
- if (!f) {
3255
+ if (_r(h)) {
3256
+ var S = h.options["=".concat(c)];
3257
+ if (!S) {
3224
3258
  if (!Intl.PluralRules)
3225
- throw new je(`Intl.PluralRules is not available in this environment.
3259
+ throw new Qe(`Intl.PluralRules is not available in this environment.
3226
3260
  Try polyfilling it using "@formatjs/intl-pluralrules"
3227
- `, oe.MISSING_INTL_API, s);
3228
- var T = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3229
- f = h.options[T] || h.options.other;
3261
+ `, le.MISSING_INTL_API, s);
3262
+ var y = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3263
+ S = h.options[y] || h.options.other;
3230
3264
  }
3231
- if (!f)
3232
- throw new It(h.value, c, Object.keys(h.options), s);
3233
- a.push.apply(a, Ce(f.value, t, r, n, i, c - (h.offset || 0)));
3265
+ if (!S)
3266
+ throw new Gt(h.value, c, Object.keys(h.options), s);
3267
+ a.push.apply(a, $e(S.value, t, r, n, i, c - (h.offset || 0)));
3234
3268
  continue;
3235
3269
  }
3236
3270
  }
3237
- return oi(a);
3271
+ return xi(a);
3238
3272
  }
3239
- function ai(e, t) {
3240
- return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3241
- return r[n] = F(F({}, e[n]), t[n] || {}), r;
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;
3242
3276
  }, {})) : e;
3243
3277
  }
3244
- function ui(e, t) {
3278
+ function Ti(e, t) {
3245
3279
  return t ? Object.keys(e).reduce(function(r, n) {
3246
- return r[n] = ai(e[n], t[n]), r;
3247
- }, F({}, e)) : e;
3280
+ return r[n] = Si(e[n], t[n]), r;
3281
+ }, G({}, e)) : e;
3248
3282
  }
3249
- function Ye(e) {
3283
+ function ot(e) {
3250
3284
  return {
3251
3285
  create: function() {
3252
3286
  return {
@@ -3260,39 +3294,39 @@ function Ye(e) {
3260
3294
  }
3261
3295
  };
3262
3296
  }
3263
- function li(e) {
3297
+ function Hi(e) {
3264
3298
  return e === void 0 && (e = {
3265
3299
  number: {},
3266
3300
  dateTime: {},
3267
3301
  pluralRules: {}
3268
3302
  }), {
3269
- getNumberFormat: ze(function() {
3303
+ getNumberFormat: rt(function() {
3270
3304
  for (var t, r = [], n = 0; n < arguments.length; n++)
3271
3305
  r[n] = arguments[n];
3272
- return new ((t = Intl.NumberFormat).bind.apply(t, We([void 0], r, !1)))();
3306
+ return new ((t = Intl.NumberFormat).bind.apply(t, tt([void 0], r, !1)))();
3273
3307
  }, {
3274
- cache: Ye(e.number),
3275
- strategy: Ze.variadic
3308
+ cache: ot(e.number),
3309
+ strategy: nt.variadic
3276
3310
  }),
3277
- getDateTimeFormat: ze(function() {
3311
+ getDateTimeFormat: rt(function() {
3278
3312
  for (var t, r = [], n = 0; n < arguments.length; n++)
3279
3313
  r[n] = arguments[n];
3280
- return new ((t = Intl.DateTimeFormat).bind.apply(t, We([void 0], r, !1)))();
3314
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, tt([void 0], r, !1)))();
3281
3315
  }, {
3282
- cache: Ye(e.dateTime),
3283
- strategy: Ze.variadic
3316
+ cache: ot(e.dateTime),
3317
+ strategy: nt.variadic
3284
3318
  }),
3285
- getPluralRules: ze(function() {
3319
+ getPluralRules: rt(function() {
3286
3320
  for (var t, r = [], n = 0; n < arguments.length; n++)
3287
3321
  r[n] = arguments[n];
3288
- return new ((t = Intl.PluralRules).bind.apply(t, We([void 0], r, !1)))();
3322
+ return new ((t = Intl.PluralRules).bind.apply(t, tt([void 0], r, !1)))();
3289
3323
  }, {
3290
- cache: Ye(e.pluralRules),
3291
- strategy: Ze.variadic
3324
+ cache: ot(e.pluralRules),
3325
+ strategy: nt.variadic
3292
3326
  })
3293
3327
  };
3294
3328
  }
3295
- var vr = (
3329
+ var Mr = (
3296
3330
  /** @class */
3297
3331
  function() {
3298
3332
  function e(t, r, n, i) {
@@ -3306,12 +3340,12 @@ var vr = (
3306
3340
  var u = o.formatToParts(l);
3307
3341
  if (u.length === 1)
3308
3342
  return u[0].value;
3309
- var h = u.reduce(function(p, c) {
3310
- return !p.length || c.type !== C.literal || typeof p[p.length - 1] != "string" ? p.push(c.value) : p[p.length - 1] += c.value, p;
3343
+ 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;
3311
3345
  }, []);
3312
3346
  return h.length <= 1 ? h[0] || "" : h;
3313
3347
  }, this.formatToParts = function(l) {
3314
- return Ce(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3348
+ return $e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3315
3349
  }, this.resolvedOptions = function() {
3316
3350
  var l;
3317
3351
  return {
@@ -3324,13 +3358,13 @@ var vr = (
3324
3358
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3325
3359
  var s = i || {};
3326
3360
  s.formatters;
3327
- var a = vn(s, ["formatters"]);
3328
- this.ast = e.__parse(t, F(F({}, a), { locale: this.resolvedLocale }));
3361
+ var a = Rn(s, ["formatters"]);
3362
+ this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
3329
3363
  } else
3330
3364
  this.ast = t;
3331
3365
  if (!Array.isArray(this.ast))
3332
3366
  throw new TypeError("A message must be provided as a String or AST.");
3333
- this.formats = ui(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
3367
+ this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
3334
3368
  }
3335
3369
  return Object.defineProperty(e, "defaultLocale", {
3336
3370
  get: function() {
@@ -3343,7 +3377,7 @@ var vr = (
3343
3377
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3344
3378
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3345
3379
  }
3346
- }, e.__parse = ri, e.formats = {
3380
+ }, e.__parse = vi, e.formats = {
3347
3381
  number: {
3348
3382
  integer: {
3349
3383
  maximumFractionDigits: 0
@@ -3404,7 +3438,7 @@ var vr = (
3404
3438
  }, e;
3405
3439
  }()
3406
3440
  );
3407
- function hi(e, t) {
3441
+ function Ci(e, t) {
3408
3442
  if (t == null)
3409
3443
  return;
3410
3444
  if (t in e)
@@ -3425,101 +3459,101 @@ function hi(e, t) {
3425
3459
  n = void 0;
3426
3460
  return n;
3427
3461
  }
3428
- const X = {}, ci = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), _r = (e, t) => {
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) => {
3429
3463
  if (t == null)
3430
3464
  return;
3431
- if (t in X && e in X[t])
3432
- return X[t][e];
3433
- const r = _e(t);
3465
+ if (t in z && e in z[t])
3466
+ return z[t][e];
3467
+ const r = Se(t);
3434
3468
  for (let n = 0; n < r.length; n++) {
3435
- const i = r[n], o = pi(i, e);
3469
+ const i = r[n], o = Mi(i, e);
3436
3470
  if (o)
3437
- return ci(e, t, o);
3471
+ return Ai(e, t, o);
3438
3472
  }
3439
3473
  };
3440
- let vt;
3441
- const ve = Ge({});
3442
- function fi(e) {
3443
- return vt[e] || null;
3474
+ let Ht;
3475
+ const we = ze({});
3476
+ function Pi(e) {
3477
+ return Ht[e] || null;
3444
3478
  }
3445
- function Er(e) {
3446
- return e in vt;
3479
+ function Br(e) {
3480
+ return e in Ht;
3447
3481
  }
3448
- function pi(e, t) {
3449
- if (!Er(e))
3482
+ function Mi(e, t) {
3483
+ if (!Br(e))
3450
3484
  return null;
3451
- const r = fi(e);
3452
- return hi(r, t);
3485
+ const r = Pi(e);
3486
+ return Ci(r, t);
3453
3487
  }
3454
- function mi(e) {
3488
+ function Oi(e) {
3455
3489
  if (e == null)
3456
3490
  return;
3457
- const t = _e(e);
3491
+ const t = Se(e);
3458
3492
  for (let r = 0; r < t.length; r++) {
3459
3493
  const n = t[r];
3460
- if (Er(n))
3494
+ if (Br(n))
3461
3495
  return n;
3462
3496
  }
3463
3497
  }
3464
- function xr(e, ...t) {
3465
- delete X[e], ve.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
3498
+ function Ir(e, ...t) {
3499
+ delete z[e], we.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
3466
3500
  }
3467
- ue(
3468
- [ve],
3501
+ fe(
3502
+ [we],
3469
3503
  ([e]) => Object.keys(e)
3470
3504
  );
3471
- ve.subscribe((e) => vt = e);
3472
- const Ie = {};
3473
- function di(e, t) {
3474
- Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
3505
+ we.subscribe((e) => Ht = e);
3506
+ const Ue = {};
3507
+ function Bi(e, t) {
3508
+ Ue[e].delete(t), Ue[e].size === 0 && delete Ue[e];
3475
3509
  }
3476
- function Sr(e) {
3477
- return Ie[e];
3510
+ function Lr(e) {
3511
+ return Ue[e];
3478
3512
  }
3479
- function bi(e) {
3480
- return _e(e).map((t) => {
3481
- const r = Sr(t);
3513
+ function Ii(e) {
3514
+ return Se(e).map((t) => {
3515
+ const r = Lr(t);
3482
3516
  return [t, r ? [...r] : []];
3483
3517
  }).filter(([, t]) => t.length > 0);
3484
3518
  }
3485
- function Re(e) {
3486
- return e == null ? !1 : _e(e).some(
3519
+ function Ve(e) {
3520
+ return e == null ? !1 : Se(e).some(
3487
3521
  (t) => {
3488
3522
  var r;
3489
- return (r = Sr(t)) == null ? void 0 : r.size;
3523
+ return (r = Lr(t)) == null ? void 0 : r.size;
3490
3524
  }
3491
3525
  );
3492
3526
  }
3493
- function gi(e, t) {
3527
+ function Li(e, t) {
3494
3528
  return Promise.all(
3495
- t.map((n) => (di(e, n), n().then((i) => i.default || i)))
3496
- ).then((n) => xr(e, ...n));
3497
- }
3498
- const fe = {};
3499
- function Tr(e) {
3500
- if (!Re(e))
3501
- return e in fe ? fe[e] : Promise.resolve();
3502
- const t = bi(e);
3503
- return fe[e] = 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 (!Ve(e))
3535
+ return e in be ? be[e] : Promise.resolve();
3536
+ const t = Ii(e);
3537
+ return be[e] = Promise.all(
3504
3538
  t.map(
3505
- ([r, n]) => gi(r, n)
3539
+ ([r, n]) => Li(r, n)
3506
3540
  )
3507
3541
  ).then(() => {
3508
- if (Re(e))
3509
- return Tr(e);
3510
- delete fe[e];
3511
- }), fe[e];
3542
+ if (Ve(e))
3543
+ return Nr(e);
3544
+ delete be[e];
3545
+ }), be[e];
3512
3546
  }
3513
- var Lt = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, _i = (e, t) => {
3547
+ var jt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Di = (e, t) => {
3514
3548
  var r = {};
3515
3549
  for (var n in e)
3516
- yi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3517
- if (e != null && Lt)
3518
- for (var n of Lt(e))
3519
- t.indexOf(n) < 0 && vi.call(e, n) && (r[n] = e[n]);
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]);
3520
3554
  return r;
3521
3555
  };
3522
- const Ei = {
3556
+ const $i = {
3523
3557
  number: {
3524
3558
  scientific: { notation: "scientific" },
3525
3559
  engineering: { notation: "engineering" },
@@ -3549,210 +3583,212 @@ const Ei = {
3549
3583
  }
3550
3584
  }
3551
3585
  };
3552
- function xi({ locale: e, id: t }) {
3586
+ function Ui({ locale: e, id: t }) {
3553
3587
  console.warn(
3554
- `[svelte-i18n] The message "${t}" was not found in "${_e(
3588
+ `[svelte-i18n] The message "${t}" was not found in "${Se(
3555
3589
  e
3556
- ).join('", "')}".${Re(W()) ? `
3590
+ ).join('", "')}".${Ve(Q()) ? `
3557
3591
 
3558
3592
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3559
3593
  );
3560
3594
  }
3561
- const Si = {
3595
+ const Fi = {
3562
3596
  fallbackLocale: null,
3563
3597
  loadingDelay: 200,
3564
- formats: Ei,
3598
+ formats: $i,
3565
3599
  warnOnMissingMessages: !0,
3566
3600
  handleMissingMessage: void 0,
3567
3601
  ignoreTag: !0
3568
- }, pe = Si;
3569
- function se() {
3570
- return pe;
3602
+ }, ge = Fi;
3603
+ function he() {
3604
+ return ge;
3571
3605
  }
3572
- function Ti(e) {
3573
- const t = e, { formats: r } = t, n = _i(t, ["formats"]);
3606
+ function Gi(e) {
3607
+ const t = e, { formats: r } = t, n = Di(t, ["formats"]);
3574
3608
  let i = e.fallbackLocale;
3575
3609
  if (e.initialLocale)
3576
3610
  try {
3577
- vr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3611
+ Mr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3578
3612
  } catch {
3579
3613
  console.warn(
3580
3614
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3581
3615
  );
3582
3616
  }
3583
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = xi : console.warn(
3617
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Ui : console.warn(
3584
3618
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3585
- )), Object.assign(pe, n, { initialLocale: i }), r && ("number" in r && Object.assign(pe.formats.number, r.number), "date" in r && Object.assign(pe.formats.date, r.date), "time" in r && Object.assign(pe.formats.time, r.time)), Z.set(i);
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);
3586
3620
  }
3587
- const Je = Ge(!1);
3588
- var wi = Object.defineProperty, Hi = Object.defineProperties, Pi = Object.getOwnPropertyDescriptors, Nt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
3621
+ const st = ze(!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) => {
3589
3623
  for (var r in t || (t = {}))
3590
- Ai.call(t, r) && $t(e, r, t[r]);
3591
- if (Nt)
3592
- for (var r of Nt(t))
3593
- Oi.call(t, r) && $t(e, r, t[r]);
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]);
3594
3628
  return e;
3595
- }, Mi = (e, t) => Hi(e, Pi(t));
3596
- let ut;
3597
- const De = Ge(null);
3598
- function Rt(e) {
3629
+ }, Zi = (e, t) => ki(e, Vi(t));
3630
+ let bt;
3631
+ const Xe = ze(null);
3632
+ function Xt(e) {
3599
3633
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3600
3634
  }
3601
- function _e(e, t = se().fallbackLocale) {
3602
- const r = Rt(e);
3603
- return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
3635
+ function Se(e, t = he().fallbackLocale) {
3636
+ const r = Xt(e);
3637
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
3604
3638
  }
3605
- function W() {
3606
- return ut ?? void 0;
3639
+ function Q() {
3640
+ return bt ?? void 0;
3607
3641
  }
3608
- De.subscribe((e) => {
3609
- ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3642
+ Xe.subscribe((e) => {
3643
+ bt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3610
3644
  });
3611
- const Ci = (e) => {
3612
- if (e && mi(e) && Re(e)) {
3613
- const { loadingDelay: t } = se();
3645
+ const Qi = (e) => {
3646
+ if (e && Oi(e) && Ve(e)) {
3647
+ const { loadingDelay: t } = he();
3614
3648
  let r;
3615
- return typeof window < "u" && W() != null && t ? r = window.setTimeout(
3616
- () => Je.set(!0),
3649
+ return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
3650
+ () => st.set(!0),
3617
3651
  t
3618
- ) : Je.set(!0), Tr(e).then(() => {
3619
- De.set(e);
3652
+ ) : st.set(!0), Nr(e).then(() => {
3653
+ Xe.set(e);
3620
3654
  }).finally(() => {
3621
- clearTimeout(r), Je.set(!1);
3655
+ clearTimeout(r), st.set(!1);
3622
3656
  });
3623
3657
  }
3624
- return De.set(e);
3625
- }, Z = Mi(Bi({}, De), {
3626
- set: Ci
3627
- }), ke = (e) => {
3658
+ return Xe.set(e);
3659
+ }, K = Zi(zi({}, Xe), {
3660
+ set: Qi
3661
+ }), Je = (e) => {
3628
3662
  const t = /* @__PURE__ */ Object.create(null);
3629
3663
  return (n) => {
3630
3664
  const i = JSON.stringify(n);
3631
3665
  return i in t ? t[i] : t[i] = e(n);
3632
3666
  };
3633
3667
  };
3634
- var Ii = Object.defineProperty, Ue = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
3668
+ var Ji = Object.defineProperty, We = 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) => {
3635
3669
  for (var r in t || (t = {}))
3636
- wr.call(t, r) && Dt(e, r, t[r]);
3637
- if (Ue)
3638
- for (var r of Ue(t))
3639
- Hr.call(t, r) && Dt(e, r, t[r]);
3670
+ Rr.call(t, r) && Wt(e, r, t[r]);
3671
+ if (We)
3672
+ for (var r of We(t))
3673
+ Dr.call(t, r) && Wt(e, r, t[r]);
3640
3674
  return e;
3641
- }, le = (e, t) => {
3675
+ }, pe = (e, t) => {
3642
3676
  var r = {};
3643
3677
  for (var n in e)
3644
- wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3645
- if (e != null && Ue)
3646
- for (var n of Ue(e))
3647
- t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
3678
+ Rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3679
+ if (e != null && We)
3680
+ for (var n of We(e))
3681
+ t.indexOf(n) < 0 && Dr.call(e, n) && (r[n] = e[n]);
3648
3682
  return r;
3649
3683
  };
3650
- const ye = (e, t) => {
3651
- const { formats: r } = se();
3684
+ const Ee = (e, t) => {
3685
+ const { formats: r } = he();
3652
3686
  if (e in r && t in r[e])
3653
3687
  return r[e][t];
3654
3688
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3655
- }, Li = ke(
3689
+ }, Yi = Je(
3656
3690
  (e) => {
3657
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3691
+ var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3658
3692
  if (r == null)
3659
3693
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3660
- return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
3694
+ return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
3661
3695
  }
3662
- ), Ni = ke(
3696
+ ), qi = Je(
3663
3697
  (e) => {
3664
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3698
+ var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3665
3699
  if (r == null)
3666
3700
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3667
- return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
3701
+ return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
3668
3702
  }
3669
- ), $i = ke(
3703
+ ), Ki = Je(
3670
3704
  (e) => {
3671
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3705
+ var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3672
3706
  if (r == null)
3673
3707
  throw new Error(
3674
3708
  '[svelte-i18n] A "locale" must be set to format time values'
3675
3709
  );
3676
- return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
3710
+ return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
3677
3711
  }
3678
- ), Ri = (e = {}) => {
3712
+ ), eo = (e = {}) => {
3679
3713
  var t = e, {
3680
- locale: r = W()
3681
- } = t, n = le(t, [
3714
+ locale: r = Q()
3715
+ } = t, n = pe(t, [
3682
3716
  "locale"
3683
3717
  ]);
3684
- return Li(_t({ locale: r }, n));
3685
- }, Di = (e = {}) => {
3718
+ return Yi(Ct({ locale: r }, n));
3719
+ }, to = (e = {}) => {
3686
3720
  var t = e, {
3687
- locale: r = W()
3688
- } = t, n = le(t, [
3721
+ locale: r = Q()
3722
+ } = t, n = pe(t, [
3689
3723
  "locale"
3690
3724
  ]);
3691
- return Ni(_t({ locale: r }, n));
3692
- }, Ui = (e = {}) => {
3725
+ return qi(Ct({ locale: r }, n));
3726
+ }, ro = (e = {}) => {
3693
3727
  var t = e, {
3694
- locale: r = W()
3695
- } = t, n = le(t, [
3728
+ locale: r = Q()
3729
+ } = t, n = pe(t, [
3696
3730
  "locale"
3697
3731
  ]);
3698
- return $i(_t({ locale: r }, n));
3699
- }, Gi = ke(
3732
+ return Ki(Ct({ locale: r }, n));
3733
+ }, no = Je(
3700
3734
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3701
- (e, t = W()) => new vr(e, t, se().formats, {
3702
- ignoreTag: se().ignoreTag
3735
+ (e, t = Q()) => new Mr(e, t, he().formats, {
3736
+ ignoreTag: he().ignoreTag
3703
3737
  })
3704
- ), Fi = (e, t = {}) => {
3738
+ ), io = (e, t = {}) => {
3705
3739
  var r, n, i, o;
3706
3740
  let s = t;
3707
3741
  typeof e == "object" && (s = e, e = s.id);
3708
3742
  const {
3709
3743
  values: a,
3710
- locale: l = W(),
3744
+ locale: l = Q(),
3711
3745
  default: u
3712
3746
  } = s;
3713
3747
  if (l == null)
3714
3748
  throw new Error(
3715
3749
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3716
3750
  );
3717
- let h = _r(e, l);
3751
+ let h = Or(e, l);
3718
3752
  if (!h)
3719
- h = (o = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
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;
3720
3754
  else if (typeof h != "string")
3721
3755
  return console.warn(
3722
3756
  `[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.`
3723
3757
  ), h;
3724
3758
  if (!a)
3725
3759
  return h;
3726
- let p = h;
3760
+ let f = h;
3727
3761
  try {
3728
- p = Gi(h, l).format(a);
3762
+ f = no(h, l).format(a);
3729
3763
  } catch (c) {
3730
3764
  c instanceof Error && console.warn(
3731
3765
  `[svelte-i18n] Message "${e}" has syntax error:`,
3732
3766
  c.message
3733
3767
  );
3734
3768
  }
3735
- return p;
3736
- }, ji = (e, t) => Ui(t).format(e), ki = (e, t) => Di(t).format(e), Vi = (e, t) => Ri(t).format(e), Xi = (e, t = W()) => _r(e, t), Wi = ue([Z, ve], () => Fi);
3737
- ue([Z], () => ji);
3738
- ue([Z], () => ki);
3739
- ue([Z], () => Vi);
3740
- ue([Z, ve], () => Xi);
3741
- function Ut(e, t) {
3742
- xr(e, t);
3743
- }
3744
- function zi(e) {
3745
- Ti({
3769
+ 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, we], () => io);
3771
+ fe([K], () => oo);
3772
+ fe([K], () => so);
3773
+ fe([K], () => ao);
3774
+ fe([K, we], () => uo);
3775
+ function zt(e, t) {
3776
+ Ir(e, t);
3777
+ }
3778
+ function ho(e) {
3779
+ Gi({
3746
3780
  fallbackLocale: "en"
3747
- }), Z.set(e);
3781
+ }), K.set(e);
3748
3782
  }
3749
- function Zi(e, t) {
3783
+ function co(e, t) {
3750
3784
  if (e) {
3751
3785
  const r = document.createElement("style");
3752
3786
  r.innerHTML = t, e.appendChild(r);
3753
3787
  }
3754
3788
  }
3755
- function Qi(e, t) {
3789
+ function fo(e, t) {
3790
+ if (!e || !t)
3791
+ return;
3756
3792
  const r = new URL(t);
3757
3793
  fetch(r.href).then((n) => n.text()).then((n) => {
3758
3794
  const i = document.createElement("style");
@@ -3761,7 +3797,7 @@ function Qi(e, t) {
3761
3797
  console.error("There was an error while trying to load client styling from URL", n);
3762
3798
  });
3763
3799
  }
3764
- function Yi(e, t, r) {
3800
+ function po(e, t, r) {
3765
3801
  if (window.emMessageBus) {
3766
3802
  const n = document.createElement("style");
3767
3803
  window.emMessageBus.subscribe(t, (i) => {
@@ -3783,24 +3819,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3783
3819
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3784
3820
  PERFORMANCE OF THIS SOFTWARE.
3785
3821
  ***************************************************************************** */
3786
- var lt = function(e, t) {
3787
- return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3822
+ var gt = function(e, t) {
3823
+ return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3788
3824
  r.__proto__ = n;
3789
3825
  } || function(r, n) {
3790
3826
  for (var i in n)
3791
3827
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3792
- }, lt(e, t);
3828
+ }, gt(e, t);
3793
3829
  };
3794
- function Ee(e, t) {
3830
+ function Te(e, t) {
3795
3831
  if (typeof t != "function" && t !== null)
3796
3832
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3797
- lt(e, t);
3833
+ gt(e, t);
3798
3834
  function r() {
3799
3835
  this.constructor = e;
3800
3836
  }
3801
3837
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3802
3838
  }
3803
- function ht(e) {
3839
+ function yt(e) {
3804
3840
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
3805
3841
  if (r)
3806
3842
  return r.call(e);
@@ -3812,7 +3848,7 @@ function ht(e) {
3812
3848
  };
3813
3849
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3814
3850
  }
3815
- function ct(e, t) {
3851
+ function vt(e, t) {
3816
3852
  var r = typeof Symbol == "function" && e[Symbol.iterator];
3817
3853
  if (!r)
3818
3854
  return e;
@@ -3832,22 +3868,22 @@ function ct(e, t) {
3832
3868
  }
3833
3869
  return o;
3834
3870
  }
3835
- function ft(e, t, r) {
3871
+ function _t(e, t, r) {
3836
3872
  if (arguments.length === 2)
3837
3873
  for (var n = 0, i = t.length, o; n < i; n++)
3838
3874
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
3839
3875
  return e.concat(o || t);
3840
3876
  }
3841
- function V(e) {
3877
+ function X(e) {
3842
3878
  return typeof e == "function";
3843
3879
  }
3844
- function Pr(e) {
3880
+ function $r(e) {
3845
3881
  var t = function(n) {
3846
3882
  Error.call(n), n.stack = new Error().stack;
3847
3883
  }, r = e(t);
3848
3884
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
3849
3885
  }
3850
- var qe = Pr(function(e) {
3886
+ var at = $r(function(e) {
3851
3887
  return function(r) {
3852
3888
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
3853
3889
  ` + r.map(function(n, i) {
@@ -3856,13 +3892,13 @@ var qe = Pr(function(e) {
3856
3892
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
3857
3893
  };
3858
3894
  });
3859
- function pt(e, t) {
3895
+ function Et(e, t) {
3860
3896
  if (e) {
3861
3897
  var r = e.indexOf(t);
3862
3898
  0 <= r && e.splice(r, 1);
3863
3899
  }
3864
3900
  }
3865
- var Ve = function() {
3901
+ var Ye = function() {
3866
3902
  function e(t) {
3867
3903
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3868
3904
  }
@@ -3874,12 +3910,12 @@ var Ve = function() {
3874
3910
  if (s)
3875
3911
  if (this._parentage = null, Array.isArray(s))
3876
3912
  try {
3877
- for (var a = ht(s), l = a.next(); !l.done; l = a.next()) {
3913
+ for (var a = yt(s), l = a.next(); !l.done; l = a.next()) {
3878
3914
  var u = l.value;
3879
3915
  u.remove(this);
3880
3916
  }
3881
- } catch (g) {
3882
- t = { error: g };
3917
+ } catch (m) {
3918
+ t = { error: m };
3883
3919
  } finally {
3884
3920
  try {
3885
3921
  l && !l.done && (r = a.return) && r.call(a);
@@ -3891,29 +3927,29 @@ var Ve = function() {
3891
3927
  else
3892
3928
  s.remove(this);
3893
3929
  var h = this.initialTeardown;
3894
- if (V(h))
3930
+ if (X(h))
3895
3931
  try {
3896
3932
  h();
3897
- } catch (g) {
3898
- o = g instanceof qe ? g.errors : [g];
3933
+ } catch (m) {
3934
+ o = m instanceof at ? m.errors : [m];
3899
3935
  }
3900
- var p = this._finalizers;
3901
- if (p) {
3936
+ var f = this._finalizers;
3937
+ if (f) {
3902
3938
  this._finalizers = null;
3903
3939
  try {
3904
- for (var c = ht(p), b = c.next(); !b.done; b = c.next()) {
3905
- var y = b.value;
3940
+ for (var c = yt(f), g = c.next(); !g.done; g = c.next()) {
3941
+ var d = g.value;
3906
3942
  try {
3907
- Gt(y);
3908
- } catch (g) {
3909
- o = o ?? [], g instanceof qe ? o = ft(ft([], ct(o)), ct(g.errors)) : o.push(g);
3943
+ Zt(d);
3944
+ } catch (m) {
3945
+ o = o ?? [], m instanceof at ? o = _t(_t([], vt(o)), vt(m.errors)) : o.push(m);
3910
3946
  }
3911
3947
  }
3912
- } catch (g) {
3913
- n = { error: g };
3948
+ } catch (m) {
3949
+ n = { error: m };
3914
3950
  } finally {
3915
3951
  try {
3916
- b && !b.done && (i = c.return) && i.call(c);
3952
+ g && !g.done && (i = c.return) && i.call(c);
3917
3953
  } finally {
3918
3954
  if (n)
3919
3955
  throw n.error;
@@ -3921,13 +3957,13 @@ var Ve = function() {
3921
3957
  }
3922
3958
  }
3923
3959
  if (o)
3924
- throw new qe(o);
3960
+ throw new at(o);
3925
3961
  }
3926
3962
  }, e.prototype.add = function(t) {
3927
3963
  var r;
3928
3964
  if (t && t !== this)
3929
3965
  if (this.closed)
3930
- Gt(t);
3966
+ Zt(t);
3931
3967
  else {
3932
3968
  if (t instanceof e) {
3933
3969
  if (t.closed || t._hasParent(this))
@@ -3944,52 +3980,52 @@ var Ve = function() {
3944
3980
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
3945
3981
  }, e.prototype._removeParent = function(t) {
3946
3982
  var r = this._parentage;
3947
- r === t ? this._parentage = null : Array.isArray(r) && pt(r, t);
3983
+ r === t ? this._parentage = null : Array.isArray(r) && Et(r, t);
3948
3984
  }, e.prototype.remove = function(t) {
3949
3985
  var r = this._finalizers;
3950
- r && pt(r, t), t instanceof e && t._removeParent(this);
3986
+ r && Et(r, t), t instanceof e && t._removeParent(this);
3951
3987
  }, e.EMPTY = function() {
3952
3988
  var t = new e();
3953
3989
  return t.closed = !0, t;
3954
3990
  }(), e;
3955
- }(), Ar = Ve.EMPTY;
3956
- function Or(e) {
3957
- return e instanceof Ve || e && "closed" in e && V(e.remove) && V(e.add) && V(e.unsubscribe);
3991
+ }(), Ur = Ye.EMPTY;
3992
+ function Fr(e) {
3993
+ return e instanceof Ye || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
3958
3994
  }
3959
- function Gt(e) {
3960
- V(e) ? e() : e.unsubscribe();
3995
+ function Zt(e) {
3996
+ X(e) ? e() : e.unsubscribe();
3961
3997
  }
3962
- var Ji = {
3998
+ var mo = {
3963
3999
  Promise: void 0
3964
- }, qi = {
4000
+ }, bo = {
3965
4001
  setTimeout: function(e, t) {
3966
4002
  for (var r = [], n = 2; n < arguments.length; n++)
3967
4003
  r[n - 2] = arguments[n];
3968
- return setTimeout.apply(void 0, ft([e, t], ct(r)));
4004
+ return setTimeout.apply(void 0, _t([e, t], vt(r)));
3969
4005
  },
3970
4006
  clearTimeout: function(e) {
3971
4007
  return clearTimeout(e);
3972
4008
  },
3973
4009
  delegate: void 0
3974
4010
  };
3975
- function Ki(e) {
3976
- qi.setTimeout(function() {
4011
+ function go(e) {
4012
+ bo.setTimeout(function() {
3977
4013
  throw e;
3978
4014
  });
3979
4015
  }
3980
- function Ft() {
4016
+ function Qt() {
3981
4017
  }
3982
- function Le(e) {
4018
+ function Fe(e) {
3983
4019
  e();
3984
4020
  }
3985
- var Br = function(e) {
3986
- Ee(t, e);
4021
+ var Gr = function(e) {
4022
+ Te(t, e);
3987
4023
  function t(r) {
3988
4024
  var n = e.call(this) || this;
3989
- return n.isStopped = !1, r ? (n.destination = r, Or(r) && r.add(n)) : n.destination = ro, n;
4025
+ return n.isStopped = !1, r ? (n.destination = r, Fr(r) && r.add(n)) : n.destination = _o, n;
3990
4026
  }
3991
4027
  return t.create = function(r, n, i) {
3992
- return new mt(r, n, i);
4028
+ return new xt(r, n, i);
3993
4029
  }, t.prototype.next = function(r) {
3994
4030
  this.isStopped || this._next(r);
3995
4031
  }, t.prototype.error = function(r) {
@@ -4013,7 +4049,7 @@ var Br = function(e) {
4013
4049
  this.unsubscribe();
4014
4050
  }
4015
4051
  }, t;
4016
- }(Ve), eo = function() {
4052
+ }(Ye), yo = function() {
4017
4053
  function e(t) {
4018
4054
  this.partialObserver = t;
4019
4055
  }
@@ -4023,7 +4059,7 @@ var Br = function(e) {
4023
4059
  try {
4024
4060
  r.next(t);
4025
4061
  } catch (n) {
4026
- Ae(n);
4062
+ Le(n);
4027
4063
  }
4028
4064
  }, e.prototype.error = function(t) {
4029
4065
  var r = this.partialObserver;
@@ -4031,56 +4067,56 @@ var Br = function(e) {
4031
4067
  try {
4032
4068
  r.error(t);
4033
4069
  } catch (n) {
4034
- Ae(n);
4070
+ Le(n);
4035
4071
  }
4036
4072
  else
4037
- Ae(t);
4073
+ Le(t);
4038
4074
  }, e.prototype.complete = function() {
4039
4075
  var t = this.partialObserver;
4040
4076
  if (t.complete)
4041
4077
  try {
4042
4078
  t.complete();
4043
4079
  } catch (r) {
4044
- Ae(r);
4080
+ Le(r);
4045
4081
  }
4046
4082
  }, e;
4047
- }(), mt = function(e) {
4048
- Ee(t, e);
4083
+ }(), xt = function(e) {
4084
+ Te(t, e);
4049
4085
  function t(r, n, i) {
4050
4086
  var o = e.call(this) || this, s;
4051
- return V(r) || !r ? s = {
4087
+ return X(r) || !r ? s = {
4052
4088
  next: r ?? void 0,
4053
4089
  error: n ?? void 0,
4054
4090
  complete: i ?? void 0
4055
- } : s = r, o.destination = new eo(s), o;
4091
+ } : s = r, o.destination = new yo(s), o;
4056
4092
  }
4057
4093
  return t;
4058
- }(Br);
4059
- function Ae(e) {
4060
- Ki(e);
4094
+ }(Gr);
4095
+ function Le(e) {
4096
+ go(e);
4061
4097
  }
4062
- function to(e) {
4098
+ function vo(e) {
4063
4099
  throw e;
4064
4100
  }
4065
- var ro = {
4101
+ var _o = {
4066
4102
  closed: !0,
4067
- next: Ft,
4068
- error: to,
4069
- complete: Ft
4070
- }, no = function() {
4103
+ next: Qt,
4104
+ error: vo,
4105
+ complete: Qt
4106
+ }, Eo = function() {
4071
4107
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4072
4108
  }();
4073
- function io(e) {
4109
+ function xo(e) {
4074
4110
  return e;
4075
4111
  }
4076
- function oo(e) {
4077
- return e.length === 0 ? io : e.length === 1 ? e[0] : function(r) {
4112
+ function wo(e) {
4113
+ return e.length === 0 ? xo : e.length === 1 ? e[0] : function(r) {
4078
4114
  return e.reduce(function(n, i) {
4079
4115
  return i(n);
4080
4116
  }, r);
4081
4117
  };
4082
4118
  }
4083
- var jt = function() {
4119
+ var Jt = function() {
4084
4120
  function e(t) {
4085
4121
  t && (this._subscribe = t);
4086
4122
  }
@@ -4088,8 +4124,8 @@ var jt = function() {
4088
4124
  var r = new e();
4089
4125
  return r.source = this, r.operator = t, r;
4090
4126
  }, e.prototype.subscribe = function(t, r, n) {
4091
- var i = this, o = ao(t) ? t : new mt(t, r, n);
4092
- return Le(function() {
4127
+ var i = this, o = To(t) ? t : new xt(t, r, n);
4128
+ return Fe(function() {
4093
4129
  var s = i, a = s.operator, l = s.source;
4094
4130
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4095
4131
  }), o;
@@ -4101,8 +4137,8 @@ var jt = function() {
4101
4137
  }
4102
4138
  }, e.prototype.forEach = function(t, r) {
4103
4139
  var n = this;
4104
- return r = kt(r), new r(function(i, o) {
4105
- var s = new mt({
4140
+ return r = Yt(r), new r(function(i, o) {
4141
+ var s = new xt({
4106
4142
  next: function(a) {
4107
4143
  try {
4108
4144
  t(a);
@@ -4118,15 +4154,15 @@ var jt = function() {
4118
4154
  }, e.prototype._subscribe = function(t) {
4119
4155
  var r;
4120
4156
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4121
- }, e.prototype[no] = function() {
4157
+ }, e.prototype[Eo] = function() {
4122
4158
  return this;
4123
4159
  }, e.prototype.pipe = function() {
4124
4160
  for (var t = [], r = 0; r < arguments.length; r++)
4125
4161
  t[r] = arguments[r];
4126
- return oo(t)(this);
4162
+ return wo(t)(this);
4127
4163
  }, e.prototype.toPromise = function(t) {
4128
4164
  var r = this;
4129
- return t = kt(t), new t(function(n, i) {
4165
+ return t = Yt(t), new t(function(n, i) {
4130
4166
  var o;
4131
4167
  r.subscribe(function(s) {
4132
4168
  return o = s;
@@ -4140,40 +4176,40 @@ var jt = function() {
4140
4176
  return new e(t);
4141
4177
  }, e;
4142
4178
  }();
4143
- function kt(e) {
4179
+ function Yt(e) {
4144
4180
  var t;
4145
- return (t = e ?? Ji.Promise) !== null && t !== void 0 ? t : Promise;
4181
+ return (t = e ?? mo.Promise) !== null && t !== void 0 ? t : Promise;
4146
4182
  }
4147
- function so(e) {
4148
- return e && V(e.next) && V(e.error) && V(e.complete);
4183
+ function So(e) {
4184
+ return e && X(e.next) && X(e.error) && X(e.complete);
4149
4185
  }
4150
- function ao(e) {
4151
- return e && e instanceof Br || so(e) && Or(e);
4186
+ function To(e) {
4187
+ return e && e instanceof Gr || So(e) && Fr(e);
4152
4188
  }
4153
- var uo = Pr(function(e) {
4189
+ var Ho = $r(function(e) {
4154
4190
  return function() {
4155
4191
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4156
4192
  };
4157
- }), Mr = function(e) {
4158
- Ee(t, e);
4193
+ }), jr = function(e) {
4194
+ Te(t, e);
4159
4195
  function t() {
4160
4196
  var r = e.call(this) || this;
4161
4197
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4162
4198
  }
4163
4199
  return t.prototype.lift = function(r) {
4164
- var n = new Vt(this, this);
4200
+ var n = new qt(this, this);
4165
4201
  return n.operator = r, n;
4166
4202
  }, t.prototype._throwIfClosed = function() {
4167
4203
  if (this.closed)
4168
- throw new uo();
4204
+ throw new Ho();
4169
4205
  }, t.prototype.next = function(r) {
4170
4206
  var n = this;
4171
- Le(function() {
4207
+ Fe(function() {
4172
4208
  var i, o;
4173
4209
  if (n._throwIfClosed(), !n.isStopped) {
4174
4210
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4175
4211
  try {
4176
- for (var s = ht(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4212
+ for (var s = yt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4177
4213
  var l = a.value;
4178
4214
  l.next(r);
4179
4215
  }
@@ -4191,7 +4227,7 @@ var uo = Pr(function(e) {
4191
4227
  });
4192
4228
  }, t.prototype.error = function(r) {
4193
4229
  var n = this;
4194
- Le(function() {
4230
+ Fe(function() {
4195
4231
  if (n._throwIfClosed(), !n.isStopped) {
4196
4232
  n.hasError = n.isStopped = !0, n.thrownError = r;
4197
4233
  for (var i = n.observers; i.length; )
@@ -4200,7 +4236,7 @@ var uo = Pr(function(e) {
4200
4236
  });
4201
4237
  }, t.prototype.complete = function() {
4202
4238
  var r = this;
4203
- Le(function() {
4239
+ Fe(function() {
4204
4240
  if (r._throwIfClosed(), !r.isStopped) {
4205
4241
  r.isStopped = !0;
4206
4242
  for (var n = r.observers; n.length; )
@@ -4222,20 +4258,20 @@ var uo = Pr(function(e) {
4222
4258
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4223
4259
  }, t.prototype._innerSubscribe = function(r) {
4224
4260
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4225
- return o || s ? Ar : (this.currentObservers = null, a.push(r), new Ve(function() {
4226
- n.currentObservers = null, pt(a, r);
4261
+ return o || s ? Ur : (this.currentObservers = null, a.push(r), new Ye(function() {
4262
+ n.currentObservers = null, Et(a, r);
4227
4263
  }));
4228
4264
  }, t.prototype._checkFinalizedStatuses = function(r) {
4229
4265
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4230
4266
  i ? r.error(o) : s && r.complete();
4231
4267
  }, t.prototype.asObservable = function() {
4232
- var r = new jt();
4268
+ var r = new Jt();
4233
4269
  return r.source = this, r;
4234
4270
  }, t.create = function(r, n) {
4235
- return new Vt(r, n);
4271
+ return new qt(r, n);
4236
4272
  }, t;
4237
- }(jt), Vt = function(e) {
4238
- Ee(t, e);
4273
+ }(Jt), qt = function(e) {
4274
+ Te(t, e);
4239
4275
  function t(r, n) {
4240
4276
  var i = e.call(this) || this;
4241
4277
  return i.destination = r, i.source = n, i;
@@ -4251,17 +4287,17 @@ var uo = Pr(function(e) {
4251
4287
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4252
4288
  }, t.prototype._subscribe = function(r) {
4253
4289
  var n, i;
4254
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ar;
4290
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ur;
4255
4291
  }, t;
4256
- }(Mr), Cr = {
4292
+ }(jr), kr = {
4257
4293
  now: function() {
4258
- return (Cr.delegate || Date).now();
4294
+ return (kr.delegate || Date).now();
4259
4295
  },
4260
4296
  delegate: void 0
4261
- }, lo = function(e) {
4262
- Ee(t, e);
4297
+ }, Co = function(e) {
4298
+ Te(t, e);
4263
4299
  function t(r, n, i) {
4264
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Cr);
4300
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kr);
4265
4301
  var o = e.call(this) || this;
4266
4302
  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;
4267
4303
  }
@@ -4281,31 +4317,57 @@ var uo = Pr(function(e) {
4281
4317
  u && o.splice(0, u + 1);
4282
4318
  }
4283
4319
  }, t;
4284
- }(Mr);
4285
- const Xt = [], Wt = {}, ho = (e, t = 0) => {
4286
- if (Xt.indexOf(e) == -1) {
4287
- const r = new lo(t);
4288
- Wt[e] = r, Xt.push(e);
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);
4289
4325
  }
4290
- return Wt[e];
4326
+ return er[e];
4291
4327
  };
4292
- let dt = "en-UK", bt = "true", me = 2, gt = "";
4293
- const co = (e, t, r, n) => {
4294
- dt = e || "en-UK", bt = t || "true", me = +n || 2, gt = r || "";
4295
- }, Oe = (e, t) => {
4296
- if (!gt)
4297
- return new Intl.NumberFormat(dt, { style: "currency", currency: t, currencyDisplay: bt === "true" ? "symbol" : "code", maximumFractionDigits: me, minimumFractionDigits: me }).format(e);
4298
- const n = new Intl.NumberFormat(dt, { style: "currency", currency: t, currencyDisplay: bt === "true" ? "symbol" : "code", maximumFractionDigits: me, minimumFractionDigits: me }).formatToParts(e), i = n.find((l) => l.type === "currency"), s = n.filter((l) => l.type !== "currency").map((l) => l.value).join("");
4299
- return gt === "before" ? `${i.value} ${s}` : `${s} ${i.value}`;
4328
+ let wt = "en-UK", Vr = "true", xe = 2, St = "";
4329
+ const Po = (e, t, r, n) => {
4330
+ wt = e || "en-UK", Vr = t || "true", xe = +n || 2, St = r || "";
4331
+ }, tr = ({ local: e, options: t = {}, amount: r }) => {
4332
+ try {
4333
+ return new Intl.NumberFormat(e, t).format(r);
4334
+ } catch (n) {
4335
+ console.info(n);
4336
+ const i = new Intl.NumberFormat(e, {
4337
+ maximumFractionDigits: xe,
4338
+ minimumFractionDigits: xe
4339
+ }).format(r);
4340
+ return `${t.currency || ""} ${i}`;
4341
+ }
4342
+ }, Ne = (e, t, r = {}, n = !0) => {
4343
+ const i = {
4344
+ maximumFractionDigits: xe,
4345
+ minimumFractionDigits: xe,
4346
+ ...n && {
4347
+ style: "currency",
4348
+ currency: t,
4349
+ currencyDisplay: Vr === "true" ? "symbol" : "code"
4350
+ },
4351
+ ...r
4352
+ };
4353
+ if (!St)
4354
+ return tr({ local: wt, options: i, amount: e });
4355
+ const s = tr({ local: wt, options: i, amount: e }).formatToParts(e), a = s.find((f) => f.type === "currency"), u = s.filter((f) => f.type !== "currency").map((f) => f.value).join("");
4356
+ return St === "before" ? `${a.value || ""} ${u}` : `${u} ${a.value || ""}`;
4300
4357
  };
4301
- window.emWidgets = { topic: ho };
4302
- const zt = {
4358
+ window.emWidgets = { topic: Ao };
4359
+ const Re = (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));
4360
+ String(Number.MAX_SAFE_INTEGER).length;
4361
+ const rr = {
4303
4362
  en: {
4304
4363
  generalMin: "Min",
4305
4364
  generalMax: "Max",
4306
4365
  error: "Error",
4307
- noPaymentMethods: "No payment methods available",
4308
- RealTime: "Instant Deposit",
4366
+ noFavoritePaymentMethods: "No favorite payment methods available",
4367
+ DepositRealTime: "Instant deposit",
4368
+ WithdrawRealTime: "Instant withdrawal",
4369
+ DepositVariable: "Variable",
4370
+ WithdrawVariable: "Variable",
4309
4371
  carouselTitle: "Favorite Methods",
4310
4372
  carouselSubtitle: "The most popular payment methods"
4311
4373
  },
@@ -4321,8 +4383,11 @@ const zt = {
4321
4383
  generalMin: "Min",
4322
4384
  generalMax: "Maks",
4323
4385
  error: "Hata",
4324
- noPaymentMethods: "Hiçbir ödeme yöntemi mevcut değil",
4325
- RealTime: "Anında Para Yatırma",
4386
+ noFavoritePaymentMethods: "Favori ödeme yöntemi mevcut değil",
4387
+ DepositRealTime: "Anında para yatırma",
4388
+ WithdrawRealTime: "Anında para çekme",
4389
+ DepositVariable: "Değişken",
4390
+ WithdrawVariable: "Değişken",
4326
4391
  carouselTitle: "Favori Yöntemler",
4327
4392
  carouselSubtitle: "En popüler ödeme yöntemleri"
4328
4393
  },
@@ -4331,446 +4396,626 @@ const zt = {
4331
4396
  generalMax: "Max"
4332
4397
  }
4333
4398
  };
4334
- function fo(e) {
4335
- Nr(e, "svelte-19lknjo", '*,*::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}.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}.Carousel{display:flex;gap:10px;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}.VisualDotIndicator .Dot.active{opacity:1;width:30px}.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}.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 img{height:36px;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{max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
4399
+ function Mo(e) {
4400
+ 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)}');
4336
4401
  }
4337
- function Zt(e, t, r) {
4402
+ function nr(e, t, r) {
4338
4403
  const n = e.slice();
4339
- return n[32] = t[r], n[34] = r, n;
4404
+ return n[40] = t[r], n[42] = r, n;
4340
4405
  }
4341
- function Qt(e, t, r) {
4406
+ function ir(e, t, r) {
4342
4407
  const n = e.slice();
4343
- return n[35] = t[r], n[34] = r, n;
4408
+ return n[43] = t[r], n[42] = r, n;
4344
4409
  }
4345
- function po(e) {
4410
+ function Oo(e) {
4346
4411
  let t, r = (
4347
4412
  /*$_*/
4348
- e[4]("noPaymentMethods") + ""
4413
+ e[8]("noFavoritePaymentMethods") + ""
4349
4414
  ), n;
4350
4415
  return {
4351
4416
  c() {
4352
- t = P("p"), n = $(r);
4417
+ t = T("p"), n = F(r), P(t, "class", "NoFavoritePaymentMethods");
4353
4418
  },
4354
4419
  m(i, o) {
4355
- G(i, t, o), S(t, n);
4420
+ j(i, t, o), v(t, n);
4356
4421
  },
4357
4422
  p(i, o) {
4358
4423
  o[0] & /*$_*/
4359
- 16 && r !== (r = /*$_*/
4360
- i[4]("noPaymentMethods") + "") && k(n, r);
4424
+ 256 && r !== (r = /*$_*/
4425
+ i[8]("noFavoritePaymentMethods") + "") && V(n, r);
4361
4426
  },
4362
4427
  d(i) {
4363
- i && R(t);
4428
+ i && D(t);
4364
4429
  }
4365
4430
  };
4366
4431
  }
4367
- function mo(e) {
4368
- let t, r, n = (
4369
- /*$_*/
4370
- e[4]("carouselTitle") + ""
4371
- ), i, o, s, a = (
4372
- /*$_*/
4373
- e[4]("carouselSubtitle") + ""
4374
- ), l, u, h, p, c, b, y, g = He(
4432
+ function Bo(e) {
4433
+ let t, r = !Re(
4434
+ /*userAgent*/
4435
+ e[9]
4436
+ ) && /*promotedPaymentMethods*/
4437
+ e[5].length > 1, n, i, o, s = !Re(
4438
+ /*userAgent*/
4439
+ e[9]
4440
+ ) && /*promotedPaymentMethods*/
4441
+ e[5].length > 1, a, l, u, h, f, c = r && or(e), g = Be(
4375
4442
  /*promotedPaymentMethods*/
4376
- e[2]
4377
- ), E = [];
4378
- for (let f = 0; f < g.length; f += 1)
4379
- E[f] = Yt(Qt(e, g, f));
4380
- let A = He(Array(
4443
+ e[5]
4444
+ ), d = [];
4445
+ for (let p = 0; p < g.length; p += 1)
4446
+ d[p] = sr(ir(e, g, p));
4447
+ let m = s && ar(e), _ = Be(Array(
4381
4448
  /*promotedPaymentMethods*/
4382
- e[2].length
4383
- )), x = [];
4384
- for (let f = 0; f < A.length; f += 1)
4385
- x[f] = Jt(Zt(e, A, f));
4449
+ e[5].length
4450
+ )), E = [];
4451
+ for (let p = 0; p < _.length; p += 1)
4452
+ E[p] = ur(nr(e, _, p));
4386
4453
  return {
4387
4454
  c() {
4388
- t = P("div"), r = P("h4"), i = $(n), o = j(), s = P("p"), l = $(a), u = j(), h = P("div");
4389
- for (let f = 0; f < E.length; f += 1)
4390
- E[f].c();
4391
- p = j(), c = P("div");
4392
- for (let f = 0; f < x.length; f += 1)
4393
- x[f].c();
4394
- O(t, "class", "CarouselHeader"), O(h, "class", "Carousel"), O(c, "class", "VisualDotIndicator");
4455
+ t = T("div"), c && c.c(), n = R(), i = T("div");
4456
+ for (let p = 0; p < d.length; p += 1)
4457
+ d[p].c();
4458
+ o = R(), m && m.c(), l = R(), u = T("div");
4459
+ for (let p = 0; p < E.length; p += 1)
4460
+ E[p].c();
4461
+ P(i, "class", "Carousel"), P(t, "class", "CarouselCardsContainer"), je(() => (
4462
+ /*div1_elementresize_handler*/
4463
+ e[28].call(t)
4464
+ )), P(u, "class", "VisualDotIndicator");
4395
4465
  },
4396
- m(f, T) {
4397
- G(f, t, T), S(t, r), S(r, i), S(t, o), S(t, s), S(s, l), G(f, u, T), G(f, h, T);
4398
- for (let d = 0; d < E.length; d += 1)
4399
- E[d] && E[d].m(h, null);
4400
- e[19](h), G(f, p, T), G(f, c, T);
4401
- for (let d = 0; d < x.length; d += 1)
4402
- x[d] && x[d].m(c, null);
4403
- b || (y = [
4404
- Be(
4405
- h,
4466
+ m(p, S) {
4467
+ j(p, t, S), c && c.m(t, null), v(t, n), v(t, i);
4468
+ for (let y = 0; y < d.length; y += 1)
4469
+ d[y] && d[y].m(i, null);
4470
+ e[26](i), v(t, o), m && m.m(t, null), a = tn(
4471
+ t,
4472
+ /*div1_elementresize_handler*/
4473
+ e[28].bind(t)
4474
+ ), j(p, l, S), j(p, u, S);
4475
+ for (let y = 0; y < E.length; y += 1)
4476
+ E[y] && E[y].m(u, null);
4477
+ h || (f = [
4478
+ Z(
4479
+ i,
4406
4480
  "touchstart",
4407
4481
  /*handleTouchStart*/
4408
- e[6]
4482
+ e[11]
4409
4483
  ),
4410
- Be(
4411
- h,
4484
+ Z(
4485
+ i,
4412
4486
  "touchmove",
4413
4487
  /*handleTouchMove*/
4414
- e[7]
4488
+ e[12]
4415
4489
  ),
4416
- Be(
4417
- h,
4490
+ Z(
4491
+ i,
4418
4492
  "touchend",
4419
4493
  /*handleTouchEnd*/
4420
- e[8]
4494
+ e[13]
4421
4495
  )
4422
- ], b = !0);
4496
+ ], h = !0);
4423
4497
  },
4424
- p(f, T) {
4425
- if (T[0] & /*$_*/
4426
- 16 && n !== (n = /*$_*/
4427
- f[4]("carouselTitle") + "") && k(i, n), T[0] & /*$_*/
4428
- 16 && a !== (a = /*$_*/
4429
- f[4]("carouselSubtitle") + "") && k(l, a), T[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, $_*/
4430
- 60) {
4431
- g = He(
4498
+ p(p, S) {
4499
+ if (S[0] & /*promotedPaymentMethods*/
4500
+ 32 && (r = !Re(
4501
+ /*userAgent*/
4502
+ p[9]
4503
+ ) && /*promotedPaymentMethods*/
4504
+ 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*/
4505
+ 1521) {
4506
+ g = Be(
4432
4507
  /*promotedPaymentMethods*/
4433
- f[2]
4508
+ p[5]
4434
4509
  );
4435
- let d;
4436
- for (d = 0; d < g.length; d += 1) {
4437
- const B = Qt(f, g, d);
4438
- E[d] ? E[d].p(B, T) : (E[d] = Yt(B), E[d].c(), E[d].m(h, null));
4510
+ let y;
4511
+ for (y = 0; y < g.length; y += 1) {
4512
+ const A = ir(p, g, y);
4513
+ d[y] ? d[y].p(A, S) : (d[y] = sr(A), d[y].c(), d[y].m(i, null));
4439
4514
  }
4440
- for (; d < E.length; d += 1)
4441
- E[d].d(1);
4442
- E.length = g.length;
4515
+ for (; y < d.length; y += 1)
4516
+ d[y].d(1);
4517
+ d.length = g.length;
4443
4518
  }
4444
- if (T[0] & /*activeIndex, promotedPaymentMethods*/
4445
- 12) {
4446
- A = He(Array(
4519
+ if (S[0] & /*promotedPaymentMethods*/
4520
+ 32 && (s = !Re(
4521
+ /*userAgent*/
4522
+ p[9]
4523
+ ) && /*promotedPaymentMethods*/
4524
+ 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*/
4525
+ 96) {
4526
+ _ = Be(Array(
4447
4527
  /*promotedPaymentMethods*/
4448
- f[2].length
4528
+ p[5].length
4449
4529
  ));
4450
- let d;
4451
- for (d = 0; d < A.length; d += 1) {
4452
- const B = Zt(f, A, d);
4453
- x[d] ? x[d].p(B, T) : (x[d] = Jt(B), x[d].c(), x[d].m(c, null));
4530
+ let y;
4531
+ for (y = 0; y < _.length; y += 1) {
4532
+ const A = nr(p, _, y);
4533
+ E[y] ? E[y].p(A, S) : (E[y] = ur(A), E[y].c(), E[y].m(u, null));
4454
4534
  }
4455
- for (; d < x.length; d += 1)
4456
- x[d].d(1);
4457
- x.length = A.length;
4535
+ for (; y < E.length; y += 1)
4536
+ E[y].d(1);
4537
+ E.length = _.length;
4458
4538
  }
4459
4539
  },
4460
- d(f) {
4461
- f && (R(t), R(u), R(h), R(p), R(c)), St(E, f), e[19](null), St(x, f), b = !1, ae(y);
4540
+ d(p) {
4541
+ 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);
4462
4542
  }
4463
4543
  };
4464
4544
  }
4465
- function Yt(e) {
4545
+ function or(e) {
4546
+ let t, r, n;
4547
+ return {
4548
+ c() {
4549
+ 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");
4550
+ },
4551
+ m(i, o) {
4552
+ j(i, t, o), r || (n = Z(
4553
+ t,
4554
+ "click",
4555
+ /*click_handler*/
4556
+ e[24]
4557
+ ), r = !0);
4558
+ },
4559
+ p: L,
4560
+ d(i) {
4561
+ i && D(t), r = !1, n();
4562
+ }
4563
+ };
4564
+ }
4565
+ function sr(e) {
4466
4566
  let t, r, n, i, o, s, a, l, u, h = (
4467
4567
  /*method*/
4468
- (e[35].Label || /*method*/
4469
- e[35].Name) + ""
4470
- ), p, c, b, y, g = (
4568
+ (e[43].Label || /*method*/
4569
+ e[43].Name) + ""
4570
+ ), f, c, g, d, m = (
4471
4571
  /*$_*/
4472
- e[4](`${/*method*/
4473
- e[35].ProcessingTime}`) + ""
4474
- ), E, A, x, f, T = (
4572
+ e[8](`${/*methodtype*/
4573
+ e[0]}${/*method*/
4574
+ e[43].ProcessingTime}`) + ""
4575
+ ), _, E, p, S, y, A = (
4475
4576
  /*$_*/
4476
- e[4]("generalMin") + ""
4477
- ), d, B, U = Oe(
4577
+ e[8]("generalMin") + ""
4578
+ ), H, $, ee = Ne(
4478
4579
  /*method*/
4479
- e[35].DisplayCurrency.MinAmountLimit,
4580
+ e[43].DisplayCurrency.MinAmountLimit,
4480
4581
  /*method*/
4481
- e[35].DisplayCurrency.Name
4482
- ) + "", z, xe, Q = (
4582
+ e[43].DisplayCurrency.Name,
4583
+ {
4584
+ maximumFractionDigits: (
4585
+ /*precisionCurrenciesMap*/
4586
+ e[4][
4587
+ /*method*/
4588
+ e[43]?.DisplayCurrency?.Name
4589
+ ] || /*numericCurrencyDecimals*/
4590
+ e[7]
4591
+ ),
4592
+ minimumFractionDigits: (
4593
+ /*precisionCurrenciesMap*/
4594
+ e[4][
4595
+ /*method*/
4596
+ e[43]?.DisplayCurrency?.Name
4597
+ ] || /*numericCurrencyDecimals*/
4598
+ e[7]
4599
+ )
4600
+ }
4601
+ ) + "", te, He, J, Y = (
4483
4602
  /*$_*/
4484
- e[4]("generalMax") + ""
4485
- ), he, Se, Y = Oe(
4603
+ e[8]("generalMax") + ""
4604
+ ), k, Ce, re = Ne(
4486
4605
  /*method*/
4487
- e[35].DisplayCurrency.MaxAmountLimit,
4606
+ e[43].DisplayCurrency.MaxAmountLimit,
4488
4607
  /*method*/
4489
- e[35].DisplayCurrency.Name
4490
- ) + "", ce, Te, m, M, L;
4491
- function J() {
4608
+ e[43].DisplayCurrency.Name,
4609
+ {
4610
+ maximumFractionDigits: (
4611
+ /*precisionCurrenciesMap*/
4612
+ e[4][
4613
+ /*method*/
4614
+ e[43]?.DisplayCurrency?.Name
4615
+ ] || /*numericCurrencyDecimals*/
4616
+ e[7]
4617
+ ),
4618
+ minimumFractionDigits: (
4619
+ /*precisionCurrenciesMap*/
4620
+ e[4][
4621
+ /*method*/
4622
+ e[43]?.DisplayCurrency?.Name
4623
+ ] || /*numericCurrencyDecimals*/
4624
+ e[7]
4625
+ )
4626
+ }
4627
+ ) + "", me, Ae, W, de, Pe;
4628
+ function qe() {
4492
4629
  return (
4493
- /*click_handler*/
4494
- e[18](
4630
+ /*click_handler_1*/
4631
+ e[25](
4495
4632
  /*method*/
4496
- e[35]
4633
+ e[43],
4634
+ /*index*/
4635
+ e[42]
4497
4636
  )
4498
4637
  );
4499
4638
  }
4500
4639
  return {
4501
4640
  c() {
4502
- t = P("div"), r = P("div"), n = P("img"), s = j(), a = P("div"), l = P("div"), u = P("span"), p = $(h), c = j(), b = P("div"), y = P("span"), E = $(g), A = j(), x = P("div"), f = P("span"), d = $(T), B = j(), z = $(U), xe = $(" / "), he = $(Q), Se = j(), ce = $(Y), Te = j(), xt(n.src, i = /*method*/
4503
- e[35].LogoUrl) || O(n, "src", i), O(n, "alt", o = /*method*/
4504
- e[35].Label), O(r, "class", "MethodLogo"), O(l, "class", "MethodTitle"), O(b, "class", "MethodProcessingTime"), O(f, "class", "Limits"), O(x, "class", "MethodLimits"), O(a, "class", "MethodInfo"), O(t, "class", m = `CarouselCardWrapper ${/*index*/
4505
- e[34] === /*activeIndex*/
4506
- e[3] ? "active" : ""}`);
4641
+ 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), He = R(), J = T("span"), k = F(Y), Ce = R(), me = F(re), Ae = R(), Mt(n.src, i = /*method*/
4642
+ e[43].LogoUrl) || P(n, "src", i), P(n, "alt", o = /*method*/
4643
+ 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*/
4644
+ e[42] === /*activeIndex*/
4645
+ e[6] ? "active" : ""}`);
4507
4646
  },
4508
4647
  m(q, I) {
4509
- G(q, t, I), S(t, r), S(r, n), S(t, s), S(t, a), S(a, l), S(l, u), S(u, p), S(a, c), S(a, b), S(b, y), S(y, E), S(a, A), S(a, x), S(x, f), S(f, d), S(f, B), S(f, z), S(f, xe), S(f, he), S(f, Se), S(f, ce), S(t, Te), M || (L = Be(t, "click", J), M = !0);
4648
+ 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, He), v(S, J), v(J, k), v(J, Ce), v(J, me), v(t, Ae), de || (Pe = Z(t, "click", qe), de = !0);
4510
4649
  },
4511
4650
  p(q, I) {
4512
4651
  e = q, I[0] & /*promotedPaymentMethods*/
4513
- 4 && !xt(n.src, i = /*method*/
4514
- e[35].LogoUrl) && O(n, "src", i), I[0] & /*promotedPaymentMethods*/
4515
- 4 && o !== (o = /*method*/
4516
- e[35].Label) && O(n, "alt", o), I[0] & /*promotedPaymentMethods*/
4517
- 4 && h !== (h = /*method*/
4518
- (e[35].Label || /*method*/
4519
- e[35].Name) + "") && k(p, h), I[0] & /*$_, promotedPaymentMethods*/
4520
- 20 && g !== (g = /*$_*/
4521
- e[4](`${/*method*/
4522
- e[35].ProcessingTime}`) + "") && k(E, g), I[0] & /*$_*/
4523
- 16 && T !== (T = /*$_*/
4524
- e[4]("generalMin") + "") && k(d, T), I[0] & /*promotedPaymentMethods*/
4525
- 4 && U !== (U = Oe(
4652
+ 32 && !Mt(n.src, i = /*method*/
4653
+ e[43].LogoUrl) && P(n, "src", i), I[0] & /*promotedPaymentMethods*/
4654
+ 32 && o !== (o = /*method*/
4655
+ e[43].Label) && P(n, "alt", o), I[0] & /*promotedPaymentMethods*/
4656
+ 32 && h !== (h = /*method*/
4657
+ (e[43].Label || /*method*/
4658
+ e[43].Name) + "") && V(f, h), I[0] & /*$_, methodtype, promotedPaymentMethods*/
4659
+ 289 && m !== (m = /*$_*/
4660
+ e[8](`${/*methodtype*/
4661
+ e[0]}${/*method*/
4662
+ e[43].ProcessingTime}`) + "") && V(_, m), I[0] & /*$_*/
4663
+ 256 && A !== (A = /*$_*/
4664
+ e[8]("generalMin") + "") && V(H, A), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4665
+ 176 && ee !== (ee = Ne(
4526
4666
  /*method*/
4527
- e[35].DisplayCurrency.MinAmountLimit,
4667
+ e[43].DisplayCurrency.MinAmountLimit,
4528
4668
  /*method*/
4529
- e[35].DisplayCurrency.Name
4530
- ) + "") && k(z, U), I[0] & /*$_*/
4531
- 16 && Q !== (Q = /*$_*/
4532
- e[4]("generalMax") + "") && k(he, Q), I[0] & /*promotedPaymentMethods*/
4533
- 4 && Y !== (Y = Oe(
4669
+ e[43].DisplayCurrency.Name,
4670
+ {
4671
+ maximumFractionDigits: (
4672
+ /*precisionCurrenciesMap*/
4673
+ e[4][
4674
+ /*method*/
4675
+ e[43]?.DisplayCurrency?.Name
4676
+ ] || /*numericCurrencyDecimals*/
4677
+ e[7]
4678
+ ),
4679
+ minimumFractionDigits: (
4680
+ /*precisionCurrenciesMap*/
4681
+ e[4][
4682
+ /*method*/
4683
+ e[43]?.DisplayCurrency?.Name
4684
+ ] || /*numericCurrencyDecimals*/
4685
+ e[7]
4686
+ )
4687
+ }
4688
+ ) + "") && V(te, ee), I[0] & /*$_*/
4689
+ 256 && Y !== (Y = /*$_*/
4690
+ e[8]("generalMax") + "") && V(k, Y), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4691
+ 176 && re !== (re = Ne(
4534
4692
  /*method*/
4535
- e[35].DisplayCurrency.MaxAmountLimit,
4693
+ e[43].DisplayCurrency.MaxAmountLimit,
4536
4694
  /*method*/
4537
- e[35].DisplayCurrency.Name
4538
- ) + "") && k(ce, Y), I[0] & /*activeIndex*/
4539
- 8 && m !== (m = `CarouselCardWrapper ${/*index*/
4540
- e[34] === /*activeIndex*/
4541
- e[3] ? "active" : ""}`) && O(t, "class", m);
4695
+ e[43].DisplayCurrency.Name,
4696
+ {
4697
+ maximumFractionDigits: (
4698
+ /*precisionCurrenciesMap*/
4699
+ e[4][
4700
+ /*method*/
4701
+ e[43]?.DisplayCurrency?.Name
4702
+ ] || /*numericCurrencyDecimals*/
4703
+ e[7]
4704
+ ),
4705
+ minimumFractionDigits: (
4706
+ /*precisionCurrenciesMap*/
4707
+ e[4][
4708
+ /*method*/
4709
+ e[43]?.DisplayCurrency?.Name
4710
+ ] || /*numericCurrencyDecimals*/
4711
+ e[7]
4712
+ )
4713
+ }
4714
+ ) + "") && V(me, re), I[0] & /*activeIndex*/
4715
+ 64 && W !== (W = `CarouselCardWrapper ${/*index*/
4716
+ e[42] === /*activeIndex*/
4717
+ e[6] ? "active" : ""}`) && P(t, "class", W);
4542
4718
  },
4543
4719
  d(q) {
4544
- q && R(t), M = !1, L();
4720
+ q && D(t), de = !1, Pe();
4721
+ }
4722
+ };
4723
+ }
4724
+ function ar(e) {
4725
+ let t, r, n;
4726
+ return {
4727
+ c() {
4728
+ 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");
4729
+ },
4730
+ m(i, o) {
4731
+ j(i, t, o), r || (n = Z(
4732
+ t,
4733
+ "click",
4734
+ /*click_handler_2*/
4735
+ e[27]
4736
+ ), r = !0);
4737
+ },
4738
+ p: L,
4739
+ d(i) {
4740
+ i && D(t), r = !1, n();
4545
4741
  }
4546
4742
  };
4547
4743
  }
4548
- function Jt(e) {
4744
+ function ur(e) {
4549
4745
  let t, r;
4550
4746
  return {
4551
4747
  c() {
4552
- t = P("div"), O(t, "class", r = `Dot ${/*index*/
4553
- e[34] === /*activeIndex*/
4554
- e[3] ? "active" : ""}`);
4748
+ t = T("div"), P(t, "class", r = `Dot ${/*index*/
4749
+ e[42] === /*activeIndex*/
4750
+ e[6] ? "active" : ""}`);
4555
4751
  },
4556
4752
  m(n, i) {
4557
- G(n, t, i);
4753
+ j(n, t, i);
4558
4754
  },
4559
4755
  p(n, i) {
4560
4756
  i[0] & /*activeIndex*/
4561
- 8 && r !== (r = `Dot ${/*index*/
4562
- n[34] === /*activeIndex*/
4563
- n[3] ? "active" : ""}`) && O(t, "class", r);
4757
+ 64 && r !== (r = `Dot ${/*index*/
4758
+ n[42] === /*activeIndex*/
4759
+ n[6] ? "active" : ""}`) && P(t, "class", r);
4564
4760
  },
4565
4761
  d(n) {
4566
- n && R(t);
4762
+ n && D(t);
4567
4763
  }
4568
4764
  };
4569
4765
  }
4570
- function bo(e) {
4571
- let t, r;
4572
- function n(s, a) {
4766
+ function Io(e) {
4767
+ let t, r, n, i, o = (
4768
+ /*$_*/
4769
+ e[8]("carouselTitle") + ""
4770
+ ), s, a, l, u = (
4771
+ /*$_*/
4772
+ e[8]("carouselSubtitle") + ""
4773
+ ), h, f;
4774
+ function c(m, _) {
4573
4775
  return (
4574
4776
  /*promotedPaymentMethods*/
4575
- s[2].length > 0 ? mo : po
4777
+ m[5].length > 0 ? Bo : Oo
4576
4778
  );
4577
4779
  }
4578
- let i = n(e), o = i(e);
4780
+ let g = c(e), d = g(e);
4579
4781
  return {
4580
4782
  c() {
4581
- t = P("div"), r = P("div"), o.c(), O(r, "class", "CashierCarouselWarpper");
4783
+ 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");
4582
4784
  },
4583
- m(s, a) {
4584
- G(s, t, a), S(t, r), o.m(r, null), e[20](t);
4785
+ m(m, _) {
4786
+ 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);
4585
4787
  },
4586
- p(s, a) {
4587
- i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(r, null)));
4788
+ p(m, _) {
4789
+ _[0] & /*$_*/
4790
+ 256 && o !== (o = /*$_*/
4791
+ m[8]("carouselTitle") + "") && V(s, o), _[0] & /*$_*/
4792
+ 256 && u !== (u = /*$_*/
4793
+ 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)));
4588
4794
  },
4589
- i: D,
4590
- o: D,
4591
- d(s) {
4592
- s && R(t), o.d(), e[20](null);
4795
+ i: L,
4796
+ o: L,
4797
+ d(m) {
4798
+ m && D(t), d.d(), e[29](null);
4593
4799
  }
4594
4800
  };
4595
4801
  }
4596
- function go(e, t, r) {
4597
- let n;
4598
- Lr(e, Wi, (m) => r(4, n = m));
4599
- let { lang: i = "en" } = t, { local: o = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: a = "" } = t, { currencydecimals: l = "2" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: p = "" } = t, { translationurl: c = "" } = t, b, y = [], g = 0, E = !0, A = 0, x = !1, f;
4600
- const T = (m) => {
4601
- m.data && m.data.type === "PromotedPaymentMethods" && (r(2, y = m.data.promotedPaymentMethods), r(3, g = Math.floor(y.length / 2)));
4802
+ function Lo(e, t, r) {
4803
+ let n, i;
4804
+ Qr(e, lo, (b) => r(8, i = b));
4805
+ let { lang: o = "en" } = t, { local: s = "en-US" } = t, { currencysymbol: a = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "2" } = 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;
4806
+ const te = (b) => {
4807
+ const { data: { type: O } = {} } = b || {};
4808
+ switch (O) {
4809
+ case "PromotedPaymentMethods": {
4810
+ r(5, E = b?.data?.promotedPaymentMethods), r(6, p = Math.floor((E.length - 1) / 2));
4811
+ break;
4812
+ }
4813
+ case "PrecisionCurrenciesMap": {
4814
+ r(4, m = b?.data?.payload || {});
4815
+ break;
4816
+ }
4817
+ }
4602
4818
  };
4603
- Object.keys(zt).forEach((m) => {
4604
- Ut(m, zt[m]);
4819
+ Object.keys(rr).forEach((b) => {
4820
+ zt(b, rr[b]);
4605
4821
  });
4606
- const d = () => {
4607
- let m = c;
4608
- if (m)
4609
- return fetch(m).then((M) => M.json()).then((M) => {
4610
- Object.keys(M).forEach((L) => {
4611
- Ut(L, M[L]);
4822
+ const He = () => {
4823
+ let b = d;
4824
+ if (b)
4825
+ return fetch(b).then((O) => O.json()).then((O) => {
4826
+ Object.keys(O).forEach((U) => {
4827
+ zt(U, O[U]);
4612
4828
  });
4613
- }).catch((M) => {
4614
- console.log(M);
4829
+ }).catch((O) => {
4830
+ console.log(O);
4615
4831
  });
4616
- }, B = () => {
4617
- zi(i);
4618
- }, U = (m) => {
4619
- m.Name, window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
4832
+ }, J = () => {
4833
+ ho(o);
4834
+ }, Y = (b, O) => {
4835
+ 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(
4620
4836
  "selectPayMeth",
4621
4837
  {
4622
- detail: m,
4838
+ detail: b,
4623
4839
  bubbles: !0,
4624
4840
  cancelable: !0,
4625
4841
  composed: !0
4626
4842
  }
4627
4843
  ));
4628
- }, z = () => {
4629
- let J;
4630
- return y.length % 2 === 1 ? J = Math.floor(y.length / 2) : J = y.length / 2 - 0.5, `translateX(${(J - g) * 165}px)`;
4631
- }, xe = (m) => {
4632
- A = m.touches[0].clientX, x = !0, f.classList.add("dragging");
4633
- }, Q = (m) => {
4634
- if (!x)
4844
+ }, k = () => {
4845
+ if (E.length == 1)
4846
+ return "translateX(0px)";
4847
+ const U = 160 + 5, At = U * E.length;
4848
+ let Ke;
4849
+ E.length % 2 === 1 ? Ke = Math.floor(E.length / 2) : Ke = Math.floor(E.length / 2) - 0.5;
4850
+ let Wr = $ - At;
4851
+ const zr = Ke - p;
4852
+ return `translateX(${Wr / 2 + zr * U - 20}px)`;
4853
+ }, Ce = (b) => {
4854
+ y = b.touches[0].clientX, A = !0, H.classList.add("dragging");
4855
+ }, re = (b) => {
4856
+ if (!A)
4635
4857
  return;
4636
- const M = m.touches[0].clientX;
4637
- Math.abs(M - A) > 10 && m.preventDefault();
4638
- }, he = (m) => {
4639
- if (!x)
4858
+ const O = b.touches[0].clientX;
4859
+ Math.abs(O - y) > 10 && b.preventDefault();
4860
+ }, me = (b) => {
4861
+ if (!A)
4640
4862
  return;
4641
- x = !1, f.classList.remove("dragging");
4642
- const M = m.changedTouches[0].clientX, L = A - M;
4643
- Math.abs(L) > 50 && (L > 0 && g < y.length - 1 ? r(3, g++, g) : L < 0 && g > 0 && r(3, g--, g), r(1, f.style.transform = z(), f));
4644
- }, Se = () => {
4645
- E && (r(1, f.style.transform = z(), f), E = !1);
4863
+ A = !1, H.classList.remove("dragging");
4864
+ const O = b.changedTouches[0].clientX, U = y - O;
4865
+ 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));
4866
+ }, Ae = () => {
4867
+ S && (r(2, H.style.transform = k(), H), S = !1);
4868
+ }, W = (b) => {
4869
+ 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);
4646
4870
  };
4647
- Fr(() => (co(o, s, a, l), window.addEventListener("message", T), f && z(), () => {
4648
- window.removeEventListener("message", T);
4871
+ on(() => (Po(s, a, l, u), window.addEventListener("message", te), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), H && k(), () => {
4872
+ window.removeEventListener("message", te);
4649
4873
  }));
4650
- const Y = (m) => U(m);
4651
- function ce(m) {
4652
- Ne[m ? "unshift" : "push"](() => {
4653
- f = m, r(1, f);
4874
+ const de = () => W("prev"), Pe = (b, O) => Y(b, O);
4875
+ function qe(b) {
4876
+ Ge[b ? "unshift" : "push"](() => {
4877
+ H = b, r(2, H);
4654
4878
  });
4655
4879
  }
4656
- function Te(m) {
4657
- Ne[m ? "unshift" : "push"](() => {
4658
- b = m, r(0, b);
4880
+ const q = () => W("next");
4881
+ function I() {
4882
+ $ = this.clientWidth, r(3, $);
4883
+ }
4884
+ function Xr(b) {
4885
+ Ge[b ? "unshift" : "push"](() => {
4886
+ _ = b, r(1, _);
4659
4887
  });
4660
4888
  }
4661
- return e.$$set = (m) => {
4662
- "lang" in m && r(9, i = m.lang), "local" in m && r(10, o = m.local), "currencysymbol" in m && r(11, s = m.currencysymbol), "currencyposition" in m && r(12, a = m.currencyposition), "currencydecimals" in m && r(13, l = m.currencydecimals), "clientstyling" in m && r(14, u = m.clientstyling), "clientstylingurl" in m && r(15, h = m.clientstylingurl), "mbsource" in m && r(16, p = m.mbsource), "translationurl" in m && r(17, c = m.translationurl);
4889
+ return e.$$set = (b) => {
4890
+ "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);
4663
4891
  }, e.$$.update = () => {
4664
4892
  e.$$.dirty[0] & /*lang*/
4665
- 512 && i && B(), e.$$.dirty[0] & /*lang, translationurl*/
4666
- 131584 && i && c && d(), e.$$.dirty[0] & /*carouselContainer*/
4667
- 2 && f && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4668
- 16385 && u && b && Zi(b, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4669
- 32769 && h && b && Qi(b, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4670
- 65537 && p && b && Yi(b, `${p}.Style`);
4893
+ 32768 && o && J(), e.$$.dirty[0] & /*lang, translationurl*/
4894
+ 8421376 && o && d && He(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
4895
+ 12 && H && $ && Ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4896
+ 1048578 && f && _ && co(_, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4897
+ 2097154 && c && _ && fo(_, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4898
+ 4194306 && g && _ && po(_, `${g}.Style`), e.$$.dirty[0] & /*currencydecimals*/
4899
+ 524288 && r(7, n = Number(u));
4671
4900
  }, [
4672
- b,
4673
- f,
4674
- y,
4675
- g,
4901
+ h,
4902
+ _,
4903
+ H,
4904
+ $,
4905
+ m,
4906
+ E,
4907
+ p,
4676
4908
  n,
4677
- U,
4678
- xe,
4679
- Q,
4680
- he,
4681
4909
  i,
4910
+ ee,
4911
+ Y,
4912
+ Ce,
4913
+ re,
4914
+ me,
4915
+ W,
4682
4916
  o,
4683
4917
  s,
4684
4918
  a,
4685
4919
  l,
4686
4920
  u,
4687
- h,
4688
- p,
4921
+ f,
4689
4922
  c,
4690
- Y,
4691
- ce,
4692
- Te
4923
+ g,
4924
+ d,
4925
+ de,
4926
+ Pe,
4927
+ qe,
4928
+ q,
4929
+ I,
4930
+ Xr
4693
4931
  ];
4694
4932
  }
4695
- class yo extends Kr {
4933
+ class No extends gn {
4696
4934
  constructor(t) {
4697
- super(), Jr(
4935
+ super(), dn(
4698
4936
  this,
4699
4937
  t,
4700
- go,
4701
- bo,
4702
- Kt,
4938
+ Lo,
4939
+ Io,
4940
+ hr,
4703
4941
  {
4704
- lang: 9,
4705
- local: 10,
4706
- currencysymbol: 11,
4707
- currencyposition: 12,
4708
- currencydecimals: 13,
4709
- clientstyling: 14,
4710
- clientstylingurl: 15,
4711
- mbsource: 16,
4712
- translationurl: 17
4942
+ lang: 15,
4943
+ local: 16,
4944
+ currencysymbol: 17,
4945
+ currencyposition: 18,
4946
+ currencydecimals: 19,
4947
+ methodtype: 0,
4948
+ clientstyling: 20,
4949
+ clientstylingurl: 21,
4950
+ mbsource: 22,
4951
+ translationurl: 23
4713
4952
  },
4714
- fo,
4953
+ Mo,
4715
4954
  [-1, -1]
4716
4955
  );
4717
4956
  }
4718
4957
  get lang() {
4719
- return this.$$.ctx[9];
4958
+ return this.$$.ctx[15];
4720
4959
  }
4721
4960
  set lang(t) {
4722
4961
  this.$$set({ lang: t }), N();
4723
4962
  }
4724
4963
  get local() {
4725
- return this.$$.ctx[10];
4964
+ return this.$$.ctx[16];
4726
4965
  }
4727
4966
  set local(t) {
4728
4967
  this.$$set({ local: t }), N();
4729
4968
  }
4730
4969
  get currencysymbol() {
4731
- return this.$$.ctx[11];
4970
+ return this.$$.ctx[17];
4732
4971
  }
4733
4972
  set currencysymbol(t) {
4734
4973
  this.$$set({ currencysymbol: t }), N();
4735
4974
  }
4736
4975
  get currencyposition() {
4737
- return this.$$.ctx[12];
4976
+ return this.$$.ctx[18];
4738
4977
  }
4739
4978
  set currencyposition(t) {
4740
4979
  this.$$set({ currencyposition: t }), N();
4741
4980
  }
4742
4981
  get currencydecimals() {
4743
- return this.$$.ctx[13];
4982
+ return this.$$.ctx[19];
4744
4983
  }
4745
4984
  set currencydecimals(t) {
4746
4985
  this.$$set({ currencydecimals: t }), N();
4747
4986
  }
4987
+ get methodtype() {
4988
+ return this.$$.ctx[0];
4989
+ }
4990
+ set methodtype(t) {
4991
+ this.$$set({ methodtype: t }), N();
4992
+ }
4748
4993
  get clientstyling() {
4749
- return this.$$.ctx[14];
4994
+ return this.$$.ctx[20];
4750
4995
  }
4751
4996
  set clientstyling(t) {
4752
4997
  this.$$set({ clientstyling: t }), N();
4753
4998
  }
4754
4999
  get clientstylingurl() {
4755
- return this.$$.ctx[15];
5000
+ return this.$$.ctx[21];
4756
5001
  }
4757
5002
  set clientstylingurl(t) {
4758
5003
  this.$$set({ clientstylingurl: t }), N();
4759
5004
  }
4760
5005
  get mbsource() {
4761
- return this.$$.ctx[16];
5006
+ return this.$$.ctx[22];
4762
5007
  }
4763
5008
  set mbsource(t) {
4764
5009
  this.$$set({ mbsource: t }), N();
4765
5010
  }
4766
5011
  get translationurl() {
4767
- return this.$$.ctx[17];
5012
+ return this.$$.ctx[23];
4768
5013
  }
4769
5014
  set translationurl(t) {
4770
5015
  this.$$set({ translationurl: t }), N();
4771
5016
  }
4772
5017
  }
4773
- qr(yo, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
5018
+ bn(No, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4774
5019
  export {
4775
- yo as C
5020
+ No as C
4776
5021
  };