@everymatrix/casino-categories-slider 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var Mr = Object.defineProperty, Rr = Object.defineProperties;
2
- var Gr = Object.getOwnPropertyDescriptors;
3
- var ft = Object.getOwnPropertySymbols;
4
- var Ur = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable;
5
- var Me = (e, t, r) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
1
+ var Fr = Object.defineProperty, $r = Object.defineProperties;
2
+ var jr = Object.getOwnPropertyDescriptors;
3
+ var pt = Object.getOwnPropertySymbols;
4
+ var kr = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable;
5
+ var Me = (e, t, r) => t in e ? Fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- Ur.call(t, r) && Me(e, r, t[r]);
8
- if (ft)
9
- for (var r of ft(t))
10
- Dr.call(t, r) && Me(e, r, t[r]);
7
+ kr.call(t, r) && Me(e, r, t[r]);
8
+ if (pt)
9
+ for (var r of pt(t))
10
+ Vr.call(t, r) && Me(e, r, t[r]);
11
11
  return e;
12
- }, dt = (e, t) => Rr(e, Gr(t));
13
- var M = (e, t, r) => Me(e, typeof t != "symbol" ? t + "" : t, r);
14
- var bt = (e, t, r) => new Promise((n, i) => {
12
+ }, yt = (e, t) => $r(e, jr(t));
13
+ var M = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var vt = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (h) => {
16
16
  try {
17
17
  a(r.next(h));
@@ -29,29 +29,29 @@ var bt = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function P() {
31
31
  }
32
- function Ft(e) {
32
+ function Vt(e) {
33
33
  return e();
34
34
  }
35
- function pt() {
35
+ function Et() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ne(e) {
39
- e.forEach(Ft);
39
+ e.forEach(Vt);
40
40
  }
41
41
  function He(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function $t(e, t) {
44
+ function Xt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let ge;
48
- function Ss(e, t) {
48
+ function As(e, t) {
49
49
  return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
50
50
  }
51
- function Fr(e) {
51
+ function Xr(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function jt(e, ...t) {
54
+ function Wt(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
@@ -60,24 +60,25 @@ function jt(e, ...t) {
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function $r(e, t, r) {
64
- e.$$.on_destroy.push(jt(t, r));
63
+ function Wr(e, t, r) {
64
+ e.$$.on_destroy.push(Wt(t, r));
65
65
  }
66
- function jr(e) {
66
+ function zr(e) {
67
67
  return e && He(e.destroy) ? e.destroy : P;
68
68
  }
69
- function kt(e, t) {
69
+ function zt(e, t) {
70
70
  e.appendChild(t);
71
71
  }
72
- function kr(e, t, r) {
73
- const n = Vr(e);
72
+ function Zr(e, t, r) {
73
+ const n = Qr(e);
74
74
  if (!n.getElementById(t)) {
75
75
  const i = V("style");
76
- i.id = t, i.textContent = r, Xr(n, i);
76
+ i.id = t, i.textContent = r, Yr(n, i);
77
77
  }
78
78
  }
79
- function Vr(e) {
80
- if (!e) return document;
79
+ function Qr(e) {
80
+ if (!e)
81
+ return document;
81
82
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
82
83
  return t && /** @type {ShadowRoot} */
83
84
  t.host ? (
@@ -85,8 +86,8 @@ function Vr(e) {
85
86
  t
86
87
  ) : e.ownerDocument;
87
88
  }
88
- function Xr(e, t) {
89
- return kt(
89
+ function Yr(e, t) {
90
+ return zt(
90
91
  /** @type {Document} */
91
92
  e.head || e,
92
93
  t
@@ -98,23 +99,23 @@ function fe(e, t, r) {
98
99
  function ie(e) {
99
100
  e.parentNode && e.parentNode.removeChild(e);
100
101
  }
101
- function ws(e, t) {
102
+ function Bs(e, t) {
102
103
  for (let r = 0; r < e.length; r += 1)
103
104
  e[r] && e[r].d(t);
104
105
  }
105
106
  function V(e) {
106
107
  return document.createElement(e);
107
108
  }
108
- function Vt(e) {
109
+ function Zt(e) {
109
110
  return document.createTextNode(e);
110
111
  }
111
- function Ts() {
112
- return Vt(" ");
112
+ function Ps() {
113
+ return Zt(" ");
113
114
  }
114
- function Hs() {
115
- return Vt("");
115
+ function Ns() {
116
+ return Zt("");
116
117
  }
117
- function As(e, t, r, n) {
118
+ function Os(e, t, r, n) {
118
119
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
119
120
  }
120
121
  function me(e, t, r) {
@@ -124,14 +125,14 @@ function E(e, t, r) {
124
125
  const n = t.toLowerCase();
125
126
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : me(e, t, r);
126
127
  }
127
- function Wr(e) {
128
+ function qr(e) {
128
129
  return Array.from(e.childNodes);
129
130
  }
130
- function Bs(e, t) {
131
+ function Ls(e, t) {
131
132
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
132
133
  t);
133
134
  }
134
- function zr(e) {
135
+ function Jr(e) {
135
136
  const t = {};
136
137
  return e.childNodes.forEach(
137
138
  /** @param {Element} node */
@@ -144,24 +145,25 @@ let he;
144
145
  function ue(e) {
145
146
  he = e;
146
147
  }
147
- function Zr() {
148
- if (!he) throw new Error("Function called outside component initialization");
148
+ function Kr() {
149
+ if (!he)
150
+ throw new Error("Function called outside component initialization");
149
151
  return he;
150
152
  }
151
- function Qr(e) {
152
- Zr().$$.on_mount.push(e);
153
+ function en(e) {
154
+ Kr().$$.on_mount.push(e);
153
155
  }
154
- const Y = [], ke = [];
156
+ const Y = [], Ve = [];
155
157
  let q = [];
156
- const gt = [], Xt = /* @__PURE__ */ Promise.resolve();
157
- let Ve = !1;
158
- function Wt() {
159
- Ve || (Ve = !0, Xt.then(S));
158
+ const _t = [], Qt = /* @__PURE__ */ Promise.resolve();
159
+ let Xe = !1;
160
+ function Yt() {
161
+ Xe || (Xe = !0, Qt.then(S));
160
162
  }
161
- function Yr() {
162
- return Wt(), Xt;
163
+ function tn() {
164
+ return Yt(), Qt;
163
165
  }
164
- function Xe(e) {
166
+ function We(e) {
165
167
  q.push(e);
166
168
  }
167
169
  const Re = /* @__PURE__ */ new Set();
@@ -174,47 +176,49 @@ function S() {
174
176
  try {
175
177
  for (; Z < Y.length; ) {
176
178
  const t = Y[Z];
177
- Z++, ue(t), qr(t.$$);
179
+ Z++, ue(t), rn(t.$$);
178
180
  }
179
181
  } catch (t) {
180
182
  throw Y.length = 0, Z = 0, t;
181
183
  }
182
- for (ue(null), Y.length = 0, Z = 0; ke.length; ) ke.pop()();
184
+ for (ue(null), Y.length = 0, Z = 0; Ve.length; )
185
+ Ve.pop()();
183
186
  for (let t = 0; t < q.length; t += 1) {
184
187
  const r = q[t];
185
188
  Re.has(r) || (Re.add(r), r());
186
189
  }
187
190
  q.length = 0;
188
191
  } while (Y.length);
189
- for (; gt.length; )
190
- gt.pop()();
191
- Ve = !1, Re.clear(), ue(e);
192
+ for (; _t.length; )
193
+ _t.pop()();
194
+ Xe = !1, Re.clear(), ue(e);
192
195
  }
193
- function qr(e) {
196
+ function rn(e) {
194
197
  if (e.fragment !== null) {
195
198
  e.update(), ne(e.before_update);
196
199
  const t = e.dirty;
197
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
200
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
198
201
  }
199
202
  }
200
- function Jr(e) {
203
+ function nn(e) {
201
204
  const t = [], r = [];
202
205
  q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
203
206
  }
204
- const Kr = /* @__PURE__ */ new Set();
205
- function zt(e, t) {
206
- e && e.i && (Kr.delete(e), e.i(t));
207
+ const sn = /* @__PURE__ */ new Set();
208
+ function qt(e, t) {
209
+ e && e.i && (sn.delete(e), e.i(t));
207
210
  }
208
- function Ps(e) {
211
+ function Is(e) {
209
212
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
210
213
  }
211
- function Ns(e, t) {
214
+ function Cs(e, t) {
212
215
  e.d(1), t.delete(e.key);
213
216
  }
214
- function Os(e, t, r, n, i, s, o, a, h, u, l, m) {
217
+ function Ms(e, t, r, n, i, s, o, a, h, u, l, m) {
215
218
  let c = e.length, d = s.length, b = c;
216
219
  const y = {};
217
- for (; b--; ) y[e[b].key] = b;
220
+ for (; b--; )
221
+ y[e[b].key] = b;
218
222
  const T = [], C = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), w = [];
219
223
  for (b = d; b--; ) {
220
224
  const _ = m(i, s, b), A = r(_);
@@ -223,7 +227,7 @@ function Os(e, t, r, n, i, s, o, a, h, u, l, m) {
223
227
  }
224
228
  const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
225
229
  function R(_) {
226
- zt(_, 1), _.m(a, l), o.set(_.key, _), l = _.first, d--;
230
+ qt(_, 1), _.m(a, l), o.set(_.key, _), l = _.first, d--;
227
231
  }
228
232
  for (; c && d; ) {
229
233
  const _ = T[d - 1], A = e[c - 1], I = _.key, $ = A.key;
@@ -233,24 +237,25 @@ function Os(e, t, r, n, i, s, o, a, h, u, l, m) {
233
237
  const _ = e[c];
234
238
  C.has(_.key) || h(_, o);
235
239
  }
236
- for (; d; ) R(T[d - 1]);
240
+ for (; d; )
241
+ R(T[d - 1]);
237
242
  return ne(w), T;
238
243
  }
239
- function en(e, t, r) {
244
+ function on(e, t, r) {
240
245
  const { fragment: n, after_update: i } = e.$$;
241
- n && n.m(t, r), Xe(() => {
242
- const s = e.$$.on_mount.map(Ft).filter(He);
246
+ n && n.m(t, r), We(() => {
247
+ const s = e.$$.on_mount.map(Vt).filter(He);
243
248
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ne(s), e.$$.on_mount = [];
244
- }), i.forEach(Xe);
249
+ }), i.forEach(We);
245
250
  }
246
- function tn(e, t) {
251
+ function an(e, t) {
247
252
  const r = e.$$;
248
- r.fragment !== null && (Jr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
253
+ r.fragment !== null && (nn(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
249
254
  }
250
- function rn(e, t) {
251
- e.$$.dirty[0] === -1 && (Y.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
255
+ function un(e, t) {
256
+ e.$$.dirty[0] === -1 && (Y.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
252
257
  }
253
- function nn(e, t, r, n, i, s, o = null, a = [-1]) {
258
+ function hn(e, t, r, n, i, s, o = null, a = [-1]) {
254
259
  const h = he;
255
260
  ue(e);
256
261
  const u = e.$$ = {
@@ -260,7 +265,7 @@ function nn(e, t, r, n, i, s, o = null, a = [-1]) {
260
265
  props: s,
261
266
  update: P,
262
267
  not_equal: i,
263
- bound: pt(),
268
+ bound: Et(),
264
269
  // lifecycle
265
270
  on_mount: [],
266
271
  on_destroy: [],
@@ -269,7 +274,7 @@ function nn(e, t, r, n, i, s, o = null, a = [-1]) {
269
274
  after_update: [],
270
275
  context: new Map(t.context || (h ? h.$$.context : [])),
271
276
  // everything else
272
- callbacks: pt(),
277
+ callbacks: Et(),
273
278
  dirty: a,
274
279
  skip_bound: !1,
275
280
  root: t.target || h.$$.root
@@ -278,19 +283,19 @@ function nn(e, t, r, n, i, s, o = null, a = [-1]) {
278
283
  let l = !1;
279
284
  if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
280
285
  const b = d.length ? d[0] : c;
281
- return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && rn(e, m)), c;
286
+ return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && un(e, m)), c;
282
287
  }) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
283
288
  if (t.hydrate) {
284
- const m = Wr(t.target);
289
+ const m = qr(t.target);
285
290
  u.fragment && u.fragment.l(m), m.forEach(ie);
286
291
  } else
287
292
  u.fragment && u.fragment.c();
288
- t.intro && zt(e.$$.fragment), en(e, t.target, t.anchor), S();
293
+ t.intro && qt(e.$$.fragment), on(e, t.target, t.anchor), S();
289
294
  }
290
295
  ue(h);
291
296
  }
292
- let Zt;
293
- typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
297
+ let Jt;
298
+ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
294
299
  constructor(t, r, n) {
295
300
  super();
296
301
  /** The Svelte component constructor */
@@ -327,7 +332,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
327
332
  }
328
333
  }
329
334
  connectedCallback() {
330
- return bt(this, null, function* () {
335
+ return vt(this, null, function* () {
331
336
  if (this.$$cn = !0, !this.$$c) {
332
337
  let t = function(s) {
333
338
  return () => {
@@ -351,7 +356,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
351
356
  };
352
357
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
353
358
  return;
354
- const r = {}, n = zr(this);
359
+ const r = {}, n = Jr(this);
355
360
  for (const s of this.$$s)
356
361
  s in n && (r[s] = [t(s)]);
357
362
  for (const s of this.attributes) {
@@ -362,7 +367,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
362
367
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
363
368
  this.$$c = new this.$$ctor({
364
369
  target: this.shadowRoot || this,
365
- props: dt(mt({}, this.$$d), {
370
+ props: yt(gt({}, this.$$d), {
366
371
  $$slots: r,
367
372
  $$scope: {
368
373
  ctx: []
@@ -440,8 +445,8 @@ function Ee(e, t, r, n) {
440
445
  return t;
441
446
  }
442
447
  }
443
- function sn(e, t, r, n, i, s) {
444
- let o = class extends Zt {
448
+ function ln(e, t, r, n, i, s) {
449
+ let o = class extends Jt {
445
450
  constructor() {
446
451
  super(e, r, i), this.$$p_d = t;
447
452
  }
@@ -471,7 +476,7 @@ function sn(e, t, r, n, i, s) {
471
476
  }), e.element = /** @type {any} */
472
477
  o, o;
473
478
  }
474
- class on {
479
+ class cn {
475
480
  constructor() {
476
481
  /**
477
482
  * ### PRIVATE API
@@ -492,7 +497,7 @@ class on {
492
497
  }
493
498
  /** @returns {void} */
494
499
  $destroy() {
495
- tn(this, 1), this.$destroy = P;
500
+ an(this, 1), this.$destroy = P;
496
501
  }
497
502
  /**
498
503
  * @template {Extract<keyof Events, string>} K
@@ -514,22 +519,37 @@ class on {
514
519
  * @returns {void}
515
520
  */
516
521
  $set(t) {
517
- this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
522
+ this.$$set && !Xr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
518
523
  }
519
524
  }
520
- const an = "4";
521
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(an);
522
- var We = function(e, t) {
523
- return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
525
+ const fn = "4";
526
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
527
+ /*! *****************************************************************************
528
+ Copyright (c) Microsoft Corporation.
529
+
530
+ Permission to use, copy, modify, and/or distribute this software for any
531
+ purpose with or without fee is hereby granted.
532
+
533
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
534
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
535
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
536
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
537
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
538
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
539
+ PERFORMANCE OF THIS SOFTWARE.
540
+ ***************************************************************************** */
541
+ var ze = function(e, t) {
542
+ return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
524
543
  r.__proto__ = n;
525
544
  } || function(r, n) {
526
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
527
- }, We(e, t);
545
+ for (var i in n)
546
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
547
+ }, ze(e, t);
528
548
  };
529
549
  function D(e, t) {
530
550
  if (typeof t != "function" && t !== null)
531
551
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
532
- We(e, t);
552
+ ze(e, t);
533
553
  function r() {
534
554
  this.constructor = e;
535
555
  }
@@ -539,61 +559,69 @@ var v = function() {
539
559
  return v = Object.assign || function(t) {
540
560
  for (var r, n = 1, i = arguments.length; n < i; n++) {
541
561
  r = arguments[n];
542
- for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
562
+ for (var s in r)
563
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
543
564
  }
544
565
  return t;
545
566
  }, v.apply(this, arguments);
546
567
  };
547
- function un(e, t) {
568
+ function mn(e, t) {
548
569
  var r = {};
549
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
570
+ for (var n in e)
571
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
550
572
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
551
573
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
552
574
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
553
575
  return r;
554
576
  }
555
- function ze(e) {
577
+ function Ze(e) {
556
578
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
557
- if (r) return r.call(e);
558
- if (e && typeof e.length == "number") return {
559
- next: function() {
560
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
561
- }
562
- };
579
+ if (r)
580
+ return r.call(e);
581
+ if (e && typeof e.length == "number")
582
+ return {
583
+ next: function() {
584
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
585
+ }
586
+ };
563
587
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
564
588
  }
565
- function Ze(e, t) {
589
+ function Qe(e, t) {
566
590
  var r = typeof Symbol == "function" && e[Symbol.iterator];
567
- if (!r) return e;
591
+ if (!r)
592
+ return e;
568
593
  var n = r.call(e), i, s = [], o;
569
594
  try {
570
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
595
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
596
+ s.push(i.value);
571
597
  } catch (a) {
572
598
  o = { error: a };
573
599
  } finally {
574
600
  try {
575
601
  i && !i.done && (r = n.return) && r.call(n);
576
602
  } finally {
577
- if (o) throw o.error;
603
+ if (o)
604
+ throw o.error;
578
605
  }
579
606
  }
580
607
  return s;
581
608
  }
582
609
  function J(e, t, r) {
583
- if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
584
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
585
- return e.concat(s || Array.prototype.slice.call(t));
610
+ if (r || arguments.length === 2)
611
+ for (var n = 0, i = t.length, s; n < i; n++)
612
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
613
+ return e.concat(s || t);
586
614
  }
587
615
  function U(e) {
588
616
  return typeof e == "function";
589
617
  }
590
- function Qt(e) {
618
+ function Kt(e) {
591
619
  var t = function(n) {
592
620
  Error.call(n), n.stack = new Error().stack;
593
621
  }, r = e(t);
594
622
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
595
623
  }
596
- var Ge = Qt(function(e) {
624
+ var Ge = Kt(function(e) {
597
625
  return function(r) {
598
626
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
599
627
  ` + r.map(function(n, i) {
@@ -602,7 +630,7 @@ var Ge = Qt(function(e) {
602
630
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
603
631
  };
604
632
  });
605
- function Qe(e, t) {
633
+ function Ye(e, t) {
606
634
  if (e) {
607
635
  var r = e.indexOf(t);
608
636
  0 <= r && e.splice(r, 1);
@@ -620,7 +648,7 @@ var Ae = function() {
620
648
  if (o)
621
649
  if (this._parentage = null, Array.isArray(o))
622
650
  try {
623
- for (var a = ze(o), h = a.next(); !h.done; h = a.next()) {
651
+ for (var a = Ze(o), h = a.next(); !h.done; h = a.next()) {
624
652
  var u = h.value;
625
653
  u.remove(this);
626
654
  }
@@ -630,7 +658,8 @@ var Ae = function() {
630
658
  try {
631
659
  h && !h.done && (r = a.return) && r.call(a);
632
660
  } finally {
633
- if (t) throw t.error;
661
+ if (t)
662
+ throw t.error;
634
663
  }
635
664
  }
636
665
  else
@@ -646,12 +675,12 @@ var Ae = function() {
646
675
  if (m) {
647
676
  this._finalizers = null;
648
677
  try {
649
- for (var c = ze(m), d = c.next(); !d.done; d = c.next()) {
678
+ for (var c = Ze(m), d = c.next(); !d.done; d = c.next()) {
650
679
  var b = d.value;
651
680
  try {
652
- yt(b);
681
+ xt(b);
653
682
  } catch (y) {
654
- s = s != null ? s : [], y instanceof Ge ? s = J(J([], Ze(s)), Ze(y.errors)) : s.push(y);
683
+ s = s != null ? s : [], y instanceof Ge ? s = J(J([], Qe(s)), Qe(y.errors)) : s.push(y);
655
684
  }
656
685
  }
657
686
  } catch (y) {
@@ -660,7 +689,8 @@ var Ae = function() {
660
689
  try {
661
690
  d && !d.done && (i = c.return) && i.call(c);
662
691
  } finally {
663
- if (n) throw n.error;
692
+ if (n)
693
+ throw n.error;
664
694
  }
665
695
  }
666
696
  }
@@ -671,7 +701,7 @@ var Ae = function() {
671
701
  var r;
672
702
  if (t && t !== this)
673
703
  if (this.closed)
674
- yt(t);
704
+ xt(t);
675
705
  else {
676
706
  if (t instanceof e) {
677
707
  if (t.closed || t._hasParent(this))
@@ -688,52 +718,56 @@ var Ae = function() {
688
718
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
689
719
  }, e.prototype._removeParent = function(t) {
690
720
  var r = this._parentage;
691
- r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
721
+ r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
692
722
  }, e.prototype.remove = function(t) {
693
723
  var r = this._finalizers;
694
- r && Qe(r, t), t instanceof e && t._removeParent(this);
724
+ r && Ye(r, t), t instanceof e && t._removeParent(this);
695
725
  }, e.EMPTY = function() {
696
726
  var t = new e();
697
727
  return t.closed = !0, t;
698
728
  }(), e;
699
- }(), Yt = Ae.EMPTY;
700
- function qt(e) {
729
+ }(), er = Ae.EMPTY;
730
+ function tr(e) {
701
731
  return e instanceof Ae || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
702
732
  }
703
- function yt(e) {
733
+ function xt(e) {
704
734
  U(e) ? e() : e.unsubscribe();
705
735
  }
706
- var hn = {
707
- Promise: void 0
708
- }, ln = {
736
+ var rr = {
737
+ onUnhandledError: null,
738
+ onStoppedNotification: null,
739
+ Promise: void 0,
740
+ useDeprecatedSynchronousErrorHandling: !1,
741
+ useDeprecatedNextContext: !1
742
+ }, dn = {
709
743
  setTimeout: function(e, t) {
710
744
  for (var r = [], n = 2; n < arguments.length; n++)
711
745
  r[n - 2] = arguments[n];
712
- return setTimeout.apply(void 0, J([e, t], Ze(r)));
746
+ return setTimeout.apply(void 0, J([e, t], Qe(r)));
713
747
  },
714
748
  clearTimeout: function(e) {
715
749
  return clearTimeout(e);
716
750
  },
717
751
  delegate: void 0
718
752
  };
719
- function cn(e) {
720
- ln.setTimeout(function() {
753
+ function bn(e) {
754
+ dn.setTimeout(function() {
721
755
  throw e;
722
756
  });
723
757
  }
724
- function vt() {
758
+ function St() {
725
759
  }
726
760
  function _e(e) {
727
761
  e();
728
762
  }
729
- var Jt = function(e) {
763
+ var nr = function(e) {
730
764
  D(t, e);
731
765
  function t(r) {
732
766
  var n = e.call(this) || this;
733
- return n.isStopped = !1, r ? (n.destination = r, qt(r) && r.add(n)) : n.destination = dn, n;
767
+ return n.isStopped = !1, r ? (n.destination = r, tr(r) && r.add(n)) : n.destination = vn, n;
734
768
  }
735
769
  return t.create = function(r, n, i) {
736
- return new Ye(r, n, i);
770
+ return new qe(r, n, i);
737
771
  }, t.prototype.next = function(r) {
738
772
  this.isStopped || this._next(r);
739
773
  }, t.prototype.error = function(r) {
@@ -757,7 +791,11 @@ var Jt = function(e) {
757
791
  this.unsubscribe();
758
792
  }
759
793
  }, t;
760
- }(Ae), fn = function() {
794
+ }(Ae), pn = Function.prototype.bind;
795
+ function Ue(e, t) {
796
+ return pn.call(e, t);
797
+ }
798
+ var gn = function() {
761
799
  function e(t) {
762
800
  this.partialObserver = t;
763
801
  }
@@ -788,43 +826,55 @@ var Jt = function(e) {
788
826
  ye(r);
789
827
  }
790
828
  }, e;
791
- }(), Ye = function(e) {
829
+ }(), qe = function(e) {
792
830
  D(t, e);
793
831
  function t(r, n, i) {
794
832
  var s = e.call(this) || this, o;
795
- return U(r) || !r ? o = {
796
- next: r != null ? r : void 0,
797
- error: n != null ? n : void 0,
798
- complete: i != null ? i : void 0
799
- } : o = r, s.destination = new fn(o), s;
833
+ if (U(r) || !r)
834
+ o = {
835
+ next: r != null ? r : void 0,
836
+ error: n != null ? n : void 0,
837
+ complete: i != null ? i : void 0
838
+ };
839
+ else {
840
+ var a;
841
+ s && rr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
842
+ return s.unsubscribe();
843
+ }, o = {
844
+ next: r.next && Ue(r.next, a),
845
+ error: r.error && Ue(r.error, a),
846
+ complete: r.complete && Ue(r.complete, a)
847
+ }) : o = r;
848
+ }
849
+ return s.destination = new gn(o), s;
800
850
  }
801
851
  return t;
802
- }(Jt);
852
+ }(nr);
803
853
  function ye(e) {
804
- cn(e);
854
+ bn(e);
805
855
  }
806
- function mn(e) {
856
+ function yn(e) {
807
857
  throw e;
808
858
  }
809
- var dn = {
859
+ var vn = {
810
860
  closed: !0,
811
- next: vt,
812
- error: mn,
813
- complete: vt
814
- }, bn = function() {
861
+ next: St,
862
+ error: yn,
863
+ complete: St
864
+ }, En = function() {
815
865
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
816
866
  }();
817
- function pn(e) {
867
+ function _n(e) {
818
868
  return e;
819
869
  }
820
- function gn(e) {
821
- return e.length === 0 ? pn : e.length === 1 ? e[0] : function(r) {
870
+ function xn(e) {
871
+ return e.length === 0 ? _n : e.length === 1 ? e[0] : function(r) {
822
872
  return e.reduce(function(n, i) {
823
873
  return i(n);
824
874
  }, r);
825
875
  };
826
876
  }
827
- var Et = function() {
877
+ var wt = function() {
828
878
  function e(t) {
829
879
  t && (this._subscribe = t);
830
880
  }
@@ -832,7 +882,7 @@ var Et = function() {
832
882
  var r = new e();
833
883
  return r.source = this, r.operator = t, r;
834
884
  }, e.prototype.subscribe = function(t, r, n) {
835
- var i = this, s = vn(t) ? t : new Ye(t, r, n);
885
+ var i = this, s = wn(t) ? t : new qe(t, r, n);
836
886
  return _e(function() {
837
887
  var o = i, a = o.operator, h = o.source;
838
888
  s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
@@ -845,8 +895,8 @@ var Et = function() {
845
895
  }
846
896
  }, e.prototype.forEach = function(t, r) {
847
897
  var n = this;
848
- return r = _t(r), new r(function(i, s) {
849
- var o = new Ye({
898
+ return r = Tt(r), new r(function(i, s) {
899
+ var o = new qe({
850
900
  next: function(a) {
851
901
  try {
852
902
  t(a);
@@ -862,15 +912,15 @@ var Et = function() {
862
912
  }, e.prototype._subscribe = function(t) {
863
913
  var r;
864
914
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
865
- }, e.prototype[bn] = function() {
915
+ }, e.prototype[En] = function() {
866
916
  return this;
867
917
  }, e.prototype.pipe = function() {
868
918
  for (var t = [], r = 0; r < arguments.length; r++)
869
919
  t[r] = arguments[r];
870
- return gn(t)(this);
920
+ return xn(t)(this);
871
921
  }, e.prototype.toPromise = function(t) {
872
922
  var r = this;
873
- return t = _t(t), new t(function(n, i) {
923
+ return t = Tt(t), new t(function(n, i) {
874
924
  var s;
875
925
  r.subscribe(function(o) {
876
926
  return s = o;
@@ -884,32 +934,32 @@ var Et = function() {
884
934
  return new e(t);
885
935
  }, e;
886
936
  }();
887
- function _t(e) {
937
+ function Tt(e) {
888
938
  var t;
889
- return (t = e != null ? e : hn.Promise) !== null && t !== void 0 ? t : Promise;
939
+ return (t = e != null ? e : rr.Promise) !== null && t !== void 0 ? t : Promise;
890
940
  }
891
- function yn(e) {
941
+ function Sn(e) {
892
942
  return e && U(e.next) && U(e.error) && U(e.complete);
893
943
  }
894
- function vn(e) {
895
- return e && e instanceof Jt || yn(e) && qt(e);
944
+ function wn(e) {
945
+ return e && e instanceof nr || Sn(e) && tr(e);
896
946
  }
897
- var En = Qt(function(e) {
947
+ var Tn = Kt(function(e) {
898
948
  return function() {
899
949
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
900
950
  };
901
- }), Kt = function(e) {
951
+ }), ir = function(e) {
902
952
  D(t, e);
903
953
  function t() {
904
954
  var r = e.call(this) || this;
905
955
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
906
956
  }
907
957
  return t.prototype.lift = function(r) {
908
- var n = new xt(this, this);
958
+ var n = new Ht(this, this);
909
959
  return n.operator = r, n;
910
960
  }, t.prototype._throwIfClosed = function() {
911
961
  if (this.closed)
912
- throw new En();
962
+ throw new Tn();
913
963
  }, t.prototype.next = function(r) {
914
964
  var n = this;
915
965
  _e(function() {
@@ -917,7 +967,7 @@ var En = Qt(function(e) {
917
967
  if (n._throwIfClosed(), !n.isStopped) {
918
968
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
919
969
  try {
920
- for (var o = ze(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
970
+ for (var o = Ze(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
921
971
  var h = a.value;
922
972
  h.next(r);
923
973
  }
@@ -927,7 +977,8 @@ var En = Qt(function(e) {
927
977
  try {
928
978
  a && !a.done && (s = o.return) && s.call(o);
929
979
  } finally {
930
- if (i) throw i.error;
980
+ if (i)
981
+ throw i.error;
931
982
  }
932
983
  }
933
984
  }
@@ -965,19 +1016,19 @@ var En = Qt(function(e) {
965
1016
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
966
1017
  }, t.prototype._innerSubscribe = function(r) {
967
1018
  var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
968
- return s || o ? Yt : (this.currentObservers = null, a.push(r), new Ae(function() {
969
- n.currentObservers = null, Qe(a, r);
1019
+ return s || o ? er : (this.currentObservers = null, a.push(r), new Ae(function() {
1020
+ n.currentObservers = null, Ye(a, r);
970
1021
  }));
971
1022
  }, t.prototype._checkFinalizedStatuses = function(r) {
972
1023
  var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
973
1024
  i ? r.error(s) : o && r.complete();
974
1025
  }, t.prototype.asObservable = function() {
975
- var r = new Et();
1026
+ var r = new wt();
976
1027
  return r.source = this, r;
977
1028
  }, t.create = function(r, n) {
978
- return new xt(r, n);
1029
+ return new Ht(r, n);
979
1030
  }, t;
980
- }(Et), xt = function(e) {
1031
+ }(wt), Ht = function(e) {
981
1032
  D(t, e);
982
1033
  function t(r, n) {
983
1034
  var i = e.call(this) || this;
@@ -994,17 +1045,17 @@ var En = Qt(function(e) {
994
1045
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
995
1046
  }, t.prototype._subscribe = function(r) {
996
1047
  var n, i;
997
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yt;
1048
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : er;
998
1049
  }, t;
999
- }(Kt), er = {
1050
+ }(ir), sr = {
1000
1051
  now: function() {
1001
- return (er.delegate || Date).now();
1052
+ return (sr.delegate || Date).now();
1002
1053
  },
1003
1054
  delegate: void 0
1004
- }, _n = function(e) {
1055
+ }, Hn = function(e) {
1005
1056
  D(t, e);
1006
1057
  function t(r, n, i) {
1007
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
1058
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = sr);
1008
1059
  var s = e.call(this) || this;
1009
1060
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1010
1061
  }
@@ -1024,15 +1075,15 @@ var En = Qt(function(e) {
1024
1075
  u && s.splice(0, u + 1);
1025
1076
  }
1026
1077
  }, t;
1027
- }(Kt);
1028
- const St = [], wt = {}, xn = (e, t = 0) => {
1029
- if (St.indexOf(e) == -1) {
1030
- const r = new _n(t);
1031
- wt[e] = r, St.push(e);
1078
+ }(ir);
1079
+ const At = [], Bt = {}, An = (e, t = 0) => {
1080
+ if (At.indexOf(e) == -1) {
1081
+ const r = new Hn(t);
1082
+ Bt[e] = r, At.push(e);
1032
1083
  }
1033
- return wt[e];
1084
+ return Bt[e];
1034
1085
  }, Q = [];
1035
- function Sn(e, t) {
1086
+ function Bn(e, t) {
1036
1087
  return {
1037
1088
  subscribe: Be(e, t).subscribe
1038
1089
  };
@@ -1041,7 +1092,7 @@ function Be(e, t = P) {
1041
1092
  let r;
1042
1093
  const n = /* @__PURE__ */ new Set();
1043
1094
  function i(a) {
1044
- if ($t(e, a) && (e = a, r)) {
1095
+ if (Xt(e, a) && (e = a, r)) {
1045
1096
  const h = !Q.length;
1046
1097
  for (const u of n)
1047
1098
  u[1](), Q.push(u, e);
@@ -1068,7 +1119,7 @@ function se(e, t, r) {
1068
1119
  if (!i.every(Boolean))
1069
1120
  throw new Error("derived() expects stores as input, got a falsy value");
1070
1121
  const s = t.length < 2;
1071
- return Sn(r, (o, a) => {
1122
+ return Bn(r, (o, a) => {
1072
1123
  let h = !1;
1073
1124
  const u = [];
1074
1125
  let l = 0, m = P;
@@ -1079,7 +1130,7 @@ function se(e, t, r) {
1079
1130
  const b = t(n ? u[0] : u, o, a);
1080
1131
  s ? o(b) : m = He(b) ? b : P;
1081
1132
  }, d = i.map(
1082
- (b, y) => jt(
1133
+ (b, y) => Wt(
1083
1134
  b,
1084
1135
  (T) => {
1085
1136
  u[y] = T, l &= ~(1 << y), h && c();
@@ -1094,70 +1145,70 @@ function se(e, t, r) {
1094
1145
  };
1095
1146
  });
1096
1147
  }
1097
- function wn(e) {
1148
+ function Pn(e) {
1098
1149
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1099
1150
  }
1100
- var Tn = function(t) {
1101
- return Hn(t) && !An(t);
1151
+ var Nn = function(t) {
1152
+ return On(t) && !Ln(t);
1102
1153
  };
1103
- function Hn(e) {
1154
+ function On(e) {
1104
1155
  return !!e && typeof e == "object";
1105
1156
  }
1106
- function An(e) {
1157
+ function Ln(e) {
1107
1158
  var t = Object.prototype.toString.call(e);
1108
- return t === "[object RegExp]" || t === "[object Date]" || Nn(e);
1159
+ return t === "[object RegExp]" || t === "[object Date]" || Mn(e);
1109
1160
  }
1110
- var Bn = typeof Symbol == "function" && Symbol.for, Pn = Bn ? Symbol.for("react.element") : 60103;
1111
- function Nn(e) {
1112
- return e.$$typeof === Pn;
1161
+ var In = typeof Symbol == "function" && Symbol.for, Cn = In ? Symbol.for("react.element") : 60103;
1162
+ function Mn(e) {
1163
+ return e.$$typeof === Cn;
1113
1164
  }
1114
- function On(e) {
1165
+ function Rn(e) {
1115
1166
  return Array.isArray(e) ? [] : {};
1116
1167
  }
1117
1168
  function le(e, t) {
1118
- return t.clone !== !1 && t.isMergeableObject(e) ? K(On(e), e, t) : e;
1169
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(Rn(e), e, t) : e;
1119
1170
  }
1120
- function Ln(e, t, r) {
1171
+ function Gn(e, t, r) {
1121
1172
  return e.concat(t).map(function(n) {
1122
1173
  return le(n, r);
1123
1174
  });
1124
1175
  }
1125
- function In(e, t) {
1176
+ function Un(e, t) {
1126
1177
  if (!t.customMerge)
1127
1178
  return K;
1128
1179
  var r = t.customMerge(e);
1129
1180
  return typeof r == "function" ? r : K;
1130
1181
  }
1131
- function Cn(e) {
1182
+ function Dn(e) {
1132
1183
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1133
1184
  return Object.propertyIsEnumerable.call(e, t);
1134
1185
  }) : [];
1135
1186
  }
1136
- function Tt(e) {
1137
- return Object.keys(e).concat(Cn(e));
1187
+ function Pt(e) {
1188
+ return Object.keys(e).concat(Dn(e));
1138
1189
  }
1139
- function tr(e, t) {
1190
+ function or(e, t) {
1140
1191
  try {
1141
1192
  return t in e;
1142
1193
  } catch (r) {
1143
1194
  return !1;
1144
1195
  }
1145
1196
  }
1146
- function Mn(e, t) {
1147
- return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1197
+ function Fn(e, t) {
1198
+ return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1148
1199
  }
1149
- function Rn(e, t, r) {
1200
+ function $n(e, t, r) {
1150
1201
  var n = {};
1151
- return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
1202
+ return r.isMergeableObject(e) && Pt(e).forEach(function(i) {
1152
1203
  n[i] = le(e[i], r);
1153
- }), Tt(t).forEach(function(i) {
1154
- Mn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1204
+ }), Pt(t).forEach(function(i) {
1205
+ Fn(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = Un(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1155
1206
  }), n;
1156
1207
  }
1157
1208
  function K(e, t, r) {
1158
- r = r || {}, r.arrayMerge = r.arrayMerge || Ln, r.isMergeableObject = r.isMergeableObject || Tn, r.cloneUnlessOtherwiseSpecified = le;
1209
+ r = r || {}, r.arrayMerge = r.arrayMerge || Gn, r.isMergeableObject = r.isMergeableObject || Nn, r.cloneUnlessOtherwiseSpecified = le;
1159
1210
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1160
- return s ? n ? r.arrayMerge(e, t, r) : Rn(e, t, r) : le(t, r);
1211
+ return s ? n ? r.arrayMerge(e, t, r) : $n(e, t, r) : le(t, r);
1161
1212
  }
1162
1213
  K.all = function(t, r) {
1163
1214
  if (!Array.isArray(t))
@@ -1166,56 +1217,58 @@ K.all = function(t, r) {
1166
1217
  return K(n, i, r);
1167
1218
  }, {});
1168
1219
  };
1169
- var Gn = K, Un = Gn;
1170
- const Dn = /* @__PURE__ */ wn(Un);
1171
- function Ue(e, t) {
1172
- var r = t && t.cache ? t.cache : Wn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : jn;
1220
+ var jn = K, kn = jn;
1221
+ const Vn = /* @__PURE__ */ Pn(kn);
1222
+ function De(e, t) {
1223
+ var r = t && t.cache ? t.cache : Yn, n = t && t.serializer ? t.serializer : Qn, i = t && t.strategy ? t.strategy : Wn;
1173
1224
  return i(e, {
1174
1225
  cache: r,
1175
1226
  serializer: n
1176
1227
  });
1177
1228
  }
1178
- function Fn(e) {
1229
+ function Xn(e) {
1179
1230
  return e == null || typeof e == "number" || typeof e == "boolean";
1180
1231
  }
1181
- function $n(e, t, r, n) {
1182
- var i = Fn(n) ? n : r(n), s = t.get(i);
1232
+ function ar(e, t, r, n) {
1233
+ var i = Xn(n) ? n : r(n), s = t.get(i);
1183
1234
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1184
1235
  }
1185
- function rr(e, t, r) {
1236
+ function ur(e, t, r) {
1186
1237
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1187
1238
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1188
1239
  }
1189
- function nr(e, t, r, n, i) {
1240
+ function at(e, t, r, n, i) {
1190
1241
  return r.bind(t, e, n, i);
1191
1242
  }
1192
- function jn(e, t) {
1193
- var r = e.length === 1 ? $n : rr;
1194
- return nr(e, this, r, t.cache.create(), t.serializer);
1243
+ function Wn(e, t) {
1244
+ var r = e.length === 1 ? ar : ur;
1245
+ return at(e, this, r, t.cache.create(), t.serializer);
1195
1246
  }
1196
- function kn(e, t) {
1197
- return nr(e, this, rr, t.cache.create(), t.serializer);
1247
+ function zn(e, t) {
1248
+ return at(e, this, ur, t.cache.create(), t.serializer);
1198
1249
  }
1199
- var Vn = function() {
1250
+ function Zn(e, t) {
1251
+ return at(e, this, ar, t.cache.create(), t.serializer);
1252
+ }
1253
+ var Qn = function() {
1200
1254
  return JSON.stringify(arguments);
1201
- }, Xn = (
1202
- /** @class */
1203
- function() {
1204
- function e() {
1205
- this.cache = /* @__PURE__ */ Object.create(null);
1206
- }
1207
- return e.prototype.get = function(t) {
1208
- return this.cache[t];
1209
- }, e.prototype.set = function(t, r) {
1210
- this.cache[t] = r;
1211
- }, e;
1212
- }()
1213
- ), Wn = {
1255
+ };
1256
+ function ut() {
1257
+ this.cache = /* @__PURE__ */ Object.create(null);
1258
+ }
1259
+ ut.prototype.get = function(e) {
1260
+ return this.cache[e];
1261
+ };
1262
+ ut.prototype.set = function(e, t) {
1263
+ this.cache[e] = t;
1264
+ };
1265
+ var Yn = {
1214
1266
  create: function() {
1215
- return new Xn();
1267
+ return new ut();
1216
1268
  }
1217
- }, De = {
1218
- variadic: kn
1269
+ }, Fe = {
1270
+ variadic: zn,
1271
+ monadic: Zn
1219
1272
  }, p;
1220
1273
  (function(e) {
1221
1274
  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";
@@ -1228,43 +1281,43 @@ var ee;
1228
1281
  (function(e) {
1229
1282
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1230
1283
  })(ee || (ee = {}));
1231
- function Ht(e) {
1284
+ function Nt(e) {
1232
1285
  return e.type === x.literal;
1233
1286
  }
1234
- function zn(e) {
1287
+ function qn(e) {
1235
1288
  return e.type === x.argument;
1236
1289
  }
1237
- function ir(e) {
1290
+ function hr(e) {
1238
1291
  return e.type === x.number;
1239
1292
  }
1240
- function sr(e) {
1293
+ function lr(e) {
1241
1294
  return e.type === x.date;
1242
1295
  }
1243
- function or(e) {
1296
+ function cr(e) {
1244
1297
  return e.type === x.time;
1245
1298
  }
1246
- function ar(e) {
1299
+ function fr(e) {
1247
1300
  return e.type === x.select;
1248
1301
  }
1249
- function ur(e) {
1302
+ function mr(e) {
1250
1303
  return e.type === x.plural;
1251
1304
  }
1252
- function Zn(e) {
1305
+ function Jn(e) {
1253
1306
  return e.type === x.pound;
1254
1307
  }
1255
- function hr(e) {
1308
+ function dr(e) {
1256
1309
  return e.type === x.tag;
1257
1310
  }
1258
- function lr(e) {
1311
+ function br(e) {
1259
1312
  return !!(e && typeof e == "object" && e.type === ee.number);
1260
1313
  }
1261
- function qe(e) {
1314
+ function Je(e) {
1262
1315
  return !!(e && typeof e == "object" && e.type === ee.dateTime);
1263
1316
  }
1264
- var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qn = /(?:[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;
1265
- function Yn(e) {
1317
+ var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kn = /(?:[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;
1318
+ function ei(e) {
1266
1319
  var t = {};
1267
- return e.replace(Qn, function(r) {
1320
+ return e.replace(Kn, function(r) {
1268
1321
  var n = r.length;
1269
1322
  switch (r[0]) {
1270
1323
  case "G":
@@ -1353,11 +1406,11 @@ function Yn(e) {
1353
1406
  return "";
1354
1407
  }), t;
1355
1408
  }
1356
- var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1357
- function Jn(e) {
1409
+ var ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1410
+ function ri(e) {
1358
1411
  if (e.length === 0)
1359
1412
  throw new Error("Number skeleton cannot be empty");
1360
- for (var t = e.split(qn).filter(function(c) {
1413
+ for (var t = e.split(ti).filter(function(c) {
1361
1414
  return c.length > 0;
1362
1415
  }), r = [], n = 0, i = t; n < i.length; n++) {
1363
1416
  var s = i[n], o = s.split("/");
@@ -1372,17 +1425,17 @@ function Jn(e) {
1372
1425
  }
1373
1426
  return r;
1374
1427
  }
1375
- function Kn(e) {
1428
+ function ni(e) {
1376
1429
  return e.replace(/^(.*?)-/, "");
1377
1430
  }
1378
- var At = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, ei = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
1379
- function Bt(e) {
1431
+ var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, ii = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
1432
+ function Lt(e) {
1380
1433
  var t = {};
1381
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
1434
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
1382
1435
  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)), "";
1383
1436
  }), t;
1384
1437
  }
1385
- function dr(e) {
1438
+ function vr(e) {
1386
1439
  switch (e) {
1387
1440
  case "sign-auto":
1388
1441
  return {
@@ -1422,7 +1475,7 @@ function dr(e) {
1422
1475
  };
1423
1476
  }
1424
1477
  }
1425
- function ti(e) {
1478
+ function si(e) {
1426
1479
  var t;
1427
1480
  if (e[0] === "E" && e[1] === "E" ? (t = {
1428
1481
  notation: "engineering"
@@ -1430,17 +1483,17 @@ function ti(e) {
1430
1483
  notation: "scientific"
1431
1484
  }, e = e.slice(1)), t) {
1432
1485
  var r = e.slice(0, 2);
1433
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
1486
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
1434
1487
  throw new Error("Malformed concise eng/scientific notation");
1435
1488
  t.minimumIntegerDigits = e.length;
1436
1489
  }
1437
1490
  return t;
1438
1491
  }
1439
- function Pt(e) {
1440
- var t = {}, r = dr(e);
1492
+ function It(e) {
1493
+ var t = {}, r = vr(e);
1441
1494
  return r || t;
1442
1495
  }
1443
- function ri(e) {
1496
+ function oi(e) {
1444
1497
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1445
1498
  var i = n[r];
1446
1499
  switch (i.stem) {
@@ -1464,7 +1517,7 @@ function ri(e) {
1464
1517
  continue;
1465
1518
  case "measure-unit":
1466
1519
  case "unit":
1467
- t.style = "unit", t.unit = Kn(i.options[0]);
1520
+ t.style = "unit", t.unit = ni(i.options[0]);
1468
1521
  continue;
1469
1522
  case "compact-short":
1470
1523
  case "K":
@@ -1476,12 +1529,12 @@ function ri(e) {
1476
1529
  continue;
1477
1530
  case "scientific":
1478
1531
  t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1479
- return v(v({}, h), Pt(u));
1532
+ return v(v({}, h), It(u));
1480
1533
  }, {}));
1481
1534
  continue;
1482
1535
  case "engineering":
1483
1536
  t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1484
- return v(v({}, h), Pt(u));
1537
+ return v(v({}, h), It(u));
1485
1538
  }, {}));
1486
1539
  continue;
1487
1540
  case "notation-simple":
@@ -1526,7 +1579,7 @@ function ri(e) {
1526
1579
  case "integer-width":
1527
1580
  if (i.options.length > 1)
1528
1581
  throw new RangeError("integer-width stems only accept a single optional option");
1529
- i.options[0].replace(ei, function(h, u, l, m, c, d) {
1582
+ i.options[0].replace(ii, function(h, u, l, m, c, d) {
1530
1583
  if (u)
1531
1584
  t.minimumIntegerDigits = l.length;
1532
1585
  else {
@@ -1539,27 +1592,27 @@ function ri(e) {
1539
1592
  });
1540
1593
  continue;
1541
1594
  }
1542
- if (mr.test(i.stem)) {
1595
+ if (yr.test(i.stem)) {
1543
1596
  t.minimumIntegerDigits = i.stem.length;
1544
1597
  continue;
1545
1598
  }
1546
- if (At.test(i.stem)) {
1599
+ if (Ot.test(i.stem)) {
1547
1600
  if (i.options.length > 1)
1548
1601
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1549
- i.stem.replace(At, function(h, u, l, m, c, d) {
1602
+ i.stem.replace(Ot, function(h, u, l, m, c, d) {
1550
1603
  return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1551
1604
  });
1552
1605
  var s = i.options[0];
1553
- s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Bt(s)));
1606
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Lt(s)));
1554
1607
  continue;
1555
1608
  }
1556
- if (fr.test(i.stem)) {
1557
- t = v(v({}, t), Bt(i.stem));
1609
+ if (gr.test(i.stem)) {
1610
+ t = v(v({}, t), Lt(i.stem));
1558
1611
  continue;
1559
1612
  }
1560
- var o = dr(i.stem);
1613
+ var o = vr(i.stem);
1561
1614
  o && (t = v(v({}, t), o));
1562
- var a = ti(i.stem);
1615
+ var a = si(i.stem);
1563
1616
  a && (t = v(v({}, t), a));
1564
1617
  }
1565
1618
  return t;
@@ -2979,22 +3032,23 @@ var ve = {
2979
3032
  "h"
2980
3033
  ]
2981
3034
  };
2982
- function ni(e, t) {
3035
+ function ai(e, t) {
2983
3036
  for (var r = "", n = 0; n < e.length; n++) {
2984
3037
  var i = e.charAt(n);
2985
3038
  if (i === "j") {
2986
3039
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2987
3040
  s++, n++;
2988
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = ii(t);
3041
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = ui(t);
2989
3042
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2990
3043
  r += h;
2991
3044
  for (; o-- > 0; )
2992
3045
  r = u + r;
2993
- } else i === "J" ? r += "H" : r += i;
3046
+ } else
3047
+ i === "J" ? r += "H" : r += i;
2994
3048
  }
2995
3049
  return r;
2996
3050
  }
2997
- function ii(e) {
3051
+ function ui(e) {
2998
3052
  var t = e.hourCycle;
2999
3053
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3000
3054
  e.hourCycles && // @ts-ignore
@@ -3016,20 +3070,20 @@ function ii(e) {
3016
3070
  var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
3017
3071
  return i[0];
3018
3072
  }
3019
- var Fe, si = new RegExp("^".concat(cr.source, "*")), oi = new RegExp("".concat(cr.source, "*$"));
3073
+ var $e, hi = new RegExp("^".concat(pr.source, "*")), li = new RegExp("".concat(pr.source, "*$"));
3020
3074
  function g(e, t) {
3021
3075
  return { start: e, end: t };
3022
3076
  }
3023
- var ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), ui = !!String.fromCodePoint, hi = !!Object.fromEntries, li = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, fi = !!String.prototype.trimEnd, mi = !!Number.isSafeInteger, di = mi ? Number.isSafeInteger : function(e) {
3077
+ var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), fi = !!String.fromCodePoint, mi = !!Object.fromEntries, di = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, pi = !!String.prototype.trimEnd, gi = !!Number.isSafeInteger, yi = gi ? Number.isSafeInteger : function(e) {
3024
3078
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3025
- }, Je = !0;
3079
+ }, Ke = !0;
3026
3080
  try {
3027
- var bi = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3028
- Je = ((Fe = bi.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
3081
+ var vi = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3082
+ Ke = (($e = vi.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
3029
3083
  } catch (e) {
3030
- Je = !1;
3084
+ Ke = !1;
3031
3085
  }
3032
- var Nt = ai ? (
3086
+ var Ct = ci ? (
3033
3087
  // Native
3034
3088
  function(t, r, n) {
3035
3089
  return t.startsWith(r, n);
@@ -3039,7 +3093,7 @@ var Nt = ai ? (
3039
3093
  function(t, r, n) {
3040
3094
  return t.slice(n, n + r.length) === r;
3041
3095
  }
3042
- ), Ke = ui ? String.fromCodePoint : (
3096
+ ), et = fi ? String.fromCodePoint : (
3043
3097
  // IE11
3044
3098
  function() {
3045
3099
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3051,9 +3105,9 @@ var Nt = ai ? (
3051
3105
  }
3052
3106
  return n;
3053
3107
  }
3054
- ), Ot = (
3108
+ ), Mt = (
3055
3109
  // native
3056
- hi ? Object.fromEntries : (
3110
+ mi ? Object.fromEntries : (
3057
3111
  // Ponyfill
3058
3112
  function(t) {
3059
3113
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3063,7 +3117,7 @@ var Nt = ai ? (
3063
3117
  return r;
3064
3118
  }
3065
3119
  )
3066
- ), br = li ? (
3120
+ ), Er = di ? (
3067
3121
  // Native
3068
3122
  function(t, r) {
3069
3123
  return t.codePointAt(r);
@@ -3077,7 +3131,7 @@ var Nt = ai ? (
3077
3131
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3078
3132
  }
3079
3133
  }
3080
- ), pi = ci ? (
3134
+ ), Ei = bi ? (
3081
3135
  // Native
3082
3136
  function(t) {
3083
3137
  return t.trimStart();
@@ -3085,9 +3139,9 @@ var Nt = ai ? (
3085
3139
  ) : (
3086
3140
  // Ponyfill
3087
3141
  function(t) {
3088
- return t.replace(si, "");
3142
+ return t.replace(hi, "");
3089
3143
  }
3090
- ), gi = fi ? (
3144
+ ), _i = pi ? (
3091
3145
  // Native
3092
3146
  function(t) {
3093
3147
  return t.trimEnd();
@@ -3095,32 +3149,32 @@ var Nt = ai ? (
3095
3149
  ) : (
3096
3150
  // Ponyfill
3097
3151
  function(t) {
3098
- return t.replace(oi, "");
3152
+ return t.replace(li, "");
3099
3153
  }
3100
3154
  );
3101
- function pr(e, t) {
3155
+ function _r(e, t) {
3102
3156
  return new RegExp(e, t);
3103
3157
  }
3104
- var et;
3105
- if (Je) {
3106
- var Lt = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3107
- et = function(t, r) {
3158
+ var tt;
3159
+ if (Ke) {
3160
+ var Rt = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3161
+ tt = function(t, r) {
3108
3162
  var n;
3109
- Lt.lastIndex = r;
3110
- var i = Lt.exec(t);
3163
+ Rt.lastIndex = r;
3164
+ var i = Rt.exec(t);
3111
3165
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3112
3166
  };
3113
3167
  } else
3114
- et = function(t, r) {
3168
+ tt = function(t, r) {
3115
3169
  for (var n = []; ; ) {
3116
- var i = br(t, r);
3117
- if (i === void 0 || gr(i) || _i(i))
3170
+ var i = Er(t, r);
3171
+ if (i === void 0 || xr(i) || Ti(i))
3118
3172
  break;
3119
3173
  n.push(i), r += i >= 65536 ? 2 : 1;
3120
3174
  }
3121
- return Ke.apply(void 0, n);
3175
+ return et.apply(void 0, n);
3122
3176
  };
3123
- var yi = (
3177
+ var xi = (
3124
3178
  /** @class */
3125
3179
  function() {
3126
3180
  function e(t, r) {
@@ -3151,7 +3205,7 @@ var yi = (
3151
3205
  if (n)
3152
3206
  break;
3153
3207
  return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3154
- } else if (s === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
3208
+ } else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
3155
3209
  var o = this.parseTag(t, r);
3156
3210
  if (o.err)
3157
3211
  return o;
@@ -3184,7 +3238,7 @@ var yi = (
3184
3238
  return s;
3185
3239
  var o = s.val, a = this.clonePosition();
3186
3240
  if (this.bumpIf("</")) {
3187
- if (this.isEOF() || !tt(this.char()))
3241
+ if (this.isEOF() || !rt(this.char()))
3188
3242
  return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
3189
3243
  var h = this.clonePosition(), u = this.parseTagName();
3190
3244
  return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3202,7 +3256,7 @@ var yi = (
3202
3256
  return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
3203
3257
  }, e.prototype.parseTagName = function() {
3204
3258
  var t = this.offset();
3205
- for (this.bump(); !this.isEOF() && Ei(this.char()); )
3259
+ for (this.bump(); !this.isEOF() && wi(this.char()); )
3206
3260
  this.bump();
3207
3261
  return this.message.slice(t, this.offset());
3208
3262
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3231,7 +3285,7 @@ var yi = (
3231
3285
  };
3232
3286
  }, e.prototype.tryParseLeftAngleBracket = function() {
3233
3287
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3234
- !vi(this.peek() || 0)) ? (this.bump(), "<") : null;
3288
+ !Si(this.peek() || 0)) ? (this.bump(), "<") : null;
3235
3289
  }, e.prototype.tryParseQuote = function(t) {
3236
3290
  if (this.isEOF() || this.char() !== 39)
3237
3291
  return null;
@@ -3265,12 +3319,12 @@ var yi = (
3265
3319
  r.push(n);
3266
3320
  this.bump();
3267
3321
  }
3268
- return Ke.apply(void 0, r);
3322
+ return et.apply(void 0, r);
3269
3323
  }, e.prototype.tryParseUnquoted = function(t, r) {
3270
3324
  if (this.isEOF())
3271
3325
  return null;
3272
3326
  var n = this.char();
3273
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
3327
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
3274
3328
  }, e.prototype.parseArgument = function(t, r) {
3275
3329
  var n = this.clonePosition();
3276
3330
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3299,7 +3353,7 @@ var yi = (
3299
3353
  return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3300
3354
  }
3301
3355
  }, e.prototype.parseIdentifierIfPossible = function() {
3302
- var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
3356
+ var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
3303
3357
  this.bumpTo(i);
3304
3358
  var s = this.clonePosition(), o = g(t, s);
3305
3359
  return { value: n, location: o };
@@ -3318,7 +3372,7 @@ var yi = (
3318
3372
  var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
3319
3373
  if (m.err)
3320
3374
  return m;
3321
- var c = gi(m.val);
3375
+ var c = _i(m.val);
3322
3376
  if (c.length === 0)
3323
3377
  return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3324
3378
  var d = g(l, this.clonePosition());
@@ -3328,8 +3382,8 @@ var yi = (
3328
3382
  if (b.err)
3329
3383
  return b;
3330
3384
  var y = g(i, this.clonePosition());
3331
- if (u && Nt(u == null ? void 0 : u.style, "::", 0)) {
3332
- var T = pi(u.style.slice(2));
3385
+ if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
3386
+ var T = Ei(u.style.slice(2));
3333
3387
  if (a === "number") {
3334
3388
  var m = this.parseNumberSkeletonFromString(T, u.styleLocation);
3335
3389
  return m.err ? m : {
@@ -3340,12 +3394,12 @@ var yi = (
3340
3394
  if (T.length === 0)
3341
3395
  return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
3342
3396
  var C = T;
3343
- this.locale && (C = ni(T, this.locale));
3397
+ this.locale && (C = ai(T, this.locale));
3344
3398
  var c = {
3345
3399
  type: ee.dateTime,
3346
3400
  pattern: C,
3347
3401
  location: u.styleLocation,
3348
- parsedOptions: this.shouldParseSkeletons ? Yn(C) : {}
3402
+ parsedOptions: this.shouldParseSkeletons ? ei(C) : {}
3349
3403
  }, N = a === "date" ? x.date : x.time;
3350
3404
  return {
3351
3405
  val: { type: N, value: n, location: y, style: c },
@@ -3391,7 +3445,7 @@ var yi = (
3391
3445
  val: {
3392
3446
  type: x.select,
3393
3447
  value: n,
3394
- options: Ot(R.val),
3448
+ options: Mt(R.val),
3395
3449
  location: _
3396
3450
  },
3397
3451
  err: null
@@ -3399,7 +3453,7 @@ var yi = (
3399
3453
  val: {
3400
3454
  type: x.plural,
3401
3455
  value: n,
3402
- options: Ot(R.val),
3456
+ options: Mt(R.val),
3403
3457
  offset: L,
3404
3458
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3405
3459
  location: _
@@ -3450,7 +3504,7 @@ var yi = (
3450
3504
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3451
3505
  var n = [];
3452
3506
  try {
3453
- n = Jn(t);
3507
+ n = ri(t);
3454
3508
  } catch (i) {
3455
3509
  return this.error(p.INVALID_NUMBER_SKELETON, r);
3456
3510
  }
@@ -3459,7 +3513,7 @@ var yi = (
3459
3513
  type: ee.number,
3460
3514
  tokens: n,
3461
3515
  location: r,
3462
- parsedOptions: this.shouldParseSkeletons ? ri(n) : {}
3516
+ parsedOptions: this.shouldParseSkeletons ? oi(n) : {}
3463
3517
  },
3464
3518
  err: null
3465
3519
  };
@@ -3507,7 +3561,7 @@ var yi = (
3507
3561
  break;
3508
3562
  }
3509
3563
  var h = g(i, this.clonePosition());
3510
- return s ? (o *= n, di(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3564
+ return s ? (o *= n, yi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3511
3565
  }, e.prototype.offset = function() {
3512
3566
  return this.position.offset;
3513
3567
  }, e.prototype.isEOF = function() {
@@ -3522,7 +3576,7 @@ var yi = (
3522
3576
  var t = this.position.offset;
3523
3577
  if (t >= this.message.length)
3524
3578
  throw Error("out of bound");
3525
- var r = br(this.message, t);
3579
+ var r = Er(this.message, t);
3526
3580
  if (r === void 0)
3527
3581
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3528
3582
  return r;
@@ -3541,7 +3595,7 @@ var yi = (
3541
3595
  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);
3542
3596
  }
3543
3597
  }, e.prototype.bumpIf = function(t) {
3544
- if (Nt(this.message, t, this.offset())) {
3598
+ if (Ct(this.message, t, this.offset())) {
3545
3599
  for (var r = 0; r < t.length; r++)
3546
3600
  this.bump();
3547
3601
  return !0;
@@ -3563,7 +3617,7 @@ var yi = (
3563
3617
  break;
3564
3618
  }
3565
3619
  }, e.prototype.bumpSpace = function() {
3566
- for (; !this.isEOF() && gr(this.char()); )
3620
+ for (; !this.isEOF() && xr(this.char()); )
3567
3621
  this.bump();
3568
3622
  }, e.prototype.peek = function() {
3569
3623
  if (this.isEOF())
@@ -3573,37 +3627,38 @@ var yi = (
3573
3627
  }, e;
3574
3628
  }()
3575
3629
  );
3576
- function tt(e) {
3630
+ function rt(e) {
3577
3631
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3578
3632
  }
3579
- function vi(e) {
3580
- return tt(e) || e === 47;
3633
+ function Si(e) {
3634
+ return rt(e) || e === 47;
3581
3635
  }
3582
- function Ei(e) {
3636
+ function wi(e) {
3583
3637
  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;
3584
3638
  }
3585
- function gr(e) {
3639
+ function xr(e) {
3586
3640
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3587
3641
  }
3588
- function _i(e) {
3642
+ function Ti(e) {
3589
3643
  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;
3590
3644
  }
3591
- function rt(e) {
3645
+ function nt(e) {
3592
3646
  e.forEach(function(t) {
3593
- if (delete t.location, ar(t) || ur(t))
3647
+ if (delete t.location, fr(t) || mr(t))
3594
3648
  for (var r in t.options)
3595
- delete t.options[r].location, rt(t.options[r].value);
3596
- else ir(t) && lr(t.style) || (sr(t) || or(t)) && qe(t.style) ? delete t.style.location : hr(t) && rt(t.children);
3649
+ delete t.options[r].location, nt(t.options[r].value);
3650
+ else
3651
+ hr(t) && br(t.style) || (lr(t) || cr(t)) && Je(t.style) ? delete t.style.location : dr(t) && nt(t.children);
3597
3652
  });
3598
3653
  }
3599
- function xi(e, t) {
3654
+ function Hi(e, t) {
3600
3655
  t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3601
- var r = new yi(e, t).parse();
3656
+ var r = new xi(e, t).parse();
3602
3657
  if (r.err) {
3603
3658
  var n = SyntaxError(p[r.err.kind]);
3604
3659
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3605
3660
  }
3606
- return t != null && t.captureLocation || rt(r.val), r.val;
3661
+ return t != null && t.captureLocation || nt(r.val), r.val;
3607
3662
  }
3608
3663
  var te;
3609
3664
  (function(e) {
@@ -3621,7 +3676,7 @@ var Pe = (
3621
3676
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3622
3677
  }, t;
3623
3678
  }(Error)
3624
- ), It = (
3679
+ ), Gt = (
3625
3680
  /** @class */
3626
3681
  function(e) {
3627
3682
  D(t, e);
@@ -3630,7 +3685,7 @@ var Pe = (
3630
3685
  }
3631
3686
  return t;
3632
3687
  }(Pe)
3633
- ), Si = (
3688
+ ), Ai = (
3634
3689
  /** @class */
3635
3690
  function(e) {
3636
3691
  D(t, e);
@@ -3639,7 +3694,7 @@ var Pe = (
3639
3694
  }
3640
3695
  return t;
3641
3696
  }(Pe)
3642
- ), wi = (
3697
+ ), Bi = (
3643
3698
  /** @class */
3644
3699
  function(e) {
3645
3700
  D(t, e);
@@ -3652,17 +3707,17 @@ var Pe = (
3652
3707
  (function(e) {
3653
3708
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3654
3709
  })(H || (H = {}));
3655
- function Ti(e) {
3710
+ function Pi(e) {
3656
3711
  return e.length < 2 ? e : e.reduce(function(t, r) {
3657
3712
  var n = t[t.length - 1];
3658
3713
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3659
3714
  }, []);
3660
3715
  }
3661
- function Hi(e) {
3716
+ function Ni(e) {
3662
3717
  return typeof e == "function";
3663
3718
  }
3664
3719
  function xe(e, t, r, n, i, s, o) {
3665
- if (e.length === 1 && Ht(e[0]))
3720
+ if (e.length === 1 && Nt(e[0]))
3666
3721
  return [
3667
3722
  {
3668
3723
  type: H.literal,
@@ -3671,14 +3726,14 @@ function xe(e, t, r, n, i, s, o) {
3671
3726
  ];
3672
3727
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3673
3728
  var l = u[h];
3674
- if (Ht(l)) {
3729
+ if (Nt(l)) {
3675
3730
  a.push({
3676
3731
  type: H.literal,
3677
3732
  value: l.value
3678
3733
  });
3679
3734
  continue;
3680
3735
  }
3681
- if (Zn(l)) {
3736
+ if (Jn(l)) {
3682
3737
  typeof s == "number" && a.push({
3683
3738
  type: H.literal,
3684
3739
  value: r.getNumberFormat(t).format(s)
@@ -3687,43 +3742,43 @@ function xe(e, t, r, n, i, s, o) {
3687
3742
  }
3688
3743
  var m = l.value;
3689
3744
  if (!(i && m in i))
3690
- throw new wi(m, o);
3745
+ throw new Bi(m, o);
3691
3746
  var c = i[m];
3692
- if (zn(l)) {
3747
+ if (qn(l)) {
3693
3748
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3694
3749
  type: typeof c == "string" ? H.literal : H.object,
3695
3750
  value: c
3696
3751
  });
3697
3752
  continue;
3698
3753
  }
3699
- if (sr(l)) {
3700
- var d = typeof l.style == "string" ? n.date[l.style] : qe(l.style) ? l.style.parsedOptions : void 0;
3754
+ if (lr(l)) {
3755
+ var d = typeof l.style == "string" ? n.date[l.style] : Je(l.style) ? l.style.parsedOptions : void 0;
3701
3756
  a.push({
3702
3757
  type: H.literal,
3703
3758
  value: r.getDateTimeFormat(t, d).format(c)
3704
3759
  });
3705
3760
  continue;
3706
3761
  }
3707
- if (or(l)) {
3708
- var d = typeof l.style == "string" ? n.time[l.style] : qe(l.style) ? l.style.parsedOptions : n.time.medium;
3762
+ if (cr(l)) {
3763
+ var d = typeof l.style == "string" ? n.time[l.style] : Je(l.style) ? l.style.parsedOptions : n.time.medium;
3709
3764
  a.push({
3710
3765
  type: H.literal,
3711
3766
  value: r.getDateTimeFormat(t, d).format(c)
3712
3767
  });
3713
3768
  continue;
3714
3769
  }
3715
- if (ir(l)) {
3716
- var d = typeof l.style == "string" ? n.number[l.style] : lr(l.style) ? l.style.parsedOptions : void 0;
3770
+ if (hr(l)) {
3771
+ var d = typeof l.style == "string" ? n.number[l.style] : br(l.style) ? l.style.parsedOptions : void 0;
3717
3772
  d && d.scale && (c = c * (d.scale || 1)), a.push({
3718
3773
  type: H.literal,
3719
3774
  value: r.getNumberFormat(t, d).format(c)
3720
3775
  });
3721
3776
  continue;
3722
3777
  }
3723
- if (hr(l)) {
3778
+ if (dr(l)) {
3724
3779
  var b = l.children, y = l.value, T = i[y];
3725
- if (!Hi(T))
3726
- throw new Si(y, "function", o);
3780
+ if (!Ni(T))
3781
+ throw new Ai(y, "function", o);
3727
3782
  var C = xe(b, t, r, n, i, s), N = T(C.map(function(L) {
3728
3783
  return L.value;
3729
3784
  }));
@@ -3734,14 +3789,14 @@ function xe(e, t, r, n, i, s, o) {
3734
3789
  };
3735
3790
  }));
3736
3791
  }
3737
- if (ar(l)) {
3792
+ if (fr(l)) {
3738
3793
  var w = l.options[c] || l.options.other;
3739
3794
  if (!w)
3740
- throw new It(l.value, c, Object.keys(l.options), o);
3795
+ throw new Gt(l.value, c, Object.keys(l.options), o);
3741
3796
  a.push.apply(a, xe(w.value, t, r, n, i));
3742
3797
  continue;
3743
3798
  }
3744
- if (ur(l)) {
3799
+ if (mr(l)) {
3745
3800
  var w = l.options["=".concat(c)];
3746
3801
  if (!w) {
3747
3802
  if (!Intl.PluralRules)
@@ -3752,24 +3807,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3752
3807
  w = l.options[O] || l.options.other;
3753
3808
  }
3754
3809
  if (!w)
3755
- throw new It(l.value, c, Object.keys(l.options), o);
3810
+ throw new Gt(l.value, c, Object.keys(l.options), o);
3756
3811
  a.push.apply(a, xe(w.value, t, r, n, i, c - (l.offset || 0)));
3757
3812
  continue;
3758
3813
  }
3759
3814
  }
3760
- return Ti(a);
3815
+ return Pi(a);
3761
3816
  }
3762
- function Ai(e, t) {
3817
+ function Oi(e, t) {
3763
3818
  return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3764
3819
  return r[n] = v(v({}, e[n]), t[n] || {}), r;
3765
3820
  }, {})) : e;
3766
3821
  }
3767
- function Bi(e, t) {
3822
+ function Li(e, t) {
3768
3823
  return t ? Object.keys(e).reduce(function(r, n) {
3769
- return r[n] = Ai(e[n], t[n]), r;
3824
+ return r[n] = Oi(e[n], t[n]), r;
3770
3825
  }, v({}, e)) : e;
3771
3826
  }
3772
- function $e(e) {
3827
+ function je(e) {
3773
3828
  return {
3774
3829
  create: function() {
3775
3830
  return {
@@ -3783,39 +3838,39 @@ function $e(e) {
3783
3838
  }
3784
3839
  };
3785
3840
  }
3786
- function Pi(e) {
3841
+ function Ii(e) {
3787
3842
  return e === void 0 && (e = {
3788
3843
  number: {},
3789
3844
  dateTime: {},
3790
3845
  pluralRules: {}
3791
3846
  }), {
3792
- getNumberFormat: Ue(function() {
3847
+ getNumberFormat: De(function() {
3793
3848
  for (var t, r = [], n = 0; n < arguments.length; n++)
3794
3849
  r[n] = arguments[n];
3795
3850
  return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
3796
3851
  }, {
3797
- cache: $e(e.number),
3798
- strategy: De.variadic
3852
+ cache: je(e.number),
3853
+ strategy: Fe.variadic
3799
3854
  }),
3800
- getDateTimeFormat: Ue(function() {
3855
+ getDateTimeFormat: De(function() {
3801
3856
  for (var t, r = [], n = 0; n < arguments.length; n++)
3802
3857
  r[n] = arguments[n];
3803
3858
  return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
3804
3859
  }, {
3805
- cache: $e(e.dateTime),
3806
- strategy: De.variadic
3860
+ cache: je(e.dateTime),
3861
+ strategy: Fe.variadic
3807
3862
  }),
3808
- getPluralRules: Ue(function() {
3863
+ getPluralRules: De(function() {
3809
3864
  for (var t, r = [], n = 0; n < arguments.length; n++)
3810
3865
  r[n] = arguments[n];
3811
3866
  return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
3812
3867
  }, {
3813
- cache: $e(e.pluralRules),
3814
- strategy: De.variadic
3868
+ cache: je(e.pluralRules),
3869
+ strategy: Fe.variadic
3815
3870
  })
3816
3871
  };
3817
3872
  }
3818
- var Ni = (
3873
+ var Ci = (
3819
3874
  /** @class */
3820
3875
  function() {
3821
3876
  function e(t, r, n, i) {
@@ -3847,13 +3902,13 @@ var Ni = (
3847
3902
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3848
3903
  var o = i || {};
3849
3904
  o.formatters;
3850
- var a = un(o, ["formatters"]);
3905
+ var a = mn(o, ["formatters"]);
3851
3906
  this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
3852
3907
  } else
3853
3908
  this.ast = t;
3854
3909
  if (!Array.isArray(this.ast))
3855
3910
  throw new TypeError("A message must be provided as a String or AST.");
3856
- this.formats = Bi(e.formats, n), this.formatters = i && i.formatters || Pi(this.formatterCache);
3911
+ this.formats = Li(e.formats, n), this.formatters = i && i.formatters || Ii(this.formatterCache);
3857
3912
  }
3858
3913
  return Object.defineProperty(e, "defaultLocale", {
3859
3914
  get: function() {
@@ -3866,7 +3921,7 @@ var Ni = (
3866
3921
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3867
3922
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3868
3923
  }
3869
- }, e.__parse = xi, e.formats = {
3924
+ }, e.__parse = Hi, e.formats = {
3870
3925
  number: {
3871
3926
  integer: {
3872
3927
  maximumFractionDigits: 0
@@ -3927,7 +3982,7 @@ var Ni = (
3927
3982
  }, e;
3928
3983
  }()
3929
3984
  );
3930
- function Oi(e, t) {
3985
+ function Mi(e, t) {
3931
3986
  if (t == null)
3932
3987
  return;
3933
3988
  if (t in e)
@@ -3948,92 +4003,92 @@ function Oi(e, t) {
3948
4003
  n = void 0;
3949
4004
  return n;
3950
4005
  }
3951
- const F = {}, Li = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), yr = (e, t) => {
4006
+ const F = {}, Ri = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Sr = (e, t) => {
3952
4007
  if (t == null)
3953
4008
  return;
3954
4009
  if (t in F && e in F[t])
3955
4010
  return F[t][e];
3956
4011
  const r = Ne(t);
3957
4012
  for (let n = 0; n < r.length; n++) {
3958
- const i = r[n], s = Ci(i, e);
4013
+ const i = r[n], s = Ui(i, e);
3959
4014
  if (s)
3960
- return Li(e, t, s);
4015
+ return Ri(e, t, s);
3961
4016
  }
3962
4017
  };
3963
- let ot;
4018
+ let ht;
3964
4019
  const de = Be({});
3965
- function Ii(e) {
3966
- return ot[e] || null;
4020
+ function Gi(e) {
4021
+ return ht[e] || null;
3967
4022
  }
3968
- function vr(e) {
3969
- return e in ot;
4023
+ function wr(e) {
4024
+ return e in ht;
3970
4025
  }
3971
- function Ci(e, t) {
3972
- if (!vr(e))
4026
+ function Ui(e, t) {
4027
+ if (!wr(e))
3973
4028
  return null;
3974
- const r = Ii(e);
3975
- return Oi(r, t);
4029
+ const r = Gi(e);
4030
+ return Mi(r, t);
3976
4031
  }
3977
- function Mi(e) {
4032
+ function Di(e) {
3978
4033
  if (e == null)
3979
4034
  return;
3980
4035
  const t = Ne(e);
3981
4036
  for (let r = 0; r < t.length; r++) {
3982
4037
  const n = t[r];
3983
- if (vr(n))
4038
+ if (wr(n))
3984
4039
  return n;
3985
4040
  }
3986
4041
  }
3987
- function Er(e, ...t) {
3988
- delete F[e], de.update((r) => (r[e] = Dn.all([r[e] || {}, ...t]), r));
4042
+ function Tr(e, ...t) {
4043
+ delete F[e], de.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
3989
4044
  }
3990
4045
  se(
3991
4046
  [de],
3992
4047
  ([e]) => Object.keys(e)
3993
4048
  );
3994
- de.subscribe((e) => ot = e);
4049
+ de.subscribe((e) => ht = e);
3995
4050
  const Se = {};
3996
- function Ri(e, t) {
4051
+ function Fi(e, t) {
3997
4052
  Se[e].delete(t), Se[e].size === 0 && delete Se[e];
3998
4053
  }
3999
- function _r(e) {
4054
+ function Hr(e) {
4000
4055
  return Se[e];
4001
4056
  }
4002
- function Gi(e) {
4057
+ function $i(e) {
4003
4058
  return Ne(e).map((t) => {
4004
- const r = _r(t);
4059
+ const r = Hr(t);
4005
4060
  return [t, r ? [...r] : []];
4006
4061
  }).filter(([, t]) => t.length > 0);
4007
4062
  }
4008
- function nt(e) {
4063
+ function it(e) {
4009
4064
  return e == null ? !1 : Ne(e).some(
4010
4065
  (t) => {
4011
4066
  var r;
4012
- return (r = _r(t)) == null ? void 0 : r.size;
4067
+ return (r = Hr(t)) == null ? void 0 : r.size;
4013
4068
  }
4014
4069
  );
4015
4070
  }
4016
- function Ui(e, t) {
4071
+ function ji(e, t) {
4017
4072
  return Promise.all(
4018
- t.map((n) => (Ri(e, n), n().then((i) => i.default || i)))
4019
- ).then((n) => Er(e, ...n));
4073
+ t.map((n) => (Fi(e, n), n().then((i) => i.default || i)))
4074
+ ).then((n) => Tr(e, ...n));
4020
4075
  }
4021
4076
  const ae = {};
4022
- function xr(e) {
4023
- if (!nt(e))
4077
+ function Ar(e) {
4078
+ if (!it(e))
4024
4079
  return e in ae ? ae[e] : Promise.resolve();
4025
- const t = Gi(e);
4080
+ const t = $i(e);
4026
4081
  return ae[e] = Promise.all(
4027
4082
  t.map(
4028
- ([r, n]) => Ui(r, n)
4083
+ ([r, n]) => ji(r, n)
4029
4084
  )
4030
4085
  ).then(() => {
4031
- if (nt(e))
4032
- return xr(e);
4086
+ if (it(e))
4087
+ return Ar(e);
4033
4088
  delete ae[e];
4034
4089
  }), ae[e];
4035
4090
  }
4036
- const Di = {
4091
+ const ki = {
4037
4092
  number: {
4038
4093
  scientific: { notation: "scientific" },
4039
4094
  engineering: { notation: "engineering" },
@@ -4062,57 +4117,57 @@ const Di = {
4062
4117
  timeZoneName: "short"
4063
4118
  }
4064
4119
  }
4065
- }, Fi = {
4120
+ }, Vi = {
4066
4121
  fallbackLocale: null,
4067
4122
  loadingDelay: 200,
4068
- formats: Di,
4123
+ formats: ki,
4069
4124
  warnOnMissingMessages: !0,
4070
4125
  handleMissingMessage: void 0,
4071
4126
  ignoreTag: !0
4072
- }, $i = Fi;
4127
+ }, Xi = Vi;
4073
4128
  function re() {
4074
- return $i;
4129
+ return Xi;
4075
4130
  }
4076
- const je = Be(!1);
4077
- var ji = Object.defineProperty, ki = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Wi = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
4131
+ const ke = Be(!1);
4132
+ var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Ut = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
4078
4133
  for (var r in t || (t = {}))
4079
- Xi.call(t, r) && Mt(e, r, t[r]);
4080
- if (Ct)
4081
- for (var r of Ct(t))
4082
- Wi.call(t, r) && Mt(e, r, t[r]);
4134
+ Qi.call(t, r) && Dt(e, r, t[r]);
4135
+ if (Ut)
4136
+ for (var r of Ut(t))
4137
+ Yi.call(t, r) && Dt(e, r, t[r]);
4083
4138
  return e;
4084
- }, Zi = (e, t) => ki(e, Vi(t));
4085
- let it;
4139
+ }, Ji = (e, t) => zi(e, Zi(t));
4140
+ let st;
4086
4141
  const we = Be(null);
4087
- function Rt(e) {
4142
+ function Ft(e) {
4088
4143
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4089
4144
  }
4090
4145
  function Ne(e, t = re().fallbackLocale) {
4091
- const r = Rt(e);
4092
- return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
4146
+ const r = Ft(e);
4147
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
4093
4148
  }
4094
4149
  function X() {
4095
- return it != null ? it : void 0;
4150
+ return st != null ? st : void 0;
4096
4151
  }
4097
4152
  we.subscribe((e) => {
4098
- it = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4153
+ st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4099
4154
  });
4100
- const Qi = (e) => {
4101
- if (e && Mi(e) && nt(e)) {
4155
+ const Ki = (e) => {
4156
+ if (e && Di(e) && it(e)) {
4102
4157
  const { loadingDelay: t } = re();
4103
4158
  let r;
4104
4159
  return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
4105
- () => je.set(!0),
4160
+ () => ke.set(!0),
4106
4161
  t
4107
- ) : je.set(!0), xr(e).then(() => {
4162
+ ) : ke.set(!0), Ar(e).then(() => {
4108
4163
  we.set(e);
4109
4164
  }).finally(() => {
4110
- clearTimeout(r), je.set(!1);
4165
+ clearTimeout(r), ke.set(!1);
4111
4166
  });
4112
4167
  }
4113
4168
  return we.set(e);
4114
- }, be = Zi(zi({}, we), {
4115
- set: Qi
4169
+ }, be = Ji(qi({}, we), {
4170
+ set: Ki
4116
4171
  }), Oe = (e) => {
4117
4172
  const t = /* @__PURE__ */ Object.create(null);
4118
4173
  return (n) => {
@@ -4120,20 +4175,20 @@ const Qi = (e) => {
4120
4175
  return i in t ? t[i] : t[i] = e(n);
4121
4176
  };
4122
4177
  };
4123
- var Yi = Object.defineProperty, Te = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
4178
+ var es = Object.defineProperty, Te = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? es(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4124
4179
  for (var r in t || (t = {}))
4125
- Sr.call(t, r) && Gt(e, r, t[r]);
4180
+ Br.call(t, r) && $t(e, r, t[r]);
4126
4181
  if (Te)
4127
4182
  for (var r of Te(t))
4128
- wr.call(t, r) && Gt(e, r, t[r]);
4183
+ Pr.call(t, r) && $t(e, r, t[r]);
4129
4184
  return e;
4130
4185
  }, oe = (e, t) => {
4131
4186
  var r = {};
4132
4187
  for (var n in e)
4133
- Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4188
+ Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4134
4189
  if (e != null && Te)
4135
4190
  for (var n of Te(e))
4136
- t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
4191
+ t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
4137
4192
  return r;
4138
4193
  };
4139
4194
  const ce = (e, t) => {
@@ -4141,21 +4196,21 @@ const ce = (e, t) => {
4141
4196
  if (e in r && t in r[e])
4142
4197
  return r[e][t];
4143
4198
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4144
- }, qi = Oe(
4199
+ }, ts = Oe(
4145
4200
  (e) => {
4146
4201
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4147
4202
  if (r == null)
4148
4203
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4149
4204
  return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
4150
4205
  }
4151
- ), Ji = Oe(
4206
+ ), rs = Oe(
4152
4207
  (e) => {
4153
4208
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4154
4209
  if (r == null)
4155
4210
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4156
4211
  return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
4157
4212
  }
4158
- ), Ki = Oe(
4213
+ ), ns = Oe(
4159
4214
  (e) => {
4160
4215
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4161
4216
  if (r == null)
@@ -4164,33 +4219,33 @@ const ce = (e, t) => {
4164
4219
  );
4165
4220
  return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
4166
4221
  }
4167
- ), es = (e = {}) => {
4222
+ ), is = (e = {}) => {
4168
4223
  var t = e, {
4169
4224
  locale: r = X()
4170
4225
  } = t, n = oe(t, [
4171
4226
  "locale"
4172
4227
  ]);
4173
- return qi(at({ locale: r }, n));
4174
- }, ts = (e = {}) => {
4228
+ return ts(lt({ locale: r }, n));
4229
+ }, ss = (e = {}) => {
4175
4230
  var t = e, {
4176
4231
  locale: r = X()
4177
4232
  } = t, n = oe(t, [
4178
4233
  "locale"
4179
4234
  ]);
4180
- return Ji(at({ locale: r }, n));
4181
- }, rs = (e = {}) => {
4235
+ return rs(lt({ locale: r }, n));
4236
+ }, os = (e = {}) => {
4182
4237
  var t = e, {
4183
4238
  locale: r = X()
4184
4239
  } = t, n = oe(t, [
4185
4240
  "locale"
4186
4241
  ]);
4187
- return Ki(at({ locale: r }, n));
4188
- }, ns = Oe(
4242
+ return ns(lt({ locale: r }, n));
4243
+ }, as = Oe(
4189
4244
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4190
- (e, t = X()) => new Ni(e, t, re().formats, {
4245
+ (e, t = X()) => new Ci(e, t, re().formats, {
4191
4246
  ignoreTag: re().ignoreTag
4192
4247
  })
4193
- ), is = (e, t = {}) => {
4248
+ ), us = (e, t = {}) => {
4194
4249
  var r, n, i, s;
4195
4250
  let o = t;
4196
4251
  typeof e == "object" && (o = e, e = o.id);
@@ -4203,7 +4258,7 @@ const ce = (e, t) => {
4203
4258
  throw new Error(
4204
4259
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4205
4260
  );
4206
- let l = yr(e, h);
4261
+ let l = Sr(e, h);
4207
4262
  if (!l)
4208
4263
  l = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4209
4264
  else if (typeof l != "string")
@@ -4214,7 +4269,7 @@ const ce = (e, t) => {
4214
4269
  return l;
4215
4270
  let m = l;
4216
4271
  try {
4217
- m = ns(l, h).format(a);
4272
+ m = as(l, h).format(a);
4218
4273
  } catch (c) {
4219
4274
  c instanceof Error && console.warn(
4220
4275
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4222,20 +4277,20 @@ const ce = (e, t) => {
4222
4277
  );
4223
4278
  }
4224
4279
  return m;
4225
- }, ss = (e, t) => rs(t).format(e), os = (e, t) => ts(t).format(e), as = (e, t) => es(t).format(e), us = (e, t = X()) => yr(e, t), hs = se([be, de], () => is);
4226
- se([be], () => ss);
4227
- se([be], () => os);
4228
- se([be], () => as);
4229
- se([be, de], () => us);
4230
- window.emWidgets = { topic: xn };
4231
- const ls = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4232
- function cs(e, t) {
4280
+ }, hs = (e, t) => os(t).format(e), ls = (e, t) => ss(t).format(e), cs = (e, t) => is(t).format(e), fs = (e, t = X()) => Sr(e, t), ms = se([be, de], () => us);
4281
+ se([be], () => hs);
4282
+ se([be], () => ls);
4283
+ se([be], () => cs);
4284
+ se([be, de], () => fs);
4285
+ window.emWidgets = { topic: An };
4286
+ const ds = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4287
+ function bs(e, t) {
4233
4288
  if (e) {
4234
4289
  const r = document.createElement("style");
4235
4290
  r.innerHTML = t, e.appendChild(r);
4236
4291
  }
4237
4292
  }
4238
- function fs(e, t) {
4293
+ function ps(e, t) {
4239
4294
  const r = new URL(t);
4240
4295
  fetch(r.href).then((n) => n.text()).then((n) => {
4241
4296
  const i = document.createElement("style");
@@ -4244,7 +4299,7 @@ function fs(e, t) {
4244
4299
  console.error("There was an error while trying to load client styling from URL", n);
4245
4300
  });
4246
4301
  }
4247
- function ms(e, t, r) {
4302
+ function gs(e, t, r) {
4248
4303
  if (window.emMessageBus) {
4249
4304
  const n = document.createElement("style");
4250
4305
  window.emMessageBus.subscribe(t, (i) => {
@@ -4252,10 +4307,10 @@ function ms(e, t, r) {
4252
4307
  });
4253
4308
  }
4254
4309
  }
4255
- function Ut(e, t) {
4256
- Er(e, t);
4310
+ function jt(e, t) {
4311
+ Tr(e, t);
4257
4312
  }
4258
- const Dt = {
4313
+ const kt = {
4259
4314
  en: {
4260
4315
  lobbyName: "Lobby",
4261
4316
  myGamesName: "My games"
@@ -4341,14 +4396,14 @@ if (typeof window != "undefined") {
4341
4396
  }
4342
4397
  };
4343
4398
  };
4344
- customElements.define = e(customElements.define), import("./CasinoSlider-EFId2L7-.js").then(({ default: t }) => {
4399
+ customElements.define = e(customElements.define), import("./CasinoSlider-F9zfPd1C.js").then(({ default: t }) => {
4345
4400
  !customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
4346
4401
  });
4347
4402
  }
4348
- function ds(e) {
4349
- kr(e, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
4403
+ function ys(e) {
4404
+ Zr(e, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
4350
4405
  }
4351
- function bs(e) {
4406
+ function vs(e) {
4352
4407
  let t, r, n, i;
4353
4408
  return {
4354
4409
  c() {
@@ -4367,7 +4422,7 @@ function bs(e) {
4367
4422
  "endpoint",
4368
4423
  /*endpoint*/
4369
4424
  e[1]
4370
- ), E(r, "identity", st), E(
4425
+ ), E(r, "identity", ot), E(
4371
4426
  r,
4372
4427
  "favoritesnumber",
4373
4428
  /*numberOfFavoredGames*/
@@ -4425,7 +4480,7 @@ function bs(e) {
4425
4480
  ), me(t, "class", "CasinoCategoriesContainer svelte-2g6deg");
4426
4481
  },
4427
4482
  m(s, o) {
4428
- fe(s, t, o), kt(t, r), n || (i = jr(
4483
+ fe(s, t, o), zt(t, r), n || (i = zr(
4429
4484
  /*sendSliderData*/
4430
4485
  e[17].call(null, r)
4431
4486
  ), n = !0);
@@ -4522,7 +4577,7 @@ function bs(e) {
4522
4577
  }
4523
4578
  };
4524
4579
  }
4525
- function ps(e) {
4580
+ function Es(e) {
4526
4581
  let t;
4527
4582
  return {
4528
4583
  c() {
@@ -4537,7 +4592,7 @@ function ps(e) {
4537
4592
  }
4538
4593
  };
4539
4594
  }
4540
- function gs(e) {
4595
+ function _s(e) {
4541
4596
  let t;
4542
4597
  return {
4543
4598
  c() {
@@ -4552,14 +4607,14 @@ function gs(e) {
4552
4607
  }
4553
4608
  };
4554
4609
  }
4555
- function ys(e) {
4610
+ function xs(e) {
4556
4611
  let t;
4557
4612
  function r(s, o) {
4558
4613
  return (
4559
4614
  /*isLoading*/
4560
- s[13] || vs || Es ? gs : (
4615
+ s[13] || Ss || ws ? _s : (
4561
4616
  /*hasErrors*/
4562
- s[15] ? ps : bs
4617
+ s[15] ? Es : vs
4563
4618
  )
4564
4619
  );
4565
4620
  }
@@ -4581,47 +4636,47 @@ function ys(e) {
4581
4636
  }
4582
4637
  };
4583
4638
  }
4584
- let st = "CasinoSliderData", vs = !1, Es = !1;
4585
- function _s(e, t, r) {
4639
+ let ot = "CasinoSliderData", Ss = !1, ws = !1;
4640
+ function Ts(e, t, r) {
4586
4641
  let n;
4587
- $r(e, hs, (f) => r(33, n = f));
4588
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: R = "" } = t, { mygamesiconimage: _ = "" } = t, { mbsource: A } = t, I, $, j = !0, W, z = [], k = !1, Hr = window.navigator.userAgent, G, ut, ht = !1, Le = !1;
4589
- const Ar = () => {
4642
+ Wr(e, ms, (f) => r(33, n = f));
4643
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: C = "secondaryMenu" } = t, { showsubgroups: N = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: O = "" } = t, { categoriesicon: L = "" } = t, { lobbyiconimage: R = "" } = t, { mygamesiconimage: _ = "" } = t, { mbsource: A } = t, I, $, ct, j = !0, W, z = [], k = !1, Or = window.navigator.userAgent, G, ft, mt = !1, Le = !1;
4644
+ const Lr = () => {
4590
4645
  fetch(O).then((B) => B.json()).then((B) => {
4591
4646
  Object.keys(B).forEach((pe) => {
4592
- Ut(pe, B[pe]);
4647
+ jt(pe, B[pe]);
4593
4648
  });
4594
4649
  }).catch((B) => {
4595
4650
  console.log(B);
4596
4651
  });
4597
4652
  };
4598
- Object.keys(Dt).forEach((f) => {
4599
- Ut(f, Dt[f]);
4653
+ Object.keys(kt).forEach((f) => {
4654
+ jt(f, kt[f]);
4600
4655
  });
4601
- const Br = () => {
4602
- ht == !1 && (m == "true" || u == "true" || l == "true") && z.splice(1, 0, {
4656
+ const Ir = () => {
4657
+ mt == !1 && (m == "true" || u == "true" || l == "true") && z.splice(1, 0, {
4603
4658
  // @ts-ignore
4604
4659
  id: "MYGAMES",
4605
- name: I,
4660
+ name: $,
4606
4661
  href: "",
4607
4662
  games: []
4608
- }), Yr(), ht = !0, r(26, Le = !0), Ie();
4609
- }, Pr = () => (i || (W = "Endpoint is missing! Please provide a valid endpointURL.", r(15, k = !0), r(13, j = !1), console.error(W)), s || (W = "Datasource is missing! Please provide a valid datasource.", r(15, k = !0), r(13, j = !1), console.error(W)), (!o || o.length < 2) && (W = "Language is missing! Please provide a valid language (alpha2code)", r(15, k = !0), r(13, j = !1), console.error(W)), k), Nr = () => {
4610
- if (I = n("myGamesName"), $ = n("lobbyName"), !Pr()) {
4663
+ }), tn(), mt = !0, r(26, Le = !0), Ie();
4664
+ }, Cr = () => (i || (W = "Endpoint is missing! Please provide a valid endpointURL.", r(15, k = !0), r(13, j = !1), console.error(W)), s || (W = "Datasource is missing! Please provide a valid datasource.", r(15, k = !0), r(13, j = !1), console.error(W)), (!o || o.length < 2) && (W = "Language is missing! Please provide a valid language (alpha2code)", r(15, k = !0), r(13, j = !1), console.error(W)), k), Mr = () => {
4665
+ if ($ = n("myGamesName"), ct = n("lobbyName"), !Cr()) {
4611
4666
  let f = new URL(`${i}/v1/casino/groups/${s}`);
4612
- f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform", ls(Hr)), fetch(f).then((B) => B.json()).then(
4667
+ f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform", ds(Or)), fetch(f).then((B) => B.json()).then(
4613
4668
  (B) => {
4614
- let pe = w.split(","), Ir = B.items.filter((ct) => {
4669
+ let pe = w.split(","), Ur = B.items.filter((bt) => {
4615
4670
  let Ce = !1;
4616
- if (ct.games.total > 0 && (Ce = !0, w))
4617
- for (let Cr of pe)
4618
- ct.flags == Cr && (Ce = !1);
4671
+ if (bt.games.total > 0 && (Ce = !0, w))
4672
+ for (let Dr of pe)
4673
+ bt.flags == Dr && (Ce = !1);
4619
4674
  return Ce;
4620
4675
  });
4621
- z = [], z = z.concat(Ir), z.unshift({
4676
+ z = [], z = z.concat(Ur), z.unshift({
4622
4677
  // @ts-ignore
4623
4678
  id: "LOBBY",
4624
- name: $,
4679
+ name: ct,
4625
4680
  href: "",
4626
4681
  games: []
4627
4682
  }), r(13, j = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
@@ -4633,26 +4688,26 @@ function _s(e, t, r) {
4633
4688
  r(15, k = !0), console.error("There was an error while fetching the categories", B);
4634
4689
  });
4635
4690
  }
4636
- }, Or = () => {
4691
+ }, Rr = () => {
4637
4692
  let f = b.split("$");
4638
4693
  r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
4639
4694
  }, Ie = () => {
4640
4695
  window.postMessage(
4641
4696
  {
4642
4697
  type: "SliderData",
4643
- identity: st,
4698
+ identity: ot,
4644
4699
  data: z
4645
4700
  },
4646
4701
  window.location.href
4647
4702
  );
4648
- }, lt = (f) => {
4649
- f.data && f.data.type == "SliderLoaded" && st == f.data.identity && Ie();
4703
+ }, dt = (f) => {
4704
+ f.data && f.data.type == "SliderLoaded" && ot == f.data.identity && Ie();
4650
4705
  };
4651
- Qr(() => (window.addEventListener("message", lt, !1), () => {
4652
- window.removeEventListener("message", lt);
4706
+ en(() => (window.addEventListener("message", dt, !1), () => {
4707
+ window.emMessageBus && I && I.unsubscribe(), window.removeEventListener("message", dt);
4653
4708
  }));
4654
- function Lr(f) {
4655
- ke[f ? "unshift" : "push"](() => {
4709
+ function Gr(f) {
4710
+ Ve[f ? "unshift" : "push"](() => {
4656
4711
  G = f, r(14, G);
4657
4712
  });
4658
4713
  }
@@ -4660,14 +4715,14 @@ function _s(e, t, r) {
4660
4715
  "endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(18, a = f.userid), "session" in f && r(19, h = f.session), "mostplayed" in f && r(20, u = f.mostplayed), "lastplayed" in f && r(21, l = f.lastplayed), "favorites" in f && r(22, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(23, T = f.sessioncheck), "location" in f && r(7, C = f.location), "showsubgroups" in f && r(8, N = f.showsubgroups), "filteredcategories" in f && r(24, w = f.filteredcategories), "translationurl" in f && r(25, O = f.translationurl), "categoriesicon" in f && r(9, L = f.categoriesicon), "lobbyiconimage" in f && r(10, R = f.lobbyiconimage), "mygamesiconimage" in f && r(11, _ = f.mygamesiconimage), "mbsource" in f && r(12, A = f.mbsource);
4661
4716
  }, e.$$.update = () => {
4662
4717
  e.$$.dirty[0] & /*endpoint, datasource, lang*/
4663
- 14 && i && s && o && Nr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
4664
- 7872514 && i && h && (u || l || m) && !j && Br(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
4665
- 67641345 && !j && b && (!h || Le) && Or(), e.$$.dirty[0] & /*translationurl*/
4666
- 33554432 && O && Ar(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4667
- 16400 && c && G && cs(G, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4668
- 16416 && d && G && fs(G, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4669
- 20480 && G && ms(G, `${A}.Style`);
4670
- }, r(16, ut = 0), [
4718
+ 14 && i && s && o && Mr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
4719
+ 7872514 && i && h && (u || l || m) && !j && Ir(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
4720
+ 67641345 && !j && b && (!h || Le) && Rr(), e.$$.dirty[0] & /*translationurl*/
4721
+ 33554432 && O && Lr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4722
+ 16400 && c && G && bs(G, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4723
+ 16416 && d && G && ps(G, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4724
+ 20480 && G && gs(G, `${A}.Style`);
4725
+ }, r(16, ft = 0), [
4671
4726
  b,
4672
4727
  i,
4673
4728
  s,
@@ -4684,7 +4739,7 @@ function _s(e, t, r) {
4684
4739
  j,
4685
4740
  G,
4686
4741
  k,
4687
- ut,
4742
+ ft,
4688
4743
  Ie,
4689
4744
  a,
4690
4745
  h,
@@ -4695,17 +4750,17 @@ function _s(e, t, r) {
4695
4750
  w,
4696
4751
  O,
4697
4752
  Le,
4698
- Lr
4753
+ Gr
4699
4754
  ];
4700
4755
  }
4701
- class Tr extends on {
4756
+ class Nr extends cn {
4702
4757
  constructor(t) {
4703
- super(), nn(
4758
+ super(), hn(
4704
4759
  this,
4705
4760
  t,
4706
- _s,
4707
- ys,
4708
- $t,
4761
+ Ts,
4762
+ xs,
4763
+ Xt,
4709
4764
  {
4710
4765
  endpoint: 1,
4711
4766
  datasource: 2,
@@ -4729,7 +4784,7 @@ class Tr extends on {
4729
4784
  mygamesiconimage: 11,
4730
4785
  mbsource: 12
4731
4786
  },
4732
- ds,
4787
+ ys,
4733
4788
  [-1, -1]
4734
4789
  );
4735
4790
  }
@@ -4860,42 +4915,42 @@ class Tr extends on {
4860
4915
  this.$$set({ mbsource: t }), S();
4861
4916
  }
4862
4917
  }
4863
- sn(Tr, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
4864
- const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4918
+ ln(Nr, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
4919
+ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4865
4920
  __proto__: null,
4866
- default: Tr
4921
+ default: Nr
4867
4922
  }, Symbol.toStringTag, { value: "Module" }));
4868
4923
  export {
4869
4924
  be as $,
4870
- fs as A,
4871
- ms as B,
4872
- sn as C,
4873
- Ls as D,
4874
- on as S,
4925
+ Bs as A,
4926
+ Zt as B,
4927
+ Ls as C,
4928
+ Rs as D,
4929
+ cn as S,
4875
4930
  de as a,
4876
- Er as b,
4877
- kr as c,
4878
- ie as d,
4879
- me as e,
4931
+ Tr as b,
4932
+ ln as c,
4933
+ Zr as d,
4934
+ V as e,
4880
4935
  S as f,
4881
- fe as g,
4882
- kt as h,
4883
- nn as i,
4884
- V as j,
4885
- Ts as k,
4886
- As as l,
4887
- Ps as m,
4936
+ Ps as g,
4937
+ me as h,
4938
+ hn as i,
4939
+ fe as j,
4940
+ zt as k,
4941
+ Os as l,
4942
+ ie as m,
4888
4943
  P as n,
4889
- Qr as o,
4890
- Hs as p,
4891
- ke as q,
4944
+ en as o,
4945
+ ps as p,
4946
+ gs as q,
4892
4947
  ne as r,
4893
- $t as s,
4894
- Ss as t,
4895
- Os as u,
4896
- Bs as v,
4897
- Vt as w,
4898
- ws as x,
4899
- Ns as y,
4900
- cs as z
4948
+ Xt as s,
4949
+ Is as t,
4950
+ Ns as u,
4951
+ Ms as v,
4952
+ As as w,
4953
+ Ve as x,
4954
+ bs as y,
4955
+ Cs as z
4901
4956
  };