@everymatrix/cashier-error 1.90.33 → 1.90.35

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,7 +1,7 @@
1
1
  import "../stencil/ui-image-Ch-GHki1.js";
2
- function P() {
2
+ function M() {
3
3
  }
4
- function Yt(e, t) {
4
+ function tr(e, t) {
5
5
  for (const r in t)
6
6
  e[r] = t[r];
7
7
  return (
@@ -9,50 +9,50 @@ function Yt(e, t) {
9
9
  e
10
10
  );
11
11
  }
12
- function Et(e) {
12
+ function Ht(e) {
13
13
  return e();
14
14
  }
15
- function Ze() {
15
+ function Ke() {
16
16
  return /* @__PURE__ */ Object.create(null);
17
17
  }
18
- function re(e) {
19
- e.forEach(Et);
18
+ function se(e) {
19
+ e.forEach(Ht);
20
20
  }
21
- function We(e) {
21
+ function qe(e) {
22
22
  return typeof e == "function";
23
23
  }
24
- function _t(e, t) {
24
+ function At(e, t) {
25
25
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
26
  }
27
- let oe;
28
- function Ye(e, t) {
29
- return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
27
+ let he;
28
+ function et(e, t) {
29
+ return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
30
30
  }
31
- function Qt(e) {
31
+ function rr(e) {
32
32
  return Object.keys(e).length === 0;
33
33
  }
34
- function xt(e, ...t) {
34
+ function St(e, ...t) {
35
35
  if (e == null) {
36
36
  for (const n of t)
37
37
  n(void 0);
38
- return P;
38
+ return M;
39
39
  }
40
40
  const r = e.subscribe(...t);
41
41
  return r.unsubscribe ? () => r.unsubscribe() : r;
42
42
  }
43
- function Kt(e, t, r) {
44
- e.$$.on_destroy.push(xt(t, r));
43
+ function nr(e, t, r) {
44
+ e.$$.on_destroy.push(St(t, r));
45
45
  }
46
- function se(e, t, r, n) {
46
+ function ce(e, t, r, n) {
47
47
  if (e) {
48
- const i = Tt(e, t, r, n);
48
+ const i = Bt(e, t, r, n);
49
49
  return e[0](i);
50
50
  }
51
51
  }
52
- function Tt(e, t, r, n) {
53
- return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
+ function Bt(e, t, r, n) {
53
+ return e[1] && n ? tr(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
54
  }
55
- function ue(e, t, r, n) {
55
+ function fe(e, t, r, n) {
56
56
  if (e[2] && n) {
57
57
  const i = e[2](n(r));
58
58
  if (t.dirty === void 0)
@@ -67,13 +67,13 @@ function ue(e, t, r, n) {
67
67
  }
68
68
  return t.dirty;
69
69
  }
70
- function le(e, t, r, n, i, a) {
70
+ function me(e, t, r, n, i, a) {
71
71
  if (i) {
72
- const o = Tt(t, r, n, a);
72
+ const o = Bt(t, r, n, a);
73
73
  e.p(o, i);
74
74
  }
75
75
  }
76
- function he(e) {
76
+ function de(e) {
77
77
  if (e.ctx.length > 32) {
78
78
  const t = [], r = e.ctx.length / 32;
79
79
  for (let n = 0; n < r; n++)
@@ -82,17 +82,17 @@ function he(e) {
82
82
  }
83
83
  return -1;
84
84
  }
85
- function O(e, t) {
85
+ function B(e, t) {
86
86
  e.appendChild(t);
87
87
  }
88
- function er(e, t, r) {
89
- const n = tr(e);
88
+ function ir(e, t, r) {
89
+ const n = ar(e);
90
90
  if (!n.getElementById(t)) {
91
91
  const i = L("style");
92
- i.id = t, i.textContent = r, rr(n, i);
92
+ i.id = t, i.textContent = r, or(n, i);
93
93
  }
94
94
  }
95
- function tr(e) {
95
+ function ar(e) {
96
96
  if (!e)
97
97
  return document;
98
98
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -102,49 +102,49 @@ function tr(e) {
102
102
  t
103
103
  ) : e.ownerDocument;
104
104
  }
105
- function rr(e, t) {
106
- return O(
105
+ function or(e, t) {
106
+ return B(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function W(e, t, r) {
112
+ function S(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
- function M(e) {
115
+ function A(e) {
116
116
  e.parentNode && e.parentNode.removeChild(e);
117
117
  }
118
118
  function L(e) {
119
119
  return document.createElement(e);
120
120
  }
121
- function xe(e) {
121
+ function $(e) {
122
122
  return document.createTextNode(e);
123
123
  }
124
- function Se() {
125
- return xe(" ");
124
+ function V() {
125
+ return $(" ");
126
126
  }
127
- function nr() {
128
- return xe("");
127
+ function Je() {
128
+ return $("");
129
129
  }
130
- function ir(e, t, r, n) {
130
+ function sr(e, t, r, n) {
131
131
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
132
132
  }
133
- function G(e, t, r) {
133
+ function N(e, t, r) {
134
134
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
135
135
  }
136
- function ce(e, t, r) {
136
+ function pe(e, t, r) {
137
137
  const n = t.toLowerCase();
138
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
138
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : N(e, t, r);
139
139
  }
140
- function ar(e) {
140
+ function ur(e) {
141
141
  return Array.from(e.childNodes);
142
142
  }
143
- function Ht(e, t) {
143
+ function X(e, t) {
144
144
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
145
  t);
146
146
  }
147
- function or(e) {
147
+ function lr(e) {
148
148
  const t = {};
149
149
  return e.childNodes.forEach(
150
150
  /** @param {Element} node */
@@ -153,135 +153,135 @@ function or(e) {
153
153
  }
154
154
  ), t;
155
155
  }
156
- let K;
157
- function Q(e) {
158
- K = e;
156
+ let ie;
157
+ function ne(e) {
158
+ ie = e;
159
159
  }
160
- function sr() {
161
- if (!K)
160
+ function hr() {
161
+ if (!ie)
162
162
  throw new Error("Function called outside component initialization");
163
- return K;
163
+ return ie;
164
164
  }
165
- function ur(e) {
166
- sr().$$.on_mount.push(e);
165
+ function cr(e) {
166
+ hr().$$.on_mount.push(e);
167
167
  }
168
- const D = [], Ne = [];
169
- let U = [];
170
- const Qe = [], lr = /* @__PURE__ */ Promise.resolve();
171
- let Re = !1;
172
- function hr() {
173
- Re || (Re = !0, lr.then(B));
168
+ const z = [], De = [];
169
+ let W = [];
170
+ const tt = [], fr = /* @__PURE__ */ Promise.resolve();
171
+ let $e = !1;
172
+ function mr() {
173
+ $e || ($e = !0, fr.then(I));
174
174
  }
175
- function $e(e) {
176
- U.push(e);
175
+ function ke(e) {
176
+ W.push(e);
177
177
  }
178
- const Be = /* @__PURE__ */ new Set();
179
- let R = 0;
180
- function B() {
181
- if (R !== 0)
178
+ const Pe = /* @__PURE__ */ new Set();
179
+ let G = 0;
180
+ function I() {
181
+ if (G !== 0)
182
182
  return;
183
- const e = K;
183
+ const e = ie;
184
184
  do {
185
185
  try {
186
- for (; R < D.length; ) {
187
- const t = D[R];
188
- R++, Q(t), cr(t.$$);
186
+ for (; G < z.length; ) {
187
+ const t = z[G];
188
+ G++, ne(t), dr(t.$$);
189
189
  }
190
190
  } catch (t) {
191
- throw D.length = 0, R = 0, t;
191
+ throw z.length = 0, G = 0, t;
192
192
  }
193
- for (Q(null), D.length = 0, R = 0; Ne.length; )
194
- Ne.pop()();
195
- for (let t = 0; t < U.length; t += 1) {
196
- const r = U[t];
197
- Be.has(r) || (Be.add(r), r());
193
+ for (ne(null), z.length = 0, G = 0; De.length; )
194
+ De.pop()();
195
+ for (let t = 0; t < W.length; t += 1) {
196
+ const r = W[t];
197
+ Pe.has(r) || (Pe.add(r), r());
198
198
  }
199
- U.length = 0;
200
- } while (D.length);
201
- for (; Qe.length; )
202
- Qe.pop()();
203
- Re = !1, Be.clear(), Q(e);
199
+ W.length = 0;
200
+ } while (z.length);
201
+ for (; tt.length; )
202
+ tt.pop()();
203
+ $e = !1, Pe.clear(), ne(e);
204
204
  }
205
- function cr(e) {
205
+ function dr(e) {
206
206
  if (e.fragment !== null) {
207
- e.update(), re(e.before_update);
207
+ e.update(), se(e.before_update);
208
208
  const t = e.dirty;
209
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
209
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
210
210
  }
211
211
  }
212
- function fr(e) {
212
+ function pr(e) {
213
213
  const t = [], r = [];
214
- U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
214
+ W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
215
215
  }
216
- const de = /* @__PURE__ */ new Set();
217
- let mr;
218
- function Z(e, t) {
219
- e && e.i && (de.delete(e), e.i(t));
216
+ const ye = /* @__PURE__ */ new Set();
217
+ let gr;
218
+ function te(e, t) {
219
+ e && e.i && (ye.delete(e), e.i(t));
220
220
  }
221
- function fe(e, t, r, n) {
221
+ function ge(e, t, r, n) {
222
222
  if (e && e.o) {
223
- if (de.has(e))
223
+ if (ye.has(e))
224
224
  return;
225
- de.add(e), mr.c.push(() => {
226
- de.delete(e);
225
+ ye.add(e), gr.c.push(() => {
226
+ ye.delete(e);
227
227
  }), e.o(t);
228
228
  }
229
229
  }
230
- function dr(e, t, r) {
230
+ function br(e, t, r) {
231
231
  const { fragment: n, after_update: i } = e.$$;
232
- n && n.m(t, r), $e(() => {
233
- const a = e.$$.on_mount.map(Et).filter(We);
234
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : re(a), e.$$.on_mount = [];
235
- }), i.forEach($e);
232
+ n && n.m(t, r), ke(() => {
233
+ const a = e.$$.on_mount.map(Ht).filter(qe);
234
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : se(a), e.$$.on_mount = [];
235
+ }), i.forEach(ke);
236
236
  }
237
- function pr(e, t) {
237
+ function yr(e, t) {
238
238
  const r = e.$$;
239
- r.fragment !== null && (fr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
+ r.fragment !== null && (pr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
240
240
  }
241
- function br(e, t) {
242
- e.$$.dirty[0] === -1 && (D.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
241
+ function vr(e, t) {
242
+ e.$$.dirty[0] === -1 && (z.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
243
243
  }
244
- function gr(e, t, r, n, i, a, o = null, s = [-1]) {
245
- const h = K;
246
- Q(e);
244
+ function _r(e, t, r, n, i, a, o = null, s = [-1]) {
245
+ const l = ie;
246
+ ne(e);
247
247
  const u = e.$$ = {
248
248
  fragment: null,
249
249
  ctx: [],
250
250
  // state
251
251
  props: a,
252
- update: P,
252
+ update: M,
253
253
  not_equal: i,
254
- bound: Ze(),
254
+ bound: Ke(),
255
255
  // lifecycle
256
256
  on_mount: [],
257
257
  on_destroy: [],
258
258
  on_disconnect: [],
259
259
  before_update: [],
260
260
  after_update: [],
261
- context: new Map(t.context || (h ? h.$$.context : [])),
261
+ context: new Map(t.context || (l ? l.$$.context : [])),
262
262
  // everything else
263
- callbacks: Ze(),
263
+ callbacks: Ke(),
264
264
  dirty: s,
265
265
  skip_bound: !1,
266
- root: t.target || h.$$.root
266
+ root: t.target || l.$$.root
267
267
  };
268
268
  o && o(u.root);
269
- let l = !1;
270
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
271
- const b = p.length ? p[0] : f;
272
- return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), l && br(e, c)), f;
273
- }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
269
+ let h = !1;
270
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
271
+ const g = d.length ? d[0] : f;
272
+ return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && vr(e, c)), f;
273
+ }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
274
274
  if (t.hydrate) {
275
- const c = ar(t.target);
276
- u.fragment && u.fragment.l(c), c.forEach(M);
275
+ const c = ur(t.target);
276
+ u.fragment && u.fragment.l(c), c.forEach(A);
277
277
  } else
278
278
  u.fragment && u.fragment.c();
279
- t.intro && Z(e.$$.fragment), dr(e, t.target, t.anchor), B();
279
+ t.intro && te(e.$$.fragment), br(e, t.target, t.anchor), I();
280
280
  }
281
- Q(h);
281
+ ne(l);
282
282
  }
283
- let wt;
284
- typeof HTMLElement == "function" && (wt = class extends HTMLElement {
283
+ let Lt;
284
+ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
285
285
  /** The Svelte component constructor */
286
286
  $$ctor;
287
287
  /** Slots */
@@ -323,29 +323,29 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
323
323
  let a;
324
324
  return {
325
325
  c: function() {
326
- a = L("slot"), i !== "default" && G(a, "name", i);
326
+ a = L("slot"), i !== "default" && N(a, "name", i);
327
327
  },
328
328
  /**
329
329
  * @param {HTMLElement} target
330
330
  * @param {HTMLElement} [anchor]
331
331
  */
332
- m: function(h, u) {
333
- W(h, a, u);
332
+ m: function(l, u) {
333
+ S(l, a, u);
334
334
  },
335
- d: function(h) {
336
- h && M(a);
335
+ d: function(l) {
336
+ l && A(a);
337
337
  }
338
338
  };
339
339
  };
340
340
  };
341
341
  if (await Promise.resolve(), !this.$$cn || this.$$c)
342
342
  return;
343
- const t = {}, r = or(this);
343
+ const t = {}, r = lr(this);
344
344
  for (const i of this.$$s)
345
345
  i in r && (t[i] = [e(i)]);
346
346
  for (const i of this.attributes) {
347
347
  const a = this.$$g_p(i.name);
348
- a in this.$$d || (this.$$d[a] = pe(a, i.value, this.$$p_d, "toProp"));
348
+ a in this.$$d || (this.$$d[a] = ve(a, i.value, this.$$p_d, "toProp"));
349
349
  }
350
350
  for (const i in this.$$p_d)
351
351
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
363
363
  this.$$r = !0;
364
364
  for (const i in this.$$p_d)
365
365
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
366
- const a = pe(
366
+ const a = ve(
367
367
  i,
368
368
  this.$$d[i],
369
369
  this.$$p_d,
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
385
385
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
386
386
  // and setting attributes through setAttribute etc, this is helpful
387
387
  attributeChangedCallback(e, t, r) {
388
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
389
389
  }
390
390
  disconnectedCallback() {
391
391
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
398
398
  ) || e;
399
399
  }
400
400
  });
401
- function pe(e, t, r, n) {
401
+ function ve(e, t, r, n) {
402
402
  const i = r[e]?.type;
403
403
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
404
404
  return t;
@@ -427,8 +427,8 @@ function pe(e, t, r, n) {
427
427
  return t;
428
428
  }
429
429
  }
430
- function yr(e, t, r, n, i, a) {
431
- let o = class extends wt {
430
+ function Er(e, t, r, n, i, a) {
431
+ let o = class extends Lt {
432
432
  constructor() {
433
433
  super(e, r, i), this.$$p_d = t;
434
434
  }
@@ -443,8 +443,8 @@ function yr(e, t, r, n, i, a) {
443
443
  get() {
444
444
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
445
445
  },
446
- set(h) {
447
- h = pe(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
446
+ set(l) {
447
+ l = ve(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
448
448
  }
449
449
  });
450
450
  }), n.forEach((s) => {
@@ -456,7 +456,7 @@ function yr(e, t, r, n, i, a) {
456
456
  }), e.element = /** @type {any} */
457
457
  o, o;
458
458
  }
459
- class vr {
459
+ class xr {
460
460
  /**
461
461
  * ### PRIVATE API
462
462
  *
@@ -475,7 +475,7 @@ class vr {
475
475
  $$set = void 0;
476
476
  /** @returns {void} */
477
477
  $destroy() {
478
- pr(this, 1), this.$destroy = P;
478
+ yr(this, 1), this.$destroy = M;
479
479
  }
480
480
  /**
481
481
  * @template {Extract<keyof Events, string>} K
@@ -484,8 +484,8 @@ class vr {
484
484
  * @returns {() => void}
485
485
  */
486
486
  $on(t, r) {
487
- if (!We(r))
488
- return P;
487
+ if (!qe(r))
488
+ return M;
489
489
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
490
490
  return n.push(r), () => {
491
491
  const i = n.indexOf(r);
@@ -497,19 +497,19 @@ class vr {
497
497
  * @returns {void}
498
498
  */
499
499
  $set(t) {
500
- this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
500
+ this.$$set && !rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
501
501
  }
502
502
  }
503
- const Er = "4";
504
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
505
- const k = "__WIDGET_GLOBAL_STYLE_CACHE__";
506
- function _r(e, t) {
503
+ const Tr = "4";
504
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
505
+ const j = "__WIDGET_GLOBAL_STYLE_CACHE__";
506
+ function wr(e, t) {
507
507
  if (e) {
508
508
  const r = document.createElement("style");
509
509
  r.innerHTML = t, e.appendChild(r);
510
510
  }
511
511
  }
512
- function xr(e, t) {
512
+ function Hr(e, t) {
513
513
  if (!e || !t)
514
514
  return;
515
515
  const r = new URL(t);
@@ -520,32 +520,32 @@ function xr(e, t) {
520
520
  console.error("There was an error while trying to load client styling from URL", n);
521
521
  });
522
522
  }
523
- function Tr(e, t, r, n = !1) {
523
+ function Ar(e, t, r, n = !1) {
524
524
  if (!window.emMessageBus)
525
525
  return;
526
526
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
527
- return r = Hr(e, t), r;
528
- window[k] || (window[k] = {}), r = wr(e, t);
527
+ return r = Sr(e, t), r;
528
+ window[j] || (window[j] = {}), r = Br(e, t);
529
529
  const a = r.unsubscribe.bind(r), o = () => {
530
- if (window[k][t]) {
531
- const s = window[k][t];
532
- s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[k][t];
530
+ if (window[j][t]) {
531
+ const s = window[j][t];
532
+ s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[j][t];
533
533
  }
534
534
  a();
535
535
  };
536
536
  return r.unsubscribe = o, r;
537
537
  }
538
- function Hr(e, t) {
538
+ function Sr(e, t) {
539
539
  const r = document.createElement("style");
540
540
  return window.emMessageBus.subscribe(t, (n) => {
541
541
  e && (r.innerHTML = n, e.appendChild(r));
542
542
  });
543
543
  }
544
- function wr(e, t) {
544
+ function Br(e, t) {
545
545
  return window.emMessageBus.subscribe(t, (r) => {
546
546
  if (!e)
547
547
  return;
548
- const n = e.getRootNode(), i = window[k];
548
+ const n = e.getRootNode(), i = window[j];
549
549
  let a = i[t] && i[t].sheet;
550
550
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(r), i[t] = {
551
551
  sheet: a,
@@ -555,171 +555,171 @@ function wr(e, t) {
555
555
  o.includes(a) || (n.adoptedStyleSheets = [...o, a]);
556
556
  });
557
557
  }
558
- const $ = [];
559
- function Ar(e, t) {
558
+ const F = [];
559
+ function Lr(e, t) {
560
560
  return {
561
- subscribe: Te(e, t).subscribe
561
+ subscribe: Ae(e, t).subscribe
562
562
  };
563
563
  }
564
- function Te(e, t = P) {
564
+ function Ae(e, t = M) {
565
565
  let r;
566
566
  const n = /* @__PURE__ */ new Set();
567
567
  function i(s) {
568
- if (_t(e, s) && (e = s, r)) {
569
- const h = !$.length;
568
+ if (At(e, s) && (e = s, r)) {
569
+ const l = !F.length;
570
570
  for (const u of n)
571
- u[1](), $.push(u, e);
572
- if (h) {
573
- for (let u = 0; u < $.length; u += 2)
574
- $[u][0]($[u + 1]);
575
- $.length = 0;
571
+ u[1](), F.push(u, e);
572
+ if (l) {
573
+ for (let u = 0; u < F.length; u += 2)
574
+ F[u][0](F[u + 1]);
575
+ F.length = 0;
576
576
  }
577
577
  }
578
578
  }
579
579
  function a(s) {
580
580
  i(s(e));
581
581
  }
582
- function o(s, h = P) {
583
- const u = [s, h];
584
- return n.add(u), n.size === 1 && (r = t(i, a) || P), s(e), () => {
582
+ function o(s, l = M) {
583
+ const u = [s, l];
584
+ return n.add(u), n.size === 1 && (r = t(i, a) || M), s(e), () => {
585
585
  n.delete(u), n.size === 0 && r && (r(), r = null);
586
586
  };
587
587
  }
588
588
  return { set: i, update: a, subscribe: o };
589
589
  }
590
- function X(e, t, r) {
590
+ function Q(e, t, r) {
591
591
  const n = !Array.isArray(e), i = n ? [e] : e;
592
592
  if (!i.every(Boolean))
593
593
  throw new Error("derived() expects stores as input, got a falsy value");
594
594
  const a = t.length < 2;
595
- return Ar(r, (o, s) => {
596
- let h = !1;
595
+ return Lr(r, (o, s) => {
596
+ let l = !1;
597
597
  const u = [];
598
- let l = 0, c = P;
598
+ let h = 0, c = M;
599
599
  const f = () => {
600
- if (l)
600
+ if (h)
601
601
  return;
602
602
  c();
603
- const b = t(n ? u[0] : u, o, s);
604
- a ? o(b) : c = We(b) ? b : P;
605
- }, p = i.map(
606
- (b, _) => xt(
607
- b,
608
- (T) => {
609
- u[_] = T, l &= ~(1 << _), h && f();
603
+ const g = t(n ? u[0] : u, o, s);
604
+ a ? o(g) : c = qe(g) ? g : M;
605
+ }, d = i.map(
606
+ (g, x) => St(
607
+ g,
608
+ (w) => {
609
+ u[x] = w, h &= ~(1 << x), l && f();
610
610
  },
611
611
  () => {
612
- l |= 1 << _;
612
+ h |= 1 << x;
613
613
  }
614
614
  )
615
615
  );
616
- return h = !0, f(), function() {
617
- re(p), c(), h = !1;
616
+ return l = !0, f(), function() {
617
+ se(d), c(), l = !1;
618
618
  };
619
619
  });
620
620
  }
621
- function Sr(e) {
621
+ function Pr(e) {
622
622
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
623
623
  }
624
- var Br = function(t) {
625
- return Pr(t) && !Or(t);
624
+ var Or = function(t) {
625
+ return Cr(t) && !Ir(t);
626
626
  };
627
- function Pr(e) {
627
+ function Cr(e) {
628
628
  return !!e && typeof e == "object";
629
629
  }
630
- function Or(e) {
630
+ function Ir(e) {
631
631
  var t = Object.prototype.toString.call(e);
632
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
632
+ return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
633
633
  }
634
- var Cr = typeof Symbol == "function" && Symbol.for, Lr = Cr ? Symbol.for("react.element") : 60103;
635
- function Ir(e) {
636
- return e.$$typeof === Lr;
634
+ var Mr = typeof Symbol == "function" && Symbol.for, Nr = Mr ? Symbol.for("react.element") : 60103;
635
+ function Rr(e) {
636
+ return e.$$typeof === Nr;
637
637
  }
638
- function Mr(e) {
638
+ function Dr(e) {
639
639
  return Array.isArray(e) ? [] : {};
640
640
  }
641
- function ee(e, t) {
642
- return t.clone !== !1 && t.isMergeableObject(e) ? F(Mr(e), e, t) : e;
641
+ function ae(e, t) {
642
+ return t.clone !== !1 && t.isMergeableObject(e) ? q(Dr(e), e, t) : e;
643
643
  }
644
- function Nr(e, t, r) {
644
+ function $r(e, t, r) {
645
645
  return e.concat(t).map(function(n) {
646
- return ee(n, r);
646
+ return ae(n, r);
647
647
  });
648
648
  }
649
- function Rr(e, t) {
649
+ function kr(e, t) {
650
650
  if (!t.customMerge)
651
- return F;
651
+ return q;
652
652
  var r = t.customMerge(e);
653
- return typeof r == "function" ? r : F;
653
+ return typeof r == "function" ? r : q;
654
654
  }
655
- function $r(e) {
655
+ function Ur(e) {
656
656
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
657
657
  return Object.propertyIsEnumerable.call(e, t);
658
658
  }) : [];
659
659
  }
660
- function Ke(e) {
661
- return Object.keys(e).concat($r(e));
660
+ function rt(e) {
661
+ return Object.keys(e).concat(Ur(e));
662
662
  }
663
- function At(e, t) {
663
+ function Pt(e, t) {
664
664
  try {
665
665
  return t in e;
666
666
  } catch {
667
667
  return !1;
668
668
  }
669
669
  }
670
- function Dr(e, t) {
671
- return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
670
+ function Gr(e, t) {
671
+ return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
672
672
  }
673
- function kr(e, t, r) {
673
+ function Fr(e, t, r) {
674
674
  var n = {};
675
- return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
676
- n[i] = ee(e[i], r);
677
- }), Ke(t).forEach(function(i) {
678
- Dr(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
675
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
676
+ n[i] = ae(e[i], r);
677
+ }), rt(t).forEach(function(i) {
678
+ Gr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = kr(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
679
679
  }), n;
680
680
  }
681
- function F(e, t, r) {
682
- r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = ee;
681
+ function q(e, t, r) {
682
+ r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = ae;
683
683
  var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
684
- return a ? n ? r.arrayMerge(e, t, r) : kr(e, t, r) : ee(t, r);
684
+ return a ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : ae(t, r);
685
685
  }
686
- F.all = function(t, r) {
686
+ q.all = function(t, r) {
687
687
  if (!Array.isArray(t))
688
688
  throw new Error("first argument should be an array");
689
689
  return t.reduce(function(n, i) {
690
- return F(n, i, r);
690
+ return q(n, i, r);
691
691
  }, {});
692
692
  };
693
- var Ur = F, Gr = Ur;
694
- const Fr = /* @__PURE__ */ Sr(Gr);
695
- var De = function(e, t) {
696
- return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
693
+ var zr = q, jr = zr;
694
+ const Vr = /* @__PURE__ */ Pr(jr);
695
+ var Ue = function(e, t) {
696
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
697
697
  r.__proto__ = n;
698
698
  } || function(r, n) {
699
699
  for (var i in n)
700
700
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
701
- }, De(e, t);
701
+ }, Ue(e, t);
702
702
  };
703
- function He(e, t) {
703
+ function Se(e, t) {
704
704
  if (typeof t != "function" && t !== null)
705
705
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
706
- De(e, t);
706
+ Ue(e, t);
707
707
  function r() {
708
708
  this.constructor = e;
709
709
  }
710
710
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
711
711
  }
712
- var S = function() {
713
- return S = Object.assign || function(t) {
712
+ var P = function() {
713
+ return P = Object.assign || function(t) {
714
714
  for (var r, n = 1, i = arguments.length; n < i; n++) {
715
715
  r = arguments[n];
716
716
  for (var a in r)
717
717
  Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
718
718
  }
719
719
  return t;
720
- }, S.apply(this, arguments);
720
+ }, P.apply(this, arguments);
721
721
  };
722
- function zr(e, t) {
722
+ function Wr(e, t) {
723
723
  var r = {};
724
724
  for (var n in e)
725
725
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -728,43 +728,43 @@ function zr(e, t) {
728
728
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
729
729
  return r;
730
730
  }
731
- function Pe(e, t, r) {
731
+ function Oe(e, t, r) {
732
732
  if (r || arguments.length === 2)
733
733
  for (var n = 0, i = t.length, a; n < i; n++)
734
734
  (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
735
735
  return e.concat(a || Array.prototype.slice.call(t));
736
736
  }
737
- function Oe(e, t) {
738
- var r = t && t.cache ? t.cache : Zr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
737
+ function Ce(e, t) {
738
+ var r = t && t.cache ? t.cache : Kr, n = t && t.serializer ? t.serializer : Yr, i = t && t.strategy ? t.strategy : Jr;
739
739
  return i(e, {
740
740
  cache: r,
741
741
  serializer: n
742
742
  });
743
743
  }
744
- function jr(e) {
744
+ function Xr(e) {
745
745
  return e == null || typeof e == "number" || typeof e == "boolean";
746
746
  }
747
- function Vr(e, t, r, n) {
748
- var i = jr(n) ? n : r(n), a = t.get(i);
747
+ function qr(e, t, r, n) {
748
+ var i = Xr(n) ? n : r(n), a = t.get(i);
749
749
  return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
750
750
  }
751
- function St(e, t, r) {
751
+ function Ot(e, t, r) {
752
752
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
753
753
  return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
754
754
  }
755
- function Bt(e, t, r, n, i) {
755
+ function Ct(e, t, r, n, i) {
756
756
  return r.bind(t, e, n, i);
757
757
  }
758
- function Wr(e, t) {
759
- var r = e.length === 1 ? Vr : St;
760
- return Bt(e, this, r, t.cache.create(), t.serializer);
758
+ function Jr(e, t) {
759
+ var r = e.length === 1 ? qr : Ot;
760
+ return Ct(e, this, r, t.cache.create(), t.serializer);
761
761
  }
762
- function Xr(e, t) {
763
- return Bt(e, this, St, t.cache.create(), t.serializer);
762
+ function Zr(e, t) {
763
+ return Ct(e, this, Ot, t.cache.create(), t.serializer);
764
764
  }
765
- var qr = function() {
765
+ var Yr = function() {
766
766
  return JSON.stringify(arguments);
767
- }, Jr = (
767
+ }, Qr = (
768
768
  /** @class */
769
769
  function() {
770
770
  function e() {
@@ -776,71 +776,71 @@ var qr = function() {
776
776
  this.cache[t] = r;
777
777
  }, e;
778
778
  }()
779
- ), Zr = {
779
+ ), Kr = {
780
780
  create: function() {
781
- return new Jr();
781
+ return new Qr();
782
782
  }
783
- }, Ce = {
784
- variadic: Xr
785
- }, ye = function() {
786
- return ye = Object.assign || function(t) {
783
+ }, Ie = {
784
+ variadic: Zr
785
+ }, xe = function() {
786
+ return xe = Object.assign || function(t) {
787
787
  for (var r, n = 1, i = arguments.length; n < i; n++) {
788
788
  r = arguments[n];
789
789
  for (var a in r)
790
790
  Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
791
791
  }
792
792
  return t;
793
- }, ye.apply(this, arguments);
793
+ }, xe.apply(this, arguments);
794
794
  };
795
- var g;
795
+ var b;
796
796
  (function(e) {
797
797
  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";
798
- })(g || (g = {}));
799
- var v;
798
+ })(b || (b = {}));
799
+ var _;
800
800
  (function(e) {
801
801
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
802
- })(v || (v = {}));
803
- var z;
802
+ })(_ || (_ = {}));
803
+ var J;
804
804
  (function(e) {
805
805
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
806
- })(z || (z = {}));
807
- function et(e) {
808
- return e.type === v.literal;
806
+ })(J || (J = {}));
807
+ function nt(e) {
808
+ return e.type === _.literal;
809
809
  }
810
- function Yr(e) {
811
- return e.type === v.argument;
810
+ function en(e) {
811
+ return e.type === _.argument;
812
812
  }
813
- function Pt(e) {
814
- return e.type === v.number;
813
+ function It(e) {
814
+ return e.type === _.number;
815
815
  }
816
- function Ot(e) {
817
- return e.type === v.date;
816
+ function Mt(e) {
817
+ return e.type === _.date;
818
818
  }
819
- function Ct(e) {
820
- return e.type === v.time;
819
+ function Nt(e) {
820
+ return e.type === _.time;
821
821
  }
822
- function Lt(e) {
823
- return e.type === v.select;
822
+ function Rt(e) {
823
+ return e.type === _.select;
824
824
  }
825
- function It(e) {
826
- return e.type === v.plural;
825
+ function Dt(e) {
826
+ return e.type === _.plural;
827
827
  }
828
- function Qr(e) {
829
- return e.type === v.pound;
828
+ function tn(e) {
829
+ return e.type === _.pound;
830
830
  }
831
- function Mt(e) {
832
- return e.type === v.tag;
831
+ function $t(e) {
832
+ return e.type === _.tag;
833
833
  }
834
- function Nt(e) {
835
- return !!(e && typeof e == "object" && e.type === z.number);
834
+ function kt(e) {
835
+ return !!(e && typeof e == "object" && e.type === J.number);
836
836
  }
837
- function ke(e) {
838
- return !!(e && typeof e == "object" && e.type === z.dateTime);
837
+ function Ge(e) {
838
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
839
839
  }
840
- var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
841
- function en(e) {
840
+ var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, rn = /(?:[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;
841
+ function nn(e) {
842
842
  var t = {};
843
- return e.replace(Kr, function(r) {
843
+ return e.replace(rn, function(r) {
844
844
  var n = r.length;
845
845
  switch (r[0]) {
846
846
  case "G":
@@ -939,36 +939,36 @@ var E = function() {
939
939
  return t;
940
940
  }, E.apply(this, arguments);
941
941
  };
942
- var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
943
- function rn(e) {
942
+ var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
943
+ function on(e) {
944
944
  if (e.length === 0)
945
945
  throw new Error("Number skeleton cannot be empty");
946
- for (var t = e.split(tn).filter(function(f) {
946
+ for (var t = e.split(an).filter(function(f) {
947
947
  return f.length > 0;
948
948
  }), r = [], n = 0, i = t; n < i.length; n++) {
949
949
  var a = i[n], o = a.split("/");
950
950
  if (o.length === 0)
951
951
  throw new Error("Invalid number skeleton");
952
- for (var s = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
953
- var c = l[u];
952
+ for (var s = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
953
+ var c = h[u];
954
954
  if (c.length === 0)
955
955
  throw new Error("Invalid number skeleton");
956
956
  }
957
- r.push({ stem: s, options: h });
957
+ r.push({ stem: s, options: l });
958
958
  }
959
959
  return r;
960
960
  }
961
- function nn(e) {
961
+ function sn(e) {
962
962
  return e.replace(/^(.*?)-/, "");
963
963
  }
964
- var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
965
- function rt(e) {
964
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, un = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
965
+ function at(e) {
966
966
  var t = {};
967
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
967
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
968
968
  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)), "";
969
969
  }), t;
970
970
  }
971
- function kt(e) {
971
+ function zt(e) {
972
972
  switch (e) {
973
973
  case "sign-auto":
974
974
  return {
@@ -1008,7 +1008,7 @@ function kt(e) {
1008
1008
  };
1009
1009
  }
1010
1010
  }
1011
- function on(e) {
1011
+ function ln(e) {
1012
1012
  var t;
1013
1013
  if (e[0] === "E" && e[1] === "E" ? (t = {
1014
1014
  notation: "engineering"
@@ -1016,17 +1016,17 @@ function on(e) {
1016
1016
  notation: "scientific"
1017
1017
  }, e = e.slice(1)), t) {
1018
1018
  var r = e.slice(0, 2);
1019
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
1019
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
1020
1020
  throw new Error("Malformed concise eng/scientific notation");
1021
1021
  t.minimumIntegerDigits = e.length;
1022
1022
  }
1023
1023
  return t;
1024
1024
  }
1025
- function nt(e) {
1026
- var t = {}, r = kt(e);
1025
+ function ot(e) {
1026
+ var t = {}, r = zt(e);
1027
1027
  return r || t;
1028
1028
  }
1029
- function sn(e) {
1029
+ function hn(e) {
1030
1030
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1031
1031
  var i = n[r];
1032
1032
  switch (i.stem) {
@@ -1050,7 +1050,7 @@ function sn(e) {
1050
1050
  continue;
1051
1051
  case "measure-unit":
1052
1052
  case "unit":
1053
- t.style = "unit", t.unit = nn(i.options[0]);
1053
+ t.style = "unit", t.unit = sn(i.options[0]);
1054
1054
  continue;
1055
1055
  case "compact-short":
1056
1056
  case "K":
@@ -1061,13 +1061,13 @@ function sn(e) {
1061
1061
  t.notation = "compact", t.compactDisplay = "long";
1062
1062
  continue;
1063
1063
  case "scientific":
1064
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1065
- return E(E({}, h), nt(u));
1064
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1065
+ return E(E({}, l), ot(u));
1066
1066
  }, {}));
1067
1067
  continue;
1068
1068
  case "engineering":
1069
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1070
- return E(E({}, h), nt(u));
1069
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1070
+ return E(E({}, l), ot(u));
1071
1071
  }, {}));
1072
1072
  continue;
1073
1073
  case "notation-simple":
@@ -1112,45 +1112,45 @@ function sn(e) {
1112
1112
  case "integer-width":
1113
1113
  if (i.options.length > 1)
1114
1114
  throw new RangeError("integer-width stems only accept a single optional option");
1115
- i.options[0].replace(an, function(h, u, l, c, f, p) {
1115
+ i.options[0].replace(un, function(l, u, h, c, f, d) {
1116
1116
  if (u)
1117
- t.minimumIntegerDigits = l.length;
1117
+ t.minimumIntegerDigits = h.length;
1118
1118
  else {
1119
1119
  if (c && f)
1120
1120
  throw new Error("We currently do not support maximum integer digits");
1121
- if (p)
1121
+ if (d)
1122
1122
  throw new Error("We currently do not support exact integer digits");
1123
1123
  }
1124
1124
  return "";
1125
1125
  });
1126
1126
  continue;
1127
1127
  }
1128
- if (Dt.test(i.stem)) {
1128
+ if (Ft.test(i.stem)) {
1129
1129
  t.minimumIntegerDigits = i.stem.length;
1130
1130
  continue;
1131
1131
  }
1132
- if (tt.test(i.stem)) {
1132
+ if (it.test(i.stem)) {
1133
1133
  if (i.options.length > 1)
1134
1134
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1135
- i.stem.replace(tt, function(h, u, l, c, f, p) {
1136
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1135
+ i.stem.replace(it, function(l, u, h, c, f, d) {
1136
+ return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1137
1137
  });
1138
1138
  var a = i.options[0];
1139
- a === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = E(E({}, t), rt(a)));
1139
+ a === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = E(E({}, t), at(a)));
1140
1140
  continue;
1141
1141
  }
1142
- if ($t.test(i.stem)) {
1143
- t = E(E({}, t), rt(i.stem));
1142
+ if (Gt.test(i.stem)) {
1143
+ t = E(E({}, t), at(i.stem));
1144
1144
  continue;
1145
1145
  }
1146
- var o = kt(i.stem);
1146
+ var o = zt(i.stem);
1147
1147
  o && (t = E(E({}, t), o));
1148
- var s = on(i.stem);
1148
+ var s = ln(i.stem);
1149
1149
  s && (t = E(E({}, t), s));
1150
1150
  }
1151
1151
  return t;
1152
1152
  }
1153
- var me = {
1153
+ var be = {
1154
1154
  "001": [
1155
1155
  "H",
1156
1156
  "h"
@@ -2565,15 +2565,15 @@ var me = {
2565
2565
  "h"
2566
2566
  ]
2567
2567
  };
2568
- function un(e, t) {
2568
+ function cn(e, t) {
2569
2569
  for (var r = "", n = 0; n < e.length; n++) {
2570
2570
  var i = e.charAt(n);
2571
2571
  if (i === "j") {
2572
2572
  for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2573
2573
  a++, n++;
2574
- var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = ln(t);
2574
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = fn(t);
2575
2575
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2576
- r += h;
2576
+ r += l;
2577
2577
  for (; o-- > 0; )
2578
2578
  r = u + r;
2579
2579
  } else
@@ -2581,7 +2581,7 @@ function un(e, t) {
2581
2581
  }
2582
2582
  return r;
2583
2583
  }
2584
- function ln(e) {
2584
+ function fn(e) {
2585
2585
  var t = e.hourCycle;
2586
2586
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2587
2587
  e.hourCycles && // @ts-ignore
@@ -2600,23 +2600,23 @@ function ln(e) {
2600
2600
  }
2601
2601
  var r = e.language, n;
2602
2602
  r !== "root" && (n = e.maximize().region);
2603
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2603
+ var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
2604
2604
  return i[0];
2605
2605
  }
2606
- var Le, hn = new RegExp("^".concat(Rt.source, "*")), cn = new RegExp("".concat(Rt.source, "*$"));
2606
+ var Me, mn = new RegExp("^".concat(Ut.source, "*")), dn = new RegExp("".concat(Ut.source, "*$"));
2607
2607
  function y(e, t) {
2608
2608
  return { start: e, end: t };
2609
2609
  }
2610
- var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, dn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, gn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, vn = yn ? Number.isSafeInteger : function(e) {
2610
+ var pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, bn = !!Object.fromEntries, yn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
2611
2611
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2612
- }, Ue = !0;
2612
+ }, Fe = !0;
2613
2613
  try {
2614
- var En = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2615
- Ue = ((Le = En.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2614
+ var Tn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2615
+ Fe = ((Me = Tn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2616
2616
  } catch {
2617
- Ue = !1;
2617
+ Fe = !1;
2618
2618
  }
2619
- var it = fn ? (
2619
+ var st = pn ? (
2620
2620
  // Native
2621
2621
  function(t, r, n) {
2622
2622
  return t.startsWith(r, n);
@@ -2626,7 +2626,7 @@ var it = fn ? (
2626
2626
  function(t, r, n) {
2627
2627
  return t.slice(n, n + r.length) === r;
2628
2628
  }
2629
- ), Ge = mn ? String.fromCodePoint : (
2629
+ ), ze = gn ? String.fromCodePoint : (
2630
2630
  // IE11
2631
2631
  function() {
2632
2632
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2638,9 +2638,9 @@ var it = fn ? (
2638
2638
  }
2639
2639
  return n;
2640
2640
  }
2641
- ), at = (
2641
+ ), ut = (
2642
2642
  // native
2643
- dn ? Object.fromEntries : (
2643
+ bn ? Object.fromEntries : (
2644
2644
  // Ponyfill
2645
2645
  function(t) {
2646
2646
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2650,7 +2650,7 @@ var it = fn ? (
2650
2650
  return r;
2651
2651
  }
2652
2652
  )
2653
- ), Ut = pn ? (
2653
+ ), jt = yn ? (
2654
2654
  // Native
2655
2655
  function(t, r) {
2656
2656
  return t.codePointAt(r);
@@ -2664,7 +2664,7 @@ var it = fn ? (
2664
2664
  return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2665
2665
  }
2666
2666
  }
2667
- ), _n = bn ? (
2667
+ ), wn = vn ? (
2668
2668
  // Native
2669
2669
  function(t) {
2670
2670
  return t.trimStart();
@@ -2672,9 +2672,9 @@ var it = fn ? (
2672
2672
  ) : (
2673
2673
  // Ponyfill
2674
2674
  function(t) {
2675
- return t.replace(hn, "");
2675
+ return t.replace(mn, "");
2676
2676
  }
2677
- ), xn = gn ? (
2677
+ ), Hn = _n ? (
2678
2678
  // Native
2679
2679
  function(t) {
2680
2680
  return t.trimEnd();
@@ -2682,32 +2682,32 @@ var it = fn ? (
2682
2682
  ) : (
2683
2683
  // Ponyfill
2684
2684
  function(t) {
2685
- return t.replace(cn, "");
2685
+ return t.replace(dn, "");
2686
2686
  }
2687
2687
  );
2688
- function Gt(e, t) {
2688
+ function Vt(e, t) {
2689
2689
  return new RegExp(e, t);
2690
2690
  }
2691
- var Fe;
2692
- if (Ue) {
2693
- var ot = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2694
- Fe = function(t, r) {
2691
+ var je;
2692
+ if (Fe) {
2693
+ var lt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2694
+ je = function(t, r) {
2695
2695
  var n;
2696
- ot.lastIndex = r;
2697
- var i = ot.exec(t);
2696
+ lt.lastIndex = r;
2697
+ var i = lt.exec(t);
2698
2698
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2699
2699
  };
2700
2700
  } else
2701
- Fe = function(t, r) {
2701
+ je = function(t, r) {
2702
2702
  for (var n = []; ; ) {
2703
- var i = Ut(t, r);
2704
- if (i === void 0 || Ft(i) || An(i))
2703
+ var i = jt(t, r);
2704
+ if (i === void 0 || Wt(i) || Ln(i))
2705
2705
  break;
2706
2706
  n.push(i), r += i >= 65536 ? 2 : 1;
2707
2707
  }
2708
- return Ge.apply(void 0, n);
2708
+ return ze.apply(void 0, n);
2709
2709
  };
2710
- var Tn = (
2710
+ var An = (
2711
2711
  /** @class */
2712
2712
  function() {
2713
2713
  function e(t, r) {
@@ -2731,14 +2731,14 @@ var Tn = (
2731
2731
  if (a === 35 && (r === "plural" || r === "selectordinal")) {
2732
2732
  var s = this.clonePosition();
2733
2733
  this.bump(), i.push({
2734
- type: v.pound,
2734
+ type: _.pound,
2735
2735
  location: y(s, this.clonePosition())
2736
2736
  });
2737
2737
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2738
2738
  if (n)
2739
2739
  break;
2740
- return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2741
- } else if (a === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2740
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2741
+ } else if (a === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2742
2742
  var o = this.parseTag(t, r);
2743
2743
  if (o.err)
2744
2744
  return o;
@@ -2759,7 +2759,7 @@ var Tn = (
2759
2759
  if (this.bumpSpace(), this.bumpIf("/>"))
2760
2760
  return {
2761
2761
  val: {
2762
- type: v.literal,
2762
+ type: _.literal,
2763
2763
  value: "<".concat(i, "/>"),
2764
2764
  location: y(n, this.clonePosition())
2765
2765
  },
@@ -2771,25 +2771,25 @@ var Tn = (
2771
2771
  return a;
2772
2772
  var o = a.val, s = this.clonePosition();
2773
2773
  if (this.bumpIf("</")) {
2774
- if (this.isEOF() || !ze(this.char()))
2775
- return this.error(g.INVALID_TAG, y(s, this.clonePosition()));
2776
- var h = this.clonePosition(), u = this.parseTagName();
2777
- return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2774
+ if (this.isEOF() || !Ve(this.char()))
2775
+ return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
2776
+ var l = this.clonePosition(), u = this.parseTagName();
2777
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2778
2778
  val: {
2779
- type: v.tag,
2779
+ type: _.tag,
2780
2780
  value: i,
2781
2781
  children: o,
2782
2782
  location: y(n, this.clonePosition())
2783
2783
  },
2784
2784
  err: null
2785
- } : this.error(g.INVALID_TAG, y(s, this.clonePosition())));
2785
+ } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
2786
2786
  } else
2787
- return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
2787
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2788
2788
  } else
2789
- return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
2789
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2790
2790
  }, e.prototype.parseTagName = function() {
2791
2791
  var t = this.offset();
2792
- for (this.bump(); !this.isEOF() && wn(this.char()); )
2792
+ for (this.bump(); !this.isEOF() && Bn(this.char()); )
2793
2793
  this.bump();
2794
2794
  return this.message.slice(t, this.offset());
2795
2795
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2811,14 +2811,14 @@ var Tn = (
2811
2811
  }
2812
2812
  break;
2813
2813
  }
2814
- var h = y(n, this.clonePosition());
2814
+ var l = y(n, this.clonePosition());
2815
2815
  return {
2816
- val: { type: v.literal, value: i, location: h },
2816
+ val: { type: _.literal, value: i, location: l },
2817
2817
  err: null
2818
2818
  };
2819
2819
  }, e.prototype.tryParseLeftAngleBracket = function() {
2820
2820
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2821
- !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2821
+ !Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
2822
2822
  }, e.prototype.tryParseQuote = function(t) {
2823
2823
  if (this.isEOF() || this.char() !== 39)
2824
2824
  return null;
@@ -2852,28 +2852,28 @@ var Tn = (
2852
2852
  r.push(n);
2853
2853
  this.bump();
2854
2854
  }
2855
- return Ge.apply(void 0, r);
2855
+ return ze.apply(void 0, r);
2856
2856
  }, e.prototype.tryParseUnquoted = function(t, r) {
2857
2857
  if (this.isEOF())
2858
2858
  return null;
2859
2859
  var n = this.char();
2860
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2860
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
2861
2861
  }, e.prototype.parseArgument = function(t, r) {
2862
2862
  var n = this.clonePosition();
2863
2863
  if (this.bump(), this.bumpSpace(), this.isEOF())
2864
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2864
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2865
2865
  if (this.char() === 125)
2866
- return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2866
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2867
2867
  var i = this.parseIdentifierIfPossible().value;
2868
2868
  if (!i)
2869
- return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2869
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2870
2870
  if (this.bumpSpace(), this.isEOF())
2871
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2871
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2872
2872
  switch (this.char()) {
2873
2873
  case 125:
2874
2874
  return this.bump(), {
2875
2875
  val: {
2876
- type: v.argument,
2876
+ type: _.argument,
2877
2877
  // value does not include the opening and closing braces.
2878
2878
  value: i,
2879
2879
  location: y(n, this.clonePosition())
@@ -2881,20 +2881,20 @@ var Tn = (
2881
2881
  err: null
2882
2882
  };
2883
2883
  case 44:
2884
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2884
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2885
2885
  default:
2886
- return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2886
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2887
2887
  }
2888
2888
  }, e.prototype.parseIdentifierIfPossible = function() {
2889
- var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
2889
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2890
2890
  this.bumpTo(i);
2891
2891
  var a = this.clonePosition(), o = y(t, a);
2892
2892
  return { value: n, location: o };
2893
2893
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2894
- var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2894
+ var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2895
2895
  switch (s) {
2896
2896
  case "":
2897
- return this.error(g.EXPECT_ARGUMENT_TYPE, y(o, h));
2897
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, l));
2898
2898
  case "number":
2899
2899
  case "date":
2900
2900
  case "time": {
@@ -2902,49 +2902,49 @@ var Tn = (
2902
2902
  var u = null;
2903
2903
  if (this.bumpIf(",")) {
2904
2904
  this.bumpSpace();
2905
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2905
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2906
2906
  if (c.err)
2907
2907
  return c;
2908
- var f = xn(c.val);
2908
+ var f = Hn(c.val);
2909
2909
  if (f.length === 0)
2910
- return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2911
- var p = y(l, this.clonePosition());
2912
- u = { style: f, styleLocation: p };
2910
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2911
+ var d = y(h, this.clonePosition());
2912
+ u = { style: f, styleLocation: d };
2913
2913
  }
2914
- var b = this.tryParseArgumentClose(i);
2915
- if (b.err)
2916
- return b;
2917
- var _ = y(i, this.clonePosition());
2918
- if (u && it(u?.style, "::", 0)) {
2919
- var T = _n(u.style.slice(2));
2914
+ var g = this.tryParseArgumentClose(i);
2915
+ if (g.err)
2916
+ return g;
2917
+ var x = y(i, this.clonePosition());
2918
+ if (u && st(u?.style, "::", 0)) {
2919
+ var w = wn(u.style.slice(2));
2920
2920
  if (s === "number") {
2921
- var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2921
+ var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
2922
2922
  return c.err ? c : {
2923
- val: { type: v.number, value: n, location: _, style: c.val },
2923
+ val: { type: _.number, value: n, location: x, style: c.val },
2924
2924
  err: null
2925
2925
  };
2926
2926
  } else {
2927
- if (T.length === 0)
2928
- return this.error(g.EXPECT_DATE_TIME_SKELETON, _);
2929
- var x = T;
2930
- this.locale && (x = un(T, this.locale));
2927
+ if (w.length === 0)
2928
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, x);
2929
+ var T = w;
2930
+ this.locale && (T = cn(w, this.locale));
2931
2931
  var f = {
2932
- type: z.dateTime,
2933
- pattern: x,
2932
+ type: J.dateTime,
2933
+ pattern: T,
2934
2934
  location: u.styleLocation,
2935
- parsedOptions: this.shouldParseSkeletons ? en(x) : {}
2936
- }, d = s === "date" ? v.date : v.time;
2935
+ parsedOptions: this.shouldParseSkeletons ? nn(T) : {}
2936
+ }, m = s === "date" ? _.date : _.time;
2937
2937
  return {
2938
- val: { type: d, value: n, location: _, style: f },
2938
+ val: { type: m, value: n, location: x, style: f },
2939
2939
  err: null
2940
2940
  };
2941
2941
  }
2942
2942
  }
2943
2943
  return {
2944
2944
  val: {
2945
- type: s === "number" ? v.number : s === "date" ? v.date : v.time,
2945
+ type: s === "number" ? _.number : s === "date" ? _.date : _.time,
2946
2946
  value: n,
2947
- location: _,
2947
+ location: x,
2948
2948
  style: (a = u?.style) !== null && a !== void 0 ? a : null
2949
2949
  },
2950
2950
  err: null
@@ -2953,52 +2953,52 @@ var Tn = (
2953
2953
  case "plural":
2954
2954
  case "selectordinal":
2955
2955
  case "select": {
2956
- var m = this.clonePosition();
2956
+ var v = this.clonePosition();
2957
2957
  if (this.bumpSpace(), !this.bumpIf(","))
2958
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(m, ye({}, m)));
2958
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(v, xe({}, v)));
2959
2959
  this.bumpSpace();
2960
- var w = this.parseIdentifierIfPossible(), A = 0;
2961
- if (s !== "select" && w.value === "offset") {
2960
+ var R = this.parseIdentifierIfPossible(), O = 0;
2961
+ if (s !== "select" && R.value === "offset") {
2962
2962
  if (!this.bumpIf(":"))
2963
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2963
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2964
2964
  this.bumpSpace();
2965
- var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2965
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2966
2966
  if (c.err)
2967
2967
  return c;
2968
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
2968
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = c.val;
2969
2969
  }
2970
- var ae = this.tryParsePluralOrSelectOptions(t, s, r, w);
2971
- if (ae.err)
2972
- return ae;
2973
- var b = this.tryParseArgumentClose(i);
2974
- if (b.err)
2975
- return b;
2976
- var Je = y(i, this.clonePosition());
2970
+ var p = this.tryParsePluralOrSelectOptions(t, s, r, R);
2971
+ if (p.err)
2972
+ return p;
2973
+ var g = this.tryParseArgumentClose(i);
2974
+ if (g.err)
2975
+ return g;
2976
+ var C = y(i, this.clonePosition());
2977
2977
  return s === "select" ? {
2978
2978
  val: {
2979
- type: v.select,
2979
+ type: _.select,
2980
2980
  value: n,
2981
- options: at(ae.val),
2982
- location: Je
2981
+ options: ut(p.val),
2982
+ location: C
2983
2983
  },
2984
2984
  err: null
2985
2985
  } : {
2986
2986
  val: {
2987
- type: v.plural,
2987
+ type: _.plural,
2988
2988
  value: n,
2989
- options: at(ae.val),
2990
- offset: A,
2989
+ options: ut(p.val),
2990
+ offset: O,
2991
2991
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2992
- location: Je
2992
+ location: C
2993
2993
  },
2994
2994
  err: null
2995
2995
  };
2996
2996
  }
2997
2997
  default:
2998
- return this.error(g.INVALID_ARGUMENT_TYPE, y(o, h));
2998
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(o, l));
2999
2999
  }
3000
3000
  }, e.prototype.tryParseArgumentClose = function(t) {
3001
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3001
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3002
3002
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3003
3003
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3004
3004
  var n = this.char();
@@ -3007,7 +3007,7 @@ var Tn = (
3007
3007
  this.bump();
3008
3008
  var i = this.clonePosition();
3009
3009
  if (!this.bumpUntil("'"))
3010
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3010
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3011
3011
  this.bump();
3012
3012
  break;
3013
3013
  }
@@ -3037,52 +3037,52 @@ var Tn = (
3037
3037
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3038
3038
  var n = [];
3039
3039
  try {
3040
- n = rn(t);
3040
+ n = on(t);
3041
3041
  } catch {
3042
- return this.error(g.INVALID_NUMBER_SKELETON, r);
3042
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3043
3043
  }
3044
3044
  return {
3045
3045
  val: {
3046
- type: z.number,
3046
+ type: J.number,
3047
3047
  tokens: n,
3048
3048
  location: r,
3049
- parsedOptions: this.shouldParseSkeletons ? sn(n) : {}
3049
+ parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
3050
3050
  },
3051
3051
  err: null
3052
3052
  };
3053
3053
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3054
- for (var a, o = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3054
+ for (var a, o = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3055
3055
  if (u.length === 0) {
3056
3056
  var c = this.clonePosition();
3057
3057
  if (r !== "select" && this.bumpIf("=")) {
3058
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3058
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3059
3059
  if (f.err)
3060
3060
  return f;
3061
- l = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3061
+ h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3062
3062
  } else
3063
3063
  break;
3064
3064
  }
3065
- if (h.has(u))
3066
- return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3065
+ if (l.has(u))
3066
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3067
3067
  u === "other" && (o = !0), this.bumpSpace();
3068
- var p = this.clonePosition();
3068
+ var d = this.clonePosition();
3069
3069
  if (!this.bumpIf("{"))
3070
- return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3071
- var b = this.parseMessage(t + 1, r, n);
3072
- if (b.err)
3073
- return b;
3074
- var _ = this.tryParseArgumentClose(p);
3075
- if (_.err)
3076
- return _;
3070
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3071
+ var g = this.parseMessage(t + 1, r, n);
3072
+ if (g.err)
3073
+ return g;
3074
+ var x = this.tryParseArgumentClose(d);
3075
+ if (x.err)
3076
+ return x;
3077
3077
  s.push([
3078
3078
  u,
3079
3079
  {
3080
- value: b.val,
3081
- location: y(p, this.clonePosition())
3080
+ value: g.val,
3081
+ location: y(d, this.clonePosition())
3082
3082
  }
3083
- ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
3083
+ ]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, h = a.location;
3084
3084
  }
3085
- return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3085
+ return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3086
3086
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3087
3087
  var n = 1, i = this.clonePosition();
3088
3088
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3093,8 +3093,8 @@ var Tn = (
3093
3093
  else
3094
3094
  break;
3095
3095
  }
3096
- var h = y(i, this.clonePosition());
3097
- return a ? (o *= n, vn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3096
+ var l = y(i, this.clonePosition());
3097
+ return a ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3098
3098
  }, e.prototype.offset = function() {
3099
3099
  return this.position.offset;
3100
3100
  }, e.prototype.isEOF = function() {
@@ -3109,7 +3109,7 @@ var Tn = (
3109
3109
  var t = this.position.offset;
3110
3110
  if (t >= this.message.length)
3111
3111
  throw Error("out of bound");
3112
- var r = Ut(this.message, t);
3112
+ var r = jt(this.message, t);
3113
3113
  if (r === void 0)
3114
3114
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3115
3115
  return r;
@@ -3128,7 +3128,7 @@ var Tn = (
3128
3128
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3129
3129
  }
3130
3130
  }, e.prototype.bumpIf = function(t) {
3131
- if (it(this.message, t, this.offset())) {
3131
+ if (st(this.message, t, this.offset())) {
3132
3132
  for (var r = 0; r < t.length; r++)
3133
3133
  this.bump();
3134
3134
  return !0;
@@ -3150,7 +3150,7 @@ var Tn = (
3150
3150
  break;
3151
3151
  }
3152
3152
  }, e.prototype.bumpSpace = function() {
3153
- for (; !this.isEOF() && Ft(this.char()); )
3153
+ for (; !this.isEOF() && Wt(this.char()); )
3154
3154
  this.bump();
3155
3155
  }, e.prototype.peek = function() {
3156
3156
  if (this.isEOF())
@@ -3160,47 +3160,47 @@ var Tn = (
3160
3160
  }, e;
3161
3161
  }()
3162
3162
  );
3163
- function ze(e) {
3163
+ function Ve(e) {
3164
3164
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3165
3165
  }
3166
- function Hn(e) {
3167
- return ze(e) || e === 47;
3166
+ function Sn(e) {
3167
+ return Ve(e) || e === 47;
3168
3168
  }
3169
- function wn(e) {
3169
+ function Bn(e) {
3170
3170
  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;
3171
3171
  }
3172
- function Ft(e) {
3172
+ function Wt(e) {
3173
3173
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3174
3174
  }
3175
- function An(e) {
3175
+ function Ln(e) {
3176
3176
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3177
3177
  }
3178
- function je(e) {
3178
+ function We(e) {
3179
3179
  e.forEach(function(t) {
3180
- if (delete t.location, Lt(t) || It(t))
3180
+ if (delete t.location, Rt(t) || Dt(t))
3181
3181
  for (var r in t.options)
3182
- delete t.options[r].location, je(t.options[r].value);
3182
+ delete t.options[r].location, We(t.options[r].value);
3183
3183
  else
3184
- Pt(t) && Nt(t.style) || (Ot(t) || Ct(t)) && ke(t.style) ? delete t.style.location : Mt(t) && je(t.children);
3184
+ It(t) && kt(t.style) || (Mt(t) || Nt(t)) && Ge(t.style) ? delete t.style.location : $t(t) && We(t.children);
3185
3185
  });
3186
3186
  }
3187
- function Sn(e, t) {
3188
- t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3189
- var r = new Tn(e, t).parse();
3187
+ function Pn(e, t) {
3188
+ t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3189
+ var r = new An(e, t).parse();
3190
3190
  if (r.err) {
3191
- var n = SyntaxError(g[r.err.kind]);
3191
+ var n = SyntaxError(b[r.err.kind]);
3192
3192
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3193
3193
  }
3194
- return t?.captureLocation || je(r.val), r.val;
3194
+ return t?.captureLocation || We(r.val), r.val;
3195
3195
  }
3196
- var j;
3196
+ var Z;
3197
3197
  (function(e) {
3198
3198
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3199
- })(j || (j = {}));
3200
- var we = (
3199
+ })(Z || (Z = {}));
3200
+ var Be = (
3201
3201
  /** @class */
3202
3202
  function(e) {
3203
- He(t, e);
3203
+ Se(t, e);
3204
3204
  function t(r, n, i) {
3205
3205
  var a = e.call(this, r) || this;
3206
3206
  return a.code = n, a.originalMessage = i, a;
@@ -3209,155 +3209,155 @@ var we = (
3209
3209
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3210
3210
  }, t;
3211
3211
  }(Error)
3212
- ), st = (
3212
+ ), ht = (
3213
3213
  /** @class */
3214
3214
  function(e) {
3215
- He(t, e);
3215
+ Se(t, e);
3216
3216
  function t(r, n, i, a) {
3217
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, a) || this;
3217
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, a) || this;
3218
3218
  }
3219
3219
  return t;
3220
- }(we)
3221
- ), Bn = (
3220
+ }(Be)
3221
+ ), On = (
3222
3222
  /** @class */
3223
3223
  function(e) {
3224
- He(t, e);
3224
+ Se(t, e);
3225
3225
  function t(r, n, i) {
3226
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
3226
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3227
3227
  }
3228
3228
  return t;
3229
- }(we)
3230
- ), Pn = (
3229
+ }(Be)
3230
+ ), Cn = (
3231
3231
  /** @class */
3232
3232
  function(e) {
3233
- He(t, e);
3233
+ Se(t, e);
3234
3234
  function t(r, n) {
3235
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
3235
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3236
3236
  }
3237
3237
  return t;
3238
- }(we)
3238
+ }(Be)
3239
3239
  ), H;
3240
3240
  (function(e) {
3241
3241
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3242
3242
  })(H || (H = {}));
3243
- function On(e) {
3243
+ function In(e) {
3244
3244
  return e.length < 2 ? e : e.reduce(function(t, r) {
3245
3245
  var n = t[t.length - 1];
3246
3246
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3247
3247
  }, []);
3248
3248
  }
3249
- function Cn(e) {
3249
+ function Mn(e) {
3250
3250
  return typeof e == "function";
3251
3251
  }
3252
- function be(e, t, r, n, i, a, o) {
3253
- if (e.length === 1 && et(e[0]))
3252
+ function _e(e, t, r, n, i, a, o) {
3253
+ if (e.length === 1 && nt(e[0]))
3254
3254
  return [
3255
3255
  {
3256
3256
  type: H.literal,
3257
3257
  value: e[0].value
3258
3258
  }
3259
3259
  ];
3260
- for (var s = [], h = 0, u = e; h < u.length; h++) {
3261
- var l = u[h];
3262
- if (et(l)) {
3260
+ for (var s = [], l = 0, u = e; l < u.length; l++) {
3261
+ var h = u[l];
3262
+ if (nt(h)) {
3263
3263
  s.push({
3264
3264
  type: H.literal,
3265
- value: l.value
3265
+ value: h.value
3266
3266
  });
3267
3267
  continue;
3268
3268
  }
3269
- if (Qr(l)) {
3269
+ if (tn(h)) {
3270
3270
  typeof a == "number" && s.push({
3271
3271
  type: H.literal,
3272
3272
  value: r.getNumberFormat(t).format(a)
3273
3273
  });
3274
3274
  continue;
3275
3275
  }
3276
- var c = l.value;
3276
+ var c = h.value;
3277
3277
  if (!(i && c in i))
3278
- throw new Pn(c, o);
3278
+ throw new Cn(c, o);
3279
3279
  var f = i[c];
3280
- if (Yr(l)) {
3280
+ if (en(h)) {
3281
3281
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3282
3282
  type: typeof f == "string" ? H.literal : H.object,
3283
3283
  value: f
3284
3284
  });
3285
3285
  continue;
3286
3286
  }
3287
- if (Ot(l)) {
3288
- var p = typeof l.style == "string" ? n.date[l.style] : ke(l.style) ? l.style.parsedOptions : void 0;
3287
+ if (Mt(h)) {
3288
+ var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3289
3289
  s.push({
3290
3290
  type: H.literal,
3291
- value: r.getDateTimeFormat(t, p).format(f)
3291
+ value: r.getDateTimeFormat(t, d).format(f)
3292
3292
  });
3293
3293
  continue;
3294
3294
  }
3295
- if (Ct(l)) {
3296
- var p = typeof l.style == "string" ? n.time[l.style] : ke(l.style) ? l.style.parsedOptions : n.time.medium;
3295
+ if (Nt(h)) {
3296
+ var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3297
3297
  s.push({
3298
3298
  type: H.literal,
3299
- value: r.getDateTimeFormat(t, p).format(f)
3299
+ value: r.getDateTimeFormat(t, d).format(f)
3300
3300
  });
3301
3301
  continue;
3302
3302
  }
3303
- if (Pt(l)) {
3304
- var p = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
3305
- p && p.scale && (f = f * (p.scale || 1)), s.push({
3303
+ if (It(h)) {
3304
+ var d = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
3305
+ d && d.scale && (f = f * (d.scale || 1)), s.push({
3306
3306
  type: H.literal,
3307
- value: r.getNumberFormat(t, p).format(f)
3307
+ value: r.getNumberFormat(t, d).format(f)
3308
3308
  });
3309
3309
  continue;
3310
3310
  }
3311
- if (Mt(l)) {
3312
- var b = l.children, _ = l.value, T = i[_];
3313
- if (!Cn(T))
3314
- throw new Bn(_, "function", o);
3315
- var x = be(b, t, r, n, i, a), d = T(x.map(function(A) {
3316
- return A.value;
3311
+ if ($t(h)) {
3312
+ var g = h.children, x = h.value, w = i[x];
3313
+ if (!Mn(w))
3314
+ throw new On(x, "function", o);
3315
+ var T = _e(g, t, r, n, i, a), m = w(T.map(function(O) {
3316
+ return O.value;
3317
3317
  }));
3318
- Array.isArray(d) || (d = [d]), s.push.apply(s, d.map(function(A) {
3318
+ Array.isArray(m) || (m = [m]), s.push.apply(s, m.map(function(O) {
3319
3319
  return {
3320
- type: typeof A == "string" ? H.literal : H.object,
3321
- value: A
3320
+ type: typeof O == "string" ? H.literal : H.object,
3321
+ value: O
3322
3322
  };
3323
3323
  }));
3324
3324
  }
3325
- if (Lt(l)) {
3326
- var m = l.options[f] || l.options.other;
3327
- if (!m)
3328
- throw new st(l.value, f, Object.keys(l.options), o);
3329
- s.push.apply(s, be(m.value, t, r, n, i));
3325
+ if (Rt(h)) {
3326
+ var v = h.options[f] || h.options.other;
3327
+ if (!v)
3328
+ throw new ht(h.value, f, Object.keys(h.options), o);
3329
+ s.push.apply(s, _e(v.value, t, r, n, i));
3330
3330
  continue;
3331
3331
  }
3332
- if (It(l)) {
3333
- var m = l.options["=".concat(f)];
3334
- if (!m) {
3332
+ if (Dt(h)) {
3333
+ var v = h.options["=".concat(f)];
3334
+ if (!v) {
3335
3335
  if (!Intl.PluralRules)
3336
- throw new we(`Intl.PluralRules is not available in this environment.
3336
+ throw new Be(`Intl.PluralRules is not available in this environment.
3337
3337
  Try polyfilling it using "@formatjs/intl-pluralrules"
3338
- `, j.MISSING_INTL_API, o);
3339
- var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3340
- m = l.options[w] || l.options.other;
3338
+ `, Z.MISSING_INTL_API, o);
3339
+ var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3340
+ v = h.options[R] || h.options.other;
3341
3341
  }
3342
- if (!m)
3343
- throw new st(l.value, f, Object.keys(l.options), o);
3344
- s.push.apply(s, be(m.value, t, r, n, i, f - (l.offset || 0)));
3342
+ if (!v)
3343
+ throw new ht(h.value, f, Object.keys(h.options), o);
3344
+ s.push.apply(s, _e(v.value, t, r, n, i, f - (h.offset || 0)));
3345
3345
  continue;
3346
3346
  }
3347
3347
  }
3348
- return On(s);
3348
+ return In(s);
3349
3349
  }
3350
- function Ln(e, t) {
3351
- return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3352
- return r[n] = S(S({}, e[n]), t[n] || {}), r;
3350
+ function Nn(e, t) {
3351
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3352
+ return r[n] = P(P({}, e[n]), t[n] || {}), r;
3353
3353
  }, {})) : e;
3354
3354
  }
3355
- function In(e, t) {
3355
+ function Rn(e, t) {
3356
3356
  return t ? Object.keys(e).reduce(function(r, n) {
3357
- return r[n] = Ln(e[n], t[n]), r;
3358
- }, S({}, e)) : e;
3357
+ return r[n] = Nn(e[n], t[n]), r;
3358
+ }, P({}, e)) : e;
3359
3359
  }
3360
- function Ie(e) {
3360
+ function Ne(e) {
3361
3361
  return {
3362
3362
  create: function() {
3363
3363
  return {
@@ -3371,39 +3371,39 @@ function Ie(e) {
3371
3371
  }
3372
3372
  };
3373
3373
  }
3374
- function Mn(e) {
3374
+ function Dn(e) {
3375
3375
  return e === void 0 && (e = {
3376
3376
  number: {},
3377
3377
  dateTime: {},
3378
3378
  pluralRules: {}
3379
3379
  }), {
3380
- getNumberFormat: Oe(function() {
3380
+ getNumberFormat: Ce(function() {
3381
3381
  for (var t, r = [], n = 0; n < arguments.length; n++)
3382
3382
  r[n] = arguments[n];
3383
- return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3383
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3384
3384
  }, {
3385
- cache: Ie(e.number),
3386
- strategy: Ce.variadic
3385
+ cache: Ne(e.number),
3386
+ strategy: Ie.variadic
3387
3387
  }),
3388
- getDateTimeFormat: Oe(function() {
3388
+ getDateTimeFormat: Ce(function() {
3389
3389
  for (var t, r = [], n = 0; n < arguments.length; n++)
3390
3390
  r[n] = arguments[n];
3391
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3391
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3392
3392
  }, {
3393
- cache: Ie(e.dateTime),
3394
- strategy: Ce.variadic
3393
+ cache: Ne(e.dateTime),
3394
+ strategy: Ie.variadic
3395
3395
  }),
3396
- getPluralRules: Oe(function() {
3396
+ getPluralRules: Ce(function() {
3397
3397
  for (var t, r = [], n = 0; n < arguments.length; n++)
3398
3398
  r[n] = arguments[n];
3399
- return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3399
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3400
3400
  }, {
3401
- cache: Ie(e.pluralRules),
3402
- strategy: Ce.variadic
3401
+ cache: Ne(e.pluralRules),
3402
+ strategy: Ie.variadic
3403
3403
  })
3404
3404
  };
3405
3405
  }
3406
- var zt = (
3406
+ var Xt = (
3407
3407
  /** @class */
3408
3408
  function() {
3409
3409
  function e(t, r, n, i) {
@@ -3413,20 +3413,20 @@ var zt = (
3413
3413
  number: {},
3414
3414
  dateTime: {},
3415
3415
  pluralRules: {}
3416
- }, this.format = function(h) {
3417
- var u = a.formatToParts(h);
3416
+ }, this.format = function(l) {
3417
+ var u = a.formatToParts(l);
3418
3418
  if (u.length === 1)
3419
3419
  return u[0].value;
3420
- var l = u.reduce(function(c, f) {
3420
+ var h = u.reduce(function(c, f) {
3421
3421
  return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3422
3422
  }, []);
3423
- return l.length <= 1 ? l[0] || "" : l;
3424
- }, this.formatToParts = function(h) {
3425
- return be(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3423
+ return h.length <= 1 ? h[0] || "" : h;
3424
+ }, this.formatToParts = function(l) {
3425
+ return _e(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
3426
3426
  }, this.resolvedOptions = function() {
3427
- var h;
3427
+ var l;
3428
3428
  return {
3429
- locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3429
+ locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3430
3430
  };
3431
3431
  }, this.getAst = function() {
3432
3432
  return a.ast;
@@ -3435,13 +3435,13 @@ var zt = (
3435
3435
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3436
3436
  var o = i || {};
3437
3437
  o.formatters;
3438
- var s = zr(o, ["formatters"]);
3439
- this.ast = e.__parse(t, S(S({}, s), { locale: this.resolvedLocale }));
3438
+ var s = Wr(o, ["formatters"]);
3439
+ this.ast = e.__parse(t, P(P({}, s), { locale: this.resolvedLocale }));
3440
3440
  } else
3441
3441
  this.ast = t;
3442
3442
  if (!Array.isArray(this.ast))
3443
3443
  throw new TypeError("A message must be provided as a String or AST.");
3444
- this.formats = In(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
3444
+ this.formats = Rn(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
3445
3445
  }
3446
3446
  return Object.defineProperty(e, "defaultLocale", {
3447
3447
  get: function() {
@@ -3454,7 +3454,7 @@ var zt = (
3454
3454
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3455
3455
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3456
3456
  }
3457
- }, e.__parse = Sn, e.formats = {
3457
+ }, e.__parse = Pn, e.formats = {
3458
3458
  number: {
3459
3459
  integer: {
3460
3460
  maximumFractionDigits: 0
@@ -3515,7 +3515,7 @@ var zt = (
3515
3515
  }, e;
3516
3516
  }()
3517
3517
  );
3518
- function Nn(e, t) {
3518
+ function $n(e, t) {
3519
3519
  if (t == null)
3520
3520
  return;
3521
3521
  if (t in e)
@@ -3536,101 +3536,101 @@ function Nn(e, t) {
3536
3536
  n = void 0;
3537
3537
  return n;
3538
3538
  }
3539
- const C = {}, Rn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), jt = (e, t) => {
3539
+ const D = {}, kn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), qt = (e, t) => {
3540
3540
  if (t == null)
3541
3541
  return;
3542
- if (t in C && e in C[t])
3543
- return C[t][e];
3544
- const r = ie(t);
3542
+ if (t in D && e in D[t])
3543
+ return D[t][e];
3544
+ const r = le(t);
3545
3545
  for (let n = 0; n < r.length; n++) {
3546
- const i = r[n], a = Dn(i, e);
3546
+ const i = r[n], a = Gn(i, e);
3547
3547
  if (a)
3548
- return Rn(e, t, a);
3548
+ return kn(e, t, a);
3549
3549
  }
3550
3550
  };
3551
- let Xe;
3552
- const ne = Te({});
3553
- function $n(e) {
3554
- return Xe[e] || null;
3551
+ let Ze;
3552
+ const ue = Ae({});
3553
+ function Un(e) {
3554
+ return Ze[e] || null;
3555
3555
  }
3556
- function Vt(e) {
3557
- return e in Xe;
3556
+ function Jt(e) {
3557
+ return e in Ze;
3558
3558
  }
3559
- function Dn(e, t) {
3560
- if (!Vt(e))
3559
+ function Gn(e, t) {
3560
+ if (!Jt(e))
3561
3561
  return null;
3562
- const r = $n(e);
3563
- return Nn(r, t);
3562
+ const r = Un(e);
3563
+ return $n(r, t);
3564
3564
  }
3565
- function kn(e) {
3565
+ function Fn(e) {
3566
3566
  if (e == null)
3567
3567
  return;
3568
- const t = ie(e);
3568
+ const t = le(e);
3569
3569
  for (let r = 0; r < t.length; r++) {
3570
3570
  const n = t[r];
3571
- if (Vt(n))
3571
+ if (Jt(n))
3572
3572
  return n;
3573
3573
  }
3574
3574
  }
3575
- function Wt(e, ...t) {
3576
- delete C[e], ne.update((r) => (r[e] = Fr.all([r[e] || {}, ...t]), r));
3575
+ function Zt(e, ...t) {
3576
+ delete D[e], ue.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3577
3577
  }
3578
- X(
3579
- [ne],
3578
+ Q(
3579
+ [ue],
3580
3580
  ([e]) => Object.keys(e)
3581
3581
  );
3582
- ne.subscribe((e) => Xe = e);
3583
- const ge = {};
3584
- function Un(e, t) {
3585
- ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3582
+ ue.subscribe((e) => Ze = e);
3583
+ const Ee = {};
3584
+ function zn(e, t) {
3585
+ Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3586
3586
  }
3587
- function Xt(e) {
3588
- return ge[e];
3587
+ function Yt(e) {
3588
+ return Ee[e];
3589
3589
  }
3590
- function Gn(e) {
3591
- return ie(e).map((t) => {
3592
- const r = Xt(t);
3590
+ function jn(e) {
3591
+ return le(e).map((t) => {
3592
+ const r = Yt(t);
3593
3593
  return [t, r ? [...r] : []];
3594
3594
  }).filter(([, t]) => t.length > 0);
3595
3595
  }
3596
- function ve(e) {
3597
- return e == null ? !1 : ie(e).some(
3596
+ function Te(e) {
3597
+ return e == null ? !1 : le(e).some(
3598
3598
  (t) => {
3599
3599
  var r;
3600
- return (r = Xt(t)) == null ? void 0 : r.size;
3600
+ return (r = Yt(t)) == null ? void 0 : r.size;
3601
3601
  }
3602
3602
  );
3603
3603
  }
3604
- function Fn(e, t) {
3604
+ function Vn(e, t) {
3605
3605
  return Promise.all(
3606
- t.map((n) => (Un(e, n), n().then((i) => i.default || i)))
3607
- ).then((n) => Wt(e, ...n));
3608
- }
3609
- const J = {};
3610
- function qt(e) {
3611
- if (!ve(e))
3612
- return e in J ? J[e] : Promise.resolve();
3613
- const t = Gn(e);
3614
- return J[e] = Promise.all(
3606
+ t.map((n) => (zn(e, n), n().then((i) => i.default || i)))
3607
+ ).then((n) => Zt(e, ...n));
3608
+ }
3609
+ const ee = {};
3610
+ function Qt(e) {
3611
+ if (!Te(e))
3612
+ return e in ee ? ee[e] : Promise.resolve();
3613
+ const t = jn(e);
3614
+ return ee[e] = Promise.all(
3615
3615
  t.map(
3616
- ([r, n]) => Fn(r, n)
3616
+ ([r, n]) => Vn(r, n)
3617
3617
  )
3618
3618
  ).then(() => {
3619
- if (ve(e))
3620
- return qt(e);
3621
- delete J[e];
3622
- }), J[e];
3619
+ if (Te(e))
3620
+ return Qt(e);
3621
+ delete ee[e];
3622
+ }), ee[e];
3623
3623
  }
3624
- var ut = Object.getOwnPropertySymbols, zn = Object.prototype.hasOwnProperty, jn = Object.prototype.propertyIsEnumerable, Vn = (e, t) => {
3624
+ var ct = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
3625
3625
  var r = {};
3626
3626
  for (var n in e)
3627
- zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3628
- if (e != null && ut)
3629
- for (var n of ut(e))
3630
- t.indexOf(n) < 0 && jn.call(e, n) && (r[n] = e[n]);
3627
+ Wn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3628
+ if (e != null && ct)
3629
+ for (var n of ct(e))
3630
+ t.indexOf(n) < 0 && Xn.call(e, n) && (r[n] = e[n]);
3631
3631
  return r;
3632
3632
  };
3633
- const Wn = {
3633
+ const Jn = {
3634
3634
  number: {
3635
3635
  scientific: { notation: "scientific" },
3636
3636
  engineering: { notation: "engineering" },
@@ -3660,183 +3660,183 @@ const Wn = {
3660
3660
  }
3661
3661
  }
3662
3662
  };
3663
- function Xn({ locale: e, id: t }) {
3663
+ function Zn({ locale: e, id: t }) {
3664
3664
  console.warn(
3665
- `[svelte-i18n] The message "${t}" was not found in "${ie(
3665
+ `[svelte-i18n] The message "${t}" was not found in "${le(
3666
3666
  e
3667
- ).join('", "')}".${ve(I()) ? `
3667
+ ).join('", "')}".${Te(k()) ? `
3668
3668
 
3669
3669
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3670
3670
  );
3671
3671
  }
3672
- const qn = {
3672
+ const Yn = {
3673
3673
  fallbackLocale: null,
3674
3674
  loadingDelay: 200,
3675
- formats: Wn,
3675
+ formats: Jn,
3676
3676
  warnOnMissingMessages: !0,
3677
3677
  handleMissingMessage: void 0,
3678
3678
  ignoreTag: !0
3679
- }, Y = qn;
3680
- function V() {
3681
- return Y;
3679
+ }, re = Yn;
3680
+ function Y() {
3681
+ return re;
3682
3682
  }
3683
- function Jn(e) {
3684
- const t = e, { formats: r } = t, n = Vn(t, ["formats"]);
3683
+ function Qn(e) {
3684
+ const t = e, { formats: r } = t, n = qn(t, ["formats"]);
3685
3685
  let i = e.fallbackLocale;
3686
3686
  if (e.initialLocale)
3687
3687
  try {
3688
- zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3688
+ Xt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3689
3689
  } catch {
3690
3690
  console.warn(
3691
3691
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3692
3692
  );
3693
3693
  }
3694
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Xn : console.warn(
3694
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Zn : console.warn(
3695
3695
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3696
- )), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), N.set(i);
3696
+ )), Object.assign(re, n, { initialLocale: i }), r && ("number" in r && Object.assign(re.formats.number, r.number), "date" in r && Object.assign(re.formats.date, r.date), "time" in r && Object.assign(re.formats.time, r.time)), U.set(i);
3697
3697
  }
3698
- const Me = Te(!1);
3699
- var Zn = Object.defineProperty, Yn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ti = (e, t) => {
3698
+ const Re = Ae(!1);
3699
+ var Kn = Object.defineProperty, ei = Object.defineProperties, ti = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
3700
3700
  for (var r in t || (t = {}))
3701
- Kn.call(t, r) && ht(e, r, t[r]);
3702
- if (lt)
3703
- for (var r of lt(t))
3704
- ei.call(t, r) && ht(e, r, t[r]);
3701
+ ri.call(t, r) && mt(e, r, t[r]);
3702
+ if (ft)
3703
+ for (var r of ft(t))
3704
+ ni.call(t, r) && mt(e, r, t[r]);
3705
3705
  return e;
3706
- }, ri = (e, t) => Yn(e, Qn(t));
3707
- let Ve;
3708
- const Ee = Te(null);
3709
- function ct(e) {
3706
+ }, ai = (e, t) => ei(e, ti(t));
3707
+ let Xe;
3708
+ const we = Ae(null);
3709
+ function dt(e) {
3710
3710
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3711
3711
  }
3712
- function ie(e, t = V().fallbackLocale) {
3713
- const r = ct(e);
3714
- return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3712
+ function le(e, t = Y().fallbackLocale) {
3713
+ const r = dt(e);
3714
+ return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3715
3715
  }
3716
- function I() {
3717
- return Ve ?? void 0;
3716
+ function k() {
3717
+ return Xe ?? void 0;
3718
3718
  }
3719
- Ee.subscribe((e) => {
3720
- Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3719
+ we.subscribe((e) => {
3720
+ Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3721
3721
  });
3722
- const ni = (e) => {
3723
- if (e && kn(e) && ve(e)) {
3724
- const { loadingDelay: t } = V();
3722
+ const oi = (e) => {
3723
+ if (e && Fn(e) && Te(e)) {
3724
+ const { loadingDelay: t } = Y();
3725
3725
  let r;
3726
- return typeof window < "u" && I() != null && t ? r = window.setTimeout(
3727
- () => Me.set(!0),
3726
+ return typeof window < "u" && k() != null && t ? r = window.setTimeout(
3727
+ () => Re.set(!0),
3728
3728
  t
3729
- ) : Me.set(!0), qt(e).then(() => {
3730
- Ee.set(e);
3729
+ ) : Re.set(!0), Qt(e).then(() => {
3730
+ we.set(e);
3731
3731
  }).finally(() => {
3732
- clearTimeout(r), Me.set(!1);
3732
+ clearTimeout(r), Re.set(!1);
3733
3733
  });
3734
3734
  }
3735
- return Ee.set(e);
3736
- }, N = ri(ti({}, Ee), {
3737
- set: ni
3738
- }), Ae = (e) => {
3735
+ return we.set(e);
3736
+ }, U = ai(ii({}, we), {
3737
+ set: oi
3738
+ }), Le = (e) => {
3739
3739
  const t = /* @__PURE__ */ Object.create(null);
3740
3740
  return (n) => {
3741
3741
  const i = JSON.stringify(n);
3742
3742
  return i in t ? t[i] : t[i] = e(n);
3743
3743
  };
3744
3744
  };
3745
- var ii = Object.defineProperty, _e = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3745
+ var si = Object.defineProperty, He = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
3746
3746
  for (var r in t || (t = {}))
3747
- Jt.call(t, r) && ft(e, r, t[r]);
3748
- if (_e)
3749
- for (var r of _e(t))
3750
- Zt.call(t, r) && ft(e, r, t[r]);
3747
+ Kt.call(t, r) && pt(e, r, t[r]);
3748
+ if (He)
3749
+ for (var r of He(t))
3750
+ er.call(t, r) && pt(e, r, t[r]);
3751
3751
  return e;
3752
- }, q = (e, t) => {
3752
+ }, K = (e, t) => {
3753
3753
  var r = {};
3754
3754
  for (var n in e)
3755
- Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3756
- if (e != null && _e)
3757
- for (var n of _e(e))
3758
- t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
3755
+ Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3756
+ if (e != null && He)
3757
+ for (var n of He(e))
3758
+ t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
3759
3759
  return r;
3760
3760
  };
3761
- const te = (e, t) => {
3762
- const { formats: r } = V();
3761
+ const oe = (e, t) => {
3762
+ const { formats: r } = Y();
3763
3763
  if (e in r && t in r[e])
3764
3764
  return r[e][t];
3765
3765
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3766
- }, ai = Ae(
3766
+ }, ui = Le(
3767
3767
  (e) => {
3768
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3768
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3769
3769
  if (r == null)
3770
3770
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3771
- return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3771
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3772
3772
  }
3773
- ), oi = Ae(
3773
+ ), li = Le(
3774
3774
  (e) => {
3775
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3775
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3776
3776
  if (r == null)
3777
3777
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3778
- return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3778
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3779
3779
  }
3780
- ), si = Ae(
3780
+ ), hi = Le(
3781
3781
  (e) => {
3782
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3782
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
3783
3783
  if (r == null)
3784
3784
  throw new Error(
3785
3785
  '[svelte-i18n] A "locale" must be set to format time values'
3786
3786
  );
3787
- return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3787
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3788
3788
  }
3789
- ), ui = (e = {}) => {
3789
+ ), ci = (e = {}) => {
3790
3790
  var t = e, {
3791
- locale: r = I()
3792
- } = t, n = q(t, [
3791
+ locale: r = k()
3792
+ } = t, n = K(t, [
3793
3793
  "locale"
3794
3794
  ]);
3795
- return ai(qe({ locale: r }, n));
3796
- }, li = (e = {}) => {
3795
+ return ui(Ye({ locale: r }, n));
3796
+ }, fi = (e = {}) => {
3797
3797
  var t = e, {
3798
- locale: r = I()
3799
- } = t, n = q(t, [
3798
+ locale: r = k()
3799
+ } = t, n = K(t, [
3800
3800
  "locale"
3801
3801
  ]);
3802
- return oi(qe({ locale: r }, n));
3803
- }, hi = (e = {}) => {
3802
+ return li(Ye({ locale: r }, n));
3803
+ }, mi = (e = {}) => {
3804
3804
  var t = e, {
3805
- locale: r = I()
3806
- } = t, n = q(t, [
3805
+ locale: r = k()
3806
+ } = t, n = K(t, [
3807
3807
  "locale"
3808
3808
  ]);
3809
- return si(qe({ locale: r }, n));
3810
- }, ci = Ae(
3809
+ return hi(Ye({ locale: r }, n));
3810
+ }, di = Le(
3811
3811
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3812
- (e, t = I()) => new zt(e, t, V().formats, {
3813
- ignoreTag: V().ignoreTag
3812
+ (e, t = k()) => new Xt(e, t, Y().formats, {
3813
+ ignoreTag: Y().ignoreTag
3814
3814
  })
3815
- ), fi = (e, t = {}) => {
3815
+ ), pi = (e, t = {}) => {
3816
3816
  var r, n, i, a;
3817
3817
  let o = t;
3818
3818
  typeof e == "object" && (o = e, e = o.id);
3819
3819
  const {
3820
3820
  values: s,
3821
- locale: h = I(),
3821
+ locale: l = k(),
3822
3822
  default: u
3823
3823
  } = o;
3824
- if (h == null)
3824
+ if (l == null)
3825
3825
  throw new Error(
3826
3826
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3827
3827
  );
3828
- let l = jt(e, h);
3829
- if (!l)
3830
- l = (a = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3831
- else if (typeof l != "string")
3828
+ let h = qt(e, l);
3829
+ if (!h)
3830
+ h = (a = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3831
+ else if (typeof h != "string")
3832
3832
  return console.warn(
3833
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3834
- ), l;
3833
+ `[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.`
3834
+ ), h;
3835
3835
  if (!s)
3836
- return l;
3837
- let c = l;
3836
+ return h;
3837
+ let c = h;
3838
3838
  try {
3839
- c = ci(l, h).format(s);
3839
+ c = di(h, l).format(s);
3840
3840
  } catch (f) {
3841
3841
  f instanceof Error && console.warn(
3842
3842
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3844,20 +3844,20 @@ const te = (e, t) => {
3844
3844
  );
3845
3845
  }
3846
3846
  return c;
3847
- }, mi = (e, t) => hi(t).format(e), di = (e, t) => li(t).format(e), pi = (e, t) => ui(t).format(e), bi = (e, t = I()) => jt(e, t), gi = X([N, ne], () => fi);
3848
- X([N], () => mi);
3849
- X([N], () => di);
3850
- X([N], () => pi);
3851
- X([N, ne], () => bi);
3852
- function mt(e, t) {
3853
- Wt(e, t);
3854
- }
3855
- function yi(e) {
3856
- Jn({
3847
+ }, gi = (e, t) => mi(t).format(e), bi = (e, t) => fi(t).format(e), yi = (e, t) => ci(t).format(e), vi = (e, t = k()) => qt(e, t), _i = Q([U, ue], () => pi);
3848
+ Q([U], () => gi);
3849
+ Q([U], () => bi);
3850
+ Q([U], () => yi);
3851
+ Q([U, ue], () => vi);
3852
+ function gt(e, t) {
3853
+ Zt(e, t);
3854
+ }
3855
+ function Ei(e) {
3856
+ Qn({
3857
3857
  fallbackLocale: "en"
3858
- }), N.set(e);
3858
+ }), U.set(e);
3859
3859
  }
3860
- const dt = {
3860
+ const bt = {
3861
3861
  en: {
3862
3862
  errorGeneralTitle: "Error Occurred",
3863
3863
  errorGeneralText: "Something went wrong",
@@ -3872,6 +3872,8 @@ const dt = {
3872
3872
  TransactionIsBlockedDueToNotCompletedKyc: "We apologise, but we cannot process the transaction because you haven't completed KYC. Please verify your identity or contact Customer Support for further assistance. Error Code 23601",
3873
3873
  InsufficientCasinoFunds: " Your withdrawal is over your available balance. Please check your available balance to adjust your withdrawal amount",
3874
3874
  DepositWageringLimit: "Attention! Your winnings balance has less than the amount you want to withdraw.",
3875
+ DepositWageringFetching: "Data fetching",
3876
+ DepositWageringLimitText: "Deposit wagering: ",
3875
3877
  AmountMinLimitExceeded: "Amount is smaller than PaymentMethod minimum limit",
3876
3878
  AmountMaxLimitExceeded: "Amount is bigger than PaymentMethod maximum limit",
3877
3879
  AmountIsMissing: "Amount is missing",
@@ -3913,6 +3915,8 @@ const dt = {
3913
3915
  TransactionIsBlockedDueToNotCompletedKyc: "İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. ",
3914
3916
  InsufficientCasinoFunds: "Çekmek istediğiniz tutar, mevcut bakiyenizin üzerindedir. Lütfen çekim tutarınızı belirlemek için bakiyenizi kontrol ediniz",
3915
3917
  DepositWageringLimit: "Para çekim işleminizi gerçekleştirebilmek için ana para çevriminizi tamamlamanız gerekmektedir. Ana para çevrimi hakkında bilgi almak için sitemiz genel şartlar ve kurallar bölümünü ziyaret edebilir ya da destek kanallarımız üzerinden bilgi alabilirsiniz.",
3918
+ DepositWageringFetching: "Veri yükleniyor",
3919
+ DepositWageringLimitText: "Depozit çevrim:",
3916
3920
  AmountMinLimitExceeded: "Tutar, Ödeme Yöntemi minimum sınırından daha küçük",
3917
3921
  AmountMaxLimitExceeded: "Tutar, Ödeme Yöntemi maksimum sınırından daha büyük",
3918
3922
  AmountIsMissing: "Tutar eksik",
@@ -3954,6 +3958,8 @@ const dt = {
3954
3958
  TransactionIsBlockedDueToNotCompletedKyc: "Nous sommes désolés, mais nous ne pouvons pas traiter la transaction car vous n’avez pas complété le KYC. Veuillez vérifier votre identité ou contacter le service client pour obtenir de l’aide. Code d’erreur 23601",
3955
3959
  InsufficientCasinoFunds: "Votre retrait dépasse votre solde disponible. Veuillez vérifier votre solde disponible afin d’ajuster le montant du retrait",
3956
3960
  DepositWageringLimit: "Attention ! Le solde de vos gains est inférieur au montant que vous souhaitez retirer.",
3961
+ DepositWageringLimitText: "Mise de dépôt:",
3962
+ DepositWageringFetching: "Chargement des données",
3957
3963
  AmountMinLimitExceeded: "Le montant est inférieur à la limite minimale du moyen de paiement",
3958
3964
  AmountMaxLimitExceeded: "Le montant est supérieur à la limite maximale du moyen de paiement",
3959
3965
  AmountIsMissing: "Le montant est manquant",
@@ -3982,354 +3988,474 @@ const dt = {
3982
3988
  InvalidAccount: "Compte invalide"
3983
3989
  }
3984
3990
  };
3985
- function vi(e) {
3986
- er(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3991
+ function xi(e) {
3992
+ ir(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}');
3987
3993
  }
3988
- const Ei = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({}), xi = (e) => ({}), gt = (e) => ({}), Ti = (e) => ({}), yt = (e) => ({ class: "CashierErrorIcon" });
3989
- function vt(e) {
3994
+ const Ti = (e) => ({}), yt = (e) => ({}), wi = (e) => ({}), vt = (e) => ({}), Hi = (e) => ({}), _t = (e) => ({}), Ai = (e) => ({}), Et = (e) => ({ class: "CashierErrorIcon" });
3995
+ function xt(e) {
3990
3996
  let t, r;
3991
3997
  return {
3992
3998
  c() {
3993
- t = L("ui-image"), Ye(t.src, r = `${/*assetsurl*/
3994
- e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
3999
+ t = L("ui-image"), et(t.src, r = `${/*assetsurl*/
4000
+ e[0]}/error-general-icon.png`) || pe(t, "src", r), pe(t, "width", "300px"), pe(t, "alt", "error");
3995
4001
  },
3996
4002
  m(n, i) {
3997
- W(n, t, i);
4003
+ S(n, t, i);
3998
4004
  },
3999
4005
  p(n, i) {
4000
4006
  i & /*assetsurl*/
4001
- 1 && !Ye(t.src, r = `${/*assetsurl*/
4002
- n[0]}/error-general-icon.png`) && ce(t, "src", r);
4007
+ 1 && !et(t.src, r = `${/*assetsurl*/
4008
+ n[0]}/error-general-icon.png`) && pe(t, "src", r);
4003
4009
  },
4004
4010
  d(n) {
4005
- n && M(t);
4011
+ n && A(t);
4006
4012
  }
4007
4013
  };
4008
4014
  }
4009
- function Hi(e) {
4015
+ function Si(e) {
4010
4016
  let t, r = (
4011
4017
  /*assetsurl*/
4012
- e[0] && vt(e)
4018
+ e[0] && xt(e)
4013
4019
  );
4014
4020
  return {
4015
4021
  c() {
4016
- r && r.c(), t = nr();
4022
+ r && r.c(), t = Je();
4017
4023
  },
4018
4024
  m(n, i) {
4019
- r && r.m(n, i), W(n, t, i);
4025
+ r && r.m(n, i), S(n, t, i);
4020
4026
  },
4021
4027
  p(n, i) {
4022
4028
  /*assetsurl*/
4023
- n[0] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4029
+ n[0] ? r ? r.p(n, i) : (r = xt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4024
4030
  },
4025
4031
  d(n) {
4026
- n && M(t), r && r.d(n);
4032
+ n && A(t), r && r.d(n);
4033
+ }
4034
+ };
4035
+ }
4036
+ function Tt(e) {
4037
+ let t;
4038
+ function r(a, o) {
4039
+ return (
4040
+ /*depositWageringAmount*/
4041
+ a[3] < 0 ? Li : Bi
4042
+ );
4043
+ }
4044
+ let n = r(e), i = n(e);
4045
+ return {
4046
+ c() {
4047
+ i.c(), t = Je();
4048
+ },
4049
+ m(a, o) {
4050
+ i.m(a, o), S(a, t, o);
4051
+ },
4052
+ p(a, o) {
4053
+ n === (n = r(a)) && i ? i.p(a, o) : (i.d(1), i = n(a), i && (i.c(), i.m(t.parentNode, t)));
4054
+ },
4055
+ d(a) {
4056
+ a && A(t), i.d(a);
4027
4057
  }
4028
4058
  };
4029
4059
  }
4030
- function wi(e) {
4060
+ function Bi(e) {
4031
4061
  let t, r = (
4032
4062
  /*$_*/
4033
- e[3](`${/*errorcode*/
4034
- e[1] || "errorGeneralText"}`) + ""
4035
- ), n;
4063
+ e[5]("DepositWageringLimitText") + ""
4064
+ ), n, i, a = (
4065
+ /*depositWageringAmount*/
4066
+ e[3] > 0 && wt(e)
4067
+ );
4068
+ return {
4069
+ c() {
4070
+ t = L("span"), n = $(r), i = V(), a && a.c(), N(t, "class", "CashierErrorText");
4071
+ },
4072
+ m(o, s) {
4073
+ S(o, t, s), B(t, n), B(t, i), a && a.m(t, null);
4074
+ },
4075
+ p(o, s) {
4076
+ s & /*$_*/
4077
+ 32 && r !== (r = /*$_*/
4078
+ o[5]("DepositWageringLimitText") + "") && X(n, r), /*depositWageringAmount*/
4079
+ o[3] > 0 ? a ? a.p(o, s) : (a = wt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4080
+ },
4081
+ d(o) {
4082
+ o && A(t), a && a.d();
4083
+ }
4084
+ };
4085
+ }
4086
+ function Li(e) {
4087
+ let t, r, n = (
4088
+ /*$_*/
4089
+ e[5]("DepositWageringFetching") + ""
4090
+ ), i;
4091
+ return {
4092
+ c() {
4093
+ t = L("div"), r = L("span"), i = $(n), N(r, "class", "CashierErrorText LoadingText"), N(t, "class", "WageringFetch");
4094
+ },
4095
+ m(a, o) {
4096
+ S(a, t, o), B(t, r), B(r, i);
4097
+ },
4098
+ p(a, o) {
4099
+ o & /*$_*/
4100
+ 32 && n !== (n = /*$_*/
4101
+ a[5]("DepositWageringFetching") + "") && X(i, n);
4102
+ },
4103
+ d(a) {
4104
+ a && A(t);
4105
+ }
4106
+ };
4107
+ }
4108
+ function wt(e) {
4109
+ let t, r, n;
4036
4110
  return {
4037
4111
  c() {
4038
- t = L("span"), n = xe(r), G(t, "class", "CashierErrorText");
4112
+ t = $(
4113
+ /*depositWageringAmount*/
4114
+ e[3]
4115
+ ), r = V(), n = $(
4116
+ /*depositWageringCurrency*/
4117
+ e[4]
4118
+ );
4039
4119
  },
4040
4120
  m(i, a) {
4041
- W(i, t, a), O(t, n);
4121
+ S(i, t, a), S(i, r, a), S(i, n, a);
4042
4122
  },
4043
4123
  p(i, a) {
4044
- a & /*$_, errorcode*/
4045
- 10 && r !== (r = /*$_*/
4046
- i[3](`${/*errorcode*/
4047
- i[1] || "errorGeneralText"}`) + "") && Ht(n, r);
4124
+ a & /*depositWageringAmount*/
4125
+ 8 && X(
4126
+ t,
4127
+ /*depositWageringAmount*/
4128
+ i[3]
4129
+ ), a & /*depositWageringCurrency*/
4130
+ 16 && X(
4131
+ n,
4132
+ /*depositWageringCurrency*/
4133
+ i[4]
4134
+ );
4048
4135
  },
4049
4136
  d(i) {
4050
- i && M(t);
4137
+ i && (A(t), A(r), A(n));
4138
+ }
4139
+ };
4140
+ }
4141
+ function Pi(e) {
4142
+ let t, r = (
4143
+ /*$_*/
4144
+ e[5](`${/*errorcode*/
4145
+ e[1] || "errorGeneralText"}`) + ""
4146
+ ), n, i, a, o = (
4147
+ /*errorcode*/
4148
+ e[1] == "DepositWageringLimit" && Tt(e)
4149
+ );
4150
+ return {
4151
+ c() {
4152
+ t = L("span"), n = $(r), i = V(), o && o.c(), a = Je(), N(t, "class", "CashierErrorText");
4153
+ },
4154
+ m(s, l) {
4155
+ S(s, t, l), B(t, n), S(s, i, l), o && o.m(s, l), S(s, a, l);
4156
+ },
4157
+ p(s, l) {
4158
+ l & /*$_, errorcode*/
4159
+ 34 && r !== (r = /*$_*/
4160
+ s[5](`${/*errorcode*/
4161
+ s[1] || "errorGeneralText"}`) + "") && X(n, r), /*errorcode*/
4162
+ s[1] == "DepositWageringLimit" ? o ? o.p(s, l) : (o = Tt(s), o.c(), o.m(a.parentNode, a)) : o && (o.d(1), o = null);
4163
+ },
4164
+ d(s) {
4165
+ s && (A(t), A(i), A(a)), o && o.d(s);
4051
4166
  }
4052
4167
  };
4053
4168
  }
4054
- function Ai(e) {
4169
+ function Oi(e) {
4055
4170
  let t, r, n = (
4056
4171
  /*$_*/
4057
- e[3]("errorGeneralButton") + ""
4172
+ e[5]("errorGeneralButton") + ""
4058
4173
  ), i, a, o;
4059
4174
  return {
4060
4175
  c() {
4061
- t = L("button"), r = L("span"), i = xe(n), G(t, "class", "CashierErrorButton");
4176
+ t = L("button"), r = L("span"), i = $(n), N(t, "class", "CashierErrorButton");
4062
4177
  },
4063
- m(s, h) {
4064
- W(s, t, h), O(t, r), O(r, i), a || (o = ir(
4178
+ m(s, l) {
4179
+ S(s, t, l), B(t, r), B(r, i), a || (o = sr(
4065
4180
  t,
4066
4181
  "click",
4067
4182
  /*close*/
4068
- e[4]
4183
+ e[6]
4069
4184
  ), a = !0);
4070
4185
  },
4071
- p(s, h) {
4072
- h & /*$_*/
4073
- 8 && n !== (n = /*$_*/
4074
- s[3]("errorGeneralButton") + "") && Ht(i, n);
4186
+ p(s, l) {
4187
+ l & /*$_*/
4188
+ 32 && n !== (n = /*$_*/
4189
+ s[5]("errorGeneralButton") + "") && X(i, n);
4075
4190
  },
4076
4191
  d(s) {
4077
- s && M(t), a = !1, o();
4192
+ s && A(t), a = !1, o();
4078
4193
  }
4079
4194
  };
4080
4195
  }
4081
- function Si(e) {
4196
+ function Ci(e) {
4082
4197
  let t, r, n, i, a, o;
4083
4198
  const s = (
4084
4199
  /*#slots*/
4085
- e[11].icon
4086
- ), h = se(
4200
+ e[13].icon
4201
+ ), l = ce(
4087
4202
  s,
4088
4203
  e,
4089
4204
  /*$$scope*/
4090
- e[10],
4091
- yt
4092
- ), u = h || Hi(e), l = (
4205
+ e[12],
4206
+ Et
4207
+ ), u = l || Si(e), h = (
4093
4208
  /*#slots*/
4094
- e[11].title
4095
- ), c = se(
4096
- l,
4209
+ e[13].title
4210
+ ), c = ce(
4211
+ h,
4097
4212
  e,
4098
4213
  /*$$scope*/
4099
- e[10],
4100
- gt
4214
+ e[12],
4215
+ _t
4101
4216
  ), f = (
4102
4217
  /*#slots*/
4103
- e[11].text
4104
- ), p = se(
4218
+ e[13].text
4219
+ ), d = ce(
4105
4220
  f,
4106
4221
  e,
4107
4222
  /*$$scope*/
4108
- e[10],
4109
- bt
4110
- ), b = p || wi(e), _ = (
4223
+ e[12],
4224
+ vt
4225
+ ), g = d || Pi(e), x = (
4111
4226
  /*#slots*/
4112
- e[11].button
4113
- ), T = se(
4114
- _,
4227
+ e[13].button
4228
+ ), w = ce(
4229
+ x,
4115
4230
  e,
4116
4231
  /*$$scope*/
4117
- e[10],
4118
- pt
4119
- ), x = T || Ai(e);
4232
+ e[12],
4233
+ yt
4234
+ ), T = w || Oi(e);
4120
4235
  return {
4121
4236
  c() {
4122
- t = L("div"), r = L("div"), u && u.c(), n = Se(), c && c.c(), i = Se(), b && b.c(), a = Se(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
4237
+ t = L("div"), r = L("div"), u && u.c(), n = V(), c && c.c(), i = V(), g && g.c(), a = V(), T && T.c(), N(r, "class", "CashierErrorContent"), N(t, "class", "CashierError");
4123
4238
  },
4124
- m(d, m) {
4125
- W(d, t, m), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), b && b.m(r, null), O(r, a), x && x.m(r, null), e[12](t), o = !0;
4239
+ m(m, v) {
4240
+ S(m, t, v), B(t, r), u && u.m(r, null), B(r, n), c && c.m(r, null), B(r, i), g && g.m(r, null), B(r, a), T && T.m(r, null), e[14](t), o = !0;
4126
4241
  },
4127
- p(d, [m]) {
4128
- h ? h.p && (!o || m & /*$$scope*/
4129
- 1024) && le(
4130
- h,
4242
+ p(m, [v]) {
4243
+ l ? l.p && (!o || v & /*$$scope*/
4244
+ 4096) && me(
4245
+ l,
4131
4246
  s,
4132
- d,
4247
+ m,
4133
4248
  /*$$scope*/
4134
- d[10],
4135
- o ? ue(
4249
+ m[12],
4250
+ o ? fe(
4136
4251
  s,
4137
4252
  /*$$scope*/
4138
- d[10],
4139
- m,
4140
- Ti
4141
- ) : he(
4253
+ m[12],
4254
+ v,
4255
+ Ai
4256
+ ) : de(
4142
4257
  /*$$scope*/
4143
- d[10]
4258
+ m[12]
4144
4259
  ),
4145
- yt
4146
- ) : u && u.p && (!o || m & /*assetsurl*/
4147
- 1) && u.p(d, o ? m : -1), c && c.p && (!o || m & /*$$scope*/
4148
- 1024) && le(
4260
+ Et
4261
+ ) : u && u.p && (!o || v & /*assetsurl*/
4262
+ 1) && u.p(m, o ? v : -1), c && c.p && (!o || v & /*$$scope*/
4263
+ 4096) && me(
4149
4264
  c,
4150
- l,
4151
- d,
4265
+ h,
4266
+ m,
4152
4267
  /*$$scope*/
4153
- d[10],
4154
- o ? ue(
4155
- l,
4268
+ m[12],
4269
+ o ? fe(
4270
+ h,
4156
4271
  /*$$scope*/
4157
- d[10],
4158
- m,
4159
- xi
4160
- ) : he(
4272
+ m[12],
4273
+ v,
4274
+ Hi
4275
+ ) : de(
4161
4276
  /*$$scope*/
4162
- d[10]
4277
+ m[12]
4163
4278
  ),
4164
- gt
4165
- ), p ? p.p && (!o || m & /*$$scope*/
4166
- 1024) && le(
4167
- p,
4168
- f,
4279
+ _t
4280
+ ), d ? d.p && (!o || v & /*$$scope*/
4281
+ 4096) && me(
4169
4282
  d,
4283
+ f,
4284
+ m,
4170
4285
  /*$$scope*/
4171
- d[10],
4172
- o ? ue(
4286
+ m[12],
4287
+ o ? fe(
4173
4288
  f,
4174
4289
  /*$$scope*/
4175
- d[10],
4176
- m,
4177
- _i
4178
- ) : he(
4290
+ m[12],
4291
+ v,
4292
+ wi
4293
+ ) : de(
4179
4294
  /*$$scope*/
4180
- d[10]
4295
+ m[12]
4181
4296
  ),
4182
- bt
4183
- ) : b && b.p && (!o || m & /*$_, errorcode*/
4184
- 10) && b.p(d, o ? m : -1), T ? T.p && (!o || m & /*$$scope*/
4185
- 1024) && le(
4186
- T,
4187
- _,
4188
- d,
4297
+ vt
4298
+ ) : g && g.p && (!o || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode*/
4299
+ 58) && g.p(m, o ? v : -1), w ? w.p && (!o || v & /*$$scope*/
4300
+ 4096) && me(
4301
+ w,
4302
+ x,
4303
+ m,
4189
4304
  /*$$scope*/
4190
- d[10],
4191
- o ? ue(
4192
- _,
4305
+ m[12],
4306
+ o ? fe(
4307
+ x,
4193
4308
  /*$$scope*/
4194
- d[10],
4195
- m,
4196
- Ei
4197
- ) : he(
4309
+ m[12],
4310
+ v,
4311
+ Ti
4312
+ ) : de(
4198
4313
  /*$$scope*/
4199
- d[10]
4314
+ m[12]
4200
4315
  ),
4201
- pt
4202
- ) : x && x.p && (!o || m & /*$_*/
4203
- 8) && x.p(d, o ? m : -1);
4316
+ yt
4317
+ ) : T && T.p && (!o || v & /*$_*/
4318
+ 32) && T.p(m, o ? v : -1);
4204
4319
  },
4205
- i(d) {
4206
- o || (Z(u, d), Z(c, d), Z(b, d), Z(x, d), o = !0);
4320
+ i(m) {
4321
+ o || (te(u, m), te(c, m), te(g, m), te(T, m), o = !0);
4207
4322
  },
4208
- o(d) {
4209
- fe(u, d), fe(c, d), fe(b, d), fe(x, d), o = !1;
4323
+ o(m) {
4324
+ ge(u, m), ge(c, m), ge(g, m), ge(T, m), o = !1;
4210
4325
  },
4211
- d(d) {
4212
- d && M(t), u && u.d(d), c && c.d(d), b && b.d(d), x && x.d(d), e[12](null);
4326
+ d(m) {
4327
+ m && A(t), u && u.d(m), c && c.d(m), g && g.d(m), T && T.d(m), e[14](null);
4213
4328
  }
4214
4329
  };
4215
4330
  }
4216
- function Bi(e, t, r) {
4331
+ function Ii(e, t, r) {
4217
4332
  let n;
4218
- Kt(e, gi, (m) => r(3, n = m));
4219
- let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, b;
4220
- const _ = () => {
4221
- yi(s);
4222
- }, T = () => {
4223
- fetch(c).then((w) => w.json()).then((w) => {
4224
- Object.keys(w).forEach((A) => {
4225
- mt(A, w[A]);
4333
+ nr(e, _i, (p) => r(5, n = p));
4334
+ let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, d, g, x = -1, w;
4335
+ const T = () => {
4336
+ Ei(s);
4337
+ }, m = () => {
4338
+ let p = new URL(c);
4339
+ fetch(p).then((C) => C.json()).then((C) => {
4340
+ Object.keys(C).forEach((Qe) => {
4341
+ gt(Qe, C[Qe]);
4226
4342
  });
4227
- }).catch((w) => {
4228
- console.error(w);
4343
+ }).catch((C) => {
4344
+ console.error(C);
4229
4345
  });
4230
4346
  };
4231
- Object.keys(dt).forEach((m) => {
4232
- mt(m, dt[m]);
4347
+ Object.keys(bt).forEach((p) => {
4348
+ gt(p, bt[p]);
4233
4349
  });
4234
- const x = () => {
4350
+ const v = () => {
4235
4351
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4352
+ }, R = (p) => {
4353
+ if (p.data)
4354
+ switch (p.data.type) {
4355
+ case "DepositWageringAmount":
4356
+ r(3, x = p.data.amount), r(4, w = p.data.currency);
4357
+ break;
4358
+ }
4236
4359
  };
4237
- ur(() => () => {
4238
- });
4239
- function d(m) {
4240
- Ne[m ? "unshift" : "push"](() => {
4241
- p = m, r(2, p);
4360
+ cr(() => (window.addEventListener("message", R, !1), () => {
4361
+ window.removeEventListener("message", R);
4362
+ }));
4363
+ function O(p) {
4364
+ De[p ? "unshift" : "push"](() => {
4365
+ d = p, r(2, d);
4242
4366
  });
4243
4367
  }
4244
- return e.$$set = (m) => {
4245
- "assetsurl" in m && r(0, o = m.assetsurl), "lang" in m && r(5, s = m.lang), "errorcode" in m && r(1, h = m.errorcode), "clientstyling" in m && r(6, u = m.clientstyling), "clientstylingurl" in m && r(7, l = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "mbsource" in m && r(9, f = m.mbsource), "$$scope" in m && r(10, a = m.$$scope);
4368
+ return e.$$set = (p) => {
4369
+ "assetsurl" in p && r(0, o = p.assetsurl), "lang" in p && r(7, s = p.lang), "errorcode" in p && r(1, l = p.errorcode), "clientstyling" in p && r(8, u = p.clientstyling), "clientstylingurl" in p && r(9, h = p.clientstylingurl), "translationurl" in p && r(10, c = p.translationurl), "mbsource" in p && r(11, f = p.mbsource), "$$scope" in p && r(12, a = p.$$scope);
4246
4370
  }, e.$$.update = () => {
4247
4371
  e.$$.dirty & /*lang*/
4248
- 32 && s && _(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4249
- 68 && u && p && _r(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4250
- 132 && l && p && xr(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4251
- 516 && f && p && Tr(p, `${f}.Style`, b), e.$$.dirty & /*translationurl*/
4252
- 256 && c && T();
4372
+ 128 && s && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4373
+ 260 && u && d && wr(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4374
+ 516 && h && d && Hr(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4375
+ 2052 && f && d && Ar(d, `${f}.Style`, g), e.$$.dirty & /*translationurl*/
4376
+ 1024 && c && m();
4253
4377
  }, [
4254
4378
  o,
4255
- h,
4256
- p,
4257
- n,
4379
+ l,
4380
+ d,
4258
4381
  x,
4382
+ w,
4383
+ n,
4384
+ v,
4259
4385
  s,
4260
4386
  u,
4261
- l,
4387
+ h,
4262
4388
  c,
4263
4389
  f,
4264
4390
  a,
4265
4391
  i,
4266
- d
4392
+ O
4267
4393
  ];
4268
4394
  }
4269
- class Pi extends vr {
4395
+ class Mi extends xr {
4270
4396
  constructor(t) {
4271
- super(), gr(
4397
+ super(), _r(
4272
4398
  this,
4273
4399
  t,
4274
- Bi,
4275
- Si,
4276
- _t,
4400
+ Ii,
4401
+ Ci,
4402
+ At,
4277
4403
  {
4278
4404
  assetsurl: 0,
4279
- lang: 5,
4405
+ lang: 7,
4280
4406
  errorcode: 1,
4281
- clientstyling: 6,
4282
- clientstylingurl: 7,
4283
- translationurl: 8,
4284
- mbsource: 9
4407
+ clientstyling: 8,
4408
+ clientstylingurl: 9,
4409
+ translationurl: 10,
4410
+ mbsource: 11
4285
4411
  },
4286
- vi
4412
+ xi
4287
4413
  );
4288
4414
  }
4289
4415
  get assetsurl() {
4290
4416
  return this.$$.ctx[0];
4291
4417
  }
4292
4418
  set assetsurl(t) {
4293
- this.$$set({ assetsurl: t }), B();
4419
+ this.$$set({ assetsurl: t }), I();
4294
4420
  }
4295
4421
  get lang() {
4296
- return this.$$.ctx[5];
4422
+ return this.$$.ctx[7];
4297
4423
  }
4298
4424
  set lang(t) {
4299
- this.$$set({ lang: t }), B();
4425
+ this.$$set({ lang: t }), I();
4300
4426
  }
4301
4427
  get errorcode() {
4302
4428
  return this.$$.ctx[1];
4303
4429
  }
4304
4430
  set errorcode(t) {
4305
- this.$$set({ errorcode: t }), B();
4431
+ this.$$set({ errorcode: t }), I();
4306
4432
  }
4307
4433
  get clientstyling() {
4308
- return this.$$.ctx[6];
4434
+ return this.$$.ctx[8];
4309
4435
  }
4310
4436
  set clientstyling(t) {
4311
- this.$$set({ clientstyling: t }), B();
4437
+ this.$$set({ clientstyling: t }), I();
4312
4438
  }
4313
4439
  get clientstylingurl() {
4314
- return this.$$.ctx[7];
4440
+ return this.$$.ctx[9];
4315
4441
  }
4316
4442
  set clientstylingurl(t) {
4317
- this.$$set({ clientstylingurl: t }), B();
4443
+ this.$$set({ clientstylingurl: t }), I();
4318
4444
  }
4319
4445
  get translationurl() {
4320
- return this.$$.ctx[8];
4446
+ return this.$$.ctx[10];
4321
4447
  }
4322
4448
  set translationurl(t) {
4323
- this.$$set({ translationurl: t }), B();
4449
+ this.$$set({ translationurl: t }), I();
4324
4450
  }
4325
4451
  get mbsource() {
4326
- return this.$$.ctx[9];
4452
+ return this.$$.ctx[11];
4327
4453
  }
4328
4454
  set mbsource(t) {
4329
- this.$$set({ mbsource: t }), B();
4455
+ this.$$set({ mbsource: t }), I();
4330
4456
  }
4331
4457
  }
4332
- yr(Pi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4458
+ Er(Mi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4333
4459
  export {
4334
- Pi as C
4460
+ Mi as C
4335
4461
  };