@everymatrix/cashier-header 1.73.1 → 1.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  function B() {
2
2
  }
3
- function er(e, t) {
3
+ function Yt(e, t) {
4
4
  for (const r in t)
5
5
  e[r] = t[r];
6
6
  return (
@@ -8,25 +8,25 @@ function er(e, t) {
8
8
  e
9
9
  );
10
10
  }
11
- function yt(e) {
11
+ function _t(e) {
12
12
  return e();
13
13
  }
14
- function Qe() {
14
+ function Ze() {
15
15
  return /* @__PURE__ */ Object.create(null);
16
16
  }
17
- function te(e) {
18
- e.forEach(yt);
17
+ function ee(e) {
18
+ e.forEach(_t);
19
19
  }
20
- function Ve(e) {
20
+ function ke(e) {
21
21
  return typeof e == "function";
22
22
  }
23
- function Et(e, t) {
23
+ function yt(e, t) {
24
24
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
25
25
  }
26
- function tr(e) {
26
+ function Kt(e) {
27
27
  return Object.keys(e).length === 0;
28
28
  }
29
- function xt(e, ...t) {
29
+ function Et(e, ...t) {
30
30
  if (e == null) {
31
31
  for (const n of t)
32
32
  n(void 0);
@@ -35,19 +35,19 @@ function xt(e, ...t) {
35
35
  const r = e.subscribe(...t);
36
36
  return r.unsubscribe ? () => r.unsubscribe() : r;
37
37
  }
38
- function rr(e, t, r) {
39
- e.$$.on_destroy.push(xt(t, r));
38
+ function er(e, t, r) {
39
+ e.$$.on_destroy.push(Et(t, r));
40
40
  }
41
- function xe(e, t, r, n) {
41
+ function Ee(e, t, r, n) {
42
42
  if (e) {
43
- const i = vt(e, t, r, n);
43
+ const i = xt(e, t, r, n);
44
44
  return e[0](i);
45
45
  }
46
46
  }
47
- function vt(e, t, r, n) {
48
- return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
47
+ function xt(e, t, r, n) {
48
+ return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
49
49
  }
50
- function ve(e, t, r, n) {
50
+ function xe(e, t, r, n) {
51
51
  if (e[2] && n) {
52
52
  const i = e[2](n(r));
53
53
  if (t.dirty === void 0)
@@ -62,13 +62,13 @@ function ve(e, t, r, n) {
62
62
  }
63
63
  return t.dirty;
64
64
  }
65
- function He(e, t, r, n, i, s) {
65
+ function ve(e, t, r, n, i, s) {
66
66
  if (i) {
67
- const u = vt(t, r, n, s);
67
+ const u = xt(t, r, n, s);
68
68
  e.p(u, i);
69
69
  }
70
70
  }
71
- function Be(e) {
71
+ function He(e) {
72
72
  if (e.ctx.length > 32) {
73
73
  const t = [], r = e.ctx.length / 32;
74
74
  for (let n = 0; n < r; n++)
@@ -77,17 +77,17 @@ function Be(e) {
77
77
  }
78
78
  return -1;
79
79
  }
80
- function ce(e, t) {
80
+ function fe(e, t) {
81
81
  e.appendChild(t);
82
82
  }
83
- function nr(e, t, r) {
84
- const n = ir(e);
83
+ function tr(e, t, r) {
84
+ const n = rr(e);
85
85
  if (!n.getElementById(t)) {
86
- const i = z("style");
87
- i.id = t, i.textContent = r, sr(n, i);
86
+ const i = X("style");
87
+ i.id = t, i.textContent = r, nr(n, i);
88
88
  }
89
89
  }
90
- function ir(e) {
90
+ function rr(e) {
91
91
  if (!e)
92
92
  return document;
93
93
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -97,45 +97,45 @@ function ir(e) {
97
97
  t
98
98
  ) : e.ownerDocument;
99
99
  }
100
- function sr(e, t) {
101
- return ce(
100
+ function nr(e, t) {
101
+ return fe(
102
102
  /** @type {Document} */
103
103
  e.head || e,
104
104
  t
105
105
  ), t.sheet;
106
106
  }
107
- function M(e, t, r) {
107
+ function I(e, t, r) {
108
108
  e.insertBefore(t, r || null);
109
109
  }
110
- function P(e) {
110
+ function C(e) {
111
111
  e.parentNode && e.parentNode.removeChild(e);
112
112
  }
113
- function z(e) {
113
+ function X(e) {
114
114
  return document.createElement(e);
115
115
  }
116
- function Xe(e) {
116
+ function Ve(e) {
117
117
  return document.createTextNode(e);
118
118
  }
119
- function Je() {
120
- return Xe(" ");
119
+ function Qe() {
120
+ return Ve(" ");
121
121
  }
122
- function Ht() {
123
- return Xe("");
122
+ function vt() {
123
+ return Ve("");
124
124
  }
125
- function Bt(e, t, r, n) {
125
+ function Ht(e, t, r, n) {
126
126
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
127
127
  }
128
- function re(e, t, r) {
128
+ function te(e, t, r) {
129
129
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
130
130
  }
131
- function or(e) {
131
+ function ir(e) {
132
132
  return Array.from(e.childNodes);
133
133
  }
134
- function ar(e, t) {
134
+ function sr(e, t) {
135
135
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
136
136
  t);
137
137
  }
138
- function ur(e) {
138
+ function or(e) {
139
139
  const t = {};
140
140
  return e.childNodes.forEach(
141
141
  /** @param {Element} node */
@@ -144,89 +144,97 @@ function ur(e) {
144
144
  }
145
145
  ), t;
146
146
  }
147
- let We;
148
- function Y(e) {
149
- We = e;
147
+ let q;
148
+ function J(e) {
149
+ q = e;
150
+ }
151
+ function ar() {
152
+ if (!q)
153
+ throw new Error("Function called outside component initialization");
154
+ return q;
155
+ }
156
+ function ur(e) {
157
+ ar().$$.on_mount.push(e);
150
158
  }
151
- const F = [], Ne = [];
152
- let j = [];
153
- const qe = [], hr = /* @__PURE__ */ Promise.resolve();
154
- let Ie = !1;
159
+ const D = [], Le = [];
160
+ let G = [];
161
+ const Je = [], hr = /* @__PURE__ */ Promise.resolve();
162
+ let Ne = !1;
155
163
  function lr() {
156
- Ie || (Ie = !0, hr.then(A));
164
+ Ne || (Ne = !0, hr.then(T));
157
165
  }
158
- function Me(e) {
159
- j.push(e);
166
+ function Ie(e) {
167
+ G.push(e);
160
168
  }
161
- const Te = /* @__PURE__ */ new Set();
162
- let D = 0;
163
- function A() {
164
- if (D !== 0)
169
+ const Be = /* @__PURE__ */ new Set();
170
+ let R = 0;
171
+ function T() {
172
+ if (R !== 0)
165
173
  return;
166
- const e = We;
174
+ const e = q;
167
175
  do {
168
176
  try {
169
- for (; D < F.length; ) {
170
- const t = F[D];
171
- D++, Y(t), fr(t.$$);
177
+ for (; R < D.length; ) {
178
+ const t = D[R];
179
+ R++, J(t), fr(t.$$);
172
180
  }
173
181
  } catch (t) {
174
- throw F.length = 0, D = 0, t;
182
+ throw D.length = 0, R = 0, t;
175
183
  }
176
- for (Y(null), F.length = 0, D = 0; Ne.length; )
177
- Ne.pop()();
178
- for (let t = 0; t < j.length; t += 1) {
179
- const r = j[t];
180
- Te.has(r) || (Te.add(r), r());
184
+ for (J(null), D.length = 0, R = 0; Le.length; )
185
+ Le.pop()();
186
+ for (let t = 0; t < G.length; t += 1) {
187
+ const r = G[t];
188
+ Be.has(r) || (Be.add(r), r());
181
189
  }
182
- j.length = 0;
183
- } while (F.length);
184
- for (; qe.length; )
185
- qe.pop()();
186
- Ie = !1, Te.clear(), Y(e);
190
+ G.length = 0;
191
+ } while (D.length);
192
+ for (; Je.length; )
193
+ Je.pop()();
194
+ Ne = !1, Be.clear(), J(e);
187
195
  }
188
196
  function fr(e) {
189
197
  if (e.fragment !== null) {
190
- e.update(), te(e.before_update);
198
+ e.update(), ee(e.before_update);
191
199
  const t = e.dirty;
192
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
200
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
193
201
  }
194
202
  }
195
203
  function cr(e) {
196
204
  const t = [], r = [];
197
- j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
205
+ G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
198
206
  }
199
- const ae = /* @__PURE__ */ new Set();
207
+ const oe = /* @__PURE__ */ new Set();
200
208
  let mr;
201
- function ue(e, t) {
202
- e && e.i && (ae.delete(e), e.i(t));
209
+ function ae(e, t) {
210
+ e && e.i && (oe.delete(e), e.i(t));
203
211
  }
204
- function we(e, t, r, n) {
212
+ function Te(e, t, r, n) {
205
213
  if (e && e.o) {
206
- if (ae.has(e))
214
+ if (oe.has(e))
207
215
  return;
208
- ae.add(e), mr.c.push(() => {
209
- ae.delete(e);
216
+ oe.add(e), mr.c.push(() => {
217
+ oe.delete(e);
210
218
  }), e.o(t);
211
219
  }
212
220
  }
213
221
  function pr(e, t, r) {
214
222
  const { fragment: n, after_update: i } = e.$$;
215
- n && n.m(t, r), Me(() => {
216
- const s = e.$$.on_mount.map(yt).filter(Ve);
217
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
218
- }), i.forEach(Me);
223
+ n && n.m(t, r), Ie(() => {
224
+ const s = e.$$.on_mount.map(_t).filter(ke);
225
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
226
+ }), i.forEach(Ie);
219
227
  }
220
228
  function dr(e, t) {
221
229
  const r = e.$$;
222
- r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
230
+ r.fragment !== null && (cr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
223
231
  }
224
232
  function br(e, t) {
225
- e.$$.dirty[0] === -1 && (F.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
233
+ e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
226
234
  }
227
235
  function gr(e, t, r, n, i, s, u = null, o = [-1]) {
228
- const l = We;
229
- Y(e);
236
+ const l = q;
237
+ J(e);
230
238
  const a = e.$$ = {
231
239
  fragment: null,
232
240
  ctx: [],
@@ -234,7 +242,7 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
234
242
  props: s,
235
243
  update: B,
236
244
  not_equal: i,
237
- bound: Qe(),
245
+ bound: Ze(),
238
246
  // lifecycle
239
247
  on_mount: [],
240
248
  on_destroy: [],
@@ -243,28 +251,28 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
243
251
  after_update: [],
244
252
  context: new Map(t.context || (l ? l.$$.context : [])),
245
253
  // everything else
246
- callbacks: Qe(),
254
+ callbacks: Ze(),
247
255
  dirty: o,
248
256
  skip_bound: !1,
249
257
  root: t.target || l.$$.root
250
258
  };
251
259
  u && u(a.root);
252
260
  let h = !1;
253
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
254
- const m = p.length ? p[0] : c;
255
- return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && br(e, f)), c;
256
- }) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
261
+ if (a.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
262
+ const f = p.length ? p[0] : m;
263
+ return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h && br(e, c)), m;
264
+ }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
257
265
  if (t.hydrate) {
258
- const f = or(t.target);
259
- a.fragment && a.fragment.l(f), f.forEach(P);
266
+ const c = ir(t.target);
267
+ a.fragment && a.fragment.l(c), c.forEach(C);
260
268
  } else
261
269
  a.fragment && a.fragment.c();
262
- t.intro && ue(e.$$.fragment), pr(e, t.target, t.anchor), A();
270
+ t.intro && ae(e.$$.fragment), pr(e, t.target, t.anchor), T();
263
271
  }
264
- Y(l);
272
+ J(l);
265
273
  }
266
- let Tt;
267
- typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
274
+ let Bt;
275
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
268
276
  /** The Svelte component constructor */
269
277
  $$ctor;
270
278
  /** Slots */
@@ -306,29 +314,29 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
306
314
  let s;
307
315
  return {
308
316
  c: function() {
309
- s = z("slot"), i !== "default" && re(s, "name", i);
317
+ s = X("slot"), i !== "default" && te(s, "name", i);
310
318
  },
311
319
  /**
312
320
  * @param {HTMLElement} target
313
321
  * @param {HTMLElement} [anchor]
314
322
  */
315
323
  m: function(l, a) {
316
- M(l, s, a);
324
+ I(l, s, a);
317
325
  },
318
326
  d: function(l) {
319
- l && P(s);
327
+ l && C(s);
320
328
  }
321
329
  };
322
330
  };
323
331
  };
324
332
  if (await Promise.resolve(), !this.$$cn || this.$$c)
325
333
  return;
326
- const t = {}, r = ur(this);
334
+ const t = {}, r = or(this);
327
335
  for (const i of this.$$s)
328
336
  i in r && (t[i] = [e(i)]);
329
337
  for (const i of this.attributes) {
330
338
  const s = this.$$g_p(i.name);
331
- s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
339
+ s in this.$$d || (this.$$d[s] = ue(s, i.value, this.$$p_d, "toProp"));
332
340
  }
333
341
  for (const i in this.$$p_d)
334
342
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -346,7 +354,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
346
354
  this.$$r = !0;
347
355
  for (const i in this.$$p_d)
348
356
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
349
- const s = he(
357
+ const s = ue(
350
358
  i,
351
359
  this.$$d[i],
352
360
  this.$$p_d,
@@ -368,7 +376,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
368
376
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
369
377
  // and setting attributes through setAttribute etc, this is helpful
370
378
  attributeChangedCallback(e, t, r) {
371
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
379
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ue(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
372
380
  }
373
381
  disconnectedCallback() {
374
382
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -381,7 +389,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
381
389
  ) || e;
382
390
  }
383
391
  });
384
- function he(e, t, r, n) {
392
+ function ue(e, t, r, n) {
385
393
  const i = r[e]?.type;
386
394
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
387
395
  return t;
@@ -411,7 +419,7 @@ function he(e, t, r, n) {
411
419
  }
412
420
  }
413
421
  function _r(e, t, r, n, i, s) {
414
- let u = class extends Tt {
422
+ let u = class extends Bt {
415
423
  constructor() {
416
424
  super(e, r, i), this.$$p_d = t;
417
425
  }
@@ -427,7 +435,7 @@ function _r(e, t, r, n, i, s) {
427
435
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
428
436
  },
429
437
  set(l) {
430
- l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
438
+ l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
431
439
  }
432
440
  });
433
441
  }), n.forEach((o) => {
@@ -467,7 +475,7 @@ class yr {
467
475
  * @returns {() => void}
468
476
  */
469
477
  $on(t, r) {
470
- if (!Ve(r))
478
+ if (!ke(r))
471
479
  return B;
472
480
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
473
481
  return n.push(r), () => {
@@ -480,29 +488,29 @@ class yr {
480
488
  * @returns {void}
481
489
  */
482
490
  $set(t) {
483
- this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
491
+ this.$$set && !Kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
484
492
  }
485
493
  }
486
494
  const Er = "4";
487
495
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
488
- const G = [];
496
+ const U = [];
489
497
  function xr(e, t) {
490
498
  return {
491
- subscribe: ge(e, t).subscribe
499
+ subscribe: be(e, t).subscribe
492
500
  };
493
501
  }
494
- function ge(e, t = B) {
502
+ function be(e, t = B) {
495
503
  let r;
496
504
  const n = /* @__PURE__ */ new Set();
497
505
  function i(o) {
498
- if (Et(e, o) && (e = o, r)) {
499
- const l = !G.length;
506
+ if (yt(e, o) && (e = o, r)) {
507
+ const l = !U.length;
500
508
  for (const a of n)
501
- a[1](), G.push(a, e);
509
+ a[1](), U.push(a, e);
502
510
  if (l) {
503
- for (let a = 0; a < G.length; a += 2)
504
- G[a][0](G[a + 1]);
505
- G.length = 0;
511
+ for (let a = 0; a < U.length; a += 2)
512
+ U[a][0](U[a + 1]);
513
+ U.length = 0;
506
514
  }
507
515
  }
508
516
  }
@@ -517,7 +525,7 @@ function ge(e, t = B) {
517
525
  }
518
526
  return { set: i, update: s, subscribe: u };
519
527
  }
520
- function Z(e, t, r) {
528
+ function W(e, t, r) {
521
529
  const n = !Array.isArray(e), i = n ? [e] : e;
522
530
  if (!i.every(Boolean))
523
531
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -525,26 +533,26 @@ function Z(e, t, r) {
525
533
  return xr(r, (u, o) => {
526
534
  let l = !1;
527
535
  const a = [];
528
- let h = 0, f = B;
529
- const c = () => {
536
+ let h = 0, c = B;
537
+ const m = () => {
530
538
  if (h)
531
539
  return;
532
- f();
533
- const m = t(n ? a[0] : a, u, o);
534
- s ? u(m) : f = Ve(m) ? m : B;
540
+ c();
541
+ const f = t(n ? a[0] : a, u, o);
542
+ s ? u(f) : c = ke(f) ? f : B;
535
543
  }, p = i.map(
536
- (m, g) => xt(
537
- m,
544
+ (f, _) => Et(
545
+ f,
538
546
  (v) => {
539
- a[g] = v, h &= ~(1 << g), l && c();
547
+ a[_] = v, h &= ~(1 << _), l && m();
540
548
  },
541
549
  () => {
542
- h |= 1 << g;
550
+ h |= 1 << _;
543
551
  }
544
552
  )
545
553
  );
546
- return l = !0, c(), function() {
547
- te(p), f(), l = !1;
554
+ return l = !0, m(), function() {
555
+ ee(p), c(), l = !1;
548
556
  };
549
557
  });
550
558
  }
@@ -568,29 +576,29 @@ function Ar(e) {
568
576
  function Or(e) {
569
577
  return Array.isArray(e) ? [] : {};
570
578
  }
571
- function K(e, t) {
572
- return t.clone !== !1 && t.isMergeableObject(e) ? k(Or(e), e, t) : e;
579
+ function Y(e, t) {
580
+ return t.clone !== !1 && t.isMergeableObject(e) ? F(Or(e), e, t) : e;
573
581
  }
574
- function Cr(e, t, r) {
582
+ function Pr(e, t, r) {
575
583
  return e.concat(t).map(function(n) {
576
- return K(n, r);
584
+ return Y(n, r);
577
585
  });
578
586
  }
579
- function Pr(e, t) {
587
+ function Cr(e, t) {
580
588
  if (!t.customMerge)
581
- return k;
589
+ return F;
582
590
  var r = t.customMerge(e);
583
- return typeof r == "function" ? r : k;
591
+ return typeof r == "function" ? r : F;
584
592
  }
585
593
  function Lr(e) {
586
594
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
587
595
  return Object.propertyIsEnumerable.call(e, t);
588
596
  }) : [];
589
597
  }
590
- function Ye(e) {
598
+ function qe(e) {
591
599
  return Object.keys(e).concat(Lr(e));
592
600
  }
593
- function wt(e, t) {
601
+ function Tt(e, t) {
594
602
  try {
595
603
  return t in e;
596
604
  } catch {
@@ -598,56 +606,56 @@ function wt(e, t) {
598
606
  }
599
607
  }
600
608
  function Nr(e, t) {
601
- return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
609
+ return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
602
610
  }
603
611
  function Ir(e, t, r) {
604
612
  var n = {};
605
- return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
606
- n[i] = K(e[i], r);
607
- }), Ye(t).forEach(function(i) {
608
- Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
613
+ return r.isMergeableObject(e) && qe(e).forEach(function(i) {
614
+ n[i] = Y(e[i], r);
615
+ }), qe(t).forEach(function(i) {
616
+ Nr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Cr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
609
617
  }), n;
610
618
  }
611
- function k(e, t, r) {
612
- r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = K;
619
+ function F(e, t, r) {
620
+ r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = Y;
613
621
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
614
- return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : K(t, r);
622
+ return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : Y(t, r);
615
623
  }
616
- k.all = function(t, r) {
624
+ F.all = function(t, r) {
617
625
  if (!Array.isArray(t))
618
626
  throw new Error("first argument should be an array");
619
627
  return t.reduce(function(n, i) {
620
- return k(n, i, r);
628
+ return F(n, i, r);
621
629
  }, {});
622
630
  };
623
- var Mr = k, $r = Mr;
631
+ var Mr = F, $r = Mr;
624
632
  const Rr = /* @__PURE__ */ vr($r);
625
- var $e = function(e, t) {
626
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
633
+ var Me = function(e, t) {
634
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
627
635
  r.__proto__ = n;
628
636
  } || function(r, n) {
629
637
  for (var i in n)
630
638
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
631
- }, $e(e, t);
639
+ }, Me(e, t);
632
640
  };
633
- function _e(e, t) {
641
+ function ge(e, t) {
634
642
  if (typeof t != "function" && t !== null)
635
643
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
636
- $e(e, t);
644
+ Me(e, t);
637
645
  function r() {
638
646
  this.constructor = e;
639
647
  }
640
648
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
641
649
  }
642
- var T = function() {
643
- return T = Object.assign || function(t) {
650
+ var w = function() {
651
+ return w = Object.assign || function(t) {
644
652
  for (var r, n = 1, i = arguments.length; n < i; n++) {
645
653
  r = arguments[n];
646
654
  for (var s in r)
647
655
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
648
656
  }
649
657
  return t;
650
- }, T.apply(this, arguments);
658
+ }, w.apply(this, arguments);
651
659
  };
652
660
  function Ur(e, t) {
653
661
  var r = {};
@@ -658,13 +666,13 @@ function Ur(e, t) {
658
666
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
659
667
  return r;
660
668
  }
661
- function Se(e, t, r) {
669
+ function we(e, t, r) {
662
670
  if (r || arguments.length === 2)
663
671
  for (var n = 0, i = t.length, s; n < i; n++)
664
672
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
665
673
  return e.concat(s || Array.prototype.slice.call(t));
666
674
  }
667
- function Ae(e, t) {
675
+ function Se(e, t) {
668
676
  var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
669
677
  return i(e, {
670
678
  cache: r,
@@ -678,19 +686,19 @@ function Gr(e, t, r, n) {
678
686
  var i = Dr(n) ? n : r(n), s = t.get(i);
679
687
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
680
688
  }
681
- function St(e, t, r) {
689
+ function wt(e, t, r) {
682
690
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
683
691
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
684
692
  }
685
- function At(e, t, r, n, i) {
693
+ function St(e, t, r, n, i) {
686
694
  return r.bind(t, e, n, i);
687
695
  }
688
696
  function Fr(e, t) {
689
- var r = e.length === 1 ? Gr : St;
690
- return At(e, this, r, t.cache.create(), t.serializer);
697
+ var r = e.length === 1 ? Gr : wt;
698
+ return St(e, this, r, t.cache.create(), t.serializer);
691
699
  }
692
700
  function jr(e, t) {
693
- return At(e, this, St, t.cache.create(), t.serializer);
701
+ return St(e, this, wt, t.cache.create(), t.serializer);
694
702
  }
695
703
  var kr = function() {
696
704
  return JSON.stringify(arguments);
@@ -710,17 +718,17 @@ var kr = function() {
710
718
  create: function() {
711
719
  return new Vr();
712
720
  }
713
- }, Oe = {
721
+ }, Ae = {
714
722
  variadic: jr
715
- }, me = function() {
716
- return me = Object.assign || function(t) {
723
+ }, ce = function() {
724
+ return ce = Object.assign || function(t) {
717
725
  for (var r, n = 1, i = arguments.length; n < i; n++) {
718
726
  r = arguments[n];
719
727
  for (var s in r)
720
728
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
721
729
  }
722
730
  return t;
723
- }, me.apply(this, arguments);
731
+ }, ce.apply(this, arguments);
724
732
  };
725
733
  var d;
726
734
  (function(e) {
@@ -730,44 +738,44 @@ var y;
730
738
  (function(e) {
731
739
  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";
732
740
  })(y || (y = {}));
733
- var V;
741
+ var j;
734
742
  (function(e) {
735
743
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
736
- })(V || (V = {}));
737
- function Ke(e) {
744
+ })(j || (j = {}));
745
+ function Ye(e) {
738
746
  return e.type === y.literal;
739
747
  }
740
748
  function Wr(e) {
741
749
  return e.type === y.argument;
742
750
  }
743
- function Ot(e) {
751
+ function At(e) {
744
752
  return e.type === y.number;
745
753
  }
746
- function Ct(e) {
754
+ function Ot(e) {
747
755
  return e.type === y.date;
748
756
  }
749
757
  function Pt(e) {
750
758
  return e.type === y.time;
751
759
  }
752
- function Lt(e) {
760
+ function Ct(e) {
753
761
  return e.type === y.select;
754
762
  }
755
- function Nt(e) {
763
+ function Lt(e) {
756
764
  return e.type === y.plural;
757
765
  }
758
766
  function zr(e) {
759
767
  return e.type === y.pound;
760
768
  }
761
- function It(e) {
769
+ function Nt(e) {
762
770
  return e.type === y.tag;
763
771
  }
764
- function Mt(e) {
765
- return !!(e && typeof e == "object" && e.type === V.number);
772
+ function It(e) {
773
+ return !!(e && typeof e == "object" && e.type === j.number);
766
774
  }
767
- function Re(e) {
768
- return !!(e && typeof e == "object" && e.type === V.dateTime);
775
+ function $e(e) {
776
+ return !!(e && typeof e == "object" && e.type === j.dateTime);
769
777
  }
770
- var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
778
+ var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
771
779
  function Qr(e) {
772
780
  var t = {};
773
781
  return e.replace(Zr, function(r) {
@@ -873,15 +881,15 @@ var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
873
881
  function qr(e) {
874
882
  if (e.length === 0)
875
883
  throw new Error("Number skeleton cannot be empty");
876
- for (var t = e.split(Jr).filter(function(c) {
877
- return c.length > 0;
884
+ for (var t = e.split(Jr).filter(function(m) {
885
+ return m.length > 0;
878
886
  }), r = [], n = 0, i = t; n < i.length; n++) {
879
887
  var s = i[n], u = s.split("/");
880
888
  if (u.length === 0)
881
889
  throw new Error("Invalid number skeleton");
882
890
  for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
883
- var f = h[a];
884
- if (f.length === 0)
891
+ var c = h[a];
892
+ if (c.length === 0)
885
893
  throw new Error("Invalid number skeleton");
886
894
  }
887
895
  r.push({ stem: o, options: l });
@@ -891,14 +899,14 @@ function qr(e) {
891
899
  function Yr(e) {
892
900
  return e.replace(/^(.*?)-/, "");
893
901
  }
894
- var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
895
- function tt(e) {
902
+ var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
903
+ function et(e) {
896
904
  var t = {};
897
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
905
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
898
906
  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)), "";
899
907
  }), t;
900
908
  }
901
- function Dt(e) {
909
+ function Ut(e) {
902
910
  switch (e) {
903
911
  case "sign-auto":
904
912
  return {
@@ -946,14 +954,14 @@ function en(e) {
946
954
  notation: "scientific"
947
955
  }, e = e.slice(1)), t) {
948
956
  var r = e.slice(0, 2);
949
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
957
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
950
958
  throw new Error("Malformed concise eng/scientific notation");
951
959
  t.minimumIntegerDigits = e.length;
952
960
  }
953
961
  return t;
954
962
  }
955
- function rt(e) {
956
- var t = {}, r = Dt(e);
963
+ function tt(e) {
964
+ var t = {}, r = Ut(e);
957
965
  return r || t;
958
966
  }
959
967
  function tn(e) {
@@ -992,12 +1000,12 @@ function tn(e) {
992
1000
  continue;
993
1001
  case "scientific":
994
1002
  t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
995
- return E(E({}, l), rt(a));
1003
+ return E(E({}, l), tt(a));
996
1004
  }, {}));
997
1005
  continue;
998
1006
  case "engineering":
999
1007
  t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
1000
- return E(E({}, l), rt(a));
1008
+ return E(E({}, l), tt(a));
1001
1009
  }, {}));
1002
1010
  continue;
1003
1011
  case "notation-simple":
@@ -1042,11 +1050,11 @@ function tn(e) {
1042
1050
  case "integer-width":
1043
1051
  if (i.options.length > 1)
1044
1052
  throw new RangeError("integer-width stems only accept a single optional option");
1045
- i.options[0].replace(Kr, function(l, a, h, f, c, p) {
1053
+ i.options[0].replace(Kr, function(l, a, h, c, m, p) {
1046
1054
  if (a)
1047
1055
  t.minimumIntegerDigits = h.length;
1048
1056
  else {
1049
- if (f && c)
1057
+ if (c && m)
1050
1058
  throw new Error("We currently do not support maximum integer digits");
1051
1059
  if (p)
1052
1060
  throw new Error("We currently do not support exact integer digits");
@@ -1055,32 +1063,32 @@ function tn(e) {
1055
1063
  });
1056
1064
  continue;
1057
1065
  }
1058
- if (Ut.test(i.stem)) {
1066
+ if (Rt.test(i.stem)) {
1059
1067
  t.minimumIntegerDigits = i.stem.length;
1060
1068
  continue;
1061
1069
  }
1062
- if (et.test(i.stem)) {
1070
+ if (Ke.test(i.stem)) {
1063
1071
  if (i.options.length > 1)
1064
1072
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1065
- i.stem.replace(et, function(l, a, h, f, c, p) {
1066
- return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1073
+ i.stem.replace(Ke, function(l, a, h, c, m, p) {
1074
+ return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1067
1075
  });
1068
1076
  var s = i.options[0];
1069
- s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), tt(s)));
1077
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), et(s)));
1070
1078
  continue;
1071
1079
  }
1072
- if (Rt.test(i.stem)) {
1073
- t = E(E({}, t), tt(i.stem));
1080
+ if ($t.test(i.stem)) {
1081
+ t = E(E({}, t), et(i.stem));
1074
1082
  continue;
1075
1083
  }
1076
- var u = Dt(i.stem);
1084
+ var u = Ut(i.stem);
1077
1085
  u && (t = E(E({}, t), u));
1078
1086
  var o = en(i.stem);
1079
1087
  o && (t = E(E({}, t), o));
1080
1088
  }
1081
1089
  return t;
1082
1090
  }
1083
- var oe = {
1091
+ var se = {
1084
1092
  "001": [
1085
1093
  "H",
1086
1094
  "h"
@@ -2530,23 +2538,23 @@ function nn(e) {
2530
2538
  }
2531
2539
  var r = e.language, n;
2532
2540
  r !== "root" && (n = e.maximize().region);
2533
- var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2541
+ var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
2534
2542
  return i[0];
2535
2543
  }
2536
- var Ce, sn = new RegExp("^".concat($t.source, "*")), on = new RegExp("".concat($t.source, "*$"));
2544
+ var Oe, sn = new RegExp("^".concat(Mt.source, "*")), on = new RegExp("".concat(Mt.source, "*$"));
2537
2545
  function b(e, t) {
2538
2546
  return { start: e, end: t };
2539
2547
  }
2540
2548
  var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, mn = !!Number.isSafeInteger, pn = mn ? Number.isSafeInteger : function(e) {
2541
2549
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2542
- }, Ue = !0;
2550
+ }, Re = !0;
2543
2551
  try {
2544
- var dn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2545
- Ue = ((Ce = dn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2552
+ var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2553
+ Re = ((Oe = dn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2546
2554
  } catch {
2547
- Ue = !1;
2555
+ Re = !1;
2548
2556
  }
2549
- var nt = an ? (
2557
+ var rt = an ? (
2550
2558
  // Native
2551
2559
  function(t, r, n) {
2552
2560
  return t.startsWith(r, n);
@@ -2556,7 +2564,7 @@ var nt = an ? (
2556
2564
  function(t, r, n) {
2557
2565
  return t.slice(n, n + r.length) === r;
2558
2566
  }
2559
- ), De = un ? String.fromCodePoint : (
2567
+ ), Ue = un ? String.fromCodePoint : (
2560
2568
  // IE11
2561
2569
  function() {
2562
2570
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2568,7 +2576,7 @@ var nt = an ? (
2568
2576
  }
2569
2577
  return n;
2570
2578
  }
2571
- ), it = (
2579
+ ), nt = (
2572
2580
  // native
2573
2581
  hn ? Object.fromEntries : (
2574
2582
  // Ponyfill
@@ -2580,7 +2588,7 @@ var nt = an ? (
2580
2588
  return r;
2581
2589
  }
2582
2590
  )
2583
- ), Gt = ln ? (
2591
+ ), Dt = ln ? (
2584
2592
  // Native
2585
2593
  function(t, r) {
2586
2594
  return t.codePointAt(r);
@@ -2615,27 +2623,27 @@ var nt = an ? (
2615
2623
  return t.replace(on, "");
2616
2624
  }
2617
2625
  );
2618
- function Ft(e, t) {
2626
+ function Gt(e, t) {
2619
2627
  return new RegExp(e, t);
2620
2628
  }
2621
- var Ge;
2622
- if (Ue) {
2623
- var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2624
- Ge = function(t, r) {
2629
+ var De;
2630
+ if (Re) {
2631
+ var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2632
+ De = function(t, r) {
2625
2633
  var n;
2626
- st.lastIndex = r;
2627
- var i = st.exec(t);
2634
+ it.lastIndex = r;
2635
+ var i = it.exec(t);
2628
2636
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2629
2637
  };
2630
2638
  } else
2631
- Ge = function(t, r) {
2639
+ De = function(t, r) {
2632
2640
  for (var n = []; ; ) {
2633
- var i = Gt(t, r);
2634
- if (i === void 0 || jt(i) || xn(i))
2641
+ var i = Dt(t, r);
2642
+ if (i === void 0 || Ft(i) || xn(i))
2635
2643
  break;
2636
2644
  n.push(i), r += i >= 65536 ? 2 : 1;
2637
2645
  }
2638
- return De.apply(void 0, n);
2646
+ return Ue.apply(void 0, n);
2639
2647
  };
2640
2648
  var _n = (
2641
2649
  /** @class */
@@ -2668,7 +2676,7 @@ var _n = (
2668
2676
  if (n)
2669
2677
  break;
2670
2678
  return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2671
- } else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2679
+ } else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2672
2680
  var u = this.parseTag(t, r);
2673
2681
  if (u.err)
2674
2682
  return u;
@@ -2701,7 +2709,7 @@ var _n = (
2701
2709
  return s;
2702
2710
  var u = s.val, o = this.clonePosition();
2703
2711
  if (this.bumpIf("</")) {
2704
- if (this.isEOF() || !Fe(this.char()))
2712
+ if (this.isEOF() || !Ge(this.char()))
2705
2713
  return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
2706
2714
  var l = this.clonePosition(), a = this.parseTagName();
2707
2715
  return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -2782,12 +2790,12 @@ var _n = (
2782
2790
  r.push(n);
2783
2791
  this.bump();
2784
2792
  }
2785
- return De.apply(void 0, r);
2793
+ return Ue.apply(void 0, r);
2786
2794
  }, e.prototype.tryParseUnquoted = function(t, r) {
2787
2795
  if (this.isEOF())
2788
2796
  return null;
2789
2797
  var n = this.char();
2790
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
2798
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
2791
2799
  }, e.prototype.parseArgument = function(t, r) {
2792
2800
  var n = this.clonePosition();
2793
2801
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2816,7 +2824,7 @@ var _n = (
2816
2824
  return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2817
2825
  }
2818
2826
  }, e.prototype.parseIdentifierIfPossible = function() {
2819
- var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2827
+ var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
2820
2828
  this.bumpTo(i);
2821
2829
  var s = this.clonePosition(), u = b(t, s);
2822
2830
  return { value: n, location: u };
@@ -2832,40 +2840,40 @@ var _n = (
2832
2840
  var a = null;
2833
2841
  if (this.bumpIf(",")) {
2834
2842
  this.bumpSpace();
2835
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2836
- if (f.err)
2837
- return f;
2838
- var c = gn(f.val);
2839
- if (c.length === 0)
2843
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2844
+ if (c.err)
2845
+ return c;
2846
+ var m = gn(c.val);
2847
+ if (m.length === 0)
2840
2848
  return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2841
2849
  var p = b(h, this.clonePosition());
2842
- a = { style: c, styleLocation: p };
2850
+ a = { style: m, styleLocation: p };
2843
2851
  }
2844
- var m = this.tryParseArgumentClose(i);
2845
- if (m.err)
2846
- return m;
2847
- var g = b(i, this.clonePosition());
2848
- if (a && nt(a?.style, "::", 0)) {
2852
+ var f = this.tryParseArgumentClose(i);
2853
+ if (f.err)
2854
+ return f;
2855
+ var _ = b(i, this.clonePosition());
2856
+ if (a && rt(a?.style, "::", 0)) {
2849
2857
  var v = bn(a.style.slice(2));
2850
2858
  if (o === "number") {
2851
- var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
2852
- return f.err ? f : {
2853
- val: { type: y.number, value: n, location: g, style: f.val },
2859
+ var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
2860
+ return c.err ? c : {
2861
+ val: { type: y.number, value: n, location: _, style: c.val },
2854
2862
  err: null
2855
2863
  };
2856
2864
  } else {
2857
2865
  if (v.length === 0)
2858
- return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
2859
- var N = v;
2860
- this.locale && (N = rn(v, this.locale));
2861
- var c = {
2862
- type: V.dateTime,
2863
- pattern: N,
2866
+ return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
2867
+ var A = v;
2868
+ this.locale && (A = rn(v, this.locale));
2869
+ var m = {
2870
+ type: j.dateTime,
2871
+ pattern: A,
2864
2872
  location: a.styleLocation,
2865
- parsedOptions: this.shouldParseSkeletons ? Qr(N) : {}
2873
+ parsedOptions: this.shouldParseSkeletons ? Qr(A) : {}
2866
2874
  }, O = o === "date" ? y.date : y.time;
2867
2875
  return {
2868
- val: { type: O, value: n, location: g, style: c },
2876
+ val: { type: O, value: n, location: _, style: m },
2869
2877
  err: null
2870
2878
  };
2871
2879
  }
@@ -2874,7 +2882,7 @@ var _n = (
2874
2882
  val: {
2875
2883
  type: o === "number" ? y.number : o === "date" ? y.date : y.time,
2876
2884
  value: n,
2877
- location: g,
2885
+ location: _,
2878
2886
  style: (s = a?.style) !== null && s !== void 0 ? s : null
2879
2887
  },
2880
2888
  err: null
@@ -2885,41 +2893,41 @@ var _n = (
2885
2893
  case "select": {
2886
2894
  var H = this.clonePosition();
2887
2895
  if (this.bumpSpace(), !this.bumpIf(","))
2888
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, me({}, H)));
2896
+ return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, ce({}, H)));
2889
2897
  this.bumpSpace();
2890
- var I = this.parseIdentifierIfPossible(), w = 0;
2891
- if (o !== "select" && I.value === "offset") {
2898
+ var N = this.parseIdentifierIfPossible(), S = 0;
2899
+ if (o !== "select" && N.value === "offset") {
2892
2900
  if (!this.bumpIf(":"))
2893
2901
  return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2894
2902
  this.bumpSpace();
2895
- var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2896
- if (f.err)
2897
- return f;
2898
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
2903
+ var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2904
+ if (c.err)
2905
+ return c;
2906
+ this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
2899
2907
  }
2900
- var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
2901
- if (R.err)
2902
- return R;
2903
- var m = this.tryParseArgumentClose(i);
2904
- if (m.err)
2905
- return m;
2906
- var se = b(i, this.clonePosition());
2908
+ var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
2909
+ if ($.err)
2910
+ return $;
2911
+ var f = this.tryParseArgumentClose(i);
2912
+ if (f.err)
2913
+ return f;
2914
+ var ie = b(i, this.clonePosition());
2907
2915
  return o === "select" ? {
2908
2916
  val: {
2909
2917
  type: y.select,
2910
2918
  value: n,
2911
- options: it(R.val),
2912
- location: se
2919
+ options: nt($.val),
2920
+ location: ie
2913
2921
  },
2914
2922
  err: null
2915
2923
  } : {
2916
2924
  val: {
2917
2925
  type: y.plural,
2918
2926
  value: n,
2919
- options: it(R.val),
2920
- offset: w,
2927
+ options: nt($.val),
2928
+ offset: S,
2921
2929
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2922
- location: se
2930
+ location: ie
2923
2931
  },
2924
2932
  err: null
2925
2933
  };
@@ -2973,7 +2981,7 @@ var _n = (
2973
2981
  }
2974
2982
  return {
2975
2983
  val: {
2976
- type: V.number,
2984
+ type: j.number,
2977
2985
  tokens: n,
2978
2986
  location: r,
2979
2987
  parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
@@ -2983,12 +2991,12 @@ var _n = (
2983
2991
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2984
2992
  for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2985
2993
  if (a.length === 0) {
2986
- var f = this.clonePosition();
2994
+ var c = this.clonePosition();
2987
2995
  if (r !== "select" && this.bumpIf("=")) {
2988
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
2989
- if (c.err)
2990
- return c;
2991
- h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2996
+ var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
2997
+ if (m.err)
2998
+ return m;
2999
+ h = b(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2992
3000
  } else
2993
3001
  break;
2994
3002
  }
@@ -2998,16 +3006,16 @@ var _n = (
2998
3006
  var p = this.clonePosition();
2999
3007
  if (!this.bumpIf("{"))
3000
3008
  return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3001
- var m = this.parseMessage(t + 1, r, n);
3002
- if (m.err)
3003
- return m;
3004
- var g = this.tryParseArgumentClose(p);
3005
- if (g.err)
3006
- return g;
3009
+ var f = this.parseMessage(t + 1, r, n);
3010
+ if (f.err)
3011
+ return f;
3012
+ var _ = this.tryParseArgumentClose(p);
3013
+ if (_.err)
3014
+ return _;
3007
3015
  o.push([
3008
3016
  a,
3009
3017
  {
3010
- value: m.val,
3018
+ value: f.val,
3011
3019
  location: b(p, this.clonePosition())
3012
3020
  }
3013
3021
  ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
@@ -3039,7 +3047,7 @@ var _n = (
3039
3047
  var t = this.position.offset;
3040
3048
  if (t >= this.message.length)
3041
3049
  throw Error("out of bound");
3042
- var r = Gt(this.message, t);
3050
+ var r = Dt(this.message, t);
3043
3051
  if (r === void 0)
3044
3052
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3045
3053
  return r;
@@ -3058,7 +3066,7 @@ var _n = (
3058
3066
  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);
3059
3067
  }
3060
3068
  }, e.prototype.bumpIf = function(t) {
3061
- if (nt(this.message, t, this.offset())) {
3069
+ if (rt(this.message, t, this.offset())) {
3062
3070
  for (var r = 0; r < t.length; r++)
3063
3071
  this.bump();
3064
3072
  return !0;
@@ -3080,7 +3088,7 @@ var _n = (
3080
3088
  break;
3081
3089
  }
3082
3090
  }, e.prototype.bumpSpace = function() {
3083
- for (; !this.isEOF() && jt(this.char()); )
3091
+ for (; !this.isEOF() && Ft(this.char()); )
3084
3092
  this.bump();
3085
3093
  }, e.prototype.peek = function() {
3086
3094
  if (this.isEOF())
@@ -3090,47 +3098,47 @@ var _n = (
3090
3098
  }, e;
3091
3099
  }()
3092
3100
  );
3093
- function Fe(e) {
3101
+ function Ge(e) {
3094
3102
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3095
3103
  }
3096
3104
  function yn(e) {
3097
- return Fe(e) || e === 47;
3105
+ return Ge(e) || e === 47;
3098
3106
  }
3099
3107
  function En(e) {
3100
3108
  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;
3101
3109
  }
3102
- function jt(e) {
3110
+ function Ft(e) {
3103
3111
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3104
3112
  }
3105
3113
  function xn(e) {
3106
3114
  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;
3107
3115
  }
3108
- function je(e) {
3116
+ function Fe(e) {
3109
3117
  e.forEach(function(t) {
3110
- if (delete t.location, Lt(t) || Nt(t))
3118
+ if (delete t.location, Ct(t) || Lt(t))
3111
3119
  for (var r in t.options)
3112
- delete t.options[r].location, je(t.options[r].value);
3120
+ delete t.options[r].location, Fe(t.options[r].value);
3113
3121
  else
3114
- Ot(t) && Mt(t.style) || (Ct(t) || Pt(t)) && Re(t.style) ? delete t.style.location : It(t) && je(t.children);
3122
+ At(t) && It(t.style) || (Ot(t) || Pt(t)) && $e(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
3115
3123
  });
3116
3124
  }
3117
3125
  function vn(e, t) {
3118
- t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3126
+ t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3119
3127
  var r = new _n(e, t).parse();
3120
3128
  if (r.err) {
3121
3129
  var n = SyntaxError(d[r.err.kind]);
3122
3130
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3123
3131
  }
3124
- return t?.captureLocation || je(r.val), r.val;
3132
+ return t?.captureLocation || Fe(r.val), r.val;
3125
3133
  }
3126
- var X;
3134
+ var k;
3127
3135
  (function(e) {
3128
3136
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3129
- })(X || (X = {}));
3130
- var ye = (
3137
+ })(k || (k = {}));
3138
+ var _e = (
3131
3139
  /** @class */
3132
3140
  function(e) {
3133
- _e(t, e);
3141
+ ge(t, e);
3134
3142
  function t(r, n, i) {
3135
3143
  var s = e.call(this, r) || this;
3136
3144
  return s.code = n, s.originalMessage = i, s;
@@ -3139,33 +3147,33 @@ var ye = (
3139
3147
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3140
3148
  }, t;
3141
3149
  }(Error)
3142
- ), ot = (
3150
+ ), st = (
3143
3151
  /** @class */
3144
3152
  function(e) {
3145
- _e(t, e);
3153
+ ge(t, e);
3146
3154
  function t(r, n, i, s) {
3147
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
3155
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
3148
3156
  }
3149
3157
  return t;
3150
- }(ye)
3158
+ }(_e)
3151
3159
  ), Hn = (
3152
3160
  /** @class */
3153
3161
  function(e) {
3154
- _e(t, e);
3162
+ ge(t, e);
3155
3163
  function t(r, n, i) {
3156
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3164
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
3157
3165
  }
3158
3166
  return t;
3159
- }(ye)
3167
+ }(_e)
3160
3168
  ), Bn = (
3161
3169
  /** @class */
3162
3170
  function(e) {
3163
- _e(t, e);
3171
+ ge(t, e);
3164
3172
  function t(r, n) {
3165
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3173
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
3166
3174
  }
3167
3175
  return t;
3168
- }(ye)
3176
+ }(_e)
3169
3177
  ), x;
3170
3178
  (function(e) {
3171
3179
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3179,8 +3187,8 @@ function Tn(e) {
3179
3187
  function wn(e) {
3180
3188
  return typeof e == "function";
3181
3189
  }
3182
- function le(e, t, r, n, i, s, u) {
3183
- if (e.length === 1 && Ke(e[0]))
3190
+ function he(e, t, r, n, i, s, u) {
3191
+ if (e.length === 1 && Ye(e[0]))
3184
3192
  return [
3185
3193
  {
3186
3194
  type: x.literal,
@@ -3189,7 +3197,7 @@ function le(e, t, r, n, i, s, u) {
3189
3197
  ];
3190
3198
  for (var o = [], l = 0, a = e; l < a.length; l++) {
3191
3199
  var h = a[l];
3192
- if (Ke(h)) {
3200
+ if (Ye(h)) {
3193
3201
  o.push({
3194
3202
  type: x.literal,
3195
3203
  value: h.value
@@ -3203,89 +3211,89 @@ function le(e, t, r, n, i, s, u) {
3203
3211
  });
3204
3212
  continue;
3205
3213
  }
3206
- var f = h.value;
3207
- if (!(i && f in i))
3208
- throw new Bn(f, u);
3209
- var c = i[f];
3214
+ var c = h.value;
3215
+ if (!(i && c in i))
3216
+ throw new Bn(c, u);
3217
+ var m = i[c];
3210
3218
  if (Wr(h)) {
3211
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3212
- type: typeof c == "string" ? x.literal : x.object,
3213
- value: c
3219
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
3220
+ type: typeof m == "string" ? x.literal : x.object,
3221
+ value: m
3214
3222
  });
3215
3223
  continue;
3216
3224
  }
3217
- if (Ct(h)) {
3218
- var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
3225
+ if (Ot(h)) {
3226
+ var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
3219
3227
  o.push({
3220
3228
  type: x.literal,
3221
- value: r.getDateTimeFormat(t, p).format(c)
3229
+ value: r.getDateTimeFormat(t, p).format(m)
3222
3230
  });
3223
3231
  continue;
3224
3232
  }
3225
3233
  if (Pt(h)) {
3226
- var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
3234
+ var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
3227
3235
  o.push({
3228
3236
  type: x.literal,
3229
- value: r.getDateTimeFormat(t, p).format(c)
3237
+ value: r.getDateTimeFormat(t, p).format(m)
3230
3238
  });
3231
3239
  continue;
3232
3240
  }
3233
- if (Ot(h)) {
3234
- var p = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
3235
- p && p.scale && (c = c * (p.scale || 1)), o.push({
3241
+ if (At(h)) {
3242
+ var p = typeof h.style == "string" ? n.number[h.style] : It(h.style) ? h.style.parsedOptions : void 0;
3243
+ p && p.scale && (m = m * (p.scale || 1)), o.push({
3236
3244
  type: x.literal,
3237
- value: r.getNumberFormat(t, p).format(c)
3245
+ value: r.getNumberFormat(t, p).format(m)
3238
3246
  });
3239
3247
  continue;
3240
3248
  }
3241
- if (It(h)) {
3242
- var m = h.children, g = h.value, v = i[g];
3249
+ if (Nt(h)) {
3250
+ var f = h.children, _ = h.value, v = i[_];
3243
3251
  if (!wn(v))
3244
- throw new Hn(g, "function", u);
3245
- var N = le(m, t, r, n, i, s), O = v(N.map(function(w) {
3246
- return w.value;
3252
+ throw new Hn(_, "function", u);
3253
+ var A = he(f, t, r, n, i, s), O = v(A.map(function(S) {
3254
+ return S.value;
3247
3255
  }));
3248
- Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(w) {
3256
+ Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(S) {
3249
3257
  return {
3250
- type: typeof w == "string" ? x.literal : x.object,
3251
- value: w
3258
+ type: typeof S == "string" ? x.literal : x.object,
3259
+ value: S
3252
3260
  };
3253
3261
  }));
3254
3262
  }
3255
- if (Lt(h)) {
3256
- var H = h.options[c] || h.options.other;
3263
+ if (Ct(h)) {
3264
+ var H = h.options[m] || h.options.other;
3257
3265
  if (!H)
3258
- throw new ot(h.value, c, Object.keys(h.options), u);
3259
- o.push.apply(o, le(H.value, t, r, n, i));
3266
+ throw new st(h.value, m, Object.keys(h.options), u);
3267
+ o.push.apply(o, he(H.value, t, r, n, i));
3260
3268
  continue;
3261
3269
  }
3262
- if (Nt(h)) {
3263
- var H = h.options["=".concat(c)];
3270
+ if (Lt(h)) {
3271
+ var H = h.options["=".concat(m)];
3264
3272
  if (!H) {
3265
3273
  if (!Intl.PluralRules)
3266
- throw new ye(`Intl.PluralRules is not available in this environment.
3274
+ throw new _e(`Intl.PluralRules is not available in this environment.
3267
3275
  Try polyfilling it using "@formatjs/intl-pluralrules"
3268
- `, X.MISSING_INTL_API, u);
3269
- var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3270
- H = h.options[I] || h.options.other;
3276
+ `, k.MISSING_INTL_API, u);
3277
+ var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3278
+ H = h.options[N] || h.options.other;
3271
3279
  }
3272
3280
  if (!H)
3273
- throw new ot(h.value, c, Object.keys(h.options), u);
3274
- o.push.apply(o, le(H.value, t, r, n, i, c - (h.offset || 0)));
3281
+ throw new st(h.value, m, Object.keys(h.options), u);
3282
+ o.push.apply(o, he(H.value, t, r, n, i, m - (h.offset || 0)));
3275
3283
  continue;
3276
3284
  }
3277
3285
  }
3278
3286
  return Tn(o);
3279
3287
  }
3280
3288
  function Sn(e, t) {
3281
- return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3282
- return r[n] = T(T({}, e[n]), t[n] || {}), r;
3289
+ return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3290
+ return r[n] = w(w({}, e[n]), t[n] || {}), r;
3283
3291
  }, {})) : e;
3284
3292
  }
3285
3293
  function An(e, t) {
3286
3294
  return t ? Object.keys(e).reduce(function(r, n) {
3287
3295
  return r[n] = Sn(e[n], t[n]), r;
3288
- }, T({}, e)) : e;
3296
+ }, w({}, e)) : e;
3289
3297
  }
3290
3298
  function Pe(e) {
3291
3299
  return {
@@ -3307,33 +3315,33 @@ function On(e) {
3307
3315
  dateTime: {},
3308
3316
  pluralRules: {}
3309
3317
  }), {
3310
- getNumberFormat: Ae(function() {
3318
+ getNumberFormat: Se(function() {
3311
3319
  for (var t, r = [], n = 0; n < arguments.length; n++)
3312
3320
  r[n] = arguments[n];
3313
- return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
3321
+ return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
3314
3322
  }, {
3315
3323
  cache: Pe(e.number),
3316
- strategy: Oe.variadic
3324
+ strategy: Ae.variadic
3317
3325
  }),
3318
- getDateTimeFormat: Ae(function() {
3326
+ getDateTimeFormat: Se(function() {
3319
3327
  for (var t, r = [], n = 0; n < arguments.length; n++)
3320
3328
  r[n] = arguments[n];
3321
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
3329
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
3322
3330
  }, {
3323
3331
  cache: Pe(e.dateTime),
3324
- strategy: Oe.variadic
3332
+ strategy: Ae.variadic
3325
3333
  }),
3326
- getPluralRules: Ae(function() {
3334
+ getPluralRules: Se(function() {
3327
3335
  for (var t, r = [], n = 0; n < arguments.length; n++)
3328
3336
  r[n] = arguments[n];
3329
- return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
3337
+ return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
3330
3338
  }, {
3331
3339
  cache: Pe(e.pluralRules),
3332
- strategy: Oe.variadic
3340
+ strategy: Ae.variadic
3333
3341
  })
3334
3342
  };
3335
3343
  }
3336
- var kt = (
3344
+ var jt = (
3337
3345
  /** @class */
3338
3346
  function() {
3339
3347
  function e(t, r, n, i) {
@@ -3347,12 +3355,12 @@ var kt = (
3347
3355
  var a = s.formatToParts(l);
3348
3356
  if (a.length === 1)
3349
3357
  return a[0].value;
3350
- var h = a.reduce(function(f, c) {
3351
- return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3358
+ var h = a.reduce(function(c, m) {
3359
+ return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
3352
3360
  }, []);
3353
3361
  return h.length <= 1 ? h[0] || "" : h;
3354
3362
  }, this.formatToParts = function(l) {
3355
- return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3363
+ return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3356
3364
  }, this.resolvedOptions = function() {
3357
3365
  var l;
3358
3366
  return {
@@ -3366,7 +3374,7 @@ var kt = (
3366
3374
  var u = i || {};
3367
3375
  u.formatters;
3368
3376
  var o = Ur(u, ["formatters"]);
3369
- this.ast = e.__parse(t, T(T({}, o), { locale: this.resolvedLocale }));
3377
+ this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
3370
3378
  } else
3371
3379
  this.ast = t;
3372
3380
  if (!Array.isArray(this.ast))
@@ -3445,7 +3453,7 @@ var kt = (
3445
3453
  }, e;
3446
3454
  }()
3447
3455
  );
3448
- function Cn(e, t) {
3456
+ function Pn(e, t) {
3449
3457
  if (t == null)
3450
3458
  return;
3451
3459
  if (t in e)
@@ -3466,97 +3474,97 @@ function Cn(e, t) {
3466
3474
  n = void 0;
3467
3475
  return n;
3468
3476
  }
3469
- const C = {}, Pn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
3477
+ const P = {}, Cn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), kt = (e, t) => {
3470
3478
  if (t == null)
3471
3479
  return;
3472
- if (t in C && e in C[t])
3473
- return C[t][e];
3474
- const r = ie(t);
3480
+ if (t in P && e in P[t])
3481
+ return P[t][e];
3482
+ const r = ne(t);
3475
3483
  for (let n = 0; n < r.length; n++) {
3476
3484
  const i = r[n], s = Nn(i, e);
3477
3485
  if (s)
3478
- return Pn(e, t, s);
3486
+ return Cn(e, t, s);
3479
3487
  }
3480
3488
  };
3481
- let ze;
3482
- const ne = ge({});
3489
+ let Xe;
3490
+ const re = be({});
3483
3491
  function Ln(e) {
3484
- return ze[e] || null;
3492
+ return Xe[e] || null;
3485
3493
  }
3486
- function Xt(e) {
3487
- return e in ze;
3494
+ function Vt(e) {
3495
+ return e in Xe;
3488
3496
  }
3489
3497
  function Nn(e, t) {
3490
- if (!Xt(e))
3498
+ if (!Vt(e))
3491
3499
  return null;
3492
3500
  const r = Ln(e);
3493
- return Cn(r, t);
3501
+ return Pn(r, t);
3494
3502
  }
3495
3503
  function In(e) {
3496
3504
  if (e == null)
3497
3505
  return;
3498
- const t = ie(e);
3506
+ const t = ne(e);
3499
3507
  for (let r = 0; r < t.length; r++) {
3500
3508
  const n = t[r];
3501
- if (Xt(n))
3509
+ if (Vt(n))
3502
3510
  return n;
3503
3511
  }
3504
3512
  }
3505
- function Wt(e, ...t) {
3506
- delete C[e], ne.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
3513
+ function Xt(e, ...t) {
3514
+ delete P[e], re.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
3507
3515
  }
3508
- Z(
3509
- [ne],
3516
+ W(
3517
+ [re],
3510
3518
  ([e]) => Object.keys(e)
3511
3519
  );
3512
- ne.subscribe((e) => ze = e);
3513
- const fe = {};
3520
+ re.subscribe((e) => Xe = e);
3521
+ const le = {};
3514
3522
  function Mn(e, t) {
3515
- fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3523
+ le[e].delete(t), le[e].size === 0 && delete le[e];
3516
3524
  }
3517
- function zt(e) {
3518
- return fe[e];
3525
+ function Wt(e) {
3526
+ return le[e];
3519
3527
  }
3520
3528
  function $n(e) {
3521
- return ie(e).map((t) => {
3522
- const r = zt(t);
3529
+ return ne(e).map((t) => {
3530
+ const r = Wt(t);
3523
3531
  return [t, r ? [...r] : []];
3524
3532
  }).filter(([, t]) => t.length > 0);
3525
3533
  }
3526
- function pe(e) {
3527
- return e == null ? !1 : ie(e).some(
3534
+ function me(e) {
3535
+ return e == null ? !1 : ne(e).some(
3528
3536
  (t) => {
3529
3537
  var r;
3530
- return (r = zt(t)) == null ? void 0 : r.size;
3538
+ return (r = Wt(t)) == null ? void 0 : r.size;
3531
3539
  }
3532
3540
  );
3533
3541
  }
3534
3542
  function Rn(e, t) {
3535
3543
  return Promise.all(
3536
3544
  t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
3537
- ).then((n) => Wt(e, ...n));
3545
+ ).then((n) => Xt(e, ...n));
3538
3546
  }
3539
- const J = {};
3540
- function Zt(e) {
3541
- if (!pe(e))
3542
- return e in J ? J[e] : Promise.resolve();
3547
+ const Z = {};
3548
+ function zt(e) {
3549
+ if (!me(e))
3550
+ return e in Z ? Z[e] : Promise.resolve();
3543
3551
  const t = $n(e);
3544
- return J[e] = Promise.all(
3552
+ return Z[e] = Promise.all(
3545
3553
  t.map(
3546
3554
  ([r, n]) => Rn(r, n)
3547
3555
  )
3548
3556
  ).then(() => {
3549
- if (pe(e))
3550
- return Zt(e);
3551
- delete J[e];
3552
- }), J[e];
3557
+ if (me(e))
3558
+ return zt(e);
3559
+ delete Z[e];
3560
+ }), Z[e];
3553
3561
  }
3554
- var at = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
3562
+ var ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, Gn = (e, t) => {
3555
3563
  var r = {};
3556
3564
  for (var n in e)
3557
3565
  Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3558
- if (e != null && at)
3559
- for (var n of at(e))
3566
+ if (e != null && ot)
3567
+ for (var n of ot(e))
3560
3568
  t.indexOf(n) < 0 && Dn.call(e, n) && (r[n] = e[n]);
3561
3569
  return r;
3562
3570
  };
@@ -3592,9 +3600,9 @@ const Fn = {
3592
3600
  };
3593
3601
  function jn({ locale: e, id: t }) {
3594
3602
  console.warn(
3595
- `[svelte-i18n] The message "${t}" was not found in "${ie(
3603
+ `[svelte-i18n] The message "${t}" was not found in "${ne(
3596
3604
  e
3597
- ).join('", "')}".${pe(L()) ? `
3605
+ ).join('", "')}".${me(L()) ? `
3598
3606
 
3599
3607
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3600
3608
  );
@@ -3606,16 +3614,16 @@ const kn = {
3606
3614
  warnOnMissingMessages: !0,
3607
3615
  handleMissingMessage: void 0,
3608
3616
  ignoreTag: !0
3609
- }, q = kn;
3610
- function W() {
3611
- return q;
3617
+ }, Q = kn;
3618
+ function V() {
3619
+ return Q;
3612
3620
  }
3613
3621
  function Vn(e) {
3614
3622
  const t = e, { formats: r } = t, n = Gn(t, ["formats"]);
3615
3623
  let i = e.fallbackLocale;
3616
3624
  if (e.initialLocale)
3617
3625
  try {
3618
- kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3626
+ jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3619
3627
  } catch {
3620
3628
  console.warn(
3621
3629
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
@@ -3623,124 +3631,124 @@ function Vn(e) {
3623
3631
  }
3624
3632
  return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
3625
3633
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3626
- )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), $.set(i);
3634
+ )), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), M.set(i);
3627
3635
  }
3628
- const Le = ge(!1);
3629
- var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3636
+ const Ce = be(!1);
3637
+ var Xn = Object.defineProperty, Wn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3630
3638
  for (var r in t || (t = {}))
3631
- Zn.call(t, r) && ht(e, r, t[r]);
3632
- if (ut)
3633
- for (var r of ut(t))
3634
- Qn.call(t, r) && ht(e, r, t[r]);
3639
+ Zn.call(t, r) && ut(e, r, t[r]);
3640
+ if (at)
3641
+ for (var r of at(t))
3642
+ Qn.call(t, r) && ut(e, r, t[r]);
3635
3643
  return e;
3636
3644
  }, qn = (e, t) => Wn(e, zn(t));
3637
- let ke;
3638
- const de = ge(null);
3639
- function lt(e) {
3645
+ let je;
3646
+ const pe = be(null);
3647
+ function ht(e) {
3640
3648
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3641
3649
  }
3642
- function ie(e, t = W().fallbackLocale) {
3643
- const r = lt(e);
3644
- return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
3650
+ function ne(e, t = V().fallbackLocale) {
3651
+ const r = ht(e);
3652
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3645
3653
  }
3646
3654
  function L() {
3647
- return ke ?? void 0;
3655
+ return je ?? void 0;
3648
3656
  }
3649
- de.subscribe((e) => {
3650
- ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3657
+ pe.subscribe((e) => {
3658
+ je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3651
3659
  });
3652
3660
  const Yn = (e) => {
3653
- if (e && In(e) && pe(e)) {
3654
- const { loadingDelay: t } = W();
3661
+ if (e && In(e) && me(e)) {
3662
+ const { loadingDelay: t } = V();
3655
3663
  let r;
3656
3664
  return typeof window < "u" && L() != null && t ? r = window.setTimeout(
3657
- () => Le.set(!0),
3665
+ () => Ce.set(!0),
3658
3666
  t
3659
- ) : Le.set(!0), Zt(e).then(() => {
3660
- de.set(e);
3667
+ ) : Ce.set(!0), zt(e).then(() => {
3668
+ pe.set(e);
3661
3669
  }).finally(() => {
3662
- clearTimeout(r), Le.set(!1);
3670
+ clearTimeout(r), Ce.set(!1);
3663
3671
  });
3664
3672
  }
3665
- return de.set(e);
3666
- }, $ = qn(Jn({}, de), {
3673
+ return pe.set(e);
3674
+ }, M = qn(Jn({}, pe), {
3667
3675
  set: Yn
3668
- }), Ee = (e) => {
3676
+ }), ye = (e) => {
3669
3677
  const t = /* @__PURE__ */ Object.create(null);
3670
3678
  return (n) => {
3671
3679
  const i = JSON.stringify(n);
3672
3680
  return i in t ? t[i] : t[i] = e(n);
3673
3681
  };
3674
3682
  };
3675
- var Kn = Object.defineProperty, be = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3683
+ var Kn = Object.defineProperty, de = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3676
3684
  for (var r in t || (t = {}))
3677
- Qt.call(t, r) && ft(e, r, t[r]);
3678
- if (be)
3679
- for (var r of be(t))
3680
- Jt.call(t, r) && ft(e, r, t[r]);
3685
+ Zt.call(t, r) && lt(e, r, t[r]);
3686
+ if (de)
3687
+ for (var r of de(t))
3688
+ Qt.call(t, r) && lt(e, r, t[r]);
3681
3689
  return e;
3682
- }, Q = (e, t) => {
3690
+ }, z = (e, t) => {
3683
3691
  var r = {};
3684
3692
  for (var n in e)
3685
- Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3686
- if (e != null && be)
3687
- for (var n of be(e))
3688
- t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3693
+ Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3694
+ if (e != null && de)
3695
+ for (var n of de(e))
3696
+ t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3689
3697
  return r;
3690
3698
  };
3691
- const ee = (e, t) => {
3692
- const { formats: r } = W();
3699
+ const K = (e, t) => {
3700
+ const { formats: r } = V();
3693
3701
  if (e in r && t in r[e])
3694
3702
  return r[e][t];
3695
3703
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3696
- }, ei = Ee(
3704
+ }, ei = ye(
3697
3705
  (e) => {
3698
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3706
+ var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
3699
3707
  if (r == null)
3700
3708
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3701
- return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3709
+ return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
3702
3710
  }
3703
- ), ti = Ee(
3711
+ ), ti = ye(
3704
3712
  (e) => {
3705
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3713
+ var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
3706
3714
  if (r == null)
3707
3715
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3708
- return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3716
+ return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
3709
3717
  }
3710
- ), ri = Ee(
3718
+ ), ri = ye(
3711
3719
  (e) => {
3712
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3720
+ var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
3713
3721
  if (r == null)
3714
3722
  throw new Error(
3715
3723
  '[svelte-i18n] A "locale" must be set to format time values'
3716
3724
  );
3717
- return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3725
+ return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
3718
3726
  }
3719
3727
  ), ni = (e = {}) => {
3720
3728
  var t = e, {
3721
3729
  locale: r = L()
3722
- } = t, n = Q(t, [
3730
+ } = t, n = z(t, [
3723
3731
  "locale"
3724
3732
  ]);
3725
- return ei(Ze({ locale: r }, n));
3733
+ return ei(We({ locale: r }, n));
3726
3734
  }, ii = (e = {}) => {
3727
3735
  var t = e, {
3728
3736
  locale: r = L()
3729
- } = t, n = Q(t, [
3737
+ } = t, n = z(t, [
3730
3738
  "locale"
3731
3739
  ]);
3732
- return ti(Ze({ locale: r }, n));
3740
+ return ti(We({ locale: r }, n));
3733
3741
  }, si = (e = {}) => {
3734
3742
  var t = e, {
3735
3743
  locale: r = L()
3736
- } = t, n = Q(t, [
3744
+ } = t, n = z(t, [
3737
3745
  "locale"
3738
3746
  ]);
3739
- return ri(Ze({ locale: r }, n));
3740
- }, oi = Ee(
3747
+ return ri(We({ locale: r }, n));
3748
+ }, oi = ye(
3741
3749
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3742
- (e, t = L()) => new kt(e, t, W().formats, {
3743
- ignoreTag: W().ignoreTag
3750
+ (e, t = L()) => new jt(e, t, V().formats, {
3751
+ ignoreTag: V().ignoreTag
3744
3752
  })
3745
3753
  ), ai = (e, t = {}) => {
3746
3754
  var r, n, i, s;
@@ -3755,39 +3763,39 @@ const ee = (e, t) => {
3755
3763
  throw new Error(
3756
3764
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3757
3765
  );
3758
- let h = Vt(e, l);
3766
+ let h = kt(e, l);
3759
3767
  if (!h)
3760
- h = (s = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3768
+ h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3761
3769
  else if (typeof h != "string")
3762
3770
  return console.warn(
3763
3771
  `[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.`
3764
3772
  ), h;
3765
3773
  if (!o)
3766
3774
  return h;
3767
- let f = h;
3775
+ let c = h;
3768
3776
  try {
3769
- f = oi(h, l).format(o);
3770
- } catch (c) {
3771
- c instanceof Error && console.warn(
3777
+ c = oi(h, l).format(o);
3778
+ } catch (m) {
3779
+ m instanceof Error && console.warn(
3772
3780
  `[svelte-i18n] Message "${e}" has syntax error:`,
3773
- c.message
3781
+ m.message
3774
3782
  );
3775
3783
  }
3776
- return f;
3777
- }, ui = (e, t) => si(t).format(e), hi = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = L()) => Vt(e, t), ci = Z([$, ne], () => ai);
3778
- Z([$], () => ui);
3779
- Z([$], () => hi);
3780
- Z([$], () => li);
3781
- Z([$, ne], () => fi);
3782
- function ct(e, t) {
3783
- Wt(e, t);
3784
+ return c;
3785
+ }, ui = (e, t) => si(t).format(e), hi = (e, t) => ii(t).format(e), li = (e, t) => ni(t).format(e), fi = (e, t = L()) => kt(e, t), ci = W([M, re], () => ai);
3786
+ W([M], () => ui);
3787
+ W([M], () => hi);
3788
+ W([M], () => li);
3789
+ W([M, re], () => fi);
3790
+ function ft(e, t) {
3791
+ Xt(e, t);
3784
3792
  }
3785
3793
  function mi(e) {
3786
3794
  Vn({
3787
3795
  fallbackLocale: "en"
3788
- }), $.set(e);
3796
+ }), M.set(e);
3789
3797
  }
3790
- const mt = {
3798
+ const ct = {
3791
3799
  en: {
3792
3800
  header: {
3793
3801
  general: "Cashier",
@@ -3810,18 +3818,41 @@ const mt = {
3810
3818
  }
3811
3819
  }
3812
3820
  };
3813
- function pi(e) {
3814
- nr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3821
+ function pi(e, t) {
3822
+ if (e) {
3823
+ const r = document.createElement("style");
3824
+ r.innerHTML = t, e.appendChild(r);
3825
+ }
3815
3826
  }
3816
- const di = (e) => ({}), pt = (e) => ({}), bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), bt = (e) => ({});
3817
- function gt(e) {
3827
+ function di(e, t) {
3828
+ const r = new URL(t);
3829
+ fetch(r.href).then((n) => n.text()).then((n) => {
3830
+ const i = document.createElement("style");
3831
+ i.innerHTML = n, e && e.appendChild(i);
3832
+ }).catch((n) => {
3833
+ console.error("There was an error while trying to load client styling from URL", n);
3834
+ });
3835
+ }
3836
+ function bi(e, t, r) {
3837
+ if (window.emMessageBus) {
3838
+ const n = document.createElement("style");
3839
+ window.emMessageBus.subscribe(t, (i) => {
3840
+ n.innerHTML = i, e && e.appendChild(n);
3841
+ });
3842
+ }
3843
+ }
3844
+ function gi(e) {
3845
+ tr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3846
+ }
3847
+ const _i = (e) => ({}), mt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), Ei = (e) => ({}), dt = (e) => ({});
3848
+ function bt(e) {
3818
3849
  let t, r, n;
3819
3850
  return {
3820
3851
  c() {
3821
- t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', re(t, "class", "CashierHeaderLeftButton");
3852
+ t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
3822
3853
  },
3823
3854
  m(i, s) {
3824
- M(i, t, s), r || (n = Bt(
3855
+ I(i, t, s), r || (n = Ht(
3825
3856
  t,
3826
3857
  "click",
3827
3858
  /*back*/
@@ -3830,32 +3861,32 @@ function gt(e) {
3830
3861
  },
3831
3862
  p: B,
3832
3863
  d(i) {
3833
- i && P(t), r = !1, n();
3864
+ i && C(t), r = !1, n();
3834
3865
  }
3835
3866
  };
3836
3867
  }
3837
- function _i(e) {
3868
+ function xi(e) {
3838
3869
  let t, r = (
3839
3870
  /*backButton*/
3840
- e[1] && gt(e)
3871
+ e[1] && bt(e)
3841
3872
  );
3842
3873
  return {
3843
3874
  c() {
3844
- r && r.c(), t = Ht();
3875
+ r && r.c(), t = vt();
3845
3876
  },
3846
3877
  m(n, i) {
3847
- r && r.m(n, i), M(n, t, i);
3878
+ r && r.m(n, i), I(n, t, i);
3848
3879
  },
3849
3880
  p(n, i) {
3850
3881
  /*backButton*/
3851
- n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3882
+ n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3852
3883
  },
3853
3884
  d(n) {
3854
- n && P(t), r && r.d(n);
3885
+ n && C(t), r && r.d(n);
3855
3886
  }
3856
3887
  };
3857
3888
  }
3858
- function yi(e) {
3889
+ function vi(e) {
3859
3890
  let t, r = (
3860
3891
  /*$_*/
3861
3892
  e[4](
@@ -3865,10 +3896,10 @@ function yi(e) {
3865
3896
  ), n;
3866
3897
  return {
3867
3898
  c() {
3868
- t = z("span"), n = Xe(r), re(t, "class", "CashierHeaderTitle");
3899
+ t = X("span"), n = Ve(r), te(t, "class", "CashierHeaderTitle");
3869
3900
  },
3870
3901
  m(i, s) {
3871
- M(i, t, s), ce(t, n);
3902
+ I(i, t, s), fe(t, n);
3872
3903
  },
3873
3904
  p(i, s) {
3874
3905
  s & /*$_, titleText*/
@@ -3876,21 +3907,21 @@ function yi(e) {
3876
3907
  i[4](
3877
3908
  /*titleText*/
3878
3909
  i[2]
3879
- ) + "") && ar(n, r);
3910
+ ) + "") && sr(n, r);
3880
3911
  },
3881
3912
  d(i) {
3882
- i && P(t);
3913
+ i && C(t);
3883
3914
  }
3884
3915
  };
3885
3916
  }
3886
- function _t(e) {
3917
+ function gt(e) {
3887
3918
  let t, r, n;
3888
3919
  return {
3889
3920
  c() {
3890
- t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', re(t, "class", "CashierHeaderRightButton");
3921
+ t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderRightButton");
3891
3922
  },
3892
3923
  m(i, s) {
3893
- M(i, t, s), r || (n = Bt(
3924
+ I(i, t, s), r || (n = Ht(
3894
3925
  t,
3895
3926
  "click",
3896
3927
  /*close*/
@@ -3899,226 +3930,216 @@ function _t(e) {
3899
3930
  },
3900
3931
  p: B,
3901
3932
  d(i) {
3902
- i && P(t), r = !1, n();
3933
+ i && C(t), r = !1, n();
3903
3934
  }
3904
3935
  };
3905
3936
  }
3906
- function Ei(e) {
3937
+ function Hi(e) {
3907
3938
  let t, r = (
3908
3939
  /*closeButton*/
3909
- e[3] && _t(e)
3940
+ e[3] && gt(e)
3910
3941
  );
3911
3942
  return {
3912
3943
  c() {
3913
- r && r.c(), t = Ht();
3944
+ r && r.c(), t = vt();
3914
3945
  },
3915
3946
  m(n, i) {
3916
- r && r.m(n, i), M(n, t, i);
3947
+ r && r.m(n, i), I(n, t, i);
3917
3948
  },
3918
3949
  p(n, i) {
3919
3950
  /*closeButton*/
3920
- n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3951
+ n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3921
3952
  },
3922
3953
  d(n) {
3923
- n && P(t), r && r.d(n);
3954
+ n && C(t), r && r.d(n);
3924
3955
  }
3925
3956
  };
3926
3957
  }
3927
- function xi(e) {
3958
+ function Bi(e) {
3928
3959
  let t, r, n, i;
3929
3960
  const s = (
3930
3961
  /*#slots*/
3931
- e[15].leftButton
3932
- ), u = xe(
3962
+ e[16].leftButton
3963
+ ), u = Ee(
3933
3964
  s,
3934
3965
  e,
3935
3966
  /*$$scope*/
3936
- e[14],
3937
- bt
3938
- ), o = u || _i(e), l = (
3967
+ e[15],
3968
+ dt
3969
+ ), o = u || xi(e), l = (
3939
3970
  /*#slots*/
3940
- e[15].title
3941
- ), a = xe(
3971
+ e[16].title
3972
+ ), a = Ee(
3942
3973
  l,
3943
3974
  e,
3944
3975
  /*$$scope*/
3945
- e[14],
3946
- dt
3947
- ), h = a || yi(e), f = (
3976
+ e[15],
3977
+ pt
3978
+ ), h = a || vi(e), c = (
3948
3979
  /*#slots*/
3949
- e[15].rightButton
3950
- ), c = xe(
3951
- f,
3980
+ e[16].rightButton
3981
+ ), m = Ee(
3982
+ c,
3952
3983
  e,
3953
3984
  /*$$scope*/
3954
- e[14],
3955
- pt
3956
- ), p = c || Ei(e);
3985
+ e[15],
3986
+ mt
3987
+ ), p = m || Hi(e);
3957
3988
  return {
3958
3989
  c() {
3959
- t = z("div"), o && o.c(), r = Je(), h && h.c(), n = Je(), p && p.c(), re(t, "class", "CashierHeader");
3990
+ t = X("div"), o && o.c(), r = Qe(), h && h.c(), n = Qe(), p && p.c(), te(t, "class", "CashierHeader");
3960
3991
  },
3961
- m(m, g) {
3962
- M(m, t, g), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[16](t), i = !0;
3992
+ m(f, _) {
3993
+ I(f, t, _), o && o.m(t, null), fe(t, r), h && h.m(t, null), fe(t, n), p && p.m(t, null), e[17](t), i = !0;
3963
3994
  },
3964
- p(m, [g]) {
3965
- u ? u.p && (!i || g & /*$$scope*/
3966
- 16384) && He(
3995
+ p(f, [_]) {
3996
+ u ? u.p && (!i || _ & /*$$scope*/
3997
+ 32768) && ve(
3967
3998
  u,
3968
3999
  s,
3969
- m,
4000
+ f,
3970
4001
  /*$$scope*/
3971
- m[14],
3972
- i ? ve(
4002
+ f[15],
4003
+ i ? xe(
3973
4004
  s,
3974
4005
  /*$$scope*/
3975
- m[14],
3976
- g,
3977
- gi
3978
- ) : Be(
4006
+ f[15],
4007
+ _,
4008
+ Ei
4009
+ ) : He(
3979
4010
  /*$$scope*/
3980
- m[14]
4011
+ f[15]
3981
4012
  ),
3982
- bt
3983
- ) : o && o.p && (!i || g & /*backButton*/
3984
- 2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
3985
- 16384) && He(
4013
+ dt
4014
+ ) : o && o.p && (!i || _ & /*backButton*/
4015
+ 2) && o.p(f, i ? _ : -1), a ? a.p && (!i || _ & /*$$scope*/
4016
+ 32768) && ve(
3986
4017
  a,
3987
4018
  l,
3988
- m,
4019
+ f,
3989
4020
  /*$$scope*/
3990
- m[14],
3991
- i ? ve(
4021
+ f[15],
4022
+ i ? xe(
3992
4023
  l,
3993
4024
  /*$$scope*/
3994
- m[14],
3995
- g,
3996
- bi
3997
- ) : Be(
4025
+ f[15],
4026
+ _,
4027
+ yi
4028
+ ) : He(
3998
4029
  /*$$scope*/
3999
- m[14]
4030
+ f[15]
4000
4031
  ),
4001
- dt
4002
- ) : h && h.p && (!i || g & /*$_, titleText*/
4003
- 20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4004
- 16384) && He(
4032
+ pt
4033
+ ) : h && h.p && (!i || _ & /*$_, titleText*/
4034
+ 20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
4035
+ 32768) && ve(
4036
+ m,
4005
4037
  c,
4006
4038
  f,
4007
- m,
4008
4039
  /*$$scope*/
4009
- m[14],
4010
- i ? ve(
4011
- f,
4040
+ f[15],
4041
+ i ? xe(
4042
+ c,
4012
4043
  /*$$scope*/
4013
- m[14],
4014
- g,
4015
- di
4016
- ) : Be(
4044
+ f[15],
4045
+ _,
4046
+ _i
4047
+ ) : He(
4017
4048
  /*$$scope*/
4018
- m[14]
4049
+ f[15]
4019
4050
  ),
4020
- pt
4021
- ) : p && p.p && (!i || g & /*closeButton*/
4022
- 8) && p.p(m, i ? g : -1);
4051
+ mt
4052
+ ) : p && p.p && (!i || _ & /*closeButton*/
4053
+ 8) && p.p(f, i ? _ : -1);
4023
4054
  },
4024
- i(m) {
4025
- i || (ue(o, m), ue(h, m), ue(p, m), i = !0);
4055
+ i(f) {
4056
+ i || (ae(o, f), ae(h, f), ae(p, f), i = !0);
4026
4057
  },
4027
- o(m) {
4028
- we(o, m), we(h, m), we(p, m), i = !1;
4058
+ o(f) {
4059
+ Te(o, f), Te(h, f), Te(p, f), i = !1;
4029
4060
  },
4030
- d(m) {
4031
- m && P(t), o && o.d(m), h && h.d(m), p && p.d(m), e[16](null);
4061
+ d(f) {
4062
+ f && C(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
4032
4063
  }
4033
4064
  };
4034
4065
  }
4035
- function vi(e, t, r) {
4066
+ function Ti(e, t, r) {
4036
4067
  let n;
4037
- rr(e, ci, (_) => r(4, n = _));
4038
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
4039
- const N = () => {
4040
- let _ = l;
4041
- _ && fetch(_).then((S) => S.json()).then((S) => {
4042
- Object.keys(S).forEach((U) => {
4043
- ct(U, S[U]);
4068
+ er(e, ci, (g) => r(4, n = g));
4069
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, A = !1;
4070
+ const O = () => {
4071
+ fetch(l).then((g) => g.json()).then((g) => {
4072
+ Object.keys(g).forEach((ze) => {
4073
+ ft(ze, g[ze]);
4044
4074
  });
4045
- }).catch((S) => {
4046
- console.log(S);
4075
+ }).catch((g) => {
4076
+ console.log(g);
4047
4077
  });
4048
4078
  };
4049
- Object.keys(mt).forEach((_) => {
4050
- ct(_, mt[_]);
4079
+ Object.keys(ct).forEach((g) => {
4080
+ ft(g, ct[g]);
4051
4081
  });
4052
- const O = () => {
4053
- let _ = document.createElement("style");
4054
- _.innerHTML = u, p.appendChild(_);
4055
- }, H = () => {
4056
- let _ = new URL(o), S = document.createElement("style");
4057
- fetch(_.href).then((U) => U.text()).then((U) => {
4058
- S.innerHTML = U, setTimeout(
4059
- () => {
4060
- p.appendChild(S);
4061
- },
4062
- 1
4063
- );
4064
- });
4065
- }, I = () => {
4066
- mi(f);
4067
- }, w = () => {
4082
+ const H = () => {
4083
+ mi(c);
4084
+ }, N = () => {
4068
4085
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4069
- }, R = () => {
4086
+ }, S = () => {
4070
4087
  window.postMessage({ type: "BackCashier" }, window.location.href);
4071
- }, se = () => {
4072
- r(1, m = !!a && a !== "false");
4073
- }, qt = () => {
4074
- r(3, v = !!c && c !== "false");
4075
- }, Yt = () => {
4076
- r(2, g = h || "header.general");
4088
+ }, $ = () => {
4089
+ r(1, _ = !!a && a !== "false");
4090
+ }, ie = () => {
4091
+ r(3, A = !!m && m !== "false");
4092
+ }, Jt = () => {
4093
+ r(2, v = h || "header.general");
4077
4094
  };
4078
- function Kt(_) {
4079
- Ne[_ ? "unshift" : "push"](() => {
4080
- p = _, r(0, p);
4095
+ ur(() => () => {
4096
+ });
4097
+ function qt(g) {
4098
+ Le[g ? "unshift" : "push"](() => {
4099
+ f = g, r(0, f);
4081
4100
  });
4082
4101
  }
4083
- return e.$$set = (_) => {
4084
- "clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4102
+ return e.$$set = (g) => {
4103
+ "clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
4085
4104
  }, e.$$.update = () => {
4086
4105
  e.$$.dirty & /*lang*/
4087
- 4096 && f && I(), e.$$.dirty & /*lang, title*/
4088
- 6144 && f && h && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4089
- 129 && u && p && O(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4090
- 257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
4091
- 4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
4092
- 1024 && a && se(), e.$$.dirty & /*showclosebutton*/
4093
- 8192 && c && qt();
4106
+ 4096 && c && H(), e.$$.dirty & /*lang, title*/
4107
+ 6144 && c && h && Jt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4108
+ 129 && u && f && pi(f, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4109
+ 257 && o && f && di(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4110
+ 16385 && p && f && bi(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
4111
+ 4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
4112
+ 1024 && a && $(), e.$$.dirty & /*showclosebutton*/
4113
+ 8192 && m && ie();
4094
4114
  }, [
4095
- p,
4096
- m,
4097
- g,
4115
+ f,
4116
+ _,
4098
4117
  v,
4118
+ A,
4099
4119
  n,
4100
- w,
4101
- R,
4120
+ N,
4121
+ S,
4102
4122
  u,
4103
4123
  o,
4104
4124
  l,
4105
4125
  a,
4106
4126
  h,
4107
- f,
4108
4127
  c,
4128
+ m,
4129
+ p,
4109
4130
  s,
4110
4131
  i,
4111
- Kt
4132
+ qt
4112
4133
  ];
4113
4134
  }
4114
- class Hi extends yr {
4135
+ class wi extends yr {
4115
4136
  constructor(t) {
4116
4137
  super(), gr(
4117
4138
  this,
4118
4139
  t,
4119
- vi,
4120
- xi,
4121
- Et,
4140
+ Ti,
4141
+ Bi,
4142
+ yt,
4122
4143
  {
4123
4144
  clientstyling: 7,
4124
4145
  clientstylingurl: 8,
@@ -4126,55 +4147,62 @@ class Hi extends yr {
4126
4147
  showbackbutton: 10,
4127
4148
  title: 11,
4128
4149
  lang: 12,
4129
- showclosebutton: 13
4150
+ showclosebutton: 13,
4151
+ mbsource: 14
4130
4152
  },
4131
- pi
4153
+ gi
4132
4154
  );
4133
4155
  }
4134
4156
  get clientstyling() {
4135
4157
  return this.$$.ctx[7];
4136
4158
  }
4137
4159
  set clientstyling(t) {
4138
- this.$$set({ clientstyling: t }), A();
4160
+ this.$$set({ clientstyling: t }), T();
4139
4161
  }
4140
4162
  get clientstylingurl() {
4141
4163
  return this.$$.ctx[8];
4142
4164
  }
4143
4165
  set clientstylingurl(t) {
4144
- this.$$set({ clientstylingurl: t }), A();
4166
+ this.$$set({ clientstylingurl: t }), T();
4145
4167
  }
4146
4168
  get translationurl() {
4147
4169
  return this.$$.ctx[9];
4148
4170
  }
4149
4171
  set translationurl(t) {
4150
- this.$$set({ translationurl: t }), A();
4172
+ this.$$set({ translationurl: t }), T();
4151
4173
  }
4152
4174
  get showbackbutton() {
4153
4175
  return this.$$.ctx[10];
4154
4176
  }
4155
4177
  set showbackbutton(t) {
4156
- this.$$set({ showbackbutton: t }), A();
4178
+ this.$$set({ showbackbutton: t }), T();
4157
4179
  }
4158
4180
  get title() {
4159
4181
  return this.$$.ctx[11];
4160
4182
  }
4161
4183
  set title(t) {
4162
- this.$$set({ title: t }), A();
4184
+ this.$$set({ title: t }), T();
4163
4185
  }
4164
4186
  get lang() {
4165
4187
  return this.$$.ctx[12];
4166
4188
  }
4167
4189
  set lang(t) {
4168
- this.$$set({ lang: t }), A();
4190
+ this.$$set({ lang: t }), T();
4169
4191
  }
4170
4192
  get showclosebutton() {
4171
4193
  return this.$$.ctx[13];
4172
4194
  }
4173
4195
  set showclosebutton(t) {
4174
- this.$$set({ showclosebutton: t }), A();
4196
+ this.$$set({ showclosebutton: t }), T();
4197
+ }
4198
+ get mbsource() {
4199
+ return this.$$.ctx[14];
4200
+ }
4201
+ set mbsource(t) {
4202
+ this.$$set({ mbsource: t }), T();
4175
4203
  }
4176
4204
  }
4177
- _r(Hi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4205
+ _r(wi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
4178
4206
  export {
4179
- Hi as C
4207
+ wi as C
4180
4208
  };