@everymatrix/cashier-receipt-page 1.76.13 → 1.76.14

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