@everymatrix/cashier-iframe-redirect 1.54.0 → 1.54.4

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,106 +1,77 @@
1
- var ar = Object.defineProperty, ur = Object.defineProperties;
2
- var hr = Object.getOwnPropertyDescriptors;
3
- var Je = Object.getOwnPropertySymbols;
4
- var lr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
5
- var xe = (e, t, r) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
6
- for (var r in t || (t = {}))
7
- lr.call(t, r) && xe(e, r, t[r]);
8
- if (Je)
9
- for (var r of Je(t))
10
- fr.call(t, r) && xe(e, r, t[r]);
11
- return e;
12
- }, Ke = (e, t) => ur(e, hr(t));
13
- var B = (e, t, r) => xe(e, typeof t != "symbol" ? t + "" : t, r);
14
- var et = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, o = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function T() {
1
+ function B() {
31
2
  }
32
- function cr(e, t) {
3
+ function tr(e, t) {
33
4
  for (const r in t) e[r] = t[r];
34
5
  return (
35
6
  /** @type {T & S} */
36
7
  e
37
8
  );
38
9
  }
39
- function Tt(e) {
10
+ function yt(e) {
40
11
  return e();
41
12
  }
42
- function tt() {
13
+ function Qe() {
43
14
  return /* @__PURE__ */ Object.create(null);
44
15
  }
45
- function re(e) {
46
- e.forEach(Tt);
16
+ function te(e) {
17
+ e.forEach(yt);
47
18
  }
48
- function Xe(e) {
19
+ function ke(e) {
49
20
  return typeof e == "function";
50
21
  }
51
- function wt(e, t) {
22
+ function Et(e, t) {
52
23
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
53
24
  }
54
- let oe;
55
- function $i(e, t) {
56
- return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
25
+ let se;
26
+ function Bi(e, t) {
27
+ return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
57
28
  }
58
- function mr(e) {
29
+ function rr(e) {
59
30
  return Object.keys(e).length === 0;
60
31
  }
61
- function St(e, ...t) {
32
+ function xt(e, ...t) {
62
33
  if (e == null) {
63
34
  for (const n of t)
64
35
  n(void 0);
65
- return T;
36
+ return B;
66
37
  }
67
38
  const r = e.subscribe(...t);
68
39
  return r.unsubscribe ? () => r.unsubscribe() : r;
69
40
  }
70
- function dr(e, t, r) {
71
- e.$$.on_destroy.push(St(t, r));
41
+ function nr(e, t, r) {
42
+ e.$$.on_destroy.push(xt(t, r));
72
43
  }
73
- function ve(e, t, r, n) {
44
+ function Ee(e, t, r, n) {
74
45
  if (e) {
75
- const i = At(e, t, r, n);
46
+ const i = vt(e, t, r, n);
76
47
  return e[0](i);
77
48
  }
78
49
  }
79
- function At(e, t, r, n) {
80
- return e[1] && n ? cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
50
+ function vt(e, t, r, n) {
51
+ return e[1] && n ? tr(r.ctx.slice(), e[1](n(t))) : r.ctx;
81
52
  }
82
- function He(e, t, r, n) {
53
+ function xe(e, t, r, n) {
83
54
  if (e[2] && n) {
84
55
  const i = e[2](n(r));
85
56
  if (t.dirty === void 0)
86
57
  return i;
87
58
  if (typeof i == "object") {
88
- const s = [], o = Math.max(t.dirty.length, i.length);
89
- for (let a = 0; a < o; a += 1)
90
- s[a] = t.dirty[a] | i[a];
59
+ const s = [], u = Math.max(t.dirty.length, i.length);
60
+ for (let o = 0; o < u; o += 1)
61
+ s[o] = t.dirty[o] | i[o];
91
62
  return s;
92
63
  }
93
64
  return t.dirty | i;
94
65
  }
95
66
  return t.dirty;
96
67
  }
97
- function Be(e, t, r, n, i, s) {
68
+ function ve(e, t, r, n, i, s) {
98
69
  if (i) {
99
- const o = At(t, r, n, s);
100
- e.p(o, i);
70
+ const u = vt(t, r, n, s);
71
+ e.p(u, i);
101
72
  }
102
73
  }
103
- function Te(e) {
74
+ function He(e) {
104
75
  if (e.ctx.length > 32) {
105
76
  const t = [], r = e.ctx.length / 32;
106
77
  for (let n = 0; n < r; n++)
@@ -109,17 +80,17 @@ function Te(e) {
109
80
  }
110
81
  return -1;
111
82
  }
112
- function me(e, t) {
83
+ function ce(e, t) {
113
84
  e.appendChild(t);
114
85
  }
115
- function pr(e, t, r) {
116
- const n = br(e);
86
+ function ir(e, t, r) {
87
+ const n = sr(e);
117
88
  if (!n.getElementById(t)) {
118
- const i = W("style");
119
- i.id = t, i.textContent = r, gr(n, i);
89
+ const i = z("style");
90
+ i.id = t, i.textContent = r, or(n, i);
120
91
  }
121
92
  }
122
- function br(e) {
93
+ function sr(e) {
123
94
  if (!e) return document;
124
95
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
125
96
  return t && /** @type {ShadowRoot} */
@@ -128,49 +99,49 @@ function br(e) {
128
99
  t
129
100
  ) : e.ownerDocument;
130
101
  }
131
- function gr(e, t) {
132
- return me(
102
+ function or(e, t) {
103
+ return ce(
133
104
  /** @type {Document} */
134
105
  e.head || e,
135
106
  t
136
107
  ), t.sheet;
137
108
  }
138
- function M(e, t, r) {
109
+ function I(e, t, r) {
139
110
  e.insertBefore(t, r || null);
140
111
  }
141
- function P(e) {
112
+ function O(e) {
142
113
  e.parentNode && e.parentNode.removeChild(e);
143
114
  }
144
- function W(e) {
115
+ function z(e) {
145
116
  return document.createElement(e);
146
117
  }
147
- function ze(e) {
118
+ function Ve(e) {
148
119
  return document.createTextNode(e);
149
120
  }
150
- function rt() {
151
- return ze(" ");
121
+ function qe() {
122
+ return Ve(" ");
152
123
  }
153
- function Ct() {
154
- return ze("");
124
+ function Ht() {
125
+ return Ve("");
155
126
  }
156
- function Ot(e, t, r, n) {
127
+ function Bt(e, t, r, n) {
157
128
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
158
129
  }
159
- function Z(e, t, r) {
130
+ function W(e, t, r) {
160
131
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
161
132
  }
162
- function Ri(e, t, r) {
133
+ function Ti(e, t, r) {
163
134
  const n = t.toLowerCase();
164
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Z(e, t, r);
135
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
165
136
  }
166
- function _r(e) {
137
+ function ar(e) {
167
138
  return Array.from(e.childNodes);
168
139
  }
169
- function yr(e, t) {
140
+ function ur(e, t) {
170
141
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
171
142
  t);
172
143
  }
173
- function Er(e) {
144
+ function hr(e) {
174
145
  const t = {};
175
146
  return e.childNodes.forEach(
176
147
  /** @param {Element} node */
@@ -179,95 +150,95 @@ function Er(e) {
179
150
  }
180
151
  ), t;
181
152
  }
182
- let We;
183
- function K(e) {
184
- We = e;
153
+ let Xe;
154
+ function Y(e) {
155
+ Xe = e;
185
156
  }
186
- const F = [], Ie = [];
187
- let j = [];
188
- const nt = [], xr = /* @__PURE__ */ Promise.resolve();
189
- let Me = !1;
190
- function vr() {
191
- Me || (Me = !0, xr.then(A));
157
+ const G = [], Le = [];
158
+ let F = [];
159
+ const Je = [], lr = /* @__PURE__ */ Promise.resolve();
160
+ let Ne = !1;
161
+ function fr() {
162
+ Ne || (Ne = !0, lr.then(S));
192
163
  }
193
- function $e(e) {
194
- j.push(e);
164
+ function Ie(e) {
165
+ F.push(e);
195
166
  }
196
- const we = /* @__PURE__ */ new Set();
197
- let D = 0;
198
- function A() {
199
- if (D !== 0)
167
+ const Be = /* @__PURE__ */ new Set();
168
+ let U = 0;
169
+ function S() {
170
+ if (U !== 0)
200
171
  return;
201
- const e = We;
172
+ const e = Xe;
202
173
  do {
203
174
  try {
204
- for (; D < F.length; ) {
205
- const t = F[D];
206
- D++, K(t), Hr(t.$$);
175
+ for (; U < G.length; ) {
176
+ const t = G[U];
177
+ U++, Y(t), cr(t.$$);
207
178
  }
208
179
  } catch (t) {
209
- throw F.length = 0, D = 0, t;
180
+ throw G.length = 0, U = 0, t;
210
181
  }
211
- for (K(null), F.length = 0, D = 0; Ie.length; ) Ie.pop()();
212
- for (let t = 0; t < j.length; t += 1) {
213
- const r = j[t];
214
- we.has(r) || (we.add(r), r());
182
+ for (Y(null), G.length = 0, U = 0; Le.length; ) Le.pop()();
183
+ for (let t = 0; t < F.length; t += 1) {
184
+ const r = F[t];
185
+ Be.has(r) || (Be.add(r), r());
215
186
  }
216
- j.length = 0;
217
- } while (F.length);
218
- for (; nt.length; )
219
- nt.pop()();
220
- Me = !1, we.clear(), K(e);
187
+ F.length = 0;
188
+ } while (G.length);
189
+ for (; Je.length; )
190
+ Je.pop()();
191
+ Ne = !1, Be.clear(), Y(e);
221
192
  }
222
- function Hr(e) {
193
+ function cr(e) {
223
194
  if (e.fragment !== null) {
224
- e.update(), re(e.before_update);
195
+ e.update(), te(e.before_update);
225
196
  const t = e.dirty;
226
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
197
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
227
198
  }
228
199
  }
229
- function Br(e) {
200
+ function mr(e) {
230
201
  const t = [], r = [];
231
- j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
202
+ F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
232
203
  }
233
- const ue = /* @__PURE__ */ new Set();
234
- let Tr;
235
- function he(e, t) {
236
- e && e.i && (ue.delete(e), e.i(t));
204
+ const ae = /* @__PURE__ */ new Set();
205
+ let dr;
206
+ function ue(e, t) {
207
+ e && e.i && (ae.delete(e), e.i(t));
237
208
  }
238
- function Se(e, t, r, n) {
209
+ function Te(e, t, r, n) {
239
210
  if (e && e.o) {
240
- if (ue.has(e)) return;
241
- ue.add(e), Tr.c.push(() => {
242
- ue.delete(e);
211
+ if (ae.has(e)) return;
212
+ ae.add(e), dr.c.push(() => {
213
+ ae.delete(e);
243
214
  }), e.o(t);
244
215
  }
245
216
  }
246
- function wr(e, t, r) {
217
+ function pr(e, t, r) {
247
218
  const { fragment: n, after_update: i } = e.$$;
248
- n && n.m(t, r), $e(() => {
249
- const s = e.$$.on_mount.map(Tt).filter(Xe);
250
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
251
- }), i.forEach($e);
219
+ n && n.m(t, r), Ie(() => {
220
+ const s = e.$$.on_mount.map(yt).filter(ke);
221
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
222
+ }), i.forEach(Ie);
252
223
  }
253
- function Sr(e, t) {
224
+ function br(e, t) {
254
225
  const r = e.$$;
255
- r.fragment !== null && (Br(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
226
+ r.fragment !== null && (mr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
256
227
  }
257
- function Ar(e, t) {
258
- e.$$.dirty[0] === -1 && (F.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
228
+ function gr(e, t) {
229
+ e.$$.dirty[0] === -1 && (G.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
259
230
  }
260
- function Cr(e, t, r, n, i, s, o = null, a = [-1]) {
261
- const l = We;
262
- K(e);
263
- const u = e.$$ = {
231
+ function _r(e, t, r, n, i, s, u = null, o = [-1]) {
232
+ const l = Xe;
233
+ Y(e);
234
+ const a = e.$$ = {
264
235
  fragment: null,
265
236
  ctx: [],
266
237
  // state
267
238
  props: s,
268
- update: T,
239
+ update: B,
269
240
  not_equal: i,
270
- bound: tt(),
241
+ bound: Qe(),
271
242
  // lifecycle
272
243
  on_mount: [],
273
244
  on_destroy: [],
@@ -276,150 +247,146 @@ function Cr(e, t, r, n, i, s, o = null, a = [-1]) {
276
247
  after_update: [],
277
248
  context: new Map(t.context || (l ? l.$$.context : [])),
278
249
  // everything else
279
- callbacks: tt(),
280
- dirty: a,
250
+ callbacks: Qe(),
251
+ dirty: o,
281
252
  skip_bound: !1,
282
253
  root: t.target || l.$$.root
283
254
  };
284
- o && o(u.root);
255
+ u && u(a.root);
285
256
  let h = !1;
286
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
257
+ if (a.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
287
258
  const m = d.length ? d[0] : c;
288
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Ar(e, f)), c;
289
- }) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
259
+ return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && gr(e, f)), c;
260
+ }) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
290
261
  if (t.hydrate) {
291
- const f = _r(t.target);
292
- u.fragment && u.fragment.l(f), f.forEach(P);
262
+ const f = ar(t.target);
263
+ a.fragment && a.fragment.l(f), f.forEach(O);
293
264
  } else
294
- u.fragment && u.fragment.c();
295
- t.intro && he(e.$$.fragment), wr(e, t.target, t.anchor), A();
265
+ a.fragment && a.fragment.c();
266
+ t.intro && ue(e.$$.fragment), pr(e, t.target, t.anchor), S();
296
267
  }
297
- K(l);
298
- }
299
- let Pt;
300
- typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
301
- constructor(t, r, n) {
302
- super();
303
- /** The Svelte component constructor */
304
- B(this, "$$ctor");
305
- /** Slots */
306
- B(this, "$$s");
307
- /** The Svelte component instance */
308
- B(this, "$$c");
309
- /** Whether or not the custom element is connected */
310
- B(this, "$$cn", !1);
311
- /** Component props data */
312
- B(this, "$$d", {});
313
- /** `true` if currently in the process of reflecting component props back to attributes */
314
- B(this, "$$r", !1);
315
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
316
- B(this, "$$p_d", {});
317
- /** @type {Record<string, Function[]>} Event listeners */
318
- B(this, "$$l", {});
319
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
320
- B(this, "$$l_u", /* @__PURE__ */ new Map());
321
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
268
+ Y(l);
269
+ }
270
+ let Tt;
271
+ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
272
+ /** The Svelte component constructor */
273
+ $$ctor;
274
+ /** Slots */
275
+ $$s;
276
+ /** The Svelte component instance */
277
+ $$c;
278
+ /** Whether or not the custom element is connected */
279
+ $$cn = !1;
280
+ /** Component props data */
281
+ $$d = {};
282
+ /** `true` if currently in the process of reflecting component props back to attributes */
283
+ $$r = !1;
284
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
285
+ $$p_d = {};
286
+ /** @type {Record<string, Function[]>} Event listeners */
287
+ $$l = {};
288
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
289
+ $$l_u = /* @__PURE__ */ new Map();
290
+ constructor(e, t, r) {
291
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
322
292
  }
323
- addEventListener(t, r, n) {
324
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
325
- const i = this.$$c.$on(t, r);
326
- this.$$l_u.set(r, i);
293
+ addEventListener(e, t, r) {
294
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
295
+ const n = this.$$c.$on(e, t);
296
+ this.$$l_u.set(t, n);
327
297
  }
328
- super.addEventListener(t, r, n);
298
+ super.addEventListener(e, t, r);
329
299
  }
330
- removeEventListener(t, r, n) {
331
- if (super.removeEventListener(t, r, n), this.$$c) {
332
- const i = this.$$l_u.get(r);
333
- i && (i(), this.$$l_u.delete(r));
300
+ removeEventListener(e, t, r) {
301
+ if (super.removeEventListener(e, t, r), this.$$c) {
302
+ const n = this.$$l_u.get(t);
303
+ n && (n(), this.$$l_u.delete(t));
334
304
  }
335
305
  }
336
- connectedCallback() {
337
- return et(this, null, function* () {
338
- if (this.$$cn = !0, !this.$$c) {
339
- let t = function(s) {
340
- return () => {
341
- let o;
342
- return {
343
- c: function() {
344
- o = W("slot"), s !== "default" && Z(o, "name", s);
345
- },
346
- /**
347
- * @param {HTMLElement} target
348
- * @param {HTMLElement} [anchor]
349
- */
350
- m: function(u, h) {
351
- M(u, o, h);
352
- },
353
- d: function(u) {
354
- u && P(o);
355
- }
356
- };
306
+ async connectedCallback() {
307
+ if (this.$$cn = !0, !this.$$c) {
308
+ let e = function(i) {
309
+ return () => {
310
+ let s;
311
+ return {
312
+ c: function() {
313
+ s = z("slot"), i !== "default" && W(s, "name", i);
314
+ },
315
+ /**
316
+ * @param {HTMLElement} target
317
+ * @param {HTMLElement} [anchor]
318
+ */
319
+ m: function(l, a) {
320
+ I(l, s, a);
321
+ },
322
+ d: function(l) {
323
+ l && O(s);
324
+ }
357
325
  };
358
326
  };
359
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
360
- return;
361
- const r = {}, n = Er(this);
362
- for (const s of this.$$s)
363
- s in n && (r[s] = [t(s)]);
364
- for (const s of this.attributes) {
365
- const o = this.$$g_p(s.name);
366
- o in this.$$d || (this.$$d[o] = le(o, s.value, this.$$p_d, "toProp"));
327
+ };
328
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
329
+ return;
330
+ const t = {}, r = hr(this);
331
+ for (const i of this.$$s)
332
+ i in r && (t[i] = [e(i)]);
333
+ for (const i of this.attributes) {
334
+ const s = this.$$g_p(i.name);
335
+ s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
336
+ }
337
+ for (const i in this.$$p_d)
338
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
339
+ this.$$c = new this.$$ctor({
340
+ target: this.shadowRoot || this,
341
+ props: {
342
+ ...this.$$d,
343
+ $$slots: t,
344
+ $$scope: {
345
+ ctx: []
346
+ }
367
347
  }
368
- for (const s in this.$$p_d)
369
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
370
- this.$$c = new this.$$ctor({
371
- target: this.shadowRoot || this,
372
- props: Ke(Ye({}, this.$$d), {
373
- $$slots: r,
374
- $$scope: {
375
- ctx: []
376
- }
377
- })
378
- });
379
- const i = () => {
380
- this.$$r = !0;
381
- for (const s in this.$$p_d)
382
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
383
- const o = le(
384
- s,
385
- this.$$d[s],
386
- this.$$p_d,
387
- "toAttribute"
388
- );
389
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
390
- }
391
- this.$$r = !1;
392
- };
393
- this.$$c.$$.after_update.push(i), i();
394
- for (const s in this.$$l)
395
- for (const o of this.$$l[s]) {
396
- const a = this.$$c.$on(s, o);
397
- this.$$l_u.set(o, a);
348
+ });
349
+ const n = () => {
350
+ this.$$r = !0;
351
+ for (const i in this.$$p_d)
352
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
353
+ const s = he(
354
+ i,
355
+ this.$$d[i],
356
+ this.$$p_d,
357
+ "toAttribute"
358
+ );
359
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
398
360
  }
399
- this.$$l = {};
400
- }
401
- });
361
+ this.$$r = !1;
362
+ };
363
+ this.$$c.$$.after_update.push(n), n();
364
+ for (const i in this.$$l)
365
+ for (const s of this.$$l[i]) {
366
+ const u = this.$$c.$on(i, s);
367
+ this.$$l_u.set(s, u);
368
+ }
369
+ this.$$l = {};
370
+ }
402
371
  }
403
372
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
404
373
  // and setting attributes through setAttribute etc, this is helpful
405
- attributeChangedCallback(t, r, n) {
406
- var i;
407
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
374
+ attributeChangedCallback(e, t, r) {
375
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
408
376
  }
409
377
  disconnectedCallback() {
410
378
  this.$$cn = !1, Promise.resolve().then(() => {
411
379
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
412
380
  });
413
381
  }
414
- $$g_p(t) {
382
+ $$g_p(e) {
415
383
  return Object.keys(this.$$p_d).find(
416
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
417
- ) || t;
384
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
385
+ ) || e;
418
386
  }
419
387
  });
420
- function le(e, t, r, n) {
421
- var s;
422
- const i = (s = r[e]) == null ? void 0 : s.type;
388
+ function he(e, t, r, n) {
389
+ const i = r[e]?.type;
423
390
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
424
391
  return t;
425
392
  if (n === "toAttribute")
@@ -430,7 +397,7 @@ function le(e, t, r, n) {
430
397
  case "Boolean":
431
398
  return t ? "" : null;
432
399
  case "Number":
433
- return t == null ? null : t;
400
+ return t ?? null;
434
401
  default:
435
402
  return t;
436
403
  }
@@ -447,59 +414,55 @@ function le(e, t, r, n) {
447
414
  return t;
448
415
  }
449
416
  }
450
- function Or(e, t, r, n, i, s) {
451
- let o = class extends Pt {
417
+ function yr(e, t, r, n, i, s) {
418
+ let u = class extends Tt {
452
419
  constructor() {
453
420
  super(e, r, i), this.$$p_d = t;
454
421
  }
455
422
  static get observedAttributes() {
456
423
  return Object.keys(t).map(
457
- (a) => (t[a].attribute || a).toLowerCase()
424
+ (o) => (t[o].attribute || o).toLowerCase()
458
425
  );
459
426
  }
460
427
  };
461
- return Object.keys(t).forEach((a) => {
462
- Object.defineProperty(o.prototype, a, {
428
+ return Object.keys(t).forEach((o) => {
429
+ Object.defineProperty(u.prototype, o, {
463
430
  get() {
464
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
431
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
465
432
  },
466
433
  set(l) {
467
- var u;
468
- l = le(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
434
+ l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
469
435
  }
470
436
  });
471
- }), n.forEach((a) => {
472
- Object.defineProperty(o.prototype, a, {
437
+ }), n.forEach((o) => {
438
+ Object.defineProperty(u.prototype, o, {
473
439
  get() {
474
- var l;
475
- return (l = this.$$c) == null ? void 0 : l[a];
440
+ return this.$$c?.[o];
476
441
  }
477
442
  });
478
443
  }), e.element = /** @type {any} */
479
- o, o;
480
- }
481
- class Pr {
482
- constructor() {
483
- /**
484
- * ### PRIVATE API
485
- *
486
- * Do not use, may change at any time
487
- *
488
- * @type {any}
489
- */
490
- B(this, "$$");
491
- /**
492
- * ### PRIVATE API
493
- *
494
- * Do not use, may change at any time
495
- *
496
- * @type {any}
497
- */
498
- B(this, "$$set");
499
- }
444
+ u, u;
445
+ }
446
+ class Er {
447
+ /**
448
+ * ### PRIVATE API
449
+ *
450
+ * Do not use, may change at any time
451
+ *
452
+ * @type {any}
453
+ */
454
+ $$ = void 0;
455
+ /**
456
+ * ### PRIVATE API
457
+ *
458
+ * Do not use, may change at any time
459
+ *
460
+ * @type {any}
461
+ */
462
+ $$set = void 0;
500
463
  /** @returns {void} */
501
464
  $destroy() {
502
- Sr(this, 1), this.$destroy = T;
465
+ br(this, 1), this.$destroy = B;
503
466
  }
504
467
  /**
505
468
  * @template {Extract<keyof Events, string>} K
@@ -508,8 +471,8 @@ class Pr {
508
471
  * @returns {() => void}
509
472
  */
510
473
  $on(t, r) {
511
- if (!Xe(r))
512
- return T;
474
+ if (!ke(r))
475
+ return B;
513
476
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
514
477
  return n.push(r), () => {
515
478
  const i = n.indexOf(r);
@@ -521,63 +484,63 @@ class Pr {
521
484
  * @returns {void}
522
485
  */
523
486
  $set(t) {
524
- this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
487
+ this.$$set && !rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
525
488
  }
526
489
  }
527
- const Lr = "4";
528
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
529
- const G = [];
530
- function Nr(e, t) {
490
+ const xr = "4";
491
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
492
+ const D = [];
493
+ function vr(e, t) {
531
494
  return {
532
- subscribe: ge(e, t).subscribe
495
+ subscribe: be(e, t).subscribe
533
496
  };
534
497
  }
535
- function ge(e, t = T) {
498
+ function be(e, t = B) {
536
499
  let r;
537
500
  const n = /* @__PURE__ */ new Set();
538
- function i(a) {
539
- if (wt(e, a) && (e = a, r)) {
540
- const l = !G.length;
541
- for (const u of n)
542
- u[1](), G.push(u, e);
501
+ function i(o) {
502
+ if (Et(e, o) && (e = o, r)) {
503
+ const l = !D.length;
504
+ for (const a of n)
505
+ a[1](), D.push(a, e);
543
506
  if (l) {
544
- for (let u = 0; u < G.length; u += 2)
545
- G[u][0](G[u + 1]);
546
- G.length = 0;
507
+ for (let a = 0; a < D.length; a += 2)
508
+ D[a][0](D[a + 1]);
509
+ D.length = 0;
547
510
  }
548
511
  }
549
512
  }
550
- function s(a) {
551
- i(a(e));
513
+ function s(o) {
514
+ i(o(e));
552
515
  }
553
- function o(a, l = T) {
554
- const u = [a, l];
555
- return n.add(u), n.size === 1 && (r = t(i, s) || T), a(e), () => {
556
- n.delete(u), n.size === 0 && r && (r(), r = null);
516
+ function u(o, l = B) {
517
+ const a = [o, l];
518
+ return n.add(a), n.size === 1 && (r = t(i, s) || B), o(e), () => {
519
+ n.delete(a), n.size === 0 && r && (r(), r = null);
557
520
  };
558
521
  }
559
- return { set: i, update: s, subscribe: o };
522
+ return { set: i, update: s, subscribe: u };
560
523
  }
561
- function Q(e, t, r) {
524
+ function Z(e, t, r) {
562
525
  const n = !Array.isArray(e), i = n ? [e] : e;
563
526
  if (!i.every(Boolean))
564
527
  throw new Error("derived() expects stores as input, got a falsy value");
565
528
  const s = t.length < 2;
566
- return Nr(r, (o, a) => {
529
+ return vr(r, (u, o) => {
567
530
  let l = !1;
568
- const u = [];
569
- let h = 0, f = T;
531
+ const a = [];
532
+ let h = 0, f = B;
570
533
  const c = () => {
571
534
  if (h)
572
535
  return;
573
536
  f();
574
- const m = t(n ? u[0] : u, o, a);
575
- s ? o(m) : f = Xe(m) ? m : T;
537
+ const m = t(n ? a[0] : a, u, o);
538
+ s ? u(m) : f = ke(m) ? m : B;
576
539
  }, d = i.map(
577
- (m, g) => St(
540
+ (m, g) => xt(
578
541
  m,
579
542
  (v) => {
580
- u[g] = v, h &= ~(1 << g), l && c();
543
+ a[g] = v, h &= ~(1 << g), l && c();
581
544
  },
582
545
  () => {
583
546
  h |= 1 << g;
@@ -585,95 +548,95 @@ function Q(e, t, r) {
585
548
  )
586
549
  );
587
550
  return l = !0, c(), function() {
588
- re(d), f(), l = !1;
551
+ te(d), f(), l = !1;
589
552
  };
590
553
  });
591
554
  }
592
- function Ir(e) {
555
+ function Hr(e) {
593
556
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
594
557
  }
595
- var Mr = function(t) {
596
- return $r(t) && !Rr(t);
558
+ var Br = function(t) {
559
+ return Tr(t) && !wr(t);
597
560
  };
598
- function $r(e) {
561
+ function Tr(e) {
599
562
  return !!e && typeof e == "object";
600
563
  }
601
- function Rr(e) {
564
+ function wr(e) {
602
565
  var t = Object.prototype.toString.call(e);
603
- return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
566
+ return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
604
567
  }
605
- var Ur = typeof Symbol == "function" && Symbol.for, Dr = Ur ? Symbol.for("react.element") : 60103;
606
- function Gr(e) {
607
- return e.$$typeof === Dr;
568
+ var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.element") : 60103;
569
+ function Cr(e) {
570
+ return e.$$typeof === Ar;
608
571
  }
609
- function Fr(e) {
572
+ function Or(e) {
610
573
  return Array.isArray(e) ? [] : {};
611
574
  }
612
- function ee(e, t) {
613
- return t.clone !== !1 && t.isMergeableObject(e) ? k(Fr(e), e, t) : e;
575
+ function K(e, t) {
576
+ return t.clone !== !1 && t.isMergeableObject(e) ? j(Or(e), e, t) : e;
614
577
  }
615
- function jr(e, t, r) {
578
+ function Pr(e, t, r) {
616
579
  return e.concat(t).map(function(n) {
617
- return ee(n, r);
580
+ return K(n, r);
618
581
  });
619
582
  }
620
- function kr(e, t) {
583
+ function Lr(e, t) {
621
584
  if (!t.customMerge)
622
- return k;
585
+ return j;
623
586
  var r = t.customMerge(e);
624
- return typeof r == "function" ? r : k;
587
+ return typeof r == "function" ? r : j;
625
588
  }
626
- function Vr(e) {
589
+ function Nr(e) {
627
590
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
628
591
  return Object.propertyIsEnumerable.call(e, t);
629
592
  }) : [];
630
593
  }
631
- function it(e) {
632
- return Object.keys(e).concat(Vr(e));
594
+ function Ye(e) {
595
+ return Object.keys(e).concat(Nr(e));
633
596
  }
634
- function Lt(e, t) {
597
+ function wt(e, t) {
635
598
  try {
636
599
  return t in e;
637
- } catch (r) {
600
+ } catch {
638
601
  return !1;
639
602
  }
640
603
  }
641
- function Xr(e, t) {
642
- return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
604
+ function Ir(e, t) {
605
+ return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
643
606
  }
644
- function zr(e, t, r) {
607
+ function Mr(e, t, r) {
645
608
  var n = {};
646
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
647
- n[i] = ee(e[i], r);
648
- }), it(t).forEach(function(i) {
649
- Xr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = kr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
609
+ return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
610
+ n[i] = K(e[i], r);
611
+ }), Ye(t).forEach(function(i) {
612
+ Ir(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
650
613
  }), n;
651
614
  }
652
- function k(e, t, r) {
653
- r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || Mr, r.cloneUnlessOtherwiseSpecified = ee;
615
+ function j(e, t, r) {
616
+ r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = K;
654
617
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
655
- return s ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ee(t, r);
618
+ return s ? n ? r.arrayMerge(e, t, r) : Mr(e, t, r) : K(t, r);
656
619
  }
657
- k.all = function(t, r) {
620
+ j.all = function(t, r) {
658
621
  if (!Array.isArray(t))
659
622
  throw new Error("first argument should be an array");
660
623
  return t.reduce(function(n, i) {
661
- return k(n, i, r);
624
+ return j(n, i, r);
662
625
  }, {});
663
626
  };
664
- var Wr = k, Zr = Wr;
665
- const Qr = /* @__PURE__ */ Ir(Zr);
666
- var Re = function(e, t) {
667
- return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
627
+ var $r = j, Rr = $r;
628
+ const Ur = /* @__PURE__ */ Hr(Rr);
629
+ var Me = function(e, t) {
630
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
668
631
  r.__proto__ = n;
669
632
  } || function(r, n) {
670
633
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
671
- }, Re(e, t);
634
+ }, Me(e, t);
672
635
  };
673
- function _e(e, t) {
636
+ function ge(e, t) {
674
637
  if (typeof t != "function" && t !== null)
675
638
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
676
- Re(e, t);
639
+ Me(e, t);
677
640
  function r() {
678
641
  this.constructor = e;
679
642
  }
@@ -688,7 +651,7 @@ var y = function() {
688
651
  return t;
689
652
  }, y.apply(this, arguments);
690
653
  };
691
- function qr(e, t) {
654
+ function Dr(e, t) {
692
655
  var r = {};
693
656
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
694
657
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -696,45 +659,45 @@ function qr(e, t) {
696
659
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
697
660
  return r;
698
661
  }
699
- function Ae(e, t, r) {
662
+ function we(e, t, r) {
700
663
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
701
664
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
702
665
  return e.concat(s || Array.prototype.slice.call(t));
703
666
  }
704
- function Ce(e, t) {
705
- var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : tn, i = t && t.strategy ? t.strategy : Yr;
667
+ function Se(e, t) {
668
+ var r = t && t.cache ? t.cache : zr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : Fr;
706
669
  return i(e, {
707
670
  cache: r,
708
671
  serializer: n
709
672
  });
710
673
  }
711
- function Jr(e) {
674
+ function Gr(e) {
712
675
  return e == null || typeof e == "number" || typeof e == "boolean";
713
676
  }
714
- function Nt(e, t, r, n) {
715
- var i = Jr(n) ? n : r(n), s = t.get(i);
716
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
677
+ function St(e, t, r, n) {
678
+ var i = Gr(n) ? n : r(n), s = t.get(i);
679
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
717
680
  }
718
- function It(e, t, r) {
681
+ function At(e, t, r) {
719
682
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
720
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
683
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
721
684
  }
722
- function Ze(e, t, r, n, i) {
685
+ function ze(e, t, r, n, i) {
723
686
  return r.bind(t, e, n, i);
724
687
  }
725
- function Yr(e, t) {
726
- var r = e.length === 1 ? Nt : It;
727
- return Ze(e, this, r, t.cache.create(), t.serializer);
688
+ function Fr(e, t) {
689
+ var r = e.length === 1 ? St : At;
690
+ return ze(e, this, r, t.cache.create(), t.serializer);
728
691
  }
729
- function Kr(e, t) {
730
- return Ze(e, this, It, t.cache.create(), t.serializer);
692
+ function jr(e, t) {
693
+ return ze(e, this, At, t.cache.create(), t.serializer);
731
694
  }
732
- function en(e, t) {
733
- return Ze(e, this, Nt, t.cache.create(), t.serializer);
695
+ function kr(e, t) {
696
+ return ze(e, this, St, t.cache.create(), t.serializer);
734
697
  }
735
- var tn = function() {
698
+ var Vr = function() {
736
699
  return JSON.stringify(arguments);
737
- }, rn = (
700
+ }, Xr = (
738
701
  /** @class */
739
702
  function() {
740
703
  function e() {
@@ -746,13 +709,13 @@ var tn = function() {
746
709
  this.cache[t] = r;
747
710
  }, e;
748
711
  }()
749
- ), nn = {
712
+ ), zr = {
750
713
  create: function() {
751
- return new rn();
714
+ return new Xr();
752
715
  }
753
- }, Oe = {
754
- variadic: Kr,
755
- monadic: en
716
+ }, Ae = {
717
+ variadic: jr,
718
+ monadic: kr
756
719
  }, p;
757
720
  (function(e) {
758
721
  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";
@@ -761,47 +724,47 @@ var E;
761
724
  (function(e) {
762
725
  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";
763
726
  })(E || (E = {}));
764
- var V;
727
+ var k;
765
728
  (function(e) {
766
729
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
767
- })(V || (V = {}));
768
- function st(e) {
730
+ })(k || (k = {}));
731
+ function Ke(e) {
769
732
  return e.type === E.literal;
770
733
  }
771
- function sn(e) {
734
+ function Wr(e) {
772
735
  return e.type === E.argument;
773
736
  }
774
- function Mt(e) {
737
+ function Ct(e) {
775
738
  return e.type === E.number;
776
739
  }
777
- function $t(e) {
740
+ function Ot(e) {
778
741
  return e.type === E.date;
779
742
  }
780
- function Rt(e) {
743
+ function Pt(e) {
781
744
  return e.type === E.time;
782
745
  }
783
- function Ut(e) {
746
+ function Lt(e) {
784
747
  return e.type === E.select;
785
748
  }
786
- function Dt(e) {
749
+ function Nt(e) {
787
750
  return e.type === E.plural;
788
751
  }
789
- function on(e) {
752
+ function Zr(e) {
790
753
  return e.type === E.pound;
791
754
  }
792
- function Gt(e) {
755
+ function It(e) {
793
756
  return e.type === E.tag;
794
757
  }
795
- function Ft(e) {
796
- return !!(e && typeof e == "object" && e.type === V.number);
758
+ function Mt(e) {
759
+ return !!(e && typeof e == "object" && e.type === k.number);
797
760
  }
798
- function Ue(e) {
799
- return !!(e && typeof e == "object" && e.type === V.dateTime);
761
+ function $e(e) {
762
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
800
763
  }
801
- var jt = /[ \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;
802
- function un(e) {
764
+ var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
765
+ function qr(e) {
803
766
  var t = {};
804
- return e.replace(an, function(r) {
767
+ return e.replace(Qr, function(r) {
805
768
  var n = r.length;
806
769
  switch (r[0]) {
807
770
  case "G":
@@ -890,36 +853,36 @@ function un(e) {
890
853
  return "";
891
854
  }), t;
892
855
  }
893
- var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
894
- function ln(e) {
856
+ var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
857
+ function Yr(e) {
895
858
  if (e.length === 0)
896
859
  throw new Error("Number skeleton cannot be empty");
897
- for (var t = e.split(hn).filter(function(c) {
860
+ for (var t = e.split(Jr).filter(function(c) {
898
861
  return c.length > 0;
899
862
  }), r = [], n = 0, i = t; n < i.length; n++) {
900
- var s = i[n], o = s.split("/");
901
- if (o.length === 0)
863
+ var s = i[n], u = s.split("/");
864
+ if (u.length === 0)
902
865
  throw new Error("Invalid number skeleton");
903
- for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
904
- var f = h[u];
866
+ for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
867
+ var f = h[a];
905
868
  if (f.length === 0)
906
869
  throw new Error("Invalid number skeleton");
907
870
  }
908
- r.push({ stem: a, options: l });
871
+ r.push({ stem: o, options: l });
909
872
  }
910
873
  return r;
911
874
  }
912
- function fn(e) {
875
+ function Kr(e) {
913
876
  return e.replace(/^(.*?)-/, "");
914
877
  }
915
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
916
- function at(e) {
878
+ var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
879
+ function tt(e) {
917
880
  var t = {};
918
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
881
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
919
882
  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)), "";
920
883
  }), t;
921
884
  }
922
- function Xt(e) {
885
+ function Dt(e) {
923
886
  switch (e) {
924
887
  case "sign-auto":
925
888
  return {
@@ -959,7 +922,7 @@ function Xt(e) {
959
922
  };
960
923
  }
961
924
  }
962
- function mn(e) {
925
+ function tn(e) {
963
926
  var t;
964
927
  if (e[0] === "E" && e[1] === "E" ? (t = {
965
928
  notation: "engineering"
@@ -967,17 +930,17 @@ function mn(e) {
967
930
  notation: "scientific"
968
931
  }, e = e.slice(1)), t) {
969
932
  var r = e.slice(0, 2);
970
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
933
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
971
934
  throw new Error("Malformed concise eng/scientific notation");
972
935
  t.minimumIntegerDigits = e.length;
973
936
  }
974
937
  return t;
975
938
  }
976
- function ut(e) {
977
- var t = {}, r = Xt(e);
939
+ function rt(e) {
940
+ var t = {}, r = Dt(e);
978
941
  return r || t;
979
942
  }
980
- function dn(e) {
943
+ function rn(e) {
981
944
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
982
945
  var i = n[r];
983
946
  switch (i.stem) {
@@ -1001,7 +964,7 @@ function dn(e) {
1001
964
  continue;
1002
965
  case "measure-unit":
1003
966
  case "unit":
1004
- t.style = "unit", t.unit = fn(i.options[0]);
967
+ t.style = "unit", t.unit = Kr(i.options[0]);
1005
968
  continue;
1006
969
  case "compact-short":
1007
970
  case "K":
@@ -1012,13 +975,13 @@ function dn(e) {
1012
975
  t.notation = "compact", t.compactDisplay = "long";
1013
976
  continue;
1014
977
  case "scientific":
1015
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1016
- return y(y({}, l), ut(u));
978
+ t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
979
+ return y(y({}, l), rt(a));
1017
980
  }, {}));
1018
981
  continue;
1019
982
  case "engineering":
1020
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1021
- return y(y({}, l), ut(u));
983
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
984
+ return y(y({}, l), rt(a));
1022
985
  }, {}));
1023
986
  continue;
1024
987
  case "notation-simple":
@@ -1063,8 +1026,8 @@ function dn(e) {
1063
1026
  case "integer-width":
1064
1027
  if (i.options.length > 1)
1065
1028
  throw new RangeError("integer-width stems only accept a single optional option");
1066
- i.options[0].replace(cn, function(l, u, h, f, c, d) {
1067
- if (u)
1029
+ i.options[0].replace(en, function(l, a, h, f, c, d) {
1030
+ if (a)
1068
1031
  t.minimumIntegerDigits = h.length;
1069
1032
  else {
1070
1033
  if (f && c)
@@ -1076,32 +1039,32 @@ function dn(e) {
1076
1039
  });
1077
1040
  continue;
1078
1041
  }
1079
- if (Vt.test(i.stem)) {
1042
+ if (Ut.test(i.stem)) {
1080
1043
  t.minimumIntegerDigits = i.stem.length;
1081
1044
  continue;
1082
1045
  }
1083
- if (ot.test(i.stem)) {
1046
+ if (et.test(i.stem)) {
1084
1047
  if (i.options.length > 1)
1085
1048
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1086
- i.stem.replace(ot, function(l, u, h, f, c, d) {
1087
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1049
+ i.stem.replace(et, function(l, a, h, f, c, d) {
1050
+ return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1088
1051
  });
1089
1052
  var s = i.options[0];
1090
- s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), at(s)));
1053
+ s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), tt(s)));
1091
1054
  continue;
1092
1055
  }
1093
- if (kt.test(i.stem)) {
1094
- t = y(y({}, t), at(i.stem));
1056
+ if (Rt.test(i.stem)) {
1057
+ t = y(y({}, t), tt(i.stem));
1095
1058
  continue;
1096
1059
  }
1097
- var o = Xt(i.stem);
1060
+ var u = Dt(i.stem);
1061
+ u && (t = y(y({}, t), u));
1062
+ var o = tn(i.stem);
1098
1063
  o && (t = y(y({}, t), o));
1099
- var a = mn(i.stem);
1100
- a && (t = y(y({}, t), a));
1101
1064
  }
1102
1065
  return t;
1103
1066
  }
1104
- var ae = {
1067
+ var oe = {
1105
1068
  "001": [
1106
1069
  "H",
1107
1070
  "h"
@@ -2516,22 +2479,22 @@ var ae = {
2516
2479
  "h"
2517
2480
  ]
2518
2481
  };
2519
- function pn(e, t) {
2482
+ function nn(e, t) {
2520
2483
  for (var r = "", n = 0; n < e.length; n++) {
2521
2484
  var i = e.charAt(n);
2522
2485
  if (i === "j") {
2523
2486
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2524
2487
  s++, n++;
2525
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = bn(t);
2526
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2488
+ var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
2489
+ for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2527
2490
  r += l;
2528
- for (; o-- > 0; )
2529
- r = u + r;
2491
+ for (; u-- > 0; )
2492
+ r = a + r;
2530
2493
  } else i === "J" ? r += "H" : r += i;
2531
2494
  }
2532
2495
  return r;
2533
2496
  }
2534
- function bn(e) {
2497
+ function sn(e) {
2535
2498
  var t = e.hourCycle;
2536
2499
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2537
2500
  e.hourCycles && // @ts-ignore
@@ -2550,23 +2513,23 @@ function bn(e) {
2550
2513
  }
2551
2514
  var r = e.language, n;
2552
2515
  r !== "root" && (n = e.maximize().region);
2553
- var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
2516
+ var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2554
2517
  return i[0];
2555
2518
  }
2556
- var Pe, gn = new RegExp("^".concat(jt.source, "*")), _n = new RegExp("".concat(jt.source, "*$"));
2519
+ var Ce, on = new RegExp("^".concat($t.source, "*")), an = new RegExp("".concat($t.source, "*$"));
2557
2520
  function b(e, t) {
2558
2521
  return { start: e, end: t };
2559
2522
  }
2560
- var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), En = !!String.fromCodePoint, xn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, wn = Tn ? Number.isSafeInteger : function(e) {
2523
+ var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, ln = !!Object.fromEntries, fn = !!String.prototype.codePointAt, cn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, pn = dn ? Number.isSafeInteger : function(e) {
2561
2524
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2562
- }, De = !0;
2525
+ }, Re = !0;
2563
2526
  try {
2564
- var Sn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2565
- De = ((Pe = Sn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2566
- } catch (e) {
2567
- De = !1;
2527
+ var bn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2528
+ Re = ((Ce = bn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2529
+ } catch {
2530
+ Re = !1;
2568
2531
  }
2569
- var ht = yn ? (
2532
+ var nt = un ? (
2570
2533
  // Native
2571
2534
  function(t, r, n) {
2572
2535
  return t.startsWith(r, n);
@@ -2576,31 +2539,31 @@ var ht = yn ? (
2576
2539
  function(t, r, n) {
2577
2540
  return t.slice(n, n + r.length) === r;
2578
2541
  }
2579
- ), Ge = En ? String.fromCodePoint : (
2542
+ ), Ue = hn ? String.fromCodePoint : (
2580
2543
  // IE11
2581
2544
  function() {
2582
2545
  for (var t = [], r = 0; r < arguments.length; r++)
2583
2546
  t[r] = arguments[r];
2584
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
2585
- if (o = t[s++], o > 1114111)
2586
- throw RangeError(o + " is not a valid code point");
2587
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2547
+ for (var n = "", i = t.length, s = 0, u; i > s; ) {
2548
+ if (u = t[s++], u > 1114111)
2549
+ throw RangeError(u + " is not a valid code point");
2550
+ n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2588
2551
  }
2589
2552
  return n;
2590
2553
  }
2591
- ), lt = (
2554
+ ), it = (
2592
2555
  // native
2593
- xn ? Object.fromEntries : (
2556
+ ln ? Object.fromEntries : (
2594
2557
  // Ponyfill
2595
2558
  function(t) {
2596
2559
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2597
- var s = i[n], o = s[0], a = s[1];
2598
- r[o] = a;
2560
+ var s = i[n], u = s[0], o = s[1];
2561
+ r[u] = o;
2599
2562
  }
2600
2563
  return r;
2601
2564
  }
2602
2565
  )
2603
- ), zt = vn ? (
2566
+ ), Gt = fn ? (
2604
2567
  // Native
2605
2568
  function(t, r) {
2606
2569
  return t.codePointAt(r);
@@ -2614,7 +2577,7 @@ var ht = yn ? (
2614
2577
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2615
2578
  }
2616
2579
  }
2617
- ), An = Hn ? (
2580
+ ), gn = cn ? (
2618
2581
  // Native
2619
2582
  function(t) {
2620
2583
  return t.trimStart();
@@ -2622,9 +2585,9 @@ var ht = yn ? (
2622
2585
  ) : (
2623
2586
  // Ponyfill
2624
2587
  function(t) {
2625
- return t.replace(gn, "");
2588
+ return t.replace(on, "");
2626
2589
  }
2627
- ), Cn = Bn ? (
2590
+ ), _n = mn ? (
2628
2591
  // Native
2629
2592
  function(t) {
2630
2593
  return t.trimEnd();
@@ -2632,32 +2595,32 @@ var ht = yn ? (
2632
2595
  ) : (
2633
2596
  // Ponyfill
2634
2597
  function(t) {
2635
- return t.replace(_n, "");
2598
+ return t.replace(an, "");
2636
2599
  }
2637
2600
  );
2638
- function Wt(e, t) {
2601
+ function Ft(e, t) {
2639
2602
  return new RegExp(e, t);
2640
2603
  }
2641
- var Fe;
2642
- if (De) {
2643
- var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2644
- Fe = function(t, r) {
2604
+ var De;
2605
+ if (Re) {
2606
+ var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2607
+ De = function(t, r) {
2645
2608
  var n;
2646
- ft.lastIndex = r;
2647
- var i = ft.exec(t);
2609
+ st.lastIndex = r;
2610
+ var i = st.exec(t);
2648
2611
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2649
2612
  };
2650
2613
  } else
2651
- Fe = function(t, r) {
2614
+ De = function(t, r) {
2652
2615
  for (var n = []; ; ) {
2653
- var i = zt(t, r);
2654
- if (i === void 0 || Zt(i) || Nn(i))
2616
+ var i = Gt(t, r);
2617
+ if (i === void 0 || jt(i) || vn(i))
2655
2618
  break;
2656
2619
  n.push(i), r += i >= 65536 ? 2 : 1;
2657
2620
  }
2658
- return Ge.apply(void 0, n);
2621
+ return Ue.apply(void 0, n);
2659
2622
  };
2660
- var On = (
2623
+ var yn = (
2661
2624
  /** @class */
2662
2625
  function() {
2663
2626
  function e(t, r) {
@@ -2671,33 +2634,33 @@ var On = (
2671
2634
  for (var i = []; !this.isEOF(); ) {
2672
2635
  var s = this.char();
2673
2636
  if (s === 123) {
2674
- var o = this.parseArgument(t, n);
2675
- if (o.err)
2676
- return o;
2677
- i.push(o.val);
2637
+ var u = this.parseArgument(t, n);
2638
+ if (u.err)
2639
+ return u;
2640
+ i.push(u.val);
2678
2641
  } else {
2679
2642
  if (s === 125 && t > 0)
2680
2643
  break;
2681
2644
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2682
- var a = this.clonePosition();
2645
+ var o = this.clonePosition();
2683
2646
  this.bump(), i.push({
2684
2647
  type: E.pound,
2685
- location: b(a, this.clonePosition())
2648
+ location: b(o, this.clonePosition())
2686
2649
  });
2687
2650
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2688
2651
  if (n)
2689
2652
  break;
2690
2653
  return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2691
- } else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2692
- var o = this.parseTag(t, r);
2693
- if (o.err)
2694
- return o;
2695
- i.push(o.val);
2654
+ } else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2655
+ var u = this.parseTag(t, r);
2656
+ if (u.err)
2657
+ return u;
2658
+ i.push(u.val);
2696
2659
  } else {
2697
- var o = this.parseLiteral(t, r);
2698
- if (o.err)
2699
- return o;
2700
- i.push(o.val);
2660
+ var u = this.parseLiteral(t, r);
2661
+ if (u.err)
2662
+ return u;
2663
+ i.push(u.val);
2701
2664
  }
2702
2665
  }
2703
2666
  }
@@ -2719,27 +2682,27 @@ var On = (
2719
2682
  var s = this.parseMessage(t + 1, r, !0);
2720
2683
  if (s.err)
2721
2684
  return s;
2722
- var o = s.val, a = this.clonePosition();
2685
+ var u = s.val, o = this.clonePosition();
2723
2686
  if (this.bumpIf("</")) {
2724
- if (this.isEOF() || !je(this.char()))
2725
- return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
2726
- var l = this.clonePosition(), u = this.parseTagName();
2727
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2687
+ if (this.isEOF() || !Ge(this.char()))
2688
+ return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
2689
+ var l = this.clonePosition(), a = this.parseTagName();
2690
+ return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2728
2691
  val: {
2729
2692
  type: E.tag,
2730
2693
  value: i,
2731
- children: o,
2694
+ children: u,
2732
2695
  location: b(n, this.clonePosition())
2733
2696
  },
2734
2697
  err: null
2735
- } : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
2698
+ } : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
2736
2699
  } else
2737
2700
  return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
2738
2701
  } else
2739
2702
  return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
2740
2703
  }, e.prototype.parseTagName = function() {
2741
2704
  var t = this.offset();
2742
- for (this.bump(); !this.isEOF() && Ln(this.char()); )
2705
+ for (this.bump(); !this.isEOF() && xn(this.char()); )
2743
2706
  this.bump();
2744
2707
  return this.message.slice(t, this.offset());
2745
2708
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2749,14 +2712,14 @@ var On = (
2749
2712
  i += s;
2750
2713
  continue;
2751
2714
  }
2752
- var o = this.tryParseUnquoted(t, r);
2753
- if (o) {
2754
- i += o;
2715
+ var u = this.tryParseUnquoted(t, r);
2716
+ if (u) {
2717
+ i += u;
2755
2718
  continue;
2756
2719
  }
2757
- var a = this.tryParseLeftAngleBracket();
2758
- if (a) {
2759
- i += a;
2720
+ var o = this.tryParseLeftAngleBracket();
2721
+ if (o) {
2722
+ i += o;
2760
2723
  continue;
2761
2724
  }
2762
2725
  break;
@@ -2768,7 +2731,7 @@ var On = (
2768
2731
  };
2769
2732
  }, e.prototype.tryParseLeftAngleBracket = function() {
2770
2733
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2771
- !Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
2734
+ !En(this.peek() || 0)) ? (this.bump(), "<") : null;
2772
2735
  }, e.prototype.tryParseQuote = function(t) {
2773
2736
  if (this.isEOF() || this.char() !== 39)
2774
2737
  return null;
@@ -2802,12 +2765,12 @@ var On = (
2802
2765
  r.push(n);
2803
2766
  this.bump();
2804
2767
  }
2805
- return Ge.apply(void 0, r);
2768
+ return Ue.apply(void 0, r);
2806
2769
  }, e.prototype.tryParseUnquoted = function(t, r) {
2807
2770
  if (this.isEOF())
2808
2771
  return null;
2809
2772
  var n = this.char();
2810
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2773
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
2811
2774
  }, e.prototype.parseArgument = function(t, r) {
2812
2775
  var n = this.clonePosition();
2813
2776
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2836,39 +2799,39 @@ var On = (
2836
2799
  return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2837
2800
  }
2838
2801
  }, e.prototype.parseIdentifierIfPossible = function() {
2839
- var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
2802
+ var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
2840
2803
  this.bumpTo(i);
2841
- var s = this.clonePosition(), o = b(t, s);
2842
- return { value: n, location: o };
2804
+ var s = this.clonePosition(), u = b(t, s);
2805
+ return { value: n, location: u };
2843
2806
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2844
- var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2845
- switch (a) {
2807
+ var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2808
+ switch (o) {
2846
2809
  case "":
2847
- return this.error(p.EXPECT_ARGUMENT_TYPE, b(o, l));
2810
+ return this.error(p.EXPECT_ARGUMENT_TYPE, b(u, l));
2848
2811
  case "number":
2849
2812
  case "date":
2850
2813
  case "time": {
2851
2814
  this.bumpSpace();
2852
- var u = null;
2815
+ var a = null;
2853
2816
  if (this.bumpIf(",")) {
2854
2817
  this.bumpSpace();
2855
2818
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2856
2819
  if (f.err)
2857
2820
  return f;
2858
- var c = Cn(f.val);
2821
+ var c = _n(f.val);
2859
2822
  if (c.length === 0)
2860
2823
  return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2861
2824
  var d = b(h, this.clonePosition());
2862
- u = { style: c, styleLocation: d };
2825
+ a = { style: c, styleLocation: d };
2863
2826
  }
2864
2827
  var m = this.tryParseArgumentClose(i);
2865
2828
  if (m.err)
2866
2829
  return m;
2867
2830
  var g = b(i, this.clonePosition());
2868
- if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
2869
- var v = An(u.style.slice(2));
2870
- if (a === "number") {
2871
- var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
2831
+ if (a && nt(a?.style, "::", 0)) {
2832
+ var v = gn(a.style.slice(2));
2833
+ if (o === "number") {
2834
+ var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
2872
2835
  return f.err ? f : {
2873
2836
  val: { type: E.number, value: n, location: g, style: f.val },
2874
2837
  err: null
@@ -2876,26 +2839,26 @@ var On = (
2876
2839
  } else {
2877
2840
  if (v.length === 0)
2878
2841
  return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2879
- var N = v;
2880
- this.locale && (N = pn(v, this.locale));
2842
+ var L = v;
2843
+ this.locale && (L = nn(v, this.locale));
2881
2844
  var c = {
2882
- type: V.dateTime,
2883
- pattern: N,
2884
- location: u.styleLocation,
2885
- parsedOptions: this.shouldParseSkeletons ? un(N) : {}
2886
- }, C = a === "date" ? E.date : E.time;
2845
+ type: k.dateTime,
2846
+ pattern: L,
2847
+ location: a.styleLocation,
2848
+ parsedOptions: this.shouldParseSkeletons ? qr(L) : {}
2849
+ }, A = o === "date" ? E.date : E.time;
2887
2850
  return {
2888
- val: { type: C, value: n, location: g, style: c },
2851
+ val: { type: A, value: n, location: g, style: c },
2889
2852
  err: null
2890
2853
  };
2891
2854
  }
2892
2855
  }
2893
2856
  return {
2894
2857
  val: {
2895
- type: a === "number" ? E.number : a === "date" ? E.date : E.time,
2858
+ type: o === "number" ? E.number : o === "date" ? E.date : E.time,
2896
2859
  value: n,
2897
2860
  location: g,
2898
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2861
+ style: (s = a?.style) !== null && s !== void 0 ? s : null
2899
2862
  },
2900
2863
  err: null
2901
2864
  };
@@ -2907,45 +2870,45 @@ var On = (
2907
2870
  if (this.bumpSpace(), !this.bumpIf(","))
2908
2871
  return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
2909
2872
  this.bumpSpace();
2910
- var I = this.parseIdentifierIfPossible(), w = 0;
2911
- if (a !== "select" && I.value === "offset") {
2873
+ var N = this.parseIdentifierIfPossible(), T = 0;
2874
+ if (o !== "select" && N.value === "offset") {
2912
2875
  if (!this.bumpIf(":"))
2913
2876
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2914
2877
  this.bumpSpace();
2915
2878
  var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2916
2879
  if (f.err)
2917
2880
  return f;
2918
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
2881
+ this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
2919
2882
  }
2920
- var R = this.tryParsePluralOrSelectOptions(t, a, r, I);
2921
- if (R.err)
2922
- return R;
2883
+ var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
2884
+ if ($.err)
2885
+ return $;
2923
2886
  var m = this.tryParseArgumentClose(i);
2924
2887
  if (m.err)
2925
2888
  return m;
2926
- var se = b(i, this.clonePosition());
2927
- return a === "select" ? {
2889
+ var ie = b(i, this.clonePosition());
2890
+ return o === "select" ? {
2928
2891
  val: {
2929
2892
  type: E.select,
2930
2893
  value: n,
2931
- options: lt(R.val),
2932
- location: se
2894
+ options: it($.val),
2895
+ location: ie
2933
2896
  },
2934
2897
  err: null
2935
2898
  } : {
2936
2899
  val: {
2937
2900
  type: E.plural,
2938
2901
  value: n,
2939
- options: lt(R.val),
2940
- offset: w,
2941
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2942
- location: se
2902
+ options: it($.val),
2903
+ offset: T,
2904
+ pluralType: o === "plural" ? "cardinal" : "ordinal",
2905
+ location: ie
2943
2906
  },
2944
2907
  err: null
2945
2908
  };
2946
2909
  }
2947
2910
  default:
2948
- return this.error(p.INVALID_ARGUMENT_TYPE, b(o, l));
2911
+ return this.error(p.INVALID_ARGUMENT_TYPE, b(u, l));
2949
2912
  }
2950
2913
  }, e.prototype.tryParseArgumentClose = function(t) {
2951
2914
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2987,34 +2950,34 @@ var On = (
2987
2950
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2988
2951
  var n = [];
2989
2952
  try {
2990
- n = ln(t);
2991
- } catch (i) {
2953
+ n = Yr(t);
2954
+ } catch {
2992
2955
  return this.error(p.INVALID_NUMBER_SKELETON, r);
2993
2956
  }
2994
2957
  return {
2995
2958
  val: {
2996
- type: V.number,
2959
+ type: k.number,
2997
2960
  tokens: n,
2998
2961
  location: r,
2999
- parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
2962
+ parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
3000
2963
  },
3001
2964
  err: null
3002
2965
  };
3003
2966
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3004
- for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3005
- if (u.length === 0) {
2967
+ for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2968
+ if (a.length === 0) {
3006
2969
  var f = this.clonePosition();
3007
2970
  if (r !== "select" && this.bumpIf("=")) {
3008
2971
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3009
2972
  if (c.err)
3010
2973
  return c;
3011
- h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2974
+ h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
3012
2975
  } else
3013
2976
  break;
3014
2977
  }
3015
- if (l.has(u))
2978
+ if (l.has(a))
3016
2979
  return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3017
- u === "other" && (o = !0), this.bumpSpace();
2980
+ a === "other" && (u = !0), this.bumpSpace();
3018
2981
  var d = this.clonePosition();
3019
2982
  if (!this.bumpIf("{"))
3020
2983
  return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
@@ -3024,27 +2987,27 @@ var On = (
3024
2987
  var g = this.tryParseArgumentClose(d);
3025
2988
  if (g.err)
3026
2989
  return g;
3027
- a.push([
3028
- u,
2990
+ o.push([
2991
+ a,
3029
2992
  {
3030
2993
  value: m.val,
3031
2994
  location: b(d, this.clonePosition())
3032
2995
  }
3033
- ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
2996
+ ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
3034
2997
  }
3035
- return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2998
+ return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3036
2999
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3037
3000
  var n = 1, i = this.clonePosition();
3038
3001
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3039
- for (var s = !1, o = 0; !this.isEOF(); ) {
3040
- var a = this.char();
3041
- if (a >= 48 && a <= 57)
3042
- s = !0, o = o * 10 + (a - 48), this.bump();
3002
+ for (var s = !1, u = 0; !this.isEOF(); ) {
3003
+ var o = this.char();
3004
+ if (o >= 48 && o <= 57)
3005
+ s = !0, u = u * 10 + (o - 48), this.bump();
3043
3006
  else
3044
3007
  break;
3045
3008
  }
3046
3009
  var l = b(i, this.clonePosition());
3047
- return s ? (o *= n, wn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3010
+ return s ? (u *= n, pn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
3048
3011
  }, e.prototype.offset = function() {
3049
3012
  return this.position.offset;
3050
3013
  }, e.prototype.isEOF = function() {
@@ -3059,7 +3022,7 @@ var On = (
3059
3022
  var t = this.position.offset;
3060
3023
  if (t >= this.message.length)
3061
3024
  throw Error("out of bound");
3062
- var r = zt(this.message, t);
3025
+ var r = Gt(this.message, t);
3063
3026
  if (r === void 0)
3064
3027
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3065
3028
  return r;
@@ -3078,7 +3041,7 @@ var On = (
3078
3041
  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);
3079
3042
  }
3080
3043
  }, e.prototype.bumpIf = function(t) {
3081
- if (ht(this.message, t, this.offset())) {
3044
+ if (nt(this.message, t, this.offset())) {
3082
3045
  for (var r = 0; r < t.length; r++)
3083
3046
  this.bump();
3084
3047
  return !0;
@@ -3100,56 +3063,56 @@ var On = (
3100
3063
  break;
3101
3064
  }
3102
3065
  }, e.prototype.bumpSpace = function() {
3103
- for (; !this.isEOF() && Zt(this.char()); )
3066
+ for (; !this.isEOF() && jt(this.char()); )
3104
3067
  this.bump();
3105
3068
  }, e.prototype.peek = function() {
3106
3069
  if (this.isEOF())
3107
3070
  return null;
3108
3071
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3109
- return n != null ? n : null;
3072
+ return n ?? null;
3110
3073
  }, e;
3111
3074
  }()
3112
3075
  );
3113
- function je(e) {
3076
+ function Ge(e) {
3114
3077
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3115
3078
  }
3116
- function Pn(e) {
3117
- return je(e) || e === 47;
3079
+ function En(e) {
3080
+ return Ge(e) || e === 47;
3118
3081
  }
3119
- function Ln(e) {
3082
+ function xn(e) {
3120
3083
  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;
3121
3084
  }
3122
- function Zt(e) {
3085
+ function jt(e) {
3123
3086
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3124
3087
  }
3125
- function Nn(e) {
3088
+ function vn(e) {
3126
3089
  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;
3127
3090
  }
3128
- function ke(e) {
3091
+ function Fe(e) {
3129
3092
  e.forEach(function(t) {
3130
- if (delete t.location, Ut(t) || Dt(t))
3093
+ if (delete t.location, Lt(t) || Nt(t))
3131
3094
  for (var r in t.options)
3132
- delete t.options[r].location, ke(t.options[r].value);
3133
- else Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Ue(t.style) ? delete t.style.location : Gt(t) && ke(t.children);
3095
+ delete t.options[r].location, Fe(t.options[r].value);
3096
+ else Ct(t) && Mt(t.style) || (Ot(t) || Pt(t)) && $e(t.style) ? delete t.style.location : It(t) && Fe(t.children);
3134
3097
  });
3135
3098
  }
3136
- function In(e, t) {
3099
+ function Hn(e, t) {
3137
3100
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3138
- var r = new On(e, t).parse();
3101
+ var r = new yn(e, t).parse();
3139
3102
  if (r.err) {
3140
3103
  var n = SyntaxError(p[r.err.kind]);
3141
3104
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3142
3105
  }
3143
- return t != null && t.captureLocation || ke(r.val), r.val;
3106
+ return t?.captureLocation || Fe(r.val), r.val;
3144
3107
  }
3145
- var X;
3108
+ var V;
3146
3109
  (function(e) {
3147
3110
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3148
- })(X || (X = {}));
3149
- var ye = (
3111
+ })(V || (V = {}));
3112
+ var _e = (
3150
3113
  /** @class */
3151
3114
  function(e) {
3152
- _e(t, e);
3115
+ ge(t, e);
3153
3116
  function t(r, n, i) {
3154
3117
  var s = e.call(this, r) || this;
3155
3118
  return s.code = n, s.originalMessage = i, s;
@@ -3158,65 +3121,65 @@ var ye = (
3158
3121
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3159
3122
  }, t;
3160
3123
  }(Error)
3161
- ), ct = (
3124
+ ), ot = (
3162
3125
  /** @class */
3163
3126
  function(e) {
3164
- _e(t, e);
3127
+ ge(t, e);
3165
3128
  function t(r, n, i, s) {
3166
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
3129
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
3167
3130
  }
3168
3131
  return t;
3169
- }(ye)
3170
- ), Mn = (
3132
+ }(_e)
3133
+ ), Bn = (
3171
3134
  /** @class */
3172
3135
  function(e) {
3173
- _e(t, e);
3136
+ ge(t, e);
3174
3137
  function t(r, n, i) {
3175
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3138
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
3176
3139
  }
3177
3140
  return t;
3178
- }(ye)
3179
- ), $n = (
3141
+ }(_e)
3142
+ ), Tn = (
3180
3143
  /** @class */
3181
3144
  function(e) {
3182
- _e(t, e);
3145
+ ge(t, e);
3183
3146
  function t(r, n) {
3184
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3147
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
3185
3148
  }
3186
3149
  return t;
3187
- }(ye)
3150
+ }(_e)
3188
3151
  ), x;
3189
3152
  (function(e) {
3190
3153
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3191
3154
  })(x || (x = {}));
3192
- function Rn(e) {
3155
+ function wn(e) {
3193
3156
  return e.length < 2 ? e : e.reduce(function(t, r) {
3194
3157
  var n = t[t.length - 1];
3195
3158
  return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3196
3159
  }, []);
3197
3160
  }
3198
- function Un(e) {
3161
+ function Sn(e) {
3199
3162
  return typeof e == "function";
3200
3163
  }
3201
- function fe(e, t, r, n, i, s, o) {
3202
- if (e.length === 1 && st(e[0]))
3164
+ function le(e, t, r, n, i, s, u) {
3165
+ if (e.length === 1 && Ke(e[0]))
3203
3166
  return [
3204
3167
  {
3205
3168
  type: x.literal,
3206
3169
  value: e[0].value
3207
3170
  }
3208
3171
  ];
3209
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3210
- var h = u[l];
3211
- if (st(h)) {
3212
- a.push({
3172
+ for (var o = [], l = 0, a = e; l < a.length; l++) {
3173
+ var h = a[l];
3174
+ if (Ke(h)) {
3175
+ o.push({
3213
3176
  type: x.literal,
3214
3177
  value: h.value
3215
3178
  });
3216
3179
  continue;
3217
3180
  }
3218
- if (on(h)) {
3219
- typeof s == "number" && a.push({
3181
+ if (Zr(h)) {
3182
+ typeof s == "number" && o.push({
3220
3183
  type: x.literal,
3221
3184
  value: r.getNumberFormat(t).format(s)
3222
3185
  });
@@ -3224,89 +3187,89 @@ function fe(e, t, r, n, i, s, o) {
3224
3187
  }
3225
3188
  var f = h.value;
3226
3189
  if (!(i && f in i))
3227
- throw new $n(f, o);
3190
+ throw new Tn(f, u);
3228
3191
  var c = i[f];
3229
- if (sn(h)) {
3230
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3192
+ if (Wr(h)) {
3193
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3231
3194
  type: typeof c == "string" ? x.literal : x.object,
3232
3195
  value: c
3233
3196
  });
3234
3197
  continue;
3235
3198
  }
3236
- if ($t(h)) {
3237
- var d = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
3238
- a.push({
3199
+ if (Ot(h)) {
3200
+ var d = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
3201
+ o.push({
3239
3202
  type: x.literal,
3240
3203
  value: r.getDateTimeFormat(t, d).format(c)
3241
3204
  });
3242
3205
  continue;
3243
3206
  }
3244
- if (Rt(h)) {
3245
- var d = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
3246
- a.push({
3207
+ if (Pt(h)) {
3208
+ var d = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
3209
+ o.push({
3247
3210
  type: x.literal,
3248
3211
  value: r.getDateTimeFormat(t, d).format(c)
3249
3212
  });
3250
3213
  continue;
3251
3214
  }
3252
- if (Mt(h)) {
3253
- var d = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3254
- d && d.scale && (c = c * (d.scale || 1)), a.push({
3215
+ if (Ct(h)) {
3216
+ var d = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
3217
+ d && d.scale && (c = c * (d.scale || 1)), o.push({
3255
3218
  type: x.literal,
3256
3219
  value: r.getNumberFormat(t, d).format(c)
3257
3220
  });
3258
3221
  continue;
3259
3222
  }
3260
- if (Gt(h)) {
3223
+ if (It(h)) {
3261
3224
  var m = h.children, g = h.value, v = i[g];
3262
- if (!Un(v))
3263
- throw new Mn(g, "function", o);
3264
- var N = fe(m, t, r, n, i, s), C = v(N.map(function(w) {
3265
- return w.value;
3225
+ if (!Sn(v))
3226
+ throw new Bn(g, "function", u);
3227
+ var L = le(m, t, r, n, i, s), A = v(L.map(function(T) {
3228
+ return T.value;
3266
3229
  }));
3267
- Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(w) {
3230
+ Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
3268
3231
  return {
3269
- type: typeof w == "string" ? x.literal : x.object,
3270
- value: w
3232
+ type: typeof T == "string" ? x.literal : x.object,
3233
+ value: T
3271
3234
  };
3272
3235
  }));
3273
3236
  }
3274
- if (Ut(h)) {
3237
+ if (Lt(h)) {
3275
3238
  var H = h.options[c] || h.options.other;
3276
3239
  if (!H)
3277
- throw new ct(h.value, c, Object.keys(h.options), o);
3278
- a.push.apply(a, fe(H.value, t, r, n, i));
3240
+ throw new ot(h.value, c, Object.keys(h.options), u);
3241
+ o.push.apply(o, le(H.value, t, r, n, i));
3279
3242
  continue;
3280
3243
  }
3281
- if (Dt(h)) {
3244
+ if (Nt(h)) {
3282
3245
  var H = h.options["=".concat(c)];
3283
3246
  if (!H) {
3284
3247
  if (!Intl.PluralRules)
3285
- throw new ye(`Intl.PluralRules is not available in this environment.
3248
+ throw new _e(`Intl.PluralRules is not available in this environment.
3286
3249
  Try polyfilling it using "@formatjs/intl-pluralrules"
3287
- `, X.MISSING_INTL_API, o);
3288
- var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3289
- H = h.options[I] || h.options.other;
3250
+ `, V.MISSING_INTL_API, u);
3251
+ var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3252
+ H = h.options[N] || h.options.other;
3290
3253
  }
3291
3254
  if (!H)
3292
- throw new ct(h.value, c, Object.keys(h.options), o);
3293
- a.push.apply(a, fe(H.value, t, r, n, i, c - (h.offset || 0)));
3255
+ throw new ot(h.value, c, Object.keys(h.options), u);
3256
+ o.push.apply(o, le(H.value, t, r, n, i, c - (h.offset || 0)));
3294
3257
  continue;
3295
3258
  }
3296
3259
  }
3297
- return Rn(a);
3260
+ return wn(o);
3298
3261
  }
3299
- function Dn(e, t) {
3262
+ function An(e, t) {
3300
3263
  return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3301
3264
  return r[n] = y(y({}, e[n]), t[n] || {}), r;
3302
3265
  }, {})) : e;
3303
3266
  }
3304
- function Gn(e, t) {
3267
+ function Cn(e, t) {
3305
3268
  return t ? Object.keys(e).reduce(function(r, n) {
3306
- return r[n] = Dn(e[n], t[n]), r;
3269
+ return r[n] = An(e[n], t[n]), r;
3307
3270
  }, y({}, e)) : e;
3308
3271
  }
3309
- function Le(e) {
3272
+ function Oe(e) {
3310
3273
  return {
3311
3274
  create: function() {
3312
3275
  return {
@@ -3320,39 +3283,39 @@ function Le(e) {
3320
3283
  }
3321
3284
  };
3322
3285
  }
3323
- function Fn(e) {
3286
+ function On(e) {
3324
3287
  return e === void 0 && (e = {
3325
3288
  number: {},
3326
3289
  dateTime: {},
3327
3290
  pluralRules: {}
3328
3291
  }), {
3329
- getNumberFormat: Ce(function() {
3292
+ getNumberFormat: Se(function() {
3330
3293
  for (var t, r = [], n = 0; n < arguments.length; n++)
3331
3294
  r[n] = arguments[n];
3332
- return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3295
+ return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
3333
3296
  }, {
3334
- cache: Le(e.number),
3335
- strategy: Oe.variadic
3297
+ cache: Oe(e.number),
3298
+ strategy: Ae.variadic
3336
3299
  }),
3337
- getDateTimeFormat: Ce(function() {
3300
+ getDateTimeFormat: Se(function() {
3338
3301
  for (var t, r = [], n = 0; n < arguments.length; n++)
3339
3302
  r[n] = arguments[n];
3340
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3303
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
3341
3304
  }, {
3342
- cache: Le(e.dateTime),
3343
- strategy: Oe.variadic
3305
+ cache: Oe(e.dateTime),
3306
+ strategy: Ae.variadic
3344
3307
  }),
3345
- getPluralRules: Ce(function() {
3308
+ getPluralRules: Se(function() {
3346
3309
  for (var t, r = [], n = 0; n < arguments.length; n++)
3347
3310
  r[n] = arguments[n];
3348
- return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3311
+ return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
3349
3312
  }, {
3350
- cache: Le(e.pluralRules),
3351
- strategy: Oe.variadic
3313
+ cache: Oe(e.pluralRules),
3314
+ strategy: Ae.variadic
3352
3315
  })
3353
3316
  };
3354
3317
  }
3355
- var Qt = (
3318
+ var kt = (
3356
3319
  /** @class */
3357
3320
  function() {
3358
3321
  function e(t, r, n, i) {
@@ -3363,15 +3326,15 @@ var Qt = (
3363
3326
  dateTime: {},
3364
3327
  pluralRules: {}
3365
3328
  }, this.format = function(l) {
3366
- var u = s.formatToParts(l);
3367
- if (u.length === 1)
3368
- return u[0].value;
3369
- var h = u.reduce(function(f, c) {
3329
+ var a = s.formatToParts(l);
3330
+ if (a.length === 1)
3331
+ return a[0].value;
3332
+ var h = a.reduce(function(f, c) {
3370
3333
  return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3371
3334
  }, []);
3372
3335
  return h.length <= 1 ? h[0] || "" : h;
3373
3336
  }, this.formatToParts = function(l) {
3374
- return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3337
+ return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3375
3338
  }, this.resolvedOptions = function() {
3376
3339
  var l;
3377
3340
  return {
@@ -3382,15 +3345,15 @@ var Qt = (
3382
3345
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3383
3346
  if (this.message = t, !e.__parse)
3384
3347
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3385
- var o = i || {};
3386
- o.formatters;
3387
- var a = qr(o, ["formatters"]);
3388
- this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
3348
+ var u = i || {};
3349
+ u.formatters;
3350
+ var o = Dr(u, ["formatters"]);
3351
+ this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3389
3352
  } else
3390
3353
  this.ast = t;
3391
3354
  if (!Array.isArray(this.ast))
3392
3355
  throw new TypeError("A message must be provided as a String or AST.");
3393
- this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
3356
+ this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3394
3357
  }
3395
3358
  return Object.defineProperty(e, "defaultLocale", {
3396
3359
  get: function() {
@@ -3399,11 +3362,11 @@ var Qt = (
3399
3362
  enumerable: !1,
3400
3363
  configurable: !0
3401
3364
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3402
- if (typeof Intl.Locale != "undefined") {
3365
+ if (!(typeof Intl.Locale > "u")) {
3403
3366
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3404
3367
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3405
3368
  }
3406
- }, e.__parse = In, e.formats = {
3369
+ }, e.__parse = Hn, e.formats = {
3407
3370
  number: {
3408
3371
  integer: {
3409
3372
  maximumFractionDigits: 0
@@ -3464,7 +3427,7 @@ var Qt = (
3464
3427
  }, e;
3465
3428
  }()
3466
3429
  );
3467
- function jn(e, t) {
3430
+ function Pn(e, t) {
3468
3431
  if (t == null)
3469
3432
  return;
3470
3433
  if (t in e)
@@ -3485,101 +3448,101 @@ function jn(e, t) {
3485
3448
  n = void 0;
3486
3449
  return n;
3487
3450
  }
3488
- const O = {}, kn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), qt = (e, t) => {
3451
+ const C = {}, Ln = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
3489
3452
  if (t == null)
3490
3453
  return;
3491
- if (t in O && e in O[t])
3492
- return O[t][e];
3493
- const r = ie(t);
3454
+ if (t in C && e in C[t])
3455
+ return C[t][e];
3456
+ const r = ne(t);
3494
3457
  for (let n = 0; n < r.length; n++) {
3495
- const i = r[n], s = Xn(i, e);
3458
+ const i = r[n], s = In(i, e);
3496
3459
  if (s)
3497
- return kn(e, t, s);
3460
+ return Ln(e, t, s);
3498
3461
  }
3499
3462
  };
3500
- let Qe;
3501
- const ne = ge({});
3502
- function Vn(e) {
3503
- return Qe[e] || null;
3463
+ let We;
3464
+ const re = be({});
3465
+ function Nn(e) {
3466
+ return We[e] || null;
3504
3467
  }
3505
- function Jt(e) {
3506
- return e in Qe;
3468
+ function Xt(e) {
3469
+ return e in We;
3507
3470
  }
3508
- function Xn(e, t) {
3509
- if (!Jt(e))
3471
+ function In(e, t) {
3472
+ if (!Xt(e))
3510
3473
  return null;
3511
- const r = Vn(e);
3512
- return jn(r, t);
3474
+ const r = Nn(e);
3475
+ return Pn(r, t);
3513
3476
  }
3514
- function zn(e) {
3477
+ function Mn(e) {
3515
3478
  if (e == null)
3516
3479
  return;
3517
- const t = ie(e);
3480
+ const t = ne(e);
3518
3481
  for (let r = 0; r < t.length; r++) {
3519
3482
  const n = t[r];
3520
- if (Jt(n))
3483
+ if (Xt(n))
3521
3484
  return n;
3522
3485
  }
3523
3486
  }
3524
- function Yt(e, ...t) {
3525
- delete O[e], ne.update((r) => (r[e] = Qr.all([r[e] || {}, ...t]), r));
3487
+ function zt(e, ...t) {
3488
+ delete C[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3526
3489
  }
3527
- Q(
3528
- [ne],
3490
+ Z(
3491
+ [re],
3529
3492
  ([e]) => Object.keys(e)
3530
3493
  );
3531
- ne.subscribe((e) => Qe = e);
3532
- const ce = {};
3533
- function Wn(e, t) {
3534
- ce[e].delete(t), ce[e].size === 0 && delete ce[e];
3494
+ re.subscribe((e) => We = e);
3495
+ const fe = {};
3496
+ function $n(e, t) {
3497
+ fe[e].delete(t), fe[e].size === 0 && delete fe[e];
3535
3498
  }
3536
- function Kt(e) {
3537
- return ce[e];
3499
+ function Wt(e) {
3500
+ return fe[e];
3538
3501
  }
3539
- function Zn(e) {
3540
- return ie(e).map((t) => {
3541
- const r = Kt(t);
3502
+ function Rn(e) {
3503
+ return ne(e).map((t) => {
3504
+ const r = Wt(t);
3542
3505
  return [t, r ? [...r] : []];
3543
3506
  }).filter(([, t]) => t.length > 0);
3544
3507
  }
3545
- function de(e) {
3546
- return e == null ? !1 : ie(e).some(
3508
+ function me(e) {
3509
+ return e == null ? !1 : ne(e).some(
3547
3510
  (t) => {
3548
3511
  var r;
3549
- return (r = Kt(t)) == null ? void 0 : r.size;
3512
+ return (r = Wt(t)) == null ? void 0 : r.size;
3550
3513
  }
3551
3514
  );
3552
3515
  }
3553
- function Qn(e, t) {
3516
+ function Un(e, t) {
3554
3517
  return Promise.all(
3555
- t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
3556
- ).then((n) => Yt(e, ...n));
3557
- }
3558
- const J = {};
3559
- function er(e) {
3560
- if (!de(e))
3561
- return e in J ? J[e] : Promise.resolve();
3562
- const t = Zn(e);
3563
- return J[e] = Promise.all(
3518
+ t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3519
+ ).then((n) => zt(e, ...n));
3520
+ }
3521
+ const q = {};
3522
+ function Zt(e) {
3523
+ if (!me(e))
3524
+ return e in q ? q[e] : Promise.resolve();
3525
+ const t = Rn(e);
3526
+ return q[e] = Promise.all(
3564
3527
  t.map(
3565
- ([r, n]) => Qn(r, n)
3528
+ ([r, n]) => Un(r, n)
3566
3529
  )
3567
3530
  ).then(() => {
3568
- if (de(e))
3569
- return er(e);
3570
- delete J[e];
3571
- }), J[e];
3531
+ if (me(e))
3532
+ return Zt(e);
3533
+ delete q[e];
3534
+ }), q[e];
3572
3535
  }
3573
- var mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
3536
+ var at = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3574
3537
  var r = {};
3575
3538
  for (var n in e)
3576
- qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3577
- if (e != null && mt)
3578
- for (var n of mt(e))
3579
- t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
3539
+ Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3540
+ if (e != null && at)
3541
+ for (var n of at(e))
3542
+ t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3580
3543
  return r;
3581
3544
  };
3582
- const Kn = {
3545
+ const jn = {
3583
3546
  number: {
3584
3547
  scientific: { notation: "scientific" },
3585
3548
  engineering: { notation: "engineering" },
@@ -3609,183 +3572,183 @@ const Kn = {
3609
3572
  }
3610
3573
  }
3611
3574
  };
3612
- function ei({ locale: e, id: t }) {
3575
+ function kn({ locale: e, id: t }) {
3613
3576
  console.warn(
3614
- `[svelte-i18n] The message "${t}" was not found in "${ie(
3577
+ `[svelte-i18n] The message "${t}" was not found in "${ne(
3615
3578
  e
3616
- ).join('", "')}".${de(L()) ? `
3579
+ ).join('", "')}".${me(P()) ? `
3617
3580
 
3618
3581
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3619
3582
  );
3620
3583
  }
3621
- const ti = {
3584
+ const Vn = {
3622
3585
  fallbackLocale: null,
3623
3586
  loadingDelay: 200,
3624
- formats: Kn,
3587
+ formats: jn,
3625
3588
  warnOnMissingMessages: !0,
3626
3589
  handleMissingMessage: void 0,
3627
3590
  ignoreTag: !0
3628
- }, Y = ti;
3629
- function z() {
3630
- return Y;
3591
+ }, J = Vn;
3592
+ function X() {
3593
+ return J;
3631
3594
  }
3632
- function ri(e) {
3633
- const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
3595
+ function Xn(e) {
3596
+ const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
3634
3597
  let i = e.fallbackLocale;
3635
3598
  if (e.initialLocale)
3636
3599
  try {
3637
- Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3638
- } catch (s) {
3600
+ kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3601
+ } catch {
3639
3602
  console.warn(
3640
3603
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3641
3604
  );
3642
3605
  }
3643
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
3606
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = kn : console.warn(
3644
3607
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3645
- )), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), $.set(i);
3608
+ )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
3646
3609
  }
3647
- const Ne = ge(!1);
3648
- var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
3610
+ const Pe = be(!1);
3611
+ var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
3649
3612
  for (var r in t)
3650
- oi.call(t, r) && pt(e, r, t[r]);
3651
- if (dt)
3652
- for (var r of dt(t))
3653
- ai.call(t, r) && pt(e, r, t[r]);
3613
+ Qn.call(t, r) && ht(e, r, t[r]);
3614
+ if (ut)
3615
+ for (var r of ut(t))
3616
+ qn.call(t, r) && ht(e, r, t[r]);
3654
3617
  return e;
3655
- }, hi = (e, t) => ii(e, si(t));
3656
- let Ve;
3657
- const pe = ge(null);
3658
- function bt(e) {
3618
+ }, Yn = (e, t) => Wn(e, Zn(t));
3619
+ let je;
3620
+ const de = be(null);
3621
+ function lt(e) {
3659
3622
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3660
3623
  }
3661
- function ie(e, t = z().fallbackLocale) {
3662
- const r = bt(e);
3663
- return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3624
+ function ne(e, t = X().fallbackLocale) {
3625
+ const r = lt(e);
3626
+ return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
3664
3627
  }
3665
- function L() {
3666
- return Ve != null ? Ve : void 0;
3628
+ function P() {
3629
+ return je ?? void 0;
3667
3630
  }
3668
- pe.subscribe((e) => {
3669
- Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3631
+ de.subscribe((e) => {
3632
+ je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3670
3633
  });
3671
- const li = (e) => {
3672
- if (e && zn(e) && de(e)) {
3673
- const { loadingDelay: t } = z();
3634
+ const Kn = (e) => {
3635
+ if (e && Mn(e) && me(e)) {
3636
+ const { loadingDelay: t } = X();
3674
3637
  let r;
3675
- return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
3676
- () => Ne.set(!0),
3638
+ return typeof window < "u" && P() != null && t ? r = window.setTimeout(
3639
+ () => Pe.set(!0),
3677
3640
  t
3678
- ) : Ne.set(!0), er(e).then(() => {
3679
- pe.set(e);
3641
+ ) : Pe.set(!0), Zt(e).then(() => {
3642
+ de.set(e);
3680
3643
  }).finally(() => {
3681
- clearTimeout(r), Ne.set(!1);
3644
+ clearTimeout(r), Pe.set(!1);
3682
3645
  });
3683
3646
  }
3684
- return pe.set(e);
3685
- }, $ = hi(ui({}, pe), {
3686
- set: li
3687
- }), Ee = (e) => {
3647
+ return de.set(e);
3648
+ }, M = Yn(Jn({}, de), {
3649
+ set: Kn
3650
+ }), ye = (e) => {
3688
3651
  const t = /* @__PURE__ */ Object.create(null);
3689
3652
  return (n) => {
3690
3653
  const i = JSON.stringify(n);
3691
3654
  return i in t ? t[i] : t[i] = e(n);
3692
3655
  };
3693
3656
  };
3694
- var fi = Object.defineProperty, be = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3657
+ var ei = Object.defineProperty, pe = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3695
3658
  for (var r in t || (t = {}))
3696
- tr.call(t, r) && gt(e, r, t[r]);
3697
- if (be)
3698
- for (var r of be(t))
3699
- rr.call(t, r) && gt(e, r, t[r]);
3659
+ Qt.call(t, r) && ft(e, r, t[r]);
3660
+ if (pe)
3661
+ for (var r of pe(t))
3662
+ qt.call(t, r) && ft(e, r, t[r]);
3700
3663
  return e;
3701
- }, q = (e, t) => {
3664
+ }, Q = (e, t) => {
3702
3665
  var r = {};
3703
3666
  for (var n in e)
3704
- tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3705
- if (e != null && be)
3706
- for (var n of be(e))
3707
- t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
3667
+ Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3668
+ if (e != null && pe)
3669
+ for (var n of pe(e))
3670
+ t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
3708
3671
  return r;
3709
3672
  };
3710
- const te = (e, t) => {
3711
- const { formats: r } = z();
3673
+ const ee = (e, t) => {
3674
+ const { formats: r } = X();
3712
3675
  if (e in r && t in r[e])
3713
3676
  return r[e][t];
3714
3677
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3715
- }, ci = Ee(
3678
+ }, ti = ye(
3716
3679
  (e) => {
3717
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3680
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3718
3681
  if (r == null)
3719
3682
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3720
- return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3683
+ return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3721
3684
  }
3722
- ), mi = Ee(
3685
+ ), ri = ye(
3723
3686
  (e) => {
3724
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3687
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3725
3688
  if (r == null)
3726
3689
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3727
- return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3690
+ return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3728
3691
  }
3729
- ), di = Ee(
3692
+ ), ni = ye(
3730
3693
  (e) => {
3731
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3694
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3732
3695
  if (r == null)
3733
3696
  throw new Error(
3734
3697
  '[svelte-i18n] A "locale" must be set to format time values'
3735
3698
  );
3736
- return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3699
+ return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3737
3700
  }
3738
- ), pi = (e = {}) => {
3701
+ ), ii = (e = {}) => {
3739
3702
  var t = e, {
3740
- locale: r = L()
3741
- } = t, n = q(t, [
3703
+ locale: r = P()
3704
+ } = t, n = Q(t, [
3742
3705
  "locale"
3743
3706
  ]);
3744
- return ci(qe({ locale: r }, n));
3745
- }, bi = (e = {}) => {
3707
+ return ti(Ze({ locale: r }, n));
3708
+ }, si = (e = {}) => {
3746
3709
  var t = e, {
3747
- locale: r = L()
3748
- } = t, n = q(t, [
3710
+ locale: r = P()
3711
+ } = t, n = Q(t, [
3749
3712
  "locale"
3750
3713
  ]);
3751
- return mi(qe({ locale: r }, n));
3752
- }, gi = (e = {}) => {
3714
+ return ri(Ze({ locale: r }, n));
3715
+ }, oi = (e = {}) => {
3753
3716
  var t = e, {
3754
- locale: r = L()
3755
- } = t, n = q(t, [
3717
+ locale: r = P()
3718
+ } = t, n = Q(t, [
3756
3719
  "locale"
3757
3720
  ]);
3758
- return di(qe({ locale: r }, n));
3759
- }, _i = Ee(
3721
+ return ni(Ze({ locale: r }, n));
3722
+ }, ai = ye(
3760
3723
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3761
- (e, t = L()) => new Qt(e, t, z().formats, {
3762
- ignoreTag: z().ignoreTag
3724
+ (e, t = P()) => new kt(e, t, X().formats, {
3725
+ ignoreTag: X().ignoreTag
3763
3726
  })
3764
- ), yi = (e, t = {}) => {
3727
+ ), ui = (e, t = {}) => {
3765
3728
  var r, n, i, s;
3766
- let o = t;
3767
- typeof e == "object" && (o = e, e = o.id);
3729
+ let u = t;
3730
+ typeof e == "object" && (u = e, e = u.id);
3768
3731
  const {
3769
- values: a,
3770
- locale: l = L(),
3771
- default: u
3772
- } = o;
3732
+ values: o,
3733
+ locale: l = P(),
3734
+ default: a
3735
+ } = u;
3773
3736
  if (l == null)
3774
3737
  throw new Error(
3775
3738
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3776
3739
  );
3777
- let h = qt(e, l);
3740
+ let h = Vt(e, l);
3778
3741
  if (!h)
3779
- h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3742
+ h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3780
3743
  else if (typeof h != "string")
3781
3744
  return console.warn(
3782
3745
  `[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.`
3783
3746
  ), h;
3784
- if (!a)
3747
+ if (!o)
3785
3748
  return h;
3786
3749
  let f = h;
3787
3750
  try {
3788
- f = _i(h, l).format(a);
3751
+ f = ai(h, l).format(o);
3789
3752
  } catch (c) {
3790
3753
  c instanceof Error && console.warn(
3791
3754
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3793,20 +3756,20 @@ const te = (e, t) => {
3793
3756
  );
3794
3757
  }
3795
3758
  return f;
3796
- }, Ei = (e, t) => gi(t).format(e), xi = (e, t) => bi(t).format(e), vi = (e, t) => pi(t).format(e), Hi = (e, t = L()) => qt(e, t), Bi = Q([$, ne], () => yi);
3797
- Q([$], () => Ei);
3798
- Q([$], () => xi);
3799
- Q([$], () => vi);
3800
- Q([$, ne], () => Hi);
3801
- function _t(e, t) {
3802
- Yt(e, t);
3803
- }
3804
- function Ti(e) {
3805
- ri({
3759
+ }, hi = (e, t) => oi(t).format(e), li = (e, t) => si(t).format(e), fi = (e, t) => ii(t).format(e), ci = (e, t = P()) => Vt(e, t), mi = Z([M, re], () => ui);
3760
+ Z([M], () => hi);
3761
+ Z([M], () => li);
3762
+ Z([M], () => fi);
3763
+ Z([M, re], () => ci);
3764
+ function ct(e, t) {
3765
+ zt(e, t);
3766
+ }
3767
+ function di(e) {
3768
+ Xn({
3806
3769
  fallbackLocale: "en"
3807
- }), $.set(e);
3770
+ }), M.set(e);
3808
3771
  }
3809
- const yt = {
3772
+ const mt = {
3810
3773
  en: {
3811
3774
  header: {
3812
3775
  general: "Cashier",
@@ -3829,52 +3792,52 @@ const yt = {
3829
3792
  }
3830
3793
  }
3831
3794
  };
3832
- function wi(e) {
3833
- pr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3795
+ function pi(e) {
3796
+ ir(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
3834
3797
  }
3835
- const Si = (e) => ({}), Et = (e) => ({}), Ai = (e) => ({}), xt = (e) => ({}), Ci = (e) => ({}), vt = (e) => ({});
3836
- function Ht(e) {
3798
+ const bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({});
3799
+ function gt(e) {
3837
3800
  let t, r, n;
3838
3801
  return {
3839
3802
  c() {
3840
- t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderLeftButton");
3803
+ t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderLeftButton");
3841
3804
  },
3842
3805
  m(i, s) {
3843
- M(i, t, s), r || (n = Ot(
3806
+ I(i, t, s), r || (n = Bt(
3844
3807
  t,
3845
3808
  "click",
3846
3809
  /*back*/
3847
3810
  e[6]
3848
3811
  ), r = !0);
3849
3812
  },
3850
- p: T,
3813
+ p: B,
3851
3814
  d(i) {
3852
- i && P(t), r = !1, n();
3815
+ i && O(t), r = !1, n();
3853
3816
  }
3854
3817
  };
3855
3818
  }
3856
- function Oi(e) {
3819
+ function yi(e) {
3857
3820
  let t, r = (
3858
3821
  /*backButton*/
3859
- e[1] && Ht(e)
3822
+ e[1] && gt(e)
3860
3823
  );
3861
3824
  return {
3862
3825
  c() {
3863
- r && r.c(), t = Ct();
3826
+ r && r.c(), t = Ht();
3864
3827
  },
3865
3828
  m(n, i) {
3866
- r && r.m(n, i), M(n, t, i);
3829
+ r && r.m(n, i), I(n, t, i);
3867
3830
  },
3868
3831
  p(n, i) {
3869
3832
  /*backButton*/
3870
- n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3833
+ n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3871
3834
  },
3872
3835
  d(n) {
3873
- n && P(t), r && r.d(n);
3836
+ n && O(t), r && r.d(n);
3874
3837
  }
3875
3838
  };
3876
3839
  }
3877
- function Pi(e) {
3840
+ function Ei(e) {
3878
3841
  let t, r = (
3879
3842
  /*$_*/
3880
3843
  e[4](
@@ -3884,10 +3847,10 @@ function Pi(e) {
3884
3847
  ), n;
3885
3848
  return {
3886
3849
  c() {
3887
- t = W("span"), n = ze(r), Z(t, "class", "CashierHeaderTitle");
3850
+ t = z("span"), n = Ve(r), W(t, "class", "CashierHeaderTitle");
3888
3851
  },
3889
3852
  m(i, s) {
3890
- M(i, t, s), me(t, n);
3853
+ I(i, t, s), ce(t, n);
3891
3854
  },
3892
3855
  p(i, s) {
3893
3856
  s & /*$_, titleText*/
@@ -3895,249 +3858,249 @@ function Pi(e) {
3895
3858
  i[4](
3896
3859
  /*titleText*/
3897
3860
  i[2]
3898
- ) + "") && yr(n, r);
3861
+ ) + "") && ur(n, r);
3899
3862
  },
3900
3863
  d(i) {
3901
- i && P(t);
3864
+ i && O(t);
3902
3865
  }
3903
3866
  };
3904
3867
  }
3905
- function Bt(e) {
3868
+ function _t(e) {
3906
3869
  let t, r, n;
3907
3870
  return {
3908
3871
  c() {
3909
- t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderRightButton");
3872
+ t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', W(t, "class", "CashierHeaderRightButton");
3910
3873
  },
3911
3874
  m(i, s) {
3912
- M(i, t, s), r || (n = Ot(
3875
+ I(i, t, s), r || (n = Bt(
3913
3876
  t,
3914
3877
  "click",
3915
3878
  /*close*/
3916
3879
  e[5]
3917
3880
  ), r = !0);
3918
3881
  },
3919
- p: T,
3882
+ p: B,
3920
3883
  d(i) {
3921
- i && P(t), r = !1, n();
3884
+ i && O(t), r = !1, n();
3922
3885
  }
3923
3886
  };
3924
3887
  }
3925
- function Li(e) {
3888
+ function xi(e) {
3926
3889
  let t, r = (
3927
3890
  /*closeButton*/
3928
- e[3] && Bt(e)
3891
+ e[3] && _t(e)
3929
3892
  );
3930
3893
  return {
3931
3894
  c() {
3932
- r && r.c(), t = Ct();
3895
+ r && r.c(), t = Ht();
3933
3896
  },
3934
3897
  m(n, i) {
3935
- r && r.m(n, i), M(n, t, i);
3898
+ r && r.m(n, i), I(n, t, i);
3936
3899
  },
3937
3900
  p(n, i) {
3938
3901
  /*closeButton*/
3939
- n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3902
+ n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3940
3903
  },
3941
3904
  d(n) {
3942
- n && P(t), r && r.d(n);
3905
+ n && O(t), r && r.d(n);
3943
3906
  }
3944
3907
  };
3945
3908
  }
3946
- function Ni(e) {
3909
+ function vi(e) {
3947
3910
  let t, r, n, i;
3948
3911
  const s = (
3949
3912
  /*#slots*/
3950
3913
  e[15].leftButton
3951
- ), o = ve(
3914
+ ), u = Ee(
3952
3915
  s,
3953
3916
  e,
3954
3917
  /*$$scope*/
3955
3918
  e[14],
3956
- vt
3957
- ), a = o || Oi(e), l = (
3919
+ bt
3920
+ ), o = u || yi(e), l = (
3958
3921
  /*#slots*/
3959
3922
  e[15].title
3960
- ), u = ve(
3923
+ ), a = Ee(
3961
3924
  l,
3962
3925
  e,
3963
3926
  /*$$scope*/
3964
3927
  e[14],
3965
- xt
3966
- ), h = u || Pi(e), f = (
3928
+ pt
3929
+ ), h = a || Ei(e), f = (
3967
3930
  /*#slots*/
3968
3931
  e[15].rightButton
3969
- ), c = ve(
3932
+ ), c = Ee(
3970
3933
  f,
3971
3934
  e,
3972
3935
  /*$$scope*/
3973
3936
  e[14],
3974
- Et
3975
- ), d = c || Li(e);
3937
+ dt
3938
+ ), d = c || xi(e);
3976
3939
  return {
3977
3940
  c() {
3978
- t = W("div"), a.c(), r = rt(), h.c(), n = rt(), d.c(), Z(t, "class", "CashierHeader");
3941
+ t = z("div"), o.c(), r = qe(), h.c(), n = qe(), d.c(), W(t, "class", "CashierHeader");
3979
3942
  },
3980
3943
  m(m, g) {
3981
- M(m, t, g), a.m(t, null), me(t, r), h.m(t, null), me(t, n), d.m(t, null), e[16](t), i = !0;
3944
+ I(m, t, g), o.m(t, null), ce(t, r), h.m(t, null), ce(t, n), d.m(t, null), e[16](t), i = !0;
3982
3945
  },
3983
3946
  p(m, [g]) {
3984
- o ? o.p && (!i || g & /*$$scope*/
3985
- 16384) && Be(
3986
- o,
3947
+ u ? u.p && (!i || g & /*$$scope*/
3948
+ 16384) && ve(
3949
+ u,
3987
3950
  s,
3988
3951
  m,
3989
3952
  /*$$scope*/
3990
3953
  m[14],
3991
- i ? He(
3954
+ i ? xe(
3992
3955
  s,
3993
3956
  /*$$scope*/
3994
3957
  m[14],
3995
3958
  g,
3996
- Ci
3997
- ) : Te(
3959
+ _i
3960
+ ) : He(
3998
3961
  /*$$scope*/
3999
3962
  m[14]
4000
3963
  ),
4001
- vt
4002
- ) : a.p && (!i || g & /*backButton*/
4003
- 2) && a.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
4004
- 16384) && Be(
4005
- u,
3964
+ bt
3965
+ ) : o.p && (!i || g & /*backButton*/
3966
+ 2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
3967
+ 16384) && ve(
3968
+ a,
4006
3969
  l,
4007
3970
  m,
4008
3971
  /*$$scope*/
4009
3972
  m[14],
4010
- i ? He(
3973
+ i ? xe(
4011
3974
  l,
4012
3975
  /*$$scope*/
4013
3976
  m[14],
4014
3977
  g,
4015
- Ai
4016
- ) : Te(
3978
+ gi
3979
+ ) : He(
4017
3980
  /*$$scope*/
4018
3981
  m[14]
4019
3982
  ),
4020
- xt
3983
+ pt
4021
3984
  ) : h.p && (!i || g & /*$_, titleText*/
4022
3985
  20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
4023
- 16384) && Be(
3986
+ 16384) && ve(
4024
3987
  c,
4025
3988
  f,
4026
3989
  m,
4027
3990
  /*$$scope*/
4028
3991
  m[14],
4029
- i ? He(
3992
+ i ? xe(
4030
3993
  f,
4031
3994
  /*$$scope*/
4032
3995
  m[14],
4033
3996
  g,
4034
- Si
4035
- ) : Te(
3997
+ bi
3998
+ ) : He(
4036
3999
  /*$$scope*/
4037
4000
  m[14]
4038
4001
  ),
4039
- Et
4002
+ dt
4040
4003
  ) : d.p && (!i || g & /*closeButton*/
4041
4004
  8) && d.p(m, i ? g : -1);
4042
4005
  },
4043
4006
  i(m) {
4044
- i || (he(a, m), he(h, m), he(d, m), i = !0);
4007
+ i || (ue(o, m), ue(h, m), ue(d, m), i = !0);
4045
4008
  },
4046
4009
  o(m) {
4047
- Se(a, m), Se(h, m), Se(d, m), i = !1;
4010
+ Te(o, m), Te(h, m), Te(d, m), i = !1;
4048
4011
  },
4049
4012
  d(m) {
4050
- m && P(t), a.d(m), h.d(m), d.d(m), e[16](null);
4013
+ m && O(t), o.d(m), h.d(m), d.d(m), e[16](null);
4051
4014
  }
4052
4015
  };
4053
4016
  }
4054
- function Ii(e, t, r) {
4017
+ function Hi(e, t, r) {
4055
4018
  let n;
4056
- dr(e, Bi, (_) => r(4, n = _));
4057
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: o = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
4058
- const N = () => {
4019
+ nr(e, mi, (_) => r(4, n = _));
4020
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
4021
+ const L = () => {
4059
4022
  let _ = l;
4060
- _ && fetch(_).then((S) => S.json()).then((S) => {
4061
- Object.keys(S).forEach((U) => {
4062
- _t(U, S[U]);
4023
+ _ && fetch(_).then((w) => w.json()).then((w) => {
4024
+ Object.keys(w).forEach((R) => {
4025
+ ct(R, w[R]);
4063
4026
  });
4064
- }).catch((S) => {
4065
- console.log(S);
4027
+ }).catch((w) => {
4028
+ console.log(w);
4066
4029
  });
4067
4030
  };
4068
- Object.keys(yt).forEach((_) => {
4069
- _t(_, yt[_]);
4031
+ Object.keys(mt).forEach((_) => {
4032
+ ct(_, mt[_]);
4070
4033
  });
4071
- const C = () => {
4034
+ const A = () => {
4072
4035
  let _ = document.createElement("style");
4073
- _.innerHTML = o, d.appendChild(_);
4036
+ _.innerHTML = u, d.appendChild(_);
4074
4037
  }, H = () => {
4075
- let _ = new URL(a), S = document.createElement("style");
4076
- fetch(_.href).then((U) => U.text()).then((U) => {
4077
- S.innerHTML = U, setTimeout(
4038
+ let _ = new URL(o), w = document.createElement("style");
4039
+ fetch(_.href).then((R) => R.text()).then((R) => {
4040
+ w.innerHTML = R, setTimeout(
4078
4041
  () => {
4079
- d.appendChild(S);
4042
+ d.appendChild(w);
4080
4043
  },
4081
4044
  1
4082
4045
  );
4083
4046
  });
4084
- }, I = () => {
4085
- Ti(f);
4086
- }, w = () => {
4047
+ }, N = () => {
4048
+ di(f);
4049
+ }, T = () => {
4087
4050
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4088
- }, R = () => {
4051
+ }, $ = () => {
4089
4052
  window.postMessage({ type: "BackCashier" }, window.location.href);
4090
- }, se = () => {
4091
- r(1, m = !!u && u !== "false");
4092
- }, ir = () => {
4053
+ }, ie = () => {
4054
+ r(1, m = !!a && a !== "false");
4055
+ }, Yt = () => {
4093
4056
  r(3, v = !!c && c !== "false");
4094
- }, sr = () => {
4057
+ }, Kt = () => {
4095
4058
  r(2, g = h || "header.general");
4096
4059
  };
4097
- function or(_) {
4098
- Ie[_ ? "unshift" : "push"](() => {
4060
+ function er(_) {
4061
+ Le[_ ? "unshift" : "push"](() => {
4099
4062
  d = _, r(0, d);
4100
4063
  });
4101
4064
  }
4102
4065
  return e.$$set = (_) => {
4103
- "clientstyling" in _ && r(7, o = _.clientstyling), "clientstylingurl" in _ && r(8, a = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4066
+ "clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
4104
4067
  }, e.$$.update = () => {
4105
4068
  e.$$.dirty & /*lang*/
4106
- 4096 && f && I(), e.$$.dirty & /*lang, title*/
4107
- 6144 && f && h && sr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4108
- 129 && o && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4109
- 257 && a && d && H(), e.$$.dirty & /*lang, translationurl*/
4110
- 4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
4111
- 1024 && u && se(), e.$$.dirty & /*showclosebutton*/
4112
- 8192 && c && ir();
4069
+ 4096 && f && N(), e.$$.dirty & /*lang, title*/
4070
+ 6144 && f && h && Kt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4071
+ 129 && u && d && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4072
+ 257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
4073
+ 4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
4074
+ 1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
4075
+ 8192 && c && Yt();
4113
4076
  }, [
4114
4077
  d,
4115
4078
  m,
4116
4079
  g,
4117
4080
  v,
4118
4081
  n,
4119
- w,
4120
- R,
4082
+ T,
4083
+ $,
4084
+ u,
4121
4085
  o,
4122
- a,
4123
4086
  l,
4124
- u,
4087
+ a,
4125
4088
  h,
4126
4089
  f,
4127
4090
  c,
4128
4091
  s,
4129
4092
  i,
4130
- or
4093
+ er
4131
4094
  ];
4132
4095
  }
4133
- class nr extends Pr {
4096
+ class Jt extends Er {
4134
4097
  constructor(t) {
4135
- super(), Cr(
4098
+ super(), _r(
4136
4099
  this,
4137
4100
  t,
4138
- Ii,
4139
- Ni,
4140
- wt,
4101
+ Hi,
4102
+ vi,
4103
+ Et,
4141
4104
  {
4142
4105
  clientstyling: 7,
4143
4106
  clientstylingurl: 8,
@@ -4147,77 +4110,77 @@ class nr extends Pr {
4147
4110
  lang: 12,
4148
4111
  showclosebutton: 13
4149
4112
  },
4150
- wi
4113
+ pi
4151
4114
  );
4152
4115
  }
4153
4116
  get clientstyling() {
4154
4117
  return this.$$.ctx[7];
4155
4118
  }
4156
4119
  set clientstyling(t) {
4157
- this.$$set({ clientstyling: t }), A();
4120
+ this.$$set({ clientstyling: t }), S();
4158
4121
  }
4159
4122
  get clientstylingurl() {
4160
4123
  return this.$$.ctx[8];
4161
4124
  }
4162
4125
  set clientstylingurl(t) {
4163
- this.$$set({ clientstylingurl: t }), A();
4126
+ this.$$set({ clientstylingurl: t }), S();
4164
4127
  }
4165
4128
  get translationurl() {
4166
4129
  return this.$$.ctx[9];
4167
4130
  }
4168
4131
  set translationurl(t) {
4169
- this.$$set({ translationurl: t }), A();
4132
+ this.$$set({ translationurl: t }), S();
4170
4133
  }
4171
4134
  get showbackbutton() {
4172
4135
  return this.$$.ctx[10];
4173
4136
  }
4174
4137
  set showbackbutton(t) {
4175
- this.$$set({ showbackbutton: t }), A();
4138
+ this.$$set({ showbackbutton: t }), S();
4176
4139
  }
4177
4140
  get title() {
4178
4141
  return this.$$.ctx[11];
4179
4142
  }
4180
4143
  set title(t) {
4181
- this.$$set({ title: t }), A();
4144
+ this.$$set({ title: t }), S();
4182
4145
  }
4183
4146
  get lang() {
4184
4147
  return this.$$.ctx[12];
4185
4148
  }
4186
4149
  set lang(t) {
4187
- this.$$set({ lang: t }), A();
4150
+ this.$$set({ lang: t }), S();
4188
4151
  }
4189
4152
  get showclosebutton() {
4190
4153
  return this.$$.ctx[13];
4191
4154
  }
4192
4155
  set showclosebutton(t) {
4193
- this.$$set({ showclosebutton: t }), A();
4156
+ this.$$set({ showclosebutton: t }), S();
4194
4157
  }
4195
4158
  }
4196
- Or(nr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4197
- const Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4159
+ yr(Jt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
4160
+ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4198
4161
  __proto__: null,
4199
- default: nr
4162
+ default: Jt
4200
4163
  }, Symbol.toStringTag, { value: "Module" }));
4201
4164
  export {
4202
- $,
4203
- Ui as C,
4204
- Pr as S,
4205
- Yt as a,
4206
- Cr as b,
4207
- Or as c,
4208
- pr as d,
4209
- W as e,
4210
- A as f,
4211
- rt as g,
4212
- Ri as h,
4213
- ri as i,
4214
- $i as j,
4215
- Z as k,
4216
- M as l,
4217
- me as m,
4218
- Ot as n,
4219
- T as o,
4220
- P as p,
4221
- Ie as q,
4222
- wt as s
4165
+ M as $,
4166
+ wi as C,
4167
+ Er as S,
4168
+ zt as a,
4169
+ _r as b,
4170
+ yr as c,
4171
+ ir as d,
4172
+ z as e,
4173
+ S as f,
4174
+ qe as g,
4175
+ Ti as h,
4176
+ Xn as i,
4177
+ Bi as j,
4178
+ W as k,
4179
+ I as l,
4180
+ ce as m,
4181
+ Bt as n,
4182
+ B as o,
4183
+ O as p,
4184
+ Le as q,
4185
+ Et as s
4223
4186
  };