@everymatrix/cashier-header 1.73.0 → 1.73.2

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,17 +1,17 @@
1
- var or = Object.defineProperty, ar = Object.defineProperties;
2
- var ur = Object.getOwnPropertyDescriptors;
3
- var qe = Object.getOwnPropertySymbols;
4
- var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
5
- var ve = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
1
+ var ir = Object.defineProperty, sr = Object.defineProperties;
2
+ var or = Object.getOwnPropertyDescriptors;
3
+ var Je = Object.getOwnPropertySymbols;
4
+ var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
5
+ var xe = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- hr.call(t, r) && ve(e, r, t[r]);
8
- if (qe)
9
- for (var r of qe(t))
10
- lr.call(t, r) && ve(e, r, t[r]);
7
+ ar.call(t, r) && xe(e, r, t[r]);
8
+ if (Je)
9
+ for (var r of Je(t))
10
+ ur.call(t, r) && xe(e, r, t[r]);
11
11
  return e;
12
- }, Ke = (e, t) => ar(e, ur(t));
13
- var B = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var et = (e, t, r) => new Promise((n, i) => {
12
+ }, Ye = (e, t) => sr(e, or(t));
13
+ var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var Ke = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
17
17
  o(r.next(l));
@@ -29,7 +29,7 @@ var et = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function T() {
31
31
  }
32
- function fr(e, t) {
32
+ function hr(e, t) {
33
33
  for (const r in t)
34
34
  e[r] = t[r];
35
35
  return (
@@ -37,25 +37,25 @@ function fr(e, t) {
37
37
  e
38
38
  );
39
39
  }
40
- function Tt(e) {
40
+ function Bt(e) {
41
41
  return e();
42
42
  }
43
- function tt() {
43
+ function et() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
- function re(e) {
47
- e.forEach(Tt);
46
+ function te(e) {
47
+ e.forEach(Bt);
48
48
  }
49
- function We(e) {
49
+ function Xe(e) {
50
50
  return typeof e == "function";
51
51
  }
52
- function wt(e, t) {
52
+ function Tt(e, t) {
53
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
54
  }
55
- function cr(e) {
55
+ function lr(e) {
56
56
  return Object.keys(e).length === 0;
57
57
  }
58
- function St(e, ...t) {
58
+ function wt(e, ...t) {
59
59
  if (e == null) {
60
60
  for (const n of t)
61
61
  n(void 0);
@@ -64,19 +64,19 @@ function St(e, ...t) {
64
64
  const r = e.subscribe(...t);
65
65
  return r.unsubscribe ? () => r.unsubscribe() : r;
66
66
  }
67
- function mr(e, t, r) {
68
- e.$$.on_destroy.push(St(t, r));
67
+ function fr(e, t, r) {
68
+ e.$$.on_destroy.push(wt(t, r));
69
69
  }
70
- function He(e, t, r, n) {
70
+ function ve(e, t, r, n) {
71
71
  if (e) {
72
- const i = At(e, t, r, n);
72
+ const i = St(e, t, r, n);
73
73
  return e[0](i);
74
74
  }
75
75
  }
76
- function At(e, t, r, n) {
77
- return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
76
+ function St(e, t, r, n) {
77
+ return e[1] && n ? hr(r.ctx.slice(), e[1](n(t))) : r.ctx;
78
78
  }
79
- function Be(e, t, r, n) {
79
+ function He(e, t, r, n) {
80
80
  if (e[2] && n) {
81
81
  const i = e[2](n(r));
82
82
  if (t.dirty === void 0)
@@ -91,13 +91,13 @@ function Be(e, t, r, n) {
91
91
  }
92
92
  return t.dirty;
93
93
  }
94
- function Te(e, t, r, n, i, s) {
94
+ function Be(e, t, r, n, i, s) {
95
95
  if (i) {
96
- const a = At(t, r, n, s);
96
+ const a = St(t, r, n, s);
97
97
  e.p(a, i);
98
98
  }
99
99
  }
100
- function we(e) {
100
+ function Te(e) {
101
101
  if (e.ctx.length > 32) {
102
102
  const t = [], r = e.ctx.length / 32;
103
103
  for (let n = 0; n < r; n++)
@@ -106,17 +106,17 @@ function we(e) {
106
106
  }
107
107
  return -1;
108
108
  }
109
- function me(e, t) {
109
+ function ce(e, t) {
110
110
  e.appendChild(t);
111
111
  }
112
- function pr(e, t, r) {
113
- const n = dr(e);
112
+ function cr(e, t, r) {
113
+ const n = mr(e);
114
114
  if (!n.getElementById(t)) {
115
- const i = Z("style");
116
- i.id = t, i.textContent = r, br(n, i);
115
+ const i = W("style");
116
+ i.id = t, i.textContent = r, pr(n, i);
117
117
  }
118
118
  }
119
- function dr(e) {
119
+ function mr(e) {
120
120
  if (!e)
121
121
  return document;
122
122
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -126,45 +126,45 @@ function dr(e) {
126
126
  t
127
127
  ) : e.ownerDocument;
128
128
  }
129
- function br(e, t) {
130
- return me(
129
+ function pr(e, t) {
130
+ return ce(
131
131
  /** @type {Document} */
132
132
  e.head || e,
133
133
  t
134
134
  ), t.sheet;
135
135
  }
136
- function $(e, t, r) {
136
+ function M(e, t, r) {
137
137
  e.insertBefore(t, r || null);
138
138
  }
139
139
  function L(e) {
140
140
  e.parentNode && e.parentNode.removeChild(e);
141
141
  }
142
- function Z(e) {
142
+ function W(e) {
143
143
  return document.createElement(e);
144
144
  }
145
- function ze(e) {
145
+ function We(e) {
146
146
  return document.createTextNode(e);
147
147
  }
148
- function rt() {
149
- return ze(" ");
148
+ function tt() {
149
+ return We(" ");
150
150
  }
151
- function Ot() {
152
- return ze("");
151
+ function At() {
152
+ return We("");
153
153
  }
154
- function Pt(e, t, r, n) {
154
+ function Ot(e, t, r, n) {
155
155
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
156
156
  }
157
- function ne(e, t, r) {
157
+ function re(e, t, r) {
158
158
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
159
159
  }
160
- function gr(e) {
160
+ function dr(e) {
161
161
  return Array.from(e.childNodes);
162
162
  }
163
- function _r(e, t) {
163
+ function br(e, t) {
164
164
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
165
165
  t);
166
166
  }
167
- function yr(e) {
167
+ function gr(e) {
168
168
  const t = {};
169
169
  return e.childNodes.forEach(
170
170
  /** @param {Element} node */
@@ -173,89 +173,97 @@ function yr(e) {
173
173
  }
174
174
  ), t;
175
175
  }
176
- let Ze;
177
- function K(e) {
178
- Ze = e;
176
+ let Y;
177
+ function q(e) {
178
+ Y = e;
179
+ }
180
+ function _r() {
181
+ if (!Y)
182
+ throw new Error("Function called outside component initialization");
183
+ return Y;
179
184
  }
180
- const j = [], Me = [];
181
- let k = [];
182
- const nt = [], Er = /* @__PURE__ */ Promise.resolve();
183
- let $e = !1;
185
+ function yr(e) {
186
+ _r().$$.on_mount.push(e);
187
+ }
188
+ const G = [], Ie = [];
189
+ let F = [];
190
+ const rt = [], Er = /* @__PURE__ */ Promise.resolve();
191
+ let Me = !1;
184
192
  function xr() {
185
- $e || ($e = !0, Er.then(O));
193
+ Me || (Me = !0, Er.then(w));
186
194
  }
187
- function Re(e) {
188
- k.push(e);
195
+ function $e(e) {
196
+ F.push(e);
189
197
  }
190
- const Se = /* @__PURE__ */ new Set();
191
- let G = 0;
192
- function O() {
193
- if (G !== 0)
198
+ const we = /* @__PURE__ */ new Set();
199
+ let U = 0;
200
+ function w() {
201
+ if (U !== 0)
194
202
  return;
195
- const e = Ze;
203
+ const e = Y;
196
204
  do {
197
205
  try {
198
- for (; G < j.length; ) {
199
- const t = j[G];
200
- G++, K(t), vr(t.$$);
206
+ for (; U < G.length; ) {
207
+ const t = G[U];
208
+ U++, q(t), vr(t.$$);
201
209
  }
202
210
  } catch (t) {
203
- throw j.length = 0, G = 0, t;
211
+ throw G.length = 0, U = 0, t;
204
212
  }
205
- for (K(null), j.length = 0, G = 0; Me.length; )
206
- Me.pop()();
207
- for (let t = 0; t < k.length; t += 1) {
208
- const r = k[t];
209
- Se.has(r) || (Se.add(r), r());
213
+ for (q(null), G.length = 0, U = 0; Ie.length; )
214
+ Ie.pop()();
215
+ for (let t = 0; t < F.length; t += 1) {
216
+ const r = F[t];
217
+ we.has(r) || (we.add(r), r());
210
218
  }
211
- k.length = 0;
212
- } while (j.length);
213
- for (; nt.length; )
214
- nt.pop()();
215
- $e = !1, Se.clear(), K(e);
219
+ F.length = 0;
220
+ } while (G.length);
221
+ for (; rt.length; )
222
+ rt.pop()();
223
+ Me = !1, we.clear(), q(e);
216
224
  }
217
225
  function vr(e) {
218
226
  if (e.fragment !== null) {
219
- e.update(), re(e.before_update);
227
+ e.update(), te(e.before_update);
220
228
  const t = e.dirty;
221
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
229
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
222
230
  }
223
231
  }
224
232
  function Hr(e) {
225
233
  const t = [], r = [];
226
- k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
234
+ F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
227
235
  }
228
- const ue = /* @__PURE__ */ new Set();
236
+ const ae = /* @__PURE__ */ new Set();
229
237
  let Br;
230
- function he(e, t) {
231
- e && e.i && (ue.delete(e), e.i(t));
238
+ function ue(e, t) {
239
+ e && e.i && (ae.delete(e), e.i(t));
232
240
  }
233
- function Ae(e, t, r, n) {
241
+ function Se(e, t, r, n) {
234
242
  if (e && e.o) {
235
- if (ue.has(e))
243
+ if (ae.has(e))
236
244
  return;
237
- ue.add(e), Br.c.push(() => {
238
- ue.delete(e);
245
+ ae.add(e), Br.c.push(() => {
246
+ ae.delete(e);
239
247
  }), e.o(t);
240
248
  }
241
249
  }
242
250
  function Tr(e, t, r) {
243
251
  const { fragment: n, after_update: i } = e.$$;
244
- n && n.m(t, r), Re(() => {
245
- const s = e.$$.on_mount.map(Tt).filter(We);
246
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
247
- }), i.forEach(Re);
252
+ n && n.m(t, r), $e(() => {
253
+ const s = e.$$.on_mount.map(Bt).filter(Xe);
254
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
255
+ }), i.forEach($e);
248
256
  }
249
257
  function wr(e, t) {
250
258
  const r = e.$$;
251
- r.fragment !== null && (Hr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
259
+ r.fragment !== null && (Hr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
252
260
  }
253
261
  function Sr(e, t) {
254
- e.$$.dirty[0] === -1 && (j.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
262
+ e.$$.dirty[0] === -1 && (G.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
255
263
  }
256
264
  function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
257
- const l = Ze;
258
- K(e);
265
+ const l = Y;
266
+ q(e);
259
267
  const u = e.$$ = {
260
268
  fragment: null,
261
269
  ctx: [],
@@ -263,7 +271,7 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
263
271
  props: s,
264
272
  update: T,
265
273
  not_equal: i,
266
- bound: tt(),
274
+ bound: et(),
267
275
  // lifecycle
268
276
  on_mount: [],
269
277
  on_destroy: [],
@@ -272,28 +280,28 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
272
280
  after_update: [],
273
281
  context: new Map(t.context || (l ? l.$$.context : [])),
274
282
  // everything else
275
- callbacks: tt(),
283
+ callbacks: et(),
276
284
  dirty: o,
277
285
  skip_bound: !1,
278
286
  root: t.target || l.$$.root
279
287
  };
280
288
  a && a(u.root);
281
289
  let h = !1;
282
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
283
- const m = p.length ? p[0] : c;
284
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Sr(e, f)), c;
285
- }) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
290
+ if (u.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
291
+ const f = p.length ? p[0] : m;
292
+ return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Sr(e, c)), m;
293
+ }) : [], u.update(), h = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
286
294
  if (t.hydrate) {
287
- const f = gr(t.target);
288
- u.fragment && u.fragment.l(f), f.forEach(L);
295
+ const c = dr(t.target);
296
+ u.fragment && u.fragment.l(c), c.forEach(L);
289
297
  } else
290
298
  u.fragment && u.fragment.c();
291
- t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), O();
299
+ t.intro && ue(e.$$.fragment), Tr(e, t.target, t.anchor), w();
292
300
  }
293
- K(l);
301
+ q(l);
294
302
  }
295
- let Ct;
296
- typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
303
+ let Pt;
304
+ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
297
305
  constructor(t, r, n) {
298
306
  super();
299
307
  /** The Svelte component constructor */
@@ -330,21 +338,21 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
330
338
  }
331
339
  }
332
340
  connectedCallback() {
333
- return et(this, null, function* () {
341
+ return Ke(this, null, function* () {
334
342
  if (this.$$cn = !0, !this.$$c) {
335
343
  let t = function(s) {
336
344
  return () => {
337
345
  let a;
338
346
  return {
339
347
  c: function() {
340
- a = Z("slot"), s !== "default" && ne(a, "name", s);
348
+ a = W("slot"), s !== "default" && re(a, "name", s);
341
349
  },
342
350
  /**
343
351
  * @param {HTMLElement} target
344
352
  * @param {HTMLElement} [anchor]
345
353
  */
346
354
  m: function(u, h) {
347
- $(u, a, h);
355
+ M(u, a, h);
348
356
  },
349
357
  d: function(u) {
350
358
  u && L(a);
@@ -354,18 +362,18 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
354
362
  };
355
363
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
356
364
  return;
357
- const r = {}, n = yr(this);
365
+ const r = {}, n = gr(this);
358
366
  for (const s of this.$$s)
359
367
  s in n && (r[s] = [t(s)]);
360
368
  for (const s of this.attributes) {
361
369
  const a = this.$$g_p(s.name);
362
- a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
370
+ a in this.$$d || (this.$$d[a] = he(a, s.value, this.$$p_d, "toProp"));
363
371
  }
364
372
  for (const s in this.$$p_d)
365
373
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
366
374
  this.$$c = new this.$$ctor({
367
375
  target: this.shadowRoot || this,
368
- props: Ke(Ye({}, this.$$d), {
376
+ props: Ye(qe({}, this.$$d), {
369
377
  $$slots: r,
370
378
  $$scope: {
371
379
  ctx: []
@@ -376,7 +384,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
376
384
  this.$$r = !0;
377
385
  for (const s in this.$$p_d)
378
386
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
379
- const a = le(
387
+ const a = he(
380
388
  s,
381
389
  this.$$d[s],
382
390
  this.$$p_d,
@@ -400,7 +408,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
400
408
  // and setting attributes through setAttribute etc, this is helpful
401
409
  attributeChangedCallback(t, r, n) {
402
410
  var i;
403
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
411
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
404
412
  }
405
413
  disconnectedCallback() {
406
414
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -413,7 +421,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
413
421
  ) || t;
414
422
  }
415
423
  });
416
- function le(e, t, r, n) {
424
+ function he(e, t, r, n) {
417
425
  var s;
418
426
  const i = (s = r[e]) == null ? void 0 : s.type;
419
427
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -444,7 +452,7 @@ function le(e, t, r, n) {
444
452
  }
445
453
  }
446
454
  function Or(e, t, r, n, i, s) {
447
- let a = class extends Ct {
455
+ let a = class extends Pt {
448
456
  constructor() {
449
457
  super(e, r, i), this.$$p_d = t;
450
458
  }
@@ -461,7 +469,7 @@ function Or(e, t, r, n, i, s) {
461
469
  },
462
470
  set(l) {
463
471
  var u;
464
- l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
472
+ l = he(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
465
473
  }
466
474
  });
467
475
  }), n.forEach((o) => {
@@ -504,7 +512,7 @@ class Pr {
504
512
  * @returns {() => void}
505
513
  */
506
514
  $on(t, r) {
507
- if (!We(r))
515
+ if (!Xe(r))
508
516
  return T;
509
517
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
510
518
  return n.push(r), () => {
@@ -517,29 +525,29 @@ class Pr {
517
525
  * @returns {void}
518
526
  */
519
527
  $set(t) {
520
- this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
528
+ this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
521
529
  }
522
530
  }
523
531
  const Cr = "4";
524
532
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
525
- const F = [];
533
+ const D = [];
526
534
  function Lr(e, t) {
527
535
  return {
528
- subscribe: _e(e, t).subscribe
536
+ subscribe: ge(e, t).subscribe
529
537
  };
530
538
  }
531
- function _e(e, t = T) {
539
+ function ge(e, t = T) {
532
540
  let r;
533
541
  const n = /* @__PURE__ */ new Set();
534
542
  function i(o) {
535
- if (wt(e, o) && (e = o, r)) {
536
- const l = !F.length;
543
+ if (Tt(e, o) && (e = o, r)) {
544
+ const l = !D.length;
537
545
  for (const u of n)
538
- u[1](), F.push(u, e);
546
+ u[1](), D.push(u, e);
539
547
  if (l) {
540
- for (let u = 0; u < F.length; u += 2)
541
- F[u][0](F[u + 1]);
542
- F.length = 0;
548
+ for (let u = 0; u < D.length; u += 2)
549
+ D[u][0](D[u + 1]);
550
+ D.length = 0;
543
551
  }
544
552
  }
545
553
  }
@@ -554,7 +562,7 @@ function _e(e, t = T) {
554
562
  }
555
563
  return { set: i, update: s, subscribe: a };
556
564
  }
557
- function Q(e, t, r) {
565
+ function z(e, t, r) {
558
566
  const n = !Array.isArray(e), i = n ? [e] : e;
559
567
  if (!i.every(Boolean))
560
568
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -562,26 +570,26 @@ function Q(e, t, r) {
562
570
  return Lr(r, (a, o) => {
563
571
  let l = !1;
564
572
  const u = [];
565
- let h = 0, f = T;
566
- const c = () => {
573
+ let h = 0, c = T;
574
+ const m = () => {
567
575
  if (h)
568
576
  return;
569
- f();
570
- const m = t(n ? u[0] : u, a, o);
571
- s ? a(m) : f = We(m) ? m : T;
577
+ c();
578
+ const f = t(n ? u[0] : u, a, o);
579
+ s ? a(f) : c = Xe(f) ? f : T;
572
580
  }, p = i.map(
573
- (m, g) => St(
574
- m,
581
+ (f, _) => wt(
582
+ f,
575
583
  (v) => {
576
- u[g] = v, h &= ~(1 << g), l && c();
584
+ u[_] = v, h &= ~(1 << _), l && m();
577
585
  },
578
586
  () => {
579
- h |= 1 << g;
587
+ h |= 1 << _;
580
588
  }
581
589
  )
582
590
  );
583
- return l = !0, c(), function() {
584
- re(p), f(), l = !1;
591
+ return l = !0, m(), function() {
592
+ te(p), c(), l = !1;
585
593
  };
586
594
  });
587
595
  }
@@ -605,29 +613,29 @@ function Dr(e) {
605
613
  function Gr(e) {
606
614
  return Array.isArray(e) ? [] : {};
607
615
  }
608
- function ee(e, t) {
609
- return t.clone !== !1 && t.isMergeableObject(e) ? V(Gr(e), e, t) : e;
616
+ function K(e, t) {
617
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(Gr(e), e, t) : e;
610
618
  }
611
619
  function Fr(e, t, r) {
612
620
  return e.concat(t).map(function(n) {
613
- return ee(n, r);
621
+ return K(n, r);
614
622
  });
615
623
  }
616
624
  function jr(e, t) {
617
625
  if (!t.customMerge)
618
- return V;
626
+ return j;
619
627
  var r = t.customMerge(e);
620
- return typeof r == "function" ? r : V;
628
+ return typeof r == "function" ? r : j;
621
629
  }
622
630
  function kr(e) {
623
631
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
624
632
  return Object.propertyIsEnumerable.call(e, t);
625
633
  }) : [];
626
634
  }
627
- function it(e) {
635
+ function nt(e) {
628
636
  return Object.keys(e).concat(kr(e));
629
637
  }
630
- function Lt(e, t) {
638
+ function Ct(e, t) {
631
639
  try {
632
640
  return t in e;
633
641
  } catch (r) {
@@ -635,56 +643,56 @@ function Lt(e, t) {
635
643
  }
636
644
  }
637
645
  function Vr(e, t) {
638
- return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
646
+ return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
639
647
  }
640
648
  function Xr(e, t, r) {
641
649
  var n = {};
642
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
643
- n[i] = ee(e[i], r);
644
- }), it(t).forEach(function(i) {
645
- Vr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
650
+ return r.isMergeableObject(e) && nt(e).forEach(function(i) {
651
+ n[i] = K(e[i], r);
652
+ }), nt(t).forEach(function(i) {
653
+ Vr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
646
654
  }), n;
647
655
  }
648
- function V(e, t, r) {
649
- r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = ee;
656
+ function j(e, t, r) {
657
+ r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = K;
650
658
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
651
- return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : ee(t, r);
659
+ return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : K(t, r);
652
660
  }
653
- V.all = function(t, r) {
661
+ j.all = function(t, r) {
654
662
  if (!Array.isArray(t))
655
663
  throw new Error("first argument should be an array");
656
664
  return t.reduce(function(n, i) {
657
- return V(n, i, r);
665
+ return j(n, i, r);
658
666
  }, {});
659
667
  };
660
- var Wr = V, zr = Wr;
668
+ var Wr = j, zr = Wr;
661
669
  const Zr = /* @__PURE__ */ Nr(zr);
662
- var Ue = function(e, t) {
663
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
670
+ var Re = function(e, t) {
671
+ return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
664
672
  r.__proto__ = n;
665
673
  } || function(r, n) {
666
674
  for (var i in n)
667
675
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
668
- }, Ue(e, t);
676
+ }, Re(e, t);
669
677
  };
670
- function ye(e, t) {
678
+ function _e(e, t) {
671
679
  if (typeof t != "function" && t !== null)
672
680
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
673
- Ue(e, t);
681
+ Re(e, t);
674
682
  function r() {
675
683
  this.constructor = e;
676
684
  }
677
685
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
678
686
  }
679
- var w = function() {
680
- return w = Object.assign || function(t) {
687
+ var S = function() {
688
+ return S = Object.assign || function(t) {
681
689
  for (var r, n = 1, i = arguments.length; n < i; n++) {
682
690
  r = arguments[n];
683
691
  for (var s in r)
684
692
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
685
693
  }
686
694
  return t;
687
- }, w.apply(this, arguments);
695
+ }, S.apply(this, arguments);
688
696
  };
689
697
  function Qr(e, t) {
690
698
  var r = {};
@@ -695,13 +703,13 @@ function Qr(e, t) {
695
703
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
696
704
  return r;
697
705
  }
698
- function Oe(e, t, r) {
706
+ function Ae(e, t, r) {
699
707
  if (r || arguments.length === 2)
700
708
  for (var n = 0, i = t.length, s; n < i; n++)
701
709
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
702
710
  return e.concat(s || Array.prototype.slice.call(t));
703
711
  }
704
- function Pe(e, t) {
712
+ function Oe(e, t) {
705
713
  var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
706
714
  return i(e, {
707
715
  cache: r,
@@ -715,19 +723,19 @@ function qr(e, t, r, n) {
715
723
  var i = Jr(n) ? n : r(n), s = t.get(i);
716
724
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
717
725
  }
718
- function Nt(e, t, r) {
726
+ function Lt(e, t, r) {
719
727
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
720
728
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
721
729
  }
722
- function It(e, t, r, n, i) {
730
+ function Nt(e, t, r, n, i) {
723
731
  return r.bind(t, e, n, i);
724
732
  }
725
733
  function Yr(e, t) {
726
- var r = e.length === 1 ? qr : Nt;
727
- return It(e, this, r, t.cache.create(), t.serializer);
734
+ var r = e.length === 1 ? qr : Lt;
735
+ return Nt(e, this, r, t.cache.create(), t.serializer);
728
736
  }
729
737
  function Kr(e, t) {
730
- return It(e, this, Nt, t.cache.create(), t.serializer);
738
+ return Nt(e, this, Lt, t.cache.create(), t.serializer);
731
739
  }
732
740
  var en = function() {
733
741
  return JSON.stringify(arguments);
@@ -747,17 +755,17 @@ var en = function() {
747
755
  create: function() {
748
756
  return new tn();
749
757
  }
750
- }, Ce = {
758
+ }, Pe = {
751
759
  variadic: Kr
752
- }, pe = function() {
753
- return pe = Object.assign || function(t) {
760
+ }, me = function() {
761
+ return me = Object.assign || function(t) {
754
762
  for (var r, n = 1, i = arguments.length; n < i; n++) {
755
763
  r = arguments[n];
756
764
  for (var s in r)
757
765
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
758
766
  }
759
767
  return t;
760
- }, pe.apply(this, arguments);
768
+ }, me.apply(this, arguments);
761
769
  };
762
770
  var d;
763
771
  (function(e) {
@@ -767,44 +775,44 @@ var y;
767
775
  (function(e) {
768
776
  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";
769
777
  })(y || (y = {}));
770
- var X;
778
+ var k;
771
779
  (function(e) {
772
780
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
773
- })(X || (X = {}));
774
- function st(e) {
781
+ })(k || (k = {}));
782
+ function it(e) {
775
783
  return e.type === y.literal;
776
784
  }
777
785
  function nn(e) {
778
786
  return e.type === y.argument;
779
787
  }
780
- function Mt(e) {
788
+ function It(e) {
781
789
  return e.type === y.number;
782
790
  }
783
- function $t(e) {
791
+ function Mt(e) {
784
792
  return e.type === y.date;
785
793
  }
786
- function Rt(e) {
794
+ function $t(e) {
787
795
  return e.type === y.time;
788
796
  }
789
- function Ut(e) {
797
+ function Rt(e) {
790
798
  return e.type === y.select;
791
799
  }
792
- function Dt(e) {
800
+ function Ut(e) {
793
801
  return e.type === y.plural;
794
802
  }
795
803
  function sn(e) {
796
804
  return e.type === y.pound;
797
805
  }
798
- function Gt(e) {
806
+ function Dt(e) {
799
807
  return e.type === y.tag;
800
808
  }
801
- function Ft(e) {
802
- return !!(e && typeof e == "object" && e.type === X.number);
809
+ function Gt(e) {
810
+ return !!(e && typeof e == "object" && e.type === k.number);
803
811
  }
804
- function De(e) {
805
- return !!(e && typeof e == "object" && e.type === X.dateTime);
812
+ function Ue(e) {
813
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
806
814
  }
807
- var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
815
+ var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
808
816
  function an(e) {
809
817
  var t = {};
810
818
  return e.replace(on, function(r) {
@@ -910,15 +918,15 @@ var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
910
918
  function hn(e) {
911
919
  if (e.length === 0)
912
920
  throw new Error("Number skeleton cannot be empty");
913
- for (var t = e.split(un).filter(function(c) {
914
- return c.length > 0;
921
+ for (var t = e.split(un).filter(function(m) {
922
+ return m.length > 0;
915
923
  }), r = [], n = 0, i = t; n < i.length; n++) {
916
924
  var s = i[n], a = s.split("/");
917
925
  if (a.length === 0)
918
926
  throw new Error("Invalid number skeleton");
919
927
  for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
920
- var f = h[u];
921
- if (f.length === 0)
928
+ var c = h[u];
929
+ if (c.length === 0)
922
930
  throw new Error("Invalid number skeleton");
923
931
  }
924
932
  r.push({ stem: o, options: l });
@@ -928,14 +936,14 @@ function hn(e) {
928
936
  function ln(e) {
929
937
  return e.replace(/^(.*?)-/, "");
930
938
  }
931
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
932
- function at(e) {
939
+ var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
940
+ function ot(e) {
933
941
  var t = {};
934
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
942
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
935
943
  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)), "";
936
944
  }), t;
937
945
  }
938
- function Xt(e) {
946
+ function Vt(e) {
939
947
  switch (e) {
940
948
  case "sign-auto":
941
949
  return {
@@ -983,14 +991,14 @@ function cn(e) {
983
991
  notation: "scientific"
984
992
  }, e = e.slice(1)), t) {
985
993
  var r = e.slice(0, 2);
986
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
994
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
987
995
  throw new Error("Malformed concise eng/scientific notation");
988
996
  t.minimumIntegerDigits = e.length;
989
997
  }
990
998
  return t;
991
999
  }
992
- function ut(e) {
993
- var t = {}, r = Xt(e);
1000
+ function at(e) {
1001
+ var t = {}, r = Vt(e);
994
1002
  return r || t;
995
1003
  }
996
1004
  function mn(e) {
@@ -1029,12 +1037,12 @@ function mn(e) {
1029
1037
  continue;
1030
1038
  case "scientific":
1031
1039
  t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1032
- return E(E({}, l), ut(u));
1040
+ return E(E({}, l), at(u));
1033
1041
  }, {}));
1034
1042
  continue;
1035
1043
  case "engineering":
1036
1044
  t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1037
- return E(E({}, l), ut(u));
1045
+ return E(E({}, l), at(u));
1038
1046
  }, {}));
1039
1047
  continue;
1040
1048
  case "notation-simple":
@@ -1079,11 +1087,11 @@ function mn(e) {
1079
1087
  case "integer-width":
1080
1088
  if (i.options.length > 1)
1081
1089
  throw new RangeError("integer-width stems only accept a single optional option");
1082
- i.options[0].replace(fn, function(l, u, h, f, c, p) {
1090
+ i.options[0].replace(fn, function(l, u, h, c, m, p) {
1083
1091
  if (u)
1084
1092
  t.minimumIntegerDigits = h.length;
1085
1093
  else {
1086
- if (f && c)
1094
+ if (c && m)
1087
1095
  throw new Error("We currently do not support maximum integer digits");
1088
1096
  if (p)
1089
1097
  throw new Error("We currently do not support exact integer digits");
@@ -1092,32 +1100,32 @@ function mn(e) {
1092
1100
  });
1093
1101
  continue;
1094
1102
  }
1095
- if (Vt.test(i.stem)) {
1103
+ if (kt.test(i.stem)) {
1096
1104
  t.minimumIntegerDigits = i.stem.length;
1097
1105
  continue;
1098
1106
  }
1099
- if (ot.test(i.stem)) {
1107
+ if (st.test(i.stem)) {
1100
1108
  if (i.options.length > 1)
1101
1109
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1102
- i.stem.replace(ot, function(l, u, h, f, c, p) {
1103
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1110
+ i.stem.replace(st, function(l, u, h, c, m, p) {
1111
+ return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1104
1112
  });
1105
1113
  var s = i.options[0];
1106
- s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
1114
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ot(s)));
1107
1115
  continue;
1108
1116
  }
1109
- if (kt.test(i.stem)) {
1110
- t = E(E({}, t), at(i.stem));
1117
+ if (jt.test(i.stem)) {
1118
+ t = E(E({}, t), ot(i.stem));
1111
1119
  continue;
1112
1120
  }
1113
- var a = Xt(i.stem);
1121
+ var a = Vt(i.stem);
1114
1122
  a && (t = E(E({}, t), a));
1115
1123
  var o = cn(i.stem);
1116
1124
  o && (t = E(E({}, t), o));
1117
1125
  }
1118
1126
  return t;
1119
1127
  }
1120
- var ae = {
1128
+ var oe = {
1121
1129
  "001": [
1122
1130
  "H",
1123
1131
  "h"
@@ -2567,23 +2575,23 @@ function dn(e) {
2567
2575
  }
2568
2576
  var r = e.language, n;
2569
2577
  r !== "root" && (n = e.maximize().region);
2570
- var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
2578
+ var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2571
2579
  return i[0];
2572
2580
  }
2573
- var Le, bn = new RegExp("^".concat(jt.source, "*")), gn = new RegExp("".concat(jt.source, "*$"));
2581
+ var Ce, bn = new RegExp("^".concat(Ft.source, "*")), gn = new RegExp("".concat(Ft.source, "*$"));
2574
2582
  function b(e, t) {
2575
2583
  return { start: e, end: t };
2576
2584
  }
2577
2585
  var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
2578
2586
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2579
- }, Ge = !0;
2587
+ }, De = !0;
2580
2588
  try {
2581
- var wn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2582
- Ge = ((Le = wn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2589
+ var wn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2590
+ De = ((Ce = wn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2583
2591
  } catch (e) {
2584
- Ge = !1;
2592
+ De = !1;
2585
2593
  }
2586
- var ht = _n ? (
2594
+ var ut = _n ? (
2587
2595
  // Native
2588
2596
  function(t, r, n) {
2589
2597
  return t.startsWith(r, n);
@@ -2593,7 +2601,7 @@ var ht = _n ? (
2593
2601
  function(t, r, n) {
2594
2602
  return t.slice(n, n + r.length) === r;
2595
2603
  }
2596
- ), Fe = yn ? String.fromCodePoint : (
2604
+ ), Ge = yn ? String.fromCodePoint : (
2597
2605
  // IE11
2598
2606
  function() {
2599
2607
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2605,7 +2613,7 @@ var ht = _n ? (
2605
2613
  }
2606
2614
  return n;
2607
2615
  }
2608
- ), lt = (
2616
+ ), ht = (
2609
2617
  // native
2610
2618
  En ? Object.fromEntries : (
2611
2619
  // Ponyfill
@@ -2617,7 +2625,7 @@ var ht = _n ? (
2617
2625
  return r;
2618
2626
  }
2619
2627
  )
2620
- ), Wt = xn ? (
2628
+ ), Xt = xn ? (
2621
2629
  // Native
2622
2630
  function(t, r) {
2623
2631
  return t.codePointAt(r);
@@ -2652,27 +2660,27 @@ var ht = _n ? (
2652
2660
  return t.replace(gn, "");
2653
2661
  }
2654
2662
  );
2655
- function zt(e, t) {
2663
+ function Wt(e, t) {
2656
2664
  return new RegExp(e, t);
2657
2665
  }
2658
- var je;
2659
- if (Ge) {
2660
- var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2661
- je = function(t, r) {
2666
+ var Fe;
2667
+ if (De) {
2668
+ var lt = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2669
+ Fe = function(t, r) {
2662
2670
  var n;
2663
- ft.lastIndex = r;
2664
- var i = ft.exec(t);
2671
+ lt.lastIndex = r;
2672
+ var i = lt.exec(t);
2665
2673
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2666
2674
  };
2667
2675
  } else
2668
- je = function(t, r) {
2676
+ Fe = function(t, r) {
2669
2677
  for (var n = []; ; ) {
2670
- var i = Wt(t, r);
2671
- if (i === void 0 || Zt(i) || Ln(i))
2678
+ var i = Xt(t, r);
2679
+ if (i === void 0 || zt(i) || Ln(i))
2672
2680
  break;
2673
2681
  n.push(i), r += i >= 65536 ? 2 : 1;
2674
2682
  }
2675
- return Fe.apply(void 0, n);
2683
+ return Ge.apply(void 0, n);
2676
2684
  };
2677
2685
  var On = (
2678
2686
  /** @class */
@@ -2705,7 +2713,7 @@ var On = (
2705
2713
  if (n)
2706
2714
  break;
2707
2715
  return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2708
- } else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2716
+ } else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2709
2717
  var a = this.parseTag(t, r);
2710
2718
  if (a.err)
2711
2719
  return a;
@@ -2738,7 +2746,7 @@ var On = (
2738
2746
  return s;
2739
2747
  var a = s.val, o = this.clonePosition();
2740
2748
  if (this.bumpIf("</")) {
2741
- if (this.isEOF() || !ke(this.char()))
2749
+ if (this.isEOF() || !je(this.char()))
2742
2750
  return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
2743
2751
  var l = this.clonePosition(), u = this.parseTagName();
2744
2752
  return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -2819,12 +2827,12 @@ var On = (
2819
2827
  r.push(n);
2820
2828
  this.bump();
2821
2829
  }
2822
- return Fe.apply(void 0, r);
2830
+ return Ge.apply(void 0, r);
2823
2831
  }, e.prototype.tryParseUnquoted = function(t, r) {
2824
2832
  if (this.isEOF())
2825
2833
  return null;
2826
2834
  var n = this.char();
2827
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2835
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2828
2836
  }, e.prototype.parseArgument = function(t, r) {
2829
2837
  var n = this.clonePosition();
2830
2838
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2853,7 +2861,7 @@ var On = (
2853
2861
  return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2854
2862
  }
2855
2863
  }, e.prototype.parseIdentifierIfPossible = function() {
2856
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2864
+ var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
2857
2865
  this.bumpTo(i);
2858
2866
  var s = this.clonePosition(), a = b(t, s);
2859
2867
  return { value: n, location: a };
@@ -2869,40 +2877,40 @@ var On = (
2869
2877
  var u = null;
2870
2878
  if (this.bumpIf(",")) {
2871
2879
  this.bumpSpace();
2872
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2873
- if (f.err)
2874
- return f;
2875
- var c = An(f.val);
2876
- if (c.length === 0)
2880
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2881
+ if (c.err)
2882
+ return c;
2883
+ var m = An(c.val);
2884
+ if (m.length === 0)
2877
2885
  return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2878
2886
  var p = b(h, this.clonePosition());
2879
- u = { style: c, styleLocation: p };
2887
+ u = { style: m, styleLocation: p };
2880
2888
  }
2881
- var m = this.tryParseArgumentClose(i);
2882
- if (m.err)
2883
- return m;
2884
- var g = b(i, this.clonePosition());
2885
- if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
2889
+ var f = this.tryParseArgumentClose(i);
2890
+ if (f.err)
2891
+ return f;
2892
+ var _ = b(i, this.clonePosition());
2893
+ if (u && ut(u == null ? void 0 : u.style, "::", 0)) {
2886
2894
  var v = Sn(u.style.slice(2));
2887
2895
  if (o === "number") {
2888
- var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
2889
- return f.err ? f : {
2890
- val: { type: y.number, value: n, location: g, style: f.val },
2896
+ var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
2897
+ return c.err ? c : {
2898
+ val: { type: y.number, value: n, location: _, style: c.val },
2891
2899
  err: null
2892
2900
  };
2893
2901
  } else {
2894
2902
  if (v.length === 0)
2895
- return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
2896
- var I = v;
2897
- this.locale && (I = pn(v, this.locale));
2898
- var c = {
2899
- type: X.dateTime,
2900
- pattern: I,
2903
+ return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
2904
+ var O = v;
2905
+ this.locale && (O = pn(v, this.locale));
2906
+ var m = {
2907
+ type: k.dateTime,
2908
+ pattern: O,
2901
2909
  location: u.styleLocation,
2902
- parsedOptions: this.shouldParseSkeletons ? an(I) : {}
2910
+ parsedOptions: this.shouldParseSkeletons ? an(O) : {}
2903
2911
  }, P = o === "date" ? y.date : y.time;
2904
2912
  return {
2905
- val: { type: P, value: n, location: g, style: c },
2913
+ val: { type: P, value: n, location: _, style: m },
2906
2914
  err: null
2907
2915
  };
2908
2916
  }
@@ -2911,7 +2919,7 @@ var On = (
2911
2919
  val: {
2912
2920
  type: o === "number" ? y.number : o === "date" ? y.date : y.time,
2913
2921
  value: n,
2914
- location: g,
2922
+ location: _,
2915
2923
  style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2916
2924
  },
2917
2925
  err: null
@@ -2922,41 +2930,41 @@ var On = (
2922
2930
  case "select": {
2923
2931
  var H = this.clonePosition();
2924
2932
  if (this.bumpSpace(), !this.bumpIf(","))
2925
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
2933
+ return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, me({}, H)));
2926
2934
  this.bumpSpace();
2927
- var M = this.parseIdentifierIfPossible(), S = 0;
2928
- if (o !== "select" && M.value === "offset") {
2935
+ var I = this.parseIdentifierIfPossible(), A = 0;
2936
+ if (o !== "select" && I.value === "offset") {
2929
2937
  if (!this.bumpIf(":"))
2930
2938
  return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2931
2939
  this.bumpSpace();
2932
- var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2933
- if (f.err)
2934
- return f;
2935
- this.bumpSpace(), M = this.parseIdentifierIfPossible(), S = f.val;
2940
+ var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2941
+ if (c.err)
2942
+ return c;
2943
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), A = c.val;
2936
2944
  }
2937
- var U = this.tryParsePluralOrSelectOptions(t, o, r, M);
2938
- if (U.err)
2939
- return U;
2940
- var m = this.tryParseArgumentClose(i);
2941
- if (m.err)
2942
- return m;
2943
- var oe = b(i, this.clonePosition());
2945
+ var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
2946
+ if (R.err)
2947
+ return R;
2948
+ var f = this.tryParseArgumentClose(i);
2949
+ if (f.err)
2950
+ return f;
2951
+ var se = b(i, this.clonePosition());
2944
2952
  return o === "select" ? {
2945
2953
  val: {
2946
2954
  type: y.select,
2947
2955
  value: n,
2948
- options: lt(U.val),
2949
- location: oe
2956
+ options: ht(R.val),
2957
+ location: se
2950
2958
  },
2951
2959
  err: null
2952
2960
  } : {
2953
2961
  val: {
2954
2962
  type: y.plural,
2955
2963
  value: n,
2956
- options: lt(U.val),
2957
- offset: S,
2964
+ options: ht(R.val),
2965
+ offset: A,
2958
2966
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2959
- location: oe
2967
+ location: se
2960
2968
  },
2961
2969
  err: null
2962
2970
  };
@@ -3010,7 +3018,7 @@ var On = (
3010
3018
  }
3011
3019
  return {
3012
3020
  val: {
3013
- type: X.number,
3021
+ type: k.number,
3014
3022
  tokens: n,
3015
3023
  location: r,
3016
3024
  parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
@@ -3020,12 +3028,12 @@ var On = (
3020
3028
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3021
3029
  for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3022
3030
  if (u.length === 0) {
3023
- var f = this.clonePosition();
3031
+ var c = this.clonePosition();
3024
3032
  if (r !== "select" && this.bumpIf("=")) {
3025
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3026
- if (c.err)
3027
- return c;
3028
- h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3033
+ var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3034
+ if (m.err)
3035
+ return m;
3036
+ h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3029
3037
  } else
3030
3038
  break;
3031
3039
  }
@@ -3035,16 +3043,16 @@ var On = (
3035
3043
  var p = this.clonePosition();
3036
3044
  if (!this.bumpIf("{"))
3037
3045
  return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3038
- var m = this.parseMessage(t + 1, r, n);
3039
- if (m.err)
3040
- return m;
3041
- var g = this.tryParseArgumentClose(p);
3042
- if (g.err)
3043
- return g;
3046
+ var f = this.parseMessage(t + 1, r, n);
3047
+ if (f.err)
3048
+ return f;
3049
+ var _ = this.tryParseArgumentClose(p);
3050
+ if (_.err)
3051
+ return _;
3044
3052
  o.push([
3045
3053
  u,
3046
3054
  {
3047
- value: m.val,
3055
+ value: f.val,
3048
3056
  location: b(p, this.clonePosition())
3049
3057
  }
3050
3058
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
@@ -3076,7 +3084,7 @@ var On = (
3076
3084
  var t = this.position.offset;
3077
3085
  if (t >= this.message.length)
3078
3086
  throw Error("out of bound");
3079
- var r = Wt(this.message, t);
3087
+ var r = Xt(this.message, t);
3080
3088
  if (r === void 0)
3081
3089
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3082
3090
  return r;
@@ -3095,7 +3103,7 @@ var On = (
3095
3103
  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);
3096
3104
  }
3097
3105
  }, e.prototype.bumpIf = function(t) {
3098
- if (ht(this.message, t, this.offset())) {
3106
+ if (ut(this.message, t, this.offset())) {
3099
3107
  for (var r = 0; r < t.length; r++)
3100
3108
  this.bump();
3101
3109
  return !0;
@@ -3117,7 +3125,7 @@ var On = (
3117
3125
  break;
3118
3126
  }
3119
3127
  }, e.prototype.bumpSpace = function() {
3120
- for (; !this.isEOF() && Zt(this.char()); )
3128
+ for (; !this.isEOF() && zt(this.char()); )
3121
3129
  this.bump();
3122
3130
  }, e.prototype.peek = function() {
3123
3131
  if (this.isEOF())
@@ -3127,47 +3135,47 @@ var On = (
3127
3135
  }, e;
3128
3136
  }()
3129
3137
  );
3130
- function ke(e) {
3138
+ function je(e) {
3131
3139
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3132
3140
  }
3133
3141
  function Pn(e) {
3134
- return ke(e) || e === 47;
3142
+ return je(e) || e === 47;
3135
3143
  }
3136
3144
  function Cn(e) {
3137
3145
  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;
3138
3146
  }
3139
- function Zt(e) {
3147
+ function zt(e) {
3140
3148
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3141
3149
  }
3142
3150
  function Ln(e) {
3143
3151
  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;
3144
3152
  }
3145
- function Ve(e) {
3153
+ function ke(e) {
3146
3154
  e.forEach(function(t) {
3147
- if (delete t.location, Ut(t) || Dt(t))
3155
+ if (delete t.location, Rt(t) || Ut(t))
3148
3156
  for (var r in t.options)
3149
- delete t.options[r].location, Ve(t.options[r].value);
3157
+ delete t.options[r].location, ke(t.options[r].value);
3150
3158
  else
3151
- Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
3159
+ It(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Dt(t) && ke(t.children);
3152
3160
  });
3153
3161
  }
3154
3162
  function Nn(e, t) {
3155
- t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3163
+ t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3156
3164
  var r = new On(e, t).parse();
3157
3165
  if (r.err) {
3158
3166
  var n = SyntaxError(d[r.err.kind]);
3159
3167
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3160
3168
  }
3161
- return t != null && t.captureLocation || Ve(r.val), r.val;
3169
+ return t != null && t.captureLocation || ke(r.val), r.val;
3162
3170
  }
3163
- var W;
3171
+ var V;
3164
3172
  (function(e) {
3165
3173
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3166
- })(W || (W = {}));
3167
- var Ee = (
3174
+ })(V || (V = {}));
3175
+ var ye = (
3168
3176
  /** @class */
3169
3177
  function(e) {
3170
- ye(t, e);
3178
+ _e(t, e);
3171
3179
  function t(r, n, i) {
3172
3180
  var s = e.call(this, r) || this;
3173
3181
  return s.code = n, s.originalMessage = i, s;
@@ -3176,33 +3184,33 @@ var Ee = (
3176
3184
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3177
3185
  }, t;
3178
3186
  }(Error)
3179
- ), ct = (
3187
+ ), ft = (
3180
3188
  /** @class */
3181
3189
  function(e) {
3182
- ye(t, e);
3190
+ _e(t, e);
3183
3191
  function t(r, n, i, s) {
3184
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
3192
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
3185
3193
  }
3186
3194
  return t;
3187
- }(Ee)
3195
+ }(ye)
3188
3196
  ), In = (
3189
3197
  /** @class */
3190
3198
  function(e) {
3191
- ye(t, e);
3199
+ _e(t, e);
3192
3200
  function t(r, n, i) {
3193
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3201
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3194
3202
  }
3195
3203
  return t;
3196
- }(Ee)
3204
+ }(ye)
3197
3205
  ), Mn = (
3198
3206
  /** @class */
3199
3207
  function(e) {
3200
- ye(t, e);
3208
+ _e(t, e);
3201
3209
  function t(r, n) {
3202
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3210
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3203
3211
  }
3204
3212
  return t;
3205
- }(Ee)
3213
+ }(ye)
3206
3214
  ), x;
3207
3215
  (function(e) {
3208
3216
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3216,8 +3224,8 @@ function $n(e) {
3216
3224
  function Rn(e) {
3217
3225
  return typeof e == "function";
3218
3226
  }
3219
- function fe(e, t, r, n, i, s, a) {
3220
- if (e.length === 1 && st(e[0]))
3227
+ function le(e, t, r, n, i, s, a) {
3228
+ if (e.length === 1 && it(e[0]))
3221
3229
  return [
3222
3230
  {
3223
3231
  type: x.literal,
@@ -3226,7 +3234,7 @@ function fe(e, t, r, n, i, s, a) {
3226
3234
  ];
3227
3235
  for (var o = [], l = 0, u = e; l < u.length; l++) {
3228
3236
  var h = u[l];
3229
- if (st(h)) {
3237
+ if (it(h)) {
3230
3238
  o.push({
3231
3239
  type: x.literal,
3232
3240
  value: h.value
@@ -3240,91 +3248,91 @@ function fe(e, t, r, n, i, s, a) {
3240
3248
  });
3241
3249
  continue;
3242
3250
  }
3243
- var f = h.value;
3244
- if (!(i && f in i))
3245
- throw new Mn(f, a);
3246
- var c = i[f];
3251
+ var c = h.value;
3252
+ if (!(i && c in i))
3253
+ throw new Mn(c, a);
3254
+ var m = i[c];
3247
3255
  if (nn(h)) {
3248
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3249
- type: typeof c == "string" ? x.literal : x.object,
3250
- value: c
3256
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
3257
+ type: typeof m == "string" ? x.literal : x.object,
3258
+ value: m
3251
3259
  });
3252
3260
  continue;
3253
3261
  }
3254
- if ($t(h)) {
3255
- var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
3262
+ if (Mt(h)) {
3263
+ var p = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
3256
3264
  o.push({
3257
3265
  type: x.literal,
3258
- value: r.getDateTimeFormat(t, p).format(c)
3266
+ value: r.getDateTimeFormat(t, p).format(m)
3259
3267
  });
3260
3268
  continue;
3261
3269
  }
3262
- if (Rt(h)) {
3263
- var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
3270
+ if ($t(h)) {
3271
+ var p = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
3264
3272
  o.push({
3265
3273
  type: x.literal,
3266
- value: r.getDateTimeFormat(t, p).format(c)
3274
+ value: r.getDateTimeFormat(t, p).format(m)
3267
3275
  });
3268
3276
  continue;
3269
3277
  }
3270
- if (Mt(h)) {
3271
- var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3272
- p && p.scale && (c = c * (p.scale || 1)), o.push({
3278
+ if (It(h)) {
3279
+ var p = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
3280
+ p && p.scale && (m = m * (p.scale || 1)), o.push({
3273
3281
  type: x.literal,
3274
- value: r.getNumberFormat(t, p).format(c)
3282
+ value: r.getNumberFormat(t, p).format(m)
3275
3283
  });
3276
3284
  continue;
3277
3285
  }
3278
- if (Gt(h)) {
3279
- var m = h.children, g = h.value, v = i[g];
3286
+ if (Dt(h)) {
3287
+ var f = h.children, _ = h.value, v = i[_];
3280
3288
  if (!Rn(v))
3281
- throw new In(g, "function", a);
3282
- var I = fe(m, t, r, n, i, s), P = v(I.map(function(S) {
3283
- return S.value;
3289
+ throw new In(_, "function", a);
3290
+ var O = le(f, t, r, n, i, s), P = v(O.map(function(A) {
3291
+ return A.value;
3284
3292
  }));
3285
- Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(S) {
3293
+ Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(A) {
3286
3294
  return {
3287
- type: typeof S == "string" ? x.literal : x.object,
3288
- value: S
3295
+ type: typeof A == "string" ? x.literal : x.object,
3296
+ value: A
3289
3297
  };
3290
3298
  }));
3291
3299
  }
3292
- if (Ut(h)) {
3293
- var H = h.options[c] || h.options.other;
3300
+ if (Rt(h)) {
3301
+ var H = h.options[m] || h.options.other;
3294
3302
  if (!H)
3295
- throw new ct(h.value, c, Object.keys(h.options), a);
3296
- o.push.apply(o, fe(H.value, t, r, n, i));
3303
+ throw new ft(h.value, m, Object.keys(h.options), a);
3304
+ o.push.apply(o, le(H.value, t, r, n, i));
3297
3305
  continue;
3298
3306
  }
3299
- if (Dt(h)) {
3300
- var H = h.options["=".concat(c)];
3307
+ if (Ut(h)) {
3308
+ var H = h.options["=".concat(m)];
3301
3309
  if (!H) {
3302
3310
  if (!Intl.PluralRules)
3303
- throw new Ee(`Intl.PluralRules is not available in this environment.
3311
+ throw new ye(`Intl.PluralRules is not available in this environment.
3304
3312
  Try polyfilling it using "@formatjs/intl-pluralrules"
3305
- `, W.MISSING_INTL_API, a);
3306
- var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3307
- H = h.options[M] || h.options.other;
3313
+ `, V.MISSING_INTL_API, a);
3314
+ var I = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3315
+ H = h.options[I] || h.options.other;
3308
3316
  }
3309
3317
  if (!H)
3310
- throw new ct(h.value, c, Object.keys(h.options), a);
3311
- o.push.apply(o, fe(H.value, t, r, n, i, c - (h.offset || 0)));
3318
+ throw new ft(h.value, m, Object.keys(h.options), a);
3319
+ o.push.apply(o, le(H.value, t, r, n, i, m - (h.offset || 0)));
3312
3320
  continue;
3313
3321
  }
3314
3322
  }
3315
3323
  return $n(o);
3316
3324
  }
3317
3325
  function Un(e, t) {
3318
- return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3319
- return r[n] = w(w({}, e[n]), t[n] || {}), r;
3326
+ return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3327
+ return r[n] = S(S({}, e[n]), t[n] || {}), r;
3320
3328
  }, {})) : e;
3321
3329
  }
3322
3330
  function Dn(e, t) {
3323
3331
  return t ? Object.keys(e).reduce(function(r, n) {
3324
3332
  return r[n] = Un(e[n], t[n]), r;
3325
- }, w({}, e)) : e;
3333
+ }, S({}, e)) : e;
3326
3334
  }
3327
- function Ne(e) {
3335
+ function Le(e) {
3328
3336
  return {
3329
3337
  create: function() {
3330
3338
  return {
@@ -3344,33 +3352,33 @@ function Gn(e) {
3344
3352
  dateTime: {},
3345
3353
  pluralRules: {}
3346
3354
  }), {
3347
- getNumberFormat: Pe(function() {
3355
+ getNumberFormat: Oe(function() {
3348
3356
  for (var t, r = [], n = 0; n < arguments.length; n++)
3349
3357
  r[n] = arguments[n];
3350
- return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3358
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3351
3359
  }, {
3352
- cache: Ne(e.number),
3353
- strategy: Ce.variadic
3360
+ cache: Le(e.number),
3361
+ strategy: Pe.variadic
3354
3362
  }),
3355
- getDateTimeFormat: Pe(function() {
3363
+ getDateTimeFormat: Oe(function() {
3356
3364
  for (var t, r = [], n = 0; n < arguments.length; n++)
3357
3365
  r[n] = arguments[n];
3358
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3366
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3359
3367
  }, {
3360
- cache: Ne(e.dateTime),
3361
- strategy: Ce.variadic
3368
+ cache: Le(e.dateTime),
3369
+ strategy: Pe.variadic
3362
3370
  }),
3363
- getPluralRules: Pe(function() {
3371
+ getPluralRules: Oe(function() {
3364
3372
  for (var t, r = [], n = 0; n < arguments.length; n++)
3365
3373
  r[n] = arguments[n];
3366
- return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3374
+ return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3367
3375
  }, {
3368
- cache: Ne(e.pluralRules),
3369
- strategy: Ce.variadic
3376
+ cache: Le(e.pluralRules),
3377
+ strategy: Pe.variadic
3370
3378
  })
3371
3379
  };
3372
3380
  }
3373
- var Qt = (
3381
+ var Zt = (
3374
3382
  /** @class */
3375
3383
  function() {
3376
3384
  function e(t, r, n, i) {
@@ -3384,12 +3392,12 @@ var Qt = (
3384
3392
  var u = s.formatToParts(l);
3385
3393
  if (u.length === 1)
3386
3394
  return u[0].value;
3387
- var h = u.reduce(function(f, c) {
3388
- return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3395
+ var h = u.reduce(function(c, m) {
3396
+ return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
3389
3397
  }, []);
3390
3398
  return h.length <= 1 ? h[0] || "" : h;
3391
3399
  }, this.formatToParts = function(l) {
3392
- return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3400
+ return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3393
3401
  }, this.resolvedOptions = function() {
3394
3402
  var l;
3395
3403
  return {
@@ -3403,7 +3411,7 @@ var Qt = (
3403
3411
  var a = i || {};
3404
3412
  a.formatters;
3405
3413
  var o = Qr(a, ["formatters"]);
3406
- this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
3414
+ this.ast = e.__parse(t, S(S({}, o), { locale: this.resolvedLocale }));
3407
3415
  } else
3408
3416
  this.ast = t;
3409
3417
  if (!Array.isArray(this.ast))
@@ -3503,28 +3511,28 @@ function Fn(e, t) {
3503
3511
  n = void 0;
3504
3512
  return n;
3505
3513
  }
3506
- const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Jt = (e, t) => {
3514
+ const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Qt = (e, t) => {
3507
3515
  if (t == null)
3508
3516
  return;
3509
3517
  if (t in C && e in C[t])
3510
3518
  return C[t][e];
3511
- const r = se(t);
3519
+ const r = ie(t);
3512
3520
  for (let n = 0; n < r.length; n++) {
3513
3521
  const i = r[n], s = Vn(i, e);
3514
3522
  if (s)
3515
3523
  return jn(e, t, s);
3516
3524
  }
3517
3525
  };
3518
- let Qe;
3519
- const ie = _e({});
3526
+ let ze;
3527
+ const ne = ge({});
3520
3528
  function kn(e) {
3521
- return Qe[e] || null;
3529
+ return ze[e] || null;
3522
3530
  }
3523
- function qt(e) {
3524
- return e in Qe;
3531
+ function Jt(e) {
3532
+ return e in ze;
3525
3533
  }
3526
3534
  function Vn(e, t) {
3527
- if (!qt(e))
3535
+ if (!Jt(e))
3528
3536
  return null;
3529
3537
  const r = kn(e);
3530
3538
  return Fn(r, t);
@@ -3532,68 +3540,68 @@ function Vn(e, t) {
3532
3540
  function Xn(e) {
3533
3541
  if (e == null)
3534
3542
  return;
3535
- const t = se(e);
3543
+ const t = ie(e);
3536
3544
  for (let r = 0; r < t.length; r++) {
3537
3545
  const n = t[r];
3538
- if (qt(n))
3546
+ if (Jt(n))
3539
3547
  return n;
3540
3548
  }
3541
3549
  }
3542
- function Yt(e, ...t) {
3543
- delete C[e], ie.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3550
+ function qt(e, ...t) {
3551
+ delete C[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3544
3552
  }
3545
- Q(
3546
- [ie],
3553
+ z(
3554
+ [ne],
3547
3555
  ([e]) => Object.keys(e)
3548
3556
  );
3549
- ie.subscribe((e) => Qe = e);
3550
- const ce = {};
3557
+ ne.subscribe((e) => ze = e);
3558
+ const fe = {};
3551
3559
  function Wn(e, t) {
3552
- ce[e].delete(t), ce[e].size === 0 && delete ce[e];
3560
+ fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3553
3561
  }
3554
- function Kt(e) {
3555
- return ce[e];
3562
+ function Yt(e) {
3563
+ return fe[e];
3556
3564
  }
3557
3565
  function zn(e) {
3558
- return se(e).map((t) => {
3559
- const r = Kt(t);
3566
+ return ie(e).map((t) => {
3567
+ const r = Yt(t);
3560
3568
  return [t, r ? [...r] : []];
3561
3569
  }).filter(([, t]) => t.length > 0);
3562
3570
  }
3563
- function de(e) {
3564
- return e == null ? !1 : se(e).some(
3571
+ function pe(e) {
3572
+ return e == null ? !1 : ie(e).some(
3565
3573
  (t) => {
3566
3574
  var r;
3567
- return (r = Kt(t)) == null ? void 0 : r.size;
3575
+ return (r = Yt(t)) == null ? void 0 : r.size;
3568
3576
  }
3569
3577
  );
3570
3578
  }
3571
3579
  function Zn(e, t) {
3572
3580
  return Promise.all(
3573
3581
  t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
3574
- ).then((n) => Yt(e, ...n));
3582
+ ).then((n) => qt(e, ...n));
3575
3583
  }
3576
- const q = {};
3577
- function er(e) {
3578
- if (!de(e))
3579
- return e in q ? q[e] : Promise.resolve();
3584
+ const Q = {};
3585
+ function Kt(e) {
3586
+ if (!pe(e))
3587
+ return e in Q ? Q[e] : Promise.resolve();
3580
3588
  const t = zn(e);
3581
- return q[e] = Promise.all(
3589
+ return Q[e] = Promise.all(
3582
3590
  t.map(
3583
3591
  ([r, n]) => Zn(r, n)
3584
3592
  )
3585
3593
  ).then(() => {
3586
- if (de(e))
3587
- return er(e);
3588
- delete q[e];
3589
- }), q[e];
3594
+ if (pe(e))
3595
+ return Kt(e);
3596
+ delete Q[e];
3597
+ }), Q[e];
3590
3598
  }
3591
- var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
3599
+ var ct = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
3592
3600
  var r = {};
3593
3601
  for (var n in e)
3594
3602
  Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3595
- if (e != null && mt)
3596
- for (var n of mt(e))
3603
+ if (e != null && ct)
3604
+ for (var n of ct(e))
3597
3605
  t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
3598
3606
  return r;
3599
3607
  };
@@ -3629,9 +3637,9 @@ const Yn = {
3629
3637
  };
3630
3638
  function Kn({ locale: e, id: t }) {
3631
3639
  console.warn(
3632
- `[svelte-i18n] The message "${t}" was not found in "${se(
3640
+ `[svelte-i18n] The message "${t}" was not found in "${ie(
3633
3641
  e
3634
- ).join('", "')}".${de(N()) ? `
3642
+ ).join('", "')}".${pe(N()) ? `
3635
3643
 
3636
3644
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3637
3645
  );
@@ -3643,16 +3651,16 @@ const ei = {
3643
3651
  warnOnMissingMessages: !0,
3644
3652
  handleMissingMessage: void 0,
3645
3653
  ignoreTag: !0
3646
- }, Y = ei;
3647
- function z() {
3648
- return Y;
3654
+ }, J = ei;
3655
+ function X() {
3656
+ return J;
3649
3657
  }
3650
3658
  function ti(e) {
3651
3659
  const t = e, { formats: r } = t, n = qn(t, ["formats"]);
3652
3660
  let i = e.fallbackLocale;
3653
3661
  if (e.initialLocale)
3654
3662
  try {
3655
- Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3663
+ Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3656
3664
  } catch (s) {
3657
3665
  console.warn(
3658
3666
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
@@ -3660,124 +3668,124 @@ function ti(e) {
3660
3668
  }
3661
3669
  return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
3662
3670
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3663
- )), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), R.set(i);
3671
+ )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), $.set(i);
3664
3672
  }
3665
- const Ie = _e(!1);
3666
- var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
3673
+ const Ne = ge(!1);
3674
+ var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
3667
3675
  for (var r in t || (t = {}))
3668
- si.call(t, r) && dt(e, r, t[r]);
3669
- if (pt)
3670
- for (var r of pt(t))
3671
- oi.call(t, r) && dt(e, r, t[r]);
3676
+ si.call(t, r) && pt(e, r, t[r]);
3677
+ if (mt)
3678
+ for (var r of mt(t))
3679
+ oi.call(t, r) && pt(e, r, t[r]);
3672
3680
  return e;
3673
3681
  }, ui = (e, t) => ni(e, ii(t));
3674
- let Xe;
3675
- const be = _e(null);
3676
- function bt(e) {
3682
+ let Ve;
3683
+ const de = ge(null);
3684
+ function dt(e) {
3677
3685
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3678
3686
  }
3679
- function se(e, t = z().fallbackLocale) {
3680
- const r = bt(e);
3681
- return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3687
+ function ie(e, t = X().fallbackLocale) {
3688
+ const r = dt(e);
3689
+ return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3682
3690
  }
3683
3691
  function N() {
3684
- return Xe != null ? Xe : void 0;
3692
+ return Ve != null ? Ve : void 0;
3685
3693
  }
3686
- be.subscribe((e) => {
3687
- Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3694
+ de.subscribe((e) => {
3695
+ Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3688
3696
  });
3689
3697
  const hi = (e) => {
3690
- if (e && Xn(e) && de(e)) {
3691
- const { loadingDelay: t } = z();
3698
+ if (e && Xn(e) && pe(e)) {
3699
+ const { loadingDelay: t } = X();
3692
3700
  let r;
3693
3701
  return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
3694
- () => Ie.set(!0),
3702
+ () => Ne.set(!0),
3695
3703
  t
3696
- ) : Ie.set(!0), er(e).then(() => {
3697
- be.set(e);
3704
+ ) : Ne.set(!0), Kt(e).then(() => {
3705
+ de.set(e);
3698
3706
  }).finally(() => {
3699
- clearTimeout(r), Ie.set(!1);
3707
+ clearTimeout(r), Ne.set(!1);
3700
3708
  });
3701
3709
  }
3702
- return be.set(e);
3703
- }, R = ui(ai({}, be), {
3710
+ return de.set(e);
3711
+ }, $ = ui(ai({}, de), {
3704
3712
  set: hi
3705
- }), xe = (e) => {
3713
+ }), Ee = (e) => {
3706
3714
  const t = /* @__PURE__ */ Object.create(null);
3707
3715
  return (n) => {
3708
3716
  const i = JSON.stringify(n);
3709
3717
  return i in t ? t[i] : t[i] = e(n);
3710
3718
  };
3711
3719
  };
3712
- var li = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3720
+ var li = Object.defineProperty, be = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3713
3721
  for (var r in t || (t = {}))
3714
- tr.call(t, r) && gt(e, r, t[r]);
3715
- if (ge)
3716
- for (var r of ge(t))
3717
- rr.call(t, r) && gt(e, r, t[r]);
3722
+ er.call(t, r) && bt(e, r, t[r]);
3723
+ if (be)
3724
+ for (var r of be(t))
3725
+ tr.call(t, r) && bt(e, r, t[r]);
3718
3726
  return e;
3719
- }, J = (e, t) => {
3727
+ }, Z = (e, t) => {
3720
3728
  var r = {};
3721
3729
  for (var n in e)
3722
- tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3723
- if (e != null && ge)
3724
- for (var n of ge(e))
3725
- t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
3730
+ er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3731
+ if (e != null && be)
3732
+ for (var n of be(e))
3733
+ t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
3726
3734
  return r;
3727
3735
  };
3728
- const te = (e, t) => {
3729
- const { formats: r } = z();
3736
+ const ee = (e, t) => {
3737
+ const { formats: r } = X();
3730
3738
  if (e in r && t in r[e])
3731
3739
  return r[e][t];
3732
3740
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3733
- }, fi = xe(
3741
+ }, fi = Ee(
3734
3742
  (e) => {
3735
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3743
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3736
3744
  if (r == null)
3737
3745
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3738
- return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3746
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3739
3747
  }
3740
- ), ci = xe(
3748
+ ), ci = Ee(
3741
3749
  (e) => {
3742
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3750
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3743
3751
  if (r == null)
3744
3752
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3745
- return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3753
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3746
3754
  }
3747
- ), mi = xe(
3755
+ ), mi = Ee(
3748
3756
  (e) => {
3749
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
3757
+ var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3750
3758
  if (r == null)
3751
3759
  throw new Error(
3752
3760
  '[svelte-i18n] A "locale" must be set to format time values'
3753
3761
  );
3754
- return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3762
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3755
3763
  }
3756
3764
  ), pi = (e = {}) => {
3757
3765
  var t = e, {
3758
3766
  locale: r = N()
3759
- } = t, n = J(t, [
3767
+ } = t, n = Z(t, [
3760
3768
  "locale"
3761
3769
  ]);
3762
- return fi(Je({ locale: r }, n));
3770
+ return fi(Ze({ locale: r }, n));
3763
3771
  }, di = (e = {}) => {
3764
3772
  var t = e, {
3765
3773
  locale: r = N()
3766
- } = t, n = J(t, [
3774
+ } = t, n = Z(t, [
3767
3775
  "locale"
3768
3776
  ]);
3769
- return ci(Je({ locale: r }, n));
3777
+ return ci(Ze({ locale: r }, n));
3770
3778
  }, bi = (e = {}) => {
3771
3779
  var t = e, {
3772
3780
  locale: r = N()
3773
- } = t, n = J(t, [
3781
+ } = t, n = Z(t, [
3774
3782
  "locale"
3775
3783
  ]);
3776
- return mi(Je({ locale: r }, n));
3777
- }, gi = xe(
3784
+ return mi(Ze({ locale: r }, n));
3785
+ }, gi = Ee(
3778
3786
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3779
- (e, t = N()) => new Qt(e, t, z().formats, {
3780
- ignoreTag: z().ignoreTag
3787
+ (e, t = N()) => new Zt(e, t, X().formats, {
3788
+ ignoreTag: X().ignoreTag
3781
3789
  })
3782
3790
  ), _i = (e, t = {}) => {
3783
3791
  var r, n, i, s;
@@ -3792,39 +3800,39 @@ const te = (e, t) => {
3792
3800
  throw new Error(
3793
3801
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3794
3802
  );
3795
- let h = Jt(e, l);
3803
+ let h = Qt(e, l);
3796
3804
  if (!h)
3797
- h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3805
+ h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3798
3806
  else if (typeof h != "string")
3799
3807
  return console.warn(
3800
3808
  `[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.`
3801
3809
  ), h;
3802
3810
  if (!o)
3803
3811
  return h;
3804
- let f = h;
3812
+ let c = h;
3805
3813
  try {
3806
- f = gi(h, l).format(o);
3807
- } catch (c) {
3808
- c instanceof Error && console.warn(
3814
+ c = gi(h, l).format(o);
3815
+ } catch (m) {
3816
+ m instanceof Error && console.warn(
3809
3817
  `[svelte-i18n] Message "${e}" has syntax error:`,
3810
- c.message
3818
+ m.message
3811
3819
  );
3812
3820
  }
3813
- return f;
3814
- }, yi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), xi = (e, t) => pi(t).format(e), vi = (e, t = N()) => Jt(e, t), Hi = Q([R, ie], () => _i);
3815
- Q([R], () => yi);
3816
- Q([R], () => Ei);
3817
- Q([R], () => xi);
3818
- Q([R, ie], () => vi);
3819
- function _t(e, t) {
3820
- Yt(e, t);
3821
+ return c;
3822
+ }, yi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), xi = (e, t) => pi(t).format(e), vi = (e, t = N()) => Qt(e, t), Hi = z([$, ne], () => _i);
3823
+ z([$], () => yi);
3824
+ z([$], () => Ei);
3825
+ z([$], () => xi);
3826
+ z([$, ne], () => vi);
3827
+ function gt(e, t) {
3828
+ qt(e, t);
3821
3829
  }
3822
3830
  function Bi(e) {
3823
3831
  ti({
3824
3832
  fallbackLocale: "en"
3825
- }), R.set(e);
3833
+ }), $.set(e);
3826
3834
  }
3827
- const yt = {
3835
+ const _t = {
3828
3836
  en: {
3829
3837
  header: {
3830
3838
  general: "Cashier",
@@ -3847,18 +3855,41 @@ const yt = {
3847
3855
  }
3848
3856
  }
3849
3857
  };
3850
- function Ti(e) {
3851
- pr(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}");
3858
+ function Ti(e, t) {
3859
+ if (e) {
3860
+ const r = document.createElement("style");
3861
+ r.innerHTML = t, e.appendChild(r);
3862
+ }
3852
3863
  }
3853
- const wi = (e) => ({}), Et = (e) => ({}), Si = (e) => ({}), xt = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({});
3854
- function Ht(e) {
3864
+ function wi(e, t) {
3865
+ const r = new URL(t);
3866
+ fetch(r.href).then((n) => n.text()).then((n) => {
3867
+ const i = document.createElement("style");
3868
+ i.innerHTML = n, e && e.appendChild(i);
3869
+ }).catch((n) => {
3870
+ console.error("There was an error while trying to load client styling from URL", n);
3871
+ });
3872
+ }
3873
+ function Si(e, t, r) {
3874
+ if (window.emMessageBus) {
3875
+ const n = document.createElement("style");
3876
+ window.emMessageBus.subscribe(t, (i) => {
3877
+ n.innerHTML = i, e && e.appendChild(n);
3878
+ });
3879
+ }
3880
+ }
3881
+ function Ai(e) {
3882
+ cr(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}");
3883
+ }
3884
+ const Oi = (e) => ({}), yt = (e) => ({}), Pi = (e) => ({}), Et = (e) => ({}), Ci = (e) => ({}), xt = (e) => ({});
3885
+ function vt(e) {
3855
3886
  let t, r, n;
3856
3887
  return {
3857
3888
  c() {
3858
- 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>', ne(t, "class", "CashierHeaderLeftButton");
3889
+ t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', re(t, "class", "CashierHeaderLeftButton");
3859
3890
  },
3860
3891
  m(i, s) {
3861
- $(i, t, s), r || (n = Pt(
3892
+ M(i, t, s), r || (n = Ot(
3862
3893
  t,
3863
3894
  "click",
3864
3895
  /*back*/
@@ -3871,28 +3902,28 @@ function Ht(e) {
3871
3902
  }
3872
3903
  };
3873
3904
  }
3874
- function Oi(e) {
3905
+ function Li(e) {
3875
3906
  let t, r = (
3876
3907
  /*backButton*/
3877
- e[1] && Ht(e)
3908
+ e[1] && vt(e)
3878
3909
  );
3879
3910
  return {
3880
3911
  c() {
3881
- r && r.c(), t = Ot();
3912
+ r && r.c(), t = At();
3882
3913
  },
3883
3914
  m(n, i) {
3884
- r && r.m(n, i), $(n, t, i);
3915
+ r && r.m(n, i), M(n, t, i);
3885
3916
  },
3886
3917
  p(n, i) {
3887
3918
  /*backButton*/
3888
- n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3919
+ n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3889
3920
  },
3890
3921
  d(n) {
3891
3922
  n && L(t), r && r.d(n);
3892
3923
  }
3893
3924
  };
3894
3925
  }
3895
- function Pi(e) {
3926
+ function Ni(e) {
3896
3927
  let t, r = (
3897
3928
  /*$_*/
3898
3929
  e[4](
@@ -3902,10 +3933,10 @@ function Pi(e) {
3902
3933
  ), n;
3903
3934
  return {
3904
3935
  c() {
3905
- t = Z("span"), n = ze(r), ne(t, "class", "CashierHeaderTitle");
3936
+ t = W("span"), n = We(r), re(t, "class", "CashierHeaderTitle");
3906
3937
  },
3907
3938
  m(i, s) {
3908
- $(i, t, s), me(t, n);
3939
+ M(i, t, s), ce(t, n);
3909
3940
  },
3910
3941
  p(i, s) {
3911
3942
  s & /*$_, titleText*/
@@ -3913,21 +3944,21 @@ function Pi(e) {
3913
3944
  i[4](
3914
3945
  /*titleText*/
3915
3946
  i[2]
3916
- ) + "") && _r(n, r);
3947
+ ) + "") && br(n, r);
3917
3948
  },
3918
3949
  d(i) {
3919
3950
  i && L(t);
3920
3951
  }
3921
3952
  };
3922
3953
  }
3923
- function Bt(e) {
3954
+ function Ht(e) {
3924
3955
  let t, r, n;
3925
3956
  return {
3926
3957
  c() {
3927
- 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>', ne(t, "class", "CashierHeaderRightButton");
3958
+ t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', re(t, "class", "CashierHeaderRightButton");
3928
3959
  },
3929
3960
  m(i, s) {
3930
- $(i, t, s), r || (n = Pt(
3961
+ M(i, t, s), r || (n = Ot(
3931
3962
  t,
3932
3963
  "click",
3933
3964
  /*close*/
@@ -3940,222 +3971,212 @@ function Bt(e) {
3940
3971
  }
3941
3972
  };
3942
3973
  }
3943
- function Ci(e) {
3974
+ function Ii(e) {
3944
3975
  let t, r = (
3945
3976
  /*closeButton*/
3946
- e[3] && Bt(e)
3977
+ e[3] && Ht(e)
3947
3978
  );
3948
3979
  return {
3949
3980
  c() {
3950
- r && r.c(), t = Ot();
3981
+ r && r.c(), t = At();
3951
3982
  },
3952
3983
  m(n, i) {
3953
- r && r.m(n, i), $(n, t, i);
3984
+ r && r.m(n, i), M(n, t, i);
3954
3985
  },
3955
3986
  p(n, i) {
3956
3987
  /*closeButton*/
3957
- n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3988
+ n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3958
3989
  },
3959
3990
  d(n) {
3960
3991
  n && L(t), r && r.d(n);
3961
3992
  }
3962
3993
  };
3963
3994
  }
3964
- function Li(e) {
3995
+ function Mi(e) {
3965
3996
  let t, r, n, i;
3966
3997
  const s = (
3967
3998
  /*#slots*/
3968
- e[15].leftButton
3969
- ), a = He(
3999
+ e[16].leftButton
4000
+ ), a = ve(
3970
4001
  s,
3971
4002
  e,
3972
4003
  /*$$scope*/
3973
- e[14],
3974
- vt
3975
- ), o = a || Oi(e), l = (
4004
+ e[15],
4005
+ xt
4006
+ ), o = a || Li(e), l = (
3976
4007
  /*#slots*/
3977
- e[15].title
3978
- ), u = He(
4008
+ e[16].title
4009
+ ), u = ve(
3979
4010
  l,
3980
4011
  e,
3981
4012
  /*$$scope*/
3982
- e[14],
3983
- xt
3984
- ), h = u || Pi(e), f = (
4013
+ e[15],
4014
+ Et
4015
+ ), h = u || Ni(e), c = (
3985
4016
  /*#slots*/
3986
- e[15].rightButton
3987
- ), c = He(
3988
- f,
4017
+ e[16].rightButton
4018
+ ), m = ve(
4019
+ c,
3989
4020
  e,
3990
4021
  /*$$scope*/
3991
- e[14],
3992
- Et
3993
- ), p = c || Ci(e);
4022
+ e[15],
4023
+ yt
4024
+ ), p = m || Ii(e);
3994
4025
  return {
3995
4026
  c() {
3996
- t = Z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), ne(t, "class", "CashierHeader");
4027
+ t = W("div"), o && o.c(), r = tt(), h && h.c(), n = tt(), p && p.c(), re(t, "class", "CashierHeader");
3997
4028
  },
3998
- m(m, g) {
3999
- $(m, t, g), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[16](t), i = !0;
4029
+ m(f, _) {
4030
+ M(f, t, _), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[17](t), i = !0;
4000
4031
  },
4001
- p(m, [g]) {
4002
- a ? a.p && (!i || g & /*$$scope*/
4003
- 16384) && Te(
4032
+ p(f, [_]) {
4033
+ a ? a.p && (!i || _ & /*$$scope*/
4034
+ 32768) && Be(
4004
4035
  a,
4005
4036
  s,
4006
- m,
4037
+ f,
4007
4038
  /*$$scope*/
4008
- m[14],
4009
- i ? Be(
4039
+ f[15],
4040
+ i ? He(
4010
4041
  s,
4011
4042
  /*$$scope*/
4012
- m[14],
4013
- g,
4014
- Ai
4015
- ) : we(
4043
+ f[15],
4044
+ _,
4045
+ Ci
4046
+ ) : Te(
4016
4047
  /*$$scope*/
4017
- m[14]
4048
+ f[15]
4018
4049
  ),
4019
- vt
4020
- ) : o && o.p && (!i || g & /*backButton*/
4021
- 2) && o.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
4022
- 16384) && Te(
4050
+ xt
4051
+ ) : o && o.p && (!i || _ & /*backButton*/
4052
+ 2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
4053
+ 32768) && Be(
4023
4054
  u,
4024
4055
  l,
4025
- m,
4056
+ f,
4026
4057
  /*$$scope*/
4027
- m[14],
4028
- i ? Be(
4058
+ f[15],
4059
+ i ? He(
4029
4060
  l,
4030
4061
  /*$$scope*/
4031
- m[14],
4032
- g,
4033
- Si
4034
- ) : we(
4062
+ f[15],
4063
+ _,
4064
+ Pi
4065
+ ) : Te(
4035
4066
  /*$$scope*/
4036
- m[14]
4067
+ f[15]
4037
4068
  ),
4038
- xt
4039
- ) : h && h.p && (!i || g & /*$_, titleText*/
4040
- 20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4041
- 16384) && Te(
4069
+ Et
4070
+ ) : h && h.p && (!i || _ & /*$_, titleText*/
4071
+ 20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
4072
+ 32768) && Be(
4073
+ m,
4042
4074
  c,
4043
4075
  f,
4044
- m,
4045
4076
  /*$$scope*/
4046
- m[14],
4047
- i ? Be(
4048
- f,
4077
+ f[15],
4078
+ i ? He(
4079
+ c,
4049
4080
  /*$$scope*/
4050
- m[14],
4051
- g,
4052
- wi
4053
- ) : we(
4081
+ f[15],
4082
+ _,
4083
+ Oi
4084
+ ) : Te(
4054
4085
  /*$$scope*/
4055
- m[14]
4086
+ f[15]
4056
4087
  ),
4057
- Et
4058
- ) : p && p.p && (!i || g & /*closeButton*/
4059
- 8) && p.p(m, i ? g : -1);
4088
+ yt
4089
+ ) : p && p.p && (!i || _ & /*closeButton*/
4090
+ 8) && p.p(f, i ? _ : -1);
4060
4091
  },
4061
- i(m) {
4062
- i || (he(o, m), he(h, m), he(p, m), i = !0);
4092
+ i(f) {
4093
+ i || (ue(o, f), ue(h, f), ue(p, f), i = !0);
4063
4094
  },
4064
- o(m) {
4065
- Ae(o, m), Ae(h, m), Ae(p, m), i = !1;
4095
+ o(f) {
4096
+ Se(o, f), Se(h, f), Se(p, f), i = !1;
4066
4097
  },
4067
- d(m) {
4068
- m && L(t), o && o.d(m), h && h.d(m), p && p.d(m), e[16](null);
4098
+ d(f) {
4099
+ f && L(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
4069
4100
  }
4070
4101
  };
4071
4102
  }
4072
- function Ni(e, t, r) {
4103
+ function $i(e, t, r) {
4073
4104
  let n;
4074
- mr(e, Hi, (_) => r(4, n = _));
4075
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
4076
- const I = () => {
4077
- let _ = l;
4078
- _ && fetch(_).then((A) => A.json()).then((A) => {
4079
- Object.keys(A).forEach((D) => {
4080
- _t(D, A[D]);
4105
+ fr(e, Hi, (g) => r(4, n = g));
4106
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, O = !1;
4107
+ const P = () => {
4108
+ fetch(l).then((g) => g.json()).then((g) => {
4109
+ Object.keys(g).forEach((Qe) => {
4110
+ gt(Qe, g[Qe]);
4081
4111
  });
4082
- }).catch((A) => {
4083
- console.log(A);
4112
+ }).catch((g) => {
4113
+ console.log(g);
4084
4114
  });
4085
4115
  };
4086
- Object.keys(yt).forEach((_) => {
4087
- _t(_, yt[_]);
4116
+ Object.keys(_t).forEach((g) => {
4117
+ gt(g, _t[g]);
4088
4118
  });
4089
- const P = () => {
4090
- let _ = document.createElement("style");
4091
- _.innerHTML = a, p.appendChild(_);
4092
- }, H = () => {
4093
- let _ = new URL(o), A = document.createElement("style");
4094
- fetch(_.href).then((D) => D.text()).then((D) => {
4095
- A.innerHTML = D, setTimeout(
4096
- () => {
4097
- p.appendChild(A);
4098
- },
4099
- 1
4100
- );
4101
- });
4102
- }, M = () => {
4103
- Bi(f);
4104
- }, S = () => {
4119
+ const H = () => {
4120
+ Bi(c);
4121
+ }, I = () => {
4105
4122
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4106
- }, U = () => {
4123
+ }, A = () => {
4107
4124
  window.postMessage({ type: "BackCashier" }, window.location.href);
4108
- }, oe = () => {
4109
- r(1, m = !!u && u !== "false");
4110
- }, nr = () => {
4111
- r(3, v = !!c && c !== "false");
4112
- }, ir = () => {
4113
- r(2, g = h || "header.general");
4125
+ }, R = () => {
4126
+ r(1, _ = !!u && u !== "false");
4127
+ }, se = () => {
4128
+ r(3, O = !!m && m !== "false");
4129
+ }, rr = () => {
4130
+ r(2, v = h || "header.general");
4114
4131
  };
4115
- function sr(_) {
4116
- Me[_ ? "unshift" : "push"](() => {
4117
- p = _, r(0, p);
4132
+ yr(() => () => {
4133
+ });
4134
+ function nr(g) {
4135
+ Ie[g ? "unshift" : "push"](() => {
4136
+ f = g, r(0, f);
4118
4137
  });
4119
4138
  }
4120
- return e.$$set = (_) => {
4121
- "clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.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);
4139
+ return e.$$set = (g) => {
4140
+ "clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = 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);
4122
4141
  }, e.$$.update = () => {
4123
4142
  e.$$.dirty & /*lang*/
4124
- 4096 && f && M(), e.$$.dirty & /*lang, title*/
4125
- 6144 && f && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4126
- 129 && a && p && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4127
- 257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
4128
- 4608 && f && l && I(), e.$$.dirty & /*showbackbutton*/
4129
- 1024 && u && oe(), e.$$.dirty & /*showclosebutton*/
4130
- 8192 && c && nr();
4143
+ 4096 && c && H(), e.$$.dirty & /*lang, title*/
4144
+ 6144 && c && h && rr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4145
+ 129 && a && f && Ti(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4146
+ 257 && o && f && wi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4147
+ 16385 && p && f && Si(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
4148
+ 4608 && c && l && P(), e.$$.dirty & /*showbackbutton*/
4149
+ 1024 && u && R(), e.$$.dirty & /*showclosebutton*/
4150
+ 8192 && m && se();
4131
4151
  }, [
4132
- p,
4133
- m,
4134
- g,
4152
+ f,
4153
+ _,
4135
4154
  v,
4155
+ O,
4136
4156
  n,
4137
- S,
4138
- U,
4157
+ I,
4158
+ A,
4139
4159
  a,
4140
4160
  o,
4141
4161
  l,
4142
4162
  u,
4143
4163
  h,
4144
- f,
4145
4164
  c,
4165
+ m,
4166
+ p,
4146
4167
  s,
4147
4168
  i,
4148
- sr
4169
+ nr
4149
4170
  ];
4150
4171
  }
4151
- class Ii extends Pr {
4172
+ class Ri extends Pr {
4152
4173
  constructor(t) {
4153
4174
  super(), Ar(
4154
4175
  this,
4155
4176
  t,
4156
- Ni,
4157
- Li,
4158
- wt,
4177
+ $i,
4178
+ Mi,
4179
+ Tt,
4159
4180
  {
4160
4181
  clientstyling: 7,
4161
4182
  clientstylingurl: 8,
@@ -4163,55 +4184,62 @@ class Ii extends Pr {
4163
4184
  showbackbutton: 10,
4164
4185
  title: 11,
4165
4186
  lang: 12,
4166
- showclosebutton: 13
4187
+ showclosebutton: 13,
4188
+ mbsource: 14
4167
4189
  },
4168
- Ti
4190
+ Ai
4169
4191
  );
4170
4192
  }
4171
4193
  get clientstyling() {
4172
4194
  return this.$$.ctx[7];
4173
4195
  }
4174
4196
  set clientstyling(t) {
4175
- this.$$set({ clientstyling: t }), O();
4197
+ this.$$set({ clientstyling: t }), w();
4176
4198
  }
4177
4199
  get clientstylingurl() {
4178
4200
  return this.$$.ctx[8];
4179
4201
  }
4180
4202
  set clientstylingurl(t) {
4181
- this.$$set({ clientstylingurl: t }), O();
4203
+ this.$$set({ clientstylingurl: t }), w();
4182
4204
  }
4183
4205
  get translationurl() {
4184
4206
  return this.$$.ctx[9];
4185
4207
  }
4186
4208
  set translationurl(t) {
4187
- this.$$set({ translationurl: t }), O();
4209
+ this.$$set({ translationurl: t }), w();
4188
4210
  }
4189
4211
  get showbackbutton() {
4190
4212
  return this.$$.ctx[10];
4191
4213
  }
4192
4214
  set showbackbutton(t) {
4193
- this.$$set({ showbackbutton: t }), O();
4215
+ this.$$set({ showbackbutton: t }), w();
4194
4216
  }
4195
4217
  get title() {
4196
4218
  return this.$$.ctx[11];
4197
4219
  }
4198
4220
  set title(t) {
4199
- this.$$set({ title: t }), O();
4221
+ this.$$set({ title: t }), w();
4200
4222
  }
4201
4223
  get lang() {
4202
4224
  return this.$$.ctx[12];
4203
4225
  }
4204
4226
  set lang(t) {
4205
- this.$$set({ lang: t }), O();
4227
+ this.$$set({ lang: t }), w();
4206
4228
  }
4207
4229
  get showclosebutton() {
4208
4230
  return this.$$.ctx[13];
4209
4231
  }
4210
4232
  set showclosebutton(t) {
4211
- this.$$set({ showclosebutton: t }), O();
4233
+ this.$$set({ showclosebutton: t }), w();
4234
+ }
4235
+ get mbsource() {
4236
+ return this.$$.ctx[14];
4237
+ }
4238
+ set mbsource(t) {
4239
+ this.$$set({ mbsource: t }), w();
4212
4240
  }
4213
4241
  }
4214
- Or(Ii, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4242
+ Or(Ri, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
4215
4243
  export {
4216
- Ii as default
4244
+ Ri as default
4217
4245
  };