@everymatrix/cashier-methods-list 1.54.8 → 1.54.10

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,31 +1,31 @@
1
- var Nn = Object.defineProperty, Cn = Object.defineProperties;
2
- var In = Object.getOwnPropertyDescriptors;
1
+ var Pr = Object.defineProperty, Nr = Object.defineProperties;
2
+ var Cr = Object.getOwnPropertyDescriptors;
3
3
  var wt = Object.getOwnPropertySymbols;
4
- var Dn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable;
5
- var qe = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, De = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Dn.call(t, n) && qe(e, n, t[n]);
4
+ var Ir = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable;
5
+ var qe = (e, t, r) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, De = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ Ir.call(t, r) && qe(e, r, t[r]);
8
8
  if (wt)
9
- for (var n of wt(t))
10
- Rn.call(t, n) && qe(e, n, t[n]);
9
+ for (var r of wt(t))
10
+ Dr.call(t, r) && qe(e, r, t[r]);
11
11
  return e;
12
- }, Re = (e, t) => Cn(e, In(t));
13
- var te = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
14
- var St = (e, t, n) => new Promise((r, i) => {
12
+ }, Re = (e, t) => Nr(e, Cr(t));
13
+ var te = (e, t, r) => qe(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var St = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
17
- o(n.next(l));
17
+ o(r.next(l));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
21
  }, a = (l) => {
22
22
  try {
23
- o(n.throw(l));
23
+ o(r.throw(l));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
28
- o((n = n.apply(e, t)).next());
27
+ }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
+ o((r = r.apply(e, t)).next());
29
29
  });
30
30
  function ie() {
31
31
  }
@@ -41,39 +41,39 @@ function He(e) {
41
41
  function yt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function en(e, t) {
44
+ function er(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let Ue;
48
48
  function Ht(e, t) {
49
49
  return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
50
50
  }
51
- function Un(e) {
51
+ function Rr(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function tn(e, ...t) {
54
+ function tr(e, ...t) {
55
55
  if (e == null) {
56
- for (const r of t)
57
- r(void 0);
56
+ for (const n of t)
57
+ n(void 0);
58
58
  return ie;
59
59
  }
60
- const n = e.subscribe(...t);
61
- return n.unsubscribe ? () => n.unsubscribe() : n;
60
+ const r = e.subscribe(...t);
61
+ return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function Gn(e, t, n) {
64
- e.$$.on_destroy.push(tn(t, n));
63
+ function Ur(e, t, r) {
64
+ e.$$.on_destroy.push(tr(t, r));
65
65
  }
66
66
  function B(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function Fn(e, t, n) {
70
- const r = kn(e);
71
- if (!r.getElementById(t)) {
69
+ function Gr(e, t, r) {
70
+ const n = Fr(e);
71
+ if (!n.getElementById(t)) {
72
72
  const i = Y("style");
73
- i.id = t, i.textContent = n, jn(r, i);
73
+ i.id = t, i.textContent = r, kr(n, i);
74
74
  }
75
75
  }
76
- function kn(e) {
76
+ function Fr(e) {
77
77
  if (!e) return document;
78
78
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
79
79
  return t && /** @type {ShadowRoot} */
@@ -82,64 +82,64 @@ function kn(e) {
82
82
  t
83
83
  ) : e.ownerDocument;
84
84
  }
85
- function jn(e, t) {
85
+ function kr(e, t) {
86
86
  return B(
87
87
  /** @type {Document} */
88
88
  e.head || e,
89
89
  t
90
90
  ), t.sheet;
91
91
  }
92
- function he(e, t, n) {
93
- e.insertBefore(t, n || null);
92
+ function he(e, t, r) {
93
+ e.insertBefore(t, r || null);
94
94
  }
95
95
  function ae(e) {
96
96
  e.parentNode && e.parentNode.removeChild(e);
97
97
  }
98
- function Vn(e, t) {
99
- for (let n = 0; n < e.length; n += 1)
100
- e[n] && e[n].d(t);
98
+ function jr(e, t) {
99
+ for (let r = 0; r < e.length; r += 1)
100
+ e[r] && e[r].d(t);
101
101
  }
102
102
  function Y(e) {
103
103
  return document.createElement(e);
104
104
  }
105
- function re(e) {
105
+ function ne(e) {
106
106
  return document.createTextNode(e);
107
107
  }
108
- function ne() {
109
- return re(" ");
108
+ function re() {
109
+ return ne(" ");
110
110
  }
111
- function Xn() {
112
- return re("");
111
+ function Vr() {
112
+ return ne("");
113
113
  }
114
- function ot(e, t, n, r) {
115
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
114
+ function ot(e, t, r, n) {
115
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
116
116
  }
117
- function z(e, t, n) {
118
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
117
+ function z(e, t, r) {
118
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
119
119
  }
120
- function J(e, t, n) {
121
- const r = t.toLowerCase();
122
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : z(e, t, n);
120
+ function J(e, t, r) {
121
+ const n = t.toLowerCase();
122
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
123
123
  }
124
- function Wn(e) {
124
+ function Xr(e) {
125
125
  return Array.from(e.childNodes);
126
126
  }
127
127
  function le(e, t) {
128
128
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
129
129
  t);
130
130
  }
131
- function Mt(e, t, n) {
132
- e.classList.toggle(t, !!n);
131
+ function Mt(e, t, r) {
132
+ e.classList.toggle(t, !!r);
133
133
  }
134
- function zn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
135
- return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
134
+ function Wr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
135
+ return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
136
136
  }
137
- function Yn(e) {
137
+ function zr(e) {
138
138
  const t = {};
139
139
  return e.childNodes.forEach(
140
140
  /** @param {Element} node */
141
- (n) => {
142
- t[n.slot || "default"] = !0;
141
+ (r) => {
142
+ t[r.slot || "default"] = !0;
143
143
  }
144
144
  ), t;
145
145
  }
@@ -147,23 +147,23 @@ let Be;
147
147
  function $e(e) {
148
148
  Be = e;
149
149
  }
150
- function nn() {
150
+ function rr() {
151
151
  if (!Be) throw new Error("Function called outside component initialization");
152
152
  return Be;
153
153
  }
154
- function Zn(e) {
155
- nn().$$.on_mount.push(e);
154
+ function Yr(e) {
155
+ rr().$$.on_mount.push(e);
156
156
  }
157
- function Jn() {
158
- const e = nn();
159
- return (t, n, { cancelable: r = !1 } = {}) => {
157
+ function Zr() {
158
+ const e = rr();
159
+ return (t, r, { cancelable: n = !1 } = {}) => {
160
160
  const i = e.$$.callbacks[t];
161
161
  if (i) {
162
- const s = zn(
162
+ const s = Wr(
163
163
  /** @type {string} */
164
164
  t,
165
- n,
166
- { cancelable: r }
165
+ r,
166
+ { cancelable: n }
167
167
  );
168
168
  return i.slice().forEach((a) => {
169
169
  a.call(e, s);
@@ -174,10 +174,10 @@ function Jn() {
174
174
  }
175
175
  const xe = [], at = [];
176
176
  let Ee = [];
177
- const Lt = [], Qn = /* @__PURE__ */ Promise.resolve();
177
+ const Lt = [], Jr = /* @__PURE__ */ Promise.resolve();
178
178
  let ut = !1;
179
- function qn() {
180
- ut || (ut = !0, Qn.then(K));
179
+ function Qr() {
180
+ ut || (ut = !0, Jr.then(K));
181
181
  }
182
182
  function lt(e) {
183
183
  Ee.push(e);
@@ -192,15 +192,15 @@ function K() {
192
192
  try {
193
193
  for (; ye < xe.length; ) {
194
194
  const t = xe[ye];
195
- ye++, $e(t), Kn(t.$$);
195
+ ye++, $e(t), qr(t.$$);
196
196
  }
197
197
  } catch (t) {
198
198
  throw xe.length = 0, ye = 0, t;
199
199
  }
200
200
  for ($e(null), xe.length = 0, ye = 0; at.length; ) at.pop()();
201
201
  for (let t = 0; t < Ee.length; t += 1) {
202
- const n = Ee[t];
203
- Ke.has(n) || (Ke.add(n), n());
202
+ const r = Ee[t];
203
+ Ke.has(r) || (Ke.add(r), r());
204
204
  }
205
205
  Ee.length = 0;
206
206
  } while (xe.length);
@@ -208,39 +208,39 @@ function K() {
208
208
  Lt.pop()();
209
209
  ut = !1, Ke.clear(), $e(e);
210
210
  }
211
- function Kn(e) {
211
+ function qr(e) {
212
212
  if (e.fragment !== null) {
213
213
  e.update(), He(e.before_update);
214
214
  const t = e.dirty;
215
215
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
216
216
  }
217
217
  }
218
- function er(e) {
219
- const t = [], n = [];
220
- Ee.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ee = t;
218
+ function Kr(e) {
219
+ const t = [], r = [];
220
+ Ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ee = t;
221
221
  }
222
- const tr = /* @__PURE__ */ new Set();
223
- function nr(e, t) {
224
- e && e.i && (tr.delete(e), e.i(t));
222
+ const en = /* @__PURE__ */ new Set();
223
+ function tn(e, t) {
224
+ e && e.i && (en.delete(e), e.i(t));
225
225
  }
226
226
  function At(e) {
227
227
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
228
228
  }
229
- function rr(e, t, n) {
230
- const { fragment: r, after_update: i } = e.$$;
231
- r && r.m(t, n), lt(() => {
229
+ function rn(e, t, r) {
230
+ const { fragment: n, after_update: i } = e.$$;
231
+ n && n.m(t, r), lt(() => {
232
232
  const s = e.$$.on_mount.map(Kt).filter(yt);
233
233
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : He(s), e.$$.on_mount = [];
234
234
  }), i.forEach(lt);
235
235
  }
236
- function ir(e, t) {
237
- const n = e.$$;
238
- n.fragment !== null && (er(n.after_update), He(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
236
+ function nn(e, t) {
237
+ const r = e.$$;
238
+ r.fragment !== null && (Kr(r.after_update), He(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
239
  }
240
- function sr(e, t) {
241
- e.$$.dirty[0] === -1 && (xe.push(e), qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
240
+ function sn(e, t) {
241
+ e.$$.dirty[0] === -1 && (xe.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
242
  }
243
- function or(e, t, n, r, i, s, a = null, o = [-1]) {
243
+ function on(e, t, r, n, i, s, a = null, o = [-1]) {
244
244
  const l = Be;
245
245
  $e(e);
246
246
  const u = e.$$ = {
@@ -266,22 +266,22 @@ function or(e, t, n, r, i, s, a = null, o = [-1]) {
266
266
  };
267
267
  a && a(u.root);
268
268
  let h = !1;
269
- if (u.ctx = n ? n(e, t.props || {}, (c, p, ...E) => {
269
+ if (u.ctx = r ? r(e, t.props || {}, (c, p, ...E) => {
270
270
  const w = E.length ? E[0] : p;
271
- return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h && sr(e, c)), p;
272
- }) : [], u.update(), h = !0, He(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
271
+ return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h && sn(e, c)), p;
272
+ }) : [], u.update(), h = !0, He(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
273
273
  if (t.hydrate) {
274
- const c = Wn(t.target);
274
+ const c = Xr(t.target);
275
275
  u.fragment && u.fragment.l(c), c.forEach(ae);
276
276
  } else
277
277
  u.fragment && u.fragment.c();
278
- t.intro && nr(e.$$.fragment), rr(e, t.target, t.anchor), K();
278
+ t.intro && tn(e.$$.fragment), rn(e, t.target, t.anchor), K();
279
279
  }
280
280
  $e(l);
281
281
  }
282
- let rn;
283
- typeof HTMLElement == "function" && (rn = class extends HTMLElement {
284
- constructor(t, n, r) {
282
+ let nr;
283
+ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
284
+ constructor(t, r, n) {
285
285
  super();
286
286
  /** The Svelte component constructor */
287
287
  te(this, "$$ctor");
@@ -301,19 +301,19 @@ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
301
301
  te(this, "$$l", {});
302
302
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
303
303
  te(this, "$$l_u", /* @__PURE__ */ new Map());
304
- this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
304
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
305
305
  }
306
- addEventListener(t, n, r) {
307
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
308
- const i = this.$$c.$on(t, n);
309
- this.$$l_u.set(n, i);
306
+ addEventListener(t, r, n) {
307
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
308
+ const i = this.$$c.$on(t, r);
309
+ this.$$l_u.set(r, i);
310
310
  }
311
- super.addEventListener(t, n, r);
311
+ super.addEventListener(t, r, n);
312
312
  }
313
- removeEventListener(t, n, r) {
314
- if (super.removeEventListener(t, n, r), this.$$c) {
315
- const i = this.$$l_u.get(n);
316
- i && (i(), this.$$l_u.delete(n));
313
+ removeEventListener(t, r, n) {
314
+ if (super.removeEventListener(t, r, n), this.$$c) {
315
+ const i = this.$$l_u.get(r);
316
+ i && (i(), this.$$l_u.delete(r));
317
317
  }
318
318
  }
319
319
  connectedCallback() {
@@ -341,9 +341,9 @@ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
341
341
  };
342
342
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
343
343
  return;
344
- const n = {}, r = Yn(this);
344
+ const r = {}, n = zr(this);
345
345
  for (const s of this.$$s)
346
- s in r && (n[s] = [t(s)]);
346
+ s in n && (r[s] = [t(s)]);
347
347
  for (const s of this.attributes) {
348
348
  const a = this.$$g_p(s.name);
349
349
  a in this.$$d || (this.$$d[a] = Fe(a, s.value, this.$$p_d, "toProp"));
@@ -353,7 +353,7 @@ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
353
353
  this.$$c = new this.$$ctor({
354
354
  target: this.shadowRoot || this,
355
355
  props: Re(De({}, this.$$d), {
356
- $$slots: n,
356
+ $$slots: r,
357
357
  $$scope: {
358
358
  ctx: []
359
359
  }
@@ -385,9 +385,9 @@ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
385
385
  }
386
386
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
387
387
  // and setting attributes through setAttribute etc, this is helpful
388
- attributeChangedCallback(t, n, r) {
388
+ attributeChangedCallback(t, r, n) {
389
389
  var i;
390
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
390
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
391
391
  }
392
392
  disconnectedCallback() {
393
393
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -396,16 +396,16 @@ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
396
396
  }
397
397
  $$g_p(t) {
398
398
  return Object.keys(this.$$p_d).find(
399
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
399
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
400
400
  ) || t;
401
401
  }
402
402
  });
403
- function Fe(e, t, n, r) {
403
+ function Fe(e, t, r, n) {
404
404
  var s;
405
- const i = (s = n[e]) == null ? void 0 : s.type;
406
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
405
+ const i = (s = r[e]) == null ? void 0 : s.type;
406
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
407
407
  return t;
408
- if (r === "toAttribute")
408
+ if (n === "toAttribute")
409
409
  switch (i) {
410
410
  case "Object":
411
411
  case "Array":
@@ -430,10 +430,10 @@ function Fe(e, t, n, r) {
430
430
  return t;
431
431
  }
432
432
  }
433
- function ar(e, t, n, r, i, s) {
434
- let a = class extends rn {
433
+ function an(e, t, r, n, i, s) {
434
+ let a = class extends nr {
435
435
  constructor() {
436
- super(e, n, i), this.$$p_d = t;
436
+ super(e, r, i), this.$$p_d = t;
437
437
  }
438
438
  static get observedAttributes() {
439
439
  return Object.keys(t).map(
@@ -451,7 +451,7 @@ function ar(e, t, n, r, i, s) {
451
451
  l = Fe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
452
452
  }
453
453
  });
454
- }), r.forEach((o) => {
454
+ }), n.forEach((o) => {
455
455
  Object.defineProperty(a.prototype, o, {
456
456
  get() {
457
457
  var l;
@@ -461,7 +461,7 @@ function ar(e, t, n, r, i, s) {
461
461
  }), e.element = /** @type {any} */
462
462
  a, a;
463
463
  }
464
- class ur {
464
+ class un {
465
465
  constructor() {
466
466
  /**
467
467
  * ### PRIVATE API
@@ -482,7 +482,7 @@ class ur {
482
482
  }
483
483
  /** @returns {void} */
484
484
  $destroy() {
485
- ir(this, 1), this.$destroy = ie;
485
+ nn(this, 1), this.$destroy = ie;
486
486
  }
487
487
  /**
488
488
  * @template {Extract<keyof Events, string>} K
@@ -490,13 +490,13 @@ class ur {
490
490
  * @param {((e: Events[K]) => void) | null | undefined} callback
491
491
  * @returns {() => void}
492
492
  */
493
- $on(t, n) {
494
- if (!yt(n))
493
+ $on(t, r) {
494
+ if (!yt(r))
495
495
  return ie;
496
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
497
- return r.push(n), () => {
498
- const i = r.indexOf(n);
499
- i !== -1 && r.splice(i, 1);
496
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
497
+ return n.push(r), () => {
498
+ const i = n.indexOf(r);
499
+ i !== -1 && n.splice(i, 1);
500
500
  };
501
501
  }
502
502
  /**
@@ -504,24 +504,24 @@ class ur {
504
504
  * @returns {void}
505
505
  */
506
506
  $set(t) {
507
- this.$$set && !Un(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
507
+ this.$$set && !Rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
508
508
  }
509
509
  }
510
- const lr = "4";
511
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lr);
510
+ const ln = "4";
511
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ln);
512
512
  const ve = [];
513
- function hr(e, t) {
513
+ function hn(e, t) {
514
514
  return {
515
515
  subscribe: ze(e, t).subscribe
516
516
  };
517
517
  }
518
518
  function ze(e, t = ie) {
519
- let n;
520
- const r = /* @__PURE__ */ new Set();
519
+ let r;
520
+ const n = /* @__PURE__ */ new Set();
521
521
  function i(o) {
522
- if (en(e, o) && (e = o, n)) {
522
+ if (er(e, o) && (e = o, r)) {
523
523
  const l = !ve.length;
524
- for (const u of r)
524
+ for (const u of n)
525
525
  u[1](), ve.push(u, e);
526
526
  if (l) {
527
527
  for (let u = 0; u < ve.length; u += 2)
@@ -535,18 +535,18 @@ function ze(e, t = ie) {
535
535
  }
536
536
  function a(o, l = ie) {
537
537
  const u = [o, l];
538
- return r.add(u), r.size === 1 && (n = t(i, s) || ie), o(e), () => {
539
- r.delete(u), r.size === 0 && n && (n(), n = null);
538
+ return n.add(u), n.size === 1 && (r = t(i, s) || ie), o(e), () => {
539
+ n.delete(u), n.size === 0 && r && (r(), r = null);
540
540
  };
541
541
  }
542
542
  return { set: i, update: s, subscribe: a };
543
543
  }
544
- function Me(e, t, n) {
545
- const r = !Array.isArray(e), i = r ? [e] : e;
544
+ function Me(e, t, r) {
545
+ const n = !Array.isArray(e), i = n ? [e] : e;
546
546
  if (!i.every(Boolean))
547
547
  throw new Error("derived() expects stores as input, got a falsy value");
548
548
  const s = t.length < 2;
549
- return hr(n, (a, o) => {
549
+ return hn(r, (a, o) => {
550
550
  let l = !1;
551
551
  const u = [];
552
552
  let h = 0, c = ie;
@@ -554,10 +554,10 @@ function Me(e, t, n) {
554
554
  if (h)
555
555
  return;
556
556
  c();
557
- const w = t(r ? u[0] : u, a, o);
557
+ const w = t(n ? u[0] : u, a, o);
558
558
  s ? a(w) : c = yt(w) ? w : ie;
559
559
  }, E = i.map(
560
- (w, b) => tn(
560
+ (w, b) => tr(
561
561
  w,
562
562
  (H) => {
563
563
  u[b] = H, h &= ~(1 << b), l && p();
@@ -572,150 +572,150 @@ function Me(e, t, n) {
572
572
  };
573
573
  });
574
574
  }
575
- var sn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
575
+ var ir = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
576
576
  function vt(e) {
577
577
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
578
578
  }
579
- var fr = function(t) {
580
- return cr(t) && !mr(t);
579
+ var fn = function(t) {
580
+ return cn(t) && !mn(t);
581
581
  };
582
- function cr(e) {
582
+ function cn(e) {
583
583
  return !!e && typeof e == "object";
584
584
  }
585
- function mr(e) {
585
+ function mn(e) {
586
586
  var t = Object.prototype.toString.call(e);
587
- return t === "[object RegExp]" || t === "[object Date]" || pr(e);
587
+ return t === "[object RegExp]" || t === "[object Date]" || pn(e);
588
588
  }
589
- var dr = typeof Symbol == "function" && Symbol.for, gr = dr ? Symbol.for("react.element") : 60103;
590
- function pr(e) {
591
- return e.$$typeof === gr;
589
+ var dn = typeof Symbol == "function" && Symbol.for, gn = dn ? Symbol.for("react.element") : 60103;
590
+ function pn(e) {
591
+ return e.$$typeof === gn;
592
592
  }
593
- function br(e) {
593
+ function bn(e) {
594
594
  return Array.isArray(e) ? [] : {};
595
595
  }
596
596
  function Pe(e, t) {
597
- return t.clone !== !1 && t.isMergeableObject(e) ? _e(br(e), e, t) : e;
597
+ return t.clone !== !1 && t.isMergeableObject(e) ? _e(bn(e), e, t) : e;
598
598
  }
599
- function yr(e, t, n) {
600
- return e.concat(t).map(function(r) {
601
- return Pe(r, n);
599
+ function yn(e, t, r) {
600
+ return e.concat(t).map(function(n) {
601
+ return Pe(n, r);
602
602
  });
603
603
  }
604
- function vr(e, t) {
604
+ function vn(e, t) {
605
605
  if (!t.customMerge)
606
606
  return _e;
607
- var n = t.customMerge(e);
608
- return typeof n == "function" ? n : _e;
607
+ var r = t.customMerge(e);
608
+ return typeof r == "function" ? r : _e;
609
609
  }
610
- function xr(e) {
610
+ function xn(e) {
611
611
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
612
612
  return Object.propertyIsEnumerable.call(e, t);
613
613
  }) : [];
614
614
  }
615
615
  function Ot(e) {
616
- return Object.keys(e).concat(xr(e));
616
+ return Object.keys(e).concat(xn(e));
617
617
  }
618
- function on(e, t) {
618
+ function sr(e, t) {
619
619
  try {
620
620
  return t in e;
621
- } catch (n) {
621
+ } catch (r) {
622
622
  return !1;
623
623
  }
624
624
  }
625
- function Er(e, t) {
626
- return on(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
625
+ function En(e, t) {
626
+ return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
627
627
  }
628
- function _r(e, t, n) {
629
- var r = {};
630
- return n.isMergeableObject(e) && Ot(e).forEach(function(i) {
631
- r[i] = Pe(e[i], n);
628
+ function _n(e, t, r) {
629
+ var n = {};
630
+ return r.isMergeableObject(e) && Ot(e).forEach(function(i) {
631
+ n[i] = Pe(e[i], r);
632
632
  }), Ot(t).forEach(function(i) {
633
- Er(e, i) || (on(e, i) && n.isMergeableObject(t[i]) ? r[i] = vr(i, n)(e[i], t[i], n) : r[i] = Pe(t[i], n));
634
- }), r;
633
+ En(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = vn(i, r)(e[i], t[i], r) : n[i] = Pe(t[i], r));
634
+ }), n;
635
635
  }
636
- function _e(e, t, n) {
637
- n = n || {}, n.arrayMerge = n.arrayMerge || yr, n.isMergeableObject = n.isMergeableObject || fr, n.cloneUnlessOtherwiseSpecified = Pe;
638
- var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
639
- return s ? r ? n.arrayMerge(e, t, n) : _r(e, t, n) : Pe(t, n);
636
+ function _e(e, t, r) {
637
+ r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || fn, r.cloneUnlessOtherwiseSpecified = Pe;
638
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
639
+ return s ? n ? r.arrayMerge(e, t, r) : _n(e, t, r) : Pe(t, r);
640
640
  }
641
- _e.all = function(t, n) {
641
+ _e.all = function(t, r) {
642
642
  if (!Array.isArray(t))
643
643
  throw new Error("first argument should be an array");
644
- return t.reduce(function(r, i) {
645
- return _e(r, i, n);
644
+ return t.reduce(function(n, i) {
645
+ return _e(n, i, r);
646
646
  }, {});
647
647
  };
648
- var wr = _e, Sr = wr;
649
- const Tr = /* @__PURE__ */ vt(Sr);
648
+ var wn = _e, Sn = wn;
649
+ const Tn = /* @__PURE__ */ vt(Sn);
650
650
  var ht = function(e, t) {
651
- return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
652
- n.__proto__ = r;
653
- } || function(n, r) {
654
- for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
651
+ return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
652
+ r.__proto__ = n;
653
+ } || function(r, n) {
654
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
655
655
  }, ht(e, t);
656
656
  };
657
657
  function Ye(e, t) {
658
658
  if (typeof t != "function" && t !== null)
659
659
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
660
660
  ht(e, t);
661
- function n() {
661
+ function r() {
662
662
  this.constructor = e;
663
663
  }
664
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
664
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
665
665
  }
666
666
  var O = function() {
667
667
  return O = Object.assign || function(t) {
668
- for (var n, r = 1, i = arguments.length; r < i; r++) {
669
- n = arguments[r];
670
- for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
668
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
669
+ r = arguments[n];
670
+ for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
671
671
  }
672
672
  return t;
673
673
  }, O.apply(this, arguments);
674
674
  };
675
- function Hr(e, t) {
676
- var n = {};
677
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
675
+ function Hn(e, t) {
676
+ var r = {};
677
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
678
678
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
679
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
680
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
681
- return n;
679
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
680
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
681
+ return r;
682
682
  }
683
- function et(e, t, n) {
684
- if (n || arguments.length === 2) for (var r = 0, i = t.length, s; r < i; r++)
685
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
683
+ function et(e, t, r) {
684
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
685
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
686
686
  return e.concat(s || Array.prototype.slice.call(t));
687
687
  }
688
688
  function tt(e, t) {
689
- var n = t && t.cache ? t.cache : Pr, r = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Ar;
689
+ var r = t && t.cache ? t.cache : Pn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : An;
690
690
  return i(e, {
691
- cache: n,
692
- serializer: r
691
+ cache: r,
692
+ serializer: n
693
693
  });
694
694
  }
695
- function Mr(e) {
695
+ function Mn(e) {
696
696
  return e == null || typeof e == "number" || typeof e == "boolean";
697
697
  }
698
- function Lr(e, t, n, r) {
699
- var i = Mr(r) ? r : n(r), s = t.get(i);
700
- return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
698
+ function Ln(e, t, r, n) {
699
+ var i = Mn(n) ? n : r(n), s = t.get(i);
700
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
701
701
  }
702
- function an(e, t, n) {
703
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
704
- return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
702
+ function or(e, t, r) {
703
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
704
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
705
705
  }
706
- function un(e, t, n, r, i) {
707
- return n.bind(t, e, r, i);
706
+ function ar(e, t, r, n, i) {
707
+ return r.bind(t, e, n, i);
708
708
  }
709
- function Ar(e, t) {
710
- var n = e.length === 1 ? Lr : an;
711
- return un(e, this, n, t.cache.create(), t.serializer);
709
+ function An(e, t) {
710
+ var r = e.length === 1 ? Ln : or;
711
+ return ar(e, this, r, t.cache.create(), t.serializer);
712
712
  }
713
- function Or(e, t) {
714
- return un(e, this, an, t.cache.create(), t.serializer);
713
+ function On(e, t) {
714
+ return ar(e, this, or, t.cache.create(), t.serializer);
715
715
  }
716
- var $r = function() {
716
+ var $n = function() {
717
717
  return JSON.stringify(arguments);
718
- }, Br = (
718
+ }, Bn = (
719
719
  /** @class */
720
720
  function() {
721
721
  function e() {
@@ -723,16 +723,16 @@ var $r = function() {
723
723
  }
724
724
  return e.prototype.get = function(t) {
725
725
  return this.cache[t];
726
- }, e.prototype.set = function(t, n) {
727
- this.cache[t] = n;
726
+ }, e.prototype.set = function(t, r) {
727
+ this.cache[t] = r;
728
728
  }, e;
729
729
  }()
730
- ), Pr = {
730
+ ), Pn = {
731
731
  create: function() {
732
- return new Br();
732
+ return new Bn();
733
733
  }
734
- }, nt = {
735
- variadic: Or
734
+ }, rt = {
735
+ variadic: On
736
736
  }, M;
737
737
  (function(e) {
738
738
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
@@ -748,47 +748,47 @@ var we;
748
748
  function $t(e) {
749
749
  return e.type === D.literal;
750
750
  }
751
- function Nr(e) {
751
+ function Nn(e) {
752
752
  return e.type === D.argument;
753
753
  }
754
- function ln(e) {
754
+ function ur(e) {
755
755
  return e.type === D.number;
756
756
  }
757
- function hn(e) {
757
+ function lr(e) {
758
758
  return e.type === D.date;
759
759
  }
760
- function fn(e) {
760
+ function hr(e) {
761
761
  return e.type === D.time;
762
762
  }
763
- function cn(e) {
763
+ function fr(e) {
764
764
  return e.type === D.select;
765
765
  }
766
- function mn(e) {
766
+ function cr(e) {
767
767
  return e.type === D.plural;
768
768
  }
769
- function Cr(e) {
769
+ function Cn(e) {
770
770
  return e.type === D.pound;
771
771
  }
772
- function dn(e) {
772
+ function mr(e) {
773
773
  return e.type === D.tag;
774
774
  }
775
- function gn(e) {
775
+ function dr(e) {
776
776
  return !!(e && typeof e == "object" && e.type === we.number);
777
777
  }
778
778
  function ft(e) {
779
779
  return !!(e && typeof e == "object" && e.type === we.dateTime);
780
780
  }
781
- var pn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ir = /(?:[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;
782
- function Dr(e) {
781
+ var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, In = /(?:[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;
782
+ function Dn(e) {
783
783
  var t = {};
784
- return e.replace(Ir, function(n) {
785
- var r = n.length;
786
- switch (n[0]) {
784
+ return e.replace(In, function(r) {
785
+ var n = r.length;
786
+ switch (r[0]) {
787
787
  case "G":
788
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
788
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
789
789
  break;
790
790
  case "y":
791
- t.year = r === 2 ? "2-digit" : "numeric";
791
+ t.year = n === 2 ? "2-digit" : "numeric";
792
792
  break;
793
793
  case "Y":
794
794
  case "u":
@@ -800,30 +800,30 @@ function Dr(e) {
800
800
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
801
801
  case "M":
802
802
  case "L":
803
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
803
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
804
804
  break;
805
805
  case "w":
806
806
  case "W":
807
807
  throw new RangeError("`w/W` (week) patterns are not supported");
808
808
  case "d":
809
- t.day = ["numeric", "2-digit"][r - 1];
809
+ t.day = ["numeric", "2-digit"][n - 1];
810
810
  break;
811
811
  case "D":
812
812
  case "F":
813
813
  case "g":
814
814
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
815
815
  case "E":
816
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
816
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
817
817
  break;
818
818
  case "e":
819
- if (r < 4)
819
+ if (n < 4)
820
820
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
821
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
821
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
822
822
  break;
823
823
  case "c":
824
- if (r < 4)
824
+ if (n < 4)
825
825
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
826
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
826
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
827
827
  break;
828
828
  case "a":
829
829
  t.hour12 = !0;
@@ -832,32 +832,32 @@ function Dr(e) {
832
832
  case "B":
833
833
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
834
834
  case "h":
835
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
835
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
836
836
  break;
837
837
  case "H":
838
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
838
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
839
839
  break;
840
840
  case "K":
841
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
841
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
842
842
  break;
843
843
  case "k":
844
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
844
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
845
845
  break;
846
846
  case "j":
847
847
  case "J":
848
848
  case "C":
849
849
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
850
850
  case "m":
851
- t.minute = ["numeric", "2-digit"][r - 1];
851
+ t.minute = ["numeric", "2-digit"][n - 1];
852
852
  break;
853
853
  case "s":
854
- t.second = ["numeric", "2-digit"][r - 1];
854
+ t.second = ["numeric", "2-digit"][n - 1];
855
855
  break;
856
856
  case "S":
857
857
  case "A":
858
858
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
859
859
  case "z":
860
- t.timeZoneName = r < 4 ? "short" : "long";
860
+ t.timeZoneName = n < 4 ? "short" : "long";
861
861
  break;
862
862
  case "Z":
863
863
  case "O":
@@ -870,14 +870,14 @@ function Dr(e) {
870
870
  return "";
871
871
  }), t;
872
872
  }
873
- var Rr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
874
- function Ur(e) {
873
+ var Rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
874
+ function Un(e) {
875
875
  if (e.length === 0)
876
876
  throw new Error("Number skeleton cannot be empty");
877
- for (var t = e.split(Rr).filter(function(p) {
877
+ for (var t = e.split(Rn).filter(function(p) {
878
878
  return p.length > 0;
879
- }), n = [], r = 0, i = t; r < i.length; r++) {
880
- var s = i[r], a = s.split("/");
879
+ }), r = [], n = 0, i = t; n < i.length; n++) {
880
+ var s = i[n], a = s.split("/");
881
881
  if (a.length === 0)
882
882
  throw new Error("Invalid number skeleton");
883
883
  for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
@@ -885,21 +885,21 @@ function Ur(e) {
885
885
  if (c.length === 0)
886
886
  throw new Error("Invalid number skeleton");
887
887
  }
888
- n.push({ stem: o, options: l });
888
+ r.push({ stem: o, options: l });
889
889
  }
890
- return n;
890
+ return r;
891
891
  }
892
- function Gr(e) {
892
+ function Gn(e) {
893
893
  return e.replace(/^(.*?)-/, "");
894
894
  }
895
- var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bn = /^(@+)?(\+|#+)?[rs]?$/g, Fr = /(\*)(0+)|(#+)(0+)|(0+)/g, yn = /^(0+)$/;
895
+ var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Fn = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
896
896
  function Pt(e) {
897
897
  var t = {};
898
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(bn, function(n, r, i) {
899
- return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
898
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
899
+ 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)), "";
900
900
  }), t;
901
901
  }
902
- function vn(e) {
902
+ function yr(e) {
903
903
  switch (e) {
904
904
  case "sign-auto":
905
905
  return {
@@ -939,27 +939,27 @@ function vn(e) {
939
939
  };
940
940
  }
941
941
  }
942
- function kr(e) {
942
+ function kn(e) {
943
943
  var t;
944
944
  if (e[0] === "E" && e[1] === "E" ? (t = {
945
945
  notation: "engineering"
946
946
  }, e = e.slice(2)) : e[0] === "E" && (t = {
947
947
  notation: "scientific"
948
948
  }, e = e.slice(1)), t) {
949
- var n = e.slice(0, 2);
950
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yn.test(e))
949
+ var r = e.slice(0, 2);
950
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
951
951
  throw new Error("Malformed concise eng/scientific notation");
952
952
  t.minimumIntegerDigits = e.length;
953
953
  }
954
954
  return t;
955
955
  }
956
956
  function Nt(e) {
957
- var t = {}, n = vn(e);
958
- return n || t;
957
+ var t = {}, r = yr(e);
958
+ return r || t;
959
959
  }
960
- function jr(e) {
961
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
962
- var i = r[n];
960
+ function jn(e) {
961
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
962
+ var i = n[r];
963
963
  switch (i.stem) {
964
964
  case "percent":
965
965
  case "%":
@@ -981,7 +981,7 @@ function jr(e) {
981
981
  continue;
982
982
  case "measure-unit":
983
983
  case "unit":
984
- t.style = "unit", t.unit = Gr(i.options[0]);
984
+ t.style = "unit", t.unit = Gn(i.options[0]);
985
985
  continue;
986
986
  case "compact-short":
987
987
  case "K":
@@ -1043,7 +1043,7 @@ function jr(e) {
1043
1043
  case "integer-width":
1044
1044
  if (i.options.length > 1)
1045
1045
  throw new RangeError("integer-width stems only accept a single optional option");
1046
- i.options[0].replace(Fr, function(l, u, h, c, p, E) {
1046
+ i.options[0].replace(Fn, function(l, u, h, c, p, E) {
1047
1047
  if (u)
1048
1048
  t.minimumIntegerDigits = h.length;
1049
1049
  else {
@@ -1056,7 +1056,7 @@ function jr(e) {
1056
1056
  });
1057
1057
  continue;
1058
1058
  }
1059
- if (yn.test(i.stem)) {
1059
+ if (br.test(i.stem)) {
1060
1060
  t.minimumIntegerDigits = i.stem.length;
1061
1061
  continue;
1062
1062
  }
@@ -1070,13 +1070,13 @@ function jr(e) {
1070
1070
  s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Pt(s)));
1071
1071
  continue;
1072
1072
  }
1073
- if (bn.test(i.stem)) {
1073
+ if (pr.test(i.stem)) {
1074
1074
  t = O(O({}, t), Pt(i.stem));
1075
1075
  continue;
1076
1076
  }
1077
- var a = vn(i.stem);
1077
+ var a = yr(i.stem);
1078
1078
  a && (t = O(O({}, t), a));
1079
- var o = kr(i.stem);
1079
+ var o = kn(i.stem);
1080
1080
  o && (t = O(O({}, t), o));
1081
1081
  }
1082
1082
  return t;
@@ -2496,22 +2496,22 @@ var Ge = {
2496
2496
  "h"
2497
2497
  ]
2498
2498
  };
2499
- function Vr(e, t) {
2500
- for (var n = "", r = 0; r < e.length; r++) {
2501
- var i = e.charAt(r);
2499
+ function Vn(e, t) {
2500
+ for (var r = "", n = 0; n < e.length; n++) {
2501
+ var i = e.charAt(n);
2502
2502
  if (i === "j") {
2503
- for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2504
- s++, r++;
2505
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Xr(t);
2503
+ for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2504
+ s++, n++;
2505
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Xn(t);
2506
2506
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2507
- n += l;
2507
+ r += l;
2508
2508
  for (; a-- > 0; )
2509
- n = u + n;
2510
- } else i === "J" ? n += "H" : n += i;
2509
+ r = u + r;
2510
+ } else i === "J" ? r += "H" : r += i;
2511
2511
  }
2512
- return n;
2512
+ return r;
2513
2513
  }
2514
- function Xr(e) {
2514
+ function Xn(e) {
2515
2515
  var t = e.hourCycle;
2516
2516
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2517
2517
  e.hourCycles && // @ts-ignore
@@ -2528,73 +2528,73 @@ function Xr(e) {
2528
2528
  default:
2529
2529
  throw new Error("Invalid hourCycle");
2530
2530
  }
2531
- var n = e.language, r;
2532
- n !== "root" && (r = e.maximize().region);
2533
- var i = Ge[r || ""] || Ge[n || ""] || Ge["".concat(n, "-001")] || Ge["001"];
2531
+ var r = e.language, n;
2532
+ r !== "root" && (n = e.maximize().region);
2533
+ var i = Ge[n || ""] || Ge[r || ""] || Ge["".concat(r, "-001")] || Ge["001"];
2534
2534
  return i[0];
2535
2535
  }
2536
- var rt, Wr = new RegExp("^".concat(pn.source, "*")), zr = new RegExp("".concat(pn.source, "*$"));
2536
+ var nt, Wn = new RegExp("^".concat(gr.source, "*")), zn = new RegExp("".concat(gr.source, "*$"));
2537
2537
  function L(e, t) {
2538
2538
  return { start: e, end: t };
2539
2539
  }
2540
- var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zr = !!String.fromCodePoint, Jr = !!Object.fromEntries, Qr = !!String.prototype.codePointAt, qr = !!String.prototype.trimStart, Kr = !!String.prototype.trimEnd, ei = !!Number.isSafeInteger, ti = ei ? Number.isSafeInteger : function(e) {
2540
+ var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zn = !!String.fromCodePoint, Jn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, qn = !!String.prototype.trimStart, Kn = !!String.prototype.trimEnd, ei = !!Number.isSafeInteger, ti = ei ? Number.isSafeInteger : function(e) {
2541
2541
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2542
2542
  }, ct = !0;
2543
2543
  try {
2544
- var ni = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2545
- ct = ((rt = ni.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
2544
+ var ri = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2545
+ ct = ((nt = ri.exec("a")) === null || nt === void 0 ? void 0 : nt[0]) === "a";
2546
2546
  } catch (e) {
2547
2547
  ct = !1;
2548
2548
  }
2549
- var Ct = Yr ? (
2549
+ var Ct = Yn ? (
2550
2550
  // Native
2551
- function(t, n, r) {
2552
- return t.startsWith(n, r);
2551
+ function(t, r, n) {
2552
+ return t.startsWith(r, n);
2553
2553
  }
2554
2554
  ) : (
2555
2555
  // For IE11
2556
- function(t, n, r) {
2557
- return t.slice(r, r + n.length) === n;
2556
+ function(t, r, n) {
2557
+ return t.slice(n, n + r.length) === r;
2558
2558
  }
2559
- ), mt = Zr ? String.fromCodePoint : (
2559
+ ), mt = Zn ? String.fromCodePoint : (
2560
2560
  // IE11
2561
2561
  function() {
2562
- for (var t = [], n = 0; n < arguments.length; n++)
2563
- t[n] = arguments[n];
2564
- for (var r = "", i = t.length, s = 0, a; i > s; ) {
2562
+ for (var t = [], r = 0; r < arguments.length; r++)
2563
+ t[r] = arguments[r];
2564
+ for (var n = "", i = t.length, s = 0, a; i > s; ) {
2565
2565
  if (a = t[s++], a > 1114111)
2566
2566
  throw RangeError(a + " is not a valid code point");
2567
- r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2567
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2568
2568
  }
2569
- return r;
2569
+ return n;
2570
2570
  }
2571
2571
  ), It = (
2572
2572
  // native
2573
- Jr ? Object.fromEntries : (
2573
+ Jn ? Object.fromEntries : (
2574
2574
  // Ponyfill
2575
2575
  function(t) {
2576
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
2577
- var s = i[r], a = s[0], o = s[1];
2578
- n[a] = o;
2576
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2577
+ var s = i[n], a = s[0], o = s[1];
2578
+ r[a] = o;
2579
2579
  }
2580
- return n;
2580
+ return r;
2581
2581
  }
2582
2582
  )
2583
- ), xn = Qr ? (
2583
+ ), vr = Qn ? (
2584
2584
  // Native
2585
- function(t, n) {
2586
- return t.codePointAt(n);
2585
+ function(t, r) {
2586
+ return t.codePointAt(r);
2587
2587
  }
2588
2588
  ) : (
2589
2589
  // IE 11
2590
- function(t, n) {
2591
- var r = t.length;
2592
- if (!(n < 0 || n >= r)) {
2593
- var i = t.charCodeAt(n), s;
2594
- return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2590
+ function(t, r) {
2591
+ var n = t.length;
2592
+ if (!(r < 0 || r >= n)) {
2593
+ var i = t.charCodeAt(r), s;
2594
+ return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2595
2595
  }
2596
2596
  }
2597
- ), ri = qr ? (
2597
+ ), ni = qn ? (
2598
2598
  // Native
2599
2599
  function(t) {
2600
2600
  return t.trimStart();
@@ -2602,9 +2602,9 @@ var Ct = Yr ? (
2602
2602
  ) : (
2603
2603
  // Ponyfill
2604
2604
  function(t) {
2605
- return t.replace(Wr, "");
2605
+ return t.replace(Wn, "");
2606
2606
  }
2607
- ), ii = Kr ? (
2607
+ ), ii = Kn ? (
2608
2608
  // Native
2609
2609
  function(t) {
2610
2610
  return t.trimEnd();
@@ -2612,69 +2612,69 @@ var Ct = Yr ? (
2612
2612
  ) : (
2613
2613
  // Ponyfill
2614
2614
  function(t) {
2615
- return t.replace(zr, "");
2615
+ return t.replace(zn, "");
2616
2616
  }
2617
2617
  );
2618
- function En(e, t) {
2618
+ function xr(e, t) {
2619
2619
  return new RegExp(e, t);
2620
2620
  }
2621
2621
  var dt;
2622
2622
  if (ct) {
2623
- var Dt = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2624
- dt = function(t, n) {
2625
- var r;
2626
- Dt.lastIndex = n;
2623
+ var Dt = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2624
+ dt = function(t, r) {
2625
+ var n;
2626
+ Dt.lastIndex = r;
2627
2627
  var i = Dt.exec(t);
2628
- return (r = i[1]) !== null && r !== void 0 ? r : "";
2628
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2629
2629
  };
2630
2630
  } else
2631
- dt = function(t, n) {
2632
- for (var r = []; ; ) {
2633
- var i = xn(t, n);
2634
- if (i === void 0 || _n(i) || ui(i))
2631
+ dt = function(t, r) {
2632
+ for (var n = []; ; ) {
2633
+ var i = vr(t, r);
2634
+ if (i === void 0 || Er(i) || ui(i))
2635
2635
  break;
2636
- r.push(i), n += i >= 65536 ? 2 : 1;
2636
+ n.push(i), r += i >= 65536 ? 2 : 1;
2637
2637
  }
2638
- return mt.apply(void 0, r);
2638
+ return mt.apply(void 0, n);
2639
2639
  };
2640
2640
  var si = (
2641
2641
  /** @class */
2642
2642
  function() {
2643
- function e(t, n) {
2644
- n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2643
+ function e(t, r) {
2644
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2645
2645
  }
2646
2646
  return e.prototype.parse = function() {
2647
2647
  if (this.offset() !== 0)
2648
2648
  throw Error("parser can only be used once");
2649
2649
  return this.parseMessage(0, "", !1);
2650
- }, e.prototype.parseMessage = function(t, n, r) {
2650
+ }, e.prototype.parseMessage = function(t, r, n) {
2651
2651
  for (var i = []; !this.isEOF(); ) {
2652
2652
  var s = this.char();
2653
2653
  if (s === 123) {
2654
- var a = this.parseArgument(t, r);
2654
+ var a = this.parseArgument(t, n);
2655
2655
  if (a.err)
2656
2656
  return a;
2657
2657
  i.push(a.val);
2658
2658
  } else {
2659
2659
  if (s === 125 && t > 0)
2660
2660
  break;
2661
- if (s === 35 && (n === "plural" || n === "selectordinal")) {
2661
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
2662
2662
  var o = this.clonePosition();
2663
2663
  this.bump(), i.push({
2664
2664
  type: D.pound,
2665
2665
  location: L(o, this.clonePosition())
2666
2666
  });
2667
2667
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2668
- if (r)
2668
+ if (n)
2669
2669
  break;
2670
2670
  return this.error(M.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2671
2671
  } else if (s === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
2672
- var a = this.parseTag(t, n);
2672
+ var a = this.parseTag(t, r);
2673
2673
  if (a.err)
2674
2674
  return a;
2675
2675
  i.push(a.val);
2676
2676
  } else {
2677
- var a = this.parseLiteral(t, n);
2677
+ var a = this.parseLiteral(t, r);
2678
2678
  if (a.err)
2679
2679
  return a;
2680
2680
  i.push(a.val);
@@ -2682,8 +2682,8 @@ var si = (
2682
2682
  }
2683
2683
  }
2684
2684
  return { val: i, err: null };
2685
- }, e.prototype.parseTag = function(t, n) {
2686
- var r = this.clonePosition();
2685
+ }, e.prototype.parseTag = function(t, r) {
2686
+ var n = this.clonePosition();
2687
2687
  this.bump();
2688
2688
  var i = this.parseTagName();
2689
2689
  if (this.bumpSpace(), this.bumpIf("/>"))
@@ -2691,12 +2691,12 @@ var si = (
2691
2691
  val: {
2692
2692
  type: D.literal,
2693
2693
  value: "<".concat(i, "/>"),
2694
- location: L(r, this.clonePosition())
2694
+ location: L(n, this.clonePosition())
2695
2695
  },
2696
2696
  err: null
2697
2697
  };
2698
2698
  if (this.bumpIf(">")) {
2699
- var s = this.parseMessage(t + 1, n, !0);
2699
+ var s = this.parseMessage(t + 1, r, !0);
2700
2700
  if (s.err)
2701
2701
  return s;
2702
2702
  var a = s.val, o = this.clonePosition();
@@ -2709,27 +2709,27 @@ var si = (
2709
2709
  type: D.tag,
2710
2710
  value: i,
2711
2711
  children: a,
2712
- location: L(r, this.clonePosition())
2712
+ location: L(n, this.clonePosition())
2713
2713
  },
2714
2714
  err: null
2715
2715
  } : this.error(M.INVALID_TAG, L(o, this.clonePosition())));
2716
2716
  } else
2717
- return this.error(M.UNCLOSED_TAG, L(r, this.clonePosition()));
2717
+ return this.error(M.UNCLOSED_TAG, L(n, this.clonePosition()));
2718
2718
  } else
2719
- return this.error(M.INVALID_TAG, L(r, this.clonePosition()));
2719
+ return this.error(M.INVALID_TAG, L(n, this.clonePosition()));
2720
2720
  }, e.prototype.parseTagName = function() {
2721
2721
  var t = this.offset();
2722
2722
  for (this.bump(); !this.isEOF() && ai(this.char()); )
2723
2723
  this.bump();
2724
2724
  return this.message.slice(t, this.offset());
2725
- }, e.prototype.parseLiteral = function(t, n) {
2726
- for (var r = this.clonePosition(), i = ""; ; ) {
2727
- var s = this.tryParseQuote(n);
2725
+ }, e.prototype.parseLiteral = function(t, r) {
2726
+ for (var n = this.clonePosition(), i = ""; ; ) {
2727
+ var s = this.tryParseQuote(r);
2728
2728
  if (s) {
2729
2729
  i += s;
2730
2730
  continue;
2731
2731
  }
2732
- var a = this.tryParseUnquoted(t, n);
2732
+ var a = this.tryParseUnquoted(t, r);
2733
2733
  if (a) {
2734
2734
  i += a;
2735
2735
  continue;
@@ -2741,7 +2741,7 @@ var si = (
2741
2741
  }
2742
2742
  break;
2743
2743
  }
2744
- var l = L(r, this.clonePosition());
2744
+ var l = L(n, this.clonePosition());
2745
2745
  return {
2746
2746
  val: { type: D.literal, value: i, location: l },
2747
2747
  err: null
@@ -2768,37 +2768,37 @@ var si = (
2768
2768
  return null;
2769
2769
  }
2770
2770
  this.bump();
2771
- var n = [this.char()];
2771
+ var r = [this.char()];
2772
2772
  for (this.bump(); !this.isEOF(); ) {
2773
- var r = this.char();
2774
- if (r === 39)
2773
+ var n = this.char();
2774
+ if (n === 39)
2775
2775
  if (this.peek() === 39)
2776
- n.push(39), this.bump();
2776
+ r.push(39), this.bump();
2777
2777
  else {
2778
2778
  this.bump();
2779
2779
  break;
2780
2780
  }
2781
2781
  else
2782
- n.push(r);
2782
+ r.push(n);
2783
2783
  this.bump();
2784
2784
  }
2785
- return mt.apply(void 0, n);
2786
- }, e.prototype.tryParseUnquoted = function(t, n) {
2785
+ return mt.apply(void 0, r);
2786
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2787
2787
  if (this.isEOF())
2788
2788
  return null;
2789
- var r = this.char();
2790
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), mt(r));
2791
- }, e.prototype.parseArgument = function(t, n) {
2792
- var r = this.clonePosition();
2789
+ var n = this.char();
2790
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), mt(n));
2791
+ }, e.prototype.parseArgument = function(t, r) {
2792
+ var n = this.clonePosition();
2793
2793
  if (this.bump(), this.bumpSpace(), this.isEOF())
2794
- return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2794
+ return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition()));
2795
2795
  if (this.char() === 125)
2796
- return this.bump(), this.error(M.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2796
+ return this.bump(), this.error(M.EMPTY_ARGUMENT, L(n, this.clonePosition()));
2797
2797
  var i = this.parseIdentifierIfPossible().value;
2798
2798
  if (!i)
2799
- return this.error(M.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2799
+ return this.error(M.MALFORMED_ARGUMENT, L(n, this.clonePosition()));
2800
2800
  if (this.bumpSpace(), this.isEOF())
2801
- return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2801
+ return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition()));
2802
2802
  switch (this.char()) {
2803
2803
  case 125:
2804
2804
  return this.bump(), {
@@ -2806,21 +2806,21 @@ var si = (
2806
2806
  type: D.argument,
2807
2807
  // value does not include the opening and closing braces.
2808
2808
  value: i,
2809
- location: L(r, this.clonePosition())
2809
+ location: L(n, this.clonePosition())
2810
2810
  },
2811
2811
  err: null
2812
2812
  };
2813
2813
  case 44:
2814
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2814
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2815
2815
  default:
2816
- return this.error(M.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2816
+ return this.error(M.MALFORMED_ARGUMENT, L(n, this.clonePosition()));
2817
2817
  }
2818
2818
  }, e.prototype.parseIdentifierIfPossible = function() {
2819
- var t = this.clonePosition(), n = this.offset(), r = dt(this.message, n), i = n + r.length;
2819
+ var t = this.clonePosition(), r = this.offset(), n = dt(this.message, r), i = r + n.length;
2820
2820
  this.bumpTo(i);
2821
2821
  var s = this.clonePosition(), a = L(t, s);
2822
- return { value: r, location: a };
2823
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2822
+ return { value: n, location: a };
2823
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2824
2824
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2825
2825
  switch (o) {
2826
2826
  case "":
@@ -2846,26 +2846,26 @@ var si = (
2846
2846
  return w;
2847
2847
  var b = L(i, this.clonePosition());
2848
2848
  if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
2849
- var H = ri(u.style.slice(2));
2849
+ var H = ni(u.style.slice(2));
2850
2850
  if (o === "number") {
2851
2851
  var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
2852
2852
  return c.err ? c : {
2853
- val: { type: D.number, value: r, location: b, style: c.val },
2853
+ val: { type: D.number, value: n, location: b, style: c.val },
2854
2854
  err: null
2855
2855
  };
2856
2856
  } else {
2857
2857
  if (H.length === 0)
2858
2858
  return this.error(M.EXPECT_DATE_TIME_SKELETON, b);
2859
2859
  var P = H;
2860
- this.locale && (P = Vr(H, this.locale));
2860
+ this.locale && (P = Vn(H, this.locale));
2861
2861
  var p = {
2862
2862
  type: we.dateTime,
2863
2863
  pattern: P,
2864
2864
  location: u.styleLocation,
2865
- parsedOptions: this.shouldParseSkeletons ? Dr(P) : {}
2865
+ parsedOptions: this.shouldParseSkeletons ? Dn(P) : {}
2866
2866
  }, I = o === "date" ? D.date : D.time;
2867
2867
  return {
2868
- val: { type: I, value: r, location: b, style: p },
2868
+ val: { type: I, value: n, location: b, style: p },
2869
2869
  err: null
2870
2870
  };
2871
2871
  }
@@ -2873,7 +2873,7 @@ var si = (
2873
2873
  return {
2874
2874
  val: {
2875
2875
  type: o === "number" ? D.number : o === "date" ? D.date : D.time,
2876
- value: r,
2876
+ value: n,
2877
2877
  location: b,
2878
2878
  style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2879
2879
  },
@@ -2897,7 +2897,7 @@ var si = (
2897
2897
  return c;
2898
2898
  this.bumpSpace(), R = this.parseIdentifierIfPossible(), N = c.val;
2899
2899
  }
2900
- var F = this.tryParsePluralOrSelectOptions(t, o, n, R);
2900
+ var F = this.tryParsePluralOrSelectOptions(t, o, r, R);
2901
2901
  if (F.err)
2902
2902
  return F;
2903
2903
  var w = this.tryParseArgumentClose(i);
@@ -2907,7 +2907,7 @@ var si = (
2907
2907
  return o === "select" ? {
2908
2908
  val: {
2909
2909
  type: D.select,
2910
- value: r,
2910
+ value: n,
2911
2911
  options: It(F.val),
2912
2912
  location: G
2913
2913
  },
@@ -2915,7 +2915,7 @@ var si = (
2915
2915
  } : {
2916
2916
  val: {
2917
2917
  type: D.plural,
2918
- value: r,
2918
+ value: n,
2919
2919
  options: It(F.val),
2920
2920
  offset: N,
2921
2921
  pluralType: o === "plural" ? "cardinal" : "ordinal",
@@ -2930,9 +2930,9 @@ var si = (
2930
2930
  }, e.prototype.tryParseArgumentClose = function(t) {
2931
2931
  return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2932
2932
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2933
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2934
- var r = this.char();
2935
- switch (r) {
2933
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2934
+ var n = this.char();
2935
+ switch (n) {
2936
2936
  case 39: {
2937
2937
  this.bump();
2938
2938
  var i = this.clonePosition();
@@ -2950,7 +2950,7 @@ var si = (
2950
2950
  t -= 1;
2951
2951
  else
2952
2952
  return {
2953
- val: this.message.slice(n.offset, this.offset()),
2953
+ val: this.message.slice(r.offset, this.offset()),
2954
2954
  err: null
2955
2955
  };
2956
2956
  break;
@@ -2961,30 +2961,30 @@ var si = (
2961
2961
  }
2962
2962
  }
2963
2963
  return {
2964
- val: this.message.slice(n.offset, this.offset()),
2964
+ val: this.message.slice(r.offset, this.offset()),
2965
2965
  err: null
2966
2966
  };
2967
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2968
- var r = [];
2967
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2968
+ var n = [];
2969
2969
  try {
2970
- r = Ur(t);
2970
+ n = Un(t);
2971
2971
  } catch (i) {
2972
- return this.error(M.INVALID_NUMBER_SKELETON, n);
2972
+ return this.error(M.INVALID_NUMBER_SKELETON, r);
2973
2973
  }
2974
2974
  return {
2975
2975
  val: {
2976
2976
  type: we.number,
2977
- tokens: r,
2978
- location: n,
2979
- parsedOptions: this.shouldParseSkeletons ? jr(r) : {}
2977
+ tokens: n,
2978
+ location: r,
2979
+ parsedOptions: this.shouldParseSkeletons ? jn(n) : {}
2980
2980
  },
2981
2981
  err: null
2982
2982
  };
2983
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2983
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2984
2984
  for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2985
2985
  if (u.length === 0) {
2986
2986
  var c = this.clonePosition();
2987
- if (n !== "select" && this.bumpIf("=")) {
2987
+ if (r !== "select" && this.bumpIf("=")) {
2988
2988
  var p = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
2989
2989
  if (p.err)
2990
2990
  return p;
@@ -2993,12 +2993,12 @@ var si = (
2993
2993
  break;
2994
2994
  }
2995
2995
  if (l.has(u))
2996
- return this.error(n === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2996
+ return this.error(r === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2997
2997
  u === "other" && (a = !0), this.bumpSpace();
2998
2998
  var E = this.clonePosition();
2999
2999
  if (!this.bumpIf("{"))
3000
- return this.error(n === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3001
- var w = this.parseMessage(t + 1, n, r);
3000
+ return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3001
+ var w = this.parseMessage(t + 1, r, n);
3002
3002
  if (w.err)
3003
3003
  return w;
3004
3004
  var b = this.tryParseArgumentClose(E);
@@ -3012,10 +3012,10 @@ var si = (
3012
3012
  }
3013
3013
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3014
3014
  }
3015
- return o.length === 0 ? this.error(n === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3016
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3017
- var r = 1, i = this.clonePosition();
3018
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3015
+ return o.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3016
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3017
+ var n = 1, i = this.clonePosition();
3018
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3019
3019
  for (var s = !1, a = 0; !this.isEOF(); ) {
3020
3020
  var o = this.char();
3021
3021
  if (o >= 48 && o <= 57)
@@ -3024,7 +3024,7 @@ var si = (
3024
3024
  break;
3025
3025
  }
3026
3026
  var l = L(i, this.clonePosition());
3027
- return s ? (a *= r, ti(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3027
+ return s ? (a *= n, ti(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3028
3028
  }, e.prototype.offset = function() {
3029
3029
  return this.position.offset;
3030
3030
  }, e.prototype.isEOF = function() {
@@ -3039,17 +3039,17 @@ var si = (
3039
3039
  var t = this.position.offset;
3040
3040
  if (t >= this.message.length)
3041
3041
  throw Error("out of bound");
3042
- var n = xn(this.message, t);
3043
- if (n === void 0)
3042
+ var r = vr(this.message, t);
3043
+ if (r === void 0)
3044
3044
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3045
- return n;
3046
- }, e.prototype.error = function(t, n) {
3045
+ return r;
3046
+ }, e.prototype.error = function(t, r) {
3047
3047
  return {
3048
3048
  val: null,
3049
3049
  err: {
3050
3050
  kind: t,
3051
3051
  message: this.message,
3052
- location: n
3052
+ location: r
3053
3053
  }
3054
3054
  };
3055
3055
  }, e.prototype.bump = function() {
@@ -3059,34 +3059,34 @@ var si = (
3059
3059
  }
3060
3060
  }, e.prototype.bumpIf = function(t) {
3061
3061
  if (Ct(this.message, t, this.offset())) {
3062
- for (var n = 0; n < t.length; n++)
3062
+ for (var r = 0; r < t.length; r++)
3063
3063
  this.bump();
3064
3064
  return !0;
3065
3065
  }
3066
3066
  return !1;
3067
3067
  }, e.prototype.bumpUntil = function(t) {
3068
- var n = this.offset(), r = this.message.indexOf(t, n);
3069
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3068
+ var r = this.offset(), n = this.message.indexOf(t, r);
3069
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3070
3070
  }, e.prototype.bumpTo = function(t) {
3071
3071
  if (this.offset() > t)
3072
3072
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3073
3073
  for (t = Math.min(t, this.message.length); ; ) {
3074
- var n = this.offset();
3075
- if (n === t)
3074
+ var r = this.offset();
3075
+ if (r === t)
3076
3076
  break;
3077
- if (n > t)
3077
+ if (r > t)
3078
3078
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3079
3079
  if (this.bump(), this.isEOF())
3080
3080
  break;
3081
3081
  }
3082
3082
  }, e.prototype.bumpSpace = function() {
3083
- for (; !this.isEOF() && _n(this.char()); )
3083
+ for (; !this.isEOF() && Er(this.char()); )
3084
3084
  this.bump();
3085
3085
  }, e.prototype.peek = function() {
3086
3086
  if (this.isEOF())
3087
3087
  return null;
3088
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3089
- return r != null ? r : null;
3088
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3089
+ return n != null ? n : null;
3090
3090
  }, e;
3091
3091
  }()
3092
3092
  );
@@ -3099,7 +3099,7 @@ function oi(e) {
3099
3099
  function ai(e) {
3100
3100
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3101
3101
  }
3102
- function _n(e) {
3102
+ function Er(e) {
3103
3103
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3104
3104
  }
3105
3105
  function ui(e) {
@@ -3107,20 +3107,20 @@ function ui(e) {
3107
3107
  }
3108
3108
  function pt(e) {
3109
3109
  e.forEach(function(t) {
3110
- if (delete t.location, cn(t) || mn(t))
3111
- for (var n in t.options)
3112
- delete t.options[n].location, pt(t.options[n].value);
3113
- else ln(t) && gn(t.style) || (hn(t) || fn(t)) && ft(t.style) ? delete t.style.location : dn(t) && pt(t.children);
3110
+ if (delete t.location, fr(t) || cr(t))
3111
+ for (var r in t.options)
3112
+ delete t.options[r].location, pt(t.options[r].value);
3113
+ else ur(t) && dr(t.style) || (lr(t) || hr(t)) && ft(t.style) ? delete t.style.location : mr(t) && pt(t.children);
3114
3114
  });
3115
3115
  }
3116
3116
  function li(e, t) {
3117
3117
  t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3118
- var n = new si(e, t).parse();
3119
- if (n.err) {
3120
- var r = SyntaxError(M[n.err.kind]);
3121
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3118
+ var r = new si(e, t).parse();
3119
+ if (r.err) {
3120
+ var n = SyntaxError(M[r.err.kind]);
3121
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3122
3122
  }
3123
- return t != null && t.captureLocation || pt(n.val), n.val;
3123
+ return t != null && t.captureLocation || pt(r.val), r.val;
3124
3124
  }
3125
3125
  var Se;
3126
3126
  (function(e) {
@@ -3130,9 +3130,9 @@ var Ze = (
3130
3130
  /** @class */
3131
3131
  function(e) {
3132
3132
  Ye(t, e);
3133
- function t(n, r, i) {
3134
- var s = e.call(this, n) || this;
3135
- return s.code = r, s.originalMessage = i, s;
3133
+ function t(r, n, i) {
3134
+ var s = e.call(this, r) || this;
3135
+ return s.code = n, s.originalMessage = i, s;
3136
3136
  }
3137
3137
  return t.prototype.toString = function() {
3138
3138
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3142,8 +3142,8 @@ var Ze = (
3142
3142
  /** @class */
3143
3143
  function(e) {
3144
3144
  Ye(t, e);
3145
- function t(n, r, i, s) {
3146
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Se.INVALID_VALUE, s) || this;
3145
+ function t(r, n, i, s) {
3146
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Se.INVALID_VALUE, s) || this;
3147
3147
  }
3148
3148
  return t;
3149
3149
  }(Ze)
@@ -3151,8 +3151,8 @@ var Ze = (
3151
3151
  /** @class */
3152
3152
  function(e) {
3153
3153
  Ye(t, e);
3154
- function t(n, r, i) {
3155
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Se.INVALID_VALUE, i) || this;
3154
+ function t(r, n, i) {
3155
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Se.INVALID_VALUE, i) || this;
3156
3156
  }
3157
3157
  return t;
3158
3158
  }(Ze)
@@ -3160,8 +3160,8 @@ var Ze = (
3160
3160
  /** @class */
3161
3161
  function(e) {
3162
3162
  Ye(t, e);
3163
- function t(n, r) {
3164
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Se.MISSING_VALUE, r) || this;
3163
+ function t(r, n) {
3164
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Se.MISSING_VALUE, n) || this;
3165
3165
  }
3166
3166
  return t;
3167
3167
  }(Ze)
@@ -3170,15 +3170,15 @@ var Ze = (
3170
3170
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3171
3171
  })(Q || (Q = {}));
3172
3172
  function ci(e) {
3173
- return e.length < 2 ? e : e.reduce(function(t, n) {
3174
- var r = t[t.length - 1];
3175
- return !r || r.type !== Q.literal || n.type !== Q.literal ? t.push(n) : r.value += n.value, t;
3173
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3174
+ var n = t[t.length - 1];
3175
+ return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
3176
3176
  }, []);
3177
3177
  }
3178
3178
  function mi(e) {
3179
3179
  return typeof e == "function";
3180
3180
  }
3181
- function ke(e, t, n, r, i, s, a) {
3181
+ function ke(e, t, r, n, i, s, a) {
3182
3182
  if (e.length === 1 && $t(e[0]))
3183
3183
  return [
3184
3184
  {
@@ -3195,10 +3195,10 @@ function ke(e, t, n, r, i, s, a) {
3195
3195
  });
3196
3196
  continue;
3197
3197
  }
3198
- if (Cr(h)) {
3198
+ if (Cn(h)) {
3199
3199
  typeof s == "number" && o.push({
3200
3200
  type: Q.literal,
3201
- value: n.getNumberFormat(t).format(s)
3201
+ value: r.getNumberFormat(t).format(s)
3202
3202
  });
3203
3203
  continue;
3204
3204
  }
@@ -3206,42 +3206,42 @@ function ke(e, t, n, r, i, s, a) {
3206
3206
  if (!(i && c in i))
3207
3207
  throw new fi(c, a);
3208
3208
  var p = i[c];
3209
- if (Nr(h)) {
3209
+ if (Nn(h)) {
3210
3210
  (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), o.push({
3211
3211
  type: typeof p == "string" ? Q.literal : Q.object,
3212
3212
  value: p
3213
3213
  });
3214
3214
  continue;
3215
3215
  }
3216
- if (hn(h)) {
3217
- var E = typeof h.style == "string" ? r.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
3216
+ if (lr(h)) {
3217
+ var E = typeof h.style == "string" ? n.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
3218
3218
  o.push({
3219
3219
  type: Q.literal,
3220
- value: n.getDateTimeFormat(t, E).format(p)
3220
+ value: r.getDateTimeFormat(t, E).format(p)
3221
3221
  });
3222
3222
  continue;
3223
3223
  }
3224
- if (fn(h)) {
3225
- var E = typeof h.style == "string" ? r.time[h.style] : ft(h.style) ? h.style.parsedOptions : r.time.medium;
3224
+ if (hr(h)) {
3225
+ var E = typeof h.style == "string" ? n.time[h.style] : ft(h.style) ? h.style.parsedOptions : n.time.medium;
3226
3226
  o.push({
3227
3227
  type: Q.literal,
3228
- value: n.getDateTimeFormat(t, E).format(p)
3228
+ value: r.getDateTimeFormat(t, E).format(p)
3229
3229
  });
3230
3230
  continue;
3231
3231
  }
3232
- if (ln(h)) {
3233
- var E = typeof h.style == "string" ? r.number[h.style] : gn(h.style) ? h.style.parsedOptions : void 0;
3232
+ if (ur(h)) {
3233
+ var E = typeof h.style == "string" ? n.number[h.style] : dr(h.style) ? h.style.parsedOptions : void 0;
3234
3234
  E && E.scale && (p = p * (E.scale || 1)), o.push({
3235
3235
  type: Q.literal,
3236
- value: n.getNumberFormat(t, E).format(p)
3236
+ value: r.getNumberFormat(t, E).format(p)
3237
3237
  });
3238
3238
  continue;
3239
3239
  }
3240
- if (dn(h)) {
3240
+ if (mr(h)) {
3241
3241
  var w = h.children, b = h.value, H = i[b];
3242
3242
  if (!mi(H))
3243
3243
  throw new hi(b, "function", a);
3244
- var P = ke(w, t, n, r, i, s), I = H(P.map(function(N) {
3244
+ var P = ke(w, t, r, n, i, s), I = H(P.map(function(N) {
3245
3245
  return N.value;
3246
3246
  }));
3247
3247
  Array.isArray(I) || (I = [I]), o.push.apply(o, I.map(function(N) {
@@ -3251,39 +3251,39 @@ function ke(e, t, n, r, i, s, a) {
3251
3251
  };
3252
3252
  }));
3253
3253
  }
3254
- if (cn(h)) {
3254
+ if (fr(h)) {
3255
3255
  var A = h.options[p] || h.options.other;
3256
3256
  if (!A)
3257
3257
  throw new Rt(h.value, p, Object.keys(h.options), a);
3258
- o.push.apply(o, ke(A.value, t, n, r, i));
3258
+ o.push.apply(o, ke(A.value, t, r, n, i));
3259
3259
  continue;
3260
3260
  }
3261
- if (mn(h)) {
3261
+ if (cr(h)) {
3262
3262
  var A = h.options["=".concat(p)];
3263
3263
  if (!A) {
3264
3264
  if (!Intl.PluralRules)
3265
3265
  throw new Ze(`Intl.PluralRules is not available in this environment.
3266
3266
  Try polyfilling it using "@formatjs/intl-pluralrules"
3267
3267
  `, Se.MISSING_INTL_API, a);
3268
- var R = n.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
3268
+ var R = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
3269
3269
  A = h.options[R] || h.options.other;
3270
3270
  }
3271
3271
  if (!A)
3272
3272
  throw new Rt(h.value, p, Object.keys(h.options), a);
3273
- o.push.apply(o, ke(A.value, t, n, r, i, p - (h.offset || 0)));
3273
+ o.push.apply(o, ke(A.value, t, r, n, i, p - (h.offset || 0)));
3274
3274
  continue;
3275
3275
  }
3276
3276
  }
3277
3277
  return ci(o);
3278
3278
  }
3279
3279
  function di(e, t) {
3280
- return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3281
- return n[r] = O(O({}, e[r]), t[r] || {}), n;
3280
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3281
+ return r[n] = O(O({}, e[n]), t[n] || {}), r;
3282
3282
  }, {})) : e;
3283
3283
  }
3284
3284
  function gi(e, t) {
3285
- return t ? Object.keys(e).reduce(function(n, r) {
3286
- return n[r] = di(e[r], t[r]), n;
3285
+ return t ? Object.keys(e).reduce(function(r, n) {
3286
+ return r[n] = di(e[n], t[n]), r;
3287
3287
  }, O({}, e)) : e;
3288
3288
  }
3289
3289
  function it(e) {
@@ -3293,8 +3293,8 @@ function it(e) {
3293
3293
  get: function(t) {
3294
3294
  return e[t];
3295
3295
  },
3296
- set: function(t, n) {
3297
- e[t] = n;
3296
+ set: function(t, r) {
3297
+ e[t] = r;
3298
3298
  }
3299
3299
  };
3300
3300
  }
@@ -3307,36 +3307,36 @@ function pi(e) {
3307
3307
  pluralRules: {}
3308
3308
  }), {
3309
3309
  getNumberFormat: tt(function() {
3310
- for (var t, n = [], r = 0; r < arguments.length; r++)
3311
- n[r] = arguments[r];
3312
- return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], n, !1)))();
3310
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3311
+ r[n] = arguments[n];
3312
+ return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], r, !1)))();
3313
3313
  }, {
3314
3314
  cache: it(e.number),
3315
- strategy: nt.variadic
3315
+ strategy: rt.variadic
3316
3316
  }),
3317
3317
  getDateTimeFormat: tt(function() {
3318
- for (var t, n = [], r = 0; r < arguments.length; r++)
3319
- n[r] = arguments[r];
3320
- return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], n, !1)))();
3318
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3319
+ r[n] = arguments[n];
3320
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], r, !1)))();
3321
3321
  }, {
3322
3322
  cache: it(e.dateTime),
3323
- strategy: nt.variadic
3323
+ strategy: rt.variadic
3324
3324
  }),
3325
3325
  getPluralRules: tt(function() {
3326
- for (var t, n = [], r = 0; r < arguments.length; r++)
3327
- n[r] = arguments[r];
3328
- return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], n, !1)))();
3326
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3327
+ r[n] = arguments[n];
3328
+ return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], r, !1)))();
3329
3329
  }, {
3330
3330
  cache: it(e.pluralRules),
3331
- strategy: nt.variadic
3331
+ strategy: rt.variadic
3332
3332
  })
3333
3333
  };
3334
3334
  }
3335
- var wn = (
3335
+ var _r = (
3336
3336
  /** @class */
3337
3337
  function() {
3338
- function e(t, n, r, i) {
3339
- n === void 0 && (n = e.defaultLocale);
3338
+ function e(t, r, n, i) {
3339
+ r === void 0 && (r = e.defaultLocale);
3340
3340
  var s = this;
3341
3341
  if (this.formatterCache = {
3342
3342
  number: {},
@@ -3359,18 +3359,18 @@ var wn = (
3359
3359
  };
3360
3360
  }, this.getAst = function() {
3361
3361
  return s.ast;
3362
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3362
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3363
3363
  if (this.message = t, !e.__parse)
3364
3364
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3365
3365
  var a = i || {};
3366
3366
  a.formatters;
3367
- var o = Hr(a, ["formatters"]);
3367
+ var o = Hn(a, ["formatters"]);
3368
3368
  this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3369
3369
  } else
3370
3370
  this.ast = t;
3371
3371
  if (!Array.isArray(this.ast))
3372
3372
  throw new TypeError("A message must be provided as a String or AST.");
3373
- this.formats = gi(e.formats, r), this.formatters = i && i.formatters || pi(this.formatterCache);
3373
+ this.formats = gi(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
3374
3374
  }
3375
3375
  return Object.defineProperty(e, "defaultLocale", {
3376
3376
  get: function() {
@@ -3380,8 +3380,8 @@ var wn = (
3380
3380
  configurable: !0
3381
3381
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3382
3382
  if (typeof Intl.Locale != "undefined") {
3383
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3384
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3383
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3384
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3385
3385
  }
3386
3386
  }, e.__parse = li, e.formats = {
3387
3387
  number: {
@@ -3449,30 +3449,30 @@ function bi(e, t) {
3449
3449
  return;
3450
3450
  if (t in e)
3451
3451
  return e[t];
3452
- const n = t.split(".");
3453
- let r = e;
3454
- for (let i = 0; i < n.length; i++)
3455
- if (typeof r == "object") {
3452
+ const r = t.split(".");
3453
+ let n = e;
3454
+ for (let i = 0; i < r.length; i++)
3455
+ if (typeof n == "object") {
3456
3456
  if (i > 0) {
3457
- const s = n.slice(i, n.length).join(".");
3458
- if (s in r) {
3459
- r = r[s];
3457
+ const s = r.slice(i, r.length).join(".");
3458
+ if (s in n) {
3459
+ n = n[s];
3460
3460
  break;
3461
3461
  }
3462
3462
  }
3463
- r = r[n[i]];
3463
+ n = n[r[i]];
3464
3464
  } else
3465
- r = void 0;
3466
- return r;
3465
+ n = void 0;
3466
+ return n;
3467
3467
  }
3468
- const ce = {}, yi = (e, t, n) => n && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = n), n), Sn = (e, t) => {
3468
+ const ce = {}, yi = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), wr = (e, t) => {
3469
3469
  if (t == null)
3470
3470
  return;
3471
3471
  if (t in ce && e in ce[t])
3472
3472
  return ce[t][e];
3473
- const n = Ie(t);
3474
- for (let r = 0; r < n.length; r++) {
3475
- const i = n[r], s = xi(i, e);
3473
+ const r = Ie(t);
3474
+ for (let n = 0; n < r.length; n++) {
3475
+ const i = r[n], s = xi(i, e);
3476
3476
  if (s)
3477
3477
  return yi(e, t, s);
3478
3478
  }
@@ -3482,27 +3482,27 @@ const Ce = ze({});
3482
3482
  function vi(e) {
3483
3483
  return xt[e] || null;
3484
3484
  }
3485
- function Tn(e) {
3485
+ function Sr(e) {
3486
3486
  return e in xt;
3487
3487
  }
3488
3488
  function xi(e, t) {
3489
- if (!Tn(e))
3489
+ if (!Sr(e))
3490
3490
  return null;
3491
- const n = vi(e);
3492
- return bi(n, t);
3491
+ const r = vi(e);
3492
+ return bi(r, t);
3493
3493
  }
3494
3494
  function Ei(e) {
3495
3495
  if (e == null)
3496
3496
  return;
3497
3497
  const t = Ie(e);
3498
- for (let n = 0; n < t.length; n++) {
3499
- const r = t[n];
3500
- if (Tn(r))
3501
- return r;
3498
+ for (let r = 0; r < t.length; r++) {
3499
+ const n = t[r];
3500
+ if (Sr(n))
3501
+ return n;
3502
3502
  }
3503
3503
  }
3504
- function Hn(e, ...t) {
3505
- delete ce[e], Ce.update((n) => (n[e] = Tr.all([n[e] || {}, ...t]), n));
3504
+ function Tr(e, ...t) {
3505
+ delete ce[e], Ce.update((r) => (r[e] = Tn.all([r[e] || {}, ...t]), r));
3506
3506
  }
3507
3507
  Me(
3508
3508
  [Ce],
@@ -3513,51 +3513,51 @@ const je = {};
3513
3513
  function _i(e, t) {
3514
3514
  je[e].delete(t), je[e].size === 0 && delete je[e];
3515
3515
  }
3516
- function Mn(e) {
3516
+ function Hr(e) {
3517
3517
  return je[e];
3518
3518
  }
3519
3519
  function wi(e) {
3520
3520
  return Ie(e).map((t) => {
3521
- const n = Mn(t);
3522
- return [t, n ? [...n] : []];
3521
+ const r = Hr(t);
3522
+ return [t, r ? [...r] : []];
3523
3523
  }).filter(([, t]) => t.length > 0);
3524
3524
  }
3525
3525
  function Ve(e) {
3526
3526
  return e == null ? !1 : Ie(e).some(
3527
3527
  (t) => {
3528
- var n;
3529
- return (n = Mn(t)) == null ? void 0 : n.size;
3528
+ var r;
3529
+ return (r = Hr(t)) == null ? void 0 : r.size;
3530
3530
  }
3531
3531
  );
3532
3532
  }
3533
3533
  function Si(e, t) {
3534
3534
  return Promise.all(
3535
- t.map((r) => (_i(e, r), r().then((i) => i.default || i)))
3536
- ).then((r) => Hn(e, ...r));
3535
+ t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
3536
+ ).then((n) => Tr(e, ...n));
3537
3537
  }
3538
3538
  const Ae = {};
3539
- function Ln(e) {
3539
+ function Mr(e) {
3540
3540
  if (!Ve(e))
3541
3541
  return e in Ae ? Ae[e] : Promise.resolve();
3542
3542
  const t = wi(e);
3543
3543
  return Ae[e] = Promise.all(
3544
3544
  t.map(
3545
- ([n, r]) => Si(n, r)
3545
+ ([r, n]) => Si(r, n)
3546
3546
  )
3547
3547
  ).then(() => {
3548
3548
  if (Ve(e))
3549
- return Ln(e);
3549
+ return Mr(e);
3550
3550
  delete Ae[e];
3551
3551
  }), Ae[e];
3552
3552
  }
3553
3553
  var Ut = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Mi = (e, t) => {
3554
- var n = {};
3555
- for (var r in e)
3556
- Ti.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3554
+ var r = {};
3555
+ for (var n in e)
3556
+ Ti.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3557
3557
  if (e != null && Ut)
3558
- for (var r of Ut(e))
3559
- t.indexOf(r) < 0 && Hi.call(e, r) && (n[r] = e[r]);
3560
- return n;
3558
+ for (var n of Ut(e))
3559
+ t.indexOf(n) < 0 && Hi.call(e, n) && (r[n] = e[n]);
3560
+ return r;
3561
3561
  };
3562
3562
  const Li = {
3563
3563
  number: {
@@ -3610,37 +3610,37 @@ function Te() {
3610
3610
  return Oe;
3611
3611
  }
3612
3612
  function $i(e) {
3613
- const t = e, { formats: n } = t, r = Mi(t, ["formats"]);
3613
+ const t = e, { formats: r } = t, n = Mi(t, ["formats"]);
3614
3614
  let i = e.fallbackLocale;
3615
3615
  if (e.initialLocale)
3616
3616
  try {
3617
- wn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3617
+ _r.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3618
3618
  } catch (s) {
3619
3619
  console.warn(
3620
3620
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3621
3621
  );
3622
3622
  }
3623
- return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Ai : console.warn(
3623
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Ai : console.warn(
3624
3624
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3625
- )), Object.assign(Oe, r, { initialLocale: i }), n && ("number" in n && Object.assign(Oe.formats.number, n.number), "date" in n && Object.assign(Oe.formats.date, n.date), "time" in n && Object.assign(Oe.formats.time, n.time)), pe.set(i);
3625
+ )), Object.assign(Oe, n, { initialLocale: i }), r && ("number" in r && Object.assign(Oe.formats.number, r.number), "date" in r && Object.assign(Oe.formats.date, r.date), "time" in r && Object.assign(Oe.formats.time, r.time)), pe.set(i);
3626
3626
  }
3627
3627
  const st = ze(!1);
3628
- var Bi = Object.defineProperty, Pi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Di = (e, t) => {
3629
- for (var n in t || (t = {}))
3630
- Ci.call(t, n) && Ft(e, n, t[n]);
3628
+ var Bi = Object.defineProperty, Pi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, Ft = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
3629
+ for (var r in t || (t = {}))
3630
+ Ci.call(t, r) && Ft(e, r, t[r]);
3631
3631
  if (Gt)
3632
- for (var n of Gt(t))
3633
- Ii.call(t, n) && Ft(e, n, t[n]);
3632
+ for (var r of Gt(t))
3633
+ Ii.call(t, r) && Ft(e, r, t[r]);
3634
3634
  return e;
3635
3635
  }, Ri = (e, t) => Pi(e, Ni(t));
3636
3636
  let bt;
3637
3637
  const Xe = ze(null);
3638
3638
  function kt(e) {
3639
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3639
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3640
3640
  }
3641
3641
  function Ie(e, t = Te().fallbackLocale) {
3642
- const n = kt(e);
3643
- return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
3642
+ const r = kt(e);
3643
+ return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
3644
3644
  }
3645
3645
  function me() {
3646
3646
  return bt != null ? bt : void 0;
@@ -3651,14 +3651,14 @@ Xe.subscribe((e) => {
3651
3651
  const Ui = (e) => {
3652
3652
  if (e && Ei(e) && Ve(e)) {
3653
3653
  const { loadingDelay: t } = Te();
3654
- let n;
3655
- return typeof window != "undefined" && me() != null && t ? n = window.setTimeout(
3654
+ let r;
3655
+ return typeof window != "undefined" && me() != null && t ? r = window.setTimeout(
3656
3656
  () => st.set(!0),
3657
3657
  t
3658
- ) : st.set(!0), Ln(e).then(() => {
3658
+ ) : st.set(!0), Mr(e).then(() => {
3659
3659
  Xe.set(e);
3660
3660
  }).finally(() => {
3661
- clearTimeout(n), st.set(!1);
3661
+ clearTimeout(r), st.set(!1);
3662
3662
  });
3663
3663
  }
3664
3664
  return Xe.set(e);
@@ -3666,83 +3666,83 @@ const Ui = (e) => {
3666
3666
  set: Ui
3667
3667
  }), Je = (e) => {
3668
3668
  const t = /* @__PURE__ */ Object.create(null);
3669
- return (r) => {
3670
- const i = JSON.stringify(r);
3671
- return i in t ? t[i] : t[i] = e(r);
3669
+ return (n) => {
3670
+ const i = JSON.stringify(n);
3671
+ return i in t ? t[i] : t[i] = e(n);
3672
3672
  };
3673
3673
  };
3674
- var Gi = Object.defineProperty, We = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable, jt = (e, t, n) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Et = (e, t) => {
3675
- for (var n in t || (t = {}))
3676
- An.call(t, n) && jt(e, n, t[n]);
3674
+ var Gi = Object.defineProperty, We = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
3675
+ for (var r in t || (t = {}))
3676
+ Lr.call(t, r) && jt(e, r, t[r]);
3677
3677
  if (We)
3678
- for (var n of We(t))
3679
- On.call(t, n) && jt(e, n, t[n]);
3678
+ for (var r of We(t))
3679
+ Ar.call(t, r) && jt(e, r, t[r]);
3680
3680
  return e;
3681
3681
  }, Le = (e, t) => {
3682
- var n = {};
3683
- for (var r in e)
3684
- An.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3682
+ var r = {};
3683
+ for (var n in e)
3684
+ Lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3685
3685
  if (e != null && We)
3686
- for (var r of We(e))
3687
- t.indexOf(r) < 0 && On.call(e, r) && (n[r] = e[r]);
3688
- return n;
3686
+ for (var n of We(e))
3687
+ t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
3688
+ return r;
3689
3689
  };
3690
3690
  const Ne = (e, t) => {
3691
- const { formats: n } = Te();
3692
- if (e in n && t in n[e])
3693
- return n[e][t];
3691
+ const { formats: r } = Te();
3692
+ if (e in r && t in r[e])
3693
+ return r[e][t];
3694
3694
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3695
3695
  }, Fi = Je(
3696
3696
  (e) => {
3697
- var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3698
- if (n == null)
3697
+ var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
3698
+ if (r == null)
3699
3699
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3700
- return r && (i = Ne("number", r)), new Intl.NumberFormat(n, i);
3700
+ return n && (i = Ne("number", n)), new Intl.NumberFormat(r, i);
3701
3701
  }
3702
3702
  ), ki = Je(
3703
3703
  (e) => {
3704
- var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3705
- if (n == null)
3704
+ var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
3705
+ if (r == null)
3706
3706
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3707
- return r ? i = Ne("date", r) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(n, i);
3707
+ return n ? i = Ne("date", n) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(r, i);
3708
3708
  }
3709
3709
  ), ji = Je(
3710
3710
  (e) => {
3711
- var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3712
- if (n == null)
3711
+ var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
3712
+ if (r == null)
3713
3713
  throw new Error(
3714
3714
  '[svelte-i18n] A "locale" must be set to format time values'
3715
3715
  );
3716
- return r ? i = Ne("time", r) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(n, i);
3716
+ return n ? i = Ne("time", n) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(r, i);
3717
3717
  }
3718
3718
  ), Vi = (e = {}) => {
3719
3719
  var t = e, {
3720
- locale: n = me()
3721
- } = t, r = Le(t, [
3720
+ locale: r = me()
3721
+ } = t, n = Le(t, [
3722
3722
  "locale"
3723
3723
  ]);
3724
- return Fi(Et({ locale: n }, r));
3724
+ return Fi(Et({ locale: r }, n));
3725
3725
  }, Xi = (e = {}) => {
3726
3726
  var t = e, {
3727
- locale: n = me()
3728
- } = t, r = Le(t, [
3727
+ locale: r = me()
3728
+ } = t, n = Le(t, [
3729
3729
  "locale"
3730
3730
  ]);
3731
- return ki(Et({ locale: n }, r));
3731
+ return ki(Et({ locale: r }, n));
3732
3732
  }, Wi = (e = {}) => {
3733
3733
  var t = e, {
3734
- locale: n = me()
3735
- } = t, r = Le(t, [
3734
+ locale: r = me()
3735
+ } = t, n = Le(t, [
3736
3736
  "locale"
3737
3737
  ]);
3738
- return ji(Et({ locale: n }, r));
3738
+ return ji(Et({ locale: r }, n));
3739
3739
  }, zi = Je(
3740
3740
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3741
- (e, t = me()) => new wn(e, t, Te().formats, {
3741
+ (e, t = me()) => new _r(e, t, Te().formats, {
3742
3742
  ignoreTag: Te().ignoreTag
3743
3743
  })
3744
3744
  ), Yi = (e, t = {}) => {
3745
- var n, r, i, s;
3745
+ var r, n, i, s;
3746
3746
  let a = t;
3747
3747
  typeof e == "object" && (a = e, e = a.id);
3748
3748
  const {
@@ -3754,9 +3754,9 @@ const Ne = (e, t) => {
3754
3754
  throw new Error(
3755
3755
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3756
3756
  );
3757
- let h = Sn(e, l);
3757
+ let h = wr(e, l);
3758
3758
  if (!h)
3759
- h = (s = (i = (r = (n = Te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3759
+ h = (s = (i = (n = (r = Te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3760
3760
  else if (typeof h != "string")
3761
3761
  return console.warn(
3762
3762
  `[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.`
@@ -3773,13 +3773,13 @@ const Ne = (e, t) => {
3773
3773
  );
3774
3774
  }
3775
3775
  return c;
3776
- }, Zi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Qi = (e, t) => Vi(t).format(e), qi = (e, t = me()) => Sn(e, t), Ki = Me([pe, Ce], () => Yi);
3776
+ }, Zi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Qi = (e, t) => Vi(t).format(e), qi = (e, t = me()) => wr(e, t), Ki = Me([pe, Ce], () => Yi);
3777
3777
  Me([pe], () => Zi);
3778
3778
  Me([pe], () => Ji);
3779
3779
  Me([pe], () => Qi);
3780
3780
  Me([pe, Ce], () => qi);
3781
3781
  function Vt(e, t) {
3782
- Hn(e, t);
3782
+ Tr(e, t);
3783
3783
  }
3784
3784
  function es(e) {
3785
3785
  $i({
@@ -3816,12 +3816,12 @@ const Xt = {
3816
3816
  showLess: "SHOW LESS"
3817
3817
  }
3818
3818
  };
3819
- var $n = { exports: {} };
3819
+ var Or = { exports: {} };
3820
3820
  (function(e, t) {
3821
- (function(n, r) {
3822
- e.exports = r();
3823
- })(sn, function() {
3824
- var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", l = "hour", u = "day", h = "week", c = "month", p = "quarter", E = "year", w = "date", b = "Invalid Date", H = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
3821
+ (function(r, n) {
3822
+ e.exports = n();
3823
+ })(ir, function() {
3824
+ var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", l = "hour", u = "day", h = "week", c = "month", p = "quarter", E = "year", w = "date", b = "Invalid Date", H = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
3825
3825
  var g = ["th", "st", "nd", "rd"], f = v % 100;
3826
3826
  return "[" + v + (g[(f - 20) % 10] || g[f] || g[0]) + "]";
3827
3827
  } }, A = function(v, g, f) {
@@ -3956,7 +3956,7 @@ var $n = { exports: {} };
3956
3956
  if (x === E) return this.set(E, this.$y + f);
3957
3957
  if (x === u) return S(1);
3958
3958
  if (x === h) return S(7);
3959
- var U = (d = {}, d[o] = r, d[l] = i, d[a] = n, d)[x] || 1, k = this.$d.getTime() + f * U;
3959
+ var U = (d = {}, d[o] = n, d[l] = i, d[a] = r, d)[x] || 1, k = this.$d.getTime() + f * U;
3960
3960
  return T.w(k, this);
3961
3961
  }, g.subtract = function(f, y) {
3962
3962
  return this.add(-1 * f, y);
@@ -4029,7 +4029,7 @@ var $n = { exports: {} };
4029
4029
  }, g.utcOffset = function() {
4030
4030
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4031
4031
  }, g.diff = function(f, y, d) {
4032
- var _, x = this, S = T.p(y), U = C(f), k = (U.utcOffset() - this.utcOffset()) * r, V = this - U, q = function() {
4032
+ var _, x = this, S = T.p(y), U = C(f), k = (U.utcOffset() - this.utcOffset()) * n, V = this - U, q = function() {
4033
4033
  return T.m(x, U);
4034
4034
  };
4035
4035
  switch (S) {
@@ -4052,10 +4052,10 @@ var $n = { exports: {} };
4052
4052
  _ = V / i;
4053
4053
  break;
4054
4054
  case o:
4055
- _ = V / r;
4055
+ _ = V / n;
4056
4056
  break;
4057
4057
  case a:
4058
- _ = V / n;
4058
+ _ = V / r;
4059
4059
  break;
4060
4060
  default:
4061
4061
  _ = V;
@@ -4091,15 +4091,15 @@ var $n = { exports: {} };
4091
4091
  return C(1e3 * v);
4092
4092
  }, C.en = F[N], C.Ls = F, C.p = {}, C;
4093
4093
  });
4094
- })($n);
4095
- var ts = $n.exports;
4094
+ })(Or);
4095
+ var ts = Or.exports;
4096
4096
  const Wt = /* @__PURE__ */ vt(ts);
4097
- var Bn = { exports: {} };
4097
+ var $r = { exports: {} };
4098
4098
  (function(e, t) {
4099
- (function(n, r) {
4100
- e.exports = r();
4101
- })(sn, function() {
4102
- var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
4099
+ (function(r, n) {
4100
+ e.exports = n();
4101
+ })(ir, function() {
4102
+ var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
4103
4103
  return function(s, a, o) {
4104
4104
  var l = a.prototype;
4105
4105
  o.utc = function(b) {
@@ -4107,7 +4107,7 @@ var Bn = { exports: {} };
4107
4107
  return new a(H);
4108
4108
  }, l.utc = function(b) {
4109
4109
  var H = o(this.toDate(), { locale: this.$L, utc: !0 });
4110
- return b ? H.add(this.utcOffset(), n) : H;
4110
+ return b ? H.add(this.utcOffset(), r) : H;
4111
4111
  }, l.local = function() {
4112
4112
  return o(this.toDate(), { locale: this.$L, utc: !1 });
4113
4113
  };
@@ -4128,7 +4128,7 @@ var Bn = { exports: {} };
4128
4128
  if (P(b)) return this.$u ? 0 : P(this.$offset) ? c.call(this) : this.$offset;
4129
4129
  if (typeof b == "string" && (b = function(N) {
4130
4130
  N === void 0 && (N = "");
4131
- var F = N.match(r);
4131
+ var F = N.match(n);
4132
4132
  if (!F) return null;
4133
4133
  var G = ("" + F[0]).match(i) || ["-", 0, 0], ee = G[0], X = 60 * +G[1] + +G[2];
4134
4134
  return X === 0 ? 0 : ee === "+" ? X : -X;
@@ -4137,7 +4137,7 @@ var Bn = { exports: {} };
4137
4137
  if (H) return A.$offset = I, A.$u = b === 0, A;
4138
4138
  if (b !== 0) {
4139
4139
  var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
4140
- (A = this.local().add(I + R, n)).$offset = I, A.$x.$localOffset = R;
4140
+ (A = this.local().add(I + R, r)).$offset = I, A.$x.$localOffset = R;
4141
4141
  } else A = this.utc();
4142
4142
  return A;
4143
4143
  };
@@ -4167,15 +4167,15 @@ var Bn = { exports: {} };
4167
4167
  };
4168
4168
  };
4169
4169
  });
4170
- })(Bn);
4171
- var ns = Bn.exports;
4172
- const rs = /* @__PURE__ */ vt(ns);
4170
+ })($r);
4171
+ var rs = $r.exports;
4172
+ const ns = /* @__PURE__ */ vt(rs);
4173
4173
  function is(e) {
4174
- Fn(e, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
4174
+ Gr(e, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
4175
4175
  }
4176
- function zt(e, t, n) {
4177
- const r = e.slice();
4178
- return r[47] = t[n], r[49] = n, r;
4176
+ function zt(e, t, r) {
4177
+ const n = e.slice();
4178
+ return n[47] = t[r], n[49] = r, n;
4179
4179
  }
4180
4180
  function Yt(e) {
4181
4181
  let t;
@@ -4193,31 +4193,31 @@ function Yt(e) {
4193
4193
  e[3]
4194
4194
  );
4195
4195
  },
4196
- m(n, r) {
4197
- he(n, t, r);
4196
+ m(r, n) {
4197
+ he(r, t, n);
4198
4198
  },
4199
- p(n, r) {
4200
- r[0] & /*clientstylingurl*/
4199
+ p(r, n) {
4200
+ n[0] & /*clientstylingurl*/
4201
4201
  16 && J(
4202
4202
  t,
4203
4203
  "clientstylingurl",
4204
4204
  /*clientstylingurl*/
4205
- n[4]
4206
- ), r[0] & /*clientstyling*/
4205
+ r[4]
4206
+ ), n[0] & /*clientstyling*/
4207
4207
  8 && J(
4208
4208
  t,
4209
4209
  "clientstyling",
4210
4210
  /*clientstyling*/
4211
- n[3]
4211
+ r[3]
4212
4212
  );
4213
4213
  },
4214
- d(n) {
4215
- n && ae(t);
4214
+ d(r) {
4215
+ r && ae(t);
4216
4216
  }
4217
4217
  };
4218
4218
  }
4219
4219
  function Zt(e) {
4220
- let t, n, r, i = At(
4220
+ let t, r, n, i = At(
4221
4221
  /*paymentMethodsToShow*/
4222
4222
  e[8]
4223
4223
  ), s = [];
@@ -4229,16 +4229,16 @@ function Zt(e) {
4229
4229
  );
4230
4230
  return {
4231
4231
  c() {
4232
- t = Y("div"), n = Y("div");
4232
+ t = Y("div"), r = Y("div");
4233
4233
  for (let o = 0; o < s.length; o += 1)
4234
4234
  s[o].c();
4235
- r = ne(), a && a.c(), z(n, "class", "CashierMethodList"), z(t, "class", "CashierMethodListWidget");
4235
+ n = re(), a && a.c(), z(r, "class", "CashierMethodList"), z(t, "class", "CashierMethodListWidget");
4236
4236
  },
4237
4237
  m(o, l) {
4238
- he(o, t, l), B(t, n);
4238
+ he(o, t, l), B(t, r);
4239
4239
  for (let u = 0; u < s.length; u += 1)
4240
- s[u] && s[u].m(n, null);
4241
- B(t, r), a && a.m(t, null), e[26](t);
4240
+ s[u] && s[u].m(r, null);
4241
+ B(t, n), a && a.m(t, null), e[26](t);
4242
4242
  },
4243
4243
  p(o, l) {
4244
4244
  if (l[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
@@ -4250,7 +4250,7 @@ function Zt(e) {
4250
4250
  let u;
4251
4251
  for (u = 0; u < i.length; u += 1) {
4252
4252
  const h = zt(o, i, u);
4253
- s[u] ? s[u].p(h, l) : (s[u] = Jt(h), s[u].c(), s[u].m(n, null));
4253
+ s[u] ? s[u].p(h, l) : (s[u] = Jt(h), s[u].c(), s[u].m(r, null));
4254
4254
  }
4255
4255
  for (; u < s.length; u += 1)
4256
4256
  s[u].d(1);
@@ -4260,12 +4260,12 @@ function Zt(e) {
4260
4260
  o[7] ? a ? a.p(o, l) : (a = Qt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4261
4261
  },
4262
4262
  d(o) {
4263
- o && ae(t), Vn(s, o), a && a.d(), e[26](null);
4263
+ o && ae(t), jr(s, o), a && a.d(), e[26](null);
4264
4264
  }
4265
4265
  };
4266
4266
  }
4267
4267
  function Jt(e) {
4268
- let t, n, r, i, s, a, o, l, u = (
4268
+ let t, r, n, i, s, a, o, l, u = (
4269
4269
  /*payMeth*/
4270
4270
  (e[47].Label || /*payMeth*/
4271
4271
  e[47].Name) + ""
@@ -4305,9 +4305,9 @@ function Jt(e) {
4305
4305
  }
4306
4306
  return {
4307
4307
  c() {
4308
- t = Y("div"), n = Y("div"), r = Y("img"), a = ne(), o = Y("div"), l = Y("span"), h = re(u), c = ne(), p = Y("div"), E = Y("span"), b = re(w), H = ne(), I = re(P), A = ne(), N = re(R), F = ne(), G = Y("span"), X = re(ee), C = ne(), se = re(T), de = ne(), g = re(v), f = ne(), Ht(r.src, i = /*payMeth*/
4309
- e[47].LogoUrl) || z(r, "src", i), z(r, "alt", s = /*payMeth*/
4310
- e[47].Label), z(n, "class", "MethodLogo"), z(o, "class", "MethodTitle"), z(E, "class", "Limits"), z(G, "class", "Limits"), z(p, "class", "MethodLimits"), z(t, "class", "SelectorWrapper"), Mt(
4308
+ t = Y("div"), r = Y("div"), n = Y("img"), a = re(), o = Y("div"), l = Y("span"), h = ne(u), c = re(), p = Y("div"), E = Y("span"), b = ne(w), H = re(), I = ne(P), A = re(), N = ne(R), F = re(), G = Y("span"), X = ne(ee), C = re(), se = ne(T), de = re(), g = ne(v), f = re(), Ht(n.src, i = /*payMeth*/
4309
+ e[47].LogoUrl) || z(n, "src", i), z(n, "alt", s = /*payMeth*/
4310
+ e[47].Label), z(r, "class", "MethodLogo"), z(o, "class", "MethodTitle"), z(E, "class", "Limits"), z(G, "class", "Limits"), z(p, "class", "MethodLimits"), z(t, "class", "SelectorWrapper"), Mt(
4311
4311
  t,
4312
4312
  "checked",
4313
4313
  /*selectedPaymentMethod*/
@@ -4316,17 +4316,17 @@ function Jt(e) {
4316
4316
  );
4317
4317
  },
4318
4318
  m(x, S) {
4319
- he(x, t, S), B(t, n), B(n, r), B(t, a), B(t, o), B(o, l), B(l, h), B(t, c), B(t, p), B(p, E), B(E, b), B(E, H), B(E, I), B(E, A), B(E, N), B(p, F), B(p, G), B(G, X), B(G, C), B(G, se), B(G, de), B(G, g), B(t, f), y || (d = [
4319
+ he(x, t, S), B(t, r), B(r, n), B(t, a), B(t, o), B(o, l), B(l, h), B(t, c), B(t, p), B(p, E), B(E, b), B(E, H), B(E, I), B(E, A), B(E, N), B(p, F), B(p, G), B(G, X), B(G, C), B(G, se), B(G, de), B(G, g), B(t, f), y || (d = [
4320
4320
  ot(t, "click", _),
4321
4321
  ot(t, "keyup", os)
4322
4322
  ], y = !0);
4323
4323
  },
4324
4324
  p(x, S) {
4325
4325
  e = x, S[0] & /*paymentMethodsToShow*/
4326
- 256 && !Ht(r.src, i = /*payMeth*/
4327
- e[47].LogoUrl) && z(r, "src", i), S[0] & /*paymentMethodsToShow*/
4326
+ 256 && !Ht(n.src, i = /*payMeth*/
4327
+ e[47].LogoUrl) && z(n, "src", i), S[0] & /*paymentMethodsToShow*/
4328
4328
  256 && s !== (s = /*payMeth*/
4329
- e[47].Label) && z(r, "alt", s), S[0] & /*paymentMethodsToShow*/
4329
+ e[47].Label) && z(n, "alt", s), S[0] & /*paymentMethodsToShow*/
4330
4330
  256 && u !== (u = /*payMeth*/
4331
4331
  (e[47].Label || /*payMeth*/
4332
4332
  e[47].Name) + "") && le(h, u), S[0] & /*$_*/
@@ -4362,43 +4362,43 @@ function Jt(e) {
4362
4362
  };
4363
4363
  }
4364
4364
  function Qt(e) {
4365
- let t, n, r, i;
4365
+ let t, r, n, i;
4366
4366
  return {
4367
4367
  c() {
4368
- t = Y("div"), n = re(
4368
+ t = Y("div"), r = ne(
4369
4369
  /*methodsButtonToggleText*/
4370
4370
  e[7]
4371
4371
  ), z(t, "class", "ShowAllButton");
4372
4372
  },
4373
4373
  m(s, a) {
4374
- he(s, t, a), B(t, n), r || (i = ot(
4374
+ he(s, t, a), B(t, r), n || (i = ot(
4375
4375
  t,
4376
4376
  "click",
4377
4377
  /*click_handler_1*/
4378
4378
  e[25]
4379
- ), r = !0);
4379
+ ), n = !0);
4380
4380
  },
4381
4381
  p(s, a) {
4382
4382
  a[0] & /*methodsButtonToggleText*/
4383
4383
  128 && le(
4384
- n,
4384
+ r,
4385
4385
  /*methodsButtonToggleText*/
4386
4386
  s[7]
4387
4387
  );
4388
4388
  },
4389
4389
  d(s) {
4390
- s && ae(t), r = !1, i();
4390
+ s && ae(t), n = !1, i();
4391
4391
  }
4392
4392
  };
4393
4393
  }
4394
4394
  function qt(e) {
4395
- let t, n, r;
4395
+ let t, r, n;
4396
4396
  return {
4397
4397
  c() {
4398
- t = Y("cashier-error"), n = Y("span"), r = re(
4398
+ t = Y("cashier-error"), r = Y("span"), n = ne(
4399
4399
  /*errorMessage*/
4400
4400
  e[10]
4401
- ), z(n, "slot", "text"), J(
4401
+ ), z(r, "slot", "text"), J(
4402
4402
  t,
4403
4403
  "lang",
4404
4404
  /*lang*/
@@ -4426,12 +4426,12 @@ function qt(e) {
4426
4426
  ), J(t, "hidebuttons", "true");
4427
4427
  },
4428
4428
  m(i, s) {
4429
- he(i, t, s), B(t, n), B(n, r);
4429
+ he(i, t, s), B(t, r), B(r, n);
4430
4430
  },
4431
4431
  p(i, s) {
4432
4432
  s[0] & /*errorMessage*/
4433
4433
  1024 && le(
4434
- r,
4434
+ n,
4435
4435
  /*errorMessage*/
4436
4436
  i[10]
4437
4437
  ), s[0] & /*lang*/
@@ -4472,7 +4472,7 @@ function qt(e) {
4472
4472
  };
4473
4473
  }
4474
4474
  function ss(e) {
4475
- let t, n, r, i = (
4475
+ let t, r, n, i = (
4476
4476
  /*showSpinner*/
4477
4477
  e[12] && Yt(e)
4478
4478
  ), s = (
@@ -4485,35 +4485,35 @@ function ss(e) {
4485
4485
  );
4486
4486
  return {
4487
4487
  c() {
4488
- i && i.c(), t = ne(), s && s.c(), n = ne(), a && a.c(), r = Xn();
4488
+ i && i.c(), t = re(), s && s.c(), r = re(), a && a.c(), n = Vr();
4489
4489
  },
4490
4490
  m(o, l) {
4491
- i && i.m(o, l), he(o, t, l), s && s.m(o, l), he(o, n, l), a && a.m(o, l), he(o, r, l);
4491
+ i && i.m(o, l), he(o, t, l), s && s.m(o, l), he(o, r, l), a && a.m(o, l), he(o, n, l);
4492
4492
  },
4493
4493
  p(o, l) {
4494
4494
  /*showSpinner*/
4495
4495
  o[12] ? i ? i.p(o, l) : (i = Yt(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), /*showMethodsList*/
4496
4496
  o[9] || /*desktopView*/
4497
- o[11] ? s ? s.p(o, l) : (s = Zt(o), s.c(), s.m(n.parentNode, n)) : s && (s.d(1), s = null), /*errorMessage*/
4498
- o[10] ? a ? a.p(o, l) : (a = qt(o), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
4497
+ o[11] ? s ? s.p(o, l) : (s = Zt(o), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*errorMessage*/
4498
+ o[10] ? a ? a.p(o, l) : (a = qt(o), a.c(), a.m(n.parentNode, n)) : a && (a.d(1), a = null);
4499
4499
  },
4500
4500
  i: ie,
4501
4501
  o: ie,
4502
4502
  d(o) {
4503
- o && (ae(t), ae(n), ae(r)), i && i.d(o), s && s.d(o), a && a.d(o);
4503
+ o && (ae(t), ae(r), ae(n)), i && i.d(o), s && s.d(o), a && a.d(o);
4504
4504
  }
4505
4505
  };
4506
4506
  }
4507
4507
  const os = () => {
4508
4508
  };
4509
- function as(e, t, n) {
4510
- let r;
4511
- Gn(e, Ki, (m) => n(13, r = m)), Wt.extend(rs);
4509
+ function as(e, t, r) {
4510
+ let n;
4511
+ Ur(e, Ki, (m) => r(13, n = m)), Wt.extend(ns);
4512
4512
  let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: a } = t, { session: o } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: c } = t, { translationurl: p = "" } = t, { clientstyling: E = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, H = [], P, I, A = "", R = [], N = !0, F = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", ee, X = !0, C = !1;
4513
4513
  var T;
4514
4514
  (function(m) {
4515
4515
  m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
4516
- })(T || (T = {})), Jn();
4516
+ })(T || (T = {})), Zr();
4517
4517
  const se = () => {
4518
4518
  let m = p;
4519
4519
  if (m)
@@ -4531,7 +4531,7 @@ function as(e, t, n) {
4531
4531
  const de = () => {
4532
4532
  es(i);
4533
4533
  }, v = () => {
4534
- n(12, C = !0);
4534
+ r(12, C = !0);
4535
4535
  const m = new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`), $ = new Headers();
4536
4536
  $.append("accept", "application/json"), $.append("Content-Type", "application/json"), $.append("X-Client-Request-Timestamp", Wt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4537
4537
  const Z = {
@@ -4546,14 +4546,14 @@ function as(e, t, n) {
4546
4546
  fetch(m, Z).then((j) => j.json()).then((j) => {
4547
4547
  var be;
4548
4548
  if (j.error) {
4549
- n(10, G = j.error);
4549
+ r(10, G = j.error);
4550
4550
  return;
4551
4551
  }
4552
4552
  if (j.ResponseCode !== T.Success) {
4553
4553
  ee = j.ResponseCode, d();
4554
4554
  return;
4555
4555
  }
4556
- H = (be = j.PaymentMethods) != null && be.Ordering ? g(j) : f(j), n(7, A = c && +c > 0 && H.length > +c ? r("showAll") : ""), n(8, R = A ? H.slice(0, +c) : H), window.postMessage(
4556
+ H = (be = j.PaymentMethods) != null && be.Ordering ? g(j) : f(j), r(7, A = c && +c > 0 && H.length > +c ? n("showAll") : ""), r(8, R = A ? H.slice(0, +c) : H), window.postMessage(
4557
4557
  {
4558
4558
  type: "StartSessionCountdown",
4559
4559
  paymentMethodName: H[0].Name,
@@ -4561,13 +4561,13 @@ function as(e, t, n) {
4561
4561
  },
4562
4562
  window.location.href
4563
4563
  );
4564
- }).finally(() => n(12, C = !1));
4564
+ }).finally(() => r(12, C = !1));
4565
4565
  }, g = (m) => {
4566
4566
  const $ = [];
4567
4567
  return m.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((Z) => {
4568
4568
  const j = m.PaymentMethods.PaymentMethods.find((be) => be.Name === Z);
4569
4569
  if (j) {
4570
- const be = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Desktop")) || {}, Pn = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Mobile")) || {}, _t = X ? be : Pn;
4570
+ const be = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Desktop")) || {}, Br = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Mobile")) || {}, _t = X ? be : Br;
4571
4571
  $.push(Re(De({}, j), {
4572
4572
  LogoUrl: _t.LogoUrl ? `https:${_t.LogoUrl}` : ""
4573
4573
  }));
@@ -4576,7 +4576,7 @@ function as(e, t, n) {
4576
4576
  }, f = (m) => m.PaymentMethods.PaymentMethods.map(($) => Re(De({}, $), {
4577
4577
  LogoUrl: $.Logos && $.Logos.length && $.Logos[0].LogoUrl ? `https:${$.Logos[0].LogoUrl}` : ""
4578
4578
  })), y = (m) => {
4579
- n(6, I = m.Name), window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
4579
+ r(6, I = m.Name), window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
4580
4580
  "selectPayMeth",
4581
4581
  {
4582
4582
  detail: m,
@@ -4594,17 +4594,17 @@ function as(e, t, n) {
4594
4594
  window.location.href
4595
4595
  );
4596
4596
  }, _ = () => {
4597
- n(11, X = b === "false");
4597
+ r(11, X = b === "false");
4598
4598
  }, x = () => {
4599
4599
  R == H ? U() : S();
4600
4600
  }, S = () => {
4601
- n(8, R = H), n(7, A = r("showLess"));
4601
+ r(8, R = H), r(7, A = n("showLess"));
4602
4602
  }, U = () => {
4603
- n(8, R = H.slice(0, +c)), I && !R.find((m) => m.Name === I) && R.splice(0, 0, H.find((m) => m.Name === I)), n(7, A = r("showAll"));
4603
+ r(8, R = H.slice(0, +c)), I && !R.find((m) => m.Name === I) && R.splice(0, 0, H.find((m) => m.Name === I)), r(7, A = n("showAll"));
4604
4604
  }, k = () => {
4605
- n(9, N = !0);
4605
+ r(9, N = !0);
4606
4606
  }, V = (m) => {
4607
- n(9, N = !m.hideMethodsList);
4607
+ r(9, N = !m.hideMethodsList);
4608
4608
  }, q = () => {
4609
4609
  let m = document.createElement("style");
4610
4610
  m.innerHTML = E, P.appendChild(m);
@@ -4623,7 +4623,7 @@ function as(e, t, n) {
4623
4623
  );
4624
4624
  });
4625
4625
  };
4626
- Zn(() => (window.addEventListener("message", oe, !1), () => {
4626
+ Yr(() => (window.addEventListener("message", oe, !1), () => {
4627
4627
  window.removeEventListener("message", oe, !1);
4628
4628
  }));
4629
4629
  const oe = (m) => {
@@ -4638,11 +4638,11 @@ function as(e, t, n) {
4638
4638
  }, ge = (m) => y(m), ue = () => x();
4639
4639
  function W(m) {
4640
4640
  at[m ? "unshift" : "push"](() => {
4641
- P = m, n(5, P);
4641
+ P = m, r(5, P);
4642
4642
  });
4643
4643
  }
4644
4644
  return e.$$set = (m) => {
4645
- "lang" in m && n(0, i = m.lang), "local" in m && n(17, s = m.local), "endpoint" in m && n(18, a = m.endpoint), "session" in m && n(19, o = m.session), "customerid" in m && n(20, l = m.customerid), "assetsurl" in m && n(1, u = m.assetsurl), "currency" in m && n(21, h = m.currency), "numberofmethodsshown" in m && n(22, c = m.numberofmethodsshown), "translationurl" in m && n(2, p = m.translationurl), "clientstyling" in m && n(3, E = m.clientstyling), "clientstylingurl" in m && n(4, w = m.clientstylingurl), "ismobileview" in m && n(23, b = m.ismobileview);
4645
+ "lang" in m && r(0, i = m.lang), "local" in m && r(17, s = m.local), "endpoint" in m && r(18, a = m.endpoint), "session" in m && r(19, o = m.session), "customerid" in m && r(20, l = m.customerid), "assetsurl" in m && r(1, u = m.assetsurl), "currency" in m && r(21, h = m.currency), "numberofmethodsshown" in m && r(22, c = m.numberofmethodsshown), "translationurl" in m && r(2, p = m.translationurl), "clientstyling" in m && r(3, E = m.clientstyling), "clientstylingurl" in m && r(4, w = m.clientstylingurl), "ismobileview" in m && r(23, b = m.ismobileview);
4646
4646
  }, e.$$.update = () => {
4647
4647
  e.$$.dirty[0] & /*endpoint, session, customerid*/
4648
4648
  1835008 && a && o && l && v(), e.$$.dirty[0] & /*lang*/
@@ -4665,7 +4665,7 @@ function as(e, t, n) {
4665
4665
  G,
4666
4666
  X,
4667
4667
  C,
4668
- r,
4668
+ n,
4669
4669
  F,
4670
4670
  y,
4671
4671
  x,
@@ -4681,14 +4681,14 @@ function as(e, t, n) {
4681
4681
  W
4682
4682
  ];
4683
4683
  }
4684
- class us extends ur {
4684
+ class us extends un {
4685
4685
  constructor(t) {
4686
- super(), or(
4686
+ super(), on(
4687
4687
  this,
4688
4688
  t,
4689
4689
  as,
4690
4690
  ss,
4691
- en,
4691
+ er,
4692
4692
  {
4693
4693
  lang: 0,
4694
4694
  local: 17,
@@ -4780,7 +4780,7 @@ class us extends ur {
4780
4780
  this.$$set({ ismobileview: t }), K();
4781
4781
  }
4782
4782
  }
4783
- ar(us, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
4783
+ an(us, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
4784
4784
  export {
4785
4785
  us as default
4786
4786
  };