@everymatrix/cashier-receipt-page-nd 1.69.100 → 1.69.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,37 @@
1
- var nr = Object.defineProperty, ir = Object.defineProperties;
2
- var sr = Object.getOwnPropertyDescriptors;
3
- var Ye = Object.getOwnPropertySymbols;
4
- var ar = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
5
- var Be = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
1
+ var vr = Object.defineProperty, xr = Object.defineProperties;
2
+ var Tr = Object.getOwnPropertyDescriptors;
3
+ var at = Object.getOwnPropertySymbols;
4
+ var Hr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable;
5
+ var Me = (e, t, r) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- ar.call(t, r) && Be(e, r, t[r]);
8
- if (Ye)
9
- for (var r of Ye(t))
10
- or.call(t, r) && Be(e, r, t[r]);
7
+ Hr.call(t, r) && Me(e, r, t[r]);
8
+ if (at)
9
+ for (var r of at(t))
10
+ wr.call(t, r) && Me(e, r, t[r]);
11
11
  return e;
12
- }, et = (e, t) => ir(e, sr(t));
13
- var S = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var tt = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
12
+ }, lt = (e, t) => xr(e, Tr(t));
13
+ var S = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var ht = (e, t, r) => new Promise((n, i) => {
15
+ var s = (h) => {
16
16
  try {
17
- u(r.next(l));
18
- } catch (o) {
19
- i(o);
17
+ a(r.next(h));
18
+ } catch (u) {
19
+ i(u);
20
20
  }
21
- }, a = (l) => {
21
+ }, o = (h) => {
22
22
  try {
23
- u(r.throw(l));
24
- } catch (o) {
25
- i(o);
23
+ a(r.throw(h));
24
+ } catch (u) {
25
+ i(u);
26
26
  }
27
- }, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
- u((r = r.apply(e, t)).next());
27
+ }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
+ a((r = r.apply(e, t)).next());
29
29
  });
30
30
  import "../stencil/ui-image-C7s6Uvn5.js";
31
- function O() {
31
+ function B() {
32
32
  }
33
- function ur(e, t) {
33
+ const Mt = (e) => e;
34
+ function Sr(e, t) {
34
35
  for (const r in t)
35
36
  e[r] = t[r];
36
37
  return (
@@ -38,71 +39,71 @@ function ur(e, t) {
38
39
  e
39
40
  );
40
41
  }
41
- function St(e) {
42
+ function $t(e) {
42
43
  return e();
43
44
  }
44
- function rt() {
45
+ function ct() {
45
46
  return /* @__PURE__ */ Object.create(null);
46
47
  }
47
- function re(e) {
48
- e.forEach(St);
48
+ function D(e) {
49
+ e.forEach($t);
49
50
  }
50
- function We(e) {
51
+ function ae(e) {
51
52
  return typeof e == "function";
52
53
  }
53
- function Bt(e, t) {
54
+ function Rt(e, t) {
54
55
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
56
  }
56
- let oe;
57
- function nt(e, t) {
58
- return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
57
+ let fe;
58
+ function ft(e, t) {
59
+ return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
59
60
  }
60
- function lr(e) {
61
+ function Br(e) {
61
62
  return Object.keys(e).length === 0;
62
63
  }
63
- function At(e, ...t) {
64
+ function Dt(e, ...t) {
64
65
  if (e == null) {
65
66
  for (const n of t)
66
67
  n(void 0);
67
- return O;
68
+ return B;
68
69
  }
69
70
  const r = e.subscribe(...t);
70
71
  return r.unsubscribe ? () => r.unsubscribe() : r;
71
72
  }
72
- function hr(e, t, r) {
73
- e.$$.on_destroy.push(At(t, r));
73
+ function Ar(e, t, r) {
74
+ e.$$.on_destroy.push(Dt(t, r));
74
75
  }
75
- function ue(e, t, r, n) {
76
+ function me(e, t, r, n) {
76
77
  if (e) {
77
- const i = Pt(e, t, r, n);
78
+ const i = Ut(e, t, r, n);
78
79
  return e[0](i);
79
80
  }
80
81
  }
81
- function Pt(e, t, r, n) {
82
- return e[1] && n ? ur(r.ctx.slice(), e[1](n(t))) : r.ctx;
82
+ function Ut(e, t, r, n) {
83
+ return e[1] && n ? Sr(r.ctx.slice(), e[1](n(t))) : r.ctx;
83
84
  }
84
- function le(e, t, r, n) {
85
+ function de(e, t, r, n) {
85
86
  if (e[2] && n) {
86
87
  const i = e[2](n(r));
87
88
  if (t.dirty === void 0)
88
89
  return i;
89
90
  if (typeof i == "object") {
90
- const s = [], a = Math.max(t.dirty.length, i.length);
91
- for (let u = 0; u < a; u += 1)
92
- s[u] = t.dirty[u] | i[u];
91
+ const s = [], o = Math.max(t.dirty.length, i.length);
92
+ for (let a = 0; a < o; a += 1)
93
+ s[a] = t.dirty[a] | i[a];
93
94
  return s;
94
95
  }
95
96
  return t.dirty | i;
96
97
  }
97
98
  return t.dirty;
98
99
  }
99
- function he(e, t, r, n, i, s) {
100
+ function pe(e, t, r, n, i, s) {
100
101
  if (i) {
101
- const a = Pt(t, r, n, s);
102
- e.p(a, i);
102
+ const o = Ut(t, r, n, s);
103
+ e.p(o, i);
103
104
  }
104
105
  }
105
- function ce(e) {
106
+ function ge(e) {
106
107
  if (e.ctx.length > 32) {
107
108
  const t = [], r = e.ctx.length / 32;
108
109
  for (let n = 0; n < r; n++)
@@ -111,17 +112,36 @@ function ce(e) {
111
112
  }
112
113
  return -1;
113
114
  }
114
- function P(e, t) {
115
+ const Gt = typeof window != "undefined";
116
+ let kt = Gt ? () => window.performance.now() : () => Date.now(), tt = Gt ? (e) => requestAnimationFrame(e) : B;
117
+ const z = /* @__PURE__ */ new Set();
118
+ function Ft(e) {
119
+ z.forEach((t) => {
120
+ t.c(e) || (z.delete(t), t.f());
121
+ }), z.size !== 0 && tt(Ft);
122
+ }
123
+ function jt(e) {
124
+ let t;
125
+ return z.size === 0 && tt(Ft), {
126
+ promise: new Promise((r) => {
127
+ z.add(t = { c: e, f: r });
128
+ }),
129
+ abort() {
130
+ z.delete(t);
131
+ }
132
+ };
133
+ }
134
+ function C(e, t) {
115
135
  e.appendChild(t);
116
136
  }
117
- function cr(e, t, r) {
118
- const n = fr(e);
137
+ function Pr(e, t, r) {
138
+ const n = rt(e);
119
139
  if (!n.getElementById(t)) {
120
- const i = I("style");
121
- i.id = t, i.textContent = r, mr(n, i);
140
+ const i = P("style");
141
+ i.id = t, i.textContent = r, zt(n, i);
122
142
  }
123
143
  }
124
- function fr(e) {
144
+ function rt(e) {
125
145
  if (!e)
126
146
  return document;
127
147
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -131,56 +151,63 @@ function fr(e) {
131
151
  t
132
152
  ) : e.ownerDocument;
133
153
  }
134
- function mr(e, t) {
135
- return P(
154
+ function Or(e) {
155
+ const t = P("style");
156
+ return t.textContent = "/* empty */", zt(rt(e), t), t.sheet;
157
+ }
158
+ function zt(e, t) {
159
+ return C(
136
160
  /** @type {Document} */
137
161
  e.head || e,
138
162
  t
139
163
  ), t.sheet;
140
164
  }
141
- function R(e, t, r) {
165
+ function U(e, t, r) {
142
166
  e.insertBefore(t, r || null);
143
167
  }
144
- function N(e) {
168
+ function I(e) {
145
169
  e.parentNode && e.parentNode.removeChild(e);
146
170
  }
147
- function ki(e, t) {
171
+ function as(e, t) {
148
172
  for (let r = 0; r < e.length; r += 1)
149
173
  e[r] && e[r].d(t);
150
174
  }
151
- function I(e) {
175
+ function P(e) {
152
176
  return document.createElement(e);
153
177
  }
154
- function Fi(e) {
178
+ function us(e) {
155
179
  return document.createElementNS("http://www.w3.org/2000/svg", e);
156
180
  }
157
- function ne(e) {
181
+ function ue(e) {
158
182
  return document.createTextNode(e);
159
183
  }
160
- function Ae() {
161
- return ne(" ");
184
+ function $e() {
185
+ return ue(" ");
162
186
  }
163
- function dr() {
164
- return ne("");
187
+ function Cr() {
188
+ return ue("");
165
189
  }
166
- function pr(e, t, r, n) {
190
+ function Ir(e, t, r, n) {
167
191
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
168
192
  }
169
- function $(e, t, r) {
193
+ function R(e, t, r) {
170
194
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
171
195
  }
172
- function fe(e, t, r) {
196
+ function be(e, t, r) {
173
197
  const n = t.toLowerCase();
174
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : $(e, t, r);
198
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
175
199
  }
176
- function br(e) {
200
+ function Nr(e) {
177
201
  return Array.from(e.childNodes);
178
202
  }
179
- function Ze(e, t) {
203
+ function nt(e, t) {
180
204
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
181
205
  t);
182
206
  }
183
- function gr(e) {
207
+ function Lr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
208
+ return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
209
+ }
210
+ function Mr(e) {
184
211
  const t = {};
185
212
  return e.childNodes.forEach(
186
213
  /** @param {Element} node */
@@ -189,138 +216,280 @@ function gr(e) {
189
216
  }
190
217
  ), t;
191
218
  }
192
- let K;
193
- function Y(e) {
194
- K = e;
219
+ const He = /* @__PURE__ */ new Map();
220
+ let we = 0;
221
+ function $r(e) {
222
+ let t = 5381, r = e.length;
223
+ for (; r--; )
224
+ t = (t << 5) - t ^ e.charCodeAt(r);
225
+ return t >>> 0;
226
+ }
227
+ function Rr(e, t) {
228
+ const r = { stylesheet: Or(t), rules: {} };
229
+ return He.set(e, r), r;
230
+ }
231
+ function Vt(e, t, r, n, i, s, o, a = 0) {
232
+ const h = 16.666 / n;
233
+ let u = `{
234
+ `;
235
+ for (let v = 0; v <= 1; v += h) {
236
+ const T = t + (r - t) * s(v);
237
+ u += v * 100 + `%{${o(T, 1 - T)}}
238
+ `;
239
+ }
240
+ const l = u + `100% {${o(r, 1 - r)}}
241
+ }`, f = `__svelte_${$r(l)}_${a}`, c = rt(e), { stylesheet: p, rules: b } = He.get(c) || Rr(c, e);
242
+ b[f] || (b[f] = !0, p.insertRule(`@keyframes ${f} ${l}`, p.cssRules.length));
243
+ const g = e.style.animation || "";
244
+ return e.style.animation = `${g ? `${g}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, we += 1, f;
245
+ }
246
+ function ze(e, t) {
247
+ const r = (e.style.animation || "").split(", "), n = r.filter(
248
+ t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
249
+ // remove all Svelte animations
250
+ ), i = r.length - n.length;
251
+ i && (e.style.animation = n.join(", "), we -= i, we || Dr());
252
+ }
253
+ function Dr() {
254
+ tt(() => {
255
+ we || (He.forEach((e) => {
256
+ const { ownerNode: t } = e.stylesheet;
257
+ t && I(t);
258
+ }), He.clear());
259
+ });
260
+ }
261
+ let ne;
262
+ function re(e) {
263
+ ne = e;
195
264
  }
196
- function yr() {
197
- if (!K)
265
+ function Ur() {
266
+ if (!ne)
198
267
  throw new Error("Function called outside component initialization");
199
- return K;
268
+ return ne;
200
269
  }
201
- function _r(e) {
202
- yr().$$.on_mount.push(e);
270
+ function Gr(e) {
271
+ Ur().$$.on_mount.push(e);
203
272
  }
204
- const k = [], $e = [];
205
- let F = [];
206
- const it = [], Er = /* @__PURE__ */ Promise.resolve();
207
- let Re = !1;
208
- function vr() {
209
- Re || (Re = !0, Er.then(A));
273
+ const j = [], Ve = [];
274
+ let V = [];
275
+ const mt = [], kr = /* @__PURE__ */ Promise.resolve();
276
+ let Xe = !1;
277
+ function Fr() {
278
+ Xe || (Xe = !0, kr.then(O));
210
279
  }
211
- function De(e) {
212
- F.push(e);
280
+ function ie(e) {
281
+ V.push(e);
213
282
  }
214
- const Pe = /* @__PURE__ */ new Set();
215
- let U = 0;
216
- function A() {
217
- if (U !== 0)
283
+ const Re = /* @__PURE__ */ new Set();
284
+ let k = 0;
285
+ function O() {
286
+ if (k !== 0)
218
287
  return;
219
- const e = K;
288
+ const e = ne;
220
289
  do {
221
290
  try {
222
- for (; U < k.length; ) {
223
- const t = k[U];
224
- U++, Y(t), xr(t.$$);
291
+ for (; k < j.length; ) {
292
+ const t = j[k];
293
+ k++, re(t), jr(t.$$);
225
294
  }
226
295
  } catch (t) {
227
- throw k.length = 0, U = 0, t;
296
+ throw j.length = 0, k = 0, t;
228
297
  }
229
- for (Y(null), k.length = 0, U = 0; $e.length; )
230
- $e.pop()();
231
- for (let t = 0; t < F.length; t += 1) {
232
- const r = F[t];
233
- Pe.has(r) || (Pe.add(r), r());
298
+ for (re(null), j.length = 0, k = 0; Ve.length; )
299
+ Ve.pop()();
300
+ for (let t = 0; t < V.length; t += 1) {
301
+ const r = V[t];
302
+ Re.has(r) || (Re.add(r), r());
234
303
  }
235
- F.length = 0;
236
- } while (k.length);
237
- for (; it.length; )
238
- it.pop()();
239
- Re = !1, Pe.clear(), Y(e);
304
+ V.length = 0;
305
+ } while (j.length);
306
+ for (; mt.length; )
307
+ mt.pop()();
308
+ Xe = !1, Re.clear(), re(e);
240
309
  }
241
- function xr(e) {
310
+ function jr(e) {
242
311
  if (e.fragment !== null) {
243
- e.update(), re(e.before_update);
312
+ e.update(), D(e.before_update);
244
313
  const t = e.dirty;
245
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
314
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ie);
246
315
  }
247
316
  }
248
- function Tr(e) {
317
+ function zr(e) {
249
318
  const t = [], r = [];
250
- F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
319
+ V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
320
+ }
321
+ let Y;
322
+ function Xt() {
323
+ return Y || (Y = Promise.resolve(), Y.then(() => {
324
+ Y = null;
325
+ })), Y;
326
+ }
327
+ function Se(e, t, r) {
328
+ e.dispatchEvent(Lr(`${t ? "intro" : "outro"}${r}`));
329
+ }
330
+ const Ee = /* @__PURE__ */ new Set();
331
+ let N;
332
+ function ls() {
333
+ N = {
334
+ r: 0,
335
+ c: [],
336
+ p: N
337
+ // parent group
338
+ };
251
339
  }
252
- const pe = /* @__PURE__ */ new Set();
253
- let Hr;
254
- function q(e, t) {
255
- e && e.i && (pe.delete(e), e.i(t));
340
+ function hs() {
341
+ N.r || D(N.c), N = N.p;
256
342
  }
257
- function me(e, t, r, n) {
343
+ function ee(e, t) {
344
+ e && e.i && (Ee.delete(e), e.i(t));
345
+ }
346
+ function ye(e, t, r, n) {
258
347
  if (e && e.o) {
259
- if (pe.has(e))
348
+ if (Ee.has(e))
260
349
  return;
261
- pe.add(e), Hr.c.push(() => {
262
- pe.delete(e);
350
+ Ee.add(e), N.c.push(() => {
351
+ Ee.delete(e), n && (r && e.d(1), n());
263
352
  }), e.o(t);
353
+ } else
354
+ n && n();
355
+ }
356
+ const Wt = { duration: 0 };
357
+ function cs(e, t, r) {
358
+ const n = { direction: "in" };
359
+ let i = t(e, r, n), s = !1, o, a, h = 0;
360
+ function u() {
361
+ o && ze(e, o);
362
+ }
363
+ function l() {
364
+ const {
365
+ delay: c = 0,
366
+ duration: p = 300,
367
+ easing: b = Mt,
368
+ tick: g = B,
369
+ css: v
370
+ } = i || Wt;
371
+ v && (o = Vt(e, 0, 1, p, c, b, v, h++)), g(0, 1);
372
+ const T = kt() + c, d = T + p;
373
+ a && a.abort(), s = !0, ie(() => Se(e, !0, "start")), a = jt((m) => {
374
+ if (s) {
375
+ if (m >= d)
376
+ return g(1, 0), Se(e, !0, "end"), u(), s = !1;
377
+ if (m >= T) {
378
+ const E = b((m - T) / p);
379
+ g(E, 1 - E);
380
+ }
381
+ }
382
+ return s;
383
+ });
384
+ }
385
+ let f = !1;
386
+ return {
387
+ start() {
388
+ f || (f = !0, ze(e), ae(i) ? (i = i(n), Xt().then(l)) : l());
389
+ },
390
+ invalidate() {
391
+ f = !1;
392
+ },
393
+ end() {
394
+ s && (u(), s = !1);
395
+ }
396
+ };
397
+ }
398
+ function fs(e, t, r) {
399
+ const n = { direction: "out" };
400
+ let i = t(e, r, n), s = !0, o;
401
+ const a = N;
402
+ a.r += 1;
403
+ let h;
404
+ function u() {
405
+ const {
406
+ delay: l = 0,
407
+ duration: f = 300,
408
+ easing: c = Mt,
409
+ tick: p = B,
410
+ css: b
411
+ } = i || Wt;
412
+ b && (o = Vt(e, 1, 0, f, l, c, b));
413
+ const g = kt() + l, v = g + f;
414
+ ie(() => Se(e, !1, "start")), "inert" in e && (h = /** @type {HTMLElement} */
415
+ e.inert, e.inert = !0), jt((T) => {
416
+ if (s) {
417
+ if (T >= v)
418
+ return p(0, 1), Se(e, !1, "end"), --a.r || D(a.c), !1;
419
+ if (T >= g) {
420
+ const d = c((T - g) / f);
421
+ p(1 - d, d);
422
+ }
423
+ }
424
+ return s;
425
+ });
264
426
  }
427
+ return ae(i) ? Xt().then(() => {
428
+ i = i(n), u();
429
+ }) : u(), {
430
+ end(l) {
431
+ l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (o && ze(e, o), s = !1);
432
+ }
433
+ };
265
434
  }
266
- function ji(e) {
435
+ function ms(e) {
267
436
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
268
437
  }
269
- function wr(e, t, r) {
438
+ function Vr(e, t, r) {
270
439
  const { fragment: n, after_update: i } = e.$$;
271
- n && n.m(t, r), De(() => {
272
- const s = e.$$.on_mount.map(St).filter(We);
273
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
274
- }), i.forEach(De);
440
+ n && n.m(t, r), ie(() => {
441
+ const s = e.$$.on_mount.map($t).filter(ae);
442
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : D(s), e.$$.on_mount = [];
443
+ }), i.forEach(ie);
275
444
  }
276
- function Sr(e, t) {
445
+ function Xr(e, t) {
277
446
  const r = e.$$;
278
- r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
447
+ r.fragment !== null && (zr(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
279
448
  }
280
- function Br(e, t) {
281
- e.$$.dirty[0] === -1 && (k.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
449
+ function Wr(e, t) {
450
+ e.$$.dirty[0] === -1 && (j.push(e), Fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
282
451
  }
283
- function Ar(e, t, r, n, i, s, a = null, u = [-1]) {
284
- const l = K;
285
- Y(e);
286
- const o = e.$$ = {
452
+ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
453
+ const h = ne;
454
+ re(e);
455
+ const u = e.$$ = {
287
456
  fragment: null,
288
457
  ctx: [],
289
458
  // state
290
459
  props: s,
291
- update: O,
460
+ update: B,
292
461
  not_equal: i,
293
- bound: rt(),
462
+ bound: ct(),
294
463
  // lifecycle
295
464
  on_mount: [],
296
465
  on_destroy: [],
297
466
  on_disconnect: [],
298
467
  before_update: [],
299
468
  after_update: [],
300
- context: new Map(t.context || (l ? l.$$.context : [])),
469
+ context: new Map(t.context || (h ? h.$$.context : [])),
301
470
  // everything else
302
- callbacks: rt(),
303
- dirty: u,
471
+ callbacks: ct(),
472
+ dirty: a,
304
473
  skip_bound: !1,
305
- root: t.target || l.$$.root
474
+ root: t.target || h.$$.root
306
475
  };
307
- a && a(o.root);
308
- let h = !1;
309
- if (o.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
310
- const y = p.length ? p[0] : c;
311
- return o.ctx && i(o.ctx[f], o.ctx[f] = y) && (!o.skip_bound && o.bound[f] && o.bound[f](y), h && Br(e, f)), c;
312
- }) : [], o.update(), h = !0, re(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
476
+ o && o(u.root);
477
+ let l = !1;
478
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
479
+ const b = p.length ? p[0] : c;
480
+ return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && Wr(e, f)), c;
481
+ }) : [], u.update(), l = !0, D(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
313
482
  if (t.hydrate) {
314
- const f = br(t.target);
315
- o.fragment && o.fragment.l(f), f.forEach(N);
483
+ const f = Nr(t.target);
484
+ u.fragment && u.fragment.l(f), f.forEach(I);
316
485
  } else
317
- o.fragment && o.fragment.c();
318
- t.intro && q(e.$$.fragment), wr(e, t.target, t.anchor), A();
486
+ u.fragment && u.fragment.c();
487
+ t.intro && ee(e.$$.fragment), Vr(e, t.target, t.anchor), O();
319
488
  }
320
- Y(l);
489
+ re(h);
321
490
  }
322
- let Ot;
323
- typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
491
+ let Zt;
492
+ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
324
493
  constructor(t, r, n) {
325
494
  super();
326
495
  /** The Svelte component constructor */
@@ -357,42 +526,42 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
357
526
  }
358
527
  }
359
528
  connectedCallback() {
360
- return tt(this, null, function* () {
529
+ return ht(this, null, function* () {
361
530
  if (this.$$cn = !0, !this.$$c) {
362
531
  let t = function(s) {
363
532
  return () => {
364
- let a;
533
+ let o;
365
534
  return {
366
535
  c: function() {
367
- a = I("slot"), s !== "default" && $(a, "name", s);
536
+ o = P("slot"), s !== "default" && R(o, "name", s);
368
537
  },
369
538
  /**
370
539
  * @param {HTMLElement} target
371
540
  * @param {HTMLElement} [anchor]
372
541
  */
373
- m: function(o, h) {
374
- R(o, a, h);
542
+ m: function(u, l) {
543
+ U(u, o, l);
375
544
  },
376
- d: function(o) {
377
- o && N(a);
545
+ d: function(u) {
546
+ u && I(o);
378
547
  }
379
548
  };
380
549
  };
381
550
  };
382
551
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
383
552
  return;
384
- const r = {}, n = gr(this);
553
+ const r = {}, n = Mr(this);
385
554
  for (const s of this.$$s)
386
555
  s in n && (r[s] = [t(s)]);
387
556
  for (const s of this.attributes) {
388
- const a = this.$$g_p(s.name);
389
- a in this.$$d || (this.$$d[a] = be(a, s.value, this.$$p_d, "toProp"));
557
+ const o = this.$$g_p(s.name);
558
+ o in this.$$d || (this.$$d[o] = ve(o, s.value, this.$$p_d, "toProp"));
390
559
  }
391
560
  for (const s in this.$$p_d)
392
561
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
393
562
  this.$$c = new this.$$ctor({
394
563
  target: this.shadowRoot || this,
395
- props: et(Ke({}, this.$$d), {
564
+ props: lt(ut({}, this.$$d), {
396
565
  $$slots: r,
397
566
  $$scope: {
398
567
  ctx: []
@@ -403,21 +572,21 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
403
572
  this.$$r = !0;
404
573
  for (const s in this.$$p_d)
405
574
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
406
- const a = be(
575
+ const o = ve(
407
576
  s,
408
577
  this.$$d[s],
409
578
  this.$$p_d,
410
579
  "toAttribute"
411
580
  );
412
- a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
581
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
413
582
  }
414
583
  this.$$r = !1;
415
584
  };
416
585
  this.$$c.$$.after_update.push(i), i();
417
586
  for (const s in this.$$l)
418
- for (const a of this.$$l[s]) {
419
- const u = this.$$c.$on(s, a);
420
- this.$$l_u.set(a, u);
587
+ for (const o of this.$$l[s]) {
588
+ const a = this.$$c.$on(s, o);
589
+ this.$$l_u.set(o, a);
421
590
  }
422
591
  this.$$l = {};
423
592
  }
@@ -427,7 +596,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
427
596
  // and setting attributes through setAttribute etc, this is helpful
428
597
  attributeChangedCallback(t, r, n) {
429
598
  var i;
430
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
599
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ve(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
431
600
  }
432
601
  disconnectedCallback() {
433
602
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -440,7 +609,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
440
609
  ) || t;
441
610
  }
442
611
  });
443
- function be(e, t, r, n) {
612
+ function ve(e, t, r, n) {
444
613
  var s;
445
614
  const i = (s = r[e]) == null ? void 0 : s.type;
446
615
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -470,38 +639,38 @@ function be(e, t, r, n) {
470
639
  return t;
471
640
  }
472
641
  }
473
- function Pr(e, t, r, n, i, s) {
474
- let a = class extends Ot {
642
+ function Jr(e, t, r, n, i, s) {
643
+ let o = class extends Zt {
475
644
  constructor() {
476
645
  super(e, r, i), this.$$p_d = t;
477
646
  }
478
647
  static get observedAttributes() {
479
648
  return Object.keys(t).map(
480
- (u) => (t[u].attribute || u).toLowerCase()
649
+ (a) => (t[a].attribute || a).toLowerCase()
481
650
  );
482
651
  }
483
652
  };
484
- return Object.keys(t).forEach((u) => {
485
- Object.defineProperty(a.prototype, u, {
653
+ return Object.keys(t).forEach((a) => {
654
+ Object.defineProperty(o.prototype, a, {
486
655
  get() {
487
- return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
656
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
488
657
  },
489
- set(l) {
490
- var o;
491
- l = be(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
658
+ set(h) {
659
+ var u;
660
+ h = ve(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
492
661
  }
493
662
  });
494
- }), n.forEach((u) => {
495
- Object.defineProperty(a.prototype, u, {
663
+ }), n.forEach((a) => {
664
+ Object.defineProperty(o.prototype, a, {
496
665
  get() {
497
- var l;
498
- return (l = this.$$c) == null ? void 0 : l[u];
666
+ var h;
667
+ return (h = this.$$c) == null ? void 0 : h[a];
499
668
  }
500
669
  });
501
670
  }), e.element = /** @type {any} */
502
- a, a;
671
+ o, o;
503
672
  }
504
- class Or {
673
+ class qr {
505
674
  constructor() {
506
675
  /**
507
676
  * ### PRIVATE API
@@ -522,7 +691,7 @@ class Or {
522
691
  }
523
692
  /** @returns {void} */
524
693
  $destroy() {
525
- Sr(this, 1), this.$destroy = O;
694
+ Xr(this, 1), this.$destroy = B;
526
695
  }
527
696
  /**
528
697
  * @template {Extract<keyof Events, string>} K
@@ -531,8 +700,8 @@ class Or {
531
700
  * @returns {() => void}
532
701
  */
533
702
  $on(t, r) {
534
- if (!We(r))
535
- return O;
703
+ if (!ae(r))
704
+ return B;
536
705
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
537
706
  return n.push(r), () => {
538
707
  const i = n.indexOf(r);
@@ -544,177 +713,177 @@ class Or {
544
713
  * @returns {void}
545
714
  */
546
715
  $set(t) {
547
- this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
716
+ this.$$set && !Br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
548
717
  }
549
718
  }
550
- const Ir = "4";
551
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
552
- const G = [];
553
- function Cr(e, t) {
719
+ const Qr = "4";
720
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qr);
721
+ const F = [];
722
+ function Yr(e, t) {
554
723
  return {
555
- subscribe: Te(e, t).subscribe
724
+ subscribe: Ce(e, t).subscribe
556
725
  };
557
726
  }
558
- function Te(e, t = O) {
727
+ function Ce(e, t = B) {
559
728
  let r;
560
729
  const n = /* @__PURE__ */ new Set();
561
- function i(u) {
562
- if (Bt(e, u) && (e = u, r)) {
563
- const l = !G.length;
564
- for (const o of n)
565
- o[1](), G.push(o, e);
566
- if (l) {
567
- for (let o = 0; o < G.length; o += 2)
568
- G[o][0](G[o + 1]);
569
- G.length = 0;
730
+ function i(a) {
731
+ if (Rt(e, a) && (e = a, r)) {
732
+ const h = !F.length;
733
+ for (const u of n)
734
+ u[1](), F.push(u, e);
735
+ if (h) {
736
+ for (let u = 0; u < F.length; u += 2)
737
+ F[u][0](F[u + 1]);
738
+ F.length = 0;
570
739
  }
571
740
  }
572
741
  }
573
- function s(u) {
574
- i(u(e));
742
+ function s(a) {
743
+ i(a(e));
575
744
  }
576
- function a(u, l = O) {
577
- const o = [u, l];
578
- return n.add(o), n.size === 1 && (r = t(i, s) || O), u(e), () => {
579
- n.delete(o), n.size === 0 && r && (r(), r = null);
745
+ function o(a, h = B) {
746
+ const u = [a, h];
747
+ return n.add(u), n.size === 1 && (r = t(i, s) || B), a(e), () => {
748
+ n.delete(u), n.size === 0 && r && (r(), r = null);
580
749
  };
581
750
  }
582
- return { set: i, update: s, subscribe: a };
751
+ return { set: i, update: s, subscribe: o };
583
752
  }
584
- function W(e, t, r) {
753
+ function q(e, t, r) {
585
754
  const n = !Array.isArray(e), i = n ? [e] : e;
586
755
  if (!i.every(Boolean))
587
756
  throw new Error("derived() expects stores as input, got a falsy value");
588
757
  const s = t.length < 2;
589
- return Cr(r, (a, u) => {
590
- let l = !1;
591
- const o = [];
592
- let h = 0, f = O;
758
+ return Yr(r, (o, a) => {
759
+ let h = !1;
760
+ const u = [];
761
+ let l = 0, f = B;
593
762
  const c = () => {
594
- if (h)
763
+ if (l)
595
764
  return;
596
765
  f();
597
- const y = t(n ? o[0] : o, a, u);
598
- s ? a(y) : f = We(y) ? y : O;
766
+ const b = t(n ? u[0] : u, o, a);
767
+ s ? o(b) : f = ae(b) ? b : B;
599
768
  }, p = i.map(
600
- (y, _) => At(
601
- y,
602
- (T) => {
603
- o[_] = T, h &= ~(1 << _), l && c();
769
+ (b, g) => Dt(
770
+ b,
771
+ (v) => {
772
+ u[g] = v, l &= ~(1 << g), h && c();
604
773
  },
605
774
  () => {
606
- h |= 1 << _;
775
+ l |= 1 << g;
607
776
  }
608
777
  )
609
778
  );
610
- return l = !0, c(), function() {
611
- re(p), f(), l = !1;
779
+ return h = !0, c(), function() {
780
+ D(p), f(), h = !1;
612
781
  };
613
782
  });
614
783
  }
615
- var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
616
- function Nr(e) {
784
+ var ds = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
785
+ function Kr(e) {
617
786
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
618
787
  }
619
- var Lr = function(t) {
620
- return Mr(t) && !$r(t);
788
+ var en = function(t) {
789
+ return tn(t) && !rn(t);
621
790
  };
622
- function Mr(e) {
791
+ function tn(e) {
623
792
  return !!e && typeof e == "object";
624
793
  }
625
- function $r(e) {
794
+ function rn(e) {
626
795
  var t = Object.prototype.toString.call(e);
627
- return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
796
+ return t === "[object RegExp]" || t === "[object Date]" || on(e);
628
797
  }
629
- var Rr = typeof Symbol == "function" && Symbol.for, Dr = Rr ? Symbol.for("react.element") : 60103;
630
- function Ur(e) {
631
- return e.$$typeof === Dr;
798
+ var nn = typeof Symbol == "function" && Symbol.for, sn = nn ? Symbol.for("react.element") : 60103;
799
+ function on(e) {
800
+ return e.$$typeof === sn;
632
801
  }
633
- function Gr(e) {
802
+ function an(e) {
634
803
  return Array.isArray(e) ? [] : {};
635
804
  }
636
- function ee(e, t) {
637
- return t.clone !== !1 && t.isMergeableObject(e) ? j(Gr(e), e, t) : e;
805
+ function se(e, t) {
806
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(an(e), e, t) : e;
638
807
  }
639
- function kr(e, t, r) {
808
+ function un(e, t, r) {
640
809
  return e.concat(t).map(function(n) {
641
- return ee(n, r);
810
+ return se(n, r);
642
811
  });
643
812
  }
644
- function Fr(e, t) {
813
+ function ln(e, t) {
645
814
  if (!t.customMerge)
646
- return j;
815
+ return X;
647
816
  var r = t.customMerge(e);
648
- return typeof r == "function" ? r : j;
817
+ return typeof r == "function" ? r : X;
649
818
  }
650
- function jr(e) {
819
+ function hn(e) {
651
820
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
652
821
  return Object.propertyIsEnumerable.call(e, t);
653
822
  }) : [];
654
823
  }
655
- function st(e) {
656
- return Object.keys(e).concat(jr(e));
824
+ function dt(e) {
825
+ return Object.keys(e).concat(hn(e));
657
826
  }
658
- function It(e, t) {
827
+ function Jt(e, t) {
659
828
  try {
660
829
  return t in e;
661
830
  } catch (r) {
662
831
  return !1;
663
832
  }
664
833
  }
665
- function zr(e, t) {
666
- return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
834
+ function cn(e, t) {
835
+ return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
667
836
  }
668
- function Vr(e, t, r) {
837
+ function fn(e, t, r) {
669
838
  var n = {};
670
- return r.isMergeableObject(e) && st(e).forEach(function(i) {
671
- n[i] = ee(e[i], r);
672
- }), st(t).forEach(function(i) {
673
- zr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = Fr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
839
+ return r.isMergeableObject(e) && dt(e).forEach(function(i) {
840
+ n[i] = se(e[i], r);
841
+ }), dt(t).forEach(function(i) {
842
+ cn(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
674
843
  }), n;
675
844
  }
676
- function j(e, t, r) {
677
- r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || Lr, r.cloneUnlessOtherwiseSpecified = ee;
845
+ function X(e, t, r) {
846
+ r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = se;
678
847
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
679
- return s ? n ? r.arrayMerge(e, t, r) : Vr(e, t, r) : ee(t, r);
848
+ return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : se(t, r);
680
849
  }
681
- j.all = function(t, r) {
850
+ X.all = function(t, r) {
682
851
  if (!Array.isArray(t))
683
852
  throw new Error("first argument should be an array");
684
853
  return t.reduce(function(n, i) {
685
- return j(n, i, r);
854
+ return X(n, i, r);
686
855
  }, {});
687
856
  };
688
- var Xr = j, Wr = Xr;
689
- const Zr = /* @__PURE__ */ Nr(Wr);
690
- var Ue = function(e, t) {
691
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
857
+ var mn = X, dn = mn;
858
+ const pn = /* @__PURE__ */ Kr(dn);
859
+ var We = function(e, t) {
860
+ return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
692
861
  r.__proto__ = n;
693
862
  } || function(r, n) {
694
863
  for (var i in n)
695
864
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
696
- }, Ue(e, t);
865
+ }, We(e, t);
697
866
  };
698
- function He(e, t) {
867
+ function Ie(e, t) {
699
868
  if (typeof t != "function" && t !== null)
700
869
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
701
- Ue(e, t);
870
+ We(e, t);
702
871
  function r() {
703
872
  this.constructor = e;
704
873
  }
705
874
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
706
875
  }
707
- var B = function() {
708
- return B = Object.assign || function(t) {
876
+ var A = function() {
877
+ return A = Object.assign || function(t) {
709
878
  for (var r, n = 1, i = arguments.length; n < i; n++) {
710
879
  r = arguments[n];
711
880
  for (var s in r)
712
881
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
713
882
  }
714
883
  return t;
715
- }, B.apply(this, arguments);
884
+ }, A.apply(this, arguments);
716
885
  };
717
- function Jr(e, t) {
886
+ function gn(e, t) {
718
887
  var r = {};
719
888
  for (var n in e)
720
889
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -723,43 +892,43 @@ function Jr(e, t) {
723
892
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
724
893
  return r;
725
894
  }
726
- function Oe(e, t, r) {
895
+ function De(e, t, r) {
727
896
  if (r || arguments.length === 2)
728
897
  for (var n = 0, i = t.length, s; n < i; n++)
729
898
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
730
899
  return e.concat(s || Array.prototype.slice.call(t));
731
900
  }
732
- function Ie(e, t) {
733
- var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
901
+ function Ue(e, t) {
902
+ var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : _n;
734
903
  return i(e, {
735
904
  cache: r,
736
905
  serializer: n
737
906
  });
738
907
  }
739
- function qr(e) {
908
+ function bn(e) {
740
909
  return e == null || typeof e == "number" || typeof e == "boolean";
741
910
  }
742
- function Qr(e, t, r, n) {
743
- var i = qr(n) ? n : r(n), s = t.get(i);
911
+ function yn(e, t, r, n) {
912
+ var i = bn(n) ? n : r(n), s = t.get(i);
744
913
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
745
914
  }
746
- function Ct(e, t, r) {
915
+ function qt(e, t, r) {
747
916
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
748
917
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
749
918
  }
750
- function Nt(e, t, r, n, i) {
919
+ function Qt(e, t, r, n, i) {
751
920
  return r.bind(t, e, n, i);
752
921
  }
753
- function Yr(e, t) {
754
- var r = e.length === 1 ? Qr : Ct;
755
- return Nt(e, this, r, t.cache.create(), t.serializer);
922
+ function _n(e, t) {
923
+ var r = e.length === 1 ? yn : qt;
924
+ return Qt(e, this, r, t.cache.create(), t.serializer);
756
925
  }
757
- function Kr(e, t) {
758
- return Nt(e, this, Ct, t.cache.create(), t.serializer);
926
+ function En(e, t) {
927
+ return Qt(e, this, qt, t.cache.create(), t.serializer);
759
928
  }
760
- var en = function() {
929
+ var vn = function() {
761
930
  return JSON.stringify(arguments);
762
- }, tn = (
931
+ }, xn = (
763
932
  /** @class */
764
933
  function() {
765
934
  function e() {
@@ -771,71 +940,71 @@ var en = function() {
771
940
  this.cache[t] = r;
772
941
  }, e;
773
942
  }()
774
- ), rn = {
943
+ ), Tn = {
775
944
  create: function() {
776
- return new tn();
945
+ return new xn();
777
946
  }
778
- }, Ce = {
779
- variadic: Kr
780
- }, _e = function() {
781
- return _e = Object.assign || function(t) {
947
+ }, Ge = {
948
+ variadic: En
949
+ }, Be = function() {
950
+ return Be = Object.assign || function(t) {
782
951
  for (var r, n = 1, i = arguments.length; n < i; n++) {
783
952
  r = arguments[n];
784
953
  for (var s in r)
785
954
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
786
955
  }
787
956
  return t;
788
- }, _e.apply(this, arguments);
957
+ }, Be.apply(this, arguments);
789
958
  };
790
- var b;
959
+ var y;
791
960
  (function(e) {
792
961
  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";
793
- })(b || (b = {}));
794
- var v;
962
+ })(y || (y = {}));
963
+ var x;
795
964
  (function(e) {
796
965
  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";
797
- })(v || (v = {}));
798
- var z;
966
+ })(x || (x = {}));
967
+ var W;
799
968
  (function(e) {
800
969
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
801
- })(z || (z = {}));
802
- function at(e) {
803
- return e.type === v.literal;
970
+ })(W || (W = {}));
971
+ function pt(e) {
972
+ return e.type === x.literal;
804
973
  }
805
- function nn(e) {
806
- return e.type === v.argument;
974
+ function Hn(e) {
975
+ return e.type === x.argument;
807
976
  }
808
- function Lt(e) {
809
- return e.type === v.number;
977
+ function Yt(e) {
978
+ return e.type === x.number;
810
979
  }
811
- function Mt(e) {
812
- return e.type === v.date;
980
+ function Kt(e) {
981
+ return e.type === x.date;
813
982
  }
814
- function $t(e) {
815
- return e.type === v.time;
983
+ function er(e) {
984
+ return e.type === x.time;
816
985
  }
817
- function Rt(e) {
818
- return e.type === v.select;
986
+ function tr(e) {
987
+ return e.type === x.select;
819
988
  }
820
- function Dt(e) {
821
- return e.type === v.plural;
989
+ function rr(e) {
990
+ return e.type === x.plural;
822
991
  }
823
- function sn(e) {
824
- return e.type === v.pound;
992
+ function wn(e) {
993
+ return e.type === x.pound;
825
994
  }
826
- function Ut(e) {
827
- return e.type === v.tag;
995
+ function nr(e) {
996
+ return e.type === x.tag;
828
997
  }
829
- function Gt(e) {
830
- return !!(e && typeof e == "object" && e.type === z.number);
998
+ function ir(e) {
999
+ return !!(e && typeof e == "object" && e.type === W.number);
831
1000
  }
832
- function Ge(e) {
833
- return !!(e && typeof e == "object" && e.type === z.dateTime);
1001
+ function Ze(e) {
1002
+ return !!(e && typeof e == "object" && e.type === W.dateTime);
834
1003
  }
835
- var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
836
- function on(e) {
1004
+ var sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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;
1005
+ function Bn(e) {
837
1006
  var t = {};
838
- return e.replace(an, function(r) {
1007
+ return e.replace(Sn, function(r) {
839
1008
  var n = r.length;
840
1009
  switch (r[0]) {
841
1010
  case "G":
@@ -924,46 +1093,46 @@ function on(e) {
924
1093
  return "";
925
1094
  }), t;
926
1095
  }
927
- var x = function() {
928
- return x = Object.assign || function(t) {
1096
+ var H = function() {
1097
+ return H = Object.assign || function(t) {
929
1098
  for (var r, n = 1, i = arguments.length; n < i; n++) {
930
1099
  r = arguments[n];
931
1100
  for (var s in r)
932
1101
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
933
1102
  }
934
1103
  return t;
935
- }, x.apply(this, arguments);
1104
+ }, H.apply(this, arguments);
936
1105
  };
937
- var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
938
- function ln(e) {
1106
+ var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1107
+ function Pn(e) {
939
1108
  if (e.length === 0)
940
1109
  throw new Error("Number skeleton cannot be empty");
941
- for (var t = e.split(un).filter(function(c) {
1110
+ for (var t = e.split(An).filter(function(c) {
942
1111
  return c.length > 0;
943
1112
  }), r = [], n = 0, i = t; n < i.length; n++) {
944
- var s = i[n], a = s.split("/");
945
- if (a.length === 0)
1113
+ var s = i[n], o = s.split("/");
1114
+ if (o.length === 0)
946
1115
  throw new Error("Invalid number skeleton");
947
- for (var u = a[0], l = a.slice(1), o = 0, h = l; o < h.length; o++) {
948
- var f = h[o];
1116
+ for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
1117
+ var f = l[u];
949
1118
  if (f.length === 0)
950
1119
  throw new Error("Invalid number skeleton");
951
1120
  }
952
- r.push({ stem: u, options: l });
1121
+ r.push({ stem: a, options: h });
953
1122
  }
954
1123
  return r;
955
1124
  }
956
- function hn(e) {
1125
+ function On(e) {
957
1126
  return e.replace(/^(.*?)-/, "");
958
1127
  }
959
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
960
- function ut(e) {
1128
+ var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
1129
+ function bt(e) {
961
1130
  var t = {};
962
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
1131
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
963
1132
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
964
1133
  }), t;
965
1134
  }
966
- function zt(e) {
1135
+ function ur(e) {
967
1136
  switch (e) {
968
1137
  case "sign-auto":
969
1138
  return {
@@ -1003,7 +1172,7 @@ function zt(e) {
1003
1172
  };
1004
1173
  }
1005
1174
  }
1006
- function fn(e) {
1175
+ function In(e) {
1007
1176
  var t;
1008
1177
  if (e[0] === "E" && e[1] === "E" ? (t = {
1009
1178
  notation: "engineering"
@@ -1011,17 +1180,17 @@ function fn(e) {
1011
1180
  notation: "scientific"
1012
1181
  }, e = e.slice(1)), t) {
1013
1182
  var r = e.slice(0, 2);
1014
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
1183
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
1015
1184
  throw new Error("Malformed concise eng/scientific notation");
1016
1185
  t.minimumIntegerDigits = e.length;
1017
1186
  }
1018
1187
  return t;
1019
1188
  }
1020
- function lt(e) {
1021
- var t = {}, r = zt(e);
1189
+ function yt(e) {
1190
+ var t = {}, r = ur(e);
1022
1191
  return r || t;
1023
1192
  }
1024
- function mn(e) {
1193
+ function Nn(e) {
1025
1194
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1026
1195
  var i = n[r];
1027
1196
  switch (i.stem) {
@@ -1045,7 +1214,7 @@ function mn(e) {
1045
1214
  continue;
1046
1215
  case "measure-unit":
1047
1216
  case "unit":
1048
- t.style = "unit", t.unit = hn(i.options[0]);
1217
+ t.style = "unit", t.unit = On(i.options[0]);
1049
1218
  continue;
1050
1219
  case "compact-short":
1051
1220
  case "K":
@@ -1056,13 +1225,13 @@ function mn(e) {
1056
1225
  t.notation = "compact", t.compactDisplay = "long";
1057
1226
  continue;
1058
1227
  case "scientific":
1059
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
1060
- return x(x({}, l), lt(o));
1228
+ t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1229
+ return H(H({}, h), yt(u));
1061
1230
  }, {}));
1062
1231
  continue;
1063
1232
  case "engineering":
1064
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
1065
- return x(x({}, l), lt(o));
1233
+ t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1234
+ return H(H({}, h), yt(u));
1066
1235
  }, {}));
1067
1236
  continue;
1068
1237
  case "notation-simple":
@@ -1107,9 +1276,9 @@ function mn(e) {
1107
1276
  case "integer-width":
1108
1277
  if (i.options.length > 1)
1109
1278
  throw new RangeError("integer-width stems only accept a single optional option");
1110
- i.options[0].replace(cn, function(l, o, h, f, c, p) {
1111
- if (o)
1112
- t.minimumIntegerDigits = h.length;
1279
+ i.options[0].replace(Cn, function(h, u, l, f, c, p) {
1280
+ if (u)
1281
+ t.minimumIntegerDigits = l.length;
1113
1282
  else {
1114
1283
  if (f && c)
1115
1284
  throw new Error("We currently do not support maximum integer digits");
@@ -1120,32 +1289,32 @@ function mn(e) {
1120
1289
  });
1121
1290
  continue;
1122
1291
  }
1123
- if (jt.test(i.stem)) {
1292
+ if (ar.test(i.stem)) {
1124
1293
  t.minimumIntegerDigits = i.stem.length;
1125
1294
  continue;
1126
1295
  }
1127
- if (ot.test(i.stem)) {
1296
+ if (gt.test(i.stem)) {
1128
1297
  if (i.options.length > 1)
1129
1298
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1130
- i.stem.replace(ot, function(l, o, h, f, c, p) {
1131
- return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
1299
+ i.stem.replace(gt, function(h, u, l, f, c, p) {
1300
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1132
1301
  });
1133
1302
  var s = i.options[0];
1134
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ut(s)));
1303
+ s === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = H(H({}, t), bt(s)));
1135
1304
  continue;
1136
1305
  }
1137
- if (Ft.test(i.stem)) {
1138
- t = x(x({}, t), ut(i.stem));
1306
+ if (or.test(i.stem)) {
1307
+ t = H(H({}, t), bt(i.stem));
1139
1308
  continue;
1140
1309
  }
1141
- var a = zt(i.stem);
1142
- a && (t = x(x({}, t), a));
1143
- var u = fn(i.stem);
1144
- u && (t = x(x({}, t), u));
1310
+ var o = ur(i.stem);
1311
+ o && (t = H(H({}, t), o));
1312
+ var a = In(i.stem);
1313
+ a && (t = H(H({}, t), a));
1145
1314
  }
1146
1315
  return t;
1147
1316
  }
1148
- var de = {
1317
+ var _e = {
1149
1318
  "001": [
1150
1319
  "H",
1151
1320
  "h"
@@ -2560,23 +2729,23 @@ var de = {
2560
2729
  "h"
2561
2730
  ]
2562
2731
  };
2563
- function dn(e, t) {
2732
+ function Ln(e, t) {
2564
2733
  for (var r = "", n = 0; n < e.length; n++) {
2565
2734
  var i = e.charAt(n);
2566
2735
  if (i === "j") {
2567
2736
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2568
2737
  s++, n++;
2569
- var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = pn(t);
2570
- for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
2571
- r += l;
2572
- for (; a-- > 0; )
2573
- r = o + r;
2738
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Mn(t);
2739
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2740
+ r += h;
2741
+ for (; o-- > 0; )
2742
+ r = u + r;
2574
2743
  } else
2575
2744
  i === "J" ? r += "H" : r += i;
2576
2745
  }
2577
2746
  return r;
2578
2747
  }
2579
- function pn(e) {
2748
+ function Mn(e) {
2580
2749
  var t = e.hourCycle;
2581
2750
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2582
2751
  e.hourCycles && // @ts-ignore
@@ -2595,23 +2764,23 @@ function pn(e) {
2595
2764
  }
2596
2765
  var r = e.language, n;
2597
2766
  r !== "root" && (n = e.maximize().region);
2598
- var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
2767
+ var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
2599
2768
  return i[0];
2600
2769
  }
2601
- var Ne, bn = new RegExp("^".concat(kt.source, "*")), gn = new RegExp("".concat(kt.source, "*$"));
2602
- function g(e, t) {
2770
+ var ke, $n = new RegExp("^".concat(sr.source, "*")), Rn = new RegExp("".concat(sr.source, "*$"));
2771
+ function _(e, t) {
2603
2772
  return { start: e, end: t };
2604
2773
  }
2605
- var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, En = !!Object.fromEntries, vn = !!String.prototype.codePointAt, xn = !!String.prototype.trimStart, Tn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, wn = Hn ? Number.isSafeInteger : function(e) {
2774
+ var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Gn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Vn = zn ? Number.isSafeInteger : function(e) {
2606
2775
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2607
- }, ke = !0;
2776
+ }, Je = !0;
2608
2777
  try {
2609
- var Sn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2610
- ke = ((Ne = Sn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2778
+ var Xn = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2779
+ Je = ((ke = Xn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
2611
2780
  } catch (e) {
2612
- ke = !1;
2781
+ Je = !1;
2613
2782
  }
2614
- var ht = yn ? (
2783
+ var _t = Dn ? (
2615
2784
  // Native
2616
2785
  function(t, r, n) {
2617
2786
  return t.startsWith(r, n);
@@ -2621,31 +2790,31 @@ var ht = yn ? (
2621
2790
  function(t, r, n) {
2622
2791
  return t.slice(n, n + r.length) === r;
2623
2792
  }
2624
- ), Fe = _n ? String.fromCodePoint : (
2793
+ ), qe = Un ? String.fromCodePoint : (
2625
2794
  // IE11
2626
2795
  function() {
2627
2796
  for (var t = [], r = 0; r < arguments.length; r++)
2628
2797
  t[r] = arguments[r];
2629
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
2630
- if (a = t[s++], a > 1114111)
2631
- throw RangeError(a + " is not a valid code point");
2632
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2798
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2799
+ if (o = t[s++], o > 1114111)
2800
+ throw RangeError(o + " is not a valid code point");
2801
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2633
2802
  }
2634
2803
  return n;
2635
2804
  }
2636
- ), ct = (
2805
+ ), Et = (
2637
2806
  // native
2638
- En ? Object.fromEntries : (
2807
+ Gn ? Object.fromEntries : (
2639
2808
  // Ponyfill
2640
2809
  function(t) {
2641
2810
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2642
- var s = i[n], a = s[0], u = s[1];
2643
- r[a] = u;
2811
+ var s = i[n], o = s[0], a = s[1];
2812
+ r[o] = a;
2644
2813
  }
2645
2814
  return r;
2646
2815
  }
2647
2816
  )
2648
- ), Vt = vn ? (
2817
+ ), lr = kn ? (
2649
2818
  // Native
2650
2819
  function(t, r) {
2651
2820
  return t.codePointAt(r);
@@ -2659,7 +2828,7 @@ var ht = yn ? (
2659
2828
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2660
2829
  }
2661
2830
  }
2662
- ), Bn = xn ? (
2831
+ ), Wn = Fn ? (
2663
2832
  // Native
2664
2833
  function(t) {
2665
2834
  return t.trimStart();
@@ -2667,9 +2836,9 @@ var ht = yn ? (
2667
2836
  ) : (
2668
2837
  // Ponyfill
2669
2838
  function(t) {
2670
- return t.replace(bn, "");
2839
+ return t.replace($n, "");
2671
2840
  }
2672
- ), An = Tn ? (
2841
+ ), Zn = jn ? (
2673
2842
  // Native
2674
2843
  function(t) {
2675
2844
  return t.trimEnd();
@@ -2677,32 +2846,32 @@ var ht = yn ? (
2677
2846
  ) : (
2678
2847
  // Ponyfill
2679
2848
  function(t) {
2680
- return t.replace(gn, "");
2849
+ return t.replace(Rn, "");
2681
2850
  }
2682
2851
  );
2683
- function Xt(e, t) {
2852
+ function hr(e, t) {
2684
2853
  return new RegExp(e, t);
2685
2854
  }
2686
- var je;
2687
- if (ke) {
2688
- var ft = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2689
- je = function(t, r) {
2855
+ var Qe;
2856
+ if (Je) {
2857
+ var vt = hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2858
+ Qe = function(t, r) {
2690
2859
  var n;
2691
- ft.lastIndex = r;
2692
- var i = ft.exec(t);
2860
+ vt.lastIndex = r;
2861
+ var i = vt.exec(t);
2693
2862
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2694
2863
  };
2695
2864
  } else
2696
- je = function(t, r) {
2865
+ Qe = function(t, r) {
2697
2866
  for (var n = []; ; ) {
2698
- var i = Vt(t, r);
2699
- if (i === void 0 || Wt(i) || Cn(i))
2867
+ var i = lr(t, r);
2868
+ if (i === void 0 || cr(i) || Yn(i))
2700
2869
  break;
2701
2870
  n.push(i), r += i >= 65536 ? 2 : 1;
2702
2871
  }
2703
- return Fe.apply(void 0, n);
2872
+ return qe.apply(void 0, n);
2704
2873
  };
2705
- var Pn = (
2874
+ var Jn = (
2706
2875
  /** @class */
2707
2876
  function() {
2708
2877
  function e(t, r) {
@@ -2716,33 +2885,33 @@ var Pn = (
2716
2885
  for (var i = []; !this.isEOF(); ) {
2717
2886
  var s = this.char();
2718
2887
  if (s === 123) {
2719
- var a = this.parseArgument(t, n);
2720
- if (a.err)
2721
- return a;
2722
- i.push(a.val);
2888
+ var o = this.parseArgument(t, n);
2889
+ if (o.err)
2890
+ return o;
2891
+ i.push(o.val);
2723
2892
  } else {
2724
2893
  if (s === 125 && t > 0)
2725
2894
  break;
2726
2895
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2727
- var u = this.clonePosition();
2896
+ var a = this.clonePosition();
2728
2897
  this.bump(), i.push({
2729
- type: v.pound,
2730
- location: g(u, this.clonePosition())
2898
+ type: x.pound,
2899
+ location: _(a, this.clonePosition())
2731
2900
  });
2732
2901
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2733
2902
  if (n)
2734
2903
  break;
2735
- return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2736
- } else if (s === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2737
- var a = this.parseTag(t, r);
2738
- if (a.err)
2739
- return a;
2740
- i.push(a.val);
2904
+ return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2905
+ } else if (s === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
2906
+ var o = this.parseTag(t, r);
2907
+ if (o.err)
2908
+ return o;
2909
+ i.push(o.val);
2741
2910
  } else {
2742
- var a = this.parseLiteral(t, r);
2743
- if (a.err)
2744
- return a;
2745
- i.push(a.val);
2911
+ var o = this.parseLiteral(t, r);
2912
+ if (o.err)
2913
+ return o;
2914
+ i.push(o.val);
2746
2915
  }
2747
2916
  }
2748
2917
  }
@@ -2754,9 +2923,9 @@ var Pn = (
2754
2923
  if (this.bumpSpace(), this.bumpIf("/>"))
2755
2924
  return {
2756
2925
  val: {
2757
- type: v.literal,
2926
+ type: x.literal,
2758
2927
  value: "<".concat(i, "/>"),
2759
- location: g(n, this.clonePosition())
2928
+ location: _(n, this.clonePosition())
2760
2929
  },
2761
2930
  err: null
2762
2931
  };
@@ -2764,27 +2933,27 @@ var Pn = (
2764
2933
  var s = this.parseMessage(t + 1, r, !0);
2765
2934
  if (s.err)
2766
2935
  return s;
2767
- var a = s.val, u = this.clonePosition();
2936
+ var o = s.val, a = this.clonePosition();
2768
2937
  if (this.bumpIf("</")) {
2769
- if (this.isEOF() || !ze(this.char()))
2770
- return this.error(b.INVALID_TAG, g(u, this.clonePosition()));
2771
- var l = this.clonePosition(), o = this.parseTagName();
2772
- return i !== o ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2938
+ if (this.isEOF() || !Ye(this.char()))
2939
+ return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
2940
+ var h = this.clonePosition(), u = this.parseTagName();
2941
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2773
2942
  val: {
2774
- type: v.tag,
2943
+ type: x.tag,
2775
2944
  value: i,
2776
- children: a,
2777
- location: g(n, this.clonePosition())
2945
+ children: o,
2946
+ location: _(n, this.clonePosition())
2778
2947
  },
2779
2948
  err: null
2780
- } : this.error(b.INVALID_TAG, g(u, this.clonePosition())));
2949
+ } : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
2781
2950
  } else
2782
- return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2951
+ return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
2783
2952
  } else
2784
- return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2953
+ return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2785
2954
  }, e.prototype.parseTagName = function() {
2786
2955
  var t = this.offset();
2787
- for (this.bump(); !this.isEOF() && In(this.char()); )
2956
+ for (this.bump(); !this.isEOF() && Qn(this.char()); )
2788
2957
  this.bump();
2789
2958
  return this.message.slice(t, this.offset());
2790
2959
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2794,26 +2963,26 @@ var Pn = (
2794
2963
  i += s;
2795
2964
  continue;
2796
2965
  }
2797
- var a = this.tryParseUnquoted(t, r);
2798
- if (a) {
2799
- i += a;
2966
+ var o = this.tryParseUnquoted(t, r);
2967
+ if (o) {
2968
+ i += o;
2800
2969
  continue;
2801
2970
  }
2802
- var u = this.tryParseLeftAngleBracket();
2803
- if (u) {
2804
- i += u;
2971
+ var a = this.tryParseLeftAngleBracket();
2972
+ if (a) {
2973
+ i += a;
2805
2974
  continue;
2806
2975
  }
2807
2976
  break;
2808
2977
  }
2809
- var l = g(n, this.clonePosition());
2978
+ var h = _(n, this.clonePosition());
2810
2979
  return {
2811
- val: { type: v.literal, value: i, location: l },
2980
+ val: { type: x.literal, value: i, location: h },
2812
2981
  err: null
2813
2982
  };
2814
2983
  }, e.prototype.tryParseLeftAngleBracket = function() {
2815
2984
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2816
- !On(this.peek() || 0)) ? (this.bump(), "<") : null;
2985
+ !qn(this.peek() || 0)) ? (this.bump(), "<") : null;
2817
2986
  }, e.prototype.tryParseQuote = function(t) {
2818
2987
  if (this.isEOF() || this.char() !== 39)
2819
2988
  return null;
@@ -2847,100 +3016,100 @@ var Pn = (
2847
3016
  r.push(n);
2848
3017
  this.bump();
2849
3018
  }
2850
- return Fe.apply(void 0, r);
3019
+ return qe.apply(void 0, r);
2851
3020
  }, e.prototype.tryParseUnquoted = function(t, r) {
2852
3021
  if (this.isEOF())
2853
3022
  return null;
2854
3023
  var n = this.char();
2855
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
3024
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
2856
3025
  }, e.prototype.parseArgument = function(t, r) {
2857
3026
  var n = this.clonePosition();
2858
3027
  if (this.bump(), this.bumpSpace(), this.isEOF())
2859
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3028
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2860
3029
  if (this.char() === 125)
2861
- return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
3030
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
2862
3031
  var i = this.parseIdentifierIfPossible().value;
2863
3032
  if (!i)
2864
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3033
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2865
3034
  if (this.bumpSpace(), this.isEOF())
2866
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3035
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2867
3036
  switch (this.char()) {
2868
3037
  case 125:
2869
3038
  return this.bump(), {
2870
3039
  val: {
2871
- type: v.argument,
3040
+ type: x.argument,
2872
3041
  // value does not include the opening and closing braces.
2873
3042
  value: i,
2874
- location: g(n, this.clonePosition())
3043
+ location: _(n, this.clonePosition())
2875
3044
  },
2876
3045
  err: null
2877
3046
  };
2878
3047
  case 44:
2879
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3048
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2880
3049
  default:
2881
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3050
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2882
3051
  }
2883
3052
  }, e.prototype.parseIdentifierIfPossible = function() {
2884
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
3053
+ var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
2885
3054
  this.bumpTo(i);
2886
- var s = this.clonePosition(), a = g(t, s);
2887
- return { value: n, location: a };
3055
+ var s = this.clonePosition(), o = _(t, s);
3056
+ return { value: n, location: o };
2888
3057
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2889
- var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2890
- switch (u) {
3058
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3059
+ switch (a) {
2891
3060
  case "":
2892
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(a, l));
3061
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
2893
3062
  case "number":
2894
3063
  case "date":
2895
3064
  case "time": {
2896
3065
  this.bumpSpace();
2897
- var o = null;
3066
+ var u = null;
2898
3067
  if (this.bumpIf(",")) {
2899
3068
  this.bumpSpace();
2900
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3069
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2901
3070
  if (f.err)
2902
3071
  return f;
2903
- var c = An(f.val);
3072
+ var c = Zn(f.val);
2904
3073
  if (c.length === 0)
2905
- return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2906
- var p = g(h, this.clonePosition());
2907
- o = { style: c, styleLocation: p };
3074
+ return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3075
+ var p = _(l, this.clonePosition());
3076
+ u = { style: c, styleLocation: p };
2908
3077
  }
2909
- var y = this.tryParseArgumentClose(i);
2910
- if (y.err)
2911
- return y;
2912
- var _ = g(i, this.clonePosition());
2913
- if (o && ht(o == null ? void 0 : o.style, "::", 0)) {
2914
- var T = Bn(o.style.slice(2));
2915
- if (u === "number") {
2916
- var f = this.parseNumberSkeletonFromString(T, o.styleLocation);
3078
+ var b = this.tryParseArgumentClose(i);
3079
+ if (b.err)
3080
+ return b;
3081
+ var g = _(i, this.clonePosition());
3082
+ if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
3083
+ var v = Wn(u.style.slice(2));
3084
+ if (a === "number") {
3085
+ var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
2917
3086
  return f.err ? f : {
2918
- val: { type: v.number, value: n, location: _, style: f.val },
3087
+ val: { type: x.number, value: n, location: g, style: f.val },
2919
3088
  err: null
2920
3089
  };
2921
3090
  } else {
2922
- if (T.length === 0)
2923
- return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
2924
- var w = T;
2925
- this.locale && (w = dn(T, this.locale));
3091
+ if (v.length === 0)
3092
+ return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
3093
+ var T = v;
3094
+ this.locale && (T = Ln(v, this.locale));
2926
3095
  var c = {
2927
- type: z.dateTime,
2928
- pattern: w,
2929
- location: o.styleLocation,
2930
- parsedOptions: this.shouldParseSkeletons ? on(w) : {}
2931
- }, d = u === "date" ? v.date : v.time;
3096
+ type: W.dateTime,
3097
+ pattern: T,
3098
+ location: u.styleLocation,
3099
+ parsedOptions: this.shouldParseSkeletons ? Bn(T) : {}
3100
+ }, d = a === "date" ? x.date : x.time;
2932
3101
  return {
2933
- val: { type: d, value: n, location: _, style: c },
3102
+ val: { type: d, value: n, location: g, style: c },
2934
3103
  err: null
2935
3104
  };
2936
3105
  }
2937
3106
  }
2938
3107
  return {
2939
3108
  val: {
2940
- type: u === "number" ? v.number : u === "date" ? v.date : v.time,
3109
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2941
3110
  value: n,
2942
- location: _,
2943
- style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
3111
+ location: g,
3112
+ style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2944
3113
  },
2945
3114
  err: null
2946
3115
  };
@@ -2950,50 +3119,50 @@ var Pn = (
2950
3119
  case "select": {
2951
3120
  var m = this.clonePosition();
2952
3121
  if (this.bumpSpace(), !this.bumpIf(","))
2953
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(m, _e({}, m)));
3122
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(m, Be({}, m)));
2954
3123
  this.bumpSpace();
2955
- var E = this.parseIdentifierIfPossible(), M = 0;
2956
- if (u !== "select" && E.value === "offset") {
3124
+ var E = this.parseIdentifierIfPossible(), $ = 0;
3125
+ if (a !== "select" && E.value === "offset") {
2957
3126
  if (!this.bumpIf(":"))
2958
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3127
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2959
3128
  this.bumpSpace();
2960
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3129
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2961
3130
  if (f.err)
2962
3131
  return f;
2963
- this.bumpSpace(), E = this.parseIdentifierIfPossible(), M = f.val;
3132
+ this.bumpSpace(), E = this.parseIdentifierIfPossible(), $ = f.val;
2964
3133
  }
2965
- var ae = this.tryParsePluralOrSelectOptions(t, u, r, E);
2966
- if (ae.err)
2967
- return ae;
2968
- var y = this.tryParseArgumentClose(i);
2969
- if (y.err)
2970
- return y;
2971
- var Qe = g(i, this.clonePosition());
2972
- return u === "select" ? {
3134
+ var ce = this.tryParsePluralOrSelectOptions(t, a, r, E);
3135
+ if (ce.err)
3136
+ return ce;
3137
+ var b = this.tryParseArgumentClose(i);
3138
+ if (b.err)
3139
+ return b;
3140
+ var ot = _(i, this.clonePosition());
3141
+ return a === "select" ? {
2973
3142
  val: {
2974
- type: v.select,
3143
+ type: x.select,
2975
3144
  value: n,
2976
- options: ct(ae.val),
2977
- location: Qe
3145
+ options: Et(ce.val),
3146
+ location: ot
2978
3147
  },
2979
3148
  err: null
2980
3149
  } : {
2981
3150
  val: {
2982
- type: v.plural,
3151
+ type: x.plural,
2983
3152
  value: n,
2984
- options: ct(ae.val),
2985
- offset: M,
2986
- pluralType: u === "plural" ? "cardinal" : "ordinal",
2987
- location: Qe
3153
+ options: Et(ce.val),
3154
+ offset: $,
3155
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3156
+ location: ot
2988
3157
  },
2989
3158
  err: null
2990
3159
  };
2991
3160
  }
2992
3161
  default:
2993
- return this.error(b.INVALID_ARGUMENT_TYPE, g(a, l));
3162
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
2994
3163
  }
2995
3164
  }, e.prototype.tryParseArgumentClose = function(t) {
2996
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3165
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2997
3166
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2998
3167
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2999
3168
  var n = this.char();
@@ -3002,7 +3171,7 @@ var Pn = (
3002
3171
  this.bump();
3003
3172
  var i = this.clonePosition();
3004
3173
  if (!this.bumpUntil("'"))
3005
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
3174
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3006
3175
  this.bump();
3007
3176
  break;
3008
3177
  }
@@ -3032,64 +3201,64 @@ var Pn = (
3032
3201
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3033
3202
  var n = [];
3034
3203
  try {
3035
- n = ln(t);
3204
+ n = Pn(t);
3036
3205
  } catch (i) {
3037
- return this.error(b.INVALID_NUMBER_SKELETON, r);
3206
+ return this.error(y.INVALID_NUMBER_SKELETON, r);
3038
3207
  }
3039
3208
  return {
3040
3209
  val: {
3041
- type: z.number,
3210
+ type: W.number,
3042
3211
  tokens: n,
3043
3212
  location: r,
3044
- parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
3213
+ parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
3045
3214
  },
3046
3215
  err: null
3047
3216
  };
3048
3217
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3049
- for (var s, a = !1, u = [], l = /* @__PURE__ */ new Set(), o = i.value, h = i.location; ; ) {
3050
- if (o.length === 0) {
3218
+ for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3219
+ if (u.length === 0) {
3051
3220
  var f = this.clonePosition();
3052
3221
  if (r !== "select" && this.bumpIf("=")) {
3053
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3222
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3054
3223
  if (c.err)
3055
3224
  return c;
3056
- h = g(f, this.clonePosition()), o = this.message.slice(f.offset, this.offset());
3225
+ l = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3057
3226
  } else
3058
3227
  break;
3059
3228
  }
3060
- if (l.has(o))
3061
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3062
- o === "other" && (a = !0), this.bumpSpace();
3229
+ if (h.has(u))
3230
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3231
+ u === "other" && (o = !0), this.bumpSpace();
3063
3232
  var p = this.clonePosition();
3064
3233
  if (!this.bumpIf("{"))
3065
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3066
- var y = this.parseMessage(t + 1, r, n);
3067
- if (y.err)
3068
- return y;
3069
- var _ = this.tryParseArgumentClose(p);
3070
- if (_.err)
3071
- return _;
3072
- u.push([
3073
- o,
3234
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3235
+ var b = this.parseMessage(t + 1, r, n);
3236
+ if (b.err)
3237
+ return b;
3238
+ var g = this.tryParseArgumentClose(p);
3239
+ if (g.err)
3240
+ return g;
3241
+ a.push([
3242
+ u,
3074
3243
  {
3075
- value: y.val,
3076
- location: g(p, this.clonePosition())
3244
+ value: b.val,
3245
+ location: _(p, this.clonePosition())
3077
3246
  }
3078
- ]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
3247
+ ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
3079
3248
  }
3080
- return u.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3249
+ return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3081
3250
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3082
3251
  var n = 1, i = this.clonePosition();
3083
3252
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3084
- for (var s = !1, a = 0; !this.isEOF(); ) {
3085
- var u = this.char();
3086
- if (u >= 48 && u <= 57)
3087
- s = !0, a = a * 10 + (u - 48), this.bump();
3253
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3254
+ var a = this.char();
3255
+ if (a >= 48 && a <= 57)
3256
+ s = !0, o = o * 10 + (a - 48), this.bump();
3088
3257
  else
3089
3258
  break;
3090
3259
  }
3091
- var l = g(i, this.clonePosition());
3092
- return s ? (a *= n, wn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3260
+ var h = _(i, this.clonePosition());
3261
+ return s ? (o *= n, Vn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3093
3262
  }, e.prototype.offset = function() {
3094
3263
  return this.position.offset;
3095
3264
  }, e.prototype.isEOF = function() {
@@ -3104,7 +3273,7 @@ var Pn = (
3104
3273
  var t = this.position.offset;
3105
3274
  if (t >= this.message.length)
3106
3275
  throw Error("out of bound");
3107
- var r = Vt(this.message, t);
3276
+ var r = lr(this.message, t);
3108
3277
  if (r === void 0)
3109
3278
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3110
3279
  return r;
@@ -3123,7 +3292,7 @@ var Pn = (
3123
3292
  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);
3124
3293
  }
3125
3294
  }, e.prototype.bumpIf = function(t) {
3126
- if (ht(this.message, t, this.offset())) {
3295
+ if (_t(this.message, t, this.offset())) {
3127
3296
  for (var r = 0; r < t.length; r++)
3128
3297
  this.bump();
3129
3298
  return !0;
@@ -3145,7 +3314,7 @@ var Pn = (
3145
3314
  break;
3146
3315
  }
3147
3316
  }, e.prototype.bumpSpace = function() {
3148
- for (; !this.isEOF() && Wt(this.char()); )
3317
+ for (; !this.isEOF() && cr(this.char()); )
3149
3318
  this.bump();
3150
3319
  }, e.prototype.peek = function() {
3151
3320
  if (this.isEOF())
@@ -3155,47 +3324,47 @@ var Pn = (
3155
3324
  }, e;
3156
3325
  }()
3157
3326
  );
3158
- function ze(e) {
3327
+ function Ye(e) {
3159
3328
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3160
3329
  }
3161
- function On(e) {
3162
- return ze(e) || e === 47;
3330
+ function qn(e) {
3331
+ return Ye(e) || e === 47;
3163
3332
  }
3164
- function In(e) {
3333
+ function Qn(e) {
3165
3334
  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;
3166
3335
  }
3167
- function Wt(e) {
3336
+ function cr(e) {
3168
3337
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3169
3338
  }
3170
- function Cn(e) {
3339
+ function Yn(e) {
3171
3340
  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;
3172
3341
  }
3173
- function Ve(e) {
3342
+ function Ke(e) {
3174
3343
  e.forEach(function(t) {
3175
- if (delete t.location, Rt(t) || Dt(t))
3344
+ if (delete t.location, tr(t) || rr(t))
3176
3345
  for (var r in t.options)
3177
- delete t.options[r].location, Ve(t.options[r].value);
3346
+ delete t.options[r].location, Ke(t.options[r].value);
3178
3347
  else
3179
- Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ge(t.style) ? delete t.style.location : Ut(t) && Ve(t.children);
3348
+ Yt(t) && ir(t.style) || (Kt(t) || er(t)) && Ze(t.style) ? delete t.style.location : nr(t) && Ke(t.children);
3180
3349
  });
3181
3350
  }
3182
- function Nn(e, t) {
3183
- t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3184
- var r = new Pn(e, t).parse();
3351
+ function Kn(e, t) {
3352
+ t === void 0 && (t = {}), t = Be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3353
+ var r = new Jn(e, t).parse();
3185
3354
  if (r.err) {
3186
- var n = SyntaxError(b[r.err.kind]);
3355
+ var n = SyntaxError(y[r.err.kind]);
3187
3356
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3188
3357
  }
3189
- return t != null && t.captureLocation || Ve(r.val), r.val;
3358
+ return t != null && t.captureLocation || Ke(r.val), r.val;
3190
3359
  }
3191
- var V;
3360
+ var Z;
3192
3361
  (function(e) {
3193
3362
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3194
- })(V || (V = {}));
3195
- var we = (
3363
+ })(Z || (Z = {}));
3364
+ var Ne = (
3196
3365
  /** @class */
3197
3366
  function(e) {
3198
- He(t, e);
3367
+ Ie(t, e);
3199
3368
  function t(r, n, i) {
3200
3369
  var s = e.call(this, r) || this;
3201
3370
  return s.code = n, s.originalMessage = i, s;
@@ -3204,155 +3373,155 @@ var we = (
3204
3373
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3205
3374
  }, t;
3206
3375
  }(Error)
3207
- ), mt = (
3376
+ ), xt = (
3208
3377
  /** @class */
3209
3378
  function(e) {
3210
- He(t, e);
3379
+ Ie(t, e);
3211
3380
  function t(r, n, i, s) {
3212
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
3381
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, s) || this;
3213
3382
  }
3214
3383
  return t;
3215
- }(we)
3216
- ), Ln = (
3384
+ }(Ne)
3385
+ ), ei = (
3217
3386
  /** @class */
3218
3387
  function(e) {
3219
- He(t, e);
3388
+ Ie(t, e);
3220
3389
  function t(r, n, i) {
3221
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3390
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3222
3391
  }
3223
3392
  return t;
3224
- }(we)
3225
- ), Mn = (
3393
+ }(Ne)
3394
+ ), ti = (
3226
3395
  /** @class */
3227
3396
  function(e) {
3228
- He(t, e);
3397
+ Ie(t, e);
3229
3398
  function t(r, n) {
3230
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3399
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3231
3400
  }
3232
3401
  return t;
3233
- }(we)
3234
- ), H;
3402
+ }(Ne)
3403
+ ), w;
3235
3404
  (function(e) {
3236
3405
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3237
- })(H || (H = {}));
3238
- function $n(e) {
3406
+ })(w || (w = {}));
3407
+ function ri(e) {
3239
3408
  return e.length < 2 ? e : e.reduce(function(t, r) {
3240
3409
  var n = t[t.length - 1];
3241
- return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3410
+ return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3242
3411
  }, []);
3243
3412
  }
3244
- function Rn(e) {
3413
+ function ni(e) {
3245
3414
  return typeof e == "function";
3246
3415
  }
3247
- function ge(e, t, r, n, i, s, a) {
3248
- if (e.length === 1 && at(e[0]))
3416
+ function xe(e, t, r, n, i, s, o) {
3417
+ if (e.length === 1 && pt(e[0]))
3249
3418
  return [
3250
3419
  {
3251
- type: H.literal,
3420
+ type: w.literal,
3252
3421
  value: e[0].value
3253
3422
  }
3254
3423
  ];
3255
- for (var u = [], l = 0, o = e; l < o.length; l++) {
3256
- var h = o[l];
3257
- if (at(h)) {
3258
- u.push({
3259
- type: H.literal,
3260
- value: h.value
3424
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3425
+ var l = u[h];
3426
+ if (pt(l)) {
3427
+ a.push({
3428
+ type: w.literal,
3429
+ value: l.value
3261
3430
  });
3262
3431
  continue;
3263
3432
  }
3264
- if (sn(h)) {
3265
- typeof s == "number" && u.push({
3266
- type: H.literal,
3433
+ if (wn(l)) {
3434
+ typeof s == "number" && a.push({
3435
+ type: w.literal,
3267
3436
  value: r.getNumberFormat(t).format(s)
3268
3437
  });
3269
3438
  continue;
3270
3439
  }
3271
- var f = h.value;
3440
+ var f = l.value;
3272
3441
  if (!(i && f in i))
3273
- throw new Mn(f, a);
3442
+ throw new ti(f, o);
3274
3443
  var c = i[f];
3275
- if (nn(h)) {
3276
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3277
- type: typeof c == "string" ? H.literal : H.object,
3444
+ if (Hn(l)) {
3445
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3446
+ type: typeof c == "string" ? w.literal : w.object,
3278
3447
  value: c
3279
3448
  });
3280
3449
  continue;
3281
3450
  }
3282
- if (Mt(h)) {
3283
- var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3284
- u.push({
3285
- type: H.literal,
3451
+ if (Kt(l)) {
3452
+ var p = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
3453
+ a.push({
3454
+ type: w.literal,
3286
3455
  value: r.getDateTimeFormat(t, p).format(c)
3287
3456
  });
3288
3457
  continue;
3289
3458
  }
3290
- if ($t(h)) {
3291
- var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3292
- u.push({
3293
- type: H.literal,
3459
+ if (er(l)) {
3460
+ var p = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
3461
+ a.push({
3462
+ type: w.literal,
3294
3463
  value: r.getDateTimeFormat(t, p).format(c)
3295
3464
  });
3296
3465
  continue;
3297
3466
  }
3298
- if (Lt(h)) {
3299
- var p = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
3300
- p && p.scale && (c = c * (p.scale || 1)), u.push({
3301
- type: H.literal,
3467
+ if (Yt(l)) {
3468
+ var p = typeof l.style == "string" ? n.number[l.style] : ir(l.style) ? l.style.parsedOptions : void 0;
3469
+ p && p.scale && (c = c * (p.scale || 1)), a.push({
3470
+ type: w.literal,
3302
3471
  value: r.getNumberFormat(t, p).format(c)
3303
3472
  });
3304
3473
  continue;
3305
3474
  }
3306
- if (Ut(h)) {
3307
- var y = h.children, _ = h.value, T = i[_];
3308
- if (!Rn(T))
3309
- throw new Ln(_, "function", a);
3310
- var w = ge(y, t, r, n, i, s), d = T(w.map(function(M) {
3311
- return M.value;
3475
+ if (nr(l)) {
3476
+ var b = l.children, g = l.value, v = i[g];
3477
+ if (!ni(v))
3478
+ throw new ei(g, "function", o);
3479
+ var T = xe(b, t, r, n, i, s), d = v(T.map(function($) {
3480
+ return $.value;
3312
3481
  }));
3313
- Array.isArray(d) || (d = [d]), u.push.apply(u, d.map(function(M) {
3482
+ Array.isArray(d) || (d = [d]), a.push.apply(a, d.map(function($) {
3314
3483
  return {
3315
- type: typeof M == "string" ? H.literal : H.object,
3316
- value: M
3484
+ type: typeof $ == "string" ? w.literal : w.object,
3485
+ value: $
3317
3486
  };
3318
3487
  }));
3319
3488
  }
3320
- if (Rt(h)) {
3321
- var m = h.options[c] || h.options.other;
3489
+ if (tr(l)) {
3490
+ var m = l.options[c] || l.options.other;
3322
3491
  if (!m)
3323
- throw new mt(h.value, c, Object.keys(h.options), a);
3324
- u.push.apply(u, ge(m.value, t, r, n, i));
3492
+ throw new xt(l.value, c, Object.keys(l.options), o);
3493
+ a.push.apply(a, xe(m.value, t, r, n, i));
3325
3494
  continue;
3326
3495
  }
3327
- if (Dt(h)) {
3328
- var m = h.options["=".concat(c)];
3496
+ if (rr(l)) {
3497
+ var m = l.options["=".concat(c)];
3329
3498
  if (!m) {
3330
3499
  if (!Intl.PluralRules)
3331
- throw new we(`Intl.PluralRules is not available in this environment.
3500
+ throw new Ne(`Intl.PluralRules is not available in this environment.
3332
3501
  Try polyfilling it using "@formatjs/intl-pluralrules"
3333
- `, V.MISSING_INTL_API, a);
3334
- var E = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3335
- m = h.options[E] || h.options.other;
3502
+ `, Z.MISSING_INTL_API, o);
3503
+ var E = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3504
+ m = l.options[E] || l.options.other;
3336
3505
  }
3337
3506
  if (!m)
3338
- throw new mt(h.value, c, Object.keys(h.options), a);
3339
- u.push.apply(u, ge(m.value, t, r, n, i, c - (h.offset || 0)));
3507
+ throw new xt(l.value, c, Object.keys(l.options), o);
3508
+ a.push.apply(a, xe(m.value, t, r, n, i, c - (l.offset || 0)));
3340
3509
  continue;
3341
3510
  }
3342
3511
  }
3343
- return $n(u);
3512
+ return ri(a);
3344
3513
  }
3345
- function Dn(e, t) {
3346
- return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3347
- return r[n] = B(B({}, e[n]), t[n] || {}), r;
3514
+ function ii(e, t) {
3515
+ return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3516
+ return r[n] = A(A({}, e[n]), t[n] || {}), r;
3348
3517
  }, {})) : e;
3349
3518
  }
3350
- function Un(e, t) {
3519
+ function si(e, t) {
3351
3520
  return t ? Object.keys(e).reduce(function(r, n) {
3352
- return r[n] = Dn(e[n], t[n]), r;
3353
- }, B({}, e)) : e;
3521
+ return r[n] = ii(e[n], t[n]), r;
3522
+ }, A({}, e)) : e;
3354
3523
  }
3355
- function Le(e) {
3524
+ function Fe(e) {
3356
3525
  return {
3357
3526
  create: function() {
3358
3527
  return {
@@ -3366,39 +3535,39 @@ function Le(e) {
3366
3535
  }
3367
3536
  };
3368
3537
  }
3369
- function Gn(e) {
3538
+ function oi(e) {
3370
3539
  return e === void 0 && (e = {
3371
3540
  number: {},
3372
3541
  dateTime: {},
3373
3542
  pluralRules: {}
3374
3543
  }), {
3375
- getNumberFormat: Ie(function() {
3544
+ getNumberFormat: Ue(function() {
3376
3545
  for (var t, r = [], n = 0; n < arguments.length; n++)
3377
3546
  r[n] = arguments[n];
3378
- return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3547
+ return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
3379
3548
  }, {
3380
- cache: Le(e.number),
3381
- strategy: Ce.variadic
3549
+ cache: Fe(e.number),
3550
+ strategy: Ge.variadic
3382
3551
  }),
3383
- getDateTimeFormat: Ie(function() {
3552
+ getDateTimeFormat: Ue(function() {
3384
3553
  for (var t, r = [], n = 0; n < arguments.length; n++)
3385
3554
  r[n] = arguments[n];
3386
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3555
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
3387
3556
  }, {
3388
- cache: Le(e.dateTime),
3389
- strategy: Ce.variadic
3557
+ cache: Fe(e.dateTime),
3558
+ strategy: Ge.variadic
3390
3559
  }),
3391
- getPluralRules: Ie(function() {
3560
+ getPluralRules: Ue(function() {
3392
3561
  for (var t, r = [], n = 0; n < arguments.length; n++)
3393
3562
  r[n] = arguments[n];
3394
- return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3563
+ return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
3395
3564
  }, {
3396
- cache: Le(e.pluralRules),
3397
- strategy: Ce.variadic
3565
+ cache: Fe(e.pluralRules),
3566
+ strategy: Ge.variadic
3398
3567
  })
3399
3568
  };
3400
3569
  }
3401
- var Zt = (
3570
+ var fr = (
3402
3571
  /** @class */
3403
3572
  function() {
3404
3573
  function e(t, r, n, i) {
@@ -3408,35 +3577,35 @@ var Zt = (
3408
3577
  number: {},
3409
3578
  dateTime: {},
3410
3579
  pluralRules: {}
3411
- }, this.format = function(l) {
3412
- var o = s.formatToParts(l);
3413
- if (o.length === 1)
3414
- return o[0].value;
3415
- var h = o.reduce(function(f, c) {
3416
- return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3580
+ }, this.format = function(h) {
3581
+ var u = s.formatToParts(h);
3582
+ if (u.length === 1)
3583
+ return u[0].value;
3584
+ var l = u.reduce(function(f, c) {
3585
+ return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3417
3586
  }, []);
3418
- return h.length <= 1 ? h[0] || "" : h;
3419
- }, this.formatToParts = function(l) {
3420
- return ge(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3587
+ return l.length <= 1 ? l[0] || "" : l;
3588
+ }, this.formatToParts = function(h) {
3589
+ return xe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3421
3590
  }, this.resolvedOptions = function() {
3422
- var l;
3591
+ var h;
3423
3592
  return {
3424
- locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3593
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3425
3594
  };
3426
3595
  }, this.getAst = function() {
3427
3596
  return s.ast;
3428
3597
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3429
3598
  if (this.message = t, !e.__parse)
3430
3599
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3431
- var a = i || {};
3432
- a.formatters;
3433
- var u = Jr(a, ["formatters"]);
3434
- this.ast = e.__parse(t, B(B({}, u), { locale: this.resolvedLocale }));
3600
+ var o = i || {};
3601
+ o.formatters;
3602
+ var a = gn(o, ["formatters"]);
3603
+ this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3435
3604
  } else
3436
3605
  this.ast = t;
3437
3606
  if (!Array.isArray(this.ast))
3438
3607
  throw new TypeError("A message must be provided as a String or AST.");
3439
- this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
3608
+ this.formats = si(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
3440
3609
  }
3441
3610
  return Object.defineProperty(e, "defaultLocale", {
3442
3611
  get: function() {
@@ -3449,7 +3618,7 @@ var Zt = (
3449
3618
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3450
3619
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3451
3620
  }
3452
- }, e.__parse = Nn, e.formats = {
3621
+ }, e.__parse = Kn, e.formats = {
3453
3622
  number: {
3454
3623
  integer: {
3455
3624
  maximumFractionDigits: 0
@@ -3510,7 +3679,7 @@ var Zt = (
3510
3679
  }, e;
3511
3680
  }()
3512
3681
  );
3513
- function kn(e, t) {
3682
+ function ai(e, t) {
3514
3683
  if (t == null)
3515
3684
  return;
3516
3685
  if (t in e)
@@ -3531,101 +3700,101 @@ function kn(e, t) {
3531
3700
  n = void 0;
3532
3701
  return n;
3533
3702
  }
3534
- const C = {}, Fn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Jt = (e, t) => {
3703
+ const L = {}, ui = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), mr = (e, t) => {
3535
3704
  if (t == null)
3536
3705
  return;
3537
- if (t in C && e in C[t])
3538
- return C[t][e];
3539
- const r = se(t);
3706
+ if (t in L && e in L[t])
3707
+ return L[t][e];
3708
+ const r = he(t);
3540
3709
  for (let n = 0; n < r.length; n++) {
3541
- const i = r[n], s = zn(i, e);
3710
+ const i = r[n], s = hi(i, e);
3542
3711
  if (s)
3543
- return Fn(e, t, s);
3712
+ return ui(e, t, s);
3544
3713
  }
3545
3714
  };
3546
- let Je;
3547
- const ie = Te({});
3548
- function jn(e) {
3549
- return Je[e] || null;
3715
+ let it;
3716
+ const le = Ce({});
3717
+ function li(e) {
3718
+ return it[e] || null;
3550
3719
  }
3551
- function qt(e) {
3552
- return e in Je;
3720
+ function dr(e) {
3721
+ return e in it;
3553
3722
  }
3554
- function zn(e, t) {
3555
- if (!qt(e))
3723
+ function hi(e, t) {
3724
+ if (!dr(e))
3556
3725
  return null;
3557
- const r = jn(e);
3558
- return kn(r, t);
3726
+ const r = li(e);
3727
+ return ai(r, t);
3559
3728
  }
3560
- function Vn(e) {
3729
+ function ci(e) {
3561
3730
  if (e == null)
3562
3731
  return;
3563
- const t = se(e);
3732
+ const t = he(e);
3564
3733
  for (let r = 0; r < t.length; r++) {
3565
3734
  const n = t[r];
3566
- if (qt(n))
3735
+ if (dr(n))
3567
3736
  return n;
3568
3737
  }
3569
3738
  }
3570
- function Qt(e, ...t) {
3571
- delete C[e], ie.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3739
+ function pr(e, ...t) {
3740
+ delete L[e], le.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
3572
3741
  }
3573
- W(
3574
- [ie],
3742
+ q(
3743
+ [le],
3575
3744
  ([e]) => Object.keys(e)
3576
3745
  );
3577
- ie.subscribe((e) => Je = e);
3578
- const ye = {};
3579
- function Xn(e, t) {
3580
- ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3746
+ le.subscribe((e) => it = e);
3747
+ const Te = {};
3748
+ function fi(e, t) {
3749
+ Te[e].delete(t), Te[e].size === 0 && delete Te[e];
3581
3750
  }
3582
- function Yt(e) {
3583
- return ye[e];
3751
+ function gr(e) {
3752
+ return Te[e];
3584
3753
  }
3585
- function Wn(e) {
3586
- return se(e).map((t) => {
3587
- const r = Yt(t);
3754
+ function mi(e) {
3755
+ return he(e).map((t) => {
3756
+ const r = gr(t);
3588
3757
  return [t, r ? [...r] : []];
3589
3758
  }).filter(([, t]) => t.length > 0);
3590
3759
  }
3591
- function Ee(e) {
3592
- return e == null ? !1 : se(e).some(
3760
+ function Ae(e) {
3761
+ return e == null ? !1 : he(e).some(
3593
3762
  (t) => {
3594
3763
  var r;
3595
- return (r = Yt(t)) == null ? void 0 : r.size;
3764
+ return (r = gr(t)) == null ? void 0 : r.size;
3596
3765
  }
3597
3766
  );
3598
3767
  }
3599
- function Zn(e, t) {
3768
+ function di(e, t) {
3600
3769
  return Promise.all(
3601
- t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
3602
- ).then((n) => Qt(e, ...n));
3770
+ t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
3771
+ ).then((n) => pr(e, ...n));
3603
3772
  }
3604
- const J = {};
3605
- function Kt(e) {
3606
- if (!Ee(e))
3607
- return e in J ? J[e] : Promise.resolve();
3608
- const t = Wn(e);
3609
- return J[e] = Promise.all(
3773
+ const K = {};
3774
+ function br(e) {
3775
+ if (!Ae(e))
3776
+ return e in K ? K[e] : Promise.resolve();
3777
+ const t = mi(e);
3778
+ return K[e] = Promise.all(
3610
3779
  t.map(
3611
- ([r, n]) => Zn(r, n)
3780
+ ([r, n]) => di(r, n)
3612
3781
  )
3613
3782
  ).then(() => {
3614
- if (Ee(e))
3615
- return Kt(e);
3616
- delete J[e];
3617
- }), J[e];
3783
+ if (Ae(e))
3784
+ return br(e);
3785
+ delete K[e];
3786
+ }), K[e];
3618
3787
  }
3619
- var dt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, Qn = (e, t) => {
3788
+ var Tt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, bi = (e, t) => {
3620
3789
  var r = {};
3621
3790
  for (var n in e)
3622
- Jn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3623
- if (e != null && dt)
3624
- for (var n of dt(e))
3625
- t.indexOf(n) < 0 && qn.call(e, n) && (r[n] = e[n]);
3791
+ pi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3792
+ if (e != null && Tt)
3793
+ for (var n of Tt(e))
3794
+ t.indexOf(n) < 0 && gi.call(e, n) && (r[n] = e[n]);
3626
3795
  return r;
3627
3796
  };
3628
- const Yn = {
3797
+ const yi = {
3629
3798
  number: {
3630
3799
  scientific: { notation: "scientific" },
3631
3800
  engineering: { notation: "engineering" },
@@ -3655,183 +3824,183 @@ const Yn = {
3655
3824
  }
3656
3825
  }
3657
3826
  };
3658
- function Kn({ locale: e, id: t }) {
3827
+ function _i({ locale: e, id: t }) {
3659
3828
  console.warn(
3660
- `[svelte-i18n] The message "${t}" was not found in "${se(
3829
+ `[svelte-i18n] The message "${t}" was not found in "${he(
3661
3830
  e
3662
- ).join('", "')}".${Ee(L()) ? `
3831
+ ).join('", "')}".${Ae(M()) ? `
3663
3832
 
3664
3833
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3665
3834
  );
3666
3835
  }
3667
- const ei = {
3836
+ const Ei = {
3668
3837
  fallbackLocale: null,
3669
3838
  loadingDelay: 200,
3670
- formats: Yn,
3839
+ formats: yi,
3671
3840
  warnOnMissingMessages: !0,
3672
3841
  handleMissingMessage: void 0,
3673
3842
  ignoreTag: !0
3674
- }, Q = ei;
3675
- function X() {
3676
- return Q;
3843
+ }, te = Ei;
3844
+ function J() {
3845
+ return te;
3677
3846
  }
3678
- function ti(e) {
3679
- const t = e, { formats: r } = t, n = Qn(t, ["formats"]);
3847
+ function vi(e) {
3848
+ const t = e, { formats: r } = t, n = bi(t, ["formats"]);
3680
3849
  let i = e.fallbackLocale;
3681
3850
  if (e.initialLocale)
3682
3851
  try {
3683
- Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3852
+ fr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3684
3853
  } catch (s) {
3685
3854
  console.warn(
3686
3855
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3687
3856
  );
3688
3857
  }
3689
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
3858
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = _i : console.warn(
3690
3859
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3691
- )), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), D.set(i);
3860
+ )), Object.assign(te, n, { initialLocale: i }), r && ("number" in r && Object.assign(te.formats.number, r.number), "date" in r && Object.assign(te.formats.date, r.date), "time" in r && Object.assign(te.formats.time, r.time)), G.set(i);
3692
3861
  }
3693
- const Me = Te(!1);
3694
- var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
3862
+ const je = Ce(!1);
3863
+ var xi = Object.defineProperty, Ti = Object.defineProperties, Hi = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
3695
3864
  for (var r in t || (t = {}))
3696
- si.call(t, r) && bt(e, r, t[r]);
3697
- if (pt)
3698
- for (var r of pt(t))
3699
- ai.call(t, r) && bt(e, r, t[r]);
3865
+ wi.call(t, r) && wt(e, r, t[r]);
3866
+ if (Ht)
3867
+ for (var r of Ht(t))
3868
+ Si.call(t, r) && wt(e, r, t[r]);
3700
3869
  return e;
3701
- }, ui = (e, t) => ni(e, ii(t));
3702
- let Xe;
3703
- const ve = Te(null);
3704
- function gt(e) {
3870
+ }, Ai = (e, t) => Ti(e, Hi(t));
3871
+ let et;
3872
+ const Pe = Ce(null);
3873
+ function St(e) {
3705
3874
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3706
3875
  }
3707
- function se(e, t = X().fallbackLocale) {
3708
- const r = gt(e);
3709
- return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3876
+ function he(e, t = J().fallbackLocale) {
3877
+ const r = St(e);
3878
+ return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
3710
3879
  }
3711
- function L() {
3712
- return Xe != null ? Xe : void 0;
3880
+ function M() {
3881
+ return et != null ? et : void 0;
3713
3882
  }
3714
- ve.subscribe((e) => {
3715
- Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3883
+ Pe.subscribe((e) => {
3884
+ et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3716
3885
  });
3717
- const li = (e) => {
3718
- if (e && Vn(e) && Ee(e)) {
3719
- const { loadingDelay: t } = X();
3886
+ const Pi = (e) => {
3887
+ if (e && ci(e) && Ae(e)) {
3888
+ const { loadingDelay: t } = J();
3720
3889
  let r;
3721
- return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
3722
- () => Me.set(!0),
3890
+ return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
3891
+ () => je.set(!0),
3723
3892
  t
3724
- ) : Me.set(!0), Kt(e).then(() => {
3725
- ve.set(e);
3893
+ ) : je.set(!0), br(e).then(() => {
3894
+ Pe.set(e);
3726
3895
  }).finally(() => {
3727
- clearTimeout(r), Me.set(!1);
3896
+ clearTimeout(r), je.set(!1);
3728
3897
  });
3729
3898
  }
3730
- return ve.set(e);
3731
- }, D = ui(oi({}, ve), {
3732
- set: li
3733
- }), Se = (e) => {
3899
+ return Pe.set(e);
3900
+ }, G = Ai(Bi({}, Pe), {
3901
+ set: Pi
3902
+ }), Le = (e) => {
3734
3903
  const t = /* @__PURE__ */ Object.create(null);
3735
3904
  return (n) => {
3736
3905
  const i = JSON.stringify(n);
3737
3906
  return i in t ? t[i] : t[i] = e(n);
3738
3907
  };
3739
3908
  };
3740
- var hi = Object.defineProperty, xe = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3909
+ var Oi = Object.defineProperty, Oe = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
3741
3910
  for (var r in t || (t = {}))
3742
- er.call(t, r) && yt(e, r, t[r]);
3743
- if (xe)
3744
- for (var r of xe(t))
3745
- tr.call(t, r) && yt(e, r, t[r]);
3911
+ yr.call(t, r) && Bt(e, r, t[r]);
3912
+ if (Oe)
3913
+ for (var r of Oe(t))
3914
+ _r.call(t, r) && Bt(e, r, t[r]);
3746
3915
  return e;
3747
- }, Z = (e, t) => {
3916
+ }, Q = (e, t) => {
3748
3917
  var r = {};
3749
3918
  for (var n in e)
3750
- er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3751
- if (e != null && xe)
3752
- for (var n of xe(e))
3753
- t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
3919
+ yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3920
+ if (e != null && Oe)
3921
+ for (var n of Oe(e))
3922
+ t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
3754
3923
  return r;
3755
3924
  };
3756
- const te = (e, t) => {
3757
- const { formats: r } = X();
3925
+ const oe = (e, t) => {
3926
+ const { formats: r } = J();
3758
3927
  if (e in r && t in r[e])
3759
3928
  return r[e][t];
3760
3929
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3761
- }, ci = Se(
3930
+ }, Ci = Le(
3762
3931
  (e) => {
3763
- var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3932
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3764
3933
  if (r == null)
3765
3934
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3766
- return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3935
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3767
3936
  }
3768
- ), fi = Se(
3937
+ ), Ii = Le(
3769
3938
  (e) => {
3770
- var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3939
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3771
3940
  if (r == null)
3772
3941
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3773
- return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3942
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3774
3943
  }
3775
- ), mi = Se(
3944
+ ), Ni = Le(
3776
3945
  (e) => {
3777
- var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
3946
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3778
3947
  if (r == null)
3779
3948
  throw new Error(
3780
3949
  '[svelte-i18n] A "locale" must be set to format time values'
3781
3950
  );
3782
- return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3951
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3783
3952
  }
3784
- ), di = (e = {}) => {
3953
+ ), Li = (e = {}) => {
3785
3954
  var t = e, {
3786
- locale: r = L()
3787
- } = t, n = Z(t, [
3955
+ locale: r = M()
3956
+ } = t, n = Q(t, [
3788
3957
  "locale"
3789
3958
  ]);
3790
- return ci(qe({ locale: r }, n));
3791
- }, pi = (e = {}) => {
3959
+ return Ci(st({ locale: r }, n));
3960
+ }, Mi = (e = {}) => {
3792
3961
  var t = e, {
3793
- locale: r = L()
3794
- } = t, n = Z(t, [
3962
+ locale: r = M()
3963
+ } = t, n = Q(t, [
3795
3964
  "locale"
3796
3965
  ]);
3797
- return fi(qe({ locale: r }, n));
3798
- }, bi = (e = {}) => {
3966
+ return Ii(st({ locale: r }, n));
3967
+ }, $i = (e = {}) => {
3799
3968
  var t = e, {
3800
- locale: r = L()
3801
- } = t, n = Z(t, [
3969
+ locale: r = M()
3970
+ } = t, n = Q(t, [
3802
3971
  "locale"
3803
3972
  ]);
3804
- return mi(qe({ locale: r }, n));
3805
- }, gi = Se(
3973
+ return Ni(st({ locale: r }, n));
3974
+ }, Ri = Le(
3806
3975
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3807
- (e, t = L()) => new Zt(e, t, X().formats, {
3808
- ignoreTag: X().ignoreTag
3976
+ (e, t = M()) => new fr(e, t, J().formats, {
3977
+ ignoreTag: J().ignoreTag
3809
3978
  })
3810
- ), yi = (e, t = {}) => {
3979
+ ), Di = (e, t = {}) => {
3811
3980
  var r, n, i, s;
3812
- let a = t;
3813
- typeof e == "object" && (a = e, e = a.id);
3981
+ let o = t;
3982
+ typeof e == "object" && (o = e, e = o.id);
3814
3983
  const {
3815
- values: u,
3816
- locale: l = L(),
3817
- default: o
3818
- } = a;
3819
- if (l == null)
3984
+ values: a,
3985
+ locale: h = M(),
3986
+ default: u
3987
+ } = o;
3988
+ if (h == null)
3820
3989
  throw new Error(
3821
3990
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3822
3991
  );
3823
- let h = Jt(e, l);
3824
- if (!h)
3825
- h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
3826
- else if (typeof h != "string")
3992
+ let l = mr(e, h);
3993
+ if (!l)
3994
+ l = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3995
+ else if (typeof l != "string")
3827
3996
  return console.warn(
3828
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3829
- ), h;
3830
- if (!u)
3831
- return h;
3832
- let f = h;
3997
+ `[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.`
3998
+ ), l;
3999
+ if (!a)
4000
+ return l;
4001
+ let f = l;
3833
4002
  try {
3834
- f = gi(h, l).format(u);
4003
+ f = Ri(l, h).format(a);
3835
4004
  } catch (c) {
3836
4005
  c instanceof Error && console.warn(
3837
4006
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3839,18 +4008,18 @@ const te = (e, t) => {
3839
4008
  );
3840
4009
  }
3841
4010
  return f;
3842
- }, _i = (e, t) => bi(t).format(e), Ei = (e, t) => pi(t).format(e), vi = (e, t) => di(t).format(e), xi = (e, t = L()) => Jt(e, t), Ti = W([D, ie], () => yi);
3843
- W([D], () => _i);
3844
- W([D], () => Ei);
3845
- W([D], () => vi);
3846
- W([D, ie], () => xi);
3847
- function Hi(e, t) {
4011
+ }, Ui = (e, t) => $i(t).format(e), Gi = (e, t) => Mi(t).format(e), ki = (e, t) => Li(t).format(e), Fi = (e, t = M()) => mr(e, t), ji = q([G, le], () => Di);
4012
+ q([G], () => Ui);
4013
+ q([G], () => Gi);
4014
+ q([G], () => ki);
4015
+ q([G, le], () => Fi);
4016
+ function zi(e, t) {
3848
4017
  if (e) {
3849
4018
  const r = document.createElement("style");
3850
4019
  r.innerHTML = t, e.appendChild(r);
3851
4020
  }
3852
4021
  }
3853
- function wi(e, t) {
4022
+ function Vi(e, t) {
3854
4023
  if (!e || !t)
3855
4024
  return;
3856
4025
  const r = new URL(t);
@@ -3861,7 +4030,7 @@ function wi(e, t) {
3861
4030
  console.error("There was an error while trying to load client styling from URL", n);
3862
4031
  });
3863
4032
  }
3864
- function Si(e, t, r) {
4033
+ function Xi(e, t, r) {
3865
4034
  if (window.emMessageBus) {
3866
4035
  const n = document.createElement("style");
3867
4036
  window.emMessageBus.subscribe(t, (i) => {
@@ -3869,15 +4038,15 @@ function Si(e, t, r) {
3869
4038
  });
3870
4039
  }
3871
4040
  }
3872
- function _t(e, t) {
3873
- Qt(e, t);
4041
+ function At(e, t) {
4042
+ pr(e, t);
3874
4043
  }
3875
- function Bi(e) {
3876
- ti({
4044
+ function Wi(e) {
4045
+ vi({
3877
4046
  fallbackLocale: "en"
3878
- }), D.set(e);
4047
+ }), G.set(e);
3879
4048
  }
3880
- const Et = {
4049
+ const Pt = {
3881
4050
  en: {
3882
4051
  errorGeneralTitle: "Error Occurred",
3883
4052
  errorGeneralText: "Something went wrong",
@@ -3931,74 +4100,74 @@ const Et = {
3931
4100
  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."
3932
4101
  }
3933
4102
  };
3934
- function Ai(e) {
3935
- cr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
4103
+ function Zi(e) {
4104
+ Pr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3936
4105
  }
3937
- const Pi = (e) => ({}), vt = (e) => ({}), Oi = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({}), Ci = (e) => ({}), Ht = (e) => ({ class: "CashierErrorIcon" });
3938
- function wt(e) {
4106
+ const Ji = (e) => ({}), Ot = (e) => ({}), qi = (e) => ({}), Ct = (e) => ({}), Qi = (e) => ({}), It = (e) => ({}), Yi = (e) => ({}), Nt = (e) => ({ class: "CashierErrorIcon" });
4107
+ function Lt(e) {
3939
4108
  let t, r;
3940
4109
  return {
3941
4110
  c() {
3942
- t = I("ui-image"), nt(t.src, r = `${/*assetsurl*/
3943
- e[0]}/error-general-icon.png`) || fe(t, "src", r), fe(t, "width", "300px"), fe(t, "alt", "error");
4111
+ t = P("ui-image"), ft(t.src, r = `${/*assetsurl*/
4112
+ e[0]}/error-general-icon.png`) || be(t, "src", r), be(t, "width", "300px"), be(t, "alt", "error");
3944
4113
  },
3945
4114
  m(n, i) {
3946
- R(n, t, i);
4115
+ U(n, t, i);
3947
4116
  },
3948
4117
  p(n, i) {
3949
4118
  i & /*assetsurl*/
3950
- 1 && !nt(t.src, r = `${/*assetsurl*/
3951
- n[0]}/error-general-icon.png`) && fe(t, "src", r);
4119
+ 1 && !ft(t.src, r = `${/*assetsurl*/
4120
+ n[0]}/error-general-icon.png`) && be(t, "src", r);
3952
4121
  },
3953
4122
  d(n) {
3954
- n && N(t);
4123
+ n && I(t);
3955
4124
  }
3956
4125
  };
3957
4126
  }
3958
- function Ni(e) {
4127
+ function Ki(e) {
3959
4128
  let t, r = (
3960
4129
  /*assetsurl*/
3961
- e[0] && wt(e)
4130
+ e[0] && Lt(e)
3962
4131
  );
3963
4132
  return {
3964
4133
  c() {
3965
- r && r.c(), t = dr();
4134
+ r && r.c(), t = Cr();
3966
4135
  },
3967
4136
  m(n, i) {
3968
- r && r.m(n, i), R(n, t, i);
4137
+ r && r.m(n, i), U(n, t, i);
3969
4138
  },
3970
4139
  p(n, i) {
3971
4140
  /*assetsurl*/
3972
- n[0] ? r ? r.p(n, i) : (r = wt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4141
+ n[0] ? r ? r.p(n, i) : (r = Lt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3973
4142
  },
3974
4143
  d(n) {
3975
- n && N(t), r && r.d(n);
4144
+ n && I(t), r && r.d(n);
3976
4145
  }
3977
4146
  };
3978
4147
  }
3979
- function Li(e) {
4148
+ function es(e) {
3980
4149
  let t, r = (
3981
4150
  /*$_*/
3982
4151
  e[3]("errorGeneralTitle") + ""
3983
4152
  ), n;
3984
4153
  return {
3985
4154
  c() {
3986
- t = I("span"), n = ne(r), $(t, "class", "CashierErrorTitle");
4155
+ t = P("span"), n = ue(r), R(t, "class", "CashierErrorTitle");
3987
4156
  },
3988
4157
  m(i, s) {
3989
- R(i, t, s), P(t, n);
4158
+ U(i, t, s), C(t, n);
3990
4159
  },
3991
4160
  p(i, s) {
3992
4161
  s & /*$_*/
3993
4162
  8 && r !== (r = /*$_*/
3994
- i[3]("errorGeneralTitle") + "") && Ze(n, r);
4163
+ i[3]("errorGeneralTitle") + "") && nt(n, r);
3995
4164
  },
3996
4165
  d(i) {
3997
- i && N(t);
4166
+ i && I(t);
3998
4167
  }
3999
4168
  };
4000
4169
  }
4001
- function Mi(e) {
4170
+ function ts(e) {
4002
4171
  let t, r = (
4003
4172
  /*$_*/
4004
4173
  e[3](`${/*errorcode*/
@@ -4006,246 +4175,246 @@ function Mi(e) {
4006
4175
  ), n;
4007
4176
  return {
4008
4177
  c() {
4009
- t = I("span"), n = ne(r), $(t, "class", "CashierErrorText");
4178
+ t = P("span"), n = ue(r), R(t, "class", "CashierErrorText");
4010
4179
  },
4011
4180
  m(i, s) {
4012
- R(i, t, s), P(t, n);
4181
+ U(i, t, s), C(t, n);
4013
4182
  },
4014
4183
  p(i, s) {
4015
4184
  s & /*$_, errorcode*/
4016
4185
  10 && r !== (r = /*$_*/
4017
4186
  i[3](`${/*errorcode*/
4018
- i[1] || "errorGeneralText"}`) + "") && Ze(n, r);
4187
+ i[1] || "errorGeneralText"}`) + "") && nt(n, r);
4019
4188
  },
4020
4189
  d(i) {
4021
- i && N(t);
4190
+ i && I(t);
4022
4191
  }
4023
4192
  };
4024
4193
  }
4025
- function $i(e) {
4194
+ function rs(e) {
4026
4195
  let t, r, n = (
4027
4196
  /*$_*/
4028
4197
  e[3]("errorGeneralButton") + ""
4029
- ), i, s, a;
4198
+ ), i, s, o;
4030
4199
  return {
4031
4200
  c() {
4032
- t = I("button"), r = I("span"), i = ne(n), $(t, "class", "CashierErrorButton");
4201
+ t = P("button"), r = P("span"), i = ue(n), R(t, "class", "CashierErrorButton");
4033
4202
  },
4034
- m(u, l) {
4035
- R(u, t, l), P(t, r), P(r, i), s || (a = pr(
4203
+ m(a, h) {
4204
+ U(a, t, h), C(t, r), C(r, i), s || (o = Ir(
4036
4205
  t,
4037
4206
  "click",
4038
4207
  /*close*/
4039
4208
  e[4]
4040
4209
  ), s = !0);
4041
4210
  },
4042
- p(u, l) {
4043
- l & /*$_*/
4211
+ p(a, h) {
4212
+ h & /*$_*/
4044
4213
  8 && n !== (n = /*$_*/
4045
- u[3]("errorGeneralButton") + "") && Ze(i, n);
4214
+ a[3]("errorGeneralButton") + "") && nt(i, n);
4046
4215
  },
4047
- d(u) {
4048
- u && N(t), s = !1, a();
4216
+ d(a) {
4217
+ a && I(t), s = !1, o();
4049
4218
  }
4050
4219
  };
4051
4220
  }
4052
- function Ri(e) {
4053
- let t, r, n, i, s, a;
4054
- const u = (
4221
+ function ns(e) {
4222
+ let t, r, n, i, s, o;
4223
+ const a = (
4055
4224
  /*#slots*/
4056
4225
  e[11].icon
4057
- ), l = ue(
4058
- u,
4226
+ ), h = me(
4227
+ a,
4059
4228
  e,
4060
4229
  /*$$scope*/
4061
4230
  e[10],
4062
- Ht
4063
- ), o = l || Ni(e), h = (
4231
+ Nt
4232
+ ), u = h || Ki(e), l = (
4064
4233
  /*#slots*/
4065
4234
  e[11].title
4066
- ), f = ue(
4067
- h,
4235
+ ), f = me(
4236
+ l,
4068
4237
  e,
4069
4238
  /*$$scope*/
4070
4239
  e[10],
4071
- Tt
4072
- ), c = f || Li(e), p = (
4240
+ It
4241
+ ), c = f || es(e), p = (
4073
4242
  /*#slots*/
4074
4243
  e[11].text
4075
- ), y = ue(
4244
+ ), b = me(
4076
4245
  p,
4077
4246
  e,
4078
4247
  /*$$scope*/
4079
4248
  e[10],
4080
- xt
4081
- ), _ = y || Mi(e), T = (
4249
+ Ct
4250
+ ), g = b || ts(e), v = (
4082
4251
  /*#slots*/
4083
4252
  e[11].button
4084
- ), w = ue(
4085
- T,
4253
+ ), T = me(
4254
+ v,
4086
4255
  e,
4087
4256
  /*$$scope*/
4088
4257
  e[10],
4089
- vt
4090
- ), d = w || $i(e);
4258
+ Ot
4259
+ ), d = T || rs(e);
4091
4260
  return {
4092
4261
  c() {
4093
- t = I("div"), r = I("div"), o && o.c(), n = Ae(), c && c.c(), i = Ae(), _ && _.c(), s = Ae(), d && d.c(), $(r, "class", "CashierErrorContent"), $(t, "class", "CashierError");
4262
+ t = P("div"), r = P("div"), u && u.c(), n = $e(), c && c.c(), i = $e(), g && g.c(), s = $e(), d && d.c(), R(r, "class", "CashierErrorContent"), R(t, "class", "CashierError");
4094
4263
  },
4095
4264
  m(m, E) {
4096
- R(m, t, E), P(t, r), o && o.m(r, null), P(r, n), c && c.m(r, null), P(r, i), _ && _.m(r, null), P(r, s), d && d.m(r, null), e[12](t), a = !0;
4265
+ U(m, t, E), C(t, r), u && u.m(r, null), C(r, n), c && c.m(r, null), C(r, i), g && g.m(r, null), C(r, s), d && d.m(r, null), e[12](t), o = !0;
4097
4266
  },
4098
4267
  p(m, [E]) {
4099
- l ? l.p && (!a || E & /*$$scope*/
4100
- 1024) && he(
4101
- l,
4102
- u,
4268
+ h ? h.p && (!o || E & /*$$scope*/
4269
+ 1024) && pe(
4270
+ h,
4271
+ a,
4103
4272
  m,
4104
4273
  /*$$scope*/
4105
4274
  m[10],
4106
- a ? le(
4107
- u,
4275
+ o ? de(
4276
+ a,
4108
4277
  /*$$scope*/
4109
4278
  m[10],
4110
4279
  E,
4111
- Ci
4112
- ) : ce(
4280
+ Yi
4281
+ ) : ge(
4113
4282
  /*$$scope*/
4114
4283
  m[10]
4115
4284
  ),
4116
- Ht
4117
- ) : o && o.p && (!a || E & /*assetsurl*/
4118
- 1) && o.p(m, a ? E : -1), f ? f.p && (!a || E & /*$$scope*/
4119
- 1024) && he(
4285
+ Nt
4286
+ ) : u && u.p && (!o || E & /*assetsurl*/
4287
+ 1) && u.p(m, o ? E : -1), f ? f.p && (!o || E & /*$$scope*/
4288
+ 1024) && pe(
4120
4289
  f,
4121
- h,
4290
+ l,
4122
4291
  m,
4123
4292
  /*$$scope*/
4124
4293
  m[10],
4125
- a ? le(
4126
- h,
4294
+ o ? de(
4295
+ l,
4127
4296
  /*$$scope*/
4128
4297
  m[10],
4129
4298
  E,
4130
- Ii
4131
- ) : ce(
4299
+ Qi
4300
+ ) : ge(
4132
4301
  /*$$scope*/
4133
4302
  m[10]
4134
4303
  ),
4135
- Tt
4136
- ) : c && c.p && (!a || E & /*$_*/
4137
- 8) && c.p(m, a ? E : -1), y ? y.p && (!a || E & /*$$scope*/
4138
- 1024) && he(
4139
- y,
4304
+ It
4305
+ ) : c && c.p && (!o || E & /*$_*/
4306
+ 8) && c.p(m, o ? E : -1), b ? b.p && (!o || E & /*$$scope*/
4307
+ 1024) && pe(
4308
+ b,
4140
4309
  p,
4141
4310
  m,
4142
4311
  /*$$scope*/
4143
4312
  m[10],
4144
- a ? le(
4313
+ o ? de(
4145
4314
  p,
4146
4315
  /*$$scope*/
4147
4316
  m[10],
4148
4317
  E,
4149
- Oi
4150
- ) : ce(
4318
+ qi
4319
+ ) : ge(
4151
4320
  /*$$scope*/
4152
4321
  m[10]
4153
4322
  ),
4154
- xt
4155
- ) : _ && _.p && (!a || E & /*$_, errorcode*/
4156
- 10) && _.p(m, a ? E : -1), w ? w.p && (!a || E & /*$$scope*/
4157
- 1024) && he(
4158
- w,
4323
+ Ct
4324
+ ) : g && g.p && (!o || E & /*$_, errorcode*/
4325
+ 10) && g.p(m, o ? E : -1), T ? T.p && (!o || E & /*$$scope*/
4326
+ 1024) && pe(
4159
4327
  T,
4328
+ v,
4160
4329
  m,
4161
4330
  /*$$scope*/
4162
4331
  m[10],
4163
- a ? le(
4164
- T,
4332
+ o ? de(
4333
+ v,
4165
4334
  /*$$scope*/
4166
4335
  m[10],
4167
4336
  E,
4168
- Pi
4169
- ) : ce(
4337
+ Ji
4338
+ ) : ge(
4170
4339
  /*$$scope*/
4171
4340
  m[10]
4172
4341
  ),
4173
- vt
4174
- ) : d && d.p && (!a || E & /*$_*/
4175
- 8) && d.p(m, a ? E : -1);
4342
+ Ot
4343
+ ) : d && d.p && (!o || E & /*$_*/
4344
+ 8) && d.p(m, o ? E : -1);
4176
4345
  },
4177
4346
  i(m) {
4178
- a || (q(o, m), q(c, m), q(_, m), q(d, m), a = !0);
4347
+ o || (ee(u, m), ee(c, m), ee(g, m), ee(d, m), o = !0);
4179
4348
  },
4180
4349
  o(m) {
4181
- me(o, m), me(c, m), me(_, m), me(d, m), a = !1;
4350
+ ye(u, m), ye(c, m), ye(g, m), ye(d, m), o = !1;
4182
4351
  },
4183
4352
  d(m) {
4184
- m && N(t), o && o.d(m), c && c.d(m), _ && _.d(m), d && d.d(m), e[12](null);
4353
+ m && I(t), u && u.d(m), c && c.d(m), g && g.d(m), d && d.d(m), e[12](null);
4185
4354
  }
4186
4355
  };
4187
4356
  }
4188
- function Di(e, t, r) {
4357
+ function is(e, t, r) {
4189
4358
  let n;
4190
- hr(e, Ti, (d) => r(3, n = d));
4191
- let { $$slots: i = {}, $$scope: s } = t, { assetsurl: a = "" } = t, { lang: u = "en" } = t, { errorcode: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c = "" } = t, p;
4192
- const y = () => {
4193
- Bi(u);
4194
- }, _ = () => {
4359
+ Ar(e, ji, (d) => r(3, n = d));
4360
+ let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c = "" } = t, p;
4361
+ const b = () => {
4362
+ Wi(a);
4363
+ }, g = () => {
4195
4364
  fetch(f).then((m) => m.json()).then((m) => {
4196
4365
  Object.keys(m).forEach((E) => {
4197
- _t(E, m[E]);
4366
+ At(E, m[E]);
4198
4367
  });
4199
4368
  }).catch((m) => {
4200
4369
  console.error(m);
4201
4370
  });
4202
4371
  };
4203
- Object.keys(Et).forEach((d) => {
4204
- _t(d, Et[d]);
4372
+ Object.keys(Pt).forEach((d) => {
4373
+ At(d, Pt[d]);
4205
4374
  });
4206
- const T = () => {
4375
+ const v = () => {
4207
4376
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4208
4377
  };
4209
- _r(() => () => {
4378
+ Gr(() => () => {
4210
4379
  });
4211
- function w(d) {
4212
- $e[d ? "unshift" : "push"](() => {
4380
+ function T(d) {
4381
+ Ve[d ? "unshift" : "push"](() => {
4213
4382
  p = d, r(2, p);
4214
4383
  });
4215
4384
  }
4216
4385
  return e.$$set = (d) => {
4217
- "assetsurl" in d && r(0, a = d.assetsurl), "lang" in d && r(5, u = d.lang), "errorcode" in d && r(1, l = d.errorcode), "clientstyling" in d && r(6, o = d.clientstyling), "clientstylingurl" in d && r(7, h = d.clientstylingurl), "translationurl" in d && r(8, f = d.translationurl), "mbsource" in d && r(9, c = d.mbsource), "$$scope" in d && r(10, s = d.$$scope);
4386
+ "assetsurl" in d && r(0, o = d.assetsurl), "lang" in d && r(5, a = d.lang), "errorcode" in d && r(1, h = d.errorcode), "clientstyling" in d && r(6, u = d.clientstyling), "clientstylingurl" in d && r(7, l = d.clientstylingurl), "translationurl" in d && r(8, f = d.translationurl), "mbsource" in d && r(9, c = d.mbsource), "$$scope" in d && r(10, s = d.$$scope);
4218
4387
  }, e.$$.update = () => {
4219
4388
  e.$$.dirty & /*lang*/
4220
- 32 && u && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4221
- 68 && o && p && Hi(p, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4222
- 132 && h && p && wi(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4223
- 516 && c && p && Si(p, `${c}.Style`), e.$$.dirty & /*translationurl*/
4224
- 256 && f && _();
4389
+ 32 && a && b(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4390
+ 68 && u && p && zi(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4391
+ 132 && l && p && Vi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4392
+ 516 && c && p && Xi(p, `${c}.Style`), e.$$.dirty & /*translationurl*/
4393
+ 256 && f && g();
4225
4394
  }, [
4226
- a,
4227
- l,
4395
+ o,
4396
+ h,
4228
4397
  p,
4229
4398
  n,
4230
- T,
4399
+ v,
4400
+ a,
4231
4401
  u,
4232
- o,
4233
- h,
4402
+ l,
4234
4403
  f,
4235
4404
  c,
4236
4405
  s,
4237
4406
  i,
4238
- w
4407
+ T
4239
4408
  ];
4240
4409
  }
4241
- class rr extends Or {
4410
+ class Er extends qr {
4242
4411
  constructor(t) {
4243
- super(), Ar(
4412
+ super(), Zr(
4244
4413
  this,
4245
4414
  t,
4246
- Di,
4247
- Ri,
4248
- Bt,
4415
+ is,
4416
+ ns,
4417
+ Rt,
4249
4418
  {
4250
4419
  assetsurl: 0,
4251
4420
  lang: 5,
@@ -4255,92 +4424,100 @@ class rr extends Or {
4255
4424
  translationurl: 8,
4256
4425
  mbsource: 9
4257
4426
  },
4258
- Ai
4427
+ Zi
4259
4428
  );
4260
4429
  }
4261
4430
  get assetsurl() {
4262
4431
  return this.$$.ctx[0];
4263
4432
  }
4264
4433
  set assetsurl(t) {
4265
- this.$$set({ assetsurl: t }), A();
4434
+ this.$$set({ assetsurl: t }), O();
4266
4435
  }
4267
4436
  get lang() {
4268
4437
  return this.$$.ctx[5];
4269
4438
  }
4270
4439
  set lang(t) {
4271
- this.$$set({ lang: t }), A();
4440
+ this.$$set({ lang: t }), O();
4272
4441
  }
4273
4442
  get errorcode() {
4274
4443
  return this.$$.ctx[1];
4275
4444
  }
4276
4445
  set errorcode(t) {
4277
- this.$$set({ errorcode: t }), A();
4446
+ this.$$set({ errorcode: t }), O();
4278
4447
  }
4279
4448
  get clientstyling() {
4280
4449
  return this.$$.ctx[6];
4281
4450
  }
4282
4451
  set clientstyling(t) {
4283
- this.$$set({ clientstyling: t }), A();
4452
+ this.$$set({ clientstyling: t }), O();
4284
4453
  }
4285
4454
  get clientstylingurl() {
4286
4455
  return this.$$.ctx[7];
4287
4456
  }
4288
4457
  set clientstylingurl(t) {
4289
- this.$$set({ clientstylingurl: t }), A();
4458
+ this.$$set({ clientstylingurl: t }), O();
4290
4459
  }
4291
4460
  get translationurl() {
4292
4461
  return this.$$.ctx[8];
4293
4462
  }
4294
4463
  set translationurl(t) {
4295
- this.$$set({ translationurl: t }), A();
4464
+ this.$$set({ translationurl: t }), O();
4296
4465
  }
4297
4466
  get mbsource() {
4298
4467
  return this.$$.ctx[9];
4299
4468
  }
4300
4469
  set mbsource(t) {
4301
- this.$$set({ mbsource: t }), A();
4470
+ this.$$set({ mbsource: t }), O();
4302
4471
  }
4303
4472
  }
4304
- Pr(rr, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4305
- const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4473
+ Jr(Er, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4474
+ const ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4306
4475
  __proto__: null,
4307
- default: rr
4476
+ default: Er
4308
4477
  }, Symbol.toStringTag, { value: "Module" }));
4309
4478
  export {
4310
- D as $,
4311
- ki as A,
4312
- Fi as B,
4313
- nt as C,
4314
- Ti as D,
4315
- Hi as E,
4316
- wi as F,
4317
- Si as G,
4318
- Vi as H,
4319
- Or as S,
4320
- Qt as a,
4321
- Ar as b,
4322
- zi as c,
4323
- Pr as d,
4324
- cr as e,
4325
- A as f,
4326
- Nr as g,
4327
- N as h,
4328
- ti as i,
4329
- R as j,
4330
- I as k,
4331
- $ as l,
4332
- hr as m,
4333
- O as n,
4334
- _r as o,
4335
- $e as p,
4336
- Ze as q,
4337
- re as r,
4338
- Bt as s,
4339
- P as t,
4340
- pr as u,
4341
- Ae as v,
4342
- ne as w,
4343
- dr as x,
4344
- fe as y,
4345
- ji as z
4479
+ G as $,
4480
+ nt as A,
4481
+ C as B,
4482
+ ue as C,
4483
+ D,
4484
+ Ir as E,
4485
+ Cr as F,
4486
+ be as G,
4487
+ ms as H,
4488
+ as as I,
4489
+ us as J,
4490
+ ft as K,
4491
+ ji as L,
4492
+ zi as M,
4493
+ Vi as N,
4494
+ Xi as O,
4495
+ ps as P,
4496
+ qr as S,
4497
+ pr as a,
4498
+ vi as b,
4499
+ ds as c,
4500
+ Zr as d,
4501
+ Jr as e,
4502
+ O as f,
4503
+ Kr as g,
4504
+ Pr as h,
4505
+ Mt as i,
4506
+ I as j,
4507
+ U as k,
4508
+ P as l,
4509
+ R as m,
4510
+ B as n,
4511
+ Ar as o,
4512
+ Gr as p,
4513
+ Ve as q,
4514
+ ls as r,
4515
+ Rt as s,
4516
+ ee as t,
4517
+ ye as u,
4518
+ hs as v,
4519
+ $e as w,
4520
+ fs as x,
4521
+ ie as y,
4522
+ cs as z
4346
4523
  };