@everymatrix/cashier-error 1.87.26 → 1.87.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import "../stencil/ui-image-Ch-GHki1.js";
2
- function B() {
2
+ function P() {
3
3
  }
4
- function Zt(e, t) {
4
+ function Yt(e, t) {
5
5
  for (const r in t)
6
6
  e[r] = t[r];
7
7
  return (
@@ -9,71 +9,71 @@ function Zt(e, t) {
9
9
  e
10
10
  );
11
11
  }
12
- function vt(e) {
12
+ function _t(e) {
13
13
  return e();
14
14
  }
15
- function Je() {
15
+ function Ze() {
16
16
  return /* @__PURE__ */ Object.create(null);
17
17
  }
18
- function te(e) {
19
- e.forEach(vt);
18
+ function re(e) {
19
+ e.forEach(_t);
20
20
  }
21
- function Ve(e) {
21
+ function We(e) {
22
22
  return typeof e == "function";
23
23
  }
24
24
  function Et(e, t) {
25
25
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
26
  }
27
- let oe;
28
- function Ze(e, t) {
29
- return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
27
+ let se;
28
+ function Ye(e, t) {
29
+ return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
30
30
  }
31
31
  function Qt(e) {
32
32
  return Object.keys(e).length === 0;
33
33
  }
34
- function _t(e, ...t) {
34
+ function xt(e, ...t) {
35
35
  if (e == null) {
36
36
  for (const n of t)
37
37
  n(void 0);
38
- return B;
38
+ return P;
39
39
  }
40
40
  const r = e.subscribe(...t);
41
41
  return r.unsubscribe ? () => r.unsubscribe() : r;
42
42
  }
43
- function Yt(e, t, r) {
44
- e.$$.on_destroy.push(_t(t, r));
43
+ function Kt(e, t, r) {
44
+ e.$$.on_destroy.push(xt(t, r));
45
45
  }
46
46
  function ae(e, t, r, n) {
47
47
  if (e) {
48
- const i = xt(e, t, r, n);
48
+ const i = Tt(e, t, r, n);
49
49
  return e[0](i);
50
50
  }
51
51
  }
52
- function xt(e, t, r, n) {
53
- return e[1] && n ? Zt(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
+ function Tt(e, t, r, n) {
53
+ return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
54
  }
55
- function se(e, t, r, n) {
55
+ function ue(e, t, r, n) {
56
56
  if (e[2] && n) {
57
57
  const i = e[2](n(r));
58
58
  if (t.dirty === void 0)
59
59
  return i;
60
60
  if (typeof i == "object") {
61
- const o = [], a = Math.max(t.dirty.length, i.length);
62
- for (let s = 0; s < a; s += 1)
63
- o[s] = t.dirty[s] | i[s];
61
+ const o = [], s = Math.max(t.dirty.length, i.length);
62
+ for (let a = 0; a < s; a += 1)
63
+ o[a] = t.dirty[a] | i[a];
64
64
  return o;
65
65
  }
66
66
  return t.dirty | i;
67
67
  }
68
68
  return t.dirty;
69
69
  }
70
- function ue(e, t, r, n, i, o) {
70
+ function le(e, t, r, n, i, o) {
71
71
  if (i) {
72
- const a = xt(t, r, n, o);
73
- e.p(a, i);
72
+ const s = Tt(t, r, n, o);
73
+ e.p(s, i);
74
74
  }
75
75
  }
76
- function le(e) {
76
+ function he(e) {
77
77
  if (e.ctx.length > 32) {
78
78
  const t = [], r = e.ctx.length / 32;
79
79
  for (let n = 0; n < r; n++)
@@ -82,17 +82,17 @@ function le(e) {
82
82
  }
83
83
  return -1;
84
84
  }
85
- function P(e, t) {
85
+ function O(e, t) {
86
86
  e.appendChild(t);
87
87
  }
88
- function Kt(e, t, r) {
89
- const n = er(e);
88
+ function er(e, t, r) {
89
+ const n = tr(e);
90
90
  if (!n.getElementById(t)) {
91
- const i = C("style");
92
- i.id = t, i.textContent = r, tr(n, i);
91
+ const i = L("style");
92
+ i.id = t, i.textContent = r, rr(n, i);
93
93
  }
94
94
  }
95
- function er(e) {
95
+ function tr(e) {
96
96
  if (!e)
97
97
  return document;
98
98
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -102,49 +102,49 @@ function er(e) {
102
102
  t
103
103
  ) : e.ownerDocument;
104
104
  }
105
- function tr(e, t) {
106
- return P(
105
+ function rr(e, t) {
106
+ return O(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function V(e, t, r) {
112
+ function W(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
- function M(e) {
115
+ function N(e) {
116
116
  e.parentNode && e.parentNode.removeChild(e);
117
117
  }
118
- function C(e) {
118
+ function L(e) {
119
119
  return document.createElement(e);
120
120
  }
121
- function _e(e) {
121
+ function xe(e) {
122
122
  return document.createTextNode(e);
123
123
  }
124
- function Se() {
125
- return _e(" ");
124
+ function Ae() {
125
+ return xe(" ");
126
126
  }
127
- function rr() {
128
- return _e("");
127
+ function nr() {
128
+ return xe("");
129
129
  }
130
- function nr(e, t, r, n) {
130
+ function ir(e, t, r, n) {
131
131
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
132
132
  }
133
- function k(e, t, r) {
133
+ function G(e, t, r) {
134
134
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
135
135
  }
136
- function he(e, t, r) {
136
+ function ce(e, t, r) {
137
137
  const n = t.toLowerCase();
138
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
138
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
139
139
  }
140
- function ir(e) {
140
+ function or(e) {
141
141
  return Array.from(e.childNodes);
142
142
  }
143
- function Tt(e, t) {
143
+ function Ht(e, t) {
144
144
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
145
  t);
146
146
  }
147
- function or(e) {
147
+ function sr(e) {
148
148
  const t = {};
149
149
  return e.childNodes.forEach(
150
150
  /** @param {Element} node */
@@ -153,105 +153,105 @@ function or(e) {
153
153
  }
154
154
  ), t;
155
155
  }
156
- let Y;
156
+ let K;
157
157
  function Q(e) {
158
- Y = e;
158
+ K = e;
159
159
  }
160
160
  function ar() {
161
- if (!Y)
161
+ if (!K)
162
162
  throw new Error("Function called outside component initialization");
163
- return Y;
163
+ return K;
164
164
  }
165
- function sr(e) {
165
+ function ur(e) {
166
166
  ar().$$.on_mount.push(e);
167
167
  }
168
168
  const D = [], Me = [];
169
- let U = [];
170
- const Qe = [], ur = /* @__PURE__ */ Promise.resolve();
171
- let Ne = !1;
172
- function lr() {
173
- Ne || (Ne = !0, ur.then(S));
169
+ let k = [];
170
+ const Qe = [], lr = /* @__PURE__ */ Promise.resolve();
171
+ let Re = !1;
172
+ function hr() {
173
+ Re || (Re = !0, lr.then(B));
174
174
  }
175
- function Re(e) {
176
- U.push(e);
175
+ function $e(e) {
176
+ k.push(e);
177
177
  }
178
178
  const Be = /* @__PURE__ */ new Set();
179
179
  let R = 0;
180
- function S() {
180
+ function B() {
181
181
  if (R !== 0)
182
182
  return;
183
- const e = Y;
183
+ const e = K;
184
184
  do {
185
185
  try {
186
186
  for (; R < D.length; ) {
187
187
  const t = D[R];
188
- R++, Q(t), hr(t.$$);
188
+ R++, Q(t), cr(t.$$);
189
189
  }
190
190
  } catch (t) {
191
191
  throw D.length = 0, R = 0, t;
192
192
  }
193
193
  for (Q(null), D.length = 0, R = 0; Me.length; )
194
194
  Me.pop()();
195
- for (let t = 0; t < U.length; t += 1) {
196
- const r = U[t];
195
+ for (let t = 0; t < k.length; t += 1) {
196
+ const r = k[t];
197
197
  Be.has(r) || (Be.add(r), r());
198
198
  }
199
- U.length = 0;
199
+ k.length = 0;
200
200
  } while (D.length);
201
201
  for (; Qe.length; )
202
202
  Qe.pop()();
203
- Ne = !1, Be.clear(), Q(e);
203
+ Re = !1, Be.clear(), Q(e);
204
204
  }
205
- function hr(e) {
205
+ function cr(e) {
206
206
  if (e.fragment !== null) {
207
- e.update(), te(e.before_update);
207
+ e.update(), re(e.before_update);
208
208
  const t = e.dirty;
209
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
209
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
210
210
  }
211
211
  }
212
- function cr(e) {
212
+ function fr(e) {
213
213
  const t = [], r = [];
214
- U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
214
+ k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
215
215
  }
216
- const me = /* @__PURE__ */ new Set();
217
- let fr;
218
- function J(e, t) {
219
- e && e.i && (me.delete(e), e.i(t));
216
+ const de = /* @__PURE__ */ new Set();
217
+ let mr;
218
+ function Z(e, t) {
219
+ e && e.i && (de.delete(e), e.i(t));
220
220
  }
221
- function ce(e, t, r, n) {
221
+ function fe(e, t, r, n) {
222
222
  if (e && e.o) {
223
- if (me.has(e))
223
+ if (de.has(e))
224
224
  return;
225
- me.add(e), fr.c.push(() => {
226
- me.delete(e);
225
+ de.add(e), mr.c.push(() => {
226
+ de.delete(e);
227
227
  }), e.o(t);
228
228
  }
229
229
  }
230
- function mr(e, t, r) {
230
+ function dr(e, t, r) {
231
231
  const { fragment: n, after_update: i } = e.$$;
232
- n && n.m(t, r), Re(() => {
233
- const o = e.$$.on_mount.map(vt).filter(Ve);
234
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
235
- }), i.forEach(Re);
232
+ n && n.m(t, r), $e(() => {
233
+ const o = e.$$.on_mount.map(_t).filter(We);
234
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
235
+ }), i.forEach($e);
236
236
  }
237
- function dr(e, t) {
237
+ function pr(e, t) {
238
238
  const r = e.$$;
239
- r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
+ r.fragment !== null && (fr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
240
240
  }
241
- function pr(e, t) {
242
- e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
241
+ function br(e, t) {
242
+ e.$$.dirty[0] === -1 && (D.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
243
243
  }
244
- function br(e, t, r, n, i, o, a = null, s = [-1]) {
245
- const h = Y;
244
+ function gr(e, t, r, n, i, o, s = null, a = [-1]) {
245
+ const h = K;
246
246
  Q(e);
247
247
  const u = e.$$ = {
248
248
  fragment: null,
249
249
  ctx: [],
250
250
  // state
251
251
  props: o,
252
- update: B,
252
+ update: P,
253
253
  not_equal: i,
254
- bound: Je(),
254
+ bound: Ze(),
255
255
  // lifecycle
256
256
  on_mount: [],
257
257
  on_destroy: [],
@@ -260,28 +260,28 @@ function br(e, t, r, n, i, o, a = null, s = [-1]) {
260
260
  after_update: [],
261
261
  context: new Map(t.context || (h ? h.$$.context : [])),
262
262
  // everything else
263
- callbacks: Je(),
264
- dirty: s,
263
+ callbacks: Ze(),
264
+ dirty: a,
265
265
  skip_bound: !1,
266
266
  root: t.target || h.$$.root
267
267
  };
268
- a && a(u.root);
268
+ s && s(u.root);
269
269
  let l = !1;
270
- if (u.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
271
- const p = d.length ? d[0] : m;
272
- return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && pr(e, f)), m;
273
- }) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
270
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
271
+ const b = p.length ? p[0] : f;
272
+ return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), l && br(e, c)), f;
273
+ }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
274
274
  if (t.hydrate) {
275
- const f = ir(t.target);
276
- u.fragment && u.fragment.l(f), f.forEach(M);
275
+ const c = or(t.target);
276
+ u.fragment && u.fragment.l(c), c.forEach(N);
277
277
  } else
278
278
  u.fragment && u.fragment.c();
279
- t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor), S();
279
+ t.intro && Z(e.$$.fragment), dr(e, t.target, t.anchor), B();
280
280
  }
281
281
  Q(h);
282
282
  }
283
- let Ht;
284
- typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
283
+ let St;
284
+ typeof HTMLElement == "function" && (St = class extends HTMLElement {
285
285
  /** The Svelte component constructor */
286
286
  $$ctor;
287
287
  /** Slots */
@@ -323,29 +323,29 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
323
323
  let o;
324
324
  return {
325
325
  c: function() {
326
- o = C("slot"), i !== "default" && k(o, "name", i);
326
+ o = L("slot"), i !== "default" && G(o, "name", i);
327
327
  },
328
328
  /**
329
329
  * @param {HTMLElement} target
330
330
  * @param {HTMLElement} [anchor]
331
331
  */
332
332
  m: function(h, u) {
333
- V(h, o, u);
333
+ W(h, o, u);
334
334
  },
335
335
  d: function(h) {
336
- h && M(o);
336
+ h && N(o);
337
337
  }
338
338
  };
339
339
  };
340
340
  };
341
341
  if (await Promise.resolve(), !this.$$cn || this.$$c)
342
342
  return;
343
- const t = {}, r = or(this);
343
+ const t = {}, r = sr(this);
344
344
  for (const i of this.$$s)
345
345
  i in r && (t[i] = [e(i)]);
346
346
  for (const i of this.attributes) {
347
347
  const o = this.$$g_p(i.name);
348
- o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
348
+ o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
349
349
  }
350
350
  for (const i in this.$$p_d)
351
351
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
363
363
  this.$$r = !0;
364
364
  for (const i in this.$$p_d)
365
365
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
366
- const o = de(
366
+ const o = pe(
367
367
  i,
368
368
  this.$$d[i],
369
369
  this.$$p_d,
@@ -376,8 +376,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
376
376
  this.$$c.$$.after_update.push(n), n();
377
377
  for (const i in this.$$l)
378
378
  for (const o of this.$$l[i]) {
379
- const a = this.$$c.$on(i, o);
380
- this.$$l_u.set(o, a);
379
+ const s = this.$$c.$on(i, o);
380
+ this.$$l_u.set(o, s);
381
381
  }
382
382
  this.$$l = {};
383
383
  }
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
385
385
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
386
386
  // and setting attributes through setAttribute etc, this is helpful
387
387
  attributeChangedCallback(e, t, r) {
388
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
389
389
  }
390
390
  disconnectedCallback() {
391
391
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
398
398
  ) || e;
399
399
  }
400
400
  });
401
- function de(e, t, r, n) {
401
+ function pe(e, t, r, n) {
402
402
  const i = r[e]?.type;
403
403
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
404
404
  return t;
@@ -427,36 +427,36 @@ function de(e, t, r, n) {
427
427
  return t;
428
428
  }
429
429
  }
430
- function gr(e, t, r, n, i, o) {
431
- let a = class extends Ht {
430
+ function yr(e, t, r, n, i, o) {
431
+ let s = class extends St {
432
432
  constructor() {
433
433
  super(e, r, i), this.$$p_d = t;
434
434
  }
435
435
  static get observedAttributes() {
436
436
  return Object.keys(t).map(
437
- (s) => (t[s].attribute || s).toLowerCase()
437
+ (a) => (t[a].attribute || a).toLowerCase()
438
438
  );
439
439
  }
440
440
  };
441
- return Object.keys(t).forEach((s) => {
442
- Object.defineProperty(a.prototype, s, {
441
+ return Object.keys(t).forEach((a) => {
442
+ Object.defineProperty(s.prototype, a, {
443
443
  get() {
444
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
444
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
445
445
  },
446
446
  set(h) {
447
- h = de(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
447
+ h = pe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
448
448
  }
449
449
  });
450
- }), n.forEach((s) => {
451
- Object.defineProperty(a.prototype, s, {
450
+ }), n.forEach((a) => {
451
+ Object.defineProperty(s.prototype, a, {
452
452
  get() {
453
- return this.$$c?.[s];
453
+ return this.$$c?.[a];
454
454
  }
455
455
  });
456
456
  }), e.element = /** @type {any} */
457
- a, a;
457
+ s, s;
458
458
  }
459
- class yr {
459
+ class vr {
460
460
  /**
461
461
  * ### PRIVATE API
462
462
  *
@@ -475,7 +475,7 @@ class yr {
475
475
  $$set = void 0;
476
476
  /** @returns {void} */
477
477
  $destroy() {
478
- dr(this, 1), this.$destroy = B;
478
+ pr(this, 1), this.$destroy = P;
479
479
  }
480
480
  /**
481
481
  * @template {Extract<keyof Events, string>} K
@@ -484,8 +484,8 @@ class yr {
484
484
  * @returns {() => void}
485
485
  */
486
486
  $on(t, r) {
487
- if (!Ve(r))
488
- return B;
487
+ if (!We(r))
488
+ return P;
489
489
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
490
490
  return n.push(r), () => {
491
491
  const i = n.indexOf(r);
@@ -500,15 +500,16 @@ class yr {
500
500
  this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
501
501
  }
502
502
  }
503
- const vr = "4";
504
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
503
+ const _r = "4";
504
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
505
+ const U = "__WIDGET_GLOBAL_STYLE_CACHE__";
505
506
  function Er(e, t) {
506
507
  if (e) {
507
508
  const r = document.createElement("style");
508
509
  r.innerHTML = t, e.appendChild(r);
509
510
  }
510
511
  }
511
- function _r(e, t) {
512
+ function xr(e, t) {
512
513
  if (!e || !t)
513
514
  return;
514
515
  const r = new URL(t);
@@ -519,25 +520,52 @@ function _r(e, t) {
519
520
  console.error("There was an error while trying to load client styling from URL", n);
520
521
  });
521
522
  }
522
- function xr(e, t, r) {
523
- if (window.emMessageBus) {
524
- const n = document.createElement("style");
525
- window.emMessageBus.subscribe(t, (i) => {
526
- n.innerHTML = i, e && e.appendChild(n);
523
+ function Tr(e, t, r, n = !1) {
524
+ if (!window.emMessageBus)
525
+ return;
526
+ if (!("adoptedStyleSheets" in Document.prototype) || !n)
527
+ return r = Hr(e, t), r;
528
+ window[U] || (window[U] = {}), r = Sr(e, t);
529
+ const o = r.unsubscribe.bind(r), s = () => {
530
+ if (window[U][t]) {
531
+ const a = window[U][t];
532
+ a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[U][t];
533
+ }
534
+ o();
535
+ };
536
+ return r.unsubscribe = s, r;
537
+ }
538
+ function Hr(e, t) {
539
+ const r = document.createElement("style");
540
+ return window.emMessageBus.subscribe(t, (n) => {
541
+ e && (r.innerHTML = n, e.appendChild(r));
542
+ });
543
+ }
544
+ function Sr(e, t) {
545
+ return window.emMessageBus.subscribe(t, (r) => {
546
+ if (!e)
547
+ return;
548
+ const n = e.getRootNode(), i = window[U];
549
+ let o = i[t]?.sheet;
550
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
551
+ sheet: o,
552
+ refCount: 1
527
553
  });
528
- }
554
+ const s = n.adoptedStyleSheets || [];
555
+ s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
556
+ });
529
557
  }
530
558
  const $ = [];
531
- function Tr(e, t) {
559
+ function wr(e, t) {
532
560
  return {
533
- subscribe: xe(e, t).subscribe
561
+ subscribe: Te(e, t).subscribe
534
562
  };
535
563
  }
536
- function xe(e, t = B) {
564
+ function Te(e, t = P) {
537
565
  let r;
538
566
  const n = /* @__PURE__ */ new Set();
539
- function i(s) {
540
- if (Et(e, s) && (e = s, r)) {
567
+ function i(a) {
568
+ if (Et(e, a) && (e = a, r)) {
541
569
  const h = !$.length;
542
570
  for (const u of n)
543
571
  u[1](), $.push(u, e);
@@ -548,89 +576,89 @@ function xe(e, t = B) {
548
576
  }
549
577
  }
550
578
  }
551
- function o(s) {
552
- i(s(e));
579
+ function o(a) {
580
+ i(a(e));
553
581
  }
554
- function a(s, h = B) {
555
- const u = [s, h];
556
- return n.add(u), n.size === 1 && (r = t(i, o) || B), s(e), () => {
582
+ function s(a, h = P) {
583
+ const u = [a, h];
584
+ return n.add(u), n.size === 1 && (r = t(i, o) || P), a(e), () => {
557
585
  n.delete(u), n.size === 0 && r && (r(), r = null);
558
586
  };
559
587
  }
560
- return { set: i, update: o, subscribe: a };
588
+ return { set: i, update: o, subscribe: s };
561
589
  }
562
590
  function X(e, t, r) {
563
591
  const n = !Array.isArray(e), i = n ? [e] : e;
564
592
  if (!i.every(Boolean))
565
593
  throw new Error("derived() expects stores as input, got a falsy value");
566
594
  const o = t.length < 2;
567
- return Tr(r, (a, s) => {
595
+ return wr(r, (s, a) => {
568
596
  let h = !1;
569
597
  const u = [];
570
- let l = 0, f = B;
571
- const m = () => {
598
+ let l = 0, c = P;
599
+ const f = () => {
572
600
  if (l)
573
601
  return;
574
- f();
575
- const p = t(n ? u[0] : u, a, s);
576
- o ? a(p) : f = Ve(p) ? p : B;
577
- }, d = i.map(
578
- (p, _) => _t(
579
- p,
602
+ c();
603
+ const b = t(n ? u[0] : u, s, a);
604
+ o ? s(b) : c = We(b) ? b : P;
605
+ }, p = i.map(
606
+ (b, E) => xt(
607
+ b,
580
608
  (T) => {
581
- u[_] = T, l &= ~(1 << _), h && m();
609
+ u[E] = T, l &= ~(1 << E), h && f();
582
610
  },
583
611
  () => {
584
- l |= 1 << _;
612
+ l |= 1 << E;
585
613
  }
586
614
  )
587
615
  );
588
- return h = !0, m(), function() {
589
- te(d), f(), h = !1;
616
+ return h = !0, f(), function() {
617
+ re(p), c(), h = !1;
590
618
  };
591
619
  });
592
620
  }
593
- function Hr(e) {
621
+ function Ar(e) {
594
622
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
595
623
  }
596
- var wr = function(t) {
597
- return Sr(t) && !Br(t);
624
+ var Br = function(t) {
625
+ return Pr(t) && !Or(t);
598
626
  };
599
- function Sr(e) {
627
+ function Pr(e) {
600
628
  return !!e && typeof e == "object";
601
629
  }
602
- function Br(e) {
630
+ function Or(e) {
603
631
  var t = Object.prototype.toString.call(e);
604
- return t === "[object RegExp]" || t === "[object Date]" || Or(e);
632
+ return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
605
633
  }
606
- var Ar = typeof Symbol == "function" && Symbol.for, Pr = Ar ? Symbol.for("react.element") : 60103;
607
- function Or(e) {
608
- return e.$$typeof === Pr;
634
+ var Cr = typeof Symbol == "function" && Symbol.for, Lr = Cr ? Symbol.for("react.element") : 60103;
635
+ function Ir(e) {
636
+ return e.$$typeof === Lr;
609
637
  }
610
- function Cr(e) {
638
+ function Nr(e) {
611
639
  return Array.isArray(e) ? [] : {};
612
640
  }
613
- function K(e, t) {
614
- return t.clone !== !1 && t.isMergeableObject(e) ? G(Cr(e), e, t) : e;
641
+ function ee(e, t) {
642
+ return t.clone !== !1 && t.isMergeableObject(e) ? F(Nr(e), e, t) : e;
615
643
  }
616
- function Ir(e, t, r) {
644
+ function Mr(e, t, r) {
617
645
  return e.concat(t).map(function(n) {
618
- return K(n, r);
646
+ return ee(n, r);
619
647
  });
620
648
  }
621
- function Lr(e, t) {
649
+ function Rr(e, t) {
622
650
  if (!t.customMerge)
623
- return G;
651
+ return F;
624
652
  var r = t.customMerge(e);
625
- return typeof r == "function" ? r : G;
653
+ return typeof r == "function" ? r : F;
626
654
  }
627
- function Mr(e) {
655
+ function $r(e) {
628
656
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
629
657
  return Object.propertyIsEnumerable.call(e, t);
630
658
  }) : [];
631
659
  }
632
- function Ye(e) {
633
- return Object.keys(e).concat(Mr(e));
660
+ function Ke(e) {
661
+ return Object.keys(e).concat($r(e));
634
662
  }
635
663
  function wt(e, t) {
636
664
  try {
@@ -639,59 +667,59 @@ function wt(e, t) {
639
667
  return !1;
640
668
  }
641
669
  }
642
- function Nr(e, t) {
670
+ function Dr(e, t) {
643
671
  return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
644
672
  }
645
- function Rr(e, t, r) {
673
+ function Ur(e, t, r) {
646
674
  var n = {};
647
- return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
648
- n[i] = K(e[i], r);
649
- }), Ye(t).forEach(function(i) {
650
- Nr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
675
+ return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
676
+ n[i] = ee(e[i], r);
677
+ }), Ke(t).forEach(function(i) {
678
+ Dr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
651
679
  }), n;
652
680
  }
653
- function G(e, t, r) {
654
- r = r || {}, r.arrayMerge = r.arrayMerge || Ir, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = K;
681
+ function F(e, t, r) {
682
+ r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = ee;
655
683
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
656
- return o ? n ? r.arrayMerge(e, t, r) : Rr(e, t, r) : K(t, r);
684
+ return o ? n ? r.arrayMerge(e, t, r) : Ur(e, t, r) : ee(t, r);
657
685
  }
658
- G.all = function(t, r) {
686
+ F.all = function(t, r) {
659
687
  if (!Array.isArray(t))
660
688
  throw new Error("first argument should be an array");
661
689
  return t.reduce(function(n, i) {
662
- return G(n, i, r);
690
+ return F(n, i, r);
663
691
  }, {});
664
692
  };
665
- var $r = G, Dr = $r;
666
- const Ur = /* @__PURE__ */ Hr(Dr);
667
- var $e = function(e, t) {
668
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
693
+ var kr = F, Gr = kr;
694
+ const Fr = /* @__PURE__ */ Ar(Gr);
695
+ var De = function(e, t) {
696
+ return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
669
697
  r.__proto__ = n;
670
698
  } || function(r, n) {
671
699
  for (var i in n)
672
700
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
673
- }, $e(e, t);
701
+ }, De(e, t);
674
702
  };
675
- function Te(e, t) {
703
+ function He(e, t) {
676
704
  if (typeof t != "function" && t !== null)
677
705
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
678
- $e(e, t);
706
+ De(e, t);
679
707
  function r() {
680
708
  this.constructor = e;
681
709
  }
682
710
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
683
711
  }
684
- var w = function() {
685
- return w = Object.assign || function(t) {
712
+ var A = function() {
713
+ return A = Object.assign || function(t) {
686
714
  for (var r, n = 1, i = arguments.length; n < i; n++) {
687
715
  r = arguments[n];
688
716
  for (var o in r)
689
717
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
690
718
  }
691
719
  return t;
692
- }, w.apply(this, arguments);
720
+ }, A.apply(this, arguments);
693
721
  };
694
- function kr(e, t) {
722
+ function zr(e, t) {
695
723
  var r = {};
696
724
  for (var n in e)
697
725
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -700,43 +728,43 @@ function kr(e, t) {
700
728
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
701
729
  return r;
702
730
  }
703
- function Ae(e, t, r) {
731
+ function Pe(e, t, r) {
704
732
  if (r || arguments.length === 2)
705
733
  for (var n = 0, i = t.length, o; n < i; n++)
706
734
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
707
735
  return e.concat(o || Array.prototype.slice.call(t));
708
736
  }
709
- function Pe(e, t) {
710
- var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : zr;
737
+ function Oe(e, t) {
738
+ var r = t && t.cache ? t.cache : Zr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
711
739
  return i(e, {
712
740
  cache: r,
713
741
  serializer: n
714
742
  });
715
743
  }
716
- function Gr(e) {
744
+ function jr(e) {
717
745
  return e == null || typeof e == "number" || typeof e == "boolean";
718
746
  }
719
- function Fr(e, t, r, n) {
720
- var i = Gr(n) ? n : r(n), o = t.get(i);
747
+ function Vr(e, t, r, n) {
748
+ var i = jr(n) ? n : r(n), o = t.get(i);
721
749
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
722
750
  }
723
- function St(e, t, r) {
751
+ function At(e, t, r) {
724
752
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
725
753
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
726
754
  }
727
755
  function Bt(e, t, r, n, i) {
728
756
  return r.bind(t, e, n, i);
729
757
  }
730
- function zr(e, t) {
731
- var r = e.length === 1 ? Fr : St;
758
+ function Wr(e, t) {
759
+ var r = e.length === 1 ? Vr : At;
732
760
  return Bt(e, this, r, t.cache.create(), t.serializer);
733
761
  }
734
- function jr(e, t) {
735
- return Bt(e, this, St, t.cache.create(), t.serializer);
762
+ function Xr(e, t) {
763
+ return Bt(e, this, At, t.cache.create(), t.serializer);
736
764
  }
737
- var Vr = function() {
765
+ var qr = function() {
738
766
  return JSON.stringify(arguments);
739
- }, Xr = (
767
+ }, Jr = (
740
768
  /** @class */
741
769
  function() {
742
770
  function e() {
@@ -748,71 +776,71 @@ var Vr = function() {
748
776
  this.cache[t] = r;
749
777
  }, e;
750
778
  }()
751
- ), Wr = {
779
+ ), Zr = {
752
780
  create: function() {
753
- return new Xr();
781
+ return new Jr();
754
782
  }
755
- }, Oe = {
756
- variadic: jr
757
- }, ge = function() {
758
- return ge = Object.assign || function(t) {
783
+ }, Ce = {
784
+ variadic: Xr
785
+ }, ye = function() {
786
+ return ye = Object.assign || function(t) {
759
787
  for (var r, n = 1, i = arguments.length; n < i; n++) {
760
788
  r = arguments[n];
761
789
  for (var o in r)
762
790
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
763
791
  }
764
792
  return t;
765
- }, ge.apply(this, arguments);
793
+ }, ye.apply(this, arguments);
766
794
  };
767
- var b;
795
+ var g;
768
796
  (function(e) {
769
797
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
770
- })(b || (b = {}));
798
+ })(g || (g = {}));
771
799
  var v;
772
800
  (function(e) {
773
801
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
774
802
  })(v || (v = {}));
775
- var F;
803
+ var z;
776
804
  (function(e) {
777
805
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
778
- })(F || (F = {}));
779
- function Ke(e) {
806
+ })(z || (z = {}));
807
+ function et(e) {
780
808
  return e.type === v.literal;
781
809
  }
782
- function qr(e) {
810
+ function Yr(e) {
783
811
  return e.type === v.argument;
784
812
  }
785
- function At(e) {
813
+ function Pt(e) {
786
814
  return e.type === v.number;
787
815
  }
788
- function Pt(e) {
816
+ function Ot(e) {
789
817
  return e.type === v.date;
790
818
  }
791
- function Ot(e) {
819
+ function Ct(e) {
792
820
  return e.type === v.time;
793
821
  }
794
- function Ct(e) {
822
+ function Lt(e) {
795
823
  return e.type === v.select;
796
824
  }
797
825
  function It(e) {
798
826
  return e.type === v.plural;
799
827
  }
800
- function Jr(e) {
828
+ function Qr(e) {
801
829
  return e.type === v.pound;
802
830
  }
803
- function Lt(e) {
831
+ function Nt(e) {
804
832
  return e.type === v.tag;
805
833
  }
806
834
  function Mt(e) {
807
- return !!(e && typeof e == "object" && e.type === F.number);
835
+ return !!(e && typeof e == "object" && e.type === z.number);
808
836
  }
809
- function De(e) {
810
- return !!(e && typeof e == "object" && e.type === F.dateTime);
837
+ function Ue(e) {
838
+ return !!(e && typeof e == "object" && e.type === z.dateTime);
811
839
  }
812
- var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
813
- function Qr(e) {
840
+ var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
841
+ function en(e) {
814
842
  var t = {};
815
- return e.replace(Zr, function(r) {
843
+ return e.replace(Kr, function(r) {
816
844
  var n = r.length;
817
845
  switch (r[0]) {
818
846
  case "G":
@@ -901,46 +929,46 @@ function Qr(e) {
901
929
  return "";
902
930
  }), t;
903
931
  }
904
- var E = function() {
905
- return E = Object.assign || function(t) {
932
+ var _ = function() {
933
+ return _ = Object.assign || function(t) {
906
934
  for (var r, n = 1, i = arguments.length; n < i; n++) {
907
935
  r = arguments[n];
908
936
  for (var o in r)
909
937
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
910
938
  }
911
939
  return t;
912
- }, E.apply(this, arguments);
940
+ }, _.apply(this, arguments);
913
941
  };
914
- var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
915
- function Kr(e) {
942
+ var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
943
+ function rn(e) {
916
944
  if (e.length === 0)
917
945
  throw new Error("Number skeleton cannot be empty");
918
- for (var t = e.split(Yr).filter(function(m) {
919
- return m.length > 0;
946
+ for (var t = e.split(tn).filter(function(f) {
947
+ return f.length > 0;
920
948
  }), r = [], n = 0, i = t; n < i.length; n++) {
921
- var o = i[n], a = o.split("/");
922
- if (a.length === 0)
949
+ var o = i[n], s = o.split("/");
950
+ if (s.length === 0)
923
951
  throw new Error("Invalid number skeleton");
924
- for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
925
- var f = l[u];
926
- if (f.length === 0)
952
+ for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
953
+ var c = l[u];
954
+ if (c.length === 0)
927
955
  throw new Error("Invalid number skeleton");
928
956
  }
929
- r.push({ stem: s, options: h });
957
+ r.push({ stem: a, options: h });
930
958
  }
931
959
  return r;
932
960
  }
933
- function en(e) {
961
+ function nn(e) {
934
962
  return e.replace(/^(.*?)-/, "");
935
963
  }
936
- var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
937
- function tt(e) {
964
+ var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
965
+ function rt(e) {
938
966
  var t = {};
939
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
967
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
940
968
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
941
969
  }), t;
942
970
  }
943
- function Dt(e) {
971
+ function Ut(e) {
944
972
  switch (e) {
945
973
  case "sign-auto":
946
974
  return {
@@ -980,7 +1008,7 @@ function Dt(e) {
980
1008
  };
981
1009
  }
982
1010
  }
983
- function rn(e) {
1011
+ function sn(e) {
984
1012
  var t;
985
1013
  if (e[0] === "E" && e[1] === "E" ? (t = {
986
1014
  notation: "engineering"
@@ -988,17 +1016,17 @@ function rn(e) {
988
1016
  notation: "scientific"
989
1017
  }, e = e.slice(1)), t) {
990
1018
  var r = e.slice(0, 2);
991
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$t.test(e))
1019
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
992
1020
  throw new Error("Malformed concise eng/scientific notation");
993
1021
  t.minimumIntegerDigits = e.length;
994
1022
  }
995
1023
  return t;
996
1024
  }
997
- function rt(e) {
998
- var t = {}, r = Dt(e);
1025
+ function nt(e) {
1026
+ var t = {}, r = Ut(e);
999
1027
  return r || t;
1000
1028
  }
1001
- function nn(e) {
1029
+ function an(e) {
1002
1030
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1003
1031
  var i = n[r];
1004
1032
  switch (i.stem) {
@@ -1022,7 +1050,7 @@ function nn(e) {
1022
1050
  continue;
1023
1051
  case "measure-unit":
1024
1052
  case "unit":
1025
- t.style = "unit", t.unit = en(i.options[0]);
1053
+ t.style = "unit", t.unit = nn(i.options[0]);
1026
1054
  continue;
1027
1055
  case "compact-short":
1028
1056
  case "K":
@@ -1033,13 +1061,13 @@ function nn(e) {
1033
1061
  t.notation = "compact", t.compactDisplay = "long";
1034
1062
  continue;
1035
1063
  case "scientific":
1036
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1037
- return E(E({}, h), rt(u));
1064
+ t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1065
+ return _(_({}, h), nt(u));
1038
1066
  }, {}));
1039
1067
  continue;
1040
1068
  case "engineering":
1041
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1042
- return E(E({}, h), rt(u));
1069
+ t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1070
+ return _(_({}, h), nt(u));
1043
1071
  }, {}));
1044
1072
  continue;
1045
1073
  case "notation-simple":
@@ -1084,45 +1112,45 @@ function nn(e) {
1084
1112
  case "integer-width":
1085
1113
  if (i.options.length > 1)
1086
1114
  throw new RangeError("integer-width stems only accept a single optional option");
1087
- i.options[0].replace(tn, function(h, u, l, f, m, d) {
1115
+ i.options[0].replace(on, function(h, u, l, c, f, p) {
1088
1116
  if (u)
1089
1117
  t.minimumIntegerDigits = l.length;
1090
1118
  else {
1091
- if (f && m)
1119
+ if (c && f)
1092
1120
  throw new Error("We currently do not support maximum integer digits");
1093
- if (d)
1121
+ if (p)
1094
1122
  throw new Error("We currently do not support exact integer digits");
1095
1123
  }
1096
1124
  return "";
1097
1125
  });
1098
1126
  continue;
1099
1127
  }
1100
- if ($t.test(i.stem)) {
1128
+ if (Dt.test(i.stem)) {
1101
1129
  t.minimumIntegerDigits = i.stem.length;
1102
1130
  continue;
1103
1131
  }
1104
- if (et.test(i.stem)) {
1132
+ if (tt.test(i.stem)) {
1105
1133
  if (i.options.length > 1)
1106
1134
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1107
- i.stem.replace(et, function(h, u, l, f, m, d) {
1108
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1135
+ i.stem.replace(tt, function(h, u, l, c, f, p) {
1136
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1109
1137
  });
1110
1138
  var o = i.options[0];
1111
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), tt(o)));
1139
+ o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), rt(o)));
1112
1140
  continue;
1113
1141
  }
1114
- if (Rt.test(i.stem)) {
1115
- t = E(E({}, t), tt(i.stem));
1142
+ if ($t.test(i.stem)) {
1143
+ t = _(_({}, t), rt(i.stem));
1116
1144
  continue;
1117
1145
  }
1118
- var a = Dt(i.stem);
1119
- a && (t = E(E({}, t), a));
1120
- var s = rn(i.stem);
1121
- s && (t = E(E({}, t), s));
1146
+ var s = Ut(i.stem);
1147
+ s && (t = _(_({}, t), s));
1148
+ var a = sn(i.stem);
1149
+ a && (t = _(_({}, t), a));
1122
1150
  }
1123
1151
  return t;
1124
1152
  }
1125
- var fe = {
1153
+ var me = {
1126
1154
  "001": [
1127
1155
  "H",
1128
1156
  "h"
@@ -2537,23 +2565,23 @@ var fe = {
2537
2565
  "h"
2538
2566
  ]
2539
2567
  };
2540
- function on(e, t) {
2568
+ function un(e, t) {
2541
2569
  for (var r = "", n = 0; n < e.length; n++) {
2542
2570
  var i = e.charAt(n);
2543
2571
  if (i === "j") {
2544
2572
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2545
2573
  o++, n++;
2546
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = an(t);
2547
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2574
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ln(t);
2575
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2548
2576
  r += h;
2549
- for (; a-- > 0; )
2577
+ for (; s-- > 0; )
2550
2578
  r = u + r;
2551
2579
  } else
2552
2580
  i === "J" ? r += "H" : r += i;
2553
2581
  }
2554
2582
  return r;
2555
2583
  }
2556
- function an(e) {
2584
+ function ln(e) {
2557
2585
  var t = e.hourCycle;
2558
2586
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2559
2587
  e.hourCycles && // @ts-ignore
@@ -2572,23 +2600,23 @@ function an(e) {
2572
2600
  }
2573
2601
  var r = e.language, n;
2574
2602
  r !== "root" && (n = e.maximize().region);
2575
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2603
+ var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2576
2604
  return i[0];
2577
2605
  }
2578
- var Ce, sn = new RegExp("^".concat(Nt.source, "*")), un = new RegExp("".concat(Nt.source, "*$"));
2606
+ var Le, hn = new RegExp("^".concat(Rt.source, "*")), cn = new RegExp("".concat(Rt.source, "*$"));
2579
2607
  function y(e, t) {
2580
2608
  return { start: e, end: t };
2581
2609
  }
2582
- var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
2610
+ var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, dn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, gn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, vn = yn ? Number.isSafeInteger : function(e) {
2583
2611
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2584
- }, Ue = !0;
2612
+ }, ke = !0;
2585
2613
  try {
2586
- var gn = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2587
- Ue = ((Ce = gn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2614
+ var _n = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2615
+ ke = ((Le = _n.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2588
2616
  } catch {
2589
- Ue = !1;
2617
+ ke = !1;
2590
2618
  }
2591
- var nt = ln ? (
2619
+ var it = fn ? (
2592
2620
  // Native
2593
2621
  function(t, r, n) {
2594
2622
  return t.startsWith(r, n);
@@ -2598,31 +2626,31 @@ var nt = ln ? (
2598
2626
  function(t, r, n) {
2599
2627
  return t.slice(n, n + r.length) === r;
2600
2628
  }
2601
- ), ke = hn ? String.fromCodePoint : (
2629
+ ), Ge = mn ? String.fromCodePoint : (
2602
2630
  // IE11
2603
2631
  function() {
2604
2632
  for (var t = [], r = 0; r < arguments.length; r++)
2605
2633
  t[r] = arguments[r];
2606
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
2607
- if (a = t[o++], a > 1114111)
2608
- throw RangeError(a + " is not a valid code point");
2609
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2634
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2635
+ if (s = t[o++], s > 1114111)
2636
+ throw RangeError(s + " is not a valid code point");
2637
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2610
2638
  }
2611
2639
  return n;
2612
2640
  }
2613
- ), it = (
2641
+ ), ot = (
2614
2642
  // native
2615
- cn ? Object.fromEntries : (
2643
+ dn ? Object.fromEntries : (
2616
2644
  // Ponyfill
2617
2645
  function(t) {
2618
2646
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2619
- var o = i[n], a = o[0], s = o[1];
2620
- r[a] = s;
2647
+ var o = i[n], s = o[0], a = o[1];
2648
+ r[s] = a;
2621
2649
  }
2622
2650
  return r;
2623
2651
  }
2624
2652
  )
2625
- ), Ut = fn ? (
2653
+ ), kt = pn ? (
2626
2654
  // Native
2627
2655
  function(t, r) {
2628
2656
  return t.codePointAt(r);
@@ -2636,7 +2664,7 @@ var nt = ln ? (
2636
2664
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2637
2665
  }
2638
2666
  }
2639
- ), yn = mn ? (
2667
+ ), En = bn ? (
2640
2668
  // Native
2641
2669
  function(t) {
2642
2670
  return t.trimStart();
@@ -2644,9 +2672,9 @@ var nt = ln ? (
2644
2672
  ) : (
2645
2673
  // Ponyfill
2646
2674
  function(t) {
2647
- return t.replace(sn, "");
2675
+ return t.replace(hn, "");
2648
2676
  }
2649
- ), vn = dn ? (
2677
+ ), xn = gn ? (
2650
2678
  // Native
2651
2679
  function(t) {
2652
2680
  return t.trimEnd();
@@ -2654,32 +2682,32 @@ var nt = ln ? (
2654
2682
  ) : (
2655
2683
  // Ponyfill
2656
2684
  function(t) {
2657
- return t.replace(un, "");
2685
+ return t.replace(cn, "");
2658
2686
  }
2659
2687
  );
2660
- function kt(e, t) {
2688
+ function Gt(e, t) {
2661
2689
  return new RegExp(e, t);
2662
2690
  }
2663
- var Ge;
2664
- if (Ue) {
2665
- var ot = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2666
- Ge = function(t, r) {
2691
+ var Fe;
2692
+ if (ke) {
2693
+ var st = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2694
+ Fe = function(t, r) {
2667
2695
  var n;
2668
- ot.lastIndex = r;
2669
- var i = ot.exec(t);
2696
+ st.lastIndex = r;
2697
+ var i = st.exec(t);
2670
2698
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2671
2699
  };
2672
2700
  } else
2673
- Ge = function(t, r) {
2701
+ Fe = function(t, r) {
2674
2702
  for (var n = []; ; ) {
2675
- var i = Ut(t, r);
2676
- if (i === void 0 || Gt(i) || Tn(i))
2703
+ var i = kt(t, r);
2704
+ if (i === void 0 || Ft(i) || wn(i))
2677
2705
  break;
2678
2706
  n.push(i), r += i >= 65536 ? 2 : 1;
2679
2707
  }
2680
- return ke.apply(void 0, n);
2708
+ return Ge.apply(void 0, n);
2681
2709
  };
2682
- var En = (
2710
+ var Tn = (
2683
2711
  /** @class */
2684
2712
  function() {
2685
2713
  function e(t, r) {
@@ -2693,33 +2721,33 @@ var En = (
2693
2721
  for (var i = []; !this.isEOF(); ) {
2694
2722
  var o = this.char();
2695
2723
  if (o === 123) {
2696
- var a = this.parseArgument(t, n);
2697
- if (a.err)
2698
- return a;
2699
- i.push(a.val);
2724
+ var s = this.parseArgument(t, n);
2725
+ if (s.err)
2726
+ return s;
2727
+ i.push(s.val);
2700
2728
  } else {
2701
2729
  if (o === 125 && t > 0)
2702
2730
  break;
2703
2731
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2704
- var s = this.clonePosition();
2732
+ var a = this.clonePosition();
2705
2733
  this.bump(), i.push({
2706
2734
  type: v.pound,
2707
- location: y(s, this.clonePosition())
2735
+ location: y(a, this.clonePosition())
2708
2736
  });
2709
2737
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2710
2738
  if (n)
2711
2739
  break;
2712
- return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2713
- } else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2714
- var a = this.parseTag(t, r);
2715
- if (a.err)
2716
- return a;
2717
- i.push(a.val);
2740
+ return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2741
+ } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2742
+ var s = this.parseTag(t, r);
2743
+ if (s.err)
2744
+ return s;
2745
+ i.push(s.val);
2718
2746
  } else {
2719
- var a = this.parseLiteral(t, r);
2720
- if (a.err)
2721
- return a;
2722
- i.push(a.val);
2747
+ var s = this.parseLiteral(t, r);
2748
+ if (s.err)
2749
+ return s;
2750
+ i.push(s.val);
2723
2751
  }
2724
2752
  }
2725
2753
  }
@@ -2741,27 +2769,27 @@ var En = (
2741
2769
  var o = this.parseMessage(t + 1, r, !0);
2742
2770
  if (o.err)
2743
2771
  return o;
2744
- var a = o.val, s = this.clonePosition();
2772
+ var s = o.val, a = this.clonePosition();
2745
2773
  if (this.bumpIf("</")) {
2746
- if (this.isEOF() || !Fe(this.char()))
2747
- return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
2774
+ if (this.isEOF() || !ze(this.char()))
2775
+ return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
2748
2776
  var h = this.clonePosition(), u = this.parseTagName();
2749
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2777
+ return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2750
2778
  val: {
2751
2779
  type: v.tag,
2752
2780
  value: i,
2753
- children: a,
2781
+ children: s,
2754
2782
  location: y(n, this.clonePosition())
2755
2783
  },
2756
2784
  err: null
2757
- } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
2785
+ } : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
2758
2786
  } else
2759
- return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2787
+ return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
2760
2788
  } else
2761
- return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2789
+ return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
2762
2790
  }, e.prototype.parseTagName = function() {
2763
2791
  var t = this.offset();
2764
- for (this.bump(); !this.isEOF() && xn(this.char()); )
2792
+ for (this.bump(); !this.isEOF() && Sn(this.char()); )
2765
2793
  this.bump();
2766
2794
  return this.message.slice(t, this.offset());
2767
2795
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2771,16 +2799,16 @@ var En = (
2771
2799
  i += o;
2772
2800
  continue;
2773
2801
  }
2774
- var a = this.tryParseUnquoted(t, r);
2775
- if (a) {
2776
- i += a;
2777
- continue;
2778
- }
2779
- var s = this.tryParseLeftAngleBracket();
2802
+ var s = this.tryParseUnquoted(t, r);
2780
2803
  if (s) {
2781
2804
  i += s;
2782
2805
  continue;
2783
2806
  }
2807
+ var a = this.tryParseLeftAngleBracket();
2808
+ if (a) {
2809
+ i += a;
2810
+ continue;
2811
+ }
2784
2812
  break;
2785
2813
  }
2786
2814
  var h = y(n, this.clonePosition());
@@ -2790,7 +2818,7 @@ var En = (
2790
2818
  };
2791
2819
  }, e.prototype.tryParseLeftAngleBracket = function() {
2792
2820
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2793
- !_n(this.peek() || 0)) ? (this.bump(), "<") : null;
2821
+ !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2794
2822
  }, e.prototype.tryParseQuote = function(t) {
2795
2823
  if (this.isEOF() || this.char() !== 39)
2796
2824
  return null;
@@ -2824,23 +2852,23 @@ var En = (
2824
2852
  r.push(n);
2825
2853
  this.bump();
2826
2854
  }
2827
- return ke.apply(void 0, r);
2855
+ return Ge.apply(void 0, r);
2828
2856
  }, e.prototype.tryParseUnquoted = function(t, r) {
2829
2857
  if (this.isEOF())
2830
2858
  return null;
2831
2859
  var n = this.char();
2832
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
2860
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2833
2861
  }, e.prototype.parseArgument = function(t, r) {
2834
2862
  var n = this.clonePosition();
2835
2863
  if (this.bump(), this.bumpSpace(), this.isEOF())
2836
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2864
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2837
2865
  if (this.char() === 125)
2838
- return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2866
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2839
2867
  var i = this.parseIdentifierIfPossible().value;
2840
2868
  if (!i)
2841
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2869
+ return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2842
2870
  if (this.bumpSpace(), this.isEOF())
2843
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2871
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2844
2872
  switch (this.char()) {
2845
2873
  case 125:
2846
2874
  return this.bump(), {
@@ -2853,20 +2881,20 @@ var En = (
2853
2881
  err: null
2854
2882
  };
2855
2883
  case 44:
2856
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2884
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2857
2885
  default:
2858
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2886
+ return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2859
2887
  }
2860
2888
  }, e.prototype.parseIdentifierIfPossible = function() {
2861
- var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2889
+ var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
2862
2890
  this.bumpTo(i);
2863
- var o = this.clonePosition(), a = y(t, o);
2864
- return { value: n, location: a };
2891
+ var o = this.clonePosition(), s = y(t, o);
2892
+ return { value: n, location: s };
2865
2893
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2866
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2867
- switch (s) {
2894
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2895
+ switch (a) {
2868
2896
  case "":
2869
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, h));
2897
+ return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, h));
2870
2898
  case "number":
2871
2899
  case "date":
2872
2900
  case "time": {
@@ -2874,49 +2902,49 @@ var En = (
2874
2902
  var u = null;
2875
2903
  if (this.bumpIf(",")) {
2876
2904
  this.bumpSpace();
2877
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2878
- if (f.err)
2879
- return f;
2880
- var m = vn(f.val);
2881
- if (m.length === 0)
2882
- return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2883
- var d = y(l, this.clonePosition());
2884
- u = { style: m, styleLocation: d };
2905
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2906
+ if (c.err)
2907
+ return c;
2908
+ var f = xn(c.val);
2909
+ if (f.length === 0)
2910
+ return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2911
+ var p = y(l, this.clonePosition());
2912
+ u = { style: f, styleLocation: p };
2885
2913
  }
2886
- var p = this.tryParseArgumentClose(i);
2887
- if (p.err)
2888
- return p;
2889
- var _ = y(i, this.clonePosition());
2890
- if (u && nt(u?.style, "::", 0)) {
2891
- var T = yn(u.style.slice(2));
2892
- if (s === "number") {
2893
- var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
2894
- return f.err ? f : {
2895
- val: { type: v.number, value: n, location: _, style: f.val },
2914
+ var b = this.tryParseArgumentClose(i);
2915
+ if (b.err)
2916
+ return b;
2917
+ var E = y(i, this.clonePosition());
2918
+ if (u && it(u?.style, "::", 0)) {
2919
+ var T = En(u.style.slice(2));
2920
+ if (a === "number") {
2921
+ var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2922
+ return c.err ? c : {
2923
+ val: { type: v.number, value: n, location: E, style: c.val },
2896
2924
  err: null
2897
2925
  };
2898
2926
  } else {
2899
2927
  if (T.length === 0)
2900
- return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
2928
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, E);
2901
2929
  var x = T;
2902
- this.locale && (x = on(T, this.locale));
2903
- var m = {
2904
- type: F.dateTime,
2930
+ this.locale && (x = un(T, this.locale));
2931
+ var f = {
2932
+ type: z.dateTime,
2905
2933
  pattern: x,
2906
2934
  location: u.styleLocation,
2907
- parsedOptions: this.shouldParseSkeletons ? Qr(x) : {}
2908
- }, c = s === "date" ? v.date : v.time;
2935
+ parsedOptions: this.shouldParseSkeletons ? en(x) : {}
2936
+ }, d = a === "date" ? v.date : v.time;
2909
2937
  return {
2910
- val: { type: c, value: n, location: _, style: m },
2938
+ val: { type: d, value: n, location: E, style: f },
2911
2939
  err: null
2912
2940
  };
2913
2941
  }
2914
2942
  }
2915
2943
  return {
2916
2944
  val: {
2917
- type: s === "number" ? v.number : s === "date" ? v.date : v.time,
2945
+ type: a === "number" ? v.number : a === "date" ? v.date : v.time,
2918
2946
  value: n,
2919
- location: _,
2947
+ location: E,
2920
2948
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2921
2949
  },
2922
2950
  err: null
@@ -2925,52 +2953,52 @@ var En = (
2925
2953
  case "plural":
2926
2954
  case "selectordinal":
2927
2955
  case "select": {
2928
- var g = this.clonePosition();
2956
+ var m = this.clonePosition();
2929
2957
  if (this.bumpSpace(), !this.bumpIf(","))
2930
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ge({}, g)));
2958
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(m, ye({}, m)));
2931
2959
  this.bumpSpace();
2932
- var A = this.parseIdentifierIfPossible(), L = 0;
2933
- if (s !== "select" && A.value === "offset") {
2960
+ var S = this.parseIdentifierIfPossible(), w = 0;
2961
+ if (a !== "select" && S.value === "offset") {
2934
2962
  if (!this.bumpIf(":"))
2935
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2963
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2936
2964
  this.bumpSpace();
2937
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2938
- if (f.err)
2939
- return f;
2940
- this.bumpSpace(), A = this.parseIdentifierIfPossible(), L = f.val;
2965
+ var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2966
+ if (c.err)
2967
+ return c;
2968
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), w = c.val;
2941
2969
  }
2942
- var ie = this.tryParsePluralOrSelectOptions(t, s, r, A);
2943
- if (ie.err)
2944
- return ie;
2945
- var p = this.tryParseArgumentClose(i);
2946
- if (p.err)
2947
- return p;
2948
- var qe = y(i, this.clonePosition());
2949
- return s === "select" ? {
2970
+ var oe = this.tryParsePluralOrSelectOptions(t, a, r, S);
2971
+ if (oe.err)
2972
+ return oe;
2973
+ var b = this.tryParseArgumentClose(i);
2974
+ if (b.err)
2975
+ return b;
2976
+ var Je = y(i, this.clonePosition());
2977
+ return a === "select" ? {
2950
2978
  val: {
2951
2979
  type: v.select,
2952
2980
  value: n,
2953
- options: it(ie.val),
2954
- location: qe
2981
+ options: ot(oe.val),
2982
+ location: Je
2955
2983
  },
2956
2984
  err: null
2957
2985
  } : {
2958
2986
  val: {
2959
2987
  type: v.plural,
2960
2988
  value: n,
2961
- options: it(ie.val),
2962
- offset: L,
2963
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2964
- location: qe
2989
+ options: ot(oe.val),
2990
+ offset: w,
2991
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2992
+ location: Je
2965
2993
  },
2966
2994
  err: null
2967
2995
  };
2968
2996
  }
2969
2997
  default:
2970
- return this.error(b.INVALID_ARGUMENT_TYPE, y(a, h));
2998
+ return this.error(g.INVALID_ARGUMENT_TYPE, y(s, h));
2971
2999
  }
2972
3000
  }, e.prototype.tryParseArgumentClose = function(t) {
2973
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3001
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2974
3002
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2975
3003
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2976
3004
  var n = this.char();
@@ -2979,7 +3007,7 @@ var En = (
2979
3007
  this.bump();
2980
3008
  var i = this.clonePosition();
2981
3009
  if (!this.bumpUntil("'"))
2982
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3010
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2983
3011
  this.bump();
2984
3012
  break;
2985
3013
  }
@@ -3009,64 +3037,64 @@ var En = (
3009
3037
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3010
3038
  var n = [];
3011
3039
  try {
3012
- n = Kr(t);
3040
+ n = rn(t);
3013
3041
  } catch {
3014
- return this.error(b.INVALID_NUMBER_SKELETON, r);
3042
+ return this.error(g.INVALID_NUMBER_SKELETON, r);
3015
3043
  }
3016
3044
  return {
3017
3045
  val: {
3018
- type: F.number,
3046
+ type: z.number,
3019
3047
  tokens: n,
3020
3048
  location: r,
3021
- parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
3049
+ parsedOptions: this.shouldParseSkeletons ? an(n) : {}
3022
3050
  },
3023
3051
  err: null
3024
3052
  };
3025
3053
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3026
- for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3054
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3027
3055
  if (u.length === 0) {
3028
- var f = this.clonePosition();
3056
+ var c = this.clonePosition();
3029
3057
  if (r !== "select" && this.bumpIf("=")) {
3030
- var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3031
- if (m.err)
3032
- return m;
3033
- l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3058
+ var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3059
+ if (f.err)
3060
+ return f;
3061
+ l = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3034
3062
  } else
3035
3063
  break;
3036
3064
  }
3037
3065
  if (h.has(u))
3038
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3039
- u === "other" && (a = !0), this.bumpSpace();
3040
- var d = this.clonePosition();
3066
+ return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3067
+ u === "other" && (s = !0), this.bumpSpace();
3068
+ var p = this.clonePosition();
3041
3069
  if (!this.bumpIf("{"))
3042
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3043
- var p = this.parseMessage(t + 1, r, n);
3044
- if (p.err)
3045
- return p;
3046
- var _ = this.tryParseArgumentClose(d);
3047
- if (_.err)
3048
- return _;
3049
- s.push([
3070
+ return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3071
+ var b = this.parseMessage(t + 1, r, n);
3072
+ if (b.err)
3073
+ return b;
3074
+ var E = this.tryParseArgumentClose(p);
3075
+ if (E.err)
3076
+ return E;
3077
+ a.push([
3050
3078
  u,
3051
3079
  {
3052
- value: p.val,
3053
- location: y(d, this.clonePosition())
3080
+ value: b.val,
3081
+ location: y(p, this.clonePosition())
3054
3082
  }
3055
3083
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3056
3084
  }
3057
- return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3085
+ return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3058
3086
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3059
3087
  var n = 1, i = this.clonePosition();
3060
3088
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3061
- for (var o = !1, a = 0; !this.isEOF(); ) {
3062
- var s = this.char();
3063
- if (s >= 48 && s <= 57)
3064
- o = !0, a = a * 10 + (s - 48), this.bump();
3089
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3090
+ var a = this.char();
3091
+ if (a >= 48 && a <= 57)
3092
+ o = !0, s = s * 10 + (a - 48), this.bump();
3065
3093
  else
3066
3094
  break;
3067
3095
  }
3068
3096
  var h = y(i, this.clonePosition());
3069
- return o ? (a *= n, bn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3097
+ return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3070
3098
  }, e.prototype.offset = function() {
3071
3099
  return this.position.offset;
3072
3100
  }, e.prototype.isEOF = function() {
@@ -3081,7 +3109,7 @@ var En = (
3081
3109
  var t = this.position.offset;
3082
3110
  if (t >= this.message.length)
3083
3111
  throw Error("out of bound");
3084
- var r = Ut(this.message, t);
3112
+ var r = kt(this.message, t);
3085
3113
  if (r === void 0)
3086
3114
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3087
3115
  return r;
@@ -3100,7 +3128,7 @@ var En = (
3100
3128
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3101
3129
  }
3102
3130
  }, e.prototype.bumpIf = function(t) {
3103
- if (nt(this.message, t, this.offset())) {
3131
+ if (it(this.message, t, this.offset())) {
3104
3132
  for (var r = 0; r < t.length; r++)
3105
3133
  this.bump();
3106
3134
  return !0;
@@ -3122,7 +3150,7 @@ var En = (
3122
3150
  break;
3123
3151
  }
3124
3152
  }, e.prototype.bumpSpace = function() {
3125
- for (; !this.isEOF() && Gt(this.char()); )
3153
+ for (; !this.isEOF() && Ft(this.char()); )
3126
3154
  this.bump();
3127
3155
  }, e.prototype.peek = function() {
3128
3156
  if (this.isEOF())
@@ -3132,47 +3160,47 @@ var En = (
3132
3160
  }, e;
3133
3161
  }()
3134
3162
  );
3135
- function Fe(e) {
3163
+ function ze(e) {
3136
3164
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3137
3165
  }
3138
- function _n(e) {
3139
- return Fe(e) || e === 47;
3166
+ function Hn(e) {
3167
+ return ze(e) || e === 47;
3140
3168
  }
3141
- function xn(e) {
3169
+ function Sn(e) {
3142
3170
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3143
3171
  }
3144
- function Gt(e) {
3172
+ function Ft(e) {
3145
3173
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3146
3174
  }
3147
- function Tn(e) {
3175
+ function wn(e) {
3148
3176
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3149
3177
  }
3150
- function ze(e) {
3178
+ function je(e) {
3151
3179
  e.forEach(function(t) {
3152
- if (delete t.location, Ct(t) || It(t))
3180
+ if (delete t.location, Lt(t) || It(t))
3153
3181
  for (var r in t.options)
3154
- delete t.options[r].location, ze(t.options[r].value);
3182
+ delete t.options[r].location, je(t.options[r].value);
3155
3183
  else
3156
- At(t) && Mt(t.style) || (Pt(t) || Ot(t)) && De(t.style) ? delete t.style.location : Lt(t) && ze(t.children);
3184
+ Pt(t) && Mt(t.style) || (Ot(t) || Ct(t)) && Ue(t.style) ? delete t.style.location : Nt(t) && je(t.children);
3157
3185
  });
3158
3186
  }
3159
- function Hn(e, t) {
3160
- t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3161
- var r = new En(e, t).parse();
3187
+ function An(e, t) {
3188
+ t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3189
+ var r = new Tn(e, t).parse();
3162
3190
  if (r.err) {
3163
- var n = SyntaxError(b[r.err.kind]);
3191
+ var n = SyntaxError(g[r.err.kind]);
3164
3192
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3165
3193
  }
3166
- return t?.captureLocation || ze(r.val), r.val;
3194
+ return t?.captureLocation || je(r.val), r.val;
3167
3195
  }
3168
- var z;
3196
+ var j;
3169
3197
  (function(e) {
3170
3198
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3171
- })(z || (z = {}));
3172
- var He = (
3199
+ })(j || (j = {}));
3200
+ var Se = (
3173
3201
  /** @class */
3174
3202
  function(e) {
3175
- Te(t, e);
3203
+ He(t, e);
3176
3204
  function t(r, n, i) {
3177
3205
  var o = e.call(this, r) || this;
3178
3206
  return o.code = n, o.originalMessage = i, o;
@@ -3184,150 +3212,150 @@ var He = (
3184
3212
  ), at = (
3185
3213
  /** @class */
3186
3214
  function(e) {
3187
- Te(t, e);
3215
+ He(t, e);
3188
3216
  function t(r, n, i, o) {
3189
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3217
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
3190
3218
  }
3191
3219
  return t;
3192
- }(He)
3193
- ), wn = (
3220
+ }(Se)
3221
+ ), Bn = (
3194
3222
  /** @class */
3195
3223
  function(e) {
3196
- Te(t, e);
3224
+ He(t, e);
3197
3225
  function t(r, n, i) {
3198
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3226
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
3199
3227
  }
3200
3228
  return t;
3201
- }(He)
3202
- ), Sn = (
3229
+ }(Se)
3230
+ ), Pn = (
3203
3231
  /** @class */
3204
3232
  function(e) {
3205
- Te(t, e);
3233
+ He(t, e);
3206
3234
  function t(r, n) {
3207
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3235
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
3208
3236
  }
3209
3237
  return t;
3210
- }(He)
3238
+ }(Se)
3211
3239
  ), H;
3212
3240
  (function(e) {
3213
3241
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3214
3242
  })(H || (H = {}));
3215
- function Bn(e) {
3243
+ function On(e) {
3216
3244
  return e.length < 2 ? e : e.reduce(function(t, r) {
3217
3245
  var n = t[t.length - 1];
3218
3246
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3219
3247
  }, []);
3220
3248
  }
3221
- function An(e) {
3249
+ function Cn(e) {
3222
3250
  return typeof e == "function";
3223
3251
  }
3224
- function pe(e, t, r, n, i, o, a) {
3225
- if (e.length === 1 && Ke(e[0]))
3252
+ function be(e, t, r, n, i, o, s) {
3253
+ if (e.length === 1 && et(e[0]))
3226
3254
  return [
3227
3255
  {
3228
3256
  type: H.literal,
3229
3257
  value: e[0].value
3230
3258
  }
3231
3259
  ];
3232
- for (var s = [], h = 0, u = e; h < u.length; h++) {
3260
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3233
3261
  var l = u[h];
3234
- if (Ke(l)) {
3235
- s.push({
3262
+ if (et(l)) {
3263
+ a.push({
3236
3264
  type: H.literal,
3237
3265
  value: l.value
3238
3266
  });
3239
3267
  continue;
3240
3268
  }
3241
- if (Jr(l)) {
3242
- typeof o == "number" && s.push({
3269
+ if (Qr(l)) {
3270
+ typeof o == "number" && a.push({
3243
3271
  type: H.literal,
3244
3272
  value: r.getNumberFormat(t).format(o)
3245
3273
  });
3246
3274
  continue;
3247
3275
  }
3248
- var f = l.value;
3249
- if (!(i && f in i))
3250
- throw new Sn(f, a);
3251
- var m = i[f];
3252
- if (qr(l)) {
3253
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3254
- type: typeof m == "string" ? H.literal : H.object,
3255
- value: m
3276
+ var c = l.value;
3277
+ if (!(i && c in i))
3278
+ throw new Pn(c, s);
3279
+ var f = i[c];
3280
+ if (Yr(l)) {
3281
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3282
+ type: typeof f == "string" ? H.literal : H.object,
3283
+ value: f
3256
3284
  });
3257
3285
  continue;
3258
3286
  }
3259
- if (Pt(l)) {
3260
- var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3261
- s.push({
3287
+ if (Ot(l)) {
3288
+ var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
3289
+ a.push({
3262
3290
  type: H.literal,
3263
- value: r.getDateTimeFormat(t, d).format(m)
3291
+ value: r.getDateTimeFormat(t, p).format(f)
3264
3292
  });
3265
3293
  continue;
3266
3294
  }
3267
- if (Ot(l)) {
3268
- var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3269
- s.push({
3295
+ if (Ct(l)) {
3296
+ var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
3297
+ a.push({
3270
3298
  type: H.literal,
3271
- value: r.getDateTimeFormat(t, d).format(m)
3299
+ value: r.getDateTimeFormat(t, p).format(f)
3272
3300
  });
3273
3301
  continue;
3274
3302
  }
3275
- if (At(l)) {
3276
- var d = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
3277
- d && d.scale && (m = m * (d.scale || 1)), s.push({
3303
+ if (Pt(l)) {
3304
+ var p = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
3305
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3278
3306
  type: H.literal,
3279
- value: r.getNumberFormat(t, d).format(m)
3307
+ value: r.getNumberFormat(t, p).format(f)
3280
3308
  });
3281
3309
  continue;
3282
3310
  }
3283
- if (Lt(l)) {
3284
- var p = l.children, _ = l.value, T = i[_];
3285
- if (!An(T))
3286
- throw new wn(_, "function", a);
3287
- var x = pe(p, t, r, n, i, o), c = T(x.map(function(L) {
3288
- return L.value;
3311
+ if (Nt(l)) {
3312
+ var b = l.children, E = l.value, T = i[E];
3313
+ if (!Cn(T))
3314
+ throw new Bn(E, "function", s);
3315
+ var x = be(b, t, r, n, i, o), d = T(x.map(function(w) {
3316
+ return w.value;
3289
3317
  }));
3290
- Array.isArray(c) || (c = [c]), s.push.apply(s, c.map(function(L) {
3318
+ Array.isArray(d) || (d = [d]), a.push.apply(a, d.map(function(w) {
3291
3319
  return {
3292
- type: typeof L == "string" ? H.literal : H.object,
3293
- value: L
3320
+ type: typeof w == "string" ? H.literal : H.object,
3321
+ value: w
3294
3322
  };
3295
3323
  }));
3296
3324
  }
3297
- if (Ct(l)) {
3298
- var g = l.options[m] || l.options.other;
3299
- if (!g)
3300
- throw new at(l.value, m, Object.keys(l.options), a);
3301
- s.push.apply(s, pe(g.value, t, r, n, i));
3325
+ if (Lt(l)) {
3326
+ var m = l.options[f] || l.options.other;
3327
+ if (!m)
3328
+ throw new at(l.value, f, Object.keys(l.options), s);
3329
+ a.push.apply(a, be(m.value, t, r, n, i));
3302
3330
  continue;
3303
3331
  }
3304
3332
  if (It(l)) {
3305
- var g = l.options["=".concat(m)];
3306
- if (!g) {
3333
+ var m = l.options["=".concat(f)];
3334
+ if (!m) {
3307
3335
  if (!Intl.PluralRules)
3308
- throw new He(`Intl.PluralRules is not available in this environment.
3336
+ throw new Se(`Intl.PluralRules is not available in this environment.
3309
3337
  Try polyfilling it using "@formatjs/intl-pluralrules"
3310
- `, z.MISSING_INTL_API, a);
3311
- var A = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
3312
- g = l.options[A] || l.options.other;
3338
+ `, j.MISSING_INTL_API, s);
3339
+ var S = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3340
+ m = l.options[S] || l.options.other;
3313
3341
  }
3314
- if (!g)
3315
- throw new at(l.value, m, Object.keys(l.options), a);
3316
- s.push.apply(s, pe(g.value, t, r, n, i, m - (l.offset || 0)));
3342
+ if (!m)
3343
+ throw new at(l.value, f, Object.keys(l.options), s);
3344
+ a.push.apply(a, be(m.value, t, r, n, i, f - (l.offset || 0)));
3317
3345
  continue;
3318
3346
  }
3319
3347
  }
3320
- return Bn(s);
3348
+ return On(a);
3321
3349
  }
3322
- function Pn(e, t) {
3323
- return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3324
- return r[n] = w(w({}, e[n]), t[n] || {}), r;
3350
+ function Ln(e, t) {
3351
+ return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3352
+ return r[n] = A(A({}, e[n]), t[n] || {}), r;
3325
3353
  }, {})) : e;
3326
3354
  }
3327
- function On(e, t) {
3355
+ function In(e, t) {
3328
3356
  return t ? Object.keys(e).reduce(function(r, n) {
3329
- return r[n] = Pn(e[n], t[n]), r;
3330
- }, w({}, e)) : e;
3357
+ return r[n] = Ln(e[n], t[n]), r;
3358
+ }, A({}, e)) : e;
3331
3359
  }
3332
3360
  function Ie(e) {
3333
3361
  return {
@@ -3343,39 +3371,39 @@ function Ie(e) {
3343
3371
  }
3344
3372
  };
3345
3373
  }
3346
- function Cn(e) {
3374
+ function Nn(e) {
3347
3375
  return e === void 0 && (e = {
3348
3376
  number: {},
3349
3377
  dateTime: {},
3350
3378
  pluralRules: {}
3351
3379
  }), {
3352
- getNumberFormat: Pe(function() {
3380
+ getNumberFormat: Oe(function() {
3353
3381
  for (var t, r = [], n = 0; n < arguments.length; n++)
3354
3382
  r[n] = arguments[n];
3355
- return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3383
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3356
3384
  }, {
3357
3385
  cache: Ie(e.number),
3358
- strategy: Oe.variadic
3386
+ strategy: Ce.variadic
3359
3387
  }),
3360
- getDateTimeFormat: Pe(function() {
3388
+ getDateTimeFormat: Oe(function() {
3361
3389
  for (var t, r = [], n = 0; n < arguments.length; n++)
3362
3390
  r[n] = arguments[n];
3363
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3391
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3364
3392
  }, {
3365
3393
  cache: Ie(e.dateTime),
3366
- strategy: Oe.variadic
3394
+ strategy: Ce.variadic
3367
3395
  }),
3368
- getPluralRules: Pe(function() {
3396
+ getPluralRules: Oe(function() {
3369
3397
  for (var t, r = [], n = 0; n < arguments.length; n++)
3370
3398
  r[n] = arguments[n];
3371
- return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3399
+ return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3372
3400
  }, {
3373
3401
  cache: Ie(e.pluralRules),
3374
- strategy: Oe.variadic
3402
+ strategy: Ce.variadic
3375
3403
  })
3376
3404
  };
3377
3405
  }
3378
- var Ft = (
3406
+ var zt = (
3379
3407
  /** @class */
3380
3408
  function() {
3381
3409
  function e(t, r, n, i) {
@@ -3389,12 +3417,12 @@ var Ft = (
3389
3417
  var u = o.formatToParts(h);
3390
3418
  if (u.length === 1)
3391
3419
  return u[0].value;
3392
- var l = u.reduce(function(f, m) {
3393
- return !f.length || m.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
3420
+ var l = u.reduce(function(c, f) {
3421
+ return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3394
3422
  }, []);
3395
3423
  return l.length <= 1 ? l[0] || "" : l;
3396
3424
  }, this.formatToParts = function(h) {
3397
- return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3425
+ return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3398
3426
  }, this.resolvedOptions = function() {
3399
3427
  var h;
3400
3428
  return {
@@ -3405,15 +3433,15 @@ var Ft = (
3405
3433
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3406
3434
  if (this.message = t, !e.__parse)
3407
3435
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3408
- var a = i || {};
3409
- a.formatters;
3410
- var s = kr(a, ["formatters"]);
3411
- this.ast = e.__parse(t, w(w({}, s), { locale: this.resolvedLocale }));
3436
+ var s = i || {};
3437
+ s.formatters;
3438
+ var a = zr(s, ["formatters"]);
3439
+ this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3412
3440
  } else
3413
3441
  this.ast = t;
3414
3442
  if (!Array.isArray(this.ast))
3415
3443
  throw new TypeError("A message must be provided as a String or AST.");
3416
- this.formats = On(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
3444
+ this.formats = In(e.formats, n), this.formatters = i && i.formatters || Nn(this.formatterCache);
3417
3445
  }
3418
3446
  return Object.defineProperty(e, "defaultLocale", {
3419
3447
  get: function() {
@@ -3426,7 +3454,7 @@ var Ft = (
3426
3454
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3427
3455
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3428
3456
  }
3429
- }, e.__parse = Hn, e.formats = {
3457
+ }, e.__parse = An, e.formats = {
3430
3458
  number: {
3431
3459
  integer: {
3432
3460
  maximumFractionDigits: 0
@@ -3487,7 +3515,7 @@ var Ft = (
3487
3515
  }, e;
3488
3516
  }()
3489
3517
  );
3490
- function In(e, t) {
3518
+ function Mn(e, t) {
3491
3519
  if (t == null)
3492
3520
  return;
3493
3521
  if (t in e)
@@ -3508,101 +3536,101 @@ function In(e, t) {
3508
3536
  n = void 0;
3509
3537
  return n;
3510
3538
  }
3511
- const O = {}, Ln = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), zt = (e, t) => {
3539
+ const C = {}, Rn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), jt = (e, t) => {
3512
3540
  if (t == null)
3513
3541
  return;
3514
- if (t in O && e in O[t])
3515
- return O[t][e];
3516
- const r = ne(t);
3542
+ if (t in C && e in C[t])
3543
+ return C[t][e];
3544
+ const r = ie(t);
3517
3545
  for (let n = 0; n < r.length; n++) {
3518
- const i = r[n], o = Nn(i, e);
3546
+ const i = r[n], o = Dn(i, e);
3519
3547
  if (o)
3520
- return Ln(e, t, o);
3548
+ return Rn(e, t, o);
3521
3549
  }
3522
3550
  };
3523
3551
  let Xe;
3524
- const re = xe({});
3525
- function Mn(e) {
3552
+ const ne = Te({});
3553
+ function $n(e) {
3526
3554
  return Xe[e] || null;
3527
3555
  }
3528
- function jt(e) {
3556
+ function Vt(e) {
3529
3557
  return e in Xe;
3530
3558
  }
3531
- function Nn(e, t) {
3532
- if (!jt(e))
3559
+ function Dn(e, t) {
3560
+ if (!Vt(e))
3533
3561
  return null;
3534
- const r = Mn(e);
3535
- return In(r, t);
3562
+ const r = $n(e);
3563
+ return Mn(r, t);
3536
3564
  }
3537
- function Rn(e) {
3565
+ function Un(e) {
3538
3566
  if (e == null)
3539
3567
  return;
3540
- const t = ne(e);
3568
+ const t = ie(e);
3541
3569
  for (let r = 0; r < t.length; r++) {
3542
3570
  const n = t[r];
3543
- if (jt(n))
3571
+ if (Vt(n))
3544
3572
  return n;
3545
3573
  }
3546
3574
  }
3547
- function Vt(e, ...t) {
3548
- delete O[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3575
+ function Wt(e, ...t) {
3576
+ delete C[e], ne.update((r) => (r[e] = Fr.all([r[e] || {}, ...t]), r));
3549
3577
  }
3550
3578
  X(
3551
- [re],
3579
+ [ne],
3552
3580
  ([e]) => Object.keys(e)
3553
3581
  );
3554
- re.subscribe((e) => Xe = e);
3555
- const be = {};
3556
- function $n(e, t) {
3557
- be[e].delete(t), be[e].size === 0 && delete be[e];
3582
+ ne.subscribe((e) => Xe = e);
3583
+ const ge = {};
3584
+ function kn(e, t) {
3585
+ ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3558
3586
  }
3559
3587
  function Xt(e) {
3560
- return be[e];
3588
+ return ge[e];
3561
3589
  }
3562
- function Dn(e) {
3563
- return ne(e).map((t) => {
3590
+ function Gn(e) {
3591
+ return ie(e).map((t) => {
3564
3592
  const r = Xt(t);
3565
3593
  return [t, r ? [...r] : []];
3566
3594
  }).filter(([, t]) => t.length > 0);
3567
3595
  }
3568
- function ye(e) {
3569
- return e == null ? !1 : ne(e).some(
3596
+ function ve(e) {
3597
+ return e == null ? !1 : ie(e).some(
3570
3598
  (t) => {
3571
3599
  var r;
3572
3600
  return (r = Xt(t)) == null ? void 0 : r.size;
3573
3601
  }
3574
3602
  );
3575
3603
  }
3576
- function Un(e, t) {
3604
+ function Fn(e, t) {
3577
3605
  return Promise.all(
3578
- t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3579
- ).then((n) => Vt(e, ...n));
3580
- }
3581
- const q = {};
3582
- function Wt(e) {
3583
- if (!ye(e))
3584
- return e in q ? q[e] : Promise.resolve();
3585
- const t = Dn(e);
3586
- return q[e] = Promise.all(
3606
+ t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
3607
+ ).then((n) => Wt(e, ...n));
3608
+ }
3609
+ const J = {};
3610
+ function qt(e) {
3611
+ if (!ve(e))
3612
+ return e in J ? J[e] : Promise.resolve();
3613
+ const t = Gn(e);
3614
+ return J[e] = Promise.all(
3587
3615
  t.map(
3588
- ([r, n]) => Un(r, n)
3616
+ ([r, n]) => Fn(r, n)
3589
3617
  )
3590
3618
  ).then(() => {
3591
- if (ye(e))
3592
- return Wt(e);
3593
- delete q[e];
3594
- }), q[e];
3619
+ if (ve(e))
3620
+ return qt(e);
3621
+ delete J[e];
3622
+ }), J[e];
3595
3623
  }
3596
- var st = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3624
+ var ut = Object.getOwnPropertySymbols, zn = Object.prototype.hasOwnProperty, jn = Object.prototype.propertyIsEnumerable, Vn = (e, t) => {
3597
3625
  var r = {};
3598
3626
  for (var n in e)
3599
- kn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3600
- if (e != null && st)
3601
- for (var n of st(e))
3602
- t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3627
+ zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3628
+ if (e != null && ut)
3629
+ for (var n of ut(e))
3630
+ t.indexOf(n) < 0 && jn.call(e, n) && (r[n] = e[n]);
3603
3631
  return r;
3604
3632
  };
3605
- const zn = {
3633
+ const Wn = {
3606
3634
  number: {
3607
3635
  scientific: { notation: "scientific" },
3608
3636
  engineering: { notation: "engineering" },
@@ -3632,81 +3660,81 @@ const zn = {
3632
3660
  }
3633
3661
  }
3634
3662
  };
3635
- function jn({ locale: e, id: t }) {
3663
+ function Xn({ locale: e, id: t }) {
3636
3664
  console.warn(
3637
- `[svelte-i18n] The message "${t}" was not found in "${ne(
3665
+ `[svelte-i18n] The message "${t}" was not found in "${ie(
3638
3666
  e
3639
- ).join('", "')}".${ye(I()) ? `
3667
+ ).join('", "')}".${ve(I()) ? `
3640
3668
 
3641
3669
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3642
3670
  );
3643
3671
  }
3644
- const Vn = {
3672
+ const qn = {
3645
3673
  fallbackLocale: null,
3646
3674
  loadingDelay: 200,
3647
- formats: zn,
3675
+ formats: Wn,
3648
3676
  warnOnMissingMessages: !0,
3649
3677
  handleMissingMessage: void 0,
3650
3678
  ignoreTag: !0
3651
- }, Z = Vn;
3652
- function j() {
3653
- return Z;
3679
+ }, Y = qn;
3680
+ function V() {
3681
+ return Y;
3654
3682
  }
3655
- function Xn(e) {
3656
- const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
3683
+ function Jn(e) {
3684
+ const t = e, { formats: r } = t, n = Vn(t, ["formats"]);
3657
3685
  let i = e.fallbackLocale;
3658
3686
  if (e.initialLocale)
3659
3687
  try {
3660
- Ft.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3688
+ zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3661
3689
  } catch {
3662
3690
  console.warn(
3663
3691
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3664
3692
  );
3665
3693
  }
3666
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
3694
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Xn : console.warn(
3667
3695
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3668
- )), Object.assign(Z, n, { initialLocale: i }), r && ("number" in r && Object.assign(Z.formats.number, r.number), "date" in r && Object.assign(Z.formats.date, r.date), "time" in r && Object.assign(Z.formats.time, r.time)), N.set(i);
3696
+ )), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), M.set(i);
3669
3697
  }
3670
- const Le = xe(!1);
3671
- var Wn = Object.defineProperty, qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3698
+ const Ne = Te(!1);
3699
+ var Zn = Object.defineProperty, Yn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ti = (e, t) => {
3672
3700
  for (var r in t || (t = {}))
3673
- Zn.call(t, r) && lt(e, r, t[r]);
3674
- if (ut)
3675
- for (var r of ut(t))
3676
- Qn.call(t, r) && lt(e, r, t[r]);
3701
+ Kn.call(t, r) && ht(e, r, t[r]);
3702
+ if (lt)
3703
+ for (var r of lt(t))
3704
+ ei.call(t, r) && ht(e, r, t[r]);
3677
3705
  return e;
3678
- }, Kn = (e, t) => qn(e, Jn(t));
3679
- let je;
3680
- const ve = xe(null);
3681
- function ht(e) {
3706
+ }, ri = (e, t) => Yn(e, Qn(t));
3707
+ let Ve;
3708
+ const _e = Te(null);
3709
+ function ct(e) {
3682
3710
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3683
3711
  }
3684
- function ne(e, t = j().fallbackLocale) {
3685
- const r = ht(e);
3686
- return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3712
+ function ie(e, t = V().fallbackLocale) {
3713
+ const r = ct(e);
3714
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3687
3715
  }
3688
3716
  function I() {
3689
- return je ?? void 0;
3717
+ return Ve ?? void 0;
3690
3718
  }
3691
- ve.subscribe((e) => {
3692
- je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3719
+ _e.subscribe((e) => {
3720
+ Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3693
3721
  });
3694
- const ei = (e) => {
3695
- if (e && Rn(e) && ye(e)) {
3696
- const { loadingDelay: t } = j();
3722
+ const ni = (e) => {
3723
+ if (e && Un(e) && ve(e)) {
3724
+ const { loadingDelay: t } = V();
3697
3725
  let r;
3698
3726
  return typeof window < "u" && I() != null && t ? r = window.setTimeout(
3699
- () => Le.set(!0),
3727
+ () => Ne.set(!0),
3700
3728
  t
3701
- ) : Le.set(!0), Wt(e).then(() => {
3702
- ve.set(e);
3729
+ ) : Ne.set(!0), qt(e).then(() => {
3730
+ _e.set(e);
3703
3731
  }).finally(() => {
3704
- clearTimeout(r), Le.set(!1);
3732
+ clearTimeout(r), Ne.set(!1);
3705
3733
  });
3706
3734
  }
3707
- return ve.set(e);
3708
- }, N = Kn(Yn({}, ve), {
3709
- set: ei
3735
+ return _e.set(e);
3736
+ }, M = ri(ti({}, _e), {
3737
+ set: ni
3710
3738
  }), we = (e) => {
3711
3739
  const t = /* @__PURE__ */ Object.create(null);
3712
3740
  return (n) => {
@@ -3714,122 +3742,122 @@ const ei = (e) => {
3714
3742
  return i in t ? t[i] : t[i] = e(n);
3715
3743
  };
3716
3744
  };
3717
- var ti = Object.defineProperty, Ee = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3745
+ var ii = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3718
3746
  for (var r in t || (t = {}))
3719
- qt.call(t, r) && ct(e, r, t[r]);
3747
+ Jt.call(t, r) && ft(e, r, t[r]);
3720
3748
  if (Ee)
3721
3749
  for (var r of Ee(t))
3722
- Jt.call(t, r) && ct(e, r, t[r]);
3750
+ Zt.call(t, r) && ft(e, r, t[r]);
3723
3751
  return e;
3724
- }, W = (e, t) => {
3752
+ }, q = (e, t) => {
3725
3753
  var r = {};
3726
3754
  for (var n in e)
3727
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3755
+ Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3728
3756
  if (e != null && Ee)
3729
3757
  for (var n of Ee(e))
3730
- t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3758
+ t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
3731
3759
  return r;
3732
3760
  };
3733
- const ee = (e, t) => {
3734
- const { formats: r } = j();
3761
+ const te = (e, t) => {
3762
+ const { formats: r } = V();
3735
3763
  if (e in r && t in r[e])
3736
3764
  return r[e][t];
3737
3765
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3738
- }, ri = we(
3766
+ }, oi = we(
3739
3767
  (e) => {
3740
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3768
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3741
3769
  if (r == null)
3742
3770
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3743
- return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3771
+ return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3744
3772
  }
3745
- ), ni = we(
3773
+ ), si = we(
3746
3774
  (e) => {
3747
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3775
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3748
3776
  if (r == null)
3749
3777
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3750
- return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3778
+ return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3751
3779
  }
3752
- ), ii = we(
3780
+ ), ai = we(
3753
3781
  (e) => {
3754
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3782
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3755
3783
  if (r == null)
3756
3784
  throw new Error(
3757
3785
  '[svelte-i18n] A "locale" must be set to format time values'
3758
3786
  );
3759
- return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3787
+ return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3760
3788
  }
3761
- ), oi = (e = {}) => {
3789
+ ), ui = (e = {}) => {
3762
3790
  var t = e, {
3763
3791
  locale: r = I()
3764
- } = t, n = W(t, [
3792
+ } = t, n = q(t, [
3765
3793
  "locale"
3766
3794
  ]);
3767
- return ri(We({ locale: r }, n));
3768
- }, ai = (e = {}) => {
3795
+ return oi(qe({ locale: r }, n));
3796
+ }, li = (e = {}) => {
3769
3797
  var t = e, {
3770
3798
  locale: r = I()
3771
- } = t, n = W(t, [
3799
+ } = t, n = q(t, [
3772
3800
  "locale"
3773
3801
  ]);
3774
- return ni(We({ locale: r }, n));
3775
- }, si = (e = {}) => {
3802
+ return si(qe({ locale: r }, n));
3803
+ }, hi = (e = {}) => {
3776
3804
  var t = e, {
3777
3805
  locale: r = I()
3778
- } = t, n = W(t, [
3806
+ } = t, n = q(t, [
3779
3807
  "locale"
3780
3808
  ]);
3781
- return ii(We({ locale: r }, n));
3782
- }, ui = we(
3809
+ return ai(qe({ locale: r }, n));
3810
+ }, ci = we(
3783
3811
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3784
- (e, t = I()) => new Ft(e, t, j().formats, {
3785
- ignoreTag: j().ignoreTag
3812
+ (e, t = I()) => new zt(e, t, V().formats, {
3813
+ ignoreTag: V().ignoreTag
3786
3814
  })
3787
- ), li = (e, t = {}) => {
3815
+ ), fi = (e, t = {}) => {
3788
3816
  var r, n, i, o;
3789
- let a = t;
3790
- typeof e == "object" && (a = e, e = a.id);
3817
+ let s = t;
3818
+ typeof e == "object" && (s = e, e = s.id);
3791
3819
  const {
3792
- values: s,
3820
+ values: a,
3793
3821
  locale: h = I(),
3794
3822
  default: u
3795
- } = a;
3823
+ } = s;
3796
3824
  if (h == null)
3797
3825
  throw new Error(
3798
3826
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3799
3827
  );
3800
- let l = zt(e, h);
3828
+ let l = jt(e, h);
3801
3829
  if (!l)
3802
- l = (o = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3830
+ l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3803
3831
  else if (typeof l != "string")
3804
3832
  return console.warn(
3805
3833
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3806
3834
  ), l;
3807
- if (!s)
3835
+ if (!a)
3808
3836
  return l;
3809
- let f = l;
3837
+ let c = l;
3810
3838
  try {
3811
- f = ui(l, h).format(s);
3812
- } catch (m) {
3813
- m instanceof Error && console.warn(
3839
+ c = ci(l, h).format(a);
3840
+ } catch (f) {
3841
+ f instanceof Error && console.warn(
3814
3842
  `[svelte-i18n] Message "${e}" has syntax error:`,
3815
- m.message
3843
+ f.message
3816
3844
  );
3817
3845
  }
3818
- return f;
3819
- }, hi = (e, t) => si(t).format(e), ci = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t = I()) => zt(e, t), di = X([N, re], () => li);
3820
- X([N], () => hi);
3821
- X([N], () => ci);
3822
- X([N], () => fi);
3823
- X([N, re], () => mi);
3824
- function ft(e, t) {
3825
- Vt(e, t);
3826
- }
3827
- function pi(e) {
3828
- Xn({
3846
+ return c;
3847
+ }, mi = (e, t) => hi(t).format(e), di = (e, t) => li(t).format(e), pi = (e, t) => ui(t).format(e), bi = (e, t = I()) => jt(e, t), gi = X([M, ne], () => fi);
3848
+ X([M], () => mi);
3849
+ X([M], () => di);
3850
+ X([M], () => pi);
3851
+ X([M, ne], () => bi);
3852
+ function mt(e, t) {
3853
+ Wt(e, t);
3854
+ }
3855
+ function yi(e) {
3856
+ Jn({
3829
3857
  fallbackLocale: "en"
3830
- }), N.set(e);
3858
+ }), M.set(e);
3831
3859
  }
3832
- const mt = {
3860
+ const dt = {
3833
3861
  en: {
3834
3862
  errorGeneralTitle: "Error Occurred",
3835
3863
  errorGeneralText: "Something went wrong",
@@ -3857,7 +3885,9 @@ const mt = {
3857
3885
  DeclinedByMerchant: "We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance.",
3858
3886
  FraudSuspectedError: "We apologise, but we are unable to process your transaction at this time, please try later or contact Customer Support for further assistance. Error Code 22020",
3859
3887
  OnlyOnePendingTransactionPerUserlsAllowed: "Only one pending transaction per user is allowed",
3860
- TransactionFrequencyLimitReached: "Transaction frequency limit reached"
3888
+ TransactionFrequencyLimitReached: "Transaction frequency limit reached",
3889
+ NotMappedVendorError: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider",
3890
+ LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider"
3861
3891
  },
3862
3892
  tr: {
3863
3893
  errorGeneralTitle: "Hata oluştu",
@@ -3886,7 +3916,9 @@ const mt = {
3886
3916
  DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin.",
3887
3917
  FraudSuspectedError: "Üzgünüz, ancak işleminizi şu anda gerçekleştiremiyoruz. Lütfen daha sonra tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 22020.",
3888
3918
  OnlyOnePendingTransactionPerUserlsAllowed: "Devam eden bir talebiniz olduğu için șu anda yeni bir işlem başlatılamaz.",
3889
- TransactionFrequencyLimitReached: "İşlem sıklığı limiti aşıldı"
3919
+ TransactionFrequencyLimitReached: "İşlem sıklığı limiti aşıldı",
3920
+ NotMappedVendorError: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin",
3921
+ LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin"
3890
3922
  },
3891
3923
  fr: {
3892
3924
  errorGeneralTitle: "Une erreur s’est produite",
@@ -3915,55 +3947,57 @@ const mt = {
3915
3947
  DeclinedByMerchant: "Nous sommes désolés, mais la transaction a été clôturée par le marchand. Veuillez contacter le service client pour obtenir de l’aide.",
3916
3948
  FraudSuspectedError: "Nous sommes désolés, mais nous ne pouvons pas traiter votre transaction pour le moment. Veuillez réessayer plus tard ou contacter le service client pour obtenir de l’aide. Code d’erreur 22020",
3917
3949
  OnlyOnePendingTransactionPerUserlsAllowed: "Une seule transaction en attente par utilisateur est autorisée",
3918
- TransactionFrequencyLimitReached: "Limite de fréquence des transactions atteinte"
3950
+ TransactionFrequencyLimitReached: "Limite de fréquence des transactions atteinte",
3951
+ NotMappedVendorError: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication",
3952
+ LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication"
3919
3953
  }
3920
3954
  };
3921
- function bi(e) {
3922
- Kt(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3955
+ function vi(e) {
3956
+ er(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3923
3957
  }
3924
- const gi = (e) => ({}), dt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), vi = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3925
- function yt(e) {
3958
+ const _i = (e) => ({}), pt = (e) => ({}), Ei = (e) => ({}), bt = (e) => ({}), xi = (e) => ({}), gt = (e) => ({}), Ti = (e) => ({}), yt = (e) => ({ class: "CashierErrorIcon" });
3959
+ function vt(e) {
3926
3960
  let t, r;
3927
3961
  return {
3928
3962
  c() {
3929
- t = C("ui-image"), Ze(t.src, r = `${/*assetsurl*/
3930
- e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
3963
+ t = L("ui-image"), Ye(t.src, r = `${/*assetsurl*/
3964
+ e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
3931
3965
  },
3932
3966
  m(n, i) {
3933
- V(n, t, i);
3967
+ W(n, t, i);
3934
3968
  },
3935
3969
  p(n, i) {
3936
3970
  i & /*assetsurl*/
3937
- 1 && !Ze(t.src, r = `${/*assetsurl*/
3938
- n[0]}/error-general-icon.png`) && he(t, "src", r);
3971
+ 1 && !Ye(t.src, r = `${/*assetsurl*/
3972
+ n[0]}/error-general-icon.png`) && ce(t, "src", r);
3939
3973
  },
3940
3974
  d(n) {
3941
- n && M(t);
3975
+ n && N(t);
3942
3976
  }
3943
3977
  };
3944
3978
  }
3945
- function _i(e) {
3979
+ function Hi(e) {
3946
3980
  let t, r = (
3947
3981
  /*assetsurl*/
3948
- e[0] && yt(e)
3982
+ e[0] && vt(e)
3949
3983
  );
3950
3984
  return {
3951
3985
  c() {
3952
- r && r.c(), t = rr();
3986
+ r && r.c(), t = nr();
3953
3987
  },
3954
3988
  m(n, i) {
3955
- r && r.m(n, i), V(n, t, i);
3989
+ r && r.m(n, i), W(n, t, i);
3956
3990
  },
3957
3991
  p(n, i) {
3958
3992
  /*assetsurl*/
3959
- n[0] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3993
+ n[0] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3960
3994
  },
3961
3995
  d(n) {
3962
- n && M(t), r && r.d(n);
3996
+ n && N(t), r && r.d(n);
3963
3997
  }
3964
3998
  };
3965
3999
  }
3966
- function xi(e) {
4000
+ function Si(e) {
3967
4001
  let t, r = (
3968
4002
  /*$_*/
3969
4003
  e[3](`${/*errorcode*/
@@ -3971,244 +4005,244 @@ function xi(e) {
3971
4005
  ), n;
3972
4006
  return {
3973
4007
  c() {
3974
- t = C("span"), n = _e(r), k(t, "class", "CashierErrorText");
4008
+ t = L("span"), n = xe(r), G(t, "class", "CashierErrorText");
3975
4009
  },
3976
4010
  m(i, o) {
3977
- V(i, t, o), P(t, n);
4011
+ W(i, t, o), O(t, n);
3978
4012
  },
3979
4013
  p(i, o) {
3980
4014
  o & /*$_, errorcode*/
3981
4015
  10 && r !== (r = /*$_*/
3982
4016
  i[3](`${/*errorcode*/
3983
- i[1] || "errorGeneralText"}`) + "") && Tt(n, r);
4017
+ i[1] || "errorGeneralText"}`) + "") && Ht(n, r);
3984
4018
  },
3985
4019
  d(i) {
3986
- i && M(t);
4020
+ i && N(t);
3987
4021
  }
3988
4022
  };
3989
4023
  }
3990
- function Ti(e) {
4024
+ function wi(e) {
3991
4025
  let t, r, n = (
3992
4026
  /*$_*/
3993
4027
  e[3]("errorGeneralButton") + ""
3994
- ), i, o, a;
4028
+ ), i, o, s;
3995
4029
  return {
3996
4030
  c() {
3997
- t = C("button"), r = C("span"), i = _e(n), k(t, "class", "CashierErrorButton");
4031
+ t = L("button"), r = L("span"), i = xe(n), G(t, "class", "CashierErrorButton");
3998
4032
  },
3999
- m(s, h) {
4000
- V(s, t, h), P(t, r), P(r, i), o || (a = nr(
4033
+ m(a, h) {
4034
+ W(a, t, h), O(t, r), O(r, i), o || (s = ir(
4001
4035
  t,
4002
4036
  "click",
4003
4037
  /*close*/
4004
4038
  e[4]
4005
4039
  ), o = !0);
4006
4040
  },
4007
- p(s, h) {
4041
+ p(a, h) {
4008
4042
  h & /*$_*/
4009
4043
  8 && n !== (n = /*$_*/
4010
- s[3]("errorGeneralButton") + "") && Tt(i, n);
4044
+ a[3]("errorGeneralButton") + "") && Ht(i, n);
4011
4045
  },
4012
- d(s) {
4013
- s && M(t), o = !1, a();
4046
+ d(a) {
4047
+ a && N(t), o = !1, s();
4014
4048
  }
4015
4049
  };
4016
4050
  }
4017
- function Hi(e) {
4018
- let t, r, n, i, o, a;
4019
- const s = (
4051
+ function Ai(e) {
4052
+ let t, r, n, i, o, s;
4053
+ const a = (
4020
4054
  /*#slots*/
4021
4055
  e[11].icon
4022
4056
  ), h = ae(
4023
- s,
4057
+ a,
4024
4058
  e,
4025
4059
  /*$$scope*/
4026
4060
  e[10],
4027
- gt
4028
- ), u = h || _i(e), l = (
4061
+ yt
4062
+ ), u = h || Hi(e), l = (
4029
4063
  /*#slots*/
4030
4064
  e[11].title
4031
- ), f = ae(
4065
+ ), c = ae(
4032
4066
  l,
4033
4067
  e,
4034
4068
  /*$$scope*/
4035
4069
  e[10],
4036
- bt
4037
- ), m = (
4070
+ gt
4071
+ ), f = (
4038
4072
  /*#slots*/
4039
4073
  e[11].text
4040
- ), d = ae(
4041
- m,
4074
+ ), p = ae(
4075
+ f,
4042
4076
  e,
4043
4077
  /*$$scope*/
4044
4078
  e[10],
4045
- pt
4046
- ), p = d || xi(e), _ = (
4079
+ bt
4080
+ ), b = p || Si(e), E = (
4047
4081
  /*#slots*/
4048
4082
  e[11].button
4049
4083
  ), T = ae(
4050
- _,
4084
+ E,
4051
4085
  e,
4052
4086
  /*$$scope*/
4053
4087
  e[10],
4054
- dt
4055
- ), x = T || Ti(e);
4088
+ pt
4089
+ ), x = T || wi(e);
4056
4090
  return {
4057
4091
  c() {
4058
- t = C("div"), r = C("div"), u && u.c(), n = Se(), f && f.c(), i = Se(), p && p.c(), o = Se(), x && x.c(), k(r, "class", "CashierErrorContent"), k(t, "class", "CashierError");
4092
+ t = L("div"), r = L("div"), u && u.c(), n = Ae(), c && c.c(), i = Ae(), b && b.c(), o = Ae(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
4059
4093
  },
4060
- m(c, g) {
4061
- V(c, t, g), P(t, r), u && u.m(r, null), P(r, n), f && f.m(r, null), P(r, i), p && p.m(r, null), P(r, o), x && x.m(r, null), e[12](t), a = !0;
4094
+ m(d, m) {
4095
+ W(d, t, m), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), b && b.m(r, null), O(r, o), x && x.m(r, null), e[12](t), s = !0;
4062
4096
  },
4063
- p(c, [g]) {
4064
- h ? h.p && (!a || g & /*$$scope*/
4065
- 1024) && ue(
4097
+ p(d, [m]) {
4098
+ h ? h.p && (!s || m & /*$$scope*/
4099
+ 1024) && le(
4066
4100
  h,
4067
- s,
4068
- c,
4101
+ a,
4102
+ d,
4069
4103
  /*$$scope*/
4070
- c[10],
4071
- a ? se(
4072
- s,
4104
+ d[10],
4105
+ s ? ue(
4106
+ a,
4073
4107
  /*$$scope*/
4074
- c[10],
4075
- g,
4076
- Ei
4077
- ) : le(
4108
+ d[10],
4109
+ m,
4110
+ Ti
4111
+ ) : he(
4078
4112
  /*$$scope*/
4079
- c[10]
4113
+ d[10]
4080
4114
  ),
4081
- gt
4082
- ) : u && u.p && (!a || g & /*assetsurl*/
4083
- 1) && u.p(c, a ? g : -1), f && f.p && (!a || g & /*$$scope*/
4084
- 1024) && ue(
4085
- f,
4086
- l,
4115
+ yt
4116
+ ) : u && u.p && (!s || m & /*assetsurl*/
4117
+ 1) && u.p(d, s ? m : -1), c && c.p && (!s || m & /*$$scope*/
4118
+ 1024) && le(
4087
4119
  c,
4120
+ l,
4121
+ d,
4088
4122
  /*$$scope*/
4089
- c[10],
4090
- a ? se(
4123
+ d[10],
4124
+ s ? ue(
4091
4125
  l,
4092
4126
  /*$$scope*/
4093
- c[10],
4094
- g,
4095
- vi
4096
- ) : le(
4127
+ d[10],
4128
+ m,
4129
+ xi
4130
+ ) : he(
4097
4131
  /*$$scope*/
4098
- c[10]
4132
+ d[10]
4099
4133
  ),
4100
- bt
4101
- ), d ? d.p && (!a || g & /*$$scope*/
4102
- 1024) && ue(
4134
+ gt
4135
+ ), p ? p.p && (!s || m & /*$$scope*/
4136
+ 1024) && le(
4137
+ p,
4138
+ f,
4103
4139
  d,
4104
- m,
4105
- c,
4106
4140
  /*$$scope*/
4107
- c[10],
4108
- a ? se(
4109
- m,
4141
+ d[10],
4142
+ s ? ue(
4143
+ f,
4110
4144
  /*$$scope*/
4111
- c[10],
4112
- g,
4113
- yi
4114
- ) : le(
4145
+ d[10],
4146
+ m,
4147
+ Ei
4148
+ ) : he(
4115
4149
  /*$$scope*/
4116
- c[10]
4150
+ d[10]
4117
4151
  ),
4118
- pt
4119
- ) : p && p.p && (!a || g & /*$_, errorcode*/
4120
- 10) && p.p(c, a ? g : -1), T ? T.p && (!a || g & /*$$scope*/
4121
- 1024) && ue(
4152
+ bt
4153
+ ) : b && b.p && (!s || m & /*$_, errorcode*/
4154
+ 10) && b.p(d, s ? m : -1), T ? T.p && (!s || m & /*$$scope*/
4155
+ 1024) && le(
4122
4156
  T,
4123
- _,
4124
- c,
4157
+ E,
4158
+ d,
4125
4159
  /*$$scope*/
4126
- c[10],
4127
- a ? se(
4128
- _,
4160
+ d[10],
4161
+ s ? ue(
4162
+ E,
4129
4163
  /*$$scope*/
4130
- c[10],
4131
- g,
4132
- gi
4133
- ) : le(
4164
+ d[10],
4165
+ m,
4166
+ _i
4167
+ ) : he(
4134
4168
  /*$$scope*/
4135
- c[10]
4169
+ d[10]
4136
4170
  ),
4137
- dt
4138
- ) : x && x.p && (!a || g & /*$_*/
4139
- 8) && x.p(c, a ? g : -1);
4171
+ pt
4172
+ ) : x && x.p && (!s || m & /*$_*/
4173
+ 8) && x.p(d, s ? m : -1);
4140
4174
  },
4141
- i(c) {
4142
- a || (J(u, c), J(f, c), J(p, c), J(x, c), a = !0);
4175
+ i(d) {
4176
+ s || (Z(u, d), Z(c, d), Z(b, d), Z(x, d), s = !0);
4143
4177
  },
4144
- o(c) {
4145
- ce(u, c), ce(f, c), ce(p, c), ce(x, c), a = !1;
4178
+ o(d) {
4179
+ fe(u, d), fe(c, d), fe(b, d), fe(x, d), s = !1;
4146
4180
  },
4147
- d(c) {
4148
- c && M(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
4181
+ d(d) {
4182
+ d && N(t), u && u.d(d), c && c.d(d), b && b.d(d), x && x.d(d), e[12](null);
4149
4183
  }
4150
4184
  };
4151
4185
  }
4152
- function wi(e, t, r) {
4186
+ function Bi(e, t, r) {
4153
4187
  let n;
4154
- Yt(e, di, (c) => r(3, n = c));
4155
- let { $$slots: i = {}, $$scope: o } = t, { assetsurl: a = "" } = t, { lang: s = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
4156
- const p = () => {
4157
- pi(s);
4158
- }, _ = () => {
4159
- fetch(f).then((g) => g.json()).then((g) => {
4160
- Object.keys(g).forEach((A) => {
4161
- ft(A, g[A]);
4188
+ Kt(e, gi, (m) => r(3, n = m));
4189
+ let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, b;
4190
+ const E = () => {
4191
+ yi(a);
4192
+ }, T = () => {
4193
+ fetch(c).then((S) => S.json()).then((S) => {
4194
+ Object.keys(S).forEach((w) => {
4195
+ mt(w, S[w]);
4162
4196
  });
4163
- }).catch((g) => {
4164
- console.error(g);
4197
+ }).catch((S) => {
4198
+ console.error(S);
4165
4199
  });
4166
4200
  };
4167
- Object.keys(mt).forEach((c) => {
4168
- ft(c, mt[c]);
4201
+ Object.keys(dt).forEach((m) => {
4202
+ mt(m, dt[m]);
4169
4203
  });
4170
- const T = () => {
4204
+ const x = () => {
4171
4205
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4172
4206
  };
4173
- sr(() => () => {
4207
+ ur(() => () => {
4174
4208
  });
4175
- function x(c) {
4176
- Me[c ? "unshift" : "push"](() => {
4177
- d = c, r(2, d);
4209
+ function d(m) {
4210
+ Me[m ? "unshift" : "push"](() => {
4211
+ p = m, r(2, p);
4178
4212
  });
4179
4213
  }
4180
- return e.$$set = (c) => {
4181
- "assetsurl" in c && r(0, a = c.assetsurl), "lang" in c && r(5, s = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, o = c.$$scope);
4214
+ return e.$$set = (m) => {
4215
+ "assetsurl" in m && r(0, s = m.assetsurl), "lang" in m && r(5, a = m.lang), "errorcode" in m && r(1, h = m.errorcode), "clientstyling" in m && r(6, u = m.clientstyling), "clientstylingurl" in m && r(7, l = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "mbsource" in m && r(9, f = m.mbsource), "$$scope" in m && r(10, o = m.$$scope);
4182
4216
  }, e.$$.update = () => {
4183
4217
  e.$$.dirty & /*lang*/
4184
- 32 && s && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4185
- 68 && u && d && Er(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4186
- 132 && l && d && _r(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4187
- 516 && m && d && xr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
4188
- 256 && f && _();
4218
+ 32 && a && E(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4219
+ 68 && u && p && Er(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4220
+ 132 && l && p && xr(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4221
+ 516 && f && p && Tr(p, `${f}.Style`, b), e.$$.dirty & /*translationurl*/
4222
+ 256 && c && T();
4189
4223
  }, [
4190
- a,
4224
+ s,
4191
4225
  h,
4192
- d,
4226
+ p,
4193
4227
  n,
4194
- T,
4195
- s,
4228
+ x,
4229
+ a,
4196
4230
  u,
4197
4231
  l,
4232
+ c,
4198
4233
  f,
4199
- m,
4200
4234
  o,
4201
4235
  i,
4202
- x
4236
+ d
4203
4237
  ];
4204
4238
  }
4205
- class Si extends yr {
4239
+ class Pi extends vr {
4206
4240
  constructor(t) {
4207
- super(), br(
4241
+ super(), gr(
4208
4242
  this,
4209
4243
  t,
4210
- wi,
4211
- Hi,
4244
+ Bi,
4245
+ Ai,
4212
4246
  Et,
4213
4247
  {
4214
4248
  assetsurl: 0,
@@ -4219,53 +4253,53 @@ class Si extends yr {
4219
4253
  translationurl: 8,
4220
4254
  mbsource: 9
4221
4255
  },
4222
- bi
4256
+ vi
4223
4257
  );
4224
4258
  }
4225
4259
  get assetsurl() {
4226
4260
  return this.$$.ctx[0];
4227
4261
  }
4228
4262
  set assetsurl(t) {
4229
- this.$$set({ assetsurl: t }), S();
4263
+ this.$$set({ assetsurl: t }), B();
4230
4264
  }
4231
4265
  get lang() {
4232
4266
  return this.$$.ctx[5];
4233
4267
  }
4234
4268
  set lang(t) {
4235
- this.$$set({ lang: t }), S();
4269
+ this.$$set({ lang: t }), B();
4236
4270
  }
4237
4271
  get errorcode() {
4238
4272
  return this.$$.ctx[1];
4239
4273
  }
4240
4274
  set errorcode(t) {
4241
- this.$$set({ errorcode: t }), S();
4275
+ this.$$set({ errorcode: t }), B();
4242
4276
  }
4243
4277
  get clientstyling() {
4244
4278
  return this.$$.ctx[6];
4245
4279
  }
4246
4280
  set clientstyling(t) {
4247
- this.$$set({ clientstyling: t }), S();
4281
+ this.$$set({ clientstyling: t }), B();
4248
4282
  }
4249
4283
  get clientstylingurl() {
4250
4284
  return this.$$.ctx[7];
4251
4285
  }
4252
4286
  set clientstylingurl(t) {
4253
- this.$$set({ clientstylingurl: t }), S();
4287
+ this.$$set({ clientstylingurl: t }), B();
4254
4288
  }
4255
4289
  get translationurl() {
4256
4290
  return this.$$.ctx[8];
4257
4291
  }
4258
4292
  set translationurl(t) {
4259
- this.$$set({ translationurl: t }), S();
4293
+ this.$$set({ translationurl: t }), B();
4260
4294
  }
4261
4295
  get mbsource() {
4262
4296
  return this.$$.ctx[9];
4263
4297
  }
4264
4298
  set mbsource(t) {
4265
- this.$$set({ mbsource: t }), S();
4299
+ this.$$set({ mbsource: t }), B();
4266
4300
  }
4267
4301
  }
4268
- gr(Si, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4302
+ yr(Pi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4269
4303
  export {
4270
- Si as C
4304
+ Pi as C
4271
4305
  };