@everymatrix/cashier-methods-list 1.53.12 → 1.54.0

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,50 +1,79 @@
1
- function ne() {
1
+ var Cn = Object.defineProperty, In = Object.defineProperties;
2
+ var Dn = Object.getOwnPropertyDescriptors;
3
+ var St = Object.getOwnPropertySymbols;
4
+ var Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable;
5
+ var qe = (e, t, n) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, De = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ Rn.call(t, n) && qe(e, n, t[n]);
8
+ if (St)
9
+ for (var n of St(t))
10
+ Un.call(t, n) && qe(e, n, t[n]);
11
+ return e;
12
+ }, Re = (e, t) => In(e, Dn(t));
13
+ var te = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
14
+ var Tt = (e, t, n) => new Promise((r, i) => {
15
+ var s = (l) => {
16
+ try {
17
+ o(n.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, a = (l) => {
22
+ try {
23
+ o(n.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
28
+ o((n = n.apply(e, t)).next());
29
+ });
30
+ function ie() {
2
31
  }
3
- function Yt(e) {
32
+ function en(e) {
4
33
  return e();
5
34
  }
6
- function _t() {
35
+ function Ht() {
7
36
  return /* @__PURE__ */ Object.create(null);
8
37
  }
9
- function Se(e) {
10
- e.forEach(Yt);
38
+ function He(e) {
39
+ e.forEach(en);
11
40
  }
12
- function dt(e) {
41
+ function yt(e) {
13
42
  return typeof e == "function";
14
43
  }
15
- function Zt(e, t) {
44
+ function tn(e, t) {
16
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
46
  }
18
- let Ce;
19
- function xt(e, t) {
20
- return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
47
+ let Ue;
48
+ function Mt(e, t) {
49
+ return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
21
50
  }
22
- function Lr(e) {
51
+ function Gn(e) {
23
52
  return Object.keys(e).length === 0;
24
53
  }
25
- function Jt(e, ...t) {
54
+ function nn(e, ...t) {
26
55
  if (e == null) {
27
- for (const n of t)
28
- n(void 0);
29
- return ne;
56
+ for (const r of t)
57
+ r(void 0);
58
+ return ie;
30
59
  }
31
- const r = e.subscribe(...t);
32
- return r.unsubscribe ? () => r.unsubscribe() : r;
60
+ const n = e.subscribe(...t);
61
+ return n.unsubscribe ? () => n.unsubscribe() : n;
33
62
  }
34
- function Ar(e, t, r) {
35
- e.$$.on_destroy.push(Jt(t, r));
63
+ function Fn(e, t, n) {
64
+ e.$$.on_destroy.push(nn(t, n));
36
65
  }
37
66
  function B(e, t) {
38
67
  e.appendChild(t);
39
68
  }
40
- function Or(e, t, r) {
41
- const n = $r(e);
42
- if (!n.getElementById(t)) {
43
- const i = z("style");
44
- i.id = t, i.textContent = r, Br(n, i);
69
+ function kn(e, t, n) {
70
+ const r = jn(e);
71
+ if (!r.getElementById(t)) {
72
+ const i = Y("style");
73
+ i.id = t, i.textContent = n, Vn(r, i);
45
74
  }
46
75
  }
47
- function $r(e) {
76
+ function jn(e) {
48
77
  if (!e) return document;
49
78
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
50
79
  return t && /** @type {ShadowRoot} */
@@ -53,88 +82,88 @@ function $r(e) {
53
82
  t
54
83
  ) : e.ownerDocument;
55
84
  }
56
- function Br(e, t) {
85
+ function Vn(e, t) {
57
86
  return B(
58
87
  /** @type {Document} */
59
88
  e.head || e,
60
89
  t
61
90
  ), t.sheet;
62
91
  }
63
- function le(e, t, r) {
64
- e.insertBefore(t, r || null);
92
+ function he(e, t, n) {
93
+ e.insertBefore(t, n || null);
65
94
  }
66
- function oe(e) {
95
+ function ae(e) {
67
96
  e.parentNode && e.parentNode.removeChild(e);
68
97
  }
69
- function Pr(e, t) {
70
- for (let r = 0; r < e.length; r += 1)
71
- e[r] && e[r].d(t);
98
+ function Xn(e, t) {
99
+ for (let n = 0; n < e.length; n += 1)
100
+ e[n] && e[n].d(t);
72
101
  }
73
- function z(e) {
102
+ function Y(e) {
74
103
  return document.createElement(e);
75
104
  }
76
105
  function re(e) {
77
106
  return document.createTextNode(e);
78
107
  }
79
- function te() {
108
+ function ne() {
80
109
  return re(" ");
81
110
  }
82
- function Nr() {
111
+ function Wn() {
83
112
  return re("");
84
113
  }
85
- function rt(e, t, r, n) {
86
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
114
+ function ot(e, t, n, r) {
115
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
116
  }
88
- function W(e, t, r) {
89
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
117
+ function z(e, t, n) {
118
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
119
  }
91
- function J(e, t, r) {
92
- const n = t.toLowerCase();
93
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
120
+ function J(e, t, n) {
121
+ const r = t.toLowerCase();
122
+ r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : z(e, t, n);
94
123
  }
95
- function Cr(e) {
124
+ function zn(e) {
96
125
  return Array.from(e.childNodes);
97
126
  }
98
- function ue(e, t) {
127
+ function le(e, t) {
99
128
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
100
129
  t);
101
130
  }
102
- function Et(e, t, r) {
103
- e.classList.toggle(t, !!r);
131
+ function Lt(e, t, n) {
132
+ e.classList.toggle(t, !!n);
104
133
  }
105
- function Ir(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
106
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
134
+ function Yn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
135
+ return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
107
136
  }
108
- function Dr(e) {
137
+ function Zn(e) {
109
138
  const t = {};
110
139
  return e.childNodes.forEach(
111
140
  /** @param {Element} node */
112
- (r) => {
113
- t[r.slot || "default"] = !0;
141
+ (n) => {
142
+ t[n.slot || "default"] = !0;
114
143
  }
115
144
  ), t;
116
145
  }
117
- let Oe;
118
- function Ae(e) {
119
- Oe = e;
146
+ let Be;
147
+ function $e(e) {
148
+ Be = e;
120
149
  }
121
- function Qt() {
122
- if (!Oe) throw new Error("Function called outside component initialization");
123
- return Oe;
150
+ function rn() {
151
+ if (!Be) throw new Error("Function called outside component initialization");
152
+ return Be;
124
153
  }
125
- function Rr(e) {
126
- Qt().$$.on_mount.push(e);
154
+ function Jn(e) {
155
+ rn().$$.on_mount.push(e);
127
156
  }
128
- function Ur() {
129
- const e = Qt();
130
- return (t, r, { cancelable: n = !1 } = {}) => {
157
+ function Qn() {
158
+ const e = rn();
159
+ return (t, n, { cancelable: r = !1 } = {}) => {
131
160
  const i = e.$$.callbacks[t];
132
161
  if (i) {
133
- const s = Ir(
162
+ const s = Yn(
134
163
  /** @type {string} */
135
164
  t,
136
- r,
137
- { cancelable: n }
165
+ n,
166
+ { cancelable: r }
138
167
  );
139
168
  return i.slice().forEach((a) => {
140
169
  a.call(e, s);
@@ -143,85 +172,85 @@ function Ur() {
143
172
  return !0;
144
173
  };
145
174
  }
146
- const ye = [], nt = [];
147
- let ve = [];
148
- const wt = [], Gr = /* @__PURE__ */ Promise.resolve();
149
- let it = !1;
150
- function Fr() {
151
- it || (it = !0, Gr.then(K));
175
+ const xe = [], at = [];
176
+ let Ee = [];
177
+ const At = [], qn = /* @__PURE__ */ Promise.resolve();
178
+ let ut = !1;
179
+ function Kn() {
180
+ ut || (ut = !0, qn.then(K));
152
181
  }
153
- function st(e) {
154
- ve.push(e);
182
+ function lt(e) {
183
+ Ee.push(e);
155
184
  }
156
- const Ze = /* @__PURE__ */ new Set();
157
- let pe = 0;
185
+ const Ke = /* @__PURE__ */ new Set();
186
+ let ye = 0;
158
187
  function K() {
159
- if (pe !== 0)
188
+ if (ye !== 0)
160
189
  return;
161
- const e = Oe;
190
+ const e = Be;
162
191
  do {
163
192
  try {
164
- for (; pe < ye.length; ) {
165
- const t = ye[pe];
166
- pe++, Ae(t), kr(t.$$);
193
+ for (; ye < xe.length; ) {
194
+ const t = xe[ye];
195
+ ye++, $e(t), er(t.$$);
167
196
  }
168
197
  } catch (t) {
169
- throw ye.length = 0, pe = 0, t;
198
+ throw xe.length = 0, ye = 0, t;
170
199
  }
171
- for (Ae(null), ye.length = 0, pe = 0; nt.length; ) nt.pop()();
172
- for (let t = 0; t < ve.length; t += 1) {
173
- const r = ve[t];
174
- Ze.has(r) || (Ze.add(r), r());
200
+ for ($e(null), xe.length = 0, ye = 0; at.length; ) at.pop()();
201
+ for (let t = 0; t < Ee.length; t += 1) {
202
+ const n = Ee[t];
203
+ Ke.has(n) || (Ke.add(n), n());
175
204
  }
176
- ve.length = 0;
177
- } while (ye.length);
178
- for (; wt.length; )
179
- wt.pop()();
180
- it = !1, Ze.clear(), Ae(e);
205
+ Ee.length = 0;
206
+ } while (xe.length);
207
+ for (; At.length; )
208
+ At.pop()();
209
+ ut = !1, Ke.clear(), $e(e);
181
210
  }
182
- function kr(e) {
211
+ function er(e) {
183
212
  if (e.fragment !== null) {
184
- e.update(), Se(e.before_update);
213
+ e.update(), He(e.before_update);
185
214
  const t = e.dirty;
186
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(st);
215
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
187
216
  }
188
217
  }
189
- function jr(e) {
190
- const t = [], r = [];
191
- ve.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ve = t;
218
+ function tr(e) {
219
+ const t = [], n = [];
220
+ Ee.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ee = t;
192
221
  }
193
- const Vr = /* @__PURE__ */ new Set();
194
- function Xr(e, t) {
195
- e && e.i && (Vr.delete(e), e.i(t));
222
+ const nr = /* @__PURE__ */ new Set();
223
+ function rr(e, t) {
224
+ e && e.i && (nr.delete(e), e.i(t));
196
225
  }
197
- function St(e) {
198
- return e?.length !== void 0 ? e : Array.from(e);
226
+ function Ot(e) {
227
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
228
  }
200
- function Wr(e, t, r) {
201
- const { fragment: n, after_update: i } = e.$$;
202
- n && n.m(t, r), st(() => {
203
- const s = e.$$.on_mount.map(Yt).filter(dt);
204
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Se(s), e.$$.on_mount = [];
205
- }), i.forEach(st);
229
+ function ir(e, t, n) {
230
+ const { fragment: r, after_update: i } = e.$$;
231
+ r && r.m(t, n), lt(() => {
232
+ const s = e.$$.on_mount.map(en).filter(yt);
233
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : He(s), e.$$.on_mount = [];
234
+ }), i.forEach(lt);
206
235
  }
207
- function zr(e, t) {
208
- const r = e.$$;
209
- r.fragment !== null && (jr(r.after_update), Se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
236
+ function sr(e, t) {
237
+ const n = e.$$;
238
+ n.fragment !== null && (tr(n.after_update), He(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
239
  }
211
- function Yr(e, t) {
212
- e.$$.dirty[0] === -1 && (ye.push(e), Fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
240
+ function or(e, t) {
241
+ e.$$.dirty[0] === -1 && (xe.push(e), Kn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
242
  }
214
- function Zr(e, t, r, n, i, s, a = null, o = [-1]) {
215
- const l = Oe;
216
- Ae(e);
243
+ function ar(e, t, n, r, i, s, a = null, o = [-1]) {
244
+ const l = Be;
245
+ $e(e);
217
246
  const u = e.$$ = {
218
247
  fragment: null,
219
248
  ctx: [],
220
249
  // state
221
250
  props: s,
222
- update: ne,
251
+ update: ie,
223
252
  not_equal: i,
224
- bound: _t(),
253
+ bound: Ht(),
225
254
  // lifecycle
226
255
  on_mount: [],
227
256
  on_destroy: [],
@@ -230,149 +259,153 @@ function Zr(e, t, r, n, i, s, a = null, o = [-1]) {
230
259
  after_update: [],
231
260
  context: new Map(t.context || (l ? l.$$.context : [])),
232
261
  // everything else
233
- callbacks: _t(),
262
+ callbacks: Ht(),
234
263
  dirty: o,
235
264
  skip_bound: !1,
236
265
  root: t.target || l.$$.root
237
266
  };
238
267
  a && a(u.root);
239
268
  let h = !1;
240
- if (u.ctx = r(e, t.props || {}, (c, p, ...x) => {
241
- const w = x.length ? x[0] : p;
242
- return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h && Yr(e, c)), p;
243
- }), u.update(), h = !0, Se(u.before_update), u.fragment = n(u.ctx), t.target) {
269
+ if (u.ctx = n(e, t.props || {}, (c, p, ...E) => {
270
+ const w = E.length ? E[0] : p;
271
+ return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h && or(e, c)), p;
272
+ }), u.update(), h = !0, He(u.before_update), u.fragment = r(u.ctx), t.target) {
244
273
  if (t.hydrate) {
245
- const c = Cr(t.target);
246
- u.fragment && u.fragment.l(c), c.forEach(oe);
274
+ const c = zn(t.target);
275
+ u.fragment && u.fragment.l(c), c.forEach(ae);
247
276
  } else
248
277
  u.fragment && u.fragment.c();
249
- t.intro && Xr(e.$$.fragment), Wr(e, t.target, t.anchor), K();
278
+ t.intro && rr(e.$$.fragment), ir(e, t.target, t.anchor), K();
250
279
  }
251
- Ae(l);
252
- }
253
- let qt;
254
- typeof HTMLElement == "function" && (qt = class extends HTMLElement {
255
- /** The Svelte component constructor */
256
- $$ctor;
257
- /** Slots */
258
- $$s;
259
- /** The Svelte component instance */
260
- $$c;
261
- /** Whether or not the custom element is connected */
262
- $$cn = !1;
263
- /** Component props data */
264
- $$d = {};
265
- /** `true` if currently in the process of reflecting component props back to attributes */
266
- $$r = !1;
267
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
268
- $$p_d = {};
269
- /** @type {Record<string, Function[]>} Event listeners */
270
- $$l = {};
271
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
272
- $$l_u = /* @__PURE__ */ new Map();
273
- constructor(e, t, r) {
274
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
280
+ $e(l);
281
+ }
282
+ let sn;
283
+ typeof HTMLElement == "function" && (sn = class extends HTMLElement {
284
+ constructor(t, n, r) {
285
+ super();
286
+ /** The Svelte component constructor */
287
+ te(this, "$$ctor");
288
+ /** Slots */
289
+ te(this, "$$s");
290
+ /** The Svelte component instance */
291
+ te(this, "$$c");
292
+ /** Whether or not the custom element is connected */
293
+ te(this, "$$cn", !1);
294
+ /** Component props data */
295
+ te(this, "$$d", {});
296
+ /** `true` if currently in the process of reflecting component props back to attributes */
297
+ te(this, "$$r", !1);
298
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
299
+ te(this, "$$p_d", {});
300
+ /** @type {Record<string, Function[]>} Event listeners */
301
+ te(this, "$$l", {});
302
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
303
+ te(this, "$$l_u", /* @__PURE__ */ new Map());
304
+ this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
275
305
  }
276
- addEventListener(e, t, r) {
277
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
278
- const n = this.$$c.$on(e, t);
279
- this.$$l_u.set(t, n);
306
+ addEventListener(t, n, r) {
307
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
308
+ const i = this.$$c.$on(t, n);
309
+ this.$$l_u.set(n, i);
280
310
  }
281
- super.addEventListener(e, t, r);
311
+ super.addEventListener(t, n, r);
282
312
  }
283
- removeEventListener(e, t, r) {
284
- if (super.removeEventListener(e, t, r), this.$$c) {
285
- const n = this.$$l_u.get(t);
286
- n && (n(), this.$$l_u.delete(t));
313
+ removeEventListener(t, n, r) {
314
+ if (super.removeEventListener(t, n, r), this.$$c) {
315
+ const i = this.$$l_u.get(n);
316
+ i && (i(), this.$$l_u.delete(n));
287
317
  }
288
318
  }
289
- async connectedCallback() {
290
- if (this.$$cn = !0, !this.$$c) {
291
- let e = function(i) {
292
- return () => {
293
- let s;
294
- return {
295
- c: function() {
296
- s = z("slot"), i !== "default" && W(s, "name", i);
297
- },
298
- /**
299
- * @param {HTMLElement} target
300
- * @param {HTMLElement} [anchor]
301
- */
302
- m: function(l, u) {
303
- le(l, s, u);
304
- },
305
- d: function(l) {
306
- l && oe(s);
307
- }
319
+ connectedCallback() {
320
+ return Tt(this, null, function* () {
321
+ if (this.$$cn = !0, !this.$$c) {
322
+ let t = function(s) {
323
+ return () => {
324
+ let a;
325
+ return {
326
+ c: function() {
327
+ a = Y("slot"), s !== "default" && z(a, "name", s);
328
+ },
329
+ /**
330
+ * @param {HTMLElement} target
331
+ * @param {HTMLElement} [anchor]
332
+ */
333
+ m: function(u, h) {
334
+ he(u, a, h);
335
+ },
336
+ d: function(u) {
337
+ u && ae(a);
338
+ }
339
+ };
308
340
  };
309
341
  };
310
- };
311
- if (await Promise.resolve(), !this.$$cn || this.$$c)
312
- return;
313
- const t = {}, r = Dr(this);
314
- for (const i of this.$$s)
315
- i in r && (t[i] = [e(i)]);
316
- for (const i of this.attributes) {
317
- const s = this.$$g_p(i.name);
318
- s in this.$$d || (this.$$d[s] = De(s, i.value, this.$$p_d, "toProp"));
319
- }
320
- for (const i in this.$$p_d)
321
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
322
- this.$$c = new this.$$ctor({
323
- target: this.shadowRoot || this,
324
- props: {
325
- ...this.$$d,
326
- $$slots: t,
327
- $$scope: {
328
- ctx: []
329
- }
342
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
343
+ return;
344
+ const n = {}, r = Zn(this);
345
+ for (const s of this.$$s)
346
+ s in r && (n[s] = [t(s)]);
347
+ for (const s of this.attributes) {
348
+ const a = this.$$g_p(s.name);
349
+ a in this.$$d || (this.$$d[a] = Fe(a, s.value, this.$$p_d, "toProp"));
330
350
  }
331
- });
332
- const n = () => {
333
- this.$$r = !0;
334
- for (const i in this.$$p_d)
335
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
336
- const s = De(
337
- i,
338
- this.$$d[i],
339
- this.$$p_d,
340
- "toAttribute"
341
- );
342
- s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
351
+ for (const s in this.$$p_d)
352
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
353
+ this.$$c = new this.$$ctor({
354
+ target: this.shadowRoot || this,
355
+ props: Re(De({}, this.$$d), {
356
+ $$slots: n,
357
+ $$scope: {
358
+ ctx: []
359
+ }
360
+ })
361
+ });
362
+ const i = () => {
363
+ this.$$r = !0;
364
+ for (const s in this.$$p_d)
365
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
366
+ const a = Fe(
367
+ s,
368
+ this.$$d[s],
369
+ this.$$p_d,
370
+ "toAttribute"
371
+ );
372
+ a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
373
+ }
374
+ this.$$r = !1;
375
+ };
376
+ this.$$c.$$.after_update.push(i), i();
377
+ for (const s in this.$$l)
378
+ for (const a of this.$$l[s]) {
379
+ const o = this.$$c.$on(s, a);
380
+ this.$$l_u.set(a, o);
343
381
  }
344
- this.$$r = !1;
345
- };
346
- this.$$c.$$.after_update.push(n), n();
347
- for (const i in this.$$l)
348
- for (const s of this.$$l[i]) {
349
- const a = this.$$c.$on(i, s);
350
- this.$$l_u.set(s, a);
351
- }
352
- this.$$l = {};
353
- }
382
+ this.$$l = {};
383
+ }
384
+ });
354
385
  }
355
386
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
356
387
  // and setting attributes through setAttribute etc, this is helpful
357
- attributeChangedCallback(e, t, r) {
358
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = De(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
+ attributeChangedCallback(t, n, r) {
389
+ var i;
390
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
359
391
  }
360
392
  disconnectedCallback() {
361
393
  this.$$cn = !1, Promise.resolve().then(() => {
362
394
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
363
395
  });
364
396
  }
365
- $$g_p(e) {
397
+ $$g_p(t) {
366
398
  return Object.keys(this.$$p_d).find(
367
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
368
- ) || e;
399
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
400
+ ) || t;
369
401
  }
370
402
  });
371
- function De(e, t, r, n) {
372
- const i = r[e]?.type;
373
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
403
+ function Fe(e, t, n, r) {
404
+ var s;
405
+ const i = (s = n[e]) == null ? void 0 : s.type;
406
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
374
407
  return t;
375
- if (n === "toAttribute")
408
+ if (r === "toAttribute")
376
409
  switch (i) {
377
410
  case "Object":
378
411
  case "Array":
@@ -380,7 +413,7 @@ function De(e, t, r, n) {
380
413
  case "Boolean":
381
414
  return t ? "" : null;
382
415
  case "Number":
383
- return t ?? null;
416
+ return t == null ? null : t;
384
417
  default:
385
418
  return t;
386
419
  }
@@ -397,10 +430,10 @@ function De(e, t, r, n) {
397
430
  return t;
398
431
  }
399
432
  }
400
- function Jr(e, t, r, n, i, s) {
401
- let a = class extends qt {
433
+ function ur(e, t, n, r, i, s) {
434
+ let a = class extends sn {
402
435
  constructor() {
403
- super(e, r, i), this.$$p_d = t;
436
+ super(e, n, i), this.$$p_d = t;
404
437
  }
405
438
  static get observedAttributes() {
406
439
  return Object.keys(t).map(
@@ -414,38 +447,42 @@ function Jr(e, t, r, n, i, s) {
414
447
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
415
448
  },
416
449
  set(l) {
417
- l = De(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
450
+ var u;
451
+ l = Fe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
418
452
  }
419
453
  });
420
- }), n.forEach((o) => {
454
+ }), r.forEach((o) => {
421
455
  Object.defineProperty(a.prototype, o, {
422
456
  get() {
423
- return this.$$c?.[o];
457
+ var l;
458
+ return (l = this.$$c) == null ? void 0 : l[o];
424
459
  }
425
460
  });
426
461
  }), e.element = /** @type {any} */
427
462
  a, a;
428
463
  }
429
- class Qr {
430
- /**
431
- * ### PRIVATE API
432
- *
433
- * Do not use, may change at any time
434
- *
435
- * @type {any}
436
- */
437
- $$ = void 0;
438
- /**
439
- * ### PRIVATE API
440
- *
441
- * Do not use, may change at any time
442
- *
443
- * @type {any}
444
- */
445
- $$set = void 0;
464
+ class lr {
465
+ constructor() {
466
+ /**
467
+ * ### PRIVATE API
468
+ *
469
+ * Do not use, may change at any time
470
+ *
471
+ * @type {any}
472
+ */
473
+ te(this, "$$");
474
+ /**
475
+ * ### PRIVATE API
476
+ *
477
+ * Do not use, may change at any time
478
+ *
479
+ * @type {any}
480
+ */
481
+ te(this, "$$set");
482
+ }
446
483
  /** @returns {void} */
447
484
  $destroy() {
448
- zr(this, 1), this.$destroy = ne;
485
+ sr(this, 1), this.$destroy = ie;
449
486
  }
450
487
  /**
451
488
  * @template {Extract<keyof Events, string>} K
@@ -453,13 +490,13 @@ class Qr {
453
490
  * @param {((e: Events[K]) => void) | null | undefined} callback
454
491
  * @returns {() => void}
455
492
  */
456
- $on(t, r) {
457
- if (!dt(r))
458
- return ne;
459
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
460
- return n.push(r), () => {
461
- const i = n.indexOf(r);
462
- i !== -1 && n.splice(i, 1);
493
+ $on(t, n) {
494
+ if (!yt(n))
495
+ return ie;
496
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
497
+ return r.push(n), () => {
498
+ const i = r.indexOf(n);
499
+ i !== -1 && r.splice(i, 1);
463
500
  };
464
501
  }
465
502
  /**
@@ -467,63 +504,63 @@ class Qr {
467
504
  * @returns {void}
468
505
  */
469
506
  $set(t) {
470
- this.$$set && !Lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
507
+ this.$$set && !Gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
471
508
  }
472
509
  }
473
- const qr = "4";
474
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qr);
475
- const be = [];
476
- function Kr(e, t) {
510
+ const hr = "4";
511
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hr);
512
+ const ve = [];
513
+ function fr(e, t) {
477
514
  return {
478
- subscribe: je(e, t).subscribe
515
+ subscribe: ze(e, t).subscribe
479
516
  };
480
517
  }
481
- function je(e, t = ne) {
482
- let r;
483
- const n = /* @__PURE__ */ new Set();
518
+ function ze(e, t = ie) {
519
+ let n;
520
+ const r = /* @__PURE__ */ new Set();
484
521
  function i(o) {
485
- if (Zt(e, o) && (e = o, r)) {
486
- const l = !be.length;
487
- for (const u of n)
488
- u[1](), be.push(u, e);
522
+ if (tn(e, o) && (e = o, n)) {
523
+ const l = !ve.length;
524
+ for (const u of r)
525
+ u[1](), ve.push(u, e);
489
526
  if (l) {
490
- for (let u = 0; u < be.length; u += 2)
491
- be[u][0](be[u + 1]);
492
- be.length = 0;
527
+ for (let u = 0; u < ve.length; u += 2)
528
+ ve[u][0](ve[u + 1]);
529
+ ve.length = 0;
493
530
  }
494
531
  }
495
532
  }
496
533
  function s(o) {
497
534
  i(o(e));
498
535
  }
499
- function a(o, l = ne) {
536
+ function a(o, l = ie) {
500
537
  const u = [o, l];
501
- return n.add(u), n.size === 1 && (r = t(i, s) || ne), o(e), () => {
502
- n.delete(u), n.size === 0 && r && (r(), r = null);
538
+ return r.add(u), r.size === 1 && (n = t(i, s) || ie), o(e), () => {
539
+ r.delete(u), r.size === 0 && n && (n(), n = null);
503
540
  };
504
541
  }
505
542
  return { set: i, update: s, subscribe: a };
506
543
  }
507
- function Te(e, t, r) {
508
- const n = !Array.isArray(e), i = n ? [e] : e;
544
+ function Me(e, t, n) {
545
+ const r = !Array.isArray(e), i = r ? [e] : e;
509
546
  if (!i.every(Boolean))
510
547
  throw new Error("derived() expects stores as input, got a falsy value");
511
548
  const s = t.length < 2;
512
- return Kr(r, (a, o) => {
549
+ return fr(n, (a, o) => {
513
550
  let l = !1;
514
551
  const u = [];
515
- let h = 0, c = ne;
552
+ let h = 0, c = ie;
516
553
  const p = () => {
517
554
  if (h)
518
555
  return;
519
556
  c();
520
- const w = t(n ? u[0] : u, a, o);
521
- s ? a(w) : c = dt(w) ? w : ne;
522
- }, x = i.map(
523
- (w, b) => Jt(
557
+ const w = t(r ? u[0] : u, a, o);
558
+ s ? a(w) : c = yt(w) ? w : ie;
559
+ }, E = i.map(
560
+ (w, b) => nn(
524
561
  w,
525
- (M) => {
526
- u[b] = M, h &= ~(1 << b), l && p();
562
+ (H) => {
563
+ u[b] = H, h &= ~(1 << b), l && p();
527
564
  },
528
565
  () => {
529
566
  h |= 1 << b;
@@ -531,157 +568,157 @@ function Te(e, t, r) {
531
568
  )
532
569
  );
533
570
  return l = !0, p(), function() {
534
- Se(x), c(), l = !1;
571
+ He(E), c(), l = !1;
535
572
  };
536
573
  });
537
574
  }
538
- var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
539
- function gt(e) {
575
+ var on = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
576
+ function vt(e) {
540
577
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
541
578
  }
542
- var en = function(t) {
543
- return tn(t) && !rn(t);
579
+ var cr = function(t) {
580
+ return mr(t) && !dr(t);
544
581
  };
545
- function tn(e) {
582
+ function mr(e) {
546
583
  return !!e && typeof e == "object";
547
584
  }
548
- function rn(e) {
585
+ function dr(e) {
549
586
  var t = Object.prototype.toString.call(e);
550
- return t === "[object RegExp]" || t === "[object Date]" || on(e);
587
+ return t === "[object RegExp]" || t === "[object Date]" || br(e);
551
588
  }
552
- var nn = typeof Symbol == "function" && Symbol.for, sn = nn ? Symbol.for("react.element") : 60103;
553
- function on(e) {
554
- return e.$$typeof === sn;
589
+ var gr = typeof Symbol == "function" && Symbol.for, pr = gr ? Symbol.for("react.element") : 60103;
590
+ function br(e) {
591
+ return e.$$typeof === pr;
555
592
  }
556
- function an(e) {
593
+ function yr(e) {
557
594
  return Array.isArray(e) ? [] : {};
558
595
  }
559
- function $e(e, t) {
560
- return t.clone !== !1 && t.isMergeableObject(e) ? _e(an(e), e, t) : e;
596
+ function Pe(e, t) {
597
+ return t.clone !== !1 && t.isMergeableObject(e) ? _e(yr(e), e, t) : e;
561
598
  }
562
- function un(e, t, r) {
563
- return e.concat(t).map(function(n) {
564
- return $e(n, r);
599
+ function vr(e, t, n) {
600
+ return e.concat(t).map(function(r) {
601
+ return Pe(r, n);
565
602
  });
566
603
  }
567
- function ln(e, t) {
604
+ function xr(e, t) {
568
605
  if (!t.customMerge)
569
606
  return _e;
570
- var r = t.customMerge(e);
571
- return typeof r == "function" ? r : _e;
607
+ var n = t.customMerge(e);
608
+ return typeof n == "function" ? n : _e;
572
609
  }
573
- function hn(e) {
610
+ function Er(e) {
574
611
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
575
612
  return Object.propertyIsEnumerable.call(e, t);
576
613
  }) : [];
577
614
  }
578
- function Tt(e) {
579
- return Object.keys(e).concat(hn(e));
615
+ function $t(e) {
616
+ return Object.keys(e).concat(Er(e));
580
617
  }
581
- function er(e, t) {
618
+ function an(e, t) {
582
619
  try {
583
620
  return t in e;
584
- } catch {
621
+ } catch (n) {
585
622
  return !1;
586
623
  }
587
624
  }
588
- function fn(e, t) {
589
- return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
625
+ function _r(e, t) {
626
+ return an(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
590
627
  }
591
- function cn(e, t, r) {
592
- var n = {};
593
- return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
594
- n[i] = $e(e[i], r);
595
- }), Tt(t).forEach(function(i) {
596
- fn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = $e(t[i], r));
597
- }), n;
598
- }
599
- function _e(e, t, r) {
600
- r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = $e;
601
- var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
602
- return s ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : $e(t, r);
603
- }
604
- _e.all = function(t, r) {
628
+ function wr(e, t, n) {
629
+ var r = {};
630
+ return n.isMergeableObject(e) && $t(e).forEach(function(i) {
631
+ r[i] = Pe(e[i], n);
632
+ }), $t(t).forEach(function(i) {
633
+ _r(e, i) || (an(e, i) && n.isMergeableObject(t[i]) ? r[i] = xr(i, n)(e[i], t[i], n) : r[i] = Pe(t[i], n));
634
+ }), r;
635
+ }
636
+ function _e(e, t, n) {
637
+ n = n || {}, n.arrayMerge = n.arrayMerge || vr, n.isMergeableObject = n.isMergeableObject || cr, n.cloneUnlessOtherwiseSpecified = Pe;
638
+ var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
639
+ return s ? r ? n.arrayMerge(e, t, n) : wr(e, t, n) : Pe(t, n);
640
+ }
641
+ _e.all = function(t, n) {
605
642
  if (!Array.isArray(t))
606
643
  throw new Error("first argument should be an array");
607
- return t.reduce(function(n, i) {
608
- return _e(n, i, r);
644
+ return t.reduce(function(r, i) {
645
+ return _e(r, i, n);
609
646
  }, {});
610
647
  };
611
- var mn = _e, dn = mn;
612
- const gn = /* @__PURE__ */ gt(dn);
613
- var ot = function(e, t) {
614
- return ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
615
- r.__proto__ = n;
616
- } || function(r, n) {
617
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
618
- }, ot(e, t);
648
+ var Sr = _e, Tr = Sr;
649
+ const Hr = /* @__PURE__ */ vt(Tr);
650
+ var ht = function(e, t) {
651
+ return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
652
+ n.__proto__ = r;
653
+ } || function(n, r) {
654
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
655
+ }, ht(e, t);
619
656
  };
620
- function Ve(e, t) {
657
+ function Ye(e, t) {
621
658
  if (typeof t != "function" && t !== null)
622
659
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
623
- ot(e, t);
624
- function r() {
660
+ ht(e, t);
661
+ function n() {
625
662
  this.constructor = e;
626
663
  }
627
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
664
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
628
665
  }
629
666
  var O = function() {
630
667
  return O = Object.assign || function(t) {
631
- for (var r, n = 1, i = arguments.length; n < i; n++) {
632
- r = arguments[n];
633
- for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
668
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
669
+ n = arguments[r];
670
+ for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
634
671
  }
635
672
  return t;
636
673
  }, O.apply(this, arguments);
637
674
  };
638
- function pn(e, t) {
639
- var r = {};
640
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
675
+ function Mr(e, t) {
676
+ var n = {};
677
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
641
678
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
642
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
643
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
644
- return r;
679
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
680
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
681
+ return n;
645
682
  }
646
- function Je(e, t, r) {
647
- if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
648
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
683
+ function et(e, t, n) {
684
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, s; r < i; r++)
685
+ (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
649
686
  return e.concat(s || Array.prototype.slice.call(t));
650
687
  }
651
- function Qe(e, t) {
652
- var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : yn;
688
+ function tt(e, t) {
689
+ var n = t && t.cache ? t.cache : Nr, r = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : Ar;
653
690
  return i(e, {
654
- cache: r,
655
- serializer: n
691
+ cache: n,
692
+ serializer: r
656
693
  });
657
694
  }
658
- function bn(e) {
695
+ function Lr(e) {
659
696
  return e == null || typeof e == "number" || typeof e == "boolean";
660
697
  }
661
- function tr(e, t, r, n) {
662
- var i = bn(n) ? n : r(n), s = t.get(i);
663
- return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
698
+ function un(e, t, n, r) {
699
+ var i = Lr(r) ? r : n(r), s = t.get(i);
700
+ return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
664
701
  }
665
- function rr(e, t, r) {
666
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
667
- return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
702
+ function ln(e, t, n) {
703
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
704
+ return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
668
705
  }
669
- function pt(e, t, r, n, i) {
670
- return r.bind(t, e, n, i);
706
+ function xt(e, t, n, r, i) {
707
+ return n.bind(t, e, r, i);
671
708
  }
672
- function yn(e, t) {
673
- var r = e.length === 1 ? tr : rr;
674
- return pt(e, this, r, t.cache.create(), t.serializer);
709
+ function Ar(e, t) {
710
+ var n = e.length === 1 ? un : ln;
711
+ return xt(e, this, n, t.cache.create(), t.serializer);
675
712
  }
676
- function vn(e, t) {
677
- return pt(e, this, rr, t.cache.create(), t.serializer);
713
+ function Or(e, t) {
714
+ return xt(e, this, ln, t.cache.create(), t.serializer);
678
715
  }
679
- function _n(e, t) {
680
- return pt(e, this, tr, t.cache.create(), t.serializer);
716
+ function $r(e, t) {
717
+ return xt(e, this, un, t.cache.create(), t.serializer);
681
718
  }
682
- var xn = function() {
719
+ var Br = function() {
683
720
  return JSON.stringify(arguments);
684
- }, En = (
721
+ }, Pr = (
685
722
  /** @class */
686
723
  function() {
687
724
  function e() {
@@ -689,73 +726,73 @@ var xn = function() {
689
726
  }
690
727
  return e.prototype.get = function(t) {
691
728
  return this.cache[t];
692
- }, e.prototype.set = function(t, r) {
693
- this.cache[t] = r;
729
+ }, e.prototype.set = function(t, n) {
730
+ this.cache[t] = n;
694
731
  }, e;
695
732
  }()
696
- ), wn = {
733
+ ), Nr = {
697
734
  create: function() {
698
- return new En();
735
+ return new Pr();
699
736
  }
700
- }, qe = {
701
- variadic: vn,
702
- monadic: _n
703
- }, H;
737
+ }, nt = {
738
+ variadic: Or,
739
+ monadic: $r
740
+ }, M;
704
741
  (function(e) {
705
742
  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";
706
- })(H || (H = {}));
743
+ })(M || (M = {}));
707
744
  var D;
708
745
  (function(e) {
709
746
  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";
710
747
  })(D || (D = {}));
711
- var xe;
748
+ var we;
712
749
  (function(e) {
713
750
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
714
- })(xe || (xe = {}));
715
- function Mt(e) {
751
+ })(we || (we = {}));
752
+ function Bt(e) {
716
753
  return e.type === D.literal;
717
754
  }
718
- function Sn(e) {
755
+ function Cr(e) {
719
756
  return e.type === D.argument;
720
757
  }
721
- function nr(e) {
758
+ function hn(e) {
722
759
  return e.type === D.number;
723
760
  }
724
- function ir(e) {
761
+ function fn(e) {
725
762
  return e.type === D.date;
726
763
  }
727
- function sr(e) {
764
+ function cn(e) {
728
765
  return e.type === D.time;
729
766
  }
730
- function or(e) {
767
+ function mn(e) {
731
768
  return e.type === D.select;
732
769
  }
733
- function ar(e) {
770
+ function dn(e) {
734
771
  return e.type === D.plural;
735
772
  }
736
- function Tn(e) {
773
+ function Ir(e) {
737
774
  return e.type === D.pound;
738
775
  }
739
- function ur(e) {
776
+ function gn(e) {
740
777
  return e.type === D.tag;
741
778
  }
742
- function lr(e) {
743
- return !!(e && typeof e == "object" && e.type === xe.number);
779
+ function pn(e) {
780
+ return !!(e && typeof e == "object" && e.type === we.number);
744
781
  }
745
- function at(e) {
746
- return !!(e && typeof e == "object" && e.type === xe.dateTime);
782
+ function ft(e) {
783
+ return !!(e && typeof e == "object" && e.type === we.dateTime);
747
784
  }
748
- var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mn = /(?:[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;
749
- function Hn(e) {
785
+ var bn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
786
+ function Rr(e) {
750
787
  var t = {};
751
- return e.replace(Mn, function(r) {
752
- var n = r.length;
753
- switch (r[0]) {
788
+ return e.replace(Dr, function(n) {
789
+ var r = n.length;
790
+ switch (n[0]) {
754
791
  case "G":
755
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
792
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
756
793
  break;
757
794
  case "y":
758
- t.year = n === 2 ? "2-digit" : "numeric";
795
+ t.year = r === 2 ? "2-digit" : "numeric";
759
796
  break;
760
797
  case "Y":
761
798
  case "u":
@@ -767,30 +804,30 @@ function Hn(e) {
767
804
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
768
805
  case "M":
769
806
  case "L":
770
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
807
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
771
808
  break;
772
809
  case "w":
773
810
  case "W":
774
811
  throw new RangeError("`w/W` (week) patterns are not supported");
775
812
  case "d":
776
- t.day = ["numeric", "2-digit"][n - 1];
813
+ t.day = ["numeric", "2-digit"][r - 1];
777
814
  break;
778
815
  case "D":
779
816
  case "F":
780
817
  case "g":
781
818
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
782
819
  case "E":
783
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
820
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
784
821
  break;
785
822
  case "e":
786
- if (n < 4)
823
+ if (r < 4)
787
824
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
788
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
825
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
789
826
  break;
790
827
  case "c":
791
- if (n < 4)
828
+ if (r < 4)
792
829
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
793
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
830
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
794
831
  break;
795
832
  case "a":
796
833
  t.hour12 = !0;
@@ -799,32 +836,32 @@ function Hn(e) {
799
836
  case "B":
800
837
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
801
838
  case "h":
802
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
839
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
803
840
  break;
804
841
  case "H":
805
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
842
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
806
843
  break;
807
844
  case "K":
808
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
845
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
809
846
  break;
810
847
  case "k":
811
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
848
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
812
849
  break;
813
850
  case "j":
814
851
  case "J":
815
852
  case "C":
816
853
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
817
854
  case "m":
818
- t.minute = ["numeric", "2-digit"][n - 1];
855
+ t.minute = ["numeric", "2-digit"][r - 1];
819
856
  break;
820
857
  case "s":
821
- t.second = ["numeric", "2-digit"][n - 1];
858
+ t.second = ["numeric", "2-digit"][r - 1];
822
859
  break;
823
860
  case "S":
824
861
  case "A":
825
862
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
826
863
  case "z":
827
- t.timeZoneName = n < 4 ? "short" : "long";
864
+ t.timeZoneName = r < 4 ? "short" : "long";
828
865
  break;
829
866
  case "Z":
830
867
  case "O":
@@ -837,14 +874,14 @@ function Hn(e) {
837
874
  return "";
838
875
  }), t;
839
876
  }
840
- var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
841
- function An(e) {
877
+ var Ur = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
878
+ function Gr(e) {
842
879
  if (e.length === 0)
843
880
  throw new Error("Number skeleton cannot be empty");
844
- for (var t = e.split(Ln).filter(function(p) {
881
+ for (var t = e.split(Ur).filter(function(p) {
845
882
  return p.length > 0;
846
- }), r = [], n = 0, i = t; n < i.length; n++) {
847
- var s = i[n], a = s.split("/");
883
+ }), n = [], r = 0, i = t; r < i.length; r++) {
884
+ var s = i[r], a = s.split("/");
848
885
  if (a.length === 0)
849
886
  throw new Error("Invalid number skeleton");
850
887
  for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
@@ -852,21 +889,21 @@ function An(e) {
852
889
  if (c.length === 0)
853
890
  throw new Error("Invalid number skeleton");
854
891
  }
855
- r.push({ stem: o, options: l });
892
+ n.push({ stem: o, options: l });
856
893
  }
857
- return r;
894
+ return n;
858
895
  }
859
- function On(e) {
896
+ function Fr(e) {
860
897
  return e.replace(/^(.*?)-/, "");
861
898
  }
862
- var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
863
- function Lt(e) {
899
+ var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yn = /^(@+)?(\+|#+)?[rs]?$/g, kr = /(\*)(0+)|(#+)(0+)|(0+)/g, vn = /^(0+)$/;
900
+ function Nt(e) {
864
901
  var t = {};
865
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
866
- 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)), "";
902
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yn, function(n, r, i) {
903
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
867
904
  }), t;
868
905
  }
869
- function mr(e) {
906
+ function xn(e) {
870
907
  switch (e) {
871
908
  case "sign-auto":
872
909
  return {
@@ -906,27 +943,27 @@ function mr(e) {
906
943
  };
907
944
  }
908
945
  }
909
- function Bn(e) {
946
+ function jr(e) {
910
947
  var t;
911
948
  if (e[0] === "E" && e[1] === "E" ? (t = {
912
949
  notation: "engineering"
913
950
  }, e = e.slice(2)) : e[0] === "E" && (t = {
914
951
  notation: "scientific"
915
952
  }, e = e.slice(1)), t) {
916
- var r = e.slice(0, 2);
917
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
953
+ var n = e.slice(0, 2);
954
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vn.test(e))
918
955
  throw new Error("Malformed concise eng/scientific notation");
919
956
  t.minimumIntegerDigits = e.length;
920
957
  }
921
958
  return t;
922
959
  }
923
- function At(e) {
924
- var t = {}, r = mr(e);
925
- return r || t;
960
+ function Ct(e) {
961
+ var t = {}, n = xn(e);
962
+ return n || t;
926
963
  }
927
- function Pn(e) {
928
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
929
- var i = n[r];
964
+ function Vr(e) {
965
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
966
+ var i = r[n];
930
967
  switch (i.stem) {
931
968
  case "percent":
932
969
  case "%":
@@ -948,7 +985,7 @@ function Pn(e) {
948
985
  continue;
949
986
  case "measure-unit":
950
987
  case "unit":
951
- t.style = "unit", t.unit = On(i.options[0]);
988
+ t.style = "unit", t.unit = Fr(i.options[0]);
952
989
  continue;
953
990
  case "compact-short":
954
991
  case "K":
@@ -960,12 +997,12 @@ function Pn(e) {
960
997
  continue;
961
998
  case "scientific":
962
999
  t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
963
- return O(O({}, l), At(u));
1000
+ return O(O({}, l), Ct(u));
964
1001
  }, {}));
965
1002
  continue;
966
1003
  case "engineering":
967
1004
  t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
968
- return O(O({}, l), At(u));
1005
+ return O(O({}, l), Ct(u));
969
1006
  }, {}));
970
1007
  continue;
971
1008
  case "notation-simple":
@@ -1010,45 +1047,45 @@ function Pn(e) {
1010
1047
  case "integer-width":
1011
1048
  if (i.options.length > 1)
1012
1049
  throw new RangeError("integer-width stems only accept a single optional option");
1013
- i.options[0].replace($n, function(l, u, h, c, p, x) {
1050
+ i.options[0].replace(kr, function(l, u, h, c, p, E) {
1014
1051
  if (u)
1015
1052
  t.minimumIntegerDigits = h.length;
1016
1053
  else {
1017
1054
  if (c && p)
1018
1055
  throw new Error("We currently do not support maximum integer digits");
1019
- if (x)
1056
+ if (E)
1020
1057
  throw new Error("We currently do not support exact integer digits");
1021
1058
  }
1022
1059
  return "";
1023
1060
  });
1024
1061
  continue;
1025
1062
  }
1026
- if (cr.test(i.stem)) {
1063
+ if (vn.test(i.stem)) {
1027
1064
  t.minimumIntegerDigits = i.stem.length;
1028
1065
  continue;
1029
1066
  }
1030
- if (Ht.test(i.stem)) {
1067
+ if (Pt.test(i.stem)) {
1031
1068
  if (i.options.length > 1)
1032
1069
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1033
- i.stem.replace(Ht, function(l, u, h, c, p, x) {
1034
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1070
+ i.stem.replace(Pt, function(l, u, h, c, p, E) {
1071
+ return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && E ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1035
1072
  });
1036
1073
  var s = i.options[0];
1037
- s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Lt(s)));
1074
+ s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Nt(s)));
1038
1075
  continue;
1039
1076
  }
1040
- if (fr.test(i.stem)) {
1041
- t = O(O({}, t), Lt(i.stem));
1077
+ if (yn.test(i.stem)) {
1078
+ t = O(O({}, t), Nt(i.stem));
1042
1079
  continue;
1043
1080
  }
1044
- var a = mr(i.stem);
1081
+ var a = xn(i.stem);
1045
1082
  a && (t = O(O({}, t), a));
1046
- var o = Bn(i.stem);
1083
+ var o = jr(i.stem);
1047
1084
  o && (t = O(O({}, t), o));
1048
1085
  }
1049
1086
  return t;
1050
1087
  }
1051
- var Ie = {
1088
+ var Ge = {
1052
1089
  "001": [
1053
1090
  "H",
1054
1091
  "h"
@@ -2463,22 +2500,22 @@ var Ie = {
2463
2500
  "h"
2464
2501
  ]
2465
2502
  };
2466
- function Nn(e, t) {
2467
- for (var r = "", n = 0; n < e.length; n++) {
2468
- var i = e.charAt(n);
2503
+ function Xr(e, t) {
2504
+ for (var n = "", r = 0; r < e.length; r++) {
2505
+ var i = e.charAt(r);
2469
2506
  if (i === "j") {
2470
- for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2471
- s++, n++;
2472
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Cn(t);
2507
+ for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2508
+ s++, r++;
2509
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Wr(t);
2473
2510
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2474
- r += l;
2511
+ n += l;
2475
2512
  for (; a-- > 0; )
2476
- r = u + r;
2477
- } else i === "J" ? r += "H" : r += i;
2513
+ n = u + n;
2514
+ } else i === "J" ? n += "H" : n += i;
2478
2515
  }
2479
- return r;
2516
+ return n;
2480
2517
  }
2481
- function Cn(e) {
2518
+ function Wr(e) {
2482
2519
  var t = e.hourCycle;
2483
2520
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2484
2521
  e.hourCycles && // @ts-ignore
@@ -2495,73 +2532,73 @@ function Cn(e) {
2495
2532
  default:
2496
2533
  throw new Error("Invalid hourCycle");
2497
2534
  }
2498
- var r = e.language, n;
2499
- r !== "root" && (n = e.maximize().region);
2500
- var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
2535
+ var n = e.language, r;
2536
+ n !== "root" && (r = e.maximize().region);
2537
+ var i = Ge[r || ""] || Ge[n || ""] || Ge["".concat(n, "-001")] || Ge["001"];
2501
2538
  return i[0];
2502
2539
  }
2503
- var Ke, In = new RegExp("^".concat(hr.source, "*")), Dn = new RegExp("".concat(hr.source, "*$"));
2540
+ var rt, zr = new RegExp("^".concat(bn.source, "*")), Yr = new RegExp("".concat(bn.source, "*$"));
2504
2541
  function L(e, t) {
2505
2542
  return { start: e, end: t };
2506
2543
  }
2507
- var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Gn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
2544
+ var Zr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jr = !!String.fromCodePoint, Qr = !!Object.fromEntries, qr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ni = ti ? Number.isSafeInteger : function(e) {
2508
2545
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2509
- }, ut = !0;
2546
+ }, ct = !0;
2510
2547
  try {
2511
- var Wn = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2512
- ut = ((Ke = Wn.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
2513
- } catch {
2514
- ut = !1;
2548
+ var ri = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2549
+ ct = ((rt = ri.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
2550
+ } catch (e) {
2551
+ ct = !1;
2515
2552
  }
2516
- var Ot = Rn ? (
2553
+ var It = Zr ? (
2517
2554
  // Native
2518
- function(t, r, n) {
2519
- return t.startsWith(r, n);
2555
+ function(t, n, r) {
2556
+ return t.startsWith(n, r);
2520
2557
  }
2521
2558
  ) : (
2522
2559
  // For IE11
2523
- function(t, r, n) {
2524
- return t.slice(n, n + r.length) === r;
2560
+ function(t, n, r) {
2561
+ return t.slice(r, r + n.length) === n;
2525
2562
  }
2526
- ), lt = Un ? String.fromCodePoint : (
2563
+ ), mt = Jr ? String.fromCodePoint : (
2527
2564
  // IE11
2528
2565
  function() {
2529
- for (var t = [], r = 0; r < arguments.length; r++)
2530
- t[r] = arguments[r];
2531
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
2566
+ for (var t = [], n = 0; n < arguments.length; n++)
2567
+ t[n] = arguments[n];
2568
+ for (var r = "", i = t.length, s = 0, a; i > s; ) {
2532
2569
  if (a = t[s++], a > 1114111)
2533
2570
  throw RangeError(a + " is not a valid code point");
2534
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2571
+ r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2535
2572
  }
2536
- return n;
2573
+ return r;
2537
2574
  }
2538
- ), $t = (
2575
+ ), Dt = (
2539
2576
  // native
2540
- Gn ? Object.fromEntries : (
2577
+ Qr ? Object.fromEntries : (
2541
2578
  // Ponyfill
2542
2579
  function(t) {
2543
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2544
- var s = i[n], a = s[0], o = s[1];
2545
- r[a] = o;
2580
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
2581
+ var s = i[r], a = s[0], o = s[1];
2582
+ n[a] = o;
2546
2583
  }
2547
- return r;
2584
+ return n;
2548
2585
  }
2549
2586
  )
2550
- ), dr = Fn ? (
2587
+ ), En = qr ? (
2551
2588
  // Native
2552
- function(t, r) {
2553
- return t.codePointAt(r);
2589
+ function(t, n) {
2590
+ return t.codePointAt(n);
2554
2591
  }
2555
2592
  ) : (
2556
2593
  // IE 11
2557
- function(t, r) {
2558
- var n = t.length;
2559
- if (!(r < 0 || r >= n)) {
2560
- var i = t.charCodeAt(r), s;
2561
- return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2594
+ function(t, n) {
2595
+ var r = t.length;
2596
+ if (!(n < 0 || n >= r)) {
2597
+ var i = t.charCodeAt(n), s;
2598
+ return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2562
2599
  }
2563
2600
  }
2564
- ), zn = kn ? (
2601
+ ), ii = Kr ? (
2565
2602
  // Native
2566
2603
  function(t) {
2567
2604
  return t.trimStart();
@@ -2569,9 +2606,9 @@ var Ot = Rn ? (
2569
2606
  ) : (
2570
2607
  // Ponyfill
2571
2608
  function(t) {
2572
- return t.replace(In, "");
2609
+ return t.replace(zr, "");
2573
2610
  }
2574
- ), Yn = jn ? (
2611
+ ), si = ei ? (
2575
2612
  // Native
2576
2613
  function(t) {
2577
2614
  return t.trimEnd();
@@ -2579,69 +2616,69 @@ var Ot = Rn ? (
2579
2616
  ) : (
2580
2617
  // Ponyfill
2581
2618
  function(t) {
2582
- return t.replace(Dn, "");
2619
+ return t.replace(Yr, "");
2583
2620
  }
2584
2621
  );
2585
- function gr(e, t) {
2622
+ function _n(e, t) {
2586
2623
  return new RegExp(e, t);
2587
2624
  }
2588
- var ht;
2589
- if (ut) {
2590
- var Bt = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2591
- ht = function(t, r) {
2592
- var n;
2593
- Bt.lastIndex = r;
2594
- var i = Bt.exec(t);
2595
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2625
+ var dt;
2626
+ if (ct) {
2627
+ var Rt = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2628
+ dt = function(t, n) {
2629
+ var r;
2630
+ Rt.lastIndex = n;
2631
+ var i = Rt.exec(t);
2632
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
2596
2633
  };
2597
2634
  } else
2598
- ht = function(t, r) {
2599
- for (var n = []; ; ) {
2600
- var i = dr(t, r);
2601
- if (i === void 0 || pr(i) || qn(i))
2635
+ dt = function(t, n) {
2636
+ for (var r = []; ; ) {
2637
+ var i = En(t, n);
2638
+ if (i === void 0 || wn(i) || li(i))
2602
2639
  break;
2603
- n.push(i), r += i >= 65536 ? 2 : 1;
2640
+ r.push(i), n += i >= 65536 ? 2 : 1;
2604
2641
  }
2605
- return lt.apply(void 0, n);
2642
+ return mt.apply(void 0, r);
2606
2643
  };
2607
- var Zn = (
2644
+ var oi = (
2608
2645
  /** @class */
2609
2646
  function() {
2610
- function e(t, r) {
2611
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2647
+ function e(t, n) {
2648
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2612
2649
  }
2613
2650
  return e.prototype.parse = function() {
2614
2651
  if (this.offset() !== 0)
2615
2652
  throw Error("parser can only be used once");
2616
2653
  return this.parseMessage(0, "", !1);
2617
- }, e.prototype.parseMessage = function(t, r, n) {
2654
+ }, e.prototype.parseMessage = function(t, n, r) {
2618
2655
  for (var i = []; !this.isEOF(); ) {
2619
2656
  var s = this.char();
2620
2657
  if (s === 123) {
2621
- var a = this.parseArgument(t, n);
2658
+ var a = this.parseArgument(t, r);
2622
2659
  if (a.err)
2623
2660
  return a;
2624
2661
  i.push(a.val);
2625
2662
  } else {
2626
2663
  if (s === 125 && t > 0)
2627
2664
  break;
2628
- if (s === 35 && (r === "plural" || r === "selectordinal")) {
2665
+ if (s === 35 && (n === "plural" || n === "selectordinal")) {
2629
2666
  var o = this.clonePosition();
2630
2667
  this.bump(), i.push({
2631
2668
  type: D.pound,
2632
2669
  location: L(o, this.clonePosition())
2633
2670
  });
2634
2671
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2635
- if (n)
2672
+ if (r)
2636
2673
  break;
2637
- return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2638
- } else if (s === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
2639
- var a = this.parseTag(t, r);
2674
+ return this.error(M.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2675
+ } else if (s === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
2676
+ var a = this.parseTag(t, n);
2640
2677
  if (a.err)
2641
2678
  return a;
2642
2679
  i.push(a.val);
2643
2680
  } else {
2644
- var a = this.parseLiteral(t, r);
2681
+ var a = this.parseLiteral(t, n);
2645
2682
  if (a.err)
2646
2683
  return a;
2647
2684
  i.push(a.val);
@@ -2649,8 +2686,8 @@ var Zn = (
2649
2686
  }
2650
2687
  }
2651
2688
  return { val: i, err: null };
2652
- }, e.prototype.parseTag = function(t, r) {
2653
- var n = this.clonePosition();
2689
+ }, e.prototype.parseTag = function(t, n) {
2690
+ var r = this.clonePosition();
2654
2691
  this.bump();
2655
2692
  var i = this.parseTagName();
2656
2693
  if (this.bumpSpace(), this.bumpIf("/>"))
@@ -2658,45 +2695,45 @@ var Zn = (
2658
2695
  val: {
2659
2696
  type: D.literal,
2660
2697
  value: "<".concat(i, "/>"),
2661
- location: L(n, this.clonePosition())
2698
+ location: L(r, this.clonePosition())
2662
2699
  },
2663
2700
  err: null
2664
2701
  };
2665
2702
  if (this.bumpIf(">")) {
2666
- var s = this.parseMessage(t + 1, r, !0);
2703
+ var s = this.parseMessage(t + 1, n, !0);
2667
2704
  if (s.err)
2668
2705
  return s;
2669
2706
  var a = s.val, o = this.clonePosition();
2670
2707
  if (this.bumpIf("</")) {
2671
- if (this.isEOF() || !ft(this.char()))
2672
- return this.error(H.INVALID_TAG, L(o, this.clonePosition()));
2708
+ if (this.isEOF() || !gt(this.char()))
2709
+ return this.error(M.INVALID_TAG, L(o, this.clonePosition()));
2673
2710
  var l = this.clonePosition(), u = this.parseTagName();
2674
- return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, L(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2711
+ return i !== u ? this.error(M.UNMATCHED_CLOSING_TAG, L(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2675
2712
  val: {
2676
2713
  type: D.tag,
2677
2714
  value: i,
2678
2715
  children: a,
2679
- location: L(n, this.clonePosition())
2716
+ location: L(r, this.clonePosition())
2680
2717
  },
2681
2718
  err: null
2682
- } : this.error(H.INVALID_TAG, L(o, this.clonePosition())));
2719
+ } : this.error(M.INVALID_TAG, L(o, this.clonePosition())));
2683
2720
  } else
2684
- return this.error(H.UNCLOSED_TAG, L(n, this.clonePosition()));
2721
+ return this.error(M.UNCLOSED_TAG, L(r, this.clonePosition()));
2685
2722
  } else
2686
- return this.error(H.INVALID_TAG, L(n, this.clonePosition()));
2723
+ return this.error(M.INVALID_TAG, L(r, this.clonePosition()));
2687
2724
  }, e.prototype.parseTagName = function() {
2688
2725
  var t = this.offset();
2689
- for (this.bump(); !this.isEOF() && Qn(this.char()); )
2726
+ for (this.bump(); !this.isEOF() && ui(this.char()); )
2690
2727
  this.bump();
2691
2728
  return this.message.slice(t, this.offset());
2692
- }, e.prototype.parseLiteral = function(t, r) {
2693
- for (var n = this.clonePosition(), i = ""; ; ) {
2694
- var s = this.tryParseQuote(r);
2729
+ }, e.prototype.parseLiteral = function(t, n) {
2730
+ for (var r = this.clonePosition(), i = ""; ; ) {
2731
+ var s = this.tryParseQuote(n);
2695
2732
  if (s) {
2696
2733
  i += s;
2697
2734
  continue;
2698
2735
  }
2699
- var a = this.tryParseUnquoted(t, r);
2736
+ var a = this.tryParseUnquoted(t, n);
2700
2737
  if (a) {
2701
2738
  i += a;
2702
2739
  continue;
@@ -2708,14 +2745,14 @@ var Zn = (
2708
2745
  }
2709
2746
  break;
2710
2747
  }
2711
- var l = L(n, this.clonePosition());
2748
+ var l = L(r, this.clonePosition());
2712
2749
  return {
2713
2750
  val: { type: D.literal, value: i, location: l },
2714
2751
  err: null
2715
2752
  };
2716
2753
  }, e.prototype.tryParseLeftAngleBracket = function() {
2717
2754
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2718
- !Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
2755
+ !ai(this.peek() || 0)) ? (this.bump(), "<") : null;
2719
2756
  }, e.prototype.tryParseQuote = function(t) {
2720
2757
  if (this.isEOF() || this.char() !== 39)
2721
2758
  return null;
@@ -2735,37 +2772,37 @@ var Zn = (
2735
2772
  return null;
2736
2773
  }
2737
2774
  this.bump();
2738
- var r = [this.char()];
2775
+ var n = [this.char()];
2739
2776
  for (this.bump(); !this.isEOF(); ) {
2740
- var n = this.char();
2741
- if (n === 39)
2777
+ var r = this.char();
2778
+ if (r === 39)
2742
2779
  if (this.peek() === 39)
2743
- r.push(39), this.bump();
2780
+ n.push(39), this.bump();
2744
2781
  else {
2745
2782
  this.bump();
2746
2783
  break;
2747
2784
  }
2748
2785
  else
2749
- r.push(n);
2786
+ n.push(r);
2750
2787
  this.bump();
2751
2788
  }
2752
- return lt.apply(void 0, r);
2753
- }, e.prototype.tryParseUnquoted = function(t, r) {
2789
+ return mt.apply(void 0, n);
2790
+ }, e.prototype.tryParseUnquoted = function(t, n) {
2754
2791
  if (this.isEOF())
2755
2792
  return null;
2756
- var n = this.char();
2757
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), lt(n));
2758
- }, e.prototype.parseArgument = function(t, r) {
2759
- var n = this.clonePosition();
2793
+ var r = this.char();
2794
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), mt(r));
2795
+ }, e.prototype.parseArgument = function(t, n) {
2796
+ var r = this.clonePosition();
2760
2797
  if (this.bump(), this.bumpSpace(), this.isEOF())
2761
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition()));
2798
+ return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2762
2799
  if (this.char() === 125)
2763
- return this.bump(), this.error(H.EMPTY_ARGUMENT, L(n, this.clonePosition()));
2800
+ return this.bump(), this.error(M.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2764
2801
  var i = this.parseIdentifierIfPossible().value;
2765
2802
  if (!i)
2766
- return this.error(H.MALFORMED_ARGUMENT, L(n, this.clonePosition()));
2803
+ return this.error(M.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2767
2804
  if (this.bumpSpace(), this.isEOF())
2768
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition()));
2805
+ return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2769
2806
  switch (this.char()) {
2770
2807
  case 125:
2771
2808
  return this.bump(), {
@@ -2773,25 +2810,25 @@ var Zn = (
2773
2810
  type: D.argument,
2774
2811
  // value does not include the opening and closing braces.
2775
2812
  value: i,
2776
- location: L(n, this.clonePosition())
2813
+ location: L(r, this.clonePosition())
2777
2814
  },
2778
2815
  err: null
2779
2816
  };
2780
2817
  case 44:
2781
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2818
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2782
2819
  default:
2783
- return this.error(H.MALFORMED_ARGUMENT, L(n, this.clonePosition()));
2820
+ return this.error(M.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2784
2821
  }
2785
2822
  }, e.prototype.parseIdentifierIfPossible = function() {
2786
- var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
2823
+ var t = this.clonePosition(), n = this.offset(), r = dt(this.message, n), i = n + r.length;
2787
2824
  this.bumpTo(i);
2788
2825
  var s = this.clonePosition(), a = L(t, s);
2789
- return { value: n, location: a };
2790
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2826
+ return { value: r, location: a };
2827
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2791
2828
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2792
2829
  switch (o) {
2793
2830
  case "":
2794
- return this.error(H.EXPECT_ARGUMENT_TYPE, L(a, l));
2831
+ return this.error(M.EXPECT_ARGUMENT_TYPE, L(a, l));
2795
2832
  case "number":
2796
2833
  case "date":
2797
2834
  case "time": {
@@ -2802,37 +2839,37 @@ var Zn = (
2802
2839
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2803
2840
  if (c.err)
2804
2841
  return c;
2805
- var p = Yn(c.val);
2842
+ var p = si(c.val);
2806
2843
  if (p.length === 0)
2807
- return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2808
- var x = L(h, this.clonePosition());
2809
- u = { style: p, styleLocation: x };
2844
+ return this.error(M.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2845
+ var E = L(h, this.clonePosition());
2846
+ u = { style: p, styleLocation: E };
2810
2847
  }
2811
2848
  var w = this.tryParseArgumentClose(i);
2812
2849
  if (w.err)
2813
2850
  return w;
2814
2851
  var b = L(i, this.clonePosition());
2815
- if (u && Ot(u?.style, "::", 0)) {
2816
- var M = zn(u.style.slice(2));
2852
+ if (u && It(u == null ? void 0 : u.style, "::", 0)) {
2853
+ var H = ii(u.style.slice(2));
2817
2854
  if (o === "number") {
2818
- var c = this.parseNumberSkeletonFromString(M, u.styleLocation);
2855
+ var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
2819
2856
  return c.err ? c : {
2820
- val: { type: D.number, value: n, location: b, style: c.val },
2857
+ val: { type: D.number, value: r, location: b, style: c.val },
2821
2858
  err: null
2822
2859
  };
2823
2860
  } else {
2824
- if (M.length === 0)
2825
- return this.error(H.EXPECT_DATE_TIME_SKELETON, b);
2826
- var P = M;
2827
- this.locale && (P = Nn(M, this.locale));
2861
+ if (H.length === 0)
2862
+ return this.error(M.EXPECT_DATE_TIME_SKELETON, b);
2863
+ var P = H;
2864
+ this.locale && (P = Xr(H, this.locale));
2828
2865
  var p = {
2829
- type: xe.dateTime,
2866
+ type: we.dateTime,
2830
2867
  pattern: P,
2831
2868
  location: u.styleLocation,
2832
- parsedOptions: this.shouldParseSkeletons ? Hn(P) : {}
2869
+ parsedOptions: this.shouldParseSkeletons ? Rr(P) : {}
2833
2870
  }, I = o === "date" ? D.date : D.time;
2834
2871
  return {
2835
- val: { type: I, value: n, location: b, style: p },
2872
+ val: { type: I, value: r, location: b, style: p },
2836
2873
  err: null
2837
2874
  };
2838
2875
  }
@@ -2840,9 +2877,9 @@ var Zn = (
2840
2877
  return {
2841
2878
  val: {
2842
2879
  type: o === "number" ? D.number : o === "date" ? D.date : D.time,
2843
- value: n,
2880
+ value: r,
2844
2881
  location: b,
2845
- style: (s = u?.style) !== null && s !== void 0 ? s : null
2882
+ style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2846
2883
  },
2847
2884
  err: null
2848
2885
  };
@@ -2852,19 +2889,19 @@ var Zn = (
2852
2889
  case "select": {
2853
2890
  var A = this.clonePosition();
2854
2891
  if (this.bumpSpace(), !this.bumpIf(","))
2855
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(A, O({}, A)));
2892
+ return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, L(A, O({}, A)));
2856
2893
  this.bumpSpace();
2857
2894
  var R = this.parseIdentifierIfPossible(), N = 0;
2858
2895
  if (o !== "select" && R.value === "offset") {
2859
2896
  if (!this.bumpIf(":"))
2860
- return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2897
+ return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2861
2898
  this.bumpSpace();
2862
- var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2899
+ var c = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2863
2900
  if (c.err)
2864
2901
  return c;
2865
2902
  this.bumpSpace(), R = this.parseIdentifierIfPossible(), N = c.val;
2866
2903
  }
2867
- var F = this.tryParsePluralOrSelectOptions(t, o, r, R);
2904
+ var F = this.tryParsePluralOrSelectOptions(t, o, n, R);
2868
2905
  if (F.err)
2869
2906
  return F;
2870
2907
  var w = this.tryParseArgumentClose(i);
@@ -2874,16 +2911,16 @@ var Zn = (
2874
2911
  return o === "select" ? {
2875
2912
  val: {
2876
2913
  type: D.select,
2877
- value: n,
2878
- options: $t(F.val),
2914
+ value: r,
2915
+ options: Dt(F.val),
2879
2916
  location: G
2880
2917
  },
2881
2918
  err: null
2882
2919
  } : {
2883
2920
  val: {
2884
2921
  type: D.plural,
2885
- value: n,
2886
- options: $t(F.val),
2922
+ value: r,
2923
+ options: Dt(F.val),
2887
2924
  offset: N,
2888
2925
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2889
2926
  location: G
@@ -2892,19 +2929,19 @@ var Zn = (
2892
2929
  };
2893
2930
  }
2894
2931
  default:
2895
- return this.error(H.INVALID_ARGUMENT_TYPE, L(a, l));
2932
+ return this.error(M.INVALID_ARGUMENT_TYPE, L(a, l));
2896
2933
  }
2897
2934
  }, e.prototype.tryParseArgumentClose = function(t) {
2898
- return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2935
+ return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2899
2936
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2900
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2901
- var n = this.char();
2902
- switch (n) {
2937
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2938
+ var r = this.char();
2939
+ switch (r) {
2903
2940
  case 39: {
2904
2941
  this.bump();
2905
2942
  var i = this.clonePosition();
2906
2943
  if (!this.bumpUntil("'"))
2907
- return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2944
+ return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2908
2945
  this.bump();
2909
2946
  break;
2910
2947
  }
@@ -2917,7 +2954,7 @@ var Zn = (
2917
2954
  t -= 1;
2918
2955
  else
2919
2956
  return {
2920
- val: this.message.slice(r.offset, this.offset()),
2957
+ val: this.message.slice(n.offset, this.offset()),
2921
2958
  err: null
2922
2959
  };
2923
2960
  break;
@@ -2928,31 +2965,31 @@ var Zn = (
2928
2965
  }
2929
2966
  }
2930
2967
  return {
2931
- val: this.message.slice(r.offset, this.offset()),
2968
+ val: this.message.slice(n.offset, this.offset()),
2932
2969
  err: null
2933
2970
  };
2934
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2935
- var n = [];
2971
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2972
+ var r = [];
2936
2973
  try {
2937
- n = An(t);
2938
- } catch {
2939
- return this.error(H.INVALID_NUMBER_SKELETON, r);
2974
+ r = Gr(t);
2975
+ } catch (i) {
2976
+ return this.error(M.INVALID_NUMBER_SKELETON, n);
2940
2977
  }
2941
2978
  return {
2942
2979
  val: {
2943
- type: xe.number,
2944
- tokens: n,
2945
- location: r,
2946
- parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
2980
+ type: we.number,
2981
+ tokens: r,
2982
+ location: n,
2983
+ parsedOptions: this.shouldParseSkeletons ? Vr(r) : {}
2947
2984
  },
2948
2985
  err: null
2949
2986
  };
2950
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2987
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2951
2988
  for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2952
2989
  if (u.length === 0) {
2953
2990
  var c = this.clonePosition();
2954
- if (r !== "select" && this.bumpIf("=")) {
2955
- var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
2991
+ if (n !== "select" && this.bumpIf("=")) {
2992
+ var p = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
2956
2993
  if (p.err)
2957
2994
  return p;
2958
2995
  h = L(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
@@ -2960,29 +2997,29 @@ var Zn = (
2960
2997
  break;
2961
2998
  }
2962
2999
  if (l.has(u))
2963
- return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3000
+ return this.error(n === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2964
3001
  u === "other" && (a = !0), this.bumpSpace();
2965
- var x = this.clonePosition();
3002
+ var E = this.clonePosition();
2966
3003
  if (!this.bumpIf("{"))
2967
- return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2968
- var w = this.parseMessage(t + 1, r, n);
3004
+ return this.error(n === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3005
+ var w = this.parseMessage(t + 1, n, r);
2969
3006
  if (w.err)
2970
3007
  return w;
2971
- var b = this.tryParseArgumentClose(x);
3008
+ var b = this.tryParseArgumentClose(E);
2972
3009
  if (b.err)
2973
3010
  return b;
2974
3011
  o.push([
2975
3012
  u,
2976
3013
  {
2977
3014
  value: w.val,
2978
- location: L(x, this.clonePosition())
3015
+ location: L(E, this.clonePosition())
2979
3016
  }
2980
3017
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
2981
3018
  }
2982
- return o.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2983
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
2984
- var n = 1, i = this.clonePosition();
2985
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3019
+ return o.length === 0 ? this.error(n === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3020
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3021
+ var r = 1, i = this.clonePosition();
3022
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2986
3023
  for (var s = !1, a = 0; !this.isEOF(); ) {
2987
3024
  var o = this.char();
2988
3025
  if (o >= 48 && o <= 57)
@@ -2991,7 +3028,7 @@ var Zn = (
2991
3028
  break;
2992
3029
  }
2993
3030
  var l = L(i, this.clonePosition());
2994
- return s ? (a *= n, Xn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3031
+ return s ? (a *= r, ni(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
2995
3032
  }, e.prototype.offset = function() {
2996
3033
  return this.position.offset;
2997
3034
  }, e.prototype.isEOF = function() {
@@ -3006,17 +3043,17 @@ var Zn = (
3006
3043
  var t = this.position.offset;
3007
3044
  if (t >= this.message.length)
3008
3045
  throw Error("out of bound");
3009
- var r = dr(this.message, t);
3010
- if (r === void 0)
3046
+ var n = En(this.message, t);
3047
+ if (n === void 0)
3011
3048
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3012
- return r;
3013
- }, e.prototype.error = function(t, r) {
3049
+ return n;
3050
+ }, e.prototype.error = function(t, n) {
3014
3051
  return {
3015
3052
  val: null,
3016
3053
  err: {
3017
3054
  kind: t,
3018
3055
  message: this.message,
3019
- location: r
3056
+ location: n
3020
3057
  }
3021
3058
  };
3022
3059
  }, e.prototype.bump = function() {
@@ -3025,128 +3062,128 @@ var Zn = (
3025
3062
  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);
3026
3063
  }
3027
3064
  }, e.prototype.bumpIf = function(t) {
3028
- if (Ot(this.message, t, this.offset())) {
3029
- for (var r = 0; r < t.length; r++)
3065
+ if (It(this.message, t, this.offset())) {
3066
+ for (var n = 0; n < t.length; n++)
3030
3067
  this.bump();
3031
3068
  return !0;
3032
3069
  }
3033
3070
  return !1;
3034
3071
  }, e.prototype.bumpUntil = function(t) {
3035
- var r = this.offset(), n = this.message.indexOf(t, r);
3036
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3072
+ var n = this.offset(), r = this.message.indexOf(t, n);
3073
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3037
3074
  }, e.prototype.bumpTo = function(t) {
3038
3075
  if (this.offset() > t)
3039
3076
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3040
3077
  for (t = Math.min(t, this.message.length); ; ) {
3041
- var r = this.offset();
3042
- if (r === t)
3078
+ var n = this.offset();
3079
+ if (n === t)
3043
3080
  break;
3044
- if (r > t)
3081
+ if (n > t)
3045
3082
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3046
3083
  if (this.bump(), this.isEOF())
3047
3084
  break;
3048
3085
  }
3049
3086
  }, e.prototype.bumpSpace = function() {
3050
- for (; !this.isEOF() && pr(this.char()); )
3087
+ for (; !this.isEOF() && wn(this.char()); )
3051
3088
  this.bump();
3052
3089
  }, e.prototype.peek = function() {
3053
3090
  if (this.isEOF())
3054
3091
  return null;
3055
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3056
- return n ?? null;
3092
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3093
+ return r != null ? r : null;
3057
3094
  }, e;
3058
3095
  }()
3059
3096
  );
3060
- function ft(e) {
3097
+ function gt(e) {
3061
3098
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3062
3099
  }
3063
- function Jn(e) {
3064
- return ft(e) || e === 47;
3100
+ function ai(e) {
3101
+ return gt(e) || e === 47;
3065
3102
  }
3066
- function Qn(e) {
3103
+ function ui(e) {
3067
3104
  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;
3068
3105
  }
3069
- function pr(e) {
3106
+ function wn(e) {
3070
3107
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3071
3108
  }
3072
- function qn(e) {
3109
+ function li(e) {
3073
3110
  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;
3074
3111
  }
3075
- function ct(e) {
3112
+ function pt(e) {
3076
3113
  e.forEach(function(t) {
3077
- if (delete t.location, or(t) || ar(t))
3078
- for (var r in t.options)
3079
- delete t.options[r].location, ct(t.options[r].value);
3080
- else nr(t) && lr(t.style) || (ir(t) || sr(t)) && at(t.style) ? delete t.style.location : ur(t) && ct(t.children);
3114
+ if (delete t.location, mn(t) || dn(t))
3115
+ for (var n in t.options)
3116
+ delete t.options[n].location, pt(t.options[n].value);
3117
+ else hn(t) && pn(t.style) || (fn(t) || cn(t)) && ft(t.style) ? delete t.style.location : gn(t) && pt(t.children);
3081
3118
  });
3082
3119
  }
3083
- function Kn(e, t) {
3120
+ function hi(e, t) {
3084
3121
  t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3085
- var r = new Zn(e, t).parse();
3086
- if (r.err) {
3087
- var n = SyntaxError(H[r.err.kind]);
3088
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3122
+ var n = new oi(e, t).parse();
3123
+ if (n.err) {
3124
+ var r = SyntaxError(M[n.err.kind]);
3125
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3089
3126
  }
3090
- return t?.captureLocation || ct(r.val), r.val;
3127
+ return t != null && t.captureLocation || pt(n.val), n.val;
3091
3128
  }
3092
- var Ee;
3129
+ var Se;
3093
3130
  (function(e) {
3094
3131
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3095
- })(Ee || (Ee = {}));
3096
- var Xe = (
3132
+ })(Se || (Se = {}));
3133
+ var Ze = (
3097
3134
  /** @class */
3098
3135
  function(e) {
3099
- Ve(t, e);
3100
- function t(r, n, i) {
3101
- var s = e.call(this, r) || this;
3102
- return s.code = n, s.originalMessage = i, s;
3136
+ Ye(t, e);
3137
+ function t(n, r, i) {
3138
+ var s = e.call(this, n) || this;
3139
+ return s.code = r, s.originalMessage = i, s;
3103
3140
  }
3104
3141
  return t.prototype.toString = function() {
3105
3142
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3106
3143
  }, t;
3107
3144
  }(Error)
3108
- ), Pt = (
3145
+ ), Ut = (
3109
3146
  /** @class */
3110
3147
  function(e) {
3111
- Ve(t, e);
3112
- function t(r, n, i, s) {
3113
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ee.INVALID_VALUE, s) || this;
3148
+ Ye(t, e);
3149
+ function t(n, r, i, s) {
3150
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Se.INVALID_VALUE, s) || this;
3114
3151
  }
3115
3152
  return t;
3116
- }(Xe)
3117
- ), ei = (
3153
+ }(Ze)
3154
+ ), fi = (
3118
3155
  /** @class */
3119
3156
  function(e) {
3120
- Ve(t, e);
3121
- function t(r, n, i) {
3122
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ee.INVALID_VALUE, i) || this;
3157
+ Ye(t, e);
3158
+ function t(n, r, i) {
3159
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Se.INVALID_VALUE, i) || this;
3123
3160
  }
3124
3161
  return t;
3125
- }(Xe)
3126
- ), ti = (
3162
+ }(Ze)
3163
+ ), ci = (
3127
3164
  /** @class */
3128
3165
  function(e) {
3129
- Ve(t, e);
3130
- function t(r, n) {
3131
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ee.MISSING_VALUE, n) || this;
3166
+ Ye(t, e);
3167
+ function t(n, r) {
3168
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Se.MISSING_VALUE, r) || this;
3132
3169
  }
3133
3170
  return t;
3134
- }(Xe)
3171
+ }(Ze)
3135
3172
  ), Q;
3136
3173
  (function(e) {
3137
3174
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3138
3175
  })(Q || (Q = {}));
3139
- function ri(e) {
3140
- return e.length < 2 ? e : e.reduce(function(t, r) {
3141
- var n = t[t.length - 1];
3142
- return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
3176
+ function mi(e) {
3177
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3178
+ var r = t[t.length - 1];
3179
+ return !r || r.type !== Q.literal || n.type !== Q.literal ? t.push(n) : r.value += n.value, t;
3143
3180
  }, []);
3144
3181
  }
3145
- function ni(e) {
3182
+ function di(e) {
3146
3183
  return typeof e == "function";
3147
3184
  }
3148
- function Re(e, t, r, n, i, s, a) {
3149
- if (e.length === 1 && Mt(e[0]))
3185
+ function ke(e, t, n, r, i, s, a) {
3186
+ if (e.length === 1 && Bt(e[0]))
3150
3187
  return [
3151
3188
  {
3152
3189
  type: Q.literal,
@@ -3155,60 +3192,60 @@ function Re(e, t, r, n, i, s, a) {
3155
3192
  ];
3156
3193
  for (var o = [], l = 0, u = e; l < u.length; l++) {
3157
3194
  var h = u[l];
3158
- if (Mt(h)) {
3195
+ if (Bt(h)) {
3159
3196
  o.push({
3160
3197
  type: Q.literal,
3161
3198
  value: h.value
3162
3199
  });
3163
3200
  continue;
3164
3201
  }
3165
- if (Tn(h)) {
3202
+ if (Ir(h)) {
3166
3203
  typeof s == "number" && o.push({
3167
3204
  type: Q.literal,
3168
- value: r.getNumberFormat(t).format(s)
3205
+ value: n.getNumberFormat(t).format(s)
3169
3206
  });
3170
3207
  continue;
3171
3208
  }
3172
3209
  var c = h.value;
3173
3210
  if (!(i && c in i))
3174
- throw new ti(c, a);
3211
+ throw new ci(c, a);
3175
3212
  var p = i[c];
3176
- if (Sn(h)) {
3213
+ if (Cr(h)) {
3177
3214
  (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), o.push({
3178
3215
  type: typeof p == "string" ? Q.literal : Q.object,
3179
3216
  value: p
3180
3217
  });
3181
3218
  continue;
3182
3219
  }
3183
- if (ir(h)) {
3184
- var x = typeof h.style == "string" ? n.date[h.style] : at(h.style) ? h.style.parsedOptions : void 0;
3220
+ if (fn(h)) {
3221
+ var E = typeof h.style == "string" ? r.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
3185
3222
  o.push({
3186
3223
  type: Q.literal,
3187
- value: r.getDateTimeFormat(t, x).format(p)
3224
+ value: n.getDateTimeFormat(t, E).format(p)
3188
3225
  });
3189
3226
  continue;
3190
3227
  }
3191
- if (sr(h)) {
3192
- var x = typeof h.style == "string" ? n.time[h.style] : at(h.style) ? h.style.parsedOptions : n.time.medium;
3228
+ if (cn(h)) {
3229
+ var E = typeof h.style == "string" ? r.time[h.style] : ft(h.style) ? h.style.parsedOptions : r.time.medium;
3193
3230
  o.push({
3194
3231
  type: Q.literal,
3195
- value: r.getDateTimeFormat(t, x).format(p)
3232
+ value: n.getDateTimeFormat(t, E).format(p)
3196
3233
  });
3197
3234
  continue;
3198
3235
  }
3199
- if (nr(h)) {
3200
- var x = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
3201
- x && x.scale && (p = p * (x.scale || 1)), o.push({
3236
+ if (hn(h)) {
3237
+ var E = typeof h.style == "string" ? r.number[h.style] : pn(h.style) ? h.style.parsedOptions : void 0;
3238
+ E && E.scale && (p = p * (E.scale || 1)), o.push({
3202
3239
  type: Q.literal,
3203
- value: r.getNumberFormat(t, x).format(p)
3240
+ value: n.getNumberFormat(t, E).format(p)
3204
3241
  });
3205
3242
  continue;
3206
3243
  }
3207
- if (ur(h)) {
3208
- var w = h.children, b = h.value, M = i[b];
3209
- if (!ni(M))
3210
- throw new ei(b, "function", a);
3211
- var P = Re(w, t, r, n, i, s), I = M(P.map(function(N) {
3244
+ if (gn(h)) {
3245
+ var w = h.children, b = h.value, H = i[b];
3246
+ if (!di(H))
3247
+ throw new fi(b, "function", a);
3248
+ var P = ke(w, t, n, r, i, s), I = H(P.map(function(N) {
3212
3249
  return N.value;
3213
3250
  }));
3214
3251
  Array.isArray(I) || (I = [I]), o.push.apply(o, I.map(function(N) {
@@ -3218,92 +3255,92 @@ function Re(e, t, r, n, i, s, a) {
3218
3255
  };
3219
3256
  }));
3220
3257
  }
3221
- if (or(h)) {
3258
+ if (mn(h)) {
3222
3259
  var A = h.options[p] || h.options.other;
3223
3260
  if (!A)
3224
- throw new Pt(h.value, p, Object.keys(h.options), a);
3225
- o.push.apply(o, Re(A.value, t, r, n, i));
3261
+ throw new Ut(h.value, p, Object.keys(h.options), a);
3262
+ o.push.apply(o, ke(A.value, t, n, r, i));
3226
3263
  continue;
3227
3264
  }
3228
- if (ar(h)) {
3265
+ if (dn(h)) {
3229
3266
  var A = h.options["=".concat(p)];
3230
3267
  if (!A) {
3231
3268
  if (!Intl.PluralRules)
3232
- throw new Xe(`Intl.PluralRules is not available in this environment.
3269
+ throw new Ze(`Intl.PluralRules is not available in this environment.
3233
3270
  Try polyfilling it using "@formatjs/intl-pluralrules"
3234
- `, Ee.MISSING_INTL_API, a);
3235
- var R = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
3271
+ `, Se.MISSING_INTL_API, a);
3272
+ var R = n.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
3236
3273
  A = h.options[R] || h.options.other;
3237
3274
  }
3238
3275
  if (!A)
3239
- throw new Pt(h.value, p, Object.keys(h.options), a);
3240
- o.push.apply(o, Re(A.value, t, r, n, i, p - (h.offset || 0)));
3276
+ throw new Ut(h.value, p, Object.keys(h.options), a);
3277
+ o.push.apply(o, ke(A.value, t, n, r, i, p - (h.offset || 0)));
3241
3278
  continue;
3242
3279
  }
3243
3280
  }
3244
- return ri(o);
3281
+ return mi(o);
3245
3282
  }
3246
- function ii(e, t) {
3247
- return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3248
- return r[n] = O(O({}, e[n]), t[n] || {}), r;
3283
+ function gi(e, t) {
3284
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3285
+ return n[r] = O(O({}, e[r]), t[r] || {}), n;
3249
3286
  }, {})) : e;
3250
3287
  }
3251
- function si(e, t) {
3252
- return t ? Object.keys(e).reduce(function(r, n) {
3253
- return r[n] = ii(e[n], t[n]), r;
3288
+ function pi(e, t) {
3289
+ return t ? Object.keys(e).reduce(function(n, r) {
3290
+ return n[r] = gi(e[r], t[r]), n;
3254
3291
  }, O({}, e)) : e;
3255
3292
  }
3256
- function et(e) {
3293
+ function it(e) {
3257
3294
  return {
3258
3295
  create: function() {
3259
3296
  return {
3260
3297
  get: function(t) {
3261
3298
  return e[t];
3262
3299
  },
3263
- set: function(t, r) {
3264
- e[t] = r;
3300
+ set: function(t, n) {
3301
+ e[t] = n;
3265
3302
  }
3266
3303
  };
3267
3304
  }
3268
3305
  };
3269
3306
  }
3270
- function oi(e) {
3307
+ function bi(e) {
3271
3308
  return e === void 0 && (e = {
3272
3309
  number: {},
3273
3310
  dateTime: {},
3274
3311
  pluralRules: {}
3275
3312
  }), {
3276
- getNumberFormat: Qe(function() {
3277
- for (var t, r = [], n = 0; n < arguments.length; n++)
3278
- r[n] = arguments[n];
3279
- return new ((t = Intl.NumberFormat).bind.apply(t, Je([void 0], r, !1)))();
3313
+ getNumberFormat: tt(function() {
3314
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3315
+ n[r] = arguments[r];
3316
+ return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], n, !1)))();
3280
3317
  }, {
3281
- cache: et(e.number),
3282
- strategy: qe.variadic
3318
+ cache: it(e.number),
3319
+ strategy: nt.variadic
3283
3320
  }),
3284
- getDateTimeFormat: Qe(function() {
3285
- for (var t, r = [], n = 0; n < arguments.length; n++)
3286
- r[n] = arguments[n];
3287
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Je([void 0], r, !1)))();
3321
+ getDateTimeFormat: tt(function() {
3322
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3323
+ n[r] = arguments[r];
3324
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], n, !1)))();
3288
3325
  }, {
3289
- cache: et(e.dateTime),
3290
- strategy: qe.variadic
3326
+ cache: it(e.dateTime),
3327
+ strategy: nt.variadic
3291
3328
  }),
3292
- getPluralRules: Qe(function() {
3293
- for (var t, r = [], n = 0; n < arguments.length; n++)
3294
- r[n] = arguments[n];
3295
- return new ((t = Intl.PluralRules).bind.apply(t, Je([void 0], r, !1)))();
3329
+ getPluralRules: tt(function() {
3330
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3331
+ n[r] = arguments[r];
3332
+ return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], n, !1)))();
3296
3333
  }, {
3297
- cache: et(e.pluralRules),
3298
- strategy: qe.variadic
3334
+ cache: it(e.pluralRules),
3335
+ strategy: nt.variadic
3299
3336
  })
3300
3337
  };
3301
3338
  }
3302
- var br = (
3339
+ var Sn = (
3303
3340
  /** @class */
3304
3341
  function() {
3305
- function e(t, r, n, i) {
3306
- r === void 0 && (r = e.defaultLocale);
3342
+ function e(t, n, r, i) {
3343
+ n === void 0 && (n = e.defaultLocale);
3307
3344
  var s = this;
3308
3345
  if (this.formatterCache = {
3309
3346
  number: {},
@@ -3318,7 +3355,7 @@ var br = (
3318
3355
  }, []);
3319
3356
  return h.length <= 1 ? h[0] || "" : h;
3320
3357
  }, this.formatToParts = function(l) {
3321
- return Re(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3358
+ return ke(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3322
3359
  }, this.resolvedOptions = function() {
3323
3360
  var l;
3324
3361
  return {
@@ -3326,18 +3363,18 @@ var br = (
3326
3363
  };
3327
3364
  }, this.getAst = function() {
3328
3365
  return s.ast;
3329
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3366
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3330
3367
  if (this.message = t, !e.__parse)
3331
3368
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3332
3369
  var a = i || {};
3333
3370
  a.formatters;
3334
- var o = pn(a, ["formatters"]);
3371
+ var o = Mr(a, ["formatters"]);
3335
3372
  this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3336
3373
  } else
3337
3374
  this.ast = t;
3338
3375
  if (!Array.isArray(this.ast))
3339
3376
  throw new TypeError("A message must be provided as a String or AST.");
3340
- this.formats = si(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
3377
+ this.formats = pi(e.formats, r), this.formatters = i && i.formatters || bi(this.formatterCache);
3341
3378
  }
3342
3379
  return Object.defineProperty(e, "defaultLocale", {
3343
3380
  get: function() {
@@ -3346,11 +3383,11 @@ var br = (
3346
3383
  enumerable: !1,
3347
3384
  configurable: !0
3348
3385
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3349
- if (!(typeof Intl.Locale > "u")) {
3350
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3351
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3386
+ if (typeof Intl.Locale != "undefined") {
3387
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3388
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3352
3389
  }
3353
- }, e.__parse = Kn, e.formats = {
3390
+ }, e.__parse = hi, e.formats = {
3354
3391
  number: {
3355
3392
  integer: {
3356
3393
  maximumFractionDigits: 0
@@ -3411,122 +3448,122 @@ var br = (
3411
3448
  }, e;
3412
3449
  }()
3413
3450
  );
3414
- function ai(e, t) {
3451
+ function yi(e, t) {
3415
3452
  if (t == null)
3416
3453
  return;
3417
3454
  if (t in e)
3418
3455
  return e[t];
3419
- const r = t.split(".");
3420
- let n = e;
3421
- for (let i = 0; i < r.length; i++)
3422
- if (typeof n == "object") {
3456
+ const n = t.split(".");
3457
+ let r = e;
3458
+ for (let i = 0; i < n.length; i++)
3459
+ if (typeof r == "object") {
3423
3460
  if (i > 0) {
3424
- const s = r.slice(i, r.length).join(".");
3425
- if (s in n) {
3426
- n = n[s];
3461
+ const s = n.slice(i, n.length).join(".");
3462
+ if (s in r) {
3463
+ r = r[s];
3427
3464
  break;
3428
3465
  }
3429
3466
  }
3430
- n = n[r[i]];
3467
+ r = r[n[i]];
3431
3468
  } else
3432
- n = void 0;
3433
- return n;
3469
+ r = void 0;
3470
+ return r;
3434
3471
  }
3435
- const fe = {}, ui = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), yr = (e, t) => {
3472
+ const ce = {}, vi = (e, t, n) => n && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = n), n), Tn = (e, t) => {
3436
3473
  if (t == null)
3437
3474
  return;
3438
- if (t in fe && e in fe[t])
3439
- return fe[t][e];
3440
- const r = Ne(t);
3441
- for (let n = 0; n < r.length; n++) {
3442
- const i = r[n], s = hi(i, e);
3475
+ if (t in ce && e in ce[t])
3476
+ return ce[t][e];
3477
+ const n = Ie(t);
3478
+ for (let r = 0; r < n.length; r++) {
3479
+ const i = n[r], s = Ei(i, e);
3443
3480
  if (s)
3444
- return ui(e, t, s);
3481
+ return vi(e, t, s);
3445
3482
  }
3446
3483
  };
3447
- let bt;
3448
- const Pe = je({});
3449
- function li(e) {
3450
- return bt[e] || null;
3484
+ let Et;
3485
+ const Ce = ze({});
3486
+ function xi(e) {
3487
+ return Et[e] || null;
3451
3488
  }
3452
- function vr(e) {
3453
- return e in bt;
3489
+ function Hn(e) {
3490
+ return e in Et;
3454
3491
  }
3455
- function hi(e, t) {
3456
- if (!vr(e))
3492
+ function Ei(e, t) {
3493
+ if (!Hn(e))
3457
3494
  return null;
3458
- const r = li(e);
3459
- return ai(r, t);
3495
+ const n = xi(e);
3496
+ return yi(n, t);
3460
3497
  }
3461
- function fi(e) {
3498
+ function _i(e) {
3462
3499
  if (e == null)
3463
3500
  return;
3464
- const t = Ne(e);
3465
- for (let r = 0; r < t.length; r++) {
3466
- const n = t[r];
3467
- if (vr(n))
3468
- return n;
3501
+ const t = Ie(e);
3502
+ for (let n = 0; n < t.length; n++) {
3503
+ const r = t[n];
3504
+ if (Hn(r))
3505
+ return r;
3469
3506
  }
3470
3507
  }
3471
- function _r(e, ...t) {
3472
- delete fe[e], Pe.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
3508
+ function Mn(e, ...t) {
3509
+ delete ce[e], Ce.update((n) => (n[e] = Hr.all([n[e] || {}, ...t]), n));
3473
3510
  }
3474
- Te(
3475
- [Pe],
3511
+ Me(
3512
+ [Ce],
3476
3513
  ([e]) => Object.keys(e)
3477
3514
  );
3478
- Pe.subscribe((e) => bt = e);
3479
- const Ue = {};
3480
- function ci(e, t) {
3481
- Ue[e].delete(t), Ue[e].size === 0 && delete Ue[e];
3482
- }
3483
- function xr(e) {
3484
- return Ue[e];
3485
- }
3486
- function mi(e) {
3487
- return Ne(e).map((t) => {
3488
- const r = xr(t);
3489
- return [t, r ? [...r] : []];
3515
+ Ce.subscribe((e) => Et = e);
3516
+ const je = {};
3517
+ function wi(e, t) {
3518
+ je[e].delete(t), je[e].size === 0 && delete je[e];
3519
+ }
3520
+ function Ln(e) {
3521
+ return je[e];
3522
+ }
3523
+ function Si(e) {
3524
+ return Ie(e).map((t) => {
3525
+ const n = Ln(t);
3526
+ return [t, n ? [...n] : []];
3490
3527
  }).filter(([, t]) => t.length > 0);
3491
3528
  }
3492
- function Ge(e) {
3493
- return e == null ? !1 : Ne(e).some(
3529
+ function Ve(e) {
3530
+ return e == null ? !1 : Ie(e).some(
3494
3531
  (t) => {
3495
- var r;
3496
- return (r = xr(t)) == null ? void 0 : r.size;
3532
+ var n;
3533
+ return (n = Ln(t)) == null ? void 0 : n.size;
3497
3534
  }
3498
3535
  );
3499
3536
  }
3500
- function di(e, t) {
3537
+ function Ti(e, t) {
3501
3538
  return Promise.all(
3502
- t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
3503
- ).then((n) => _r(e, ...n));
3539
+ t.map((r) => (wi(e, r), r().then((i) => i.default || i)))
3540
+ ).then((r) => Mn(e, ...r));
3504
3541
  }
3505
- const He = {};
3506
- function Er(e) {
3507
- if (!Ge(e))
3508
- return e in He ? He[e] : Promise.resolve();
3509
- const t = mi(e);
3510
- return He[e] = Promise.all(
3542
+ const Ae = {};
3543
+ function An(e) {
3544
+ if (!Ve(e))
3545
+ return e in Ae ? Ae[e] : Promise.resolve();
3546
+ const t = Si(e);
3547
+ return Ae[e] = Promise.all(
3511
3548
  t.map(
3512
- ([r, n]) => di(r, n)
3549
+ ([n, r]) => Ti(n, r)
3513
3550
  )
3514
3551
  ).then(() => {
3515
- if (Ge(e))
3516
- return Er(e);
3517
- delete He[e];
3518
- }), He[e];
3552
+ if (Ve(e))
3553
+ return An(e);
3554
+ delete Ae[e];
3555
+ }), Ae[e];
3519
3556
  }
3520
- var Nt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, bi = (e, t) => {
3521
- var r = {};
3522
- for (var n in e)
3523
- gi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3524
- if (e != null && Nt)
3525
- for (var n of Nt(e))
3526
- t.indexOf(n) < 0 && pi.call(e, n) && (r[n] = e[n]);
3527
- return r;
3557
+ var Gt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Li = (e, t) => {
3558
+ var n = {};
3559
+ for (var r in e)
3560
+ Hi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3561
+ if (e != null && Gt)
3562
+ for (var r of Gt(e))
3563
+ t.indexOf(r) < 0 && Mi.call(e, r) && (n[r] = e[r]);
3564
+ return n;
3528
3565
  };
3529
- const yi = {
3566
+ const Ai = {
3530
3567
  number: {
3531
3568
  scientific: { notation: "scientific" },
3532
3569
  engineering: { notation: "engineering" },
@@ -3556,174 +3593,174 @@ const yi = {
3556
3593
  }
3557
3594
  }
3558
3595
  };
3559
- function vi({ locale: e, id: t }) {
3596
+ function Oi({ locale: e, id: t }) {
3560
3597
  console.warn(
3561
- `[svelte-i18n] The message "${t}" was not found in "${Ne(
3598
+ `[svelte-i18n] The message "${t}" was not found in "${Ie(
3562
3599
  e
3563
- ).join('", "')}".${Ge(ce()) ? `
3600
+ ).join('", "')}".${Ve(me()) ? `
3564
3601
 
3565
3602
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3566
3603
  );
3567
3604
  }
3568
- const _i = {
3605
+ const $i = {
3569
3606
  fallbackLocale: null,
3570
3607
  loadingDelay: 200,
3571
- formats: yi,
3608
+ formats: Ai,
3572
3609
  warnOnMissingMessages: !0,
3573
3610
  handleMissingMessage: void 0,
3574
3611
  ignoreTag: !0
3575
- }, Le = _i;
3576
- function we() {
3577
- return Le;
3612
+ }, Oe = $i;
3613
+ function Te() {
3614
+ return Oe;
3578
3615
  }
3579
- function xi(e) {
3580
- const t = e, { formats: r } = t, n = bi(t, ["formats"]);
3616
+ function Bi(e) {
3617
+ const t = e, { formats: n } = t, r = Li(t, ["formats"]);
3581
3618
  let i = e.fallbackLocale;
3582
3619
  if (e.initialLocale)
3583
3620
  try {
3584
- br.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3585
- } catch {
3621
+ Sn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3622
+ } catch (s) {
3586
3623
  console.warn(
3587
3624
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3588
3625
  );
3589
3626
  }
3590
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = vi : console.warn(
3627
+ return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Oi : console.warn(
3591
3628
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3592
- )), Object.assign(Le, n, { initialLocale: i }), r && ("number" in r && Object.assign(Le.formats.number, r.number), "date" in r && Object.assign(Le.formats.date, r.date), "time" in r && Object.assign(Le.formats.time, r.time)), ge.set(i);
3593
- }
3594
- const tt = je(!1);
3595
- var Ei = Object.defineProperty, wi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
3596
- for (var r in t)
3597
- Ti.call(t, r) && It(e, r, t[r]);
3598
- if (Ct)
3599
- for (var r of Ct(t))
3600
- Mi.call(t, r) && It(e, r, t[r]);
3629
+ )), Object.assign(Oe, r, { initialLocale: i }), n && ("number" in n && Object.assign(Oe.formats.number, n.number), "date" in n && Object.assign(Oe.formats.date, n.date), "time" in n && Object.assign(Oe.formats.time, n.time)), pe.set(i);
3630
+ }
3631
+ const st = ze(!1);
3632
+ var Pi = Object.defineProperty, Ni = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Ft = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, kt = (e, t, n) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ri = (e, t) => {
3633
+ for (var n in t)
3634
+ Ii.call(t, n) && kt(e, n, t[n]);
3635
+ if (Ft)
3636
+ for (var n of Ft(t))
3637
+ Di.call(t, n) && kt(e, n, t[n]);
3601
3638
  return e;
3602
- }, Li = (e, t) => wi(e, Si(t));
3603
- let mt;
3604
- const Fe = je(null);
3605
- function Dt(e) {
3606
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3639
+ }, Ui = (e, t) => Ni(e, Ci(t));
3640
+ let bt;
3641
+ const Xe = ze(null);
3642
+ function jt(e) {
3643
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3607
3644
  }
3608
- function Ne(e, t = we().fallbackLocale) {
3609
- const r = Dt(e);
3610
- return t ? [.../* @__PURE__ */ new Set([...r, ...Dt(t)])] : r;
3645
+ function Ie(e, t = Te().fallbackLocale) {
3646
+ const n = jt(e);
3647
+ return t ? [.../* @__PURE__ */ new Set([...n, ...jt(t)])] : n;
3611
3648
  }
3612
- function ce() {
3613
- return mt ?? void 0;
3649
+ function me() {
3650
+ return bt != null ? bt : void 0;
3614
3651
  }
3615
- Fe.subscribe((e) => {
3616
- mt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3652
+ Xe.subscribe((e) => {
3653
+ bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3617
3654
  });
3618
- const Ai = (e) => {
3619
- if (e && fi(e) && Ge(e)) {
3620
- const { loadingDelay: t } = we();
3621
- let r;
3622
- return typeof window < "u" && ce() != null && t ? r = window.setTimeout(
3623
- () => tt.set(!0),
3655
+ const Gi = (e) => {
3656
+ if (e && _i(e) && Ve(e)) {
3657
+ const { loadingDelay: t } = Te();
3658
+ let n;
3659
+ return typeof window != "undefined" && me() != null && t ? n = window.setTimeout(
3660
+ () => st.set(!0),
3624
3661
  t
3625
- ) : tt.set(!0), Er(e).then(() => {
3626
- Fe.set(e);
3662
+ ) : st.set(!0), An(e).then(() => {
3663
+ Xe.set(e);
3627
3664
  }).finally(() => {
3628
- clearTimeout(r), tt.set(!1);
3665
+ clearTimeout(n), st.set(!1);
3629
3666
  });
3630
3667
  }
3631
- return Fe.set(e);
3632
- }, ge = Li(Hi({}, Fe), {
3633
- set: Ai
3634
- }), We = (e) => {
3668
+ return Xe.set(e);
3669
+ }, pe = Ui(Ri({}, Xe), {
3670
+ set: Gi
3671
+ }), Je = (e) => {
3635
3672
  const t = /* @__PURE__ */ Object.create(null);
3636
- return (n) => {
3637
- const i = JSON.stringify(n);
3638
- return i in t ? t[i] : t[i] = e(n);
3673
+ return (r) => {
3674
+ const i = JSON.stringify(r);
3675
+ return i in t ? t[i] : t[i] = e(r);
3639
3676
  };
3640
3677
  };
3641
- var Oi = Object.defineProperty, ke = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
3642
- for (var r in t || (t = {}))
3643
- wr.call(t, r) && Rt(e, r, t[r]);
3644
- if (ke)
3645
- for (var r of ke(t))
3646
- Sr.call(t, r) && Rt(e, r, t[r]);
3678
+ var Fi = Object.defineProperty, We = Object.getOwnPropertySymbols, On = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Vt = (e, t, n) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _t = (e, t) => {
3679
+ for (var n in t || (t = {}))
3680
+ On.call(t, n) && Vt(e, n, t[n]);
3681
+ if (We)
3682
+ for (var n of We(t))
3683
+ $n.call(t, n) && Vt(e, n, t[n]);
3647
3684
  return e;
3648
- }, Me = (e, t) => {
3649
- var r = {};
3650
- for (var n in e)
3651
- wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3652
- if (e != null && ke)
3653
- for (var n of ke(e))
3654
- t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
3655
- return r;
3685
+ }, Le = (e, t) => {
3686
+ var n = {};
3687
+ for (var r in e)
3688
+ On.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3689
+ if (e != null && We)
3690
+ for (var r of We(e))
3691
+ t.indexOf(r) < 0 && $n.call(e, r) && (n[r] = e[r]);
3692
+ return n;
3656
3693
  };
3657
- const Be = (e, t) => {
3658
- const { formats: r } = we();
3659
- if (e in r && t in r[e])
3660
- return r[e][t];
3694
+ const Ne = (e, t) => {
3695
+ const { formats: n } = Te();
3696
+ if (e in n && t in n[e])
3697
+ return n[e][t];
3661
3698
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3662
- }, $i = We(
3699
+ }, ki = Je(
3663
3700
  (e) => {
3664
- var t = e, { locale: r, format: n } = t, i = Me(t, ["locale", "format"]);
3665
- if (r == null)
3701
+ var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3702
+ if (n == null)
3666
3703
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3667
- return n && (i = Be("number", n)), new Intl.NumberFormat(r, i);
3704
+ return r && (i = Ne("number", r)), new Intl.NumberFormat(n, i);
3668
3705
  }
3669
- ), Bi = We(
3706
+ ), ji = Je(
3670
3707
  (e) => {
3671
- var t = e, { locale: r, format: n } = t, i = Me(t, ["locale", "format"]);
3672
- if (r == null)
3708
+ var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3709
+ if (n == null)
3673
3710
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3674
- return n ? i = Be("date", n) : Object.keys(i).length === 0 && (i = Be("date", "short")), new Intl.DateTimeFormat(r, i);
3711
+ return r ? i = Ne("date", r) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(n, i);
3675
3712
  }
3676
- ), Pi = We(
3713
+ ), Vi = Je(
3677
3714
  (e) => {
3678
- var t = e, { locale: r, format: n } = t, i = Me(t, ["locale", "format"]);
3679
- if (r == null)
3715
+ var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3716
+ if (n == null)
3680
3717
  throw new Error(
3681
3718
  '[svelte-i18n] A "locale" must be set to format time values'
3682
3719
  );
3683
- return n ? i = Be("time", n) : Object.keys(i).length === 0 && (i = Be("time", "short")), new Intl.DateTimeFormat(r, i);
3720
+ return r ? i = Ne("time", r) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(n, i);
3684
3721
  }
3685
- ), Ni = (e = {}) => {
3722
+ ), Xi = (e = {}) => {
3686
3723
  var t = e, {
3687
- locale: r = ce()
3688
- } = t, n = Me(t, [
3724
+ locale: n = me()
3725
+ } = t, r = Le(t, [
3689
3726
  "locale"
3690
3727
  ]);
3691
- return $i(yt({ locale: r }, n));
3692
- }, Ci = (e = {}) => {
3728
+ return ki(_t({ locale: n }, r));
3729
+ }, Wi = (e = {}) => {
3693
3730
  var t = e, {
3694
- locale: r = ce()
3695
- } = t, n = Me(t, [
3731
+ locale: n = me()
3732
+ } = t, r = Le(t, [
3696
3733
  "locale"
3697
3734
  ]);
3698
- return Bi(yt({ locale: r }, n));
3699
- }, Ii = (e = {}) => {
3735
+ return ji(_t({ locale: n }, r));
3736
+ }, zi = (e = {}) => {
3700
3737
  var t = e, {
3701
- locale: r = ce()
3702
- } = t, n = Me(t, [
3738
+ locale: n = me()
3739
+ } = t, r = Le(t, [
3703
3740
  "locale"
3704
3741
  ]);
3705
- return Pi(yt({ locale: r }, n));
3706
- }, Di = We(
3742
+ return Vi(_t({ locale: n }, r));
3743
+ }, Yi = Je(
3707
3744
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3708
- (e, t = ce()) => new br(e, t, we().formats, {
3709
- ignoreTag: we().ignoreTag
3745
+ (e, t = me()) => new Sn(e, t, Te().formats, {
3746
+ ignoreTag: Te().ignoreTag
3710
3747
  })
3711
- ), Ri = (e, t = {}) => {
3712
- var r, n, i, s;
3748
+ ), Zi = (e, t = {}) => {
3749
+ var n, r, i, s;
3713
3750
  let a = t;
3714
3751
  typeof e == "object" && (a = e, e = a.id);
3715
3752
  const {
3716
3753
  values: o,
3717
- locale: l = ce(),
3754
+ locale: l = me(),
3718
3755
  default: u
3719
3756
  } = a;
3720
3757
  if (l == null)
3721
3758
  throw new Error(
3722
3759
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3723
3760
  );
3724
- let h = yr(e, l);
3761
+ let h = Tn(e, l);
3725
3762
  if (!h)
3726
- h = (s = (i = (n = (r = we()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3763
+ h = (s = (i = (r = (n = Te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3727
3764
  else if (typeof h != "string")
3728
3765
  return console.warn(
3729
3766
  `[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.`
@@ -3732,7 +3769,7 @@ const Be = (e, t) => {
3732
3769
  return h;
3733
3770
  let c = h;
3734
3771
  try {
3735
- c = Di(h, l).format(o);
3772
+ c = Yi(h, l).format(o);
3736
3773
  } catch (p) {
3737
3774
  p instanceof Error && console.warn(
3738
3775
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3740,20 +3777,20 @@ const Be = (e, t) => {
3740
3777
  );
3741
3778
  }
3742
3779
  return c;
3743
- }, Ui = (e, t) => Ii(t).format(e), Gi = (e, t) => Ci(t).format(e), Fi = (e, t) => Ni(t).format(e), ki = (e, t = ce()) => yr(e, t), ji = Te([ge, Pe], () => Ri);
3744
- Te([ge], () => Ui);
3745
- Te([ge], () => Gi);
3746
- Te([ge], () => Fi);
3747
- Te([ge, Pe], () => ki);
3748
- function Ut(e, t) {
3749
- _r(e, t);
3750
- }
3751
- function Vi(e) {
3752
- xi({
3780
+ }, Ji = (e, t) => zi(t).format(e), Qi = (e, t) => Wi(t).format(e), qi = (e, t) => Xi(t).format(e), Ki = (e, t = me()) => Tn(e, t), es = Me([pe, Ce], () => Zi);
3781
+ Me([pe], () => Ji);
3782
+ Me([pe], () => Qi);
3783
+ Me([pe], () => qi);
3784
+ Me([pe, Ce], () => Ki);
3785
+ function Xt(e, t) {
3786
+ Mn(e, t);
3787
+ }
3788
+ function ts(e) {
3789
+ Bi({
3753
3790
  fallbackLocale: "en"
3754
- }), ge.set(e);
3791
+ }), pe.set(e);
3755
3792
  }
3756
- const Gt = {
3793
+ const Wt = {
3757
3794
  en: {
3758
3795
  generalMin: "Min",
3759
3796
  generalMax: "Max",
@@ -3783,12 +3820,12 @@ const Gt = {
3783
3820
  showLess: "SHOW LESS"
3784
3821
  }
3785
3822
  };
3786
- var Tr = { exports: {} };
3823
+ var Bn = { exports: {} };
3787
3824
  (function(e, t) {
3788
- (function(r, n) {
3789
- e.exports = n();
3790
- })(Kt, function() {
3791
- var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", l = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", w = "date", b = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
3825
+ (function(n, r) {
3826
+ e.exports = r();
3827
+ })(on, function() {
3828
+ var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", l = "hour", u = "day", h = "week", c = "month", p = "quarter", E = "year", w = "date", b = "Invalid Date", H = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
3792
3829
  var g = ["th", "st", "nd", "rd"], f = v % 100;
3793
3830
  return "[" + v + (g[(f - 20) % 10] || g[f] || g[0]) + "]";
3794
3831
  } }, A = function(v, g, f) {
@@ -3799,26 +3836,26 @@ var Tr = { exports: {} };
3799
3836
  return (g <= 0 ? "+" : "-") + A(y, 2, "0") + ":" + A(d, 2, "0");
3800
3837
  }, m: function v(g, f) {
3801
3838
  if (g.date() < f.date()) return -v(f, g);
3802
- var y = 12 * (f.year() - g.year()) + (f.month() - g.month()), d = g.clone().add(y, c), E = f - d < 0, _ = g.clone().add(y + (E ? -1 : 1), c);
3803
- return +(-(y + (f - d) / (E ? d - _ : _ - d)) || 0);
3839
+ var y = 12 * (f.year() - g.year()) + (f.month() - g.month()), d = g.clone().add(y, c), _ = f - d < 0, x = g.clone().add(y + (_ ? -1 : 1), c);
3840
+ return +(-(y + (f - d) / (_ ? d - x : x - d)) || 0);
3804
3841
  }, a: function(v) {
3805
3842
  return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
3806
3843
  }, p: function(v) {
3807
- return { M: c, y: x, w: h, d: u, D: w, h: l, m: o, s: a, ms: s, Q: p }[v] || String(v || "").toLowerCase().replace(/s$/, "");
3844
+ return { M: c, y: E, w: h, d: u, D: w, h: l, m: o, s: a, ms: s, Q: p }[v] || String(v || "").toLowerCase().replace(/s$/, "");
3808
3845
  }, u: function(v) {
3809
3846
  return v === void 0;
3810
3847
  } }, N = "en", F = {};
3811
3848
  F[N] = I;
3812
3849
  var G = "$isDayjsObject", ee = function(v) {
3813
- return v instanceof ie || !(!v || !v[G]);
3814
- }, V = function v(g, f, y) {
3850
+ return v instanceof se || !(!v || !v[G]);
3851
+ }, X = function v(g, f, y) {
3815
3852
  var d;
3816
3853
  if (!g) return N;
3817
3854
  if (typeof g == "string") {
3818
- var E = g.toLowerCase();
3819
- F[E] && (d = E), f && (F[E] = f, d = E);
3820
- var _ = g.split("-");
3821
- if (!d && _.length > 1) return v(_[0]);
3855
+ var _ = g.toLowerCase();
3856
+ F[_] && (d = _), f && (F[_] = f, d = _);
3857
+ var x = g.split("-");
3858
+ if (!d && x.length > 1) return v(x[0]);
3822
3859
  } else {
3823
3860
  var S = g.name;
3824
3861
  F[S] = g, d = S;
@@ -3827,27 +3864,27 @@ var Tr = { exports: {} };
3827
3864
  }, C = function(v, g) {
3828
3865
  if (ee(v)) return v.clone();
3829
3866
  var f = typeof g == "object" ? g : {};
3830
- return f.date = v, f.args = arguments, new ie(f);
3867
+ return f.date = v, f.args = arguments, new se(f);
3831
3868
  }, T = R;
3832
- T.l = V, T.i = ee, T.w = function(v, g) {
3869
+ T.l = X, T.i = ee, T.w = function(v, g) {
3833
3870
  return C(v, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
3834
3871
  };
3835
- var ie = function() {
3872
+ var se = function() {
3836
3873
  function v(f) {
3837
- this.$L = V(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[G] = !0;
3874
+ this.$L = X(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[G] = !0;
3838
3875
  }
3839
3876
  var g = v.prototype;
3840
3877
  return g.parse = function(f) {
3841
3878
  this.$d = function(y) {
3842
- var d = y.date, E = y.utc;
3879
+ var d = y.date, _ = y.utc;
3843
3880
  if (d === null) return /* @__PURE__ */ new Date(NaN);
3844
3881
  if (T.u(d)) return /* @__PURE__ */ new Date();
3845
3882
  if (d instanceof Date) return new Date(d);
3846
3883
  if (typeof d == "string" && !/Z$/i.test(d)) {
3847
- var _ = d.match(M);
3848
- if (_) {
3849
- var S = _[2] - 1 || 0, U = (_[7] || "0").substring(0, 3);
3850
- return E ? new Date(Date.UTC(_[1], S, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, U)) : new Date(_[1], S, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, U);
3884
+ var x = d.match(H);
3885
+ if (x) {
3886
+ var S = x[2] - 1 || 0, U = (x[7] || "0").substring(0, 3);
3887
+ return _ ? new Date(Date.UTC(x[1], S, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, U)) : new Date(x[1], S, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, U);
3851
3888
  }
3852
3889
  }
3853
3890
  return new Date(d);
@@ -3873,37 +3910,37 @@ var Tr = { exports: {} };
3873
3910
  }, g.valueOf = function() {
3874
3911
  return this.$d.getTime();
3875
3912
  }, g.startOf = function(f, y) {
3876
- var d = this, E = !!T.u(y) || y, _ = T.p(f), S = function(ae, X) {
3877
- var m = T.w(d.$u ? Date.UTC(d.$y, X, ae) : new Date(d.$y, X, ae), d);
3878
- return E ? m : m.endOf(u);
3879
- }, U = function(ae, X) {
3880
- return T.w(d.toDate()[ae].apply(d.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), d);
3881
- }, k = this.$W, j = this.$M, q = this.$D, he = "set" + (this.$u ? "UTC" : "");
3882
- switch (_) {
3883
- case x:
3884
- return E ? S(1, 0) : S(31, 11);
3913
+ var d = this, _ = !!T.u(y) || y, x = T.p(f), S = function(ue, W) {
3914
+ var m = T.w(d.$u ? Date.UTC(d.$y, W, ue) : new Date(d.$y, W, ue), d);
3915
+ return _ ? m : m.endOf(u);
3916
+ }, U = function(ue, W) {
3917
+ return T.w(d.toDate()[ue].apply(d.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), d);
3918
+ }, k = this.$W, V = this.$M, q = this.$D, fe = "set" + (this.$u ? "UTC" : "");
3919
+ switch (x) {
3920
+ case E:
3921
+ return _ ? S(1, 0) : S(31, 11);
3885
3922
  case c:
3886
- return E ? S(1, j) : S(0, j + 1);
3923
+ return _ ? S(1, V) : S(0, V + 1);
3887
3924
  case h:
3888
- var se = this.$locale().weekStart || 0, de = (k < se ? k + 7 : k) - se;
3889
- return S(E ? q - de : q + (6 - de), j);
3925
+ var oe = this.$locale().weekStart || 0, ge = (k < oe ? k + 7 : k) - oe;
3926
+ return S(_ ? q - ge : q + (6 - ge), V);
3890
3927
  case u:
3891
3928
  case w:
3892
- return U(he + "Hours", 0);
3929
+ return U(fe + "Hours", 0);
3893
3930
  case l:
3894
- return U(he + "Minutes", 1);
3931
+ return U(fe + "Minutes", 1);
3895
3932
  case o:
3896
- return U(he + "Seconds", 2);
3933
+ return U(fe + "Seconds", 2);
3897
3934
  case a:
3898
- return U(he + "Milliseconds", 3);
3935
+ return U(fe + "Milliseconds", 3);
3899
3936
  default:
3900
3937
  return this.clone();
3901
3938
  }
3902
3939
  }, g.endOf = function(f) {
3903
3940
  return this.startOf(f, !1);
3904
3941
  }, g.$set = function(f, y) {
3905
- var d, E = T.p(f), _ = "set" + (this.$u ? "UTC" : ""), S = (d = {}, d[u] = _ + "Date", d[w] = _ + "Date", d[c] = _ + "Month", d[x] = _ + "FullYear", d[l] = _ + "Hours", d[o] = _ + "Minutes", d[a] = _ + "Seconds", d[s] = _ + "Milliseconds", d)[E], U = E === u ? this.$D + (y - this.$W) : y;
3906
- if (E === c || E === x) {
3942
+ var d, _ = T.p(f), x = "set" + (this.$u ? "UTC" : ""), S = (d = {}, d[u] = x + "Date", d[w] = x + "Date", d[c] = x + "Month", d[E] = x + "FullYear", d[l] = x + "Hours", d[o] = x + "Minutes", d[a] = x + "Seconds", d[s] = x + "Milliseconds", d)[_], U = _ === u ? this.$D + (y - this.$W) : y;
3943
+ if (_ === c || _ === E) {
3907
3944
  var k = this.clone().set(w, 1);
3908
3945
  k.$d[S](U), k.init(), this.$d = k.set(w, Math.min(this.$D, k.daysInMonth())).$d;
3909
3946
  } else S && this.$d[S](U);
@@ -3913,32 +3950,32 @@ var Tr = { exports: {} };
3913
3950
  }, g.get = function(f) {
3914
3951
  return this[T.p(f)]();
3915
3952
  }, g.add = function(f, y) {
3916
- var d, E = this;
3953
+ var d, _ = this;
3917
3954
  f = Number(f);
3918
- var _ = T.p(y), S = function(j) {
3919
- var q = C(E);
3920
- return T.w(q.date(q.date() + Math.round(j * f)), E);
3955
+ var x = T.p(y), S = function(V) {
3956
+ var q = C(_);
3957
+ return T.w(q.date(q.date() + Math.round(V * f)), _);
3921
3958
  };
3922
- if (_ === c) return this.set(c, this.$M + f);
3923
- if (_ === x) return this.set(x, this.$y + f);
3924
- if (_ === u) return S(1);
3925
- if (_ === h) return S(7);
3926
- var U = (d = {}, d[o] = n, d[l] = i, d[a] = r, d)[_] || 1, k = this.$d.getTime() + f * U;
3959
+ if (x === c) return this.set(c, this.$M + f);
3960
+ if (x === E) return this.set(E, this.$y + f);
3961
+ if (x === u) return S(1);
3962
+ if (x === h) return S(7);
3963
+ var U = (d = {}, d[o] = r, d[l] = i, d[a] = n, d)[x] || 1, k = this.$d.getTime() + f * U;
3927
3964
  return T.w(k, this);
3928
3965
  }, g.subtract = function(f, y) {
3929
3966
  return this.add(-1 * f, y);
3930
3967
  }, g.format = function(f) {
3931
3968
  var y = this, d = this.$locale();
3932
3969
  if (!this.isValid()) return d.invalidDate || b;
3933
- var E = f || "YYYY-MM-DDTHH:mm:ssZ", _ = T.z(this), S = this.$H, U = this.$m, k = this.$M, j = d.weekdays, q = d.months, he = d.meridiem, se = function(X, m, $, Y) {
3934
- return X && (X[m] || X(y, E)) || $[m].slice(0, Y);
3935
- }, de = function(X) {
3936
- return T.s(S % 12 || 12, X, "0");
3937
- }, ae = he || function(X, m, $) {
3938
- var Y = X < 12 ? "AM" : "PM";
3939
- return $ ? Y.toLowerCase() : Y;
3970
+ var _ = f || "YYYY-MM-DDTHH:mm:ssZ", x = T.z(this), S = this.$H, U = this.$m, k = this.$M, V = d.weekdays, q = d.months, fe = d.meridiem, oe = function(W, m, $, Z) {
3971
+ return W && (W[m] || W(y, _)) || $[m].slice(0, Z);
3972
+ }, ge = function(W) {
3973
+ return T.s(S % 12 || 12, W, "0");
3974
+ }, ue = fe || function(W, m, $) {
3975
+ var Z = W < 12 ? "AM" : "PM";
3976
+ return $ ? Z.toLowerCase() : Z;
3940
3977
  };
3941
- return E.replace(P, function(X, m) {
3978
+ return _.replace(P, function(W, m) {
3942
3979
  return m || function($) {
3943
3980
  switch ($) {
3944
3981
  case "YY":
@@ -3950,9 +3987,9 @@ var Tr = { exports: {} };
3950
3987
  case "MM":
3951
3988
  return T.s(k + 1, 2, "0");
3952
3989
  case "MMM":
3953
- return se(d.monthsShort, k, q, 3);
3990
+ return oe(d.monthsShort, k, q, 3);
3954
3991
  case "MMMM":
3955
- return se(q, k);
3992
+ return oe(q, k);
3956
3993
  case "D":
3957
3994
  return y.$D;
3958
3995
  case "DD":
@@ -3960,23 +3997,23 @@ var Tr = { exports: {} };
3960
3997
  case "d":
3961
3998
  return String(y.$W);
3962
3999
  case "dd":
3963
- return se(d.weekdaysMin, y.$W, j, 2);
4000
+ return oe(d.weekdaysMin, y.$W, V, 2);
3964
4001
  case "ddd":
3965
- return se(d.weekdaysShort, y.$W, j, 3);
4002
+ return oe(d.weekdaysShort, y.$W, V, 3);
3966
4003
  case "dddd":
3967
- return j[y.$W];
4004
+ return V[y.$W];
3968
4005
  case "H":
3969
4006
  return String(S);
3970
4007
  case "HH":
3971
4008
  return T.s(S, 2, "0");
3972
4009
  case "h":
3973
- return de(1);
4010
+ return ge(1);
3974
4011
  case "hh":
3975
- return de(2);
4012
+ return ge(2);
3976
4013
  case "a":
3977
- return ae(S, U, !0);
4014
+ return ue(S, U, !0);
3978
4015
  case "A":
3979
- return ae(S, U, !1);
4016
+ return ue(S, U, !1);
3980
4017
  case "m":
3981
4018
  return String(U);
3982
4019
  case "mm":
@@ -3988,54 +4025,54 @@ var Tr = { exports: {} };
3988
4025
  case "SSS":
3989
4026
  return T.s(y.$ms, 3, "0");
3990
4027
  case "Z":
3991
- return _;
4028
+ return x;
3992
4029
  }
3993
4030
  return null;
3994
- }(X) || _.replace(":", "");
4031
+ }(W) || x.replace(":", "");
3995
4032
  });
3996
4033
  }, g.utcOffset = function() {
3997
4034
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3998
4035
  }, g.diff = function(f, y, d) {
3999
- var E, _ = this, S = T.p(y), U = C(f), k = (U.utcOffset() - this.utcOffset()) * n, j = this - U, q = function() {
4000
- return T.m(_, U);
4036
+ var _, x = this, S = T.p(y), U = C(f), k = (U.utcOffset() - this.utcOffset()) * r, V = this - U, q = function() {
4037
+ return T.m(x, U);
4001
4038
  };
4002
4039
  switch (S) {
4003
- case x:
4004
- E = q() / 12;
4040
+ case E:
4041
+ _ = q() / 12;
4005
4042
  break;
4006
4043
  case c:
4007
- E = q();
4044
+ _ = q();
4008
4045
  break;
4009
4046
  case p:
4010
- E = q() / 3;
4047
+ _ = q() / 3;
4011
4048
  break;
4012
4049
  case h:
4013
- E = (j - k) / 6048e5;
4050
+ _ = (V - k) / 6048e5;
4014
4051
  break;
4015
4052
  case u:
4016
- E = (j - k) / 864e5;
4053
+ _ = (V - k) / 864e5;
4017
4054
  break;
4018
4055
  case l:
4019
- E = j / i;
4056
+ _ = V / i;
4020
4057
  break;
4021
4058
  case o:
4022
- E = j / n;
4059
+ _ = V / r;
4023
4060
  break;
4024
4061
  case a:
4025
- E = j / r;
4062
+ _ = V / n;
4026
4063
  break;
4027
4064
  default:
4028
- E = j;
4065
+ _ = V;
4029
4066
  }
4030
- return d ? E : T.a(E);
4067
+ return d ? _ : T.a(_);
4031
4068
  }, g.daysInMonth = function() {
4032
4069
  return this.endOf(c).$D;
4033
4070
  }, g.$locale = function() {
4034
4071
  return F[this.$L];
4035
4072
  }, g.locale = function(f, y) {
4036
4073
  if (!f) return this.$L;
4037
- var d = this.clone(), E = V(f, y, !0);
4038
- return E && (d.$L = E), d;
4074
+ var d = this.clone(), _ = X(f, y, !0);
4075
+ return _ && (d.$L = _), d;
4039
4076
  }, g.clone = function() {
4040
4077
  return T.w(this.$d, this);
4041
4078
  }, g.toDate = function() {
@@ -4047,34 +4084,34 @@ var Tr = { exports: {} };
4047
4084
  }, g.toString = function() {
4048
4085
  return this.$d.toUTCString();
4049
4086
  }, v;
4050
- }(), me = ie.prototype;
4051
- return C.prototype = me, [["$ms", s], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", x], ["$D", w]].forEach(function(v) {
4052
- me[v[1]] = function(g) {
4087
+ }(), de = se.prototype;
4088
+ return C.prototype = de, [["$ms", s], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", E], ["$D", w]].forEach(function(v) {
4089
+ de[v[1]] = function(g) {
4053
4090
  return this.$g(g, v[0], v[1]);
4054
4091
  };
4055
4092
  }), C.extend = function(v, g) {
4056
- return v.$i || (v(g, ie, C), v.$i = !0), C;
4057
- }, C.locale = V, C.isDayjs = ee, C.unix = function(v) {
4093
+ return v.$i || (v(g, se, C), v.$i = !0), C;
4094
+ }, C.locale = X, C.isDayjs = ee, C.unix = function(v) {
4058
4095
  return C(1e3 * v);
4059
4096
  }, C.en = F[N], C.Ls = F, C.p = {}, C;
4060
4097
  });
4061
- })(Tr);
4062
- var Xi = Tr.exports;
4063
- const Ft = /* @__PURE__ */ gt(Xi);
4064
- var Mr = { exports: {} };
4098
+ })(Bn);
4099
+ var ns = Bn.exports;
4100
+ const zt = /* @__PURE__ */ vt(ns);
4101
+ var Pn = { exports: {} };
4065
4102
  (function(e, t) {
4066
- (function(r, n) {
4067
- e.exports = n();
4068
- })(Kt, function() {
4069
- var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
4103
+ (function(n, r) {
4104
+ e.exports = r();
4105
+ })(on, function() {
4106
+ var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
4070
4107
  return function(s, a, o) {
4071
4108
  var l = a.prototype;
4072
4109
  o.utc = function(b) {
4073
- var M = { date: b, utc: !0, args: arguments };
4074
- return new a(M);
4110
+ var H = { date: b, utc: !0, args: arguments };
4111
+ return new a(H);
4075
4112
  }, l.utc = function(b) {
4076
- var M = o(this.toDate(), { locale: this.$L, utc: !0 });
4077
- return b ? M.add(this.utcOffset(), r) : M;
4113
+ var H = o(this.toDate(), { locale: this.$L, utc: !0 });
4114
+ return b ? H.add(this.utcOffset(), n) : H;
4078
4115
  }, l.local = function() {
4079
4116
  return o(this.toDate(), { locale: this.$L, utc: !1 });
4080
4117
  };
@@ -4090,28 +4127,28 @@ var Mr = { exports: {} };
4090
4127
  } else h.call(this);
4091
4128
  };
4092
4129
  var c = l.utcOffset;
4093
- l.utcOffset = function(b, M) {
4130
+ l.utcOffset = function(b, H) {
4094
4131
  var P = this.$utils().u;
4095
4132
  if (P(b)) return this.$u ? 0 : P(this.$offset) ? c.call(this) : this.$offset;
4096
4133
  if (typeof b == "string" && (b = function(N) {
4097
4134
  N === void 0 && (N = "");
4098
- var F = N.match(n);
4135
+ var F = N.match(r);
4099
4136
  if (!F) return null;
4100
- var G = ("" + F[0]).match(i) || ["-", 0, 0], ee = G[0], V = 60 * +G[1] + +G[2];
4101
- return V === 0 ? 0 : ee === "+" ? V : -V;
4137
+ var G = ("" + F[0]).match(i) || ["-", 0, 0], ee = G[0], X = 60 * +G[1] + +G[2];
4138
+ return X === 0 ? 0 : ee === "+" ? X : -X;
4102
4139
  }(b), b === null)) return this;
4103
4140
  var I = Math.abs(b) <= 16 ? 60 * b : b, A = this;
4104
- if (M) return A.$offset = I, A.$u = b === 0, A;
4141
+ if (H) return A.$offset = I, A.$u = b === 0, A;
4105
4142
  if (b !== 0) {
4106
4143
  var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
4107
- (A = this.local().add(I + R, r)).$offset = I, A.$x.$localOffset = R;
4144
+ (A = this.local().add(I + R, n)).$offset = I, A.$x.$localOffset = R;
4108
4145
  } else A = this.utc();
4109
4146
  return A;
4110
4147
  };
4111
4148
  var p = l.format;
4112
4149
  l.format = function(b) {
4113
- var M = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
4114
- return p.call(this, M);
4150
+ var H = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
4151
+ return p.call(this, H);
4115
4152
  }, l.valueOf = function() {
4116
4153
  var b = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
4117
4154
  return this.$d.valueOf() - 6e4 * b;
@@ -4122,33 +4159,33 @@ var Mr = { exports: {} };
4122
4159
  }, l.toString = function() {
4123
4160
  return this.toDate().toUTCString();
4124
4161
  };
4125
- var x = l.toDate;
4162
+ var E = l.toDate;
4126
4163
  l.toDate = function(b) {
4127
- return b === "s" && this.$offset ? o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
4164
+ return b === "s" && this.$offset ? o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : E.call(this);
4128
4165
  };
4129
4166
  var w = l.diff;
4130
- l.diff = function(b, M, P) {
4131
- if (b && this.$u === b.$u) return w.call(this, b, M, P);
4167
+ l.diff = function(b, H, P) {
4168
+ if (b && this.$u === b.$u) return w.call(this, b, H, P);
4132
4169
  var I = this.local(), A = o(b).local();
4133
- return w.call(I, A, M, P);
4170
+ return w.call(I, A, H, P);
4134
4171
  };
4135
4172
  };
4136
4173
  });
4137
- })(Mr);
4138
- var Wi = Mr.exports;
4139
- const zi = /* @__PURE__ */ gt(Wi);
4140
- function Yi(e) {
4141
- Or(e, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
4174
+ })(Pn);
4175
+ var rs = Pn.exports;
4176
+ const is = /* @__PURE__ */ vt(rs);
4177
+ function ss(e) {
4178
+ kn(e, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
4142
4179
  }
4143
- function kt(e, t, r) {
4144
- const n = e.slice();
4145
- return n[47] = t[r], n[49] = r, n;
4180
+ function Yt(e, t, n) {
4181
+ const r = e.slice();
4182
+ return r[47] = t[n], r[49] = n, r;
4146
4183
  }
4147
- function jt(e) {
4184
+ function Zt(e) {
4148
4185
  let t;
4149
4186
  return {
4150
4187
  c() {
4151
- t = z("cashier-spinner"), J(
4188
+ t = Y("cashier-spinner"), J(
4152
4189
  t,
4153
4190
  "clientstylingurl",
4154
4191
  /*clientstylingurl*/
@@ -4160,86 +4197,86 @@ function jt(e) {
4160
4197
  e[3]
4161
4198
  );
4162
4199
  },
4163
- m(r, n) {
4164
- le(r, t, n);
4200
+ m(n, r) {
4201
+ he(n, t, r);
4165
4202
  },
4166
- p(r, n) {
4167
- n[0] & /*clientstylingurl*/
4203
+ p(n, r) {
4204
+ r[0] & /*clientstylingurl*/
4168
4205
  16 && J(
4169
4206
  t,
4170
4207
  "clientstylingurl",
4171
4208
  /*clientstylingurl*/
4172
- r[4]
4173
- ), n[0] & /*clientstyling*/
4209
+ n[4]
4210
+ ), r[0] & /*clientstyling*/
4174
4211
  8 && J(
4175
4212
  t,
4176
4213
  "clientstyling",
4177
4214
  /*clientstyling*/
4178
- r[3]
4215
+ n[3]
4179
4216
  );
4180
4217
  },
4181
- d(r) {
4182
- r && oe(t);
4218
+ d(n) {
4219
+ n && ae(t);
4183
4220
  }
4184
4221
  };
4185
4222
  }
4186
- function Vt(e) {
4187
- let t, r, n, i = St(
4223
+ function Jt(e) {
4224
+ let t, n, r, i = Ot(
4188
4225
  /*paymentMethodsToShow*/
4189
4226
  e[8]
4190
4227
  ), s = [];
4191
4228
  for (let o = 0; o < i.length; o += 1)
4192
- s[o] = Xt(kt(e, i, o));
4229
+ s[o] = Qt(Yt(e, i, o));
4193
4230
  let a = (
4194
4231
  /*methodsButtonToggleText*/
4195
- e[7] && Wt(e)
4232
+ e[7] && qt(e)
4196
4233
  );
4197
4234
  return {
4198
4235
  c() {
4199
- t = z("div"), r = z("div");
4236
+ t = Y("div"), n = Y("div");
4200
4237
  for (let o = 0; o < s.length; o += 1)
4201
4238
  s[o].c();
4202
- n = te(), a && a.c(), W(r, "class", "CashierMethodList"), W(t, "class", "CashierMethodListWidget");
4239
+ r = ne(), a && a.c(), z(n, "class", "CashierMethodList"), z(t, "class", "CashierMethodListWidget");
4203
4240
  },
4204
4241
  m(o, l) {
4205
- le(o, t, l), B(t, r);
4242
+ he(o, t, l), B(t, n);
4206
4243
  for (let u = 0; u < s.length; u += 1)
4207
- s[u] && s[u].m(r, null);
4208
- B(t, n), a && a.m(t, null), e[26](t);
4244
+ s[u] && s[u].m(n, null);
4245
+ B(t, r), a && a.m(t, null), e[26](t);
4209
4246
  },
4210
4247
  p(o, l) {
4211
4248
  if (l[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
4212
4249
  57664) {
4213
- i = St(
4250
+ i = Ot(
4214
4251
  /*paymentMethodsToShow*/
4215
4252
  o[8]
4216
4253
  );
4217
4254
  let u;
4218
4255
  for (u = 0; u < i.length; u += 1) {
4219
- const h = kt(o, i, u);
4220
- s[u] ? s[u].p(h, l) : (s[u] = Xt(h), s[u].c(), s[u].m(r, null));
4256
+ const h = Yt(o, i, u);
4257
+ s[u] ? s[u].p(h, l) : (s[u] = Qt(h), s[u].c(), s[u].m(n, null));
4221
4258
  }
4222
4259
  for (; u < s.length; u += 1)
4223
4260
  s[u].d(1);
4224
4261
  s.length = i.length;
4225
4262
  }
4226
4263
  /*methodsButtonToggleText*/
4227
- o[7] ? a ? a.p(o, l) : (a = Wt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4264
+ o[7] ? a ? a.p(o, l) : (a = qt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4228
4265
  },
4229
4266
  d(o) {
4230
- o && oe(t), Pr(s, o), a && a.d(), e[26](null);
4267
+ o && ae(t), Xn(s, o), a && a.d(), e[26](null);
4231
4268
  }
4232
4269
  };
4233
4270
  }
4234
- function Xt(e) {
4235
- let t, r, n, i, s, a, o, l, u = (
4271
+ function Qt(e) {
4272
+ let t, n, r, i, s, a, o, l, u = (
4236
4273
  /*payMeth*/
4237
4274
  (e[47].Label || /*payMeth*/
4238
4275
  e[47].Name) + ""
4239
- ), h, c, p, x, w = (
4276
+ ), h, c, p, E, w = (
4240
4277
  /*$_*/
4241
4278
  e[13]("generalMin") + ""
4242
- ), b, M, P = (
4279
+ ), b, H, P = (
4243
4280
  /*formatter*/
4244
4281
  e[14].format(
4245
4282
  /*payMeth*/
@@ -4251,17 +4288,17 @@ function Xt(e) {
4251
4288
  ), N, F, G, ee = (
4252
4289
  /*$_*/
4253
4290
  e[13]("generalMax") + ""
4254
- ), V, C, T = (
4291
+ ), X, C, T = (
4255
4292
  /*formatter*/
4256
4293
  e[14].format(
4257
4294
  /*payMeth*/
4258
4295
  e[47].DisplayCurrency.MaxAmountLimit
4259
4296
  ) + ""
4260
- ), ie, me, v = (
4297
+ ), se, de, v = (
4261
4298
  /*payMeth*/
4262
4299
  e[47].DisplayCurrency.Name + ""
4263
4300
  ), g, f, y, d;
4264
- function E() {
4301
+ function _() {
4265
4302
  return (
4266
4303
  /*click_handler*/
4267
4304
  e[24](
@@ -4272,9 +4309,9 @@ function Xt(e) {
4272
4309
  }
4273
4310
  return {
4274
4311
  c() {
4275
- t = z("div"), r = z("div"), n = z("img"), a = te(), o = z("div"), l = z("span"), h = re(u), c = te(), p = z("div"), x = z("span"), b = re(w), M = te(), I = re(P), A = te(), N = re(R), F = te(), G = z("span"), V = re(ee), C = te(), ie = re(T), me = te(), g = re(v), f = te(), xt(n.src, i = /*payMeth*/
4276
- e[47].LogoUrl) || W(n, "src", i), W(n, "alt", s = /*payMeth*/
4277
- e[47].Label), W(r, "class", "MethodLogo"), W(o, "class", "MethodTitle"), W(x, "class", "Limits"), W(G, "class", "Limits"), W(p, "class", "MethodLimits"), W(t, "class", "SelectorWrapper"), Et(
4312
+ t = Y("div"), n = Y("div"), r = Y("img"), a = ne(), o = Y("div"), l = Y("span"), h = re(u), c = ne(), p = Y("div"), E = Y("span"), b = re(w), H = ne(), I = re(P), A = ne(), N = re(R), F = ne(), G = Y("span"), X = re(ee), C = ne(), se = re(T), de = ne(), g = re(v), f = ne(), Mt(r.src, i = /*payMeth*/
4313
+ e[47].LogoUrl) || z(r, "src", i), z(r, "alt", s = /*payMeth*/
4314
+ e[47].Label), z(n, "class", "MethodLogo"), z(o, "class", "MethodTitle"), z(E, "class", "Limits"), z(G, "class", "Limits"), z(p, "class", "MethodLimits"), z(t, "class", "SelectorWrapper"), Lt(
4278
4315
  t,
4279
4316
  "checked",
4280
4317
  /*selectedPaymentMethod*/
@@ -4282,40 +4319,40 @@ function Xt(e) {
4282
4319
  e[47].Name
4283
4320
  );
4284
4321
  },
4285
- m(_, S) {
4286
- le(_, t, S), B(t, r), B(r, n), B(t, a), B(t, o), B(o, l), B(l, h), B(t, c), B(t, p), B(p, x), B(x, b), B(x, M), B(x, I), B(x, A), B(x, N), B(p, F), B(p, G), B(G, V), B(G, C), B(G, ie), B(G, me), B(G, g), B(t, f), y || (d = [
4287
- rt(t, "click", E),
4288
- rt(t, "keyup", Ji)
4322
+ m(x, S) {
4323
+ he(x, t, S), B(t, n), B(n, r), B(t, a), B(t, o), B(o, l), B(l, h), B(t, c), B(t, p), B(p, E), B(E, b), B(E, H), B(E, I), B(E, A), B(E, N), B(p, F), B(p, G), B(G, X), B(G, C), B(G, se), B(G, de), B(G, g), B(t, f), y || (d = [
4324
+ ot(t, "click", _),
4325
+ ot(t, "keyup", as)
4289
4326
  ], y = !0);
4290
4327
  },
4291
- p(_, S) {
4292
- e = _, S[0] & /*paymentMethodsToShow*/
4293
- 256 && !xt(n.src, i = /*payMeth*/
4294
- e[47].LogoUrl) && W(n, "src", i), S[0] & /*paymentMethodsToShow*/
4328
+ p(x, S) {
4329
+ e = x, S[0] & /*paymentMethodsToShow*/
4330
+ 256 && !Mt(r.src, i = /*payMeth*/
4331
+ e[47].LogoUrl) && z(r, "src", i), S[0] & /*paymentMethodsToShow*/
4295
4332
  256 && s !== (s = /*payMeth*/
4296
- e[47].Label) && W(n, "alt", s), S[0] & /*paymentMethodsToShow*/
4333
+ e[47].Label) && z(r, "alt", s), S[0] & /*paymentMethodsToShow*/
4297
4334
  256 && u !== (u = /*payMeth*/
4298
4335
  (e[47].Label || /*payMeth*/
4299
- e[47].Name) + "") && ue(h, u), S[0] & /*$_*/
4336
+ e[47].Name) + "") && le(h, u), S[0] & /*$_*/
4300
4337
  8192 && w !== (w = /*$_*/
4301
- e[13]("generalMin") + "") && ue(b, w), S[0] & /*paymentMethodsToShow*/
4338
+ e[13]("generalMin") + "") && le(b, w), S[0] & /*paymentMethodsToShow*/
4302
4339
  256 && P !== (P = /*formatter*/
4303
4340
  e[14].format(
4304
4341
  /*payMeth*/
4305
4342
  e[47].DisplayCurrency.MinAmountLimit
4306
- ) + "") && ue(I, P), S[0] & /*paymentMethodsToShow*/
4343
+ ) + "") && le(I, P), S[0] & /*paymentMethodsToShow*/
4307
4344
  256 && R !== (R = /*payMeth*/
4308
- e[47].DisplayCurrency.Name + "") && ue(N, R), S[0] & /*$_*/
4345
+ e[47].DisplayCurrency.Name + "") && le(N, R), S[0] & /*$_*/
4309
4346
  8192 && ee !== (ee = /*$_*/
4310
- e[13]("generalMax") + "") && ue(V, ee), S[0] & /*paymentMethodsToShow*/
4347
+ e[13]("generalMax") + "") && le(X, ee), S[0] & /*paymentMethodsToShow*/
4311
4348
  256 && T !== (T = /*formatter*/
4312
4349
  e[14].format(
4313
4350
  /*payMeth*/
4314
4351
  e[47].DisplayCurrency.MaxAmountLimit
4315
- ) + "") && ue(ie, T), S[0] & /*paymentMethodsToShow*/
4352
+ ) + "") && le(se, T), S[0] & /*paymentMethodsToShow*/
4316
4353
  256 && v !== (v = /*payMeth*/
4317
- e[47].DisplayCurrency.Name + "") && ue(g, v), S[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
4318
- 320 && Et(
4354
+ e[47].DisplayCurrency.Name + "") && le(g, v), S[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
4355
+ 320 && Lt(
4319
4356
  t,
4320
4357
  "checked",
4321
4358
  /*selectedPaymentMethod*/
@@ -4323,49 +4360,49 @@ function Xt(e) {
4323
4360
  e[47].Name
4324
4361
  );
4325
4362
  },
4326
- d(_) {
4327
- _ && oe(t), y = !1, Se(d);
4363
+ d(x) {
4364
+ x && ae(t), y = !1, He(d);
4328
4365
  }
4329
4366
  };
4330
4367
  }
4331
- function Wt(e) {
4332
- let t, r, n, i;
4368
+ function qt(e) {
4369
+ let t, n, r, i;
4333
4370
  return {
4334
4371
  c() {
4335
- t = z("div"), r = re(
4372
+ t = Y("div"), n = re(
4336
4373
  /*methodsButtonToggleText*/
4337
4374
  e[7]
4338
- ), W(t, "class", "ShowAllButton");
4375
+ ), z(t, "class", "ShowAllButton");
4339
4376
  },
4340
4377
  m(s, a) {
4341
- le(s, t, a), B(t, r), n || (i = rt(
4378
+ he(s, t, a), B(t, n), r || (i = ot(
4342
4379
  t,
4343
4380
  "click",
4344
4381
  /*click_handler_1*/
4345
4382
  e[25]
4346
- ), n = !0);
4383
+ ), r = !0);
4347
4384
  },
4348
4385
  p(s, a) {
4349
4386
  a[0] & /*methodsButtonToggleText*/
4350
- 128 && ue(
4351
- r,
4387
+ 128 && le(
4388
+ n,
4352
4389
  /*methodsButtonToggleText*/
4353
4390
  s[7]
4354
4391
  );
4355
4392
  },
4356
4393
  d(s) {
4357
- s && oe(t), n = !1, i();
4394
+ s && ae(t), r = !1, i();
4358
4395
  }
4359
4396
  };
4360
4397
  }
4361
- function zt(e) {
4362
- let t, r, n;
4398
+ function Kt(e) {
4399
+ let t, n, r;
4363
4400
  return {
4364
4401
  c() {
4365
- t = z("cashier-error"), r = z("span"), n = re(
4402
+ t = Y("cashier-error"), n = Y("span"), r = re(
4366
4403
  /*errorMessage*/
4367
4404
  e[10]
4368
- ), W(r, "slot", "text"), J(
4405
+ ), z(n, "slot", "text"), J(
4369
4406
  t,
4370
4407
  "lang",
4371
4408
  /*lang*/
@@ -4393,12 +4430,12 @@ function zt(e) {
4393
4430
  ), J(t, "hidebuttons", "true");
4394
4431
  },
4395
4432
  m(i, s) {
4396
- le(i, t, s), B(t, r), B(r, n);
4433
+ he(i, t, s), B(t, n), B(n, r);
4397
4434
  },
4398
4435
  p(i, s) {
4399
4436
  s[0] & /*errorMessage*/
4400
- 1024 && ue(
4401
- n,
4437
+ 1024 && le(
4438
+ r,
4402
4439
  /*errorMessage*/
4403
4440
  i[10]
4404
4441
  ), s[0] & /*lang*/
@@ -4434,74 +4471,74 @@ function zt(e) {
4434
4471
  );
4435
4472
  },
4436
4473
  d(i) {
4437
- i && oe(t);
4474
+ i && ae(t);
4438
4475
  }
4439
4476
  };
4440
4477
  }
4441
- function Zi(e) {
4442
- let t, r, n, i = (
4478
+ function os(e) {
4479
+ let t, n, r, i = (
4443
4480
  /*showSpinner*/
4444
- e[12] && jt(e)
4481
+ e[12] && Zt(e)
4445
4482
  ), s = (
4446
4483
  /*showMethodsList*/
4447
4484
  (e[9] || /*desktopView*/
4448
- e[11]) && Vt(e)
4485
+ e[11]) && Jt(e)
4449
4486
  ), a = (
4450
4487
  /*errorMessage*/
4451
- e[10] && zt(e)
4488
+ e[10] && Kt(e)
4452
4489
  );
4453
4490
  return {
4454
4491
  c() {
4455
- i && i.c(), t = te(), s && s.c(), r = te(), a && a.c(), n = Nr();
4492
+ i && i.c(), t = ne(), s && s.c(), n = ne(), a && a.c(), r = Wn();
4456
4493
  },
4457
4494
  m(o, l) {
4458
- i && i.m(o, l), le(o, t, l), s && s.m(o, l), le(o, r, l), a && a.m(o, l), le(o, n, l);
4495
+ i && i.m(o, l), he(o, t, l), s && s.m(o, l), he(o, n, l), a && a.m(o, l), he(o, r, l);
4459
4496
  },
4460
4497
  p(o, l) {
4461
4498
  /*showSpinner*/
4462
- o[12] ? i ? i.p(o, l) : (i = jt(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), /*showMethodsList*/
4499
+ o[12] ? i ? i.p(o, l) : (i = Zt(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), /*showMethodsList*/
4463
4500
  o[9] || /*desktopView*/
4464
- o[11] ? s ? s.p(o, l) : (s = Vt(o), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*errorMessage*/
4465
- o[10] ? a ? a.p(o, l) : (a = zt(o), a.c(), a.m(n.parentNode, n)) : a && (a.d(1), a = null);
4501
+ o[11] ? s ? s.p(o, l) : (s = Jt(o), s.c(), s.m(n.parentNode, n)) : s && (s.d(1), s = null), /*errorMessage*/
4502
+ o[10] ? a ? a.p(o, l) : (a = Kt(o), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
4466
4503
  },
4467
- i: ne,
4468
- o: ne,
4504
+ i: ie,
4505
+ o: ie,
4469
4506
  d(o) {
4470
- o && (oe(t), oe(r), oe(n)), i && i.d(o), s && s.d(o), a && a.d(o);
4507
+ o && (ae(t), ae(n), ae(r)), i && i.d(o), s && s.d(o), a && a.d(o);
4471
4508
  }
4472
4509
  };
4473
4510
  }
4474
- const Ji = () => {
4511
+ const as = () => {
4475
4512
  };
4476
- function Qi(e, t, r) {
4477
- let n;
4478
- Ar(e, ji, (m) => r(13, n = m)), Ft.extend(zi);
4479
- let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: a } = t, { session: o } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: c } = t, { translationurl: p = "" } = t, { clientstyling: x = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, M = [], P, I, A = "", R = [], N = !0, F = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", ee, V = !0, C = !1;
4513
+ function us(e, t, n) {
4514
+ let r;
4515
+ Fn(e, es, (m) => n(13, r = m)), zt.extend(is);
4516
+ let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: a } = t, { session: o } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: c } = t, { translationurl: p = "" } = t, { clientstyling: E = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, H = [], P, I, A = "", R = [], N = !0, F = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", ee, X = !0, C = !1;
4480
4517
  var T;
4481
4518
  (function(m) {
4482
4519
  m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
4483
- })(T || (T = {})), Ur();
4484
- const ie = () => {
4520
+ })(T || (T = {})), Qn();
4521
+ const se = () => {
4485
4522
  let m = p;
4486
4523
  if (m)
4487
4524
  return fetch(m).then(($) => $.json()).then(($) => {
4488
- Object.keys($).forEach((Y) => {
4489
- Ut(Y, $[Y]);
4525
+ Object.keys($).forEach((Z) => {
4526
+ Xt(Z, $[Z]);
4490
4527
  });
4491
4528
  }).catch(($) => {
4492
4529
  console.log($);
4493
4530
  });
4494
4531
  };
4495
- Object.keys(Gt).forEach((m) => {
4496
- Ut(m, Gt[m]);
4532
+ Object.keys(Wt).forEach((m) => {
4533
+ Xt(m, Wt[m]);
4497
4534
  });
4498
- const me = () => {
4499
- Vi(i);
4535
+ const de = () => {
4536
+ ts(i);
4500
4537
  }, v = () => {
4501
- r(12, C = !0);
4538
+ n(12, C = !0);
4502
4539
  const m = new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`), $ = new Headers();
4503
- $.append("accept", "application/json"), $.append("Content-Type", "application/json"), $.append("X-Client-Request-Timestamp", Ft.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4504
- const Y = {
4540
+ $.append("accept", "application/json"), $.append("Content-Type", "application/json"), $.append("X-Client-Request-Timestamp", zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4541
+ const Z = {
4505
4542
  method: "POST",
4506
4543
  headers: $,
4507
4544
  body: JSON.stringify({
@@ -4510,41 +4547,40 @@ function Qi(e, t, r) {
4510
4547
  Tags: { UserAgent: window.navigator.userAgent }
4511
4548
  })
4512
4549
  };
4513
- fetch(m, Y).then((Z) => Z.json()).then((Z) => {
4514
- if (Z.error) {
4515
- r(10, G = Z.error);
4550
+ fetch(m, Z).then((j) => j.json()).then((j) => {
4551
+ var be;
4552
+ if (j.error) {
4553
+ n(10, G = j.error);
4516
4554
  return;
4517
4555
  }
4518
- if (Z.ResponseCode !== T.Success) {
4519
- ee = Z.ResponseCode, d();
4556
+ if (j.ResponseCode !== T.Success) {
4557
+ ee = j.ResponseCode, d();
4520
4558
  return;
4521
4559
  }
4522
- M = Z.PaymentMethods?.Ordering ? g(Z) : f(Z), r(7, A = c && +c > 0 && M.length > +c ? n("showAll") : ""), r(8, R = A ? M.slice(0, +c) : M), window.postMessage(
4560
+ H = (be = j.PaymentMethods) != null && be.Ordering ? g(j) : f(j), n(7, A = c && +c > 0 && H.length > +c ? r("showAll") : ""), n(8, R = A ? H.slice(0, +c) : H), window.postMessage(
4523
4561
  {
4524
4562
  type: "StartSessionCountdown",
4525
- paymentMethodName: M[0].Name,
4526
- xPaymentSessionToken: Z.XPaymentSessionToken
4563
+ paymentMethodName: H[0].Name,
4564
+ xPaymentSessionToken: j.XPaymentSessionToken
4527
4565
  },
4528
4566
  window.location.href
4529
4567
  );
4530
- }).finally(() => r(12, C = !1));
4568
+ }).finally(() => n(12, C = !1));
4531
4569
  }, g = (m) => {
4532
4570
  const $ = [];
4533
- return m.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((Y) => {
4534
- const Z = m.PaymentMethods.PaymentMethods.find((ze) => ze.Name === Y);
4535
- if (Z) {
4536
- const ze = Z?.Logos.find((Ye) => Ye.LogoType === "Desktop") || {}, Hr = Z?.Logos.find((Ye) => Ye.LogoType === "Mobile") || {}, vt = V ? ze : Hr;
4537
- $.push({
4538
- ...Z,
4539
- LogoUrl: vt.LogoUrl ? `https:${vt.LogoUrl}` : ""
4540
- });
4571
+ return m.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((Z) => {
4572
+ const j = m.PaymentMethods.PaymentMethods.find((be) => be.Name === Z);
4573
+ if (j) {
4574
+ const be = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Desktop")) || {}, Nn = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Mobile")) || {}, wt = X ? be : Nn;
4575
+ $.push(Re(De({}, j), {
4576
+ LogoUrl: wt.LogoUrl ? `https:${wt.LogoUrl}` : ""
4577
+ }));
4541
4578
  }
4542
4579
  }), $;
4543
- }, f = (m) => m.PaymentMethods.PaymentMethods.map(($) => ({
4544
- ...$,
4580
+ }, f = (m) => m.PaymentMethods.PaymentMethods.map(($) => Re(De({}, $), {
4545
4581
  LogoUrl: $.Logos && $.Logos.length && $.Logos[0].LogoUrl ? `https:${$.Logos[0].LogoUrl}` : ""
4546
4582
  })), y = (m) => {
4547
- r(6, I = m.Name), window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
4583
+ n(6, I = m.Name), window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
4548
4584
  "selectPayMeth",
4549
4585
  {
4550
4586
  detail: m,
@@ -4561,25 +4597,25 @@ function Qi(e, t, r) {
4561
4597
  },
4562
4598
  window.location.href
4563
4599
  );
4564
- }, E = () => {
4565
- r(11, V = b === "false");
4566
4600
  }, _ = () => {
4567
- R == M ? U() : S();
4601
+ n(11, X = b === "false");
4602
+ }, x = () => {
4603
+ R == H ? U() : S();
4568
4604
  }, S = () => {
4569
- r(8, R = M), r(7, A = n("showLess"));
4605
+ n(8, R = H), n(7, A = r("showLess"));
4570
4606
  }, U = () => {
4571
- r(8, R = M.slice(0, +c)), I && !R.find((m) => m.Name === I) && R.splice(0, 0, M.find((m) => m.Name === I)), r(7, A = n("showAll"));
4607
+ n(8, R = H.slice(0, +c)), I && !R.find((m) => m.Name === I) && R.splice(0, 0, H.find((m) => m.Name === I)), n(7, A = r("showAll"));
4572
4608
  }, k = () => {
4573
- r(9, N = !0);
4574
- }, j = (m) => {
4575
- r(9, N = !m.hideMethodsList);
4609
+ n(9, N = !0);
4610
+ }, V = (m) => {
4611
+ n(9, N = !m.hideMethodsList);
4576
4612
  }, q = () => {
4577
4613
  let m = document.createElement("style");
4578
- m.innerHTML = x, P.appendChild(m);
4579
- }, he = () => {
4614
+ m.innerHTML = E, P.appendChild(m);
4615
+ }, fe = () => {
4580
4616
  let m = new URL(w), $ = document.createElement("style");
4581
- fetch(m.href).then((Y) => Y.text()).then((Y) => {
4582
- $.innerHTML = Y, setTimeout(
4617
+ fetch(m.href).then((Z) => Z.text()).then((Z) => {
4618
+ $.innerHTML = Z, setTimeout(
4583
4619
  () => {
4584
4620
  P.appendChild($);
4585
4621
  },
@@ -4591,39 +4627,39 @@ function Qi(e, t, r) {
4591
4627
  );
4592
4628
  });
4593
4629
  };
4594
- Rr(() => (window.addEventListener("message", se, !1), () => {
4595
- window.removeEventListener("message", se, !1);
4630
+ Jn(() => (window.addEventListener("message", oe, !1), () => {
4631
+ window.removeEventListener("message", oe, !1);
4596
4632
  }));
4597
- const se = (m) => {
4633
+ const oe = (m) => {
4598
4634
  switch (m.data.type) {
4599
4635
  case "BackToMethodList":
4600
4636
  k();
4601
4637
  break;
4602
4638
  case "HideMethodsList":
4603
- j(m.data.details);
4639
+ V(m.data.details);
4604
4640
  break;
4605
4641
  }
4606
- }, de = (m) => y(m), ae = () => _();
4607
- function X(m) {
4608
- nt[m ? "unshift" : "push"](() => {
4609
- P = m, r(5, P);
4642
+ }, ge = (m) => y(m), ue = () => x();
4643
+ function W(m) {
4644
+ at[m ? "unshift" : "push"](() => {
4645
+ P = m, n(5, P);
4610
4646
  });
4611
4647
  }
4612
4648
  return e.$$set = (m) => {
4613
- "lang" in m && r(0, i = m.lang), "local" in m && r(17, s = m.local), "endpoint" in m && r(18, a = m.endpoint), "session" in m && r(19, o = m.session), "customerid" in m && r(20, l = m.customerid), "assetsurl" in m && r(1, u = m.assetsurl), "currency" in m && r(21, h = m.currency), "numberofmethodsshown" in m && r(22, c = m.numberofmethodsshown), "translationurl" in m && r(2, p = m.translationurl), "clientstyling" in m && r(3, x = m.clientstyling), "clientstylingurl" in m && r(4, w = m.clientstylingurl), "ismobileview" in m && r(23, b = m.ismobileview);
4649
+ "lang" in m && n(0, i = m.lang), "local" in m && n(17, s = m.local), "endpoint" in m && n(18, a = m.endpoint), "session" in m && n(19, o = m.session), "customerid" in m && n(20, l = m.customerid), "assetsurl" in m && n(1, u = m.assetsurl), "currency" in m && n(21, h = m.currency), "numberofmethodsshown" in m && n(22, c = m.numberofmethodsshown), "translationurl" in m && n(2, p = m.translationurl), "clientstyling" in m && n(3, E = m.clientstyling), "clientstylingurl" in m && n(4, w = m.clientstylingurl), "ismobileview" in m && n(23, b = m.ismobileview);
4614
4650
  }, e.$$.update = () => {
4615
4651
  e.$$.dirty[0] & /*endpoint, session, customerid*/
4616
4652
  1835008 && a && o && l && v(), e.$$.dirty[0] & /*lang*/
4617
- 1 && i && me(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4618
- 40 && x && P && q(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4619
- 48 && w && P && he(), e.$$.dirty[0] & /*ismobileview*/
4620
- 8388608 && b && E(), e.$$.dirty[0] & /*lang, translationurl*/
4621
- 5 && i && p && ie();
4653
+ 1 && i && de(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4654
+ 40 && E && P && q(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4655
+ 48 && w && P && fe(), e.$$.dirty[0] & /*ismobileview*/
4656
+ 8388608 && b && _(), e.$$.dirty[0] & /*lang, translationurl*/
4657
+ 5 && i && p && se();
4622
4658
  }, [
4623
4659
  i,
4624
4660
  u,
4625
4661
  p,
4626
- x,
4662
+ E,
4627
4663
  w,
4628
4664
  P,
4629
4665
  I,
@@ -4631,12 +4667,12 @@ function Qi(e, t, r) {
4631
4667
  R,
4632
4668
  N,
4633
4669
  G,
4634
- V,
4670
+ X,
4635
4671
  C,
4636
- n,
4672
+ r,
4637
4673
  F,
4638
4674
  y,
4639
- _,
4675
+ x,
4640
4676
  s,
4641
4677
  a,
4642
4678
  o,
@@ -4644,19 +4680,19 @@ function Qi(e, t, r) {
4644
4680
  h,
4645
4681
  c,
4646
4682
  b,
4647
- de,
4648
- ae,
4649
- X
4683
+ ge,
4684
+ ue,
4685
+ W
4650
4686
  ];
4651
4687
  }
4652
- class qi extends Qr {
4688
+ class ls extends lr {
4653
4689
  constructor(t) {
4654
- super(), Zr(
4690
+ super(), ar(
4655
4691
  this,
4656
4692
  t,
4657
- Qi,
4658
- Zi,
4659
- Zt,
4693
+ us,
4694
+ os,
4695
+ tn,
4660
4696
  {
4661
4697
  lang: 0,
4662
4698
  local: 17,
@@ -4671,7 +4707,7 @@ class qi extends Qr {
4671
4707
  clientstylingurl: 4,
4672
4708
  ismobileview: 23
4673
4709
  },
4674
- Yi,
4710
+ ss,
4675
4711
  [-1, -1]
4676
4712
  );
4677
4713
  }
@@ -4748,7 +4784,7 @@ class qi extends Qr {
4748
4784
  this.$$set({ ismobileview: t }), K();
4749
4785
  }
4750
4786
  }
4751
- Jr(qi, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
4787
+ ur(ls, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
4752
4788
  export {
4753
- qi as C
4789
+ ls as default
4754
4790
  };