@everymatrix/cashier-header 1.54.0 → 1.54.2

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