@everymatrix/cashier-error 1.99.22 → 1.99.24

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,6 @@
1
- import "../stencil/ui-image-Ch-GHki1.js";
2
1
  function M() {
3
2
  }
4
- function ln(e, t) {
3
+ function yn(e, t) {
5
4
  for (const n in t)
6
5
  e[n] = t[n];
7
6
  return (
@@ -21,14 +20,14 @@ function ne(e) {
21
20
  function Ke(e) {
22
21
  return typeof e == "function";
23
22
  }
24
- function Ct(e, t) {
23
+ function Ye(e, t) {
25
24
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
25
  }
27
26
  let fe;
28
27
  function rt(e, t) {
29
28
  return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
30
29
  }
31
- function un(e) {
30
+ function vn(e) {
32
31
  return Object.keys(e).length === 0;
33
32
  }
34
33
  function Lt(e, ...t) {
@@ -40,7 +39,7 @@ function Lt(e, ...t) {
40
39
  const n = e.subscribe(...t);
41
40
  return n.unsubscribe ? () => n.unsubscribe() : n;
42
41
  }
43
- function cn(e, t, n) {
42
+ function En(e, t, n) {
44
43
  e.$$.on_destroy.push(Lt(t, n));
45
44
  }
46
45
  function ge(e, t, n, r) {
@@ -50,7 +49,7 @@ function ge(e, t, n, r) {
50
49
  }
51
50
  }
52
51
  function Ht(e, t, n, r) {
53
- return e[1] && r ? ln(n.ctx.slice(), e[1](r(t))) : n.ctx;
52
+ return e[1] && r ? yn(n.ctx.slice(), e[1](r(t))) : n.ctx;
54
53
  }
55
54
  function pe(e, t, n, r) {
56
55
  if (e[2] && r) {
@@ -58,9 +57,9 @@ function pe(e, t, n, r) {
58
57
  if (t.dirty === void 0)
59
58
  return i;
60
59
  if (typeof i == "object") {
61
- const a = [], s = Math.max(t.dirty.length, i.length);
62
- for (let o = 0; o < s; o += 1)
63
- a[o] = t.dirty[o] | i[o];
60
+ const a = [], o = Math.max(t.dirty.length, i.length);
61
+ for (let s = 0; s < o; s += 1)
62
+ a[s] = t.dirty[s] | i[s];
64
63
  return a;
65
64
  }
66
65
  return t.dirty | i;
@@ -69,8 +68,8 @@ function pe(e, t, n, r) {
69
68
  }
70
69
  function be(e, t, n, r, i, a) {
71
70
  if (i) {
72
- const s = Ht(t, n, r, a);
73
- e.p(s, i);
71
+ const o = Ht(t, n, r, a);
72
+ e.p(o, i);
74
73
  }
75
74
  }
76
75
  function ye(e) {
@@ -82,17 +81,17 @@ function ye(e) {
82
81
  }
83
82
  return -1;
84
83
  }
85
- function S(e, t) {
84
+ function H(e, t) {
86
85
  e.appendChild(t);
87
86
  }
88
- function hn(e, t, n) {
89
- const r = dn(e);
87
+ function Mt(e, t, n) {
88
+ const r = _n(e);
90
89
  if (!r.getElementById(t)) {
91
90
  const i = B("style");
92
- i.id = t, i.textContent = n, mn(r, i);
91
+ i.id = t, i.textContent = n, xn(r, i);
93
92
  }
94
93
  }
95
- function dn(e) {
94
+ function _n(e) {
96
95
  if (!e)
97
96
  return document;
98
97
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -102,49 +101,118 @@ function dn(e) {
102
101
  t
103
102
  ) : e.ownerDocument;
104
103
  }
105
- function mn(e, t) {
106
- return S(
104
+ function xn(e, t) {
105
+ return H(
107
106
  /** @type {Document} */
108
107
  e.head || e,
109
108
  t
110
109
  ), t.sheet;
111
110
  }
112
- function A(e, t, n) {
111
+ function I(e, t, n) {
113
112
  e.insertBefore(t, n || null);
114
113
  }
115
- function T(e) {
114
+ function w(e) {
116
115
  e.parentNode && e.parentNode.removeChild(e);
117
116
  }
118
117
  function B(e) {
119
118
  return document.createElement(e);
120
119
  }
121
- function N(e) {
120
+ function kn(e) {
121
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
122
+ }
123
+ function z(e) {
122
124
  return document.createTextNode(e);
123
125
  }
124
- function Z() {
125
- return N(" ");
126
+ function G() {
127
+ return z(" ");
126
128
  }
127
- function Ye() {
128
- return N("");
129
+ function Se() {
130
+ return z("");
129
131
  }
130
- function fn(e, t, n, r) {
132
+ function Pt(e, t, n, r) {
131
133
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
132
134
  }
133
- function P(e, t, n) {
135
+ function T(e, t, n) {
134
136
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
135
137
  }
136
- function ve(e, t, n) {
137
- const r = t.toLowerCase();
138
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : P(e, t, n);
139
- }
140
- function gn(e) {
138
+ function Tn(e) {
141
139
  return Array.from(e.childNodes);
142
140
  }
143
141
  function K(e, t) {
144
142
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
143
  t);
146
144
  }
147
- function pn(e) {
145
+ class wn {
146
+ /**
147
+ * @private
148
+ * @default false
149
+ */
150
+ is_svg = !1;
151
+ /** parent for creating node */
152
+ e = void 0;
153
+ /** html tag nodes */
154
+ n = void 0;
155
+ /** target */
156
+ t = void 0;
157
+ /** anchor */
158
+ a = void 0;
159
+ constructor(t = !1) {
160
+ this.is_svg = t, this.e = this.n = null;
161
+ }
162
+ /**
163
+ * @param {string} html
164
+ * @returns {void}
165
+ */
166
+ c(t) {
167
+ this.h(t);
168
+ }
169
+ /**
170
+ * @param {string} html
171
+ * @param {HTMLElement | SVGElement} target
172
+ * @param {HTMLElement | SVGElement} anchor
173
+ * @returns {void}
174
+ */
175
+ m(t, n, r = null) {
176
+ this.e || (this.is_svg ? this.e = kn(
177
+ /** @type {keyof SVGElementTagNameMap} */
178
+ n.nodeName
179
+ ) : this.e = B(
180
+ /** @type {keyof HTMLElementTagNameMap} */
181
+ n.nodeType === 11 ? "TEMPLATE" : n.nodeName
182
+ ), this.t = n.tagName !== "TEMPLATE" ? n : (
183
+ /** @type {HTMLTemplateElement} */
184
+ n.content
185
+ ), this.c(t)), this.i(r);
186
+ }
187
+ /**
188
+ * @param {string} html
189
+ * @returns {void}
190
+ */
191
+ h(t) {
192
+ this.e.innerHTML = t, this.n = Array.from(
193
+ this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
194
+ );
195
+ }
196
+ /**
197
+ * @returns {void} */
198
+ i(t) {
199
+ for (let n = 0; n < this.n.length; n += 1)
200
+ I(this.t, this.n[n], t);
201
+ }
202
+ /**
203
+ * @param {string} html
204
+ * @returns {void}
205
+ */
206
+ p(t) {
207
+ this.d(), this.h(t), this.i(this.a);
208
+ }
209
+ /**
210
+ * @returns {void} */
211
+ d() {
212
+ this.n.forEach(w);
213
+ }
214
+ }
215
+ function In(e) {
148
216
  const t = {};
149
217
  return e.childNodes.forEach(
150
218
  /** @param {Element} node */
@@ -157,106 +225,109 @@ let ue;
157
225
  function le(e) {
158
226
  ue = e;
159
227
  }
160
- function bn() {
228
+ function An() {
161
229
  if (!ue)
162
230
  throw new Error("Function called outside component initialization");
163
231
  return ue;
164
232
  }
165
- function yn(e) {
166
- bn().$$.on_mount.push(e);
233
+ function Sn(e) {
234
+ An().$$.on_mount.push(e);
167
235
  }
168
- const W = [], Ue = [];
236
+ const X = [], Ue = [];
169
237
  let J = [];
170
- const it = [], vn = /* @__PURE__ */ Promise.resolve();
238
+ const it = [], Cn = /* @__PURE__ */ Promise.resolve();
171
239
  let Fe = !1;
172
- function En() {
173
- Fe || (Fe = !0, vn.then(C));
240
+ function Bn() {
241
+ Fe || (Fe = !0, Cn.then(C));
174
242
  }
175
243
  function Ge(e) {
176
244
  J.push(e);
177
245
  }
178
246
  const Me = /* @__PURE__ */ new Set();
179
- let j = 0;
247
+ let W = 0;
180
248
  function C() {
181
- if (j !== 0)
249
+ if (W !== 0)
182
250
  return;
183
251
  const e = ue;
184
252
  do {
185
253
  try {
186
- for (; j < W.length; ) {
187
- const t = W[j];
188
- j++, le(t), _n(t.$$);
254
+ for (; W < X.length; ) {
255
+ const t = X[W];
256
+ W++, le(t), Ln(t.$$);
189
257
  }
190
258
  } catch (t) {
191
- throw W.length = 0, j = 0, t;
259
+ throw X.length = 0, W = 0, t;
192
260
  }
193
- for (le(null), W.length = 0, j = 0; Ue.length; )
261
+ for (le(null), X.length = 0, W = 0; Ue.length; )
194
262
  Ue.pop()();
195
263
  for (let t = 0; t < J.length; t += 1) {
196
264
  const n = J[t];
197
265
  Me.has(n) || (Me.add(n), n());
198
266
  }
199
267
  J.length = 0;
200
- } while (W.length);
268
+ } while (X.length);
201
269
  for (; it.length; )
202
270
  it.pop()();
203
271
  Fe = !1, Me.clear(), le(e);
204
272
  }
205
- function _n(e) {
273
+ function Ln(e) {
206
274
  if (e.fragment !== null) {
207
275
  e.update(), ne(e.before_update);
208
276
  const t = e.dirty;
209
277
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
210
278
  }
211
279
  }
212
- function xn(e) {
280
+ function Hn(e) {
213
281
  const t = [], n = [];
214
282
  J.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), J = t;
215
283
  }
216
- const _e = /* @__PURE__ */ new Set();
217
- let U;
218
- function kn() {
219
- U = {
284
+ const Ee = /* @__PURE__ */ new Set();
285
+ let F;
286
+ function Ot() {
287
+ F = {
220
288
  r: 0,
221
289
  c: [],
222
- p: U
290
+ p: F
223
291
  // parent group
224
292
  };
225
293
  }
226
- function Tn() {
227
- U.r || ne(U.c), U = U.p;
294
+ function Dt() {
295
+ F.r || ne(F.c), F = F.p;
228
296
  }
229
- function O(e, t) {
230
- e && e.i && (_e.delete(e), e.i(t));
297
+ function L(e, t) {
298
+ e && e.i && (Ee.delete(e), e.i(t));
231
299
  }
232
- function X(e, t, n, r) {
300
+ function D(e, t, n, r) {
233
301
  if (e && e.o) {
234
- if (_e.has(e))
302
+ if (Ee.has(e))
235
303
  return;
236
- _e.add(e), U.c.push(() => {
237
- _e.delete(e), r && (n && e.d(1), r());
304
+ Ee.add(e), F.c.push(() => {
305
+ Ee.delete(e), r && (n && e.d(1), r());
238
306
  }), e.o(t);
239
307
  } else
240
308
  r && r();
241
309
  }
242
- function wn(e, t, n) {
310
+ function Mn(e) {
311
+ e && e.c();
312
+ }
313
+ function Nt(e, t, n) {
243
314
  const { fragment: r, after_update: i } = e.$$;
244
315
  r && r.m(t, n), Ge(() => {
245
316
  const a = e.$$.on_mount.map(Bt).filter(Ke);
246
317
  e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ne(a), e.$$.on_mount = [];
247
318
  }), i.forEach(Ge);
248
319
  }
249
- function In(e, t) {
320
+ function zt(e, t) {
250
321
  const n = e.$$;
251
- n.fragment !== null && (xn(n.after_update), ne(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
322
+ n.fragment !== null && (Hn(n.after_update), ne(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
252
323
  }
253
- function An(e, t) {
254
- e.$$.dirty[0] === -1 && (W.push(e), En(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
324
+ function Pn(e, t) {
325
+ e.$$.dirty[0] === -1 && (X.push(e), Bn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
255
326
  }
256
- function Sn(e, t, n, r, i, a, s = null, o = [-1]) {
257
- const l = ue;
327
+ function Rt(e, t, n, r, i, a, o = null, s = [-1]) {
328
+ const u = ue;
258
329
  le(e);
259
- const u = e.$$ = {
330
+ const l = e.$$ = {
260
331
  fragment: null,
261
332
  ctx: [],
262
333
  // state
@@ -270,30 +341,30 @@ function Sn(e, t, n, r, i, a, s = null, o = [-1]) {
270
341
  on_disconnect: [],
271
342
  before_update: [],
272
343
  after_update: [],
273
- context: new Map(t.context || (l ? l.$$.context : [])),
344
+ context: new Map(t.context || (u ? u.$$.context : [])),
274
345
  // everything else
275
346
  callbacks: nt(),
276
- dirty: o,
347
+ dirty: s,
277
348
  skip_bound: !1,
278
- root: t.target || l.$$.root
349
+ root: t.target || u.$$.root
279
350
  };
280
- s && s(u.root);
351
+ o && o(l.root);
281
352
  let c = !1;
282
- if (u.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
353
+ if (l.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
283
354
  const g = f.length ? f[0] : d;
284
- return u.ctx && i(u.ctx[h], u.ctx[h] = g) && (!u.skip_bound && u.bound[h] && u.bound[h](g), c && An(e, h)), d;
285
- }) : [], u.update(), c = !0, ne(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
355
+ return l.ctx && i(l.ctx[h], l.ctx[h] = g) && (!l.skip_bound && l.bound[h] && l.bound[h](g), c && Pn(e, h)), d;
356
+ }) : [], l.update(), c = !0, ne(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
286
357
  if (t.hydrate) {
287
- const h = gn(t.target);
288
- u.fragment && u.fragment.l(h), h.forEach(T);
358
+ const h = Tn(t.target);
359
+ l.fragment && l.fragment.l(h), h.forEach(w);
289
360
  } else
290
- u.fragment && u.fragment.c();
291
- t.intro && O(e.$$.fragment), wn(e, t.target, t.anchor), C();
361
+ l.fragment && l.fragment.c();
362
+ t.intro && L(e.$$.fragment), Nt(e, t.target, t.anchor), C();
292
363
  }
293
- le(l);
364
+ le(u);
294
365
  }
295
- let Mt;
296
- typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
366
+ let Ut;
367
+ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
297
368
  /** The Svelte component constructor */
298
369
  $$ctor;
299
370
  /** Slots */
@@ -335,29 +406,29 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
335
406
  let a;
336
407
  return {
337
408
  c: function() {
338
- a = B("slot"), i !== "default" && P(a, "name", i);
409
+ a = B("slot"), i !== "default" && T(a, "name", i);
339
410
  },
340
411
  /**
341
412
  * @param {HTMLElement} target
342
413
  * @param {HTMLElement} [anchor]
343
414
  */
344
- m: function(l, u) {
345
- A(l, a, u);
415
+ m: function(u, l) {
416
+ I(u, a, l);
346
417
  },
347
- d: function(l) {
348
- l && T(a);
418
+ d: function(u) {
419
+ u && w(a);
349
420
  }
350
421
  };
351
422
  };
352
423
  };
353
424
  if (await Promise.resolve(), !this.$$cn || this.$$c)
354
425
  return;
355
- const t = {}, n = pn(this);
426
+ const t = {}, n = In(this);
356
427
  for (const i of this.$$s)
357
428
  i in n && (t[i] = [e(i)]);
358
429
  for (const i of this.attributes) {
359
430
  const a = this.$$g_p(i.name);
360
- a in this.$$d || (this.$$d[a] = xe(a, i.value, this.$$p_d, "toProp"));
431
+ a in this.$$d || (this.$$d[a] = _e(a, i.value, this.$$p_d, "toProp"));
361
432
  }
362
433
  for (const i in this.$$p_d)
363
434
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -375,7 +446,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
375
446
  this.$$r = !0;
376
447
  for (const i in this.$$p_d)
377
448
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
378
- const a = xe(
449
+ const a = _e(
379
450
  i,
380
451
  this.$$d[i],
381
452
  this.$$p_d,
@@ -388,8 +459,8 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
388
459
  this.$$c.$$.after_update.push(r), r();
389
460
  for (const i in this.$$l)
390
461
  for (const a of this.$$l[i]) {
391
- const s = this.$$c.$on(i, a);
392
- this.$$l_u.set(a, s);
462
+ const o = this.$$c.$on(i, a);
463
+ this.$$l_u.set(a, o);
393
464
  }
394
465
  this.$$l = {};
395
466
  }
@@ -397,7 +468,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
397
468
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
398
469
  // and setting attributes through setAttribute etc, this is helpful
399
470
  attributeChangedCallback(e, t, n) {
400
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = xe(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
471
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = _e(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
401
472
  }
402
473
  disconnectedCallback() {
403
474
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -410,7 +481,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
410
481
  ) || e;
411
482
  }
412
483
  });
413
- function xe(e, t, n, r) {
484
+ function _e(e, t, n, r) {
414
485
  const i = n[e]?.type;
415
486
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
416
487
  return t;
@@ -439,36 +510,36 @@ function xe(e, t, n, r) {
439
510
  return t;
440
511
  }
441
512
  }
442
- function Bn(e, t, n, r, i, a) {
443
- let s = class extends Mt {
513
+ function Ft(e, t, n, r, i, a) {
514
+ let o = class extends Ut {
444
515
  constructor() {
445
516
  super(e, n, i), this.$$p_d = t;
446
517
  }
447
518
  static get observedAttributes() {
448
519
  return Object.keys(t).map(
449
- (o) => (t[o].attribute || o).toLowerCase()
520
+ (s) => (t[s].attribute || s).toLowerCase()
450
521
  );
451
522
  }
452
523
  };
453
- return Object.keys(t).forEach((o) => {
454
- Object.defineProperty(s.prototype, o, {
524
+ return Object.keys(t).forEach((s) => {
525
+ Object.defineProperty(o.prototype, s, {
455
526
  get() {
456
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
527
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
457
528
  },
458
- set(l) {
459
- l = xe(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
529
+ set(u) {
530
+ u = _e(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
460
531
  }
461
532
  });
462
- }), r.forEach((o) => {
463
- Object.defineProperty(s.prototype, o, {
533
+ }), r.forEach((s) => {
534
+ Object.defineProperty(o.prototype, s, {
464
535
  get() {
465
- return this.$$c?.[o];
536
+ return this.$$c?.[s];
466
537
  }
467
538
  });
468
539
  }), e.element = /** @type {any} */
469
- s, s;
540
+ o, o;
470
541
  }
471
- class Cn {
542
+ class Gt {
472
543
  /**
473
544
  * ### PRIVATE API
474
545
  *
@@ -487,7 +558,7 @@ class Cn {
487
558
  $$set = void 0;
488
559
  /** @returns {void} */
489
560
  $destroy() {
490
- In(this, 1), this.$destroy = M;
561
+ zt(this, 1), this.$destroy = M;
491
562
  }
492
563
  /**
493
564
  * @template {Extract<keyof Events, string>} K
@@ -509,19 +580,19 @@ class Cn {
509
580
  * @returns {void}
510
581
  */
511
582
  $set(t) {
512
- this.$$set && !un(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
583
+ this.$$set && !vn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
513
584
  }
514
585
  }
515
- const Ln = "4";
516
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ln);
517
- const q = "__WIDGET_GLOBAL_STYLE_CACHE__";
518
- function Hn(e, t) {
586
+ const On = "4";
587
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(On);
588
+ const Z = "__WIDGET_GLOBAL_STYLE_CACHE__";
589
+ function Dn(e, t) {
519
590
  if (e) {
520
591
  const n = document.createElement("style");
521
592
  n.innerHTML = t, e.appendChild(n);
522
593
  }
523
594
  }
524
- function Mn(e, t) {
595
+ function Nn(e, t) {
525
596
  if (!e || !t)
526
597
  return;
527
598
  const n = new URL(t);
@@ -532,168 +603,287 @@ function Mn(e, t) {
532
603
  console.error("There was an error while trying to load client styling from URL", r);
533
604
  });
534
605
  }
535
- function Pn(e, t, n, r = !1) {
606
+ function zn(e, t, n, r = !1) {
536
607
  if (!window.emMessageBus)
537
608
  return;
538
609
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
539
- return n = On(e, t), n;
540
- window[q] || (window[q] = {}), n = Dn(e, t);
541
- const a = n.unsubscribe.bind(n), s = () => {
542
- if (window[q][t]) {
543
- const o = window[q][t];
544
- o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[q][t];
610
+ return n = Rn(e, t), n;
611
+ window[Z] || (window[Z] = {}), n = Un(e, t);
612
+ const a = n.unsubscribe.bind(n), o = () => {
613
+ if (window[Z][t]) {
614
+ const s = window[Z][t];
615
+ s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[Z][t];
545
616
  }
546
617
  a();
547
618
  };
548
- return n.unsubscribe = s, n;
619
+ return n.unsubscribe = o, n;
549
620
  }
550
- function On(e, t) {
621
+ function Rn(e, t) {
551
622
  const n = document.createElement("style");
552
623
  return window.emMessageBus.subscribe(t, (r) => {
553
624
  e && (n.innerHTML = r, e.appendChild(n));
554
625
  });
555
626
  }
556
- function Dn(e, t) {
627
+ function Un(e, t) {
557
628
  return window.emMessageBus.subscribe(t, (n) => {
558
629
  if (!e)
559
630
  return;
560
- const r = e.getRootNode(), i = window[q];
631
+ const r = e.getRootNode(), i = window[Z];
561
632
  let a = i[t] && i[t].sheet;
562
633
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
563
634
  sheet: a,
564
635
  refCount: 1
565
636
  });
566
- const s = r.adoptedStyleSheets || [];
567
- s.includes(a) || (r.adoptedStyleSheets = [...s, a]);
637
+ const o = r.adoptedStyleSheets || [];
638
+ o.includes(a) || (r.adoptedStyleSheets = [...o, a]);
568
639
  });
569
640
  }
570
- const V = [];
571
- function Nn(e, t) {
641
+ function Fn(e) {
642
+ Mt(e, "svelte-1nr7vqj", ".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}");
643
+ }
644
+ function at(e) {
645
+ let t;
572
646
  return {
573
- subscribe: Be(e, t).subscribe
647
+ c() {
648
+ t = B("div"), t.innerHTML = '<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>', T(t, "class", "UiContainer svelte-1nr7vqj");
649
+ },
650
+ m(n, r) {
651
+ I(n, t, r);
652
+ },
653
+ d(n) {
654
+ n && w(t);
655
+ }
574
656
  };
575
657
  }
576
- function Be(e, t = M) {
658
+ function Gn(e) {
659
+ let t, n, r, i, a, o, s, u = !/*imgLoaded*/
660
+ e[4] && at();
661
+ return {
662
+ c() {
663
+ t = B("div"), u && u.c(), n = G(), r = B("img"), rt(r.src, i = /*src*/
664
+ e[0]) || T(r, "src", i), T(
665
+ r,
666
+ "alt",
667
+ /*alt*/
668
+ e[1]
669
+ ), T(
670
+ r,
671
+ "width",
672
+ /*width*/
673
+ e[2]
674
+ ), T(
675
+ r,
676
+ "height",
677
+ /*height*/
678
+ e[3]
679
+ ), T(r, "class", a = "UiContainer " + /*imgLoaded*/
680
+ (e[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj"), T(r, "loading", "lazy"), T(t, "class", "HostContainer hydrated svelte-1nr7vqj");
681
+ },
682
+ m(l, c) {
683
+ I(l, t, c), u && u.m(t, null), H(t, n), H(t, r), o || (s = Pt(
684
+ r,
685
+ "load",
686
+ /*load_handler*/
687
+ e[5]
688
+ ), o = !0);
689
+ },
690
+ p(l, [c]) {
691
+ /*imgLoaded*/
692
+ l[4] ? u && (u.d(1), u = null) : u || (u = at(), u.c(), u.m(t, n)), c & /*src*/
693
+ 1 && !rt(r.src, i = /*src*/
694
+ l[0]) && T(r, "src", i), c & /*alt*/
695
+ 2 && T(
696
+ r,
697
+ "alt",
698
+ /*alt*/
699
+ l[1]
700
+ ), c & /*width*/
701
+ 4 && T(
702
+ r,
703
+ "width",
704
+ /*width*/
705
+ l[2]
706
+ ), c & /*height*/
707
+ 8 && T(
708
+ r,
709
+ "height",
710
+ /*height*/
711
+ l[3]
712
+ ), c & /*imgLoaded*/
713
+ 16 && a !== (a = "UiContainer " + /*imgLoaded*/
714
+ (l[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj") && T(r, "class", a);
715
+ },
716
+ i: M,
717
+ o: M,
718
+ d(l) {
719
+ l && w(t), u && u.d(), o = !1, s();
720
+ }
721
+ };
722
+ }
723
+ function $n(e, t, n) {
724
+ let { src: r } = t, { alt: i = void 0 } = t, { width: a = void 0 } = t, { height: o = void 0 } = t, s = !1;
725
+ const u = () => n(4, s = !0);
726
+ return e.$$set = (l) => {
727
+ "src" in l && n(0, r = l.src), "alt" in l && n(1, i = l.alt), "width" in l && n(2, a = l.width), "height" in l && n(3, o = l.height);
728
+ }, [r, i, a, o, s, u];
729
+ }
730
+ class $t extends Gt {
731
+ constructor(t) {
732
+ super(), Rt(this, t, $n, Gn, Ye, { src: 0, alt: 1, width: 2, height: 3 }, Fn);
733
+ }
734
+ get src() {
735
+ return this.$$.ctx[0];
736
+ }
737
+ set src(t) {
738
+ this.$$set({ src: t }), C();
739
+ }
740
+ get alt() {
741
+ return this.$$.ctx[1];
742
+ }
743
+ set alt(t) {
744
+ this.$$set({ alt: t }), C();
745
+ }
746
+ get width() {
747
+ return this.$$.ctx[2];
748
+ }
749
+ set width(t) {
750
+ this.$$set({ width: t }), C();
751
+ }
752
+ get height() {
753
+ return this.$$.ctx[3];
754
+ }
755
+ set height(t) {
756
+ this.$$set({ height: t }), C();
757
+ }
758
+ }
759
+ Ft($t, { src: {}, alt: {}, width: {}, height: {} }, [], [], !0);
760
+ const q = [];
761
+ function jn(e, t) {
762
+ return {
763
+ subscribe: Ce(e, t).subscribe
764
+ };
765
+ }
766
+ function Ce(e, t = M) {
577
767
  let n;
578
768
  const r = /* @__PURE__ */ new Set();
579
- function i(o) {
580
- if (Ct(e, o) && (e = o, n)) {
581
- const l = !V.length;
582
- for (const u of r)
583
- u[1](), V.push(u, e);
584
- if (l) {
585
- for (let u = 0; u < V.length; u += 2)
586
- V[u][0](V[u + 1]);
587
- V.length = 0;
769
+ function i(s) {
770
+ if (Ye(e, s) && (e = s, n)) {
771
+ const u = !q.length;
772
+ for (const l of r)
773
+ l[1](), q.push(l, e);
774
+ if (u) {
775
+ for (let l = 0; l < q.length; l += 2)
776
+ q[l][0](q[l + 1]);
777
+ q.length = 0;
588
778
  }
589
779
  }
590
780
  }
591
- function a(o) {
592
- i(o(e));
781
+ function a(s) {
782
+ i(s(e));
593
783
  }
594
- function s(o, l = M) {
595
- const u = [o, l];
596
- return r.add(u), r.size === 1 && (n = t(i, a) || M), o(e), () => {
597
- r.delete(u), r.size === 0 && n && (n(), n = null);
784
+ function o(s, u = M) {
785
+ const l = [s, u];
786
+ return r.add(l), r.size === 1 && (n = t(i, a) || M), s(e), () => {
787
+ r.delete(l), r.size === 0 && n && (n(), n = null);
598
788
  };
599
789
  }
600
- return { set: i, update: a, subscribe: s };
790
+ return { set: i, update: a, subscribe: o };
601
791
  }
602
792
  function re(e, t, n) {
603
793
  const r = !Array.isArray(e), i = r ? [e] : e;
604
794
  if (!i.every(Boolean))
605
795
  throw new Error("derived() expects stores as input, got a falsy value");
606
796
  const a = t.length < 2;
607
- return Nn(n, (s, o) => {
608
- let l = !1;
609
- const u = [];
797
+ return jn(n, (o, s) => {
798
+ let u = !1;
799
+ const l = [];
610
800
  let c = 0, h = M;
611
801
  const d = () => {
612
802
  if (c)
613
803
  return;
614
804
  h();
615
- const g = t(r ? u[0] : u, s, o);
616
- a ? s(g) : h = Ke(g) ? g : M;
805
+ const g = t(r ? l[0] : l, o, s);
806
+ a ? o(g) : h = Ke(g) ? g : M;
617
807
  }, f = i.map(
618
808
  (g, k) => Lt(
619
809
  g,
620
810
  (E) => {
621
- u[k] = E, c &= ~(1 << k), l && d();
811
+ l[k] = E, c &= ~(1 << k), u && d();
622
812
  },
623
813
  () => {
624
814
  c |= 1 << k;
625
815
  }
626
816
  )
627
817
  );
628
- return l = !0, d(), function() {
629
- ne(f), h(), l = !1;
818
+ return u = !0, d(), function() {
819
+ ne(f), h(), u = !1;
630
820
  };
631
821
  });
632
822
  }
633
- function Rn(e) {
823
+ function Vn(e) {
634
824
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
635
825
  }
636
- var zn = function(t) {
637
- return Un(t) && !Fn(t);
826
+ var Wn = function(t) {
827
+ return qn(t) && !Xn(t);
638
828
  };
639
- function Un(e) {
829
+ function qn(e) {
640
830
  return !!e && typeof e == "object";
641
831
  }
642
- function Fn(e) {
832
+ function Xn(e) {
643
833
  var t = Object.prototype.toString.call(e);
644
- return t === "[object RegExp]" || t === "[object Date]" || jn(e);
834
+ return t === "[object RegExp]" || t === "[object Date]" || Kn(e);
645
835
  }
646
- var Gn = typeof Symbol == "function" && Symbol.for, $n = Gn ? Symbol.for("react.element") : 60103;
647
- function jn(e) {
648
- return e.$$typeof === $n;
836
+ var Zn = typeof Symbol == "function" && Symbol.for, Jn = Zn ? Symbol.for("react.element") : 60103;
837
+ function Kn(e) {
838
+ return e.$$typeof === Jn;
649
839
  }
650
- function Vn(e) {
840
+ function Yn(e) {
651
841
  return Array.isArray(e) ? [] : {};
652
842
  }
653
843
  function ce(e, t) {
654
- return t.clone !== !1 && t.isMergeableObject(e) ? Y(Vn(e), e, t) : e;
844
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(Yn(e), e, t) : e;
655
845
  }
656
- function Wn(e, t, n) {
846
+ function Qn(e, t, n) {
657
847
  return e.concat(t).map(function(r) {
658
848
  return ce(r, n);
659
849
  });
660
850
  }
661
- function qn(e, t) {
851
+ function er(e, t) {
662
852
  if (!t.customMerge)
663
853
  return Y;
664
854
  var n = t.customMerge(e);
665
855
  return typeof n == "function" ? n : Y;
666
856
  }
667
- function Xn(e) {
857
+ function tr(e) {
668
858
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
669
859
  return Object.propertyIsEnumerable.call(e, t);
670
860
  }) : [];
671
861
  }
672
- function at(e) {
673
- return Object.keys(e).concat(Xn(e));
862
+ function st(e) {
863
+ return Object.keys(e).concat(tr(e));
674
864
  }
675
- function Pt(e, t) {
865
+ function jt(e, t) {
676
866
  try {
677
867
  return t in e;
678
868
  } catch {
679
869
  return !1;
680
870
  }
681
871
  }
682
- function Zn(e, t) {
683
- return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
872
+ function nr(e, t) {
873
+ return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
684
874
  }
685
- function Jn(e, t, n) {
875
+ function rr(e, t, n) {
686
876
  var r = {};
687
- return n.isMergeableObject(e) && at(e).forEach(function(i) {
877
+ return n.isMergeableObject(e) && st(e).forEach(function(i) {
688
878
  r[i] = ce(e[i], n);
689
- }), at(t).forEach(function(i) {
690
- Zn(e, i) || (Pt(e, i) && n.isMergeableObject(t[i]) ? r[i] = qn(i, n)(e[i], t[i], n) : r[i] = ce(t[i], n));
879
+ }), st(t).forEach(function(i) {
880
+ nr(e, i) || (jt(e, i) && n.isMergeableObject(t[i]) ? r[i] = er(i, n)(e[i], t[i], n) : r[i] = ce(t[i], n));
691
881
  }), r;
692
882
  }
693
883
  function Y(e, t, n) {
694
- n = n || {}, n.arrayMerge = n.arrayMerge || Wn, n.isMergeableObject = n.isMergeableObject || zn, n.cloneUnlessOtherwiseSpecified = ce;
884
+ n = n || {}, n.arrayMerge = n.arrayMerge || Qn, n.isMergeableObject = n.isMergeableObject || Wn, n.cloneUnlessOtherwiseSpecified = ce;
695
885
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
696
- return a ? r ? n.arrayMerge(e, t, n) : Jn(e, t, n) : ce(t, n);
886
+ return a ? r ? n.arrayMerge(e, t, n) : rr(e, t, n) : ce(t, n);
697
887
  }
698
888
  Y.all = function(t, n) {
699
889
  if (!Array.isArray(t))
@@ -702,8 +892,8 @@ Y.all = function(t, n) {
702
892
  return Y(r, i, n);
703
893
  }, {});
704
894
  };
705
- var Kn = Y, Yn = Kn;
706
- const Qn = /* @__PURE__ */ Rn(Yn);
895
+ var ir = Y, ar = ir;
896
+ const sr = /* @__PURE__ */ Vn(ar);
707
897
  var $e = function(e, t) {
708
898
  return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
709
899
  n.__proto__ = r;
@@ -712,7 +902,7 @@ var $e = function(e, t) {
712
902
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
713
903
  }, $e(e, t);
714
904
  };
715
- function Ce(e, t) {
905
+ function Be(e, t) {
716
906
  if (typeof t != "function" && t !== null)
717
907
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
718
908
  $e(e, t);
@@ -721,17 +911,17 @@ function Ce(e, t) {
721
911
  }
722
912
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
723
913
  }
724
- var L = function() {
725
- return L = Object.assign || function(t) {
914
+ var P = function() {
915
+ return P = Object.assign || function(t) {
726
916
  for (var n, r = 1, i = arguments.length; r < i; r++) {
727
917
  n = arguments[r];
728
918
  for (var a in n)
729
919
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
730
920
  }
731
921
  return t;
732
- }, L.apply(this, arguments);
922
+ }, P.apply(this, arguments);
733
923
  };
734
- function er(e, t) {
924
+ function or(e, t) {
735
925
  var n = {};
736
926
  for (var r in e)
737
927
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -747,36 +937,36 @@ function Pe(e, t, n) {
747
937
  return e.concat(a || Array.prototype.slice.call(t));
748
938
  }
749
939
  function Oe(e, t) {
750
- var n = t && t.cache ? t.cache : or, r = t && t.serializer ? t.serializer : ar, i = t && t.strategy ? t.strategy : rr;
940
+ var n = t && t.cache ? t.cache : fr, r = t && t.serializer ? t.serializer : dr, i = t && t.strategy ? t.strategy : cr;
751
941
  return i(e, {
752
942
  cache: n,
753
943
  serializer: r
754
944
  });
755
945
  }
756
- function tr(e) {
946
+ function lr(e) {
757
947
  return e == null || typeof e == "number" || typeof e == "boolean";
758
948
  }
759
- function nr(e, t, n, r) {
760
- var i = tr(r) ? r : n(r), a = t.get(i);
949
+ function ur(e, t, n, r) {
950
+ var i = lr(r) ? r : n(r), a = t.get(i);
761
951
  return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
762
952
  }
763
- function Ot(e, t, n) {
953
+ function Vt(e, t, n) {
764
954
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
765
955
  return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
766
956
  }
767
- function Dt(e, t, n, r, i) {
957
+ function Wt(e, t, n, r, i) {
768
958
  return n.bind(t, e, r, i);
769
959
  }
770
- function rr(e, t) {
771
- var n = e.length === 1 ? nr : Ot;
772
- return Dt(e, this, n, t.cache.create(), t.serializer);
960
+ function cr(e, t) {
961
+ var n = e.length === 1 ? ur : Vt;
962
+ return Wt(e, this, n, t.cache.create(), t.serializer);
773
963
  }
774
- function ir(e, t) {
775
- return Dt(e, this, Ot, t.cache.create(), t.serializer);
964
+ function hr(e, t) {
965
+ return Wt(e, this, Vt, t.cache.create(), t.serializer);
776
966
  }
777
- var ar = function() {
967
+ var dr = function() {
778
968
  return JSON.stringify(arguments);
779
- }, sr = (
969
+ }, mr = (
780
970
  /** @class */
781
971
  function() {
782
972
  function e() {
@@ -788,21 +978,21 @@ var ar = function() {
788
978
  this.cache[t] = n;
789
979
  }, e;
790
980
  }()
791
- ), or = {
981
+ ), fr = {
792
982
  create: function() {
793
- return new sr();
983
+ return new mr();
794
984
  }
795
985
  }, De = {
796
- variadic: ir
797
- }, we = function() {
798
- return we = Object.assign || function(t) {
986
+ variadic: hr
987
+ }, Te = function() {
988
+ return Te = Object.assign || function(t) {
799
989
  for (var n, r = 1, i = arguments.length; r < i; r++) {
800
990
  n = arguments[r];
801
991
  for (var a in n)
802
992
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
803
993
  }
804
994
  return t;
805
- }, we.apply(this, arguments);
995
+ }, Te.apply(this, arguments);
806
996
  };
807
997
  var p;
808
998
  (function(e) {
@@ -816,43 +1006,43 @@ var Q;
816
1006
  (function(e) {
817
1007
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
818
1008
  })(Q || (Q = {}));
819
- function st(e) {
1009
+ function ot(e) {
820
1010
  return e.type === _.literal;
821
1011
  }
822
- function lr(e) {
1012
+ function gr(e) {
823
1013
  return e.type === _.argument;
824
1014
  }
825
- function Nt(e) {
1015
+ function qt(e) {
826
1016
  return e.type === _.number;
827
1017
  }
828
- function Rt(e) {
1018
+ function Xt(e) {
829
1019
  return e.type === _.date;
830
1020
  }
831
- function zt(e) {
1021
+ function Zt(e) {
832
1022
  return e.type === _.time;
833
1023
  }
834
- function Ut(e) {
1024
+ function Jt(e) {
835
1025
  return e.type === _.select;
836
1026
  }
837
- function Ft(e) {
1027
+ function Kt(e) {
838
1028
  return e.type === _.plural;
839
1029
  }
840
- function ur(e) {
1030
+ function pr(e) {
841
1031
  return e.type === _.pound;
842
1032
  }
843
- function Gt(e) {
1033
+ function Yt(e) {
844
1034
  return e.type === _.tag;
845
1035
  }
846
- function $t(e) {
1036
+ function Qt(e) {
847
1037
  return !!(e && typeof e == "object" && e.type === Q.number);
848
1038
  }
849
1039
  function je(e) {
850
1040
  return !!(e && typeof e == "object" && e.type === Q.dateTime);
851
1041
  }
852
- var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cr = /(?:[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;
853
- function hr(e) {
1042
+ var en = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[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;
1043
+ function yr(e) {
854
1044
  var t = {};
855
- return e.replace(cr, function(n) {
1045
+ return e.replace(br, function(n) {
856
1046
  var r = n.length;
857
1047
  switch (n[0]) {
858
1048
  case "G":
@@ -951,36 +1141,36 @@ var x = function() {
951
1141
  return t;
952
1142
  }, x.apply(this, arguments);
953
1143
  };
954
- var dr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
955
- function mr(e) {
1144
+ var vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1145
+ function Er(e) {
956
1146
  if (e.length === 0)
957
1147
  throw new Error("Number skeleton cannot be empty");
958
- for (var t = e.split(dr).filter(function(d) {
1148
+ for (var t = e.split(vr).filter(function(d) {
959
1149
  return d.length > 0;
960
1150
  }), n = [], r = 0, i = t; r < i.length; r++) {
961
- var a = i[r], s = a.split("/");
962
- if (s.length === 0)
1151
+ var a = i[r], o = a.split("/");
1152
+ if (o.length === 0)
963
1153
  throw new Error("Invalid number skeleton");
964
- for (var o = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
965
- var h = c[u];
1154
+ for (var s = o[0], u = o.slice(1), l = 0, c = u; l < c.length; l++) {
1155
+ var h = c[l];
966
1156
  if (h.length === 0)
967
1157
  throw new Error("Invalid number skeleton");
968
1158
  }
969
- n.push({ stem: o, options: l });
1159
+ n.push({ stem: s, options: u });
970
1160
  }
971
1161
  return n;
972
1162
  }
973
- function fr(e) {
1163
+ function _r(e) {
974
1164
  return e.replace(/^(.*?)-/, "");
975
1165
  }
976
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, gr = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
977
- function lt(e) {
1166
+ var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tn = /^(@+)?(\+|#+)?[rs]?$/g, xr = /(\*)(0+)|(#+)(0+)|(0+)/g, nn = /^(0+)$/;
1167
+ function ut(e) {
978
1168
  var t = {};
979
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(n, r, i) {
1169
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tn, function(n, r, i) {
980
1170
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
981
1171
  }), t;
982
1172
  }
983
- function qt(e) {
1173
+ function rn(e) {
984
1174
  switch (e) {
985
1175
  case "sign-auto":
986
1176
  return {
@@ -1020,7 +1210,7 @@ function qt(e) {
1020
1210
  };
1021
1211
  }
1022
1212
  }
1023
- function pr(e) {
1213
+ function kr(e) {
1024
1214
  var t;
1025
1215
  if (e[0] === "E" && e[1] === "E" ? (t = {
1026
1216
  notation: "engineering"
@@ -1028,17 +1218,17 @@ function pr(e) {
1028
1218
  notation: "scientific"
1029
1219
  }, e = e.slice(1)), t) {
1030
1220
  var n = e.slice(0, 2);
1031
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
1221
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !nn.test(e))
1032
1222
  throw new Error("Malformed concise eng/scientific notation");
1033
1223
  t.minimumIntegerDigits = e.length;
1034
1224
  }
1035
1225
  return t;
1036
1226
  }
1037
- function ut(e) {
1038
- var t = {}, n = qt(e);
1227
+ function ct(e) {
1228
+ var t = {}, n = rn(e);
1039
1229
  return n || t;
1040
1230
  }
1041
- function br(e) {
1231
+ function Tr(e) {
1042
1232
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1043
1233
  var i = r[n];
1044
1234
  switch (i.stem) {
@@ -1062,7 +1252,7 @@ function br(e) {
1062
1252
  continue;
1063
1253
  case "measure-unit":
1064
1254
  case "unit":
1065
- t.style = "unit", t.unit = fr(i.options[0]);
1255
+ t.style = "unit", t.unit = _r(i.options[0]);
1066
1256
  continue;
1067
1257
  case "compact-short":
1068
1258
  case "K":
@@ -1073,13 +1263,13 @@ function br(e) {
1073
1263
  t.notation = "compact", t.compactDisplay = "long";
1074
1264
  continue;
1075
1265
  case "scientific":
1076
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1077
- return x(x({}, l), ut(u));
1266
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1267
+ return x(x({}, u), ct(l));
1078
1268
  }, {}));
1079
1269
  continue;
1080
1270
  case "engineering":
1081
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1082
- return x(x({}, l), ut(u));
1271
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1272
+ return x(x({}, u), ct(l));
1083
1273
  }, {}));
1084
1274
  continue;
1085
1275
  case "notation-simple":
@@ -1124,8 +1314,8 @@ function br(e) {
1124
1314
  case "integer-width":
1125
1315
  if (i.options.length > 1)
1126
1316
  throw new RangeError("integer-width stems only accept a single optional option");
1127
- i.options[0].replace(gr, function(l, u, c, h, d, f) {
1128
- if (u)
1317
+ i.options[0].replace(xr, function(u, l, c, h, d, f) {
1318
+ if (l)
1129
1319
  t.minimumIntegerDigits = c.length;
1130
1320
  else {
1131
1321
  if (h && d)
@@ -1137,32 +1327,32 @@ function br(e) {
1137
1327
  });
1138
1328
  continue;
1139
1329
  }
1140
- if (Wt.test(i.stem)) {
1330
+ if (nn.test(i.stem)) {
1141
1331
  t.minimumIntegerDigits = i.stem.length;
1142
1332
  continue;
1143
1333
  }
1144
- if (ot.test(i.stem)) {
1334
+ if (lt.test(i.stem)) {
1145
1335
  if (i.options.length > 1)
1146
1336
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1147
- i.stem.replace(ot, function(l, u, c, h, d, f) {
1148
- return c === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1337
+ i.stem.replace(lt, function(u, l, c, h, d, f) {
1338
+ return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1149
1339
  });
1150
1340
  var a = i.options[0];
1151
- a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), lt(a)));
1341
+ a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), ut(a)));
1152
1342
  continue;
1153
1343
  }
1154
- if (Vt.test(i.stem)) {
1155
- t = x(x({}, t), lt(i.stem));
1344
+ if (tn.test(i.stem)) {
1345
+ t = x(x({}, t), ut(i.stem));
1156
1346
  continue;
1157
1347
  }
1158
- var s = qt(i.stem);
1159
- s && (t = x(x({}, t), s));
1160
- var o = pr(i.stem);
1348
+ var o = rn(i.stem);
1161
1349
  o && (t = x(x({}, t), o));
1350
+ var s = kr(i.stem);
1351
+ s && (t = x(x({}, t), s));
1162
1352
  }
1163
1353
  return t;
1164
1354
  }
1165
- var Ee = {
1355
+ var ve = {
1166
1356
  "001": [
1167
1357
  "H",
1168
1358
  "h"
@@ -2577,23 +2767,23 @@ var Ee = {
2577
2767
  "h"
2578
2768
  ]
2579
2769
  };
2580
- function yr(e, t) {
2770
+ function wr(e, t) {
2581
2771
  for (var n = "", r = 0; r < e.length; r++) {
2582
2772
  var i = e.charAt(r);
2583
2773
  if (i === "j") {
2584
2774
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2585
2775
  a++, r++;
2586
- var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = vr(t);
2587
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2588
- n += l;
2589
- for (; s-- > 0; )
2590
- n = u + n;
2776
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), u = "a", l = Ir(t);
2777
+ for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2778
+ n += u;
2779
+ for (; o-- > 0; )
2780
+ n = l + n;
2591
2781
  } else
2592
2782
  i === "J" ? n += "H" : n += i;
2593
2783
  }
2594
2784
  return n;
2595
2785
  }
2596
- function vr(e) {
2786
+ function Ir(e) {
2597
2787
  var t = e.hourCycle;
2598
2788
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2599
2789
  e.hourCycles && // @ts-ignore
@@ -2612,23 +2802,23 @@ function vr(e) {
2612
2802
  }
2613
2803
  var n = e.language, r;
2614
2804
  n !== "root" && (r = e.maximize().region);
2615
- var i = Ee[r || ""] || Ee[n || ""] || Ee["".concat(n, "-001")] || Ee["001"];
2805
+ var i = ve[r || ""] || ve[n || ""] || ve["".concat(n, "-001")] || ve["001"];
2616
2806
  return i[0];
2617
2807
  }
2618
- var Ne, Er = new RegExp("^".concat(jt.source, "*")), _r = new RegExp("".concat(jt.source, "*$"));
2808
+ var Ne, Ar = new RegExp("^".concat(en.source, "*")), Sr = new RegExp("".concat(en.source, "*$"));
2619
2809
  function y(e, t) {
2620
2810
  return { start: e, end: t };
2621
2811
  }
2622
- var xr = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, Tr = !!Object.fromEntries, wr = !!String.prototype.codePointAt, Ir = !!String.prototype.trimStart, Ar = !!String.prototype.trimEnd, Sr = !!Number.isSafeInteger, Br = Sr ? Number.isSafeInteger : function(e) {
2812
+ var Cr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Br = !!String.fromCodePoint, Lr = !!Object.fromEntries, Hr = !!String.prototype.codePointAt, Mr = !!String.prototype.trimStart, Pr = !!String.prototype.trimEnd, Or = !!Number.isSafeInteger, Dr = Or ? Number.isSafeInteger : function(e) {
2623
2813
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2624
2814
  }, Ve = !0;
2625
2815
  try {
2626
- var Cr = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2627
- Ve = ((Ne = Cr.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2816
+ var Nr = sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2817
+ Ve = ((Ne = Nr.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2628
2818
  } catch {
2629
2819
  Ve = !1;
2630
2820
  }
2631
- var ct = xr ? (
2821
+ var ht = Cr ? (
2632
2822
  // Native
2633
2823
  function(t, n, r) {
2634
2824
  return t.startsWith(n, r);
@@ -2638,31 +2828,31 @@ var ct = xr ? (
2638
2828
  function(t, n, r) {
2639
2829
  return t.slice(r, r + n.length) === n;
2640
2830
  }
2641
- ), We = kr ? String.fromCodePoint : (
2831
+ ), We = Br ? String.fromCodePoint : (
2642
2832
  // IE11
2643
2833
  function() {
2644
2834
  for (var t = [], n = 0; n < arguments.length; n++)
2645
2835
  t[n] = arguments[n];
2646
- for (var r = "", i = t.length, a = 0, s; i > a; ) {
2647
- if (s = t[a++], s > 1114111)
2648
- throw RangeError(s + " is not a valid code point");
2649
- r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2836
+ for (var r = "", i = t.length, a = 0, o; i > a; ) {
2837
+ if (o = t[a++], o > 1114111)
2838
+ throw RangeError(o + " is not a valid code point");
2839
+ r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2650
2840
  }
2651
2841
  return r;
2652
2842
  }
2653
- ), ht = (
2843
+ ), dt = (
2654
2844
  // native
2655
- Tr ? Object.fromEntries : (
2845
+ Lr ? Object.fromEntries : (
2656
2846
  // Ponyfill
2657
2847
  function(t) {
2658
2848
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2659
- var a = i[r], s = a[0], o = a[1];
2660
- n[s] = o;
2849
+ var a = i[r], o = a[0], s = a[1];
2850
+ n[o] = s;
2661
2851
  }
2662
2852
  return n;
2663
2853
  }
2664
2854
  )
2665
- ), Xt = wr ? (
2855
+ ), an = Hr ? (
2666
2856
  // Native
2667
2857
  function(t, n) {
2668
2858
  return t.codePointAt(n);
@@ -2676,7 +2866,7 @@ var ct = xr ? (
2676
2866
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2677
2867
  }
2678
2868
  }
2679
- ), Lr = Ir ? (
2869
+ ), zr = Mr ? (
2680
2870
  // Native
2681
2871
  function(t) {
2682
2872
  return t.trimStart();
@@ -2684,9 +2874,9 @@ var ct = xr ? (
2684
2874
  ) : (
2685
2875
  // Ponyfill
2686
2876
  function(t) {
2687
- return t.replace(Er, "");
2877
+ return t.replace(Ar, "");
2688
2878
  }
2689
- ), Hr = Ar ? (
2879
+ ), Rr = Pr ? (
2690
2880
  // Native
2691
2881
  function(t) {
2692
2882
  return t.trimEnd();
@@ -2694,32 +2884,32 @@ var ct = xr ? (
2694
2884
  ) : (
2695
2885
  // Ponyfill
2696
2886
  function(t) {
2697
- return t.replace(_r, "");
2887
+ return t.replace(Sr, "");
2698
2888
  }
2699
2889
  );
2700
- function Zt(e, t) {
2890
+ function sn(e, t) {
2701
2891
  return new RegExp(e, t);
2702
2892
  }
2703
2893
  var qe;
2704
2894
  if (Ve) {
2705
- var dt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2895
+ var mt = sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2706
2896
  qe = function(t, n) {
2707
2897
  var r;
2708
- dt.lastIndex = n;
2709
- var i = dt.exec(t);
2898
+ mt.lastIndex = n;
2899
+ var i = mt.exec(t);
2710
2900
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2711
2901
  };
2712
2902
  } else
2713
2903
  qe = function(t, n) {
2714
2904
  for (var r = []; ; ) {
2715
- var i = Xt(t, n);
2716
- if (i === void 0 || Jt(i) || Dr(i))
2905
+ var i = an(t, n);
2906
+ if (i === void 0 || on(i) || $r(i))
2717
2907
  break;
2718
2908
  r.push(i), n += i >= 65536 ? 2 : 1;
2719
2909
  }
2720
2910
  return We.apply(void 0, r);
2721
2911
  };
2722
- var Mr = (
2912
+ var Ur = (
2723
2913
  /** @class */
2724
2914
  function() {
2725
2915
  function e(t, n) {
@@ -2733,33 +2923,33 @@ var Mr = (
2733
2923
  for (var i = []; !this.isEOF(); ) {
2734
2924
  var a = this.char();
2735
2925
  if (a === 123) {
2736
- var s = this.parseArgument(t, r);
2737
- if (s.err)
2738
- return s;
2739
- i.push(s.val);
2926
+ var o = this.parseArgument(t, r);
2927
+ if (o.err)
2928
+ return o;
2929
+ i.push(o.val);
2740
2930
  } else {
2741
2931
  if (a === 125 && t > 0)
2742
2932
  break;
2743
2933
  if (a === 35 && (n === "plural" || n === "selectordinal")) {
2744
- var o = this.clonePosition();
2934
+ var s = this.clonePosition();
2745
2935
  this.bump(), i.push({
2746
2936
  type: _.pound,
2747
- location: y(o, this.clonePosition())
2937
+ location: y(s, this.clonePosition())
2748
2938
  });
2749
2939
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2750
2940
  if (r)
2751
2941
  break;
2752
2942
  return this.error(p.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2753
2943
  } else if (a === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
2754
- var s = this.parseTag(t, n);
2755
- if (s.err)
2756
- return s;
2757
- i.push(s.val);
2944
+ var o = this.parseTag(t, n);
2945
+ if (o.err)
2946
+ return o;
2947
+ i.push(o.val);
2758
2948
  } else {
2759
- var s = this.parseLiteral(t, n);
2760
- if (s.err)
2761
- return s;
2762
- i.push(s.val);
2949
+ var o = this.parseLiteral(t, n);
2950
+ if (o.err)
2951
+ return o;
2952
+ i.push(o.val);
2763
2953
  }
2764
2954
  }
2765
2955
  }
@@ -2781,27 +2971,27 @@ var Mr = (
2781
2971
  var a = this.parseMessage(t + 1, n, !0);
2782
2972
  if (a.err)
2783
2973
  return a;
2784
- var s = a.val, o = this.clonePosition();
2974
+ var o = a.val, s = this.clonePosition();
2785
2975
  if (this.bumpIf("</")) {
2786
2976
  if (this.isEOF() || !Xe(this.char()))
2787
- return this.error(p.INVALID_TAG, y(o, this.clonePosition()));
2788
- var l = this.clonePosition(), u = this.parseTagName();
2789
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2977
+ return this.error(p.INVALID_TAG, y(s, this.clonePosition()));
2978
+ var u = this.clonePosition(), l = this.parseTagName();
2979
+ return i !== l ? this.error(p.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2790
2980
  val: {
2791
2981
  type: _.tag,
2792
2982
  value: i,
2793
- children: s,
2983
+ children: o,
2794
2984
  location: y(r, this.clonePosition())
2795
2985
  },
2796
2986
  err: null
2797
- } : this.error(p.INVALID_TAG, y(o, this.clonePosition())));
2987
+ } : this.error(p.INVALID_TAG, y(s, this.clonePosition())));
2798
2988
  } else
2799
2989
  return this.error(p.UNCLOSED_TAG, y(r, this.clonePosition()));
2800
2990
  } else
2801
2991
  return this.error(p.INVALID_TAG, y(r, this.clonePosition()));
2802
2992
  }, e.prototype.parseTagName = function() {
2803
2993
  var t = this.offset();
2804
- for (this.bump(); !this.isEOF() && Or(this.char()); )
2994
+ for (this.bump(); !this.isEOF() && Gr(this.char()); )
2805
2995
  this.bump();
2806
2996
  return this.message.slice(t, this.offset());
2807
2997
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2811,26 +3001,26 @@ var Mr = (
2811
3001
  i += a;
2812
3002
  continue;
2813
3003
  }
2814
- var s = this.tryParseUnquoted(t, n);
2815
- if (s) {
2816
- i += s;
2817
- continue;
2818
- }
2819
- var o = this.tryParseLeftAngleBracket();
3004
+ var o = this.tryParseUnquoted(t, n);
2820
3005
  if (o) {
2821
3006
  i += o;
2822
3007
  continue;
2823
3008
  }
3009
+ var s = this.tryParseLeftAngleBracket();
3010
+ if (s) {
3011
+ i += s;
3012
+ continue;
3013
+ }
2824
3014
  break;
2825
3015
  }
2826
- var l = y(r, this.clonePosition());
3016
+ var u = y(r, this.clonePosition());
2827
3017
  return {
2828
- val: { type: _.literal, value: i, location: l },
3018
+ val: { type: _.literal, value: i, location: u },
2829
3019
  err: null
2830
3020
  };
2831
3021
  }, e.prototype.tryParseLeftAngleBracket = function() {
2832
3022
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2833
- !Pr(this.peek() || 0)) ? (this.bump(), "<") : null;
3023
+ !Fr(this.peek() || 0)) ? (this.bump(), "<") : null;
2834
3024
  }, e.prototype.tryParseQuote = function(t) {
2835
3025
  if (this.isEOF() || this.char() !== 39)
2836
3026
  return null;
@@ -2900,37 +3090,37 @@ var Mr = (
2900
3090
  }, e.prototype.parseIdentifierIfPossible = function() {
2901
3091
  var t = this.clonePosition(), n = this.offset(), r = qe(this.message, n), i = n + r.length;
2902
3092
  this.bumpTo(i);
2903
- var a = this.clonePosition(), s = y(t, a);
2904
- return { value: r, location: s };
3093
+ var a = this.clonePosition(), o = y(t, a);
3094
+ return { value: r, location: o };
2905
3095
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2906
- var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2907
- switch (o) {
3096
+ var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3097
+ switch (s) {
2908
3098
  case "":
2909
- return this.error(p.EXPECT_ARGUMENT_TYPE, y(s, l));
3099
+ return this.error(p.EXPECT_ARGUMENT_TYPE, y(o, u));
2910
3100
  case "number":
2911
3101
  case "date":
2912
3102
  case "time": {
2913
3103
  this.bumpSpace();
2914
- var u = null;
3104
+ var l = null;
2915
3105
  if (this.bumpIf(",")) {
2916
3106
  this.bumpSpace();
2917
3107
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2918
3108
  if (h.err)
2919
3109
  return h;
2920
- var d = Hr(h.val);
3110
+ var d = Rr(h.val);
2921
3111
  if (d.length === 0)
2922
3112
  return this.error(p.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2923
3113
  var f = y(c, this.clonePosition());
2924
- u = { style: d, styleLocation: f };
3114
+ l = { style: d, styleLocation: f };
2925
3115
  }
2926
3116
  var g = this.tryParseArgumentClose(i);
2927
3117
  if (g.err)
2928
3118
  return g;
2929
3119
  var k = y(i, this.clonePosition());
2930
- if (u && ct(u?.style, "::", 0)) {
2931
- var E = Lr(u.style.slice(2));
2932
- if (o === "number") {
2933
- var h = this.parseNumberSkeletonFromString(E, u.styleLocation);
3120
+ if (l && ht(l?.style, "::", 0)) {
3121
+ var E = zr(l.style.slice(2));
3122
+ if (s === "number") {
3123
+ var h = this.parseNumberSkeletonFromString(E, l.styleLocation);
2934
3124
  return h.err ? h : {
2935
3125
  val: { type: _.number, value: r, location: k, style: h.val },
2936
3126
  err: null
@@ -2939,13 +3129,13 @@ var Mr = (
2939
3129
  if (E.length === 0)
2940
3130
  return this.error(p.EXPECT_DATE_TIME_SKELETON, k);
2941
3131
  var m = E;
2942
- this.locale && (m = yr(E, this.locale));
3132
+ this.locale && (m = wr(E, this.locale));
2943
3133
  var d = {
2944
3134
  type: Q.dateTime,
2945
3135
  pattern: m,
2946
- location: u.styleLocation,
2947
- parsedOptions: this.shouldParseSkeletons ? hr(m) : {}
2948
- }, v = o === "date" ? _.date : _.time;
3136
+ location: l.styleLocation,
3137
+ parsedOptions: this.shouldParseSkeletons ? yr(m) : {}
3138
+ }, v = s === "date" ? _.date : _.time;
2949
3139
  return {
2950
3140
  val: { type: v, value: r, location: k, style: d },
2951
3141
  err: null
@@ -2954,10 +3144,10 @@ var Mr = (
2954
3144
  }
2955
3145
  return {
2956
3146
  val: {
2957
- type: o === "number" ? _.number : o === "date" ? _.date : _.time,
3147
+ type: s === "number" ? _.number : s === "date" ? _.date : _.time,
2958
3148
  value: r,
2959
3149
  location: k,
2960
- style: (a = u?.style) !== null && a !== void 0 ? a : null
3150
+ style: (a = l?.style) !== null && a !== void 0 ? a : null
2961
3151
  },
2962
3152
  err: null
2963
3153
  };
@@ -2965,32 +3155,32 @@ var Mr = (
2965
3155
  case "plural":
2966
3156
  case "selectordinal":
2967
3157
  case "select": {
2968
- var w = this.clonePosition();
3158
+ var A = this.clonePosition();
2969
3159
  if (this.bumpSpace(), !this.bumpIf(","))
2970
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, we({}, w)));
3160
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, Te({}, A)));
2971
3161
  this.bumpSpace();
2972
- var z = this.parseIdentifierIfPossible(), H = 0;
2973
- if (o !== "select" && z.value === "offset") {
3162
+ var U = this.parseIdentifierIfPossible(), O = 0;
3163
+ if (s !== "select" && U.value === "offset") {
2974
3164
  if (!this.bumpIf(":"))
2975
3165
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2976
3166
  this.bumpSpace();
2977
3167
  var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2978
3168
  if (h.err)
2979
3169
  return h;
2980
- this.bumpSpace(), z = this.parseIdentifierIfPossible(), H = h.val;
3170
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), O = h.val;
2981
3171
  }
2982
- var G = this.tryParsePluralOrSelectOptions(t, o, n, z);
2983
- if (G.err)
2984
- return G;
3172
+ var j = this.tryParsePluralOrSelectOptions(t, s, n, U);
3173
+ if (j.err)
3174
+ return j;
2985
3175
  var g = this.tryParseArgumentClose(i);
2986
3176
  if (g.err)
2987
3177
  return g;
2988
3178
  var ae = y(i, this.clonePosition());
2989
- return o === "select" ? {
3179
+ return s === "select" ? {
2990
3180
  val: {
2991
3181
  type: _.select,
2992
3182
  value: r,
2993
- options: ht(G.val),
3183
+ options: dt(j.val),
2994
3184
  location: ae
2995
3185
  },
2996
3186
  err: null
@@ -2998,16 +3188,16 @@ var Mr = (
2998
3188
  val: {
2999
3189
  type: _.plural,
3000
3190
  value: r,
3001
- options: ht(G.val),
3002
- offset: H,
3003
- pluralType: o === "plural" ? "cardinal" : "ordinal",
3191
+ options: dt(j.val),
3192
+ offset: O,
3193
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3004
3194
  location: ae
3005
3195
  },
3006
3196
  err: null
3007
3197
  };
3008
3198
  }
3009
3199
  default:
3010
- return this.error(p.INVALID_ARGUMENT_TYPE, y(s, l));
3200
+ return this.error(p.INVALID_ARGUMENT_TYPE, y(o, u));
3011
3201
  }
3012
3202
  }, e.prototype.tryParseArgumentClose = function(t) {
3013
3203
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3049,7 +3239,7 @@ var Mr = (
3049
3239
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3050
3240
  var r = [];
3051
3241
  try {
3052
- r = mr(t);
3242
+ r = Er(t);
3053
3243
  } catch {
3054
3244
  return this.error(p.INVALID_NUMBER_SKELETON, n);
3055
3245
  }
@@ -3058,25 +3248,25 @@ var Mr = (
3058
3248
  type: Q.number,
3059
3249
  tokens: r,
3060
3250
  location: n,
3061
- parsedOptions: this.shouldParseSkeletons ? br(r) : {}
3251
+ parsedOptions: this.shouldParseSkeletons ? Tr(r) : {}
3062
3252
  },
3063
3253
  err: null
3064
3254
  };
3065
3255
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3066
- for (var a, s = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3067
- if (u.length === 0) {
3256
+ for (var a, o = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3257
+ if (l.length === 0) {
3068
3258
  var h = this.clonePosition();
3069
3259
  if (n !== "select" && this.bumpIf("=")) {
3070
3260
  var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3071
3261
  if (d.err)
3072
3262
  return d;
3073
- c = y(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
3263
+ c = y(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
3074
3264
  } else
3075
3265
  break;
3076
3266
  }
3077
- if (l.has(u))
3267
+ if (u.has(l))
3078
3268
  return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3079
- u === "other" && (s = !0), this.bumpSpace();
3269
+ l === "other" && (o = !0), this.bumpSpace();
3080
3270
  var f = this.clonePosition();
3081
3271
  if (!this.bumpIf("{"))
3082
3272
  return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
@@ -3086,27 +3276,27 @@ var Mr = (
3086
3276
  var k = this.tryParseArgumentClose(f);
3087
3277
  if (k.err)
3088
3278
  return k;
3089
- o.push([
3090
- u,
3279
+ s.push([
3280
+ l,
3091
3281
  {
3092
3282
  value: g.val,
3093
3283
  location: y(f, this.clonePosition())
3094
3284
  }
3095
- ]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, c = a.location;
3285
+ ]), u.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
3096
3286
  }
3097
- return o.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3287
+ return s.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3098
3288
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3099
3289
  var r = 1, i = this.clonePosition();
3100
3290
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3101
- for (var a = !1, s = 0; !this.isEOF(); ) {
3102
- var o = this.char();
3103
- if (o >= 48 && o <= 57)
3104
- a = !0, s = s * 10 + (o - 48), this.bump();
3291
+ for (var a = !1, o = 0; !this.isEOF(); ) {
3292
+ var s = this.char();
3293
+ if (s >= 48 && s <= 57)
3294
+ a = !0, o = o * 10 + (s - 48), this.bump();
3105
3295
  else
3106
3296
  break;
3107
3297
  }
3108
- var l = y(i, this.clonePosition());
3109
- return a ? (s *= r, Br(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3298
+ var u = y(i, this.clonePosition());
3299
+ return a ? (o *= r, Dr(o) ? { val: o, err: null } : this.error(n, u)) : this.error(t, u);
3110
3300
  }, e.prototype.offset = function() {
3111
3301
  return this.position.offset;
3112
3302
  }, e.prototype.isEOF = function() {
@@ -3121,7 +3311,7 @@ var Mr = (
3121
3311
  var t = this.position.offset;
3122
3312
  if (t >= this.message.length)
3123
3313
  throw Error("out of bound");
3124
- var n = Xt(this.message, t);
3314
+ var n = an(this.message, t);
3125
3315
  if (n === void 0)
3126
3316
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3127
3317
  return n;
@@ -3140,7 +3330,7 @@ var Mr = (
3140
3330
  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);
3141
3331
  }
3142
3332
  }, e.prototype.bumpIf = function(t) {
3143
- if (ct(this.message, t, this.offset())) {
3333
+ if (ht(this.message, t, this.offset())) {
3144
3334
  for (var n = 0; n < t.length; n++)
3145
3335
  this.bump();
3146
3336
  return !0;
@@ -3162,7 +3352,7 @@ var Mr = (
3162
3352
  break;
3163
3353
  }
3164
3354
  }, e.prototype.bumpSpace = function() {
3165
- for (; !this.isEOF() && Jt(this.char()); )
3355
+ for (; !this.isEOF() && on(this.char()); )
3166
3356
  this.bump();
3167
3357
  }, e.prototype.peek = function() {
3168
3358
  if (this.isEOF())
@@ -3175,30 +3365,30 @@ var Mr = (
3175
3365
  function Xe(e) {
3176
3366
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3177
3367
  }
3178
- function Pr(e) {
3368
+ function Fr(e) {
3179
3369
  return Xe(e) || e === 47;
3180
3370
  }
3181
- function Or(e) {
3371
+ function Gr(e) {
3182
3372
  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;
3183
3373
  }
3184
- function Jt(e) {
3374
+ function on(e) {
3185
3375
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3186
3376
  }
3187
- function Dr(e) {
3377
+ function $r(e) {
3188
3378
  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;
3189
3379
  }
3190
3380
  function Ze(e) {
3191
3381
  e.forEach(function(t) {
3192
- if (delete t.location, Ut(t) || Ft(t))
3382
+ if (delete t.location, Jt(t) || Kt(t))
3193
3383
  for (var n in t.options)
3194
3384
  delete t.options[n].location, Ze(t.options[n].value);
3195
3385
  else
3196
- Nt(t) && $t(t.style) || (Rt(t) || zt(t)) && je(t.style) ? delete t.style.location : Gt(t) && Ze(t.children);
3386
+ qt(t) && Qt(t.style) || (Xt(t) || Zt(t)) && je(t.style) ? delete t.style.location : Yt(t) && Ze(t.children);
3197
3387
  });
3198
3388
  }
3199
- function Nr(e, t) {
3200
- t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3201
- var n = new Mr(e, t).parse();
3389
+ function jr(e, t) {
3390
+ t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3391
+ var n = new Ur(e, t).parse();
3202
3392
  if (n.err) {
3203
3393
  var r = SyntaxError(p[n.err.kind]);
3204
3394
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
@@ -3212,7 +3402,7 @@ var ee;
3212
3402
  var Le = (
3213
3403
  /** @class */
3214
3404
  function(e) {
3215
- Ce(t, e);
3405
+ Be(t, e);
3216
3406
  function t(n, r, i) {
3217
3407
  var a = e.call(this, n) || this;
3218
3408
  return a.code = r, a.originalMessage = i, a;
@@ -3221,155 +3411,155 @@ var Le = (
3221
3411
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3222
3412
  }, t;
3223
3413
  }(Error)
3224
- ), mt = (
3414
+ ), ft = (
3225
3415
  /** @class */
3226
3416
  function(e) {
3227
- Ce(t, e);
3417
+ Be(t, e);
3228
3418
  function t(n, r, i, a) {
3229
3419
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, a) || this;
3230
3420
  }
3231
3421
  return t;
3232
3422
  }(Le)
3233
- ), Rr = (
3423
+ ), Vr = (
3234
3424
  /** @class */
3235
3425
  function(e) {
3236
- Ce(t, e);
3426
+ Be(t, e);
3237
3427
  function t(n, r, i) {
3238
3428
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ee.INVALID_VALUE, i) || this;
3239
3429
  }
3240
3430
  return t;
3241
3431
  }(Le)
3242
- ), zr = (
3432
+ ), Wr = (
3243
3433
  /** @class */
3244
3434
  function(e) {
3245
- Ce(t, e);
3435
+ Be(t, e);
3246
3436
  function t(n, r) {
3247
3437
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ee.MISSING_VALUE, r) || this;
3248
3438
  }
3249
3439
  return t;
3250
3440
  }(Le)
3251
- ), I;
3441
+ ), S;
3252
3442
  (function(e) {
3253
3443
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3254
- })(I || (I = {}));
3255
- function Ur(e) {
3444
+ })(S || (S = {}));
3445
+ function qr(e) {
3256
3446
  return e.length < 2 ? e : e.reduce(function(t, n) {
3257
3447
  var r = t[t.length - 1];
3258
- return !r || r.type !== I.literal || n.type !== I.literal ? t.push(n) : r.value += n.value, t;
3448
+ return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
3259
3449
  }, []);
3260
3450
  }
3261
- function Fr(e) {
3451
+ function Xr(e) {
3262
3452
  return typeof e == "function";
3263
3453
  }
3264
- function ke(e, t, n, r, i, a, s) {
3265
- if (e.length === 1 && st(e[0]))
3454
+ function xe(e, t, n, r, i, a, o) {
3455
+ if (e.length === 1 && ot(e[0]))
3266
3456
  return [
3267
3457
  {
3268
- type: I.literal,
3458
+ type: S.literal,
3269
3459
  value: e[0].value
3270
3460
  }
3271
3461
  ];
3272
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3273
- var c = u[l];
3274
- if (st(c)) {
3275
- o.push({
3276
- type: I.literal,
3462
+ for (var s = [], u = 0, l = e; u < l.length; u++) {
3463
+ var c = l[u];
3464
+ if (ot(c)) {
3465
+ s.push({
3466
+ type: S.literal,
3277
3467
  value: c.value
3278
3468
  });
3279
3469
  continue;
3280
3470
  }
3281
- if (ur(c)) {
3282
- typeof a == "number" && o.push({
3283
- type: I.literal,
3471
+ if (pr(c)) {
3472
+ typeof a == "number" && s.push({
3473
+ type: S.literal,
3284
3474
  value: n.getNumberFormat(t).format(a)
3285
3475
  });
3286
3476
  continue;
3287
3477
  }
3288
3478
  var h = c.value;
3289
3479
  if (!(i && h in i))
3290
- throw new zr(h, s);
3480
+ throw new Wr(h, o);
3291
3481
  var d = i[h];
3292
- if (lr(c)) {
3293
- (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
3294
- type: typeof d == "string" ? I.literal : I.object,
3482
+ if (gr(c)) {
3483
+ (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3484
+ type: typeof d == "string" ? S.literal : S.object,
3295
3485
  value: d
3296
3486
  });
3297
3487
  continue;
3298
3488
  }
3299
- if (Rt(c)) {
3489
+ if (Xt(c)) {
3300
3490
  var f = typeof c.style == "string" ? r.date[c.style] : je(c.style) ? c.style.parsedOptions : void 0;
3301
- o.push({
3302
- type: I.literal,
3491
+ s.push({
3492
+ type: S.literal,
3303
3493
  value: n.getDateTimeFormat(t, f).format(d)
3304
3494
  });
3305
3495
  continue;
3306
3496
  }
3307
- if (zt(c)) {
3497
+ if (Zt(c)) {
3308
3498
  var f = typeof c.style == "string" ? r.time[c.style] : je(c.style) ? c.style.parsedOptions : r.time.medium;
3309
- o.push({
3310
- type: I.literal,
3499
+ s.push({
3500
+ type: S.literal,
3311
3501
  value: n.getDateTimeFormat(t, f).format(d)
3312
3502
  });
3313
3503
  continue;
3314
3504
  }
3315
- if (Nt(c)) {
3316
- var f = typeof c.style == "string" ? r.number[c.style] : $t(c.style) ? c.style.parsedOptions : void 0;
3317
- f && f.scale && (d = d * (f.scale || 1)), o.push({
3318
- type: I.literal,
3505
+ if (qt(c)) {
3506
+ var f = typeof c.style == "string" ? r.number[c.style] : Qt(c.style) ? c.style.parsedOptions : void 0;
3507
+ f && f.scale && (d = d * (f.scale || 1)), s.push({
3508
+ type: S.literal,
3319
3509
  value: n.getNumberFormat(t, f).format(d)
3320
3510
  });
3321
3511
  continue;
3322
3512
  }
3323
- if (Gt(c)) {
3513
+ if (Yt(c)) {
3324
3514
  var g = c.children, k = c.value, E = i[k];
3325
- if (!Fr(E))
3326
- throw new Rr(k, "function", s);
3327
- var m = ke(g, t, n, r, i, a), v = E(m.map(function(H) {
3328
- return H.value;
3515
+ if (!Xr(E))
3516
+ throw new Vr(k, "function", o);
3517
+ var m = xe(g, t, n, r, i, a), v = E(m.map(function(O) {
3518
+ return O.value;
3329
3519
  }));
3330
- Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(H) {
3520
+ Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(O) {
3331
3521
  return {
3332
- type: typeof H == "string" ? I.literal : I.object,
3333
- value: H
3522
+ type: typeof O == "string" ? S.literal : S.object,
3523
+ value: O
3334
3524
  };
3335
3525
  }));
3336
3526
  }
3337
- if (Ut(c)) {
3338
- var w = c.options[d] || c.options.other;
3339
- if (!w)
3340
- throw new mt(c.value, d, Object.keys(c.options), s);
3341
- o.push.apply(o, ke(w.value, t, n, r, i));
3527
+ if (Jt(c)) {
3528
+ var A = c.options[d] || c.options.other;
3529
+ if (!A)
3530
+ throw new ft(c.value, d, Object.keys(c.options), o);
3531
+ s.push.apply(s, xe(A.value, t, n, r, i));
3342
3532
  continue;
3343
3533
  }
3344
- if (Ft(c)) {
3345
- var w = c.options["=".concat(d)];
3346
- if (!w) {
3534
+ if (Kt(c)) {
3535
+ var A = c.options["=".concat(d)];
3536
+ if (!A) {
3347
3537
  if (!Intl.PluralRules)
3348
3538
  throw new Le(`Intl.PluralRules is not available in this environment.
3349
3539
  Try polyfilling it using "@formatjs/intl-pluralrules"
3350
- `, ee.MISSING_INTL_API, s);
3351
- var z = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3352
- w = c.options[z] || c.options.other;
3540
+ `, ee.MISSING_INTL_API, o);
3541
+ var U = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3542
+ A = c.options[U] || c.options.other;
3353
3543
  }
3354
- if (!w)
3355
- throw new mt(c.value, d, Object.keys(c.options), s);
3356
- o.push.apply(o, ke(w.value, t, n, r, i, d - (c.offset || 0)));
3544
+ if (!A)
3545
+ throw new ft(c.value, d, Object.keys(c.options), o);
3546
+ s.push.apply(s, xe(A.value, t, n, r, i, d - (c.offset || 0)));
3357
3547
  continue;
3358
3548
  }
3359
3549
  }
3360
- return Ur(o);
3550
+ return qr(s);
3361
3551
  }
3362
- function Gr(e, t) {
3363
- return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3364
- return n[r] = L(L({}, e[r]), t[r] || {}), n;
3552
+ function Zr(e, t) {
3553
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3554
+ return n[r] = P(P({}, e[r]), t[r] || {}), n;
3365
3555
  }, {})) : e;
3366
3556
  }
3367
- function $r(e, t) {
3557
+ function Jr(e, t) {
3368
3558
  return t ? Object.keys(e).reduce(function(n, r) {
3369
- return n[r] = Gr(e[r], t[r]), n;
3370
- }, L({}, e)) : e;
3559
+ return n[r] = Zr(e[r], t[r]), n;
3560
+ }, P({}, e)) : e;
3371
3561
  }
3372
- function Re(e) {
3562
+ function ze(e) {
3373
3563
  return {
3374
3564
  create: function() {
3375
3565
  return {
@@ -3383,7 +3573,7 @@ function Re(e) {
3383
3573
  }
3384
3574
  };
3385
3575
  }
3386
- function jr(e) {
3576
+ function Kr(e) {
3387
3577
  return e === void 0 && (e = {
3388
3578
  number: {},
3389
3579
  dateTime: {},
@@ -3394,7 +3584,7 @@ function jr(e) {
3394
3584
  n[r] = arguments[r];
3395
3585
  return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], n, !1)))();
3396
3586
  }, {
3397
- cache: Re(e.number),
3587
+ cache: ze(e.number),
3398
3588
  strategy: De.variadic
3399
3589
  }),
3400
3590
  getDateTimeFormat: Oe(function() {
@@ -3402,7 +3592,7 @@ function jr(e) {
3402
3592
  n[r] = arguments[r];
3403
3593
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], n, !1)))();
3404
3594
  }, {
3405
- cache: Re(e.dateTime),
3595
+ cache: ze(e.dateTime),
3406
3596
  strategy: De.variadic
3407
3597
  }),
3408
3598
  getPluralRules: Oe(function() {
@@ -3410,12 +3600,12 @@ function jr(e) {
3410
3600
  n[r] = arguments[r];
3411
3601
  return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], n, !1)))();
3412
3602
  }, {
3413
- cache: Re(e.pluralRules),
3603
+ cache: ze(e.pluralRules),
3414
3604
  strategy: De.variadic
3415
3605
  })
3416
3606
  };
3417
3607
  }
3418
- var Kt = (
3608
+ var ln = (
3419
3609
  /** @class */
3420
3610
  function() {
3421
3611
  function e(t, n, r, i) {
@@ -3425,35 +3615,35 @@ var Kt = (
3425
3615
  number: {},
3426
3616
  dateTime: {},
3427
3617
  pluralRules: {}
3428
- }, this.format = function(l) {
3429
- var u = a.formatToParts(l);
3430
- if (u.length === 1)
3431
- return u[0].value;
3432
- var c = u.reduce(function(h, d) {
3433
- return !h.length || d.type !== I.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3618
+ }, this.format = function(u) {
3619
+ var l = a.formatToParts(u);
3620
+ if (l.length === 1)
3621
+ return l[0].value;
3622
+ var c = l.reduce(function(h, d) {
3623
+ return !h.length || d.type !== S.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3434
3624
  }, []);
3435
3625
  return c.length <= 1 ? c[0] || "" : c;
3436
- }, this.formatToParts = function(l) {
3437
- return ke(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
3626
+ }, this.formatToParts = function(u) {
3627
+ return xe(a.ast, a.locales, a.formatters, a.formats, u, void 0, a.message);
3438
3628
  }, this.resolvedOptions = function() {
3439
- var l;
3629
+ var u;
3440
3630
  return {
3441
- locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3631
+ locale: ((u = a.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3442
3632
  };
3443
3633
  }, this.getAst = function() {
3444
3634
  return a.ast;
3445
3635
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3446
3636
  if (this.message = t, !e.__parse)
3447
3637
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3448
- var s = i || {};
3449
- s.formatters;
3450
- var o = er(s, ["formatters"]);
3451
- this.ast = e.__parse(t, L(L({}, o), { locale: this.resolvedLocale }));
3638
+ var o = i || {};
3639
+ o.formatters;
3640
+ var s = or(o, ["formatters"]);
3641
+ this.ast = e.__parse(t, P(P({}, s), { locale: this.resolvedLocale }));
3452
3642
  } else
3453
3643
  this.ast = t;
3454
3644
  if (!Array.isArray(this.ast))
3455
3645
  throw new TypeError("A message must be provided as a String or AST.");
3456
- this.formats = $r(e.formats, r), this.formatters = i && i.formatters || jr(this.formatterCache);
3646
+ this.formats = Jr(e.formats, r), this.formatters = i && i.formatters || Kr(this.formatterCache);
3457
3647
  }
3458
3648
  return Object.defineProperty(e, "defaultLocale", {
3459
3649
  get: function() {
@@ -3466,7 +3656,7 @@ var Kt = (
3466
3656
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3467
3657
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3468
3658
  }
3469
- }, e.__parse = Nr, e.formats = {
3659
+ }, e.__parse = jr, e.formats = {
3470
3660
  number: {
3471
3661
  integer: {
3472
3662
  maximumFractionDigits: 0
@@ -3527,7 +3717,7 @@ var Kt = (
3527
3717
  }, e;
3528
3718
  }()
3529
3719
  );
3530
- function Vr(e, t) {
3720
+ function Yr(e, t) {
3531
3721
  if (t == null)
3532
3722
  return;
3533
3723
  if (t in e)
@@ -3548,101 +3738,101 @@ function Vr(e, t) {
3548
3738
  r = void 0;
3549
3739
  return r;
3550
3740
  }
3551
- const D = {}, Wr = (e, t, n) => n && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = n), n), Yt = (e, t) => {
3741
+ const N = {}, Qr = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), un = (e, t) => {
3552
3742
  if (t == null)
3553
3743
  return;
3554
- if (t in D && e in D[t])
3555
- return D[t][e];
3744
+ if (t in N && e in N[t])
3745
+ return N[t][e];
3556
3746
  const n = me(t);
3557
3747
  for (let r = 0; r < n.length; r++) {
3558
- const i = n[r], a = Xr(i, e);
3748
+ const i = n[r], a = ti(i, e);
3559
3749
  if (a)
3560
- return Wr(e, t, a);
3750
+ return Qr(e, t, a);
3561
3751
  }
3562
3752
  };
3563
3753
  let Qe;
3564
- const de = Be({});
3565
- function qr(e) {
3754
+ const de = Ce({});
3755
+ function ei(e) {
3566
3756
  return Qe[e] || null;
3567
3757
  }
3568
- function Qt(e) {
3758
+ function cn(e) {
3569
3759
  return e in Qe;
3570
3760
  }
3571
- function Xr(e, t) {
3572
- if (!Qt(e))
3761
+ function ti(e, t) {
3762
+ if (!cn(e))
3573
3763
  return null;
3574
- const n = qr(e);
3575
- return Vr(n, t);
3764
+ const n = ei(e);
3765
+ return Yr(n, t);
3576
3766
  }
3577
- function Zr(e) {
3767
+ function ni(e) {
3578
3768
  if (e == null)
3579
3769
  return;
3580
3770
  const t = me(e);
3581
3771
  for (let n = 0; n < t.length; n++) {
3582
3772
  const r = t[n];
3583
- if (Qt(r))
3773
+ if (cn(r))
3584
3774
  return r;
3585
3775
  }
3586
3776
  }
3587
- function en(e, ...t) {
3588
- delete D[e], de.update((n) => (n[e] = Qn.all([n[e] || {}, ...t]), n));
3777
+ function hn(e, ...t) {
3778
+ delete N[e], de.update((n) => (n[e] = sr.all([n[e] || {}, ...t]), n));
3589
3779
  }
3590
3780
  re(
3591
3781
  [de],
3592
3782
  ([e]) => Object.keys(e)
3593
3783
  );
3594
3784
  de.subscribe((e) => Qe = e);
3595
- const Te = {};
3596
- function Jr(e, t) {
3597
- Te[e].delete(t), Te[e].size === 0 && delete Te[e];
3785
+ const ke = {};
3786
+ function ri(e, t) {
3787
+ ke[e].delete(t), ke[e].size === 0 && delete ke[e];
3598
3788
  }
3599
- function tn(e) {
3600
- return Te[e];
3789
+ function dn(e) {
3790
+ return ke[e];
3601
3791
  }
3602
- function Kr(e) {
3792
+ function ii(e) {
3603
3793
  return me(e).map((t) => {
3604
- const n = tn(t);
3794
+ const n = dn(t);
3605
3795
  return [t, n ? [...n] : []];
3606
3796
  }).filter(([, t]) => t.length > 0);
3607
3797
  }
3608
- function Ie(e) {
3798
+ function we(e) {
3609
3799
  return e == null ? !1 : me(e).some(
3610
3800
  (t) => {
3611
3801
  var n;
3612
- return (n = tn(t)) == null ? void 0 : n.size;
3802
+ return (n = dn(t)) == null ? void 0 : n.size;
3613
3803
  }
3614
3804
  );
3615
3805
  }
3616
- function Yr(e, t) {
3806
+ function ai(e, t) {
3617
3807
  return Promise.all(
3618
- t.map((r) => (Jr(e, r), r().then((i) => i.default || i)))
3619
- ).then((r) => en(e, ...r));
3808
+ t.map((r) => (ri(e, r), r().then((i) => i.default || i)))
3809
+ ).then((r) => hn(e, ...r));
3620
3810
  }
3621
3811
  const se = {};
3622
- function nn(e) {
3623
- if (!Ie(e))
3812
+ function mn(e) {
3813
+ if (!we(e))
3624
3814
  return e in se ? se[e] : Promise.resolve();
3625
- const t = Kr(e);
3815
+ const t = ii(e);
3626
3816
  return se[e] = Promise.all(
3627
3817
  t.map(
3628
- ([n, r]) => Yr(n, r)
3818
+ ([n, r]) => ai(n, r)
3629
3819
  )
3630
3820
  ).then(() => {
3631
- if (Ie(e))
3632
- return nn(e);
3821
+ if (we(e))
3822
+ return mn(e);
3633
3823
  delete se[e];
3634
3824
  }), se[e];
3635
3825
  }
3636
- var ft = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ti = (e, t) => {
3826
+ var gt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, li = (e, t) => {
3637
3827
  var n = {};
3638
3828
  for (var r in e)
3639
- Qr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3640
- if (e != null && ft)
3641
- for (var r of ft(e))
3642
- t.indexOf(r) < 0 && ei.call(e, r) && (n[r] = e[r]);
3829
+ si.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3830
+ if (e != null && gt)
3831
+ for (var r of gt(e))
3832
+ t.indexOf(r) < 0 && oi.call(e, r) && (n[r] = e[r]);
3643
3833
  return n;
3644
3834
  };
3645
- const ni = {
3835
+ const ui = {
3646
3836
  number: {
3647
3837
  scientific: { notation: "scientific" },
3648
3838
  engineering: { notation: "engineering" },
@@ -3672,81 +3862,81 @@ const ni = {
3672
3862
  }
3673
3863
  }
3674
3864
  };
3675
- function ri({ locale: e, id: t }) {
3865
+ function ci({ locale: e, id: t }) {
3676
3866
  console.warn(
3677
3867
  `[svelte-i18n] The message "${t}" was not found in "${me(
3678
3868
  e
3679
- ).join('", "')}".${Ie(R()) ? `
3869
+ ).join('", "')}".${we(R()) ? `
3680
3870
 
3681
3871
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3682
3872
  );
3683
3873
  }
3684
- const ii = {
3874
+ const hi = {
3685
3875
  fallbackLocale: null,
3686
3876
  loadingDelay: 200,
3687
- formats: ni,
3877
+ formats: ui,
3688
3878
  warnOnMissingMessages: !0,
3689
3879
  handleMissingMessage: void 0,
3690
3880
  ignoreTag: !0
3691
- }, oe = ii;
3881
+ }, oe = hi;
3692
3882
  function te() {
3693
3883
  return oe;
3694
3884
  }
3695
- function ai(e) {
3696
- const t = e, { formats: n } = t, r = ti(t, ["formats"]);
3885
+ function di(e) {
3886
+ const t = e, { formats: n } = t, r = li(t, ["formats"]);
3697
3887
  let i = e.fallbackLocale;
3698
3888
  if (e.initialLocale)
3699
3889
  try {
3700
- Kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3890
+ ln.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3701
3891
  } catch {
3702
3892
  console.warn(
3703
3893
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3704
3894
  );
3705
3895
  }
3706
- return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ri : console.warn(
3896
+ return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ci : console.warn(
3707
3897
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3708
- )), Object.assign(oe, r, { initialLocale: i }), n && ("number" in n && Object.assign(oe.formats.number, n.number), "date" in n && Object.assign(oe.formats.date, n.date), "time" in n && Object.assign(oe.formats.time, n.time)), F.set(i);
3898
+ )), Object.assign(oe, r, { initialLocale: i }), n && ("number" in n && Object.assign(oe.formats.number, n.number), "date" in n && Object.assign(oe.formats.date, n.date), "time" in n && Object.assign(oe.formats.time, n.time)), $.set(i);
3709
3899
  }
3710
- const ze = Be(!1);
3711
- var si = Object.defineProperty, oi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, pt = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hi = (e, t) => {
3900
+ const Re = Ce(!1);
3901
+ var mi = Object.defineProperty, fi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, bt = (e, t, n) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yi = (e, t) => {
3712
3902
  for (var n in t || (t = {}))
3713
- ui.call(t, n) && pt(e, n, t[n]);
3714
- if (gt)
3715
- for (var n of gt(t))
3716
- ci.call(t, n) && pt(e, n, t[n]);
3903
+ pi.call(t, n) && bt(e, n, t[n]);
3904
+ if (pt)
3905
+ for (var n of pt(t))
3906
+ bi.call(t, n) && bt(e, n, t[n]);
3717
3907
  return e;
3718
- }, di = (e, t) => oi(e, li(t));
3908
+ }, vi = (e, t) => fi(e, gi(t));
3719
3909
  let Je;
3720
- const Ae = Be(null);
3721
- function bt(e) {
3910
+ const Ie = Ce(null);
3911
+ function yt(e) {
3722
3912
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3723
3913
  }
3724
3914
  function me(e, t = te().fallbackLocale) {
3725
- const n = bt(e);
3726
- return t ? [.../* @__PURE__ */ new Set([...n, ...bt(t)])] : n;
3915
+ const n = yt(e);
3916
+ return t ? [.../* @__PURE__ */ new Set([...n, ...yt(t)])] : n;
3727
3917
  }
3728
3918
  function R() {
3729
3919
  return Je ?? void 0;
3730
3920
  }
3731
- Ae.subscribe((e) => {
3921
+ Ie.subscribe((e) => {
3732
3922
  Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3733
3923
  });
3734
- const mi = (e) => {
3735
- if (e && Zr(e) && Ie(e)) {
3924
+ const Ei = (e) => {
3925
+ if (e && ni(e) && we(e)) {
3736
3926
  const { loadingDelay: t } = te();
3737
3927
  let n;
3738
3928
  return typeof window < "u" && R() != null && t ? n = window.setTimeout(
3739
- () => ze.set(!0),
3929
+ () => Re.set(!0),
3740
3930
  t
3741
- ) : ze.set(!0), nn(e).then(() => {
3742
- Ae.set(e);
3931
+ ) : Re.set(!0), mn(e).then(() => {
3932
+ Ie.set(e);
3743
3933
  }).finally(() => {
3744
- clearTimeout(n), ze.set(!1);
3934
+ clearTimeout(n), Re.set(!1);
3745
3935
  });
3746
3936
  }
3747
- return Ae.set(e);
3748
- }, F = di(hi({}, Ae), {
3749
- set: mi
3937
+ return Ie.set(e);
3938
+ }, $ = vi(yi({}, Ie), {
3939
+ set: Ei
3750
3940
  }), He = (e) => {
3751
3941
  const t = /* @__PURE__ */ Object.create(null);
3752
3942
  return (r) => {
@@ -3754,20 +3944,20 @@ const mi = (e) => {
3754
3944
  return i in t ? t[i] : t[i] = e(r);
3755
3945
  };
3756
3946
  };
3757
- var fi = Object.defineProperty, Se = Object.getOwnPropertySymbols, rn = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable, yt = (e, t, n) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, et = (e, t) => {
3947
+ var _i = Object.defineProperty, Ae = Object.getOwnPropertySymbols, fn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable, vt = (e, t, n) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, et = (e, t) => {
3758
3948
  for (var n in t || (t = {}))
3759
- rn.call(t, n) && yt(e, n, t[n]);
3760
- if (Se)
3761
- for (var n of Se(t))
3762
- an.call(t, n) && yt(e, n, t[n]);
3949
+ fn.call(t, n) && vt(e, n, t[n]);
3950
+ if (Ae)
3951
+ for (var n of Ae(t))
3952
+ gn.call(t, n) && vt(e, n, t[n]);
3763
3953
  return e;
3764
3954
  }, ie = (e, t) => {
3765
3955
  var n = {};
3766
3956
  for (var r in e)
3767
- rn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3768
- if (e != null && Se)
3769
- for (var r of Se(e))
3770
- t.indexOf(r) < 0 && an.call(e, r) && (n[r] = e[r]);
3957
+ fn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3958
+ if (e != null && Ae)
3959
+ for (var r of Ae(e))
3960
+ t.indexOf(r) < 0 && gn.call(e, r) && (n[r] = e[r]);
3771
3961
  return n;
3772
3962
  };
3773
3963
  const he = (e, t) => {
@@ -3775,21 +3965,21 @@ const he = (e, t) => {
3775
3965
  if (e in n && t in n[e])
3776
3966
  return n[e][t];
3777
3967
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3778
- }, gi = He(
3968
+ }, xi = He(
3779
3969
  (e) => {
3780
3970
  var t = e, { locale: n, format: r } = t, i = ie(t, ["locale", "format"]);
3781
3971
  if (n == null)
3782
3972
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3783
3973
  return r && (i = he("number", r)), new Intl.NumberFormat(n, i);
3784
3974
  }
3785
- ), pi = He(
3975
+ ), ki = He(
3786
3976
  (e) => {
3787
3977
  var t = e, { locale: n, format: r } = t, i = ie(t, ["locale", "format"]);
3788
3978
  if (n == null)
3789
3979
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3790
3980
  return r ? i = he("date", r) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(n, i);
3791
3981
  }
3792
- ), bi = He(
3982
+ ), Ti = He(
3793
3983
  (e) => {
3794
3984
  var t = e, { locale: n, format: r } = t, i = ie(t, ["locale", "format"]);
3795
3985
  if (n == null)
@@ -3798,57 +3988,57 @@ const he = (e, t) => {
3798
3988
  );
3799
3989
  return r ? i = he("time", r) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(n, i);
3800
3990
  }
3801
- ), yi = (e = {}) => {
3991
+ ), wi = (e = {}) => {
3802
3992
  var t = e, {
3803
3993
  locale: n = R()
3804
3994
  } = t, r = ie(t, [
3805
3995
  "locale"
3806
3996
  ]);
3807
- return gi(et({ locale: n }, r));
3808
- }, vi = (e = {}) => {
3997
+ return xi(et({ locale: n }, r));
3998
+ }, Ii = (e = {}) => {
3809
3999
  var t = e, {
3810
4000
  locale: n = R()
3811
4001
  } = t, r = ie(t, [
3812
4002
  "locale"
3813
4003
  ]);
3814
- return pi(et({ locale: n }, r));
3815
- }, Ei = (e = {}) => {
4004
+ return ki(et({ locale: n }, r));
4005
+ }, Ai = (e = {}) => {
3816
4006
  var t = e, {
3817
4007
  locale: n = R()
3818
4008
  } = t, r = ie(t, [
3819
4009
  "locale"
3820
4010
  ]);
3821
- return bi(et({ locale: n }, r));
3822
- }, _i = He(
4011
+ return Ti(et({ locale: n }, r));
4012
+ }, Si = He(
3823
4013
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3824
- (e, t = R()) => new Kt(e, t, te().formats, {
4014
+ (e, t = R()) => new ln(e, t, te().formats, {
3825
4015
  ignoreTag: te().ignoreTag
3826
4016
  })
3827
- ), xi = (e, t = {}) => {
4017
+ ), Ci = (e, t = {}) => {
3828
4018
  var n, r, i, a;
3829
- let s = t;
3830
- typeof e == "object" && (s = e, e = s.id);
4019
+ let o = t;
4020
+ typeof e == "object" && (o = e, e = o.id);
3831
4021
  const {
3832
- values: o,
3833
- locale: l = R(),
3834
- default: u
3835
- } = s;
3836
- if (l == null)
4022
+ values: s,
4023
+ locale: u = R(),
4024
+ default: l
4025
+ } = o;
4026
+ if (u == null)
3837
4027
  throw new Error(
3838
4028
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3839
4029
  );
3840
- let c = Yt(e, l);
4030
+ let c = un(e, u);
3841
4031
  if (!c)
3842
- c = (a = (i = (r = (n = te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
4032
+ c = (a = (i = (r = (n = te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3843
4033
  else if (typeof c != "string")
3844
4034
  return console.warn(
3845
4035
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3846
4036
  ), c;
3847
- if (!o)
4037
+ if (!s)
3848
4038
  return c;
3849
4039
  let h = c;
3850
4040
  try {
3851
- h = _i(c, l).format(o);
4041
+ h = Si(c, u).format(s);
3852
4042
  } catch (d) {
3853
4043
  d instanceof Error && console.warn(
3854
4044
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3856,20 +4046,20 @@ const he = (e, t) => {
3856
4046
  );
3857
4047
  }
3858
4048
  return h;
3859
- }, ki = (e, t) => Ei(t).format(e), Ti = (e, t) => vi(t).format(e), wi = (e, t) => yi(t).format(e), Ii = (e, t = R()) => Yt(e, t), Ai = re([F, de], () => xi);
3860
- re([F], () => ki);
3861
- re([F], () => Ti);
3862
- re([F], () => wi);
3863
- re([F, de], () => Ii);
3864
- function vt(e, t) {
3865
- en(e, t);
3866
- }
3867
- function Si(e) {
3868
- ai({
4049
+ }, Bi = (e, t) => Ai(t).format(e), Li = (e, t) => Ii(t).format(e), Hi = (e, t) => wi(t).format(e), Mi = (e, t = R()) => un(e, t), Pi = re([$, de], () => Ci);
4050
+ re([$], () => Bi);
4051
+ re([$], () => Li);
4052
+ re([$], () => Hi);
4053
+ re([$, de], () => Mi);
4054
+ function Et(e, t) {
4055
+ hn(e, t);
4056
+ }
4057
+ function Oi(e) {
4058
+ di({
3869
4059
  fallbackLocale: "en"
3870
- }), F.set(e);
4060
+ }), $.set(e);
3871
4061
  }
3872
- const Et = {
4062
+ const _t = {
3873
4063
  en: {
3874
4064
  VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
3875
4065
  CustomerDocumentIdMissing: "The document ID is missing",
@@ -3878,6 +4068,7 @@ const Et = {
3878
4068
  errorGeneralTitle: "Error Occurred",
3879
4069
  errorGeneralText: "Something went wrong",
3880
4070
  errorGeneralButton: "CLOSE",
4071
+ DeclindedByLugas: "Your deposit exceeds the weekly deposit limit that has been set. Consider lowering the desired deposit to stay within the current limit.",
3881
4072
  PlayerSessionIsNotValid: "Player session is not valid",
3882
4073
  VendorCommunicationError: "We apologise, but your payment provider has declined to process due to a technical error. Please try later or contact your payment solution provider for further assistance. Error Code 21297",
3883
4074
  PaymentMethodNotAllowed: "We apologise, but this payment method is unavailable at this time, please contact Customer Support for further assistance. Error Code 11402",
@@ -3931,6 +4122,7 @@ const Et = {
3931
4122
  errorGeneralTitle: "Hata oluştu",
3932
4123
  errorGeneralText: "Bir şeyler ters gitti",
3933
4124
  errorGeneralButton: "KAPALI",
4125
+ DeclindedByLugas: "Yatırmak istediğiniz tutar, belirlenen haftalık para yatırma limitini aşıyor. Mevcut limitiniz dahilinde kalmak için yatırmak istediğiniz tutarı azaltmayı değerlendirin.",
3934
4126
  PlayerSessionIsNotValid: "Hesabınızla ilgili oturum geçersiz veya süresi dolmuş görünüyor. Lütfen tekrar giriş yapınız",
3935
4127
  VendorCommunicationError: "Özür dileriz, ancak ödeme sağlayıcınız teknik hata nedeniyle işlemi yapmayı reddetti. Lütfen daha sonra deneyin veya daha fazla yardım için ödeme çözümü sağlayıcınızla iletişime geçin. Hata Kodu 21297",
3936
4128
  PaymentMethodNotAllowed: "Özür dileriz, ancak bu ödeme yöntemi şu anda kullanılamıyor. Daha fazla yardım için lütfen Müşteri Desteğiyle iletişime geçin. Hata Kodu 11402",
@@ -3983,6 +4175,7 @@ const Et = {
3983
4175
  errorGeneralTitle: "Une erreur s’est produite",
3984
4176
  errorGeneralText: "Une erreur est survenue",
3985
4177
  errorGeneralButton: "FERMER",
4178
+ DeclindedByLugas: "Votre dépôt dépasse la limite de dépôt hebdomadaire fixée. Envisagez de réduire le montant que vous souhaitez déposer afin de respecter votre limite actuelle.",
3986
4179
  PlayerSessionIsNotValid: "La session du joueur n’est pas valide",
3987
4180
  VendorCommunicationError: "Nous sommes désolés, mais votre prestataire de paiement a refusé de traiter la demande en raison d’une erreur technique. Veuillez réessayer plus tard ou contacter votre prestataire de paiement pour obtenir de l’aide. Code d’erreur 21297",
3988
4181
  PaymentMethodNotAllowed: "Nous sommes désolés, mais ce moyen de paiement n’est pas disponible pour le moment. Veuillez contacter le service client pour obtenir de l’aide. Code d’erreur 11402",
@@ -4084,6 +4277,7 @@ const Et = {
4084
4277
  errorGeneralTitle: "Fehler aufgetreten",
4085
4278
  errorGeneralText: "Etwas ist schiefgelaufen",
4086
4279
  errorGeneralButton: "SCHLIESSEN",
4280
+ DeclindedByLugas: "Ihre Einzahlung überschreitet das festgelegte wöchentliche Einzahlungslimit. Erwägen Sie, den gewünschten Einzahlungsbetrag zu reduzieren, um innerhalb Ihres aktuellen Limits zu bleiben.",
4087
4281
  PlayerSessionIsNotValid: "Spielersitzung ist nicht gültig",
4088
4282
  VendorCommunicationError: "Wir entschuldigen uns, aber Ihr Zahlungsanbieter hat die Verarbeitung aufgrund eines technischen Fehlers abgelehnt. Bitte versuchen Sie es später oder kontaktieren Sie Ihren Zahlungsanbieter für weitere Hilfe. Fehlercode 21297",
4089
4283
  PaymentMethodNotAllowed: "Wir entschuldigen uns, aber diese Zahlungsmethode ist derzeit nicht verfügbar. Bitte kontaktieren Sie den Kundendienst für weitere Hilfe. Fehlercode 11402",
@@ -4136,6 +4330,7 @@ const Et = {
4136
4330
  errorGeneralTitle: "Er is een fout opgetreden",
4137
4331
  errorGeneralText: "Er is iets misgegaan",
4138
4332
  errorGeneralButton: "SLUITEN",
4333
+ DeclindedByLugas: "Uw storting overschrijdt de ingestelde wekelijkse stortingslimiet. Overweeg om het gewenste stortingsbedrag te verlagen zodat u binnen de huidige limiet blijft.",
4139
4334
  PlayerSessionIsNotValid: "Spelersessie is niet geldig",
4140
4335
  VendorCommunicationError: "Onze excuses, maar uw betalingsprovider heeft de verwerking geweigerd vanwege een technische fout. Probeer het later of neem contact op met uw betalingsoplossingsprovider voor verdere hulp. Foutcode 21297",
4141
4336
  PaymentMethodNotAllowed: "Onze excuses, maar deze betaalmethode is momenteel niet beschikbaar. Neem contact op met de klantenservice voor verdere hulp. Foutcode 11402",
@@ -4285,30 +4480,30 @@ const Et = {
4285
4480
  CardTokenIsBlocked: "Kart tokeni bloklanıb"
4286
4481
  }
4287
4482
  };
4288
- function Bi(e) {
4289
- hn(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}');
4483
+ function Di(e) {
4484
+ Mt(e, "svelte-1m97ygc", '.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}.CashierErrorText a{color:var(--emw--color-primary, #F9C405);text-decoration:underline;cursor:pointer}.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 .HostContainer img{width:300px}');
4290
4485
  }
4291
- const Ci = (e) => ({}), _t = (e) => ({}), Li = (e) => ({}), xt = (e) => ({}), Hi = (e) => ({}), kt = (e) => ({}), Mi = (e) => ({}), Tt = (e) => ({ class: "CashierErrorIcon" });
4292
- function wt(e) {
4486
+ const Ni = (e) => ({}), xt = (e) => ({}), zi = (e) => ({}), kt = (e) => ({}), Ri = (e) => ({}), Tt = (e) => ({}), Ui = (e) => ({}), wt = (e) => ({ class: "CashierErrorIcon" });
4487
+ function It(e) {
4293
4488
  let t, n, r, i, a;
4294
- const s = (
4489
+ const o = (
4295
4490
  /*#slots*/
4296
4491
  e[16].icon
4297
- ), o = ge(
4298
- s,
4492
+ ), s = ge(
4493
+ o,
4299
4494
  e,
4300
4495
  /*$$scope*/
4301
4496
  e[15],
4302
- Tt
4303
- ), l = o || Pi(e), u = (
4497
+ wt
4498
+ ), u = s || Fi(e), l = (
4304
4499
  /*#slots*/
4305
4500
  e[16].title
4306
4501
  ), c = ge(
4307
- u,
4502
+ l,
4308
4503
  e,
4309
4504
  /*$$scope*/
4310
4505
  e[15],
4311
- kt
4506
+ Tt
4312
4507
  ), h = (
4313
4508
  /*#slots*/
4314
4509
  e[16].text
@@ -4317,8 +4512,8 @@ function wt(e) {
4317
4512
  e,
4318
4513
  /*$$scope*/
4319
4514
  e[15],
4320
- xt
4321
- ), f = d || Ni(e), g = (
4515
+ kt
4516
+ ), f = d || Wi(e), g = (
4322
4517
  /*#slots*/
4323
4518
  e[16].button
4324
4519
  ), k = ge(
@@ -4326,53 +4521,53 @@ function wt(e) {
4326
4521
  e,
4327
4522
  /*$$scope*/
4328
4523
  e[15],
4329
- _t
4330
- ), E = k || Ri(e);
4524
+ xt
4525
+ ), E = k || qi(e);
4331
4526
  return {
4332
4527
  c() {
4333
- t = B("div"), l && l.c(), n = Z(), c && c.c(), r = Z(), f && f.c(), i = Z(), E && E.c(), P(t, "class", "CashierErrorContent");
4528
+ t = B("div"), u && u.c(), n = G(), c && c.c(), r = G(), f && f.c(), i = G(), E && E.c(), T(t, "class", "CashierErrorContent");
4334
4529
  },
4335
4530
  m(m, v) {
4336
- A(m, t, v), l && l.m(t, null), S(t, n), c && c.m(t, null), S(t, r), f && f.m(t, null), S(t, i), E && E.m(t, null), a = !0;
4531
+ I(m, t, v), u && u.m(t, null), H(t, n), c && c.m(t, null), H(t, r), f && f.m(t, null), H(t, i), E && E.m(t, null), a = !0;
4337
4532
  },
4338
4533
  p(m, v) {
4339
- o ? o.p && (!a || v & /*$$scope*/
4534
+ s ? s.p && (!a || v & /*$$scope*/
4340
4535
  32768) && be(
4341
- o,
4342
4536
  s,
4537
+ o,
4343
4538
  m,
4344
4539
  /*$$scope*/
4345
4540
  m[15],
4346
4541
  a ? pe(
4347
- s,
4542
+ o,
4348
4543
  /*$$scope*/
4349
4544
  m[15],
4350
4545
  v,
4351
- Mi
4546
+ Ui
4352
4547
  ) : ye(
4353
4548
  /*$$scope*/
4354
4549
  m[15]
4355
4550
  ),
4356
- Tt
4357
- ) : l && l.p && (!a || v & /*assetsurl*/
4358
- 1) && l.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
4551
+ wt
4552
+ ) : u && u.p && (!a || v & /*assetsurl*/
4553
+ 1) && u.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
4359
4554
  32768) && be(
4360
4555
  c,
4361
- u,
4556
+ l,
4362
4557
  m,
4363
4558
  /*$$scope*/
4364
4559
  m[15],
4365
4560
  a ? pe(
4366
- u,
4561
+ l,
4367
4562
  /*$$scope*/
4368
4563
  m[15],
4369
4564
  v,
4370
- Hi
4565
+ Ri
4371
4566
  ) : ye(
4372
4567
  /*$$scope*/
4373
4568
  m[15]
4374
4569
  ),
4375
- kt
4570
+ Tt
4376
4571
  ), d ? d.p && (!a || v & /*$$scope*/
4377
4572
  32768) && be(
4378
4573
  d,
@@ -4385,12 +4580,12 @@ function wt(e) {
4385
4580
  /*$$scope*/
4386
4581
  m[15],
4387
4582
  v,
4388
- Li
4583
+ zi
4389
4584
  ) : ye(
4390
4585
  /*$$scope*/
4391
4586
  m[15]
4392
4587
  ),
4393
- xt
4588
+ kt
4394
4589
  ) : f && f.p && (!a || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, shownError, errormessage*/
4395
4590
  486) && f.p(m, a ? v : -1), k ? k.p && (!a || v & /*$$scope*/
4396
4591
  32768) && be(
@@ -4404,153 +4599,226 @@ function wt(e) {
4404
4599
  /*$$scope*/
4405
4600
  m[15],
4406
4601
  v,
4407
- Ci
4602
+ Ni
4408
4603
  ) : ye(
4409
4604
  /*$$scope*/
4410
4605
  m[15]
4411
4606
  ),
4412
- _t
4607
+ xt
4413
4608
  ) : E && E.p && (!a || v & /*$_*/
4414
4609
  256) && E.p(m, a ? v : -1);
4415
4610
  },
4416
4611
  i(m) {
4417
- a || (O(l, m), O(c, m), O(f, m), O(E, m), a = !0);
4612
+ a || (L(u, m), L(c, m), L(f, m), L(E, m), a = !0);
4418
4613
  },
4419
4614
  o(m) {
4420
- X(l, m), X(c, m), X(f, m), X(E, m), a = !1;
4615
+ D(u, m), D(c, m), D(f, m), D(E, m), a = !1;
4421
4616
  },
4422
4617
  d(m) {
4423
- m && T(t), l && l.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
4618
+ m && w(t), u && u.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
4424
4619
  }
4425
4620
  };
4426
4621
  }
4427
- function It(e) {
4622
+ function At(e) {
4428
4623
  let t, n;
4429
- return {
4624
+ return t = new $t({
4625
+ props: {
4626
+ src: `${/*assetsurl*/
4627
+ e[0]}/error-general-icon.png`,
4628
+ width: "300px",
4629
+ alt: "error"
4630
+ }
4631
+ }), {
4430
4632
  c() {
4431
- t = B("ui-image"), rt(t.src, n = `${/*assetsurl*/
4432
- e[0]}/error-general-icon.png`) || ve(t, "src", n), ve(t, "width", "300px"), ve(t, "alt", "error");
4633
+ Mn(t.$$.fragment);
4433
4634
  },
4434
4635
  m(r, i) {
4435
- A(r, t, i);
4636
+ Nt(t, r, i), n = !0;
4436
4637
  },
4437
4638
  p(r, i) {
4639
+ const a = {};
4438
4640
  i & /*assetsurl*/
4439
- 1 && !rt(t.src, n = `${/*assetsurl*/
4440
- r[0]}/error-general-icon.png`) && ve(t, "src", n);
4641
+ 1 && (a.src = `${/*assetsurl*/
4642
+ r[0]}/error-general-icon.png`), t.$set(a);
4643
+ },
4644
+ i(r) {
4645
+ n || (L(t.$$.fragment, r), n = !0);
4646
+ },
4647
+ o(r) {
4648
+ D(t.$$.fragment, r), n = !1;
4441
4649
  },
4442
4650
  d(r) {
4443
- r && T(t);
4651
+ zt(t, r);
4444
4652
  }
4445
4653
  };
4446
4654
  }
4447
- function Pi(e) {
4448
- let t, n = (
4655
+ function Fi(e) {
4656
+ let t, n, r = (
4449
4657
  /*assetsurl*/
4450
- e[0] && It(e)
4658
+ e[0] && At(e)
4451
4659
  );
4452
4660
  return {
4453
4661
  c() {
4454
- n && n.c(), t = Ye();
4662
+ r && r.c(), t = Se();
4663
+ },
4664
+ m(i, a) {
4665
+ r && r.m(i, a), I(i, t, a), n = !0;
4666
+ },
4667
+ p(i, a) {
4668
+ /*assetsurl*/
4669
+ i[0] ? r ? (r.p(i, a), a & /*assetsurl*/
4670
+ 1 && L(r, 1)) : (r = At(i), r.c(), L(r, 1), r.m(t.parentNode, t)) : r && (Ot(), D(r, 1, 1, () => {
4671
+ r = null;
4672
+ }), Dt());
4673
+ },
4674
+ i(i) {
4675
+ n || (L(r), n = !0);
4676
+ },
4677
+ o(i) {
4678
+ D(r), n = !1;
4679
+ },
4680
+ d(i) {
4681
+ i && w(t), r && r.d(i);
4682
+ }
4683
+ };
4684
+ }
4685
+ function Gi(e) {
4686
+ let t;
4687
+ return {
4688
+ c() {
4689
+ t = z(
4690
+ /*errormessage*/
4691
+ e[2]
4692
+ );
4693
+ },
4694
+ m(n, r) {
4695
+ I(n, t, r);
4696
+ },
4697
+ p(n, r) {
4698
+ r & /*errormessage*/
4699
+ 4 && K(
4700
+ t,
4701
+ /*errormessage*/
4702
+ n[2]
4703
+ );
4704
+ },
4705
+ d(n) {
4706
+ n && w(t);
4707
+ }
4708
+ };
4709
+ }
4710
+ function $i(e) {
4711
+ let t, n;
4712
+ return {
4713
+ c() {
4714
+ t = new wn(!1), n = Se(), t.a = n;
4455
4715
  },
4456
4716
  m(r, i) {
4457
- n && n.m(r, i), A(r, t, i);
4717
+ t.m(
4718
+ /*shownError*/
4719
+ e[7],
4720
+ r,
4721
+ i
4722
+ ), I(r, n, i);
4458
4723
  },
4459
4724
  p(r, i) {
4460
- /*assetsurl*/
4461
- r[0] ? n ? n.p(r, i) : (n = It(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4725
+ i & /*shownError*/
4726
+ 128 && t.p(
4727
+ /*shownError*/
4728
+ r[7]
4729
+ );
4462
4730
  },
4463
4731
  d(r) {
4464
- r && T(t), n && n.d(r);
4732
+ r && (w(n), t.d());
4465
4733
  }
4466
4734
  };
4467
4735
  }
4468
- function At(e) {
4736
+ function St(e) {
4469
4737
  let t;
4470
- function n(a, s) {
4738
+ function n(a, o) {
4471
4739
  return (
4472
4740
  /*depositWageringAmount*/
4473
- a[5] < 0 ? Di : Oi
4741
+ a[5] < 0 ? Vi : ji
4474
4742
  );
4475
4743
  }
4476
4744
  let r = n(e), i = r(e);
4477
4745
  return {
4478
4746
  c() {
4479
- i.c(), t = Ye();
4747
+ i.c(), t = Se();
4480
4748
  },
4481
- m(a, s) {
4482
- i.m(a, s), A(a, t, s);
4749
+ m(a, o) {
4750
+ i.m(a, o), I(a, t, o);
4483
4751
  },
4484
- p(a, s) {
4485
- r === (r = n(a)) && i ? i.p(a, s) : (i.d(1), i = r(a), i && (i.c(), i.m(t.parentNode, t)));
4752
+ p(a, o) {
4753
+ r === (r = n(a)) && i ? i.p(a, o) : (i.d(1), i = r(a), i && (i.c(), i.m(t.parentNode, t)));
4486
4754
  },
4487
4755
  d(a) {
4488
- a && T(t), i.d(a);
4756
+ a && w(t), i.d(a);
4489
4757
  }
4490
4758
  };
4491
4759
  }
4492
- function Oi(e) {
4760
+ function ji(e) {
4493
4761
  let t, n = (
4494
4762
  /*$_*/
4495
4763
  e[8]("DepositWageringLimitText") + ""
4496
4764
  ), r, i, a = (
4497
4765
  /*depositWageringAmount*/
4498
- e[5] > 0 && St(e)
4766
+ e[5] > 0 && Ct(e)
4499
4767
  );
4500
4768
  return {
4501
4769
  c() {
4502
- t = B("span"), r = N(n), i = Z(), a && a.c(), P(t, "class", "CashierErrorText");
4770
+ t = B("span"), r = z(n), i = G(), a && a.c(), T(t, "class", "CashierErrorText");
4503
4771
  },
4504
- m(s, o) {
4505
- A(s, t, o), S(t, r), S(t, i), a && a.m(t, null);
4772
+ m(o, s) {
4773
+ I(o, t, s), H(t, r), H(t, i), a && a.m(t, null);
4506
4774
  },
4507
- p(s, o) {
4508
- o & /*$_*/
4775
+ p(o, s) {
4776
+ s & /*$_*/
4509
4777
  256 && n !== (n = /*$_*/
4510
- s[8]("DepositWageringLimitText") + "") && K(r, n), /*depositWageringAmount*/
4511
- s[5] > 0 ? a ? a.p(s, o) : (a = St(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4778
+ o[8]("DepositWageringLimitText") + "") && K(r, n), /*depositWageringAmount*/
4779
+ o[5] > 0 ? a ? a.p(o, s) : (a = Ct(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4512
4780
  },
4513
- d(s) {
4514
- s && T(t), a && a.d();
4781
+ d(o) {
4782
+ o && w(t), a && a.d();
4515
4783
  }
4516
4784
  };
4517
4785
  }
4518
- function Di(e) {
4786
+ function Vi(e) {
4519
4787
  let t, n, r = (
4520
4788
  /*$_*/
4521
4789
  e[8]("DepositWageringFetching") + ""
4522
4790
  ), i;
4523
4791
  return {
4524
4792
  c() {
4525
- t = B("div"), n = B("span"), i = N(r), P(n, "class", "CashierErrorText LoadingText"), P(t, "class", "WageringFetch");
4793
+ t = B("div"), n = B("span"), i = z(r), T(n, "class", "CashierErrorText LoadingText"), T(t, "class", "WageringFetch");
4526
4794
  },
4527
- m(a, s) {
4528
- A(a, t, s), S(t, n), S(n, i);
4795
+ m(a, o) {
4796
+ I(a, t, o), H(t, n), H(n, i);
4529
4797
  },
4530
- p(a, s) {
4531
- s & /*$_*/
4798
+ p(a, o) {
4799
+ o & /*$_*/
4532
4800
  256 && r !== (r = /*$_*/
4533
4801
  a[8]("DepositWageringFetching") + "") && K(i, r);
4534
4802
  },
4535
4803
  d(a) {
4536
- a && T(t);
4804
+ a && w(t);
4537
4805
  }
4538
4806
  };
4539
4807
  }
4540
- function St(e) {
4808
+ function Ct(e) {
4541
4809
  let t, n, r;
4542
4810
  return {
4543
4811
  c() {
4544
- t = N(
4812
+ t = z(
4545
4813
  /*depositWageringAmount*/
4546
4814
  e[5]
4547
- ), n = Z(), r = N(
4815
+ ), n = G(), r = z(
4548
4816
  /*depositWageringCurrency*/
4549
4817
  e[6]
4550
4818
  );
4551
4819
  },
4552
4820
  m(i, a) {
4553
- A(i, t, a), A(i, n, a), A(i, r, a);
4821
+ I(i, t, a), I(i, n, a), I(i, r, a);
4554
4822
  },
4555
4823
  p(i, a) {
4556
4824
  a & /*depositWageringAmount*/
@@ -4566,127 +4834,117 @@ function St(e) {
4566
4834
  );
4567
4835
  },
4568
4836
  d(i) {
4569
- i && (T(t), T(n), T(r));
4837
+ i && (w(t), w(n), w(r));
4570
4838
  }
4571
4839
  };
4572
4840
  }
4573
- function Ni(e) {
4574
- let t, n = (
4575
- /*errorcode*/
4576
- (e[1] ? (
4577
- /*shownError*/
4578
- e[7]
4579
- ) : (
4580
- /*errormessage*/
4581
- e[2]
4582
- )) + ""
4583
- ), r, i, a, s = (
4841
+ function Wi(e) {
4842
+ let t, n, r;
4843
+ function i(u, l) {
4844
+ return (
4845
+ /*errorcode*/
4846
+ u[1] ? $i : Gi
4847
+ );
4848
+ }
4849
+ let a = i(e), o = a(e), s = (
4584
4850
  /*errorcode*/
4585
- e[1] == "DepositWageringLimit" && At(e)
4851
+ e[1] == "DepositWageringLimit" && St(e)
4586
4852
  );
4587
4853
  return {
4588
4854
  c() {
4589
- t = B("span"), r = N(n), i = Z(), s && s.c(), a = Ye(), P(t, "class", "CashierErrorText");
4855
+ t = B("span"), o.c(), n = G(), s && s.c(), r = Se(), T(t, "class", "CashierErrorText");
4590
4856
  },
4591
- m(o, l) {
4592
- A(o, t, l), S(t, r), A(o, i, l), s && s.m(o, l), A(o, a, l);
4857
+ m(u, l) {
4858
+ I(u, t, l), o.m(t, null), I(u, n, l), s && s.m(u, l), I(u, r, l);
4593
4859
  },
4594
- p(o, l) {
4595
- l & /*errorcode, shownError, errormessage*/
4596
- 134 && n !== (n = /*errorcode*/
4597
- (o[1] ? (
4598
- /*shownError*/
4599
- o[7]
4600
- ) : (
4601
- /*errormessage*/
4602
- o[2]
4603
- )) + "") && K(r, n), /*errorcode*/
4604
- o[1] == "DepositWageringLimit" ? s ? s.p(o, l) : (s = At(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
4860
+ p(u, l) {
4861
+ a === (a = i(u)) && o ? o.p(u, l) : (o.d(1), o = a(u), o && (o.c(), o.m(t, null))), /*errorcode*/
4862
+ u[1] == "DepositWageringLimit" ? s ? s.p(u, l) : (s = St(u), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null);
4605
4863
  },
4606
- d(o) {
4607
- o && (T(t), T(i), T(a)), s && s.d(o);
4864
+ d(u) {
4865
+ u && (w(t), w(n), w(r)), o.d(), s && s.d(u);
4608
4866
  }
4609
4867
  };
4610
4868
  }
4611
- function Ri(e) {
4869
+ function qi(e) {
4612
4870
  let t, n, r = (
4613
4871
  /*$_*/
4614
4872
  e[8]("errorGeneralButton") + ""
4615
- ), i, a, s;
4873
+ ), i, a, o;
4616
4874
  return {
4617
4875
  c() {
4618
- t = B("button"), n = B("span"), i = N(r), P(t, "class", "CashierErrorButton");
4876
+ t = B("button"), n = B("span"), i = z(r), T(t, "class", "CashierErrorButton");
4619
4877
  },
4620
- m(o, l) {
4621
- A(o, t, l), S(t, n), S(n, i), a || (s = fn(
4878
+ m(s, u) {
4879
+ I(s, t, u), H(t, n), H(n, i), a || (o = Pt(
4622
4880
  t,
4623
4881
  "click",
4624
4882
  /*close*/
4625
4883
  e[9]
4626
4884
  ), a = !0);
4627
4885
  },
4628
- p(o, l) {
4629
- l & /*$_*/
4886
+ p(s, u) {
4887
+ u & /*$_*/
4630
4888
  256 && r !== (r = /*$_*/
4631
- o[8]("errorGeneralButton") + "") && K(i, r);
4889
+ s[8]("errorGeneralButton") + "") && K(i, r);
4632
4890
  },
4633
- d(o) {
4634
- o && T(t), a = !1, s();
4891
+ d(s) {
4892
+ s && w(t), a = !1, o();
4635
4893
  }
4636
4894
  };
4637
4895
  }
4638
- function zi(e) {
4896
+ function Xi(e) {
4639
4897
  let t, n, r = !/*isLoading*/
4640
- e[4] && wt(e);
4898
+ e[4] && It(e);
4641
4899
  return {
4642
4900
  c() {
4643
- t = B("div"), r && r.c(), P(t, "class", "CashierError");
4901
+ t = B("div"), r && r.c(), T(t, "class", "CashierError");
4644
4902
  },
4645
4903
  m(i, a) {
4646
- A(i, t, a), r && r.m(t, null), e[17](t), n = !0;
4904
+ I(i, t, a), r && r.m(t, null), e[17](t), n = !0;
4647
4905
  },
4648
4906
  p(i, [a]) {
4649
4907
  /*isLoading*/
4650
- i[4] ? r && (kn(), X(r, 1, 1, () => {
4908
+ i[4] ? r && (Ot(), D(r, 1, 1, () => {
4651
4909
  r = null;
4652
- }), Tn()) : r ? (r.p(i, a), a & /*isLoading*/
4653
- 16 && O(r, 1)) : (r = wt(i), r.c(), O(r, 1), r.m(t, null));
4910
+ }), Dt()) : r ? (r.p(i, a), a & /*isLoading*/
4911
+ 16 && L(r, 1)) : (r = It(i), r.c(), L(r, 1), r.m(t, null));
4654
4912
  },
4655
4913
  i(i) {
4656
- n || (O(r), n = !0);
4914
+ n || (L(r), n = !0);
4657
4915
  },
4658
4916
  o(i) {
4659
- X(r), n = !1;
4917
+ D(r), n = !1;
4660
4918
  },
4661
4919
  d(i) {
4662
- i && T(t), r && r.d(), e[17](null);
4920
+ i && w(t), r && r.d(), e[17](null);
4663
4921
  }
4664
4922
  };
4665
4923
  }
4666
- function Ui(e, t, n) {
4924
+ function Zi(e, t, n) {
4667
4925
  let r;
4668
- cn(e, Ai, (b) => n(8, r = b));
4669
- let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: l = "" } = t, { errormessage: u = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, w = !1;
4670
- const z = () => {
4671
- Si(o);
4672
- }, H = () => {
4673
- n(4, w = !0);
4926
+ En(e, Pi, (b) => n(8, r = b));
4927
+ let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: u = "" } = t, { errormessage: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, A = !1;
4928
+ const U = () => {
4929
+ Oi(s);
4930
+ }, O = () => {
4931
+ n(4, A = !0);
4674
4932
  let b = d;
4675
4933
  if (b)
4676
- return fetch(b).then(($) => $.json()).then(($) => {
4677
- Object.keys($).forEach((tt) => {
4678
- vt(tt, $[tt]);
4934
+ return fetch(b).then((V) => V.json()).then((V) => {
4935
+ Object.keys(V).forEach((tt) => {
4936
+ Et(tt, V[tt]);
4679
4937
  });
4680
- }).catch(($) => {
4681
- console.log($);
4938
+ }).catch((V) => {
4939
+ console.log(V);
4682
4940
  }).finally(() => {
4683
- n(4, w = !1);
4941
+ n(4, A = !1);
4684
4942
  });
4685
4943
  };
4686
- Object.keys(Et).forEach((b) => {
4687
- vt(b, Et[b]);
4944
+ Object.keys(_t).forEach((b) => {
4945
+ Et(b, _t[b]);
4688
4946
  });
4689
- const G = () => {
4947
+ const j = () => {
4690
4948
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4691
4949
  }, ae = (b) => {
4692
4950
  if (b.data)
@@ -4695,56 +4953,56 @@ function Ui(e, t, n) {
4695
4953
  n(5, E = b.data.amount), n(6, m = b.data.currency);
4696
4954
  break;
4697
4955
  }
4698
- }, sn = () => {
4699
- n(7, v = r(`${l || "errorGeneralText"}`));
4956
+ }, pn = () => {
4957
+ n(7, v = r(`${u || "errorGeneralText"}`));
4700
4958
  };
4701
- yn(() => (window.addEventListener("message", ae, !1), () => {
4959
+ Sn(() => (window.addEventListener("message", ae, !1), () => {
4702
4960
  window.removeEventListener("message", ae);
4703
4961
  }));
4704
- function on(b) {
4962
+ function bn(b) {
4705
4963
  Ue[b ? "unshift" : "push"](() => {
4706
4964
  g = b, n(3, g);
4707
4965
  });
4708
4966
  }
4709
4967
  return e.$$set = (b) => {
4710
- "assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1, l = b.errorcode), "errormessage" in b && n(2, u = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
4968
+ "assetsurl" in b && n(0, o = b.assetsurl), "lang" in b && n(10, s = b.lang), "errorcode" in b && n(1, u = b.errorcode), "errormessage" in b && n(2, l = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
4711
4969
  }, e.$$.update = () => {
4712
4970
  e.$$.dirty & /*lang*/
4713
- 1024 && o && z(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4714
- 2056 && c && g && Hn(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4715
- 4104 && h && g && Mn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4716
- 16392 && f && g && Pn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
4717
- 8192 && d && H(), e.$$.dirty & /*isLoading*/
4718
- 16 && !w && sn();
4971
+ 1024 && s && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4972
+ 2056 && c && g && Dn(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4973
+ 4104 && h && g && Nn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4974
+ 16392 && f && g && zn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
4975
+ 8192 && d && O(), e.$$.dirty & /*isLoading*/
4976
+ 16 && !A && pn();
4719
4977
  }, [
4720
- s,
4721
- l,
4978
+ o,
4722
4979
  u,
4980
+ l,
4723
4981
  g,
4724
- w,
4982
+ A,
4725
4983
  E,
4726
4984
  m,
4727
4985
  v,
4728
4986
  r,
4729
- G,
4730
- o,
4987
+ j,
4988
+ s,
4731
4989
  c,
4732
4990
  h,
4733
4991
  d,
4734
4992
  f,
4735
4993
  a,
4736
4994
  i,
4737
- on
4995
+ bn
4738
4996
  ];
4739
4997
  }
4740
- class Fi extends Cn {
4998
+ class Ji extends Gt {
4741
4999
  constructor(t) {
4742
- super(), Sn(
5000
+ super(), Rt(
4743
5001
  this,
4744
5002
  t,
4745
- Ui,
4746
- zi,
4747
- Ct,
5003
+ Zi,
5004
+ Xi,
5005
+ Ye,
4748
5006
  {
4749
5007
  assetsurl: 0,
4750
5008
  lang: 10,
@@ -4755,7 +5013,7 @@ class Fi extends Cn {
4755
5013
  translationurl: 13,
4756
5014
  mbsource: 14
4757
5015
  },
4758
- Bi
5016
+ Di
4759
5017
  );
4760
5018
  }
4761
5019
  get assetsurl() {
@@ -4807,7 +5065,7 @@ class Fi extends Cn {
4807
5065
  this.$$set({ mbsource: t }), C();
4808
5066
  }
4809
5067
  }
4810
- Bn(Fi, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
5068
+ Ft(Ji, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4811
5069
  export {
4812
- Fi as C
5070
+ Ji as C
4813
5071
  };