@everymatrix/casino-tournaments-thumbnail-games 1.87.25 → 1.87.27

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 Ur = Object.defineProperty, Dr = Object.defineProperties;
2
- var Fr = Object.getOwnPropertyDescriptors;
3
- var _t = Object.getOwnPropertySymbols;
4
- var jr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable;
5
- var Ue = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
1
+ var Fr = Object.defineProperty, jr = Object.defineProperties;
2
+ var kr = Object.getOwnPropertyDescriptors;
3
+ var xt = Object.getOwnPropertySymbols;
4
+ var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
5
+ var De = (e, t, r) => t in e ? Fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- jr.call(t, r) && Ue(e, r, t[r]);
8
- if (_t)
9
- for (var r of _t(t))
10
- kr.call(t, r) && Ue(e, r, t[r]);
7
+ Vr.call(t, r) && De(e, r, t[r]);
8
+ if (xt)
9
+ for (var r of xt(t))
10
+ Xr.call(t, r) && De(e, r, t[r]);
11
11
  return e;
12
- }, xt = (e, t) => Dr(e, Fr(t));
13
- var G = (e, t, r) => (Ue(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var wt = (e, t, r) => new Promise((n, i) => {
12
+ }, St = (e, t) => jr(e, kr(t));
13
+ var G = (e, t, r) => (De(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var Tt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
17
  a(r.next(l));
@@ -30,29 +30,29 @@ var wt = (e, t, r) => new Promise((n, i) => {
30
30
  import "../stencil/ui-image-CP8Lp7fB.js";
31
31
  function U() {
32
32
  }
33
- function er(e) {
33
+ function rr(e) {
34
34
  return e();
35
35
  }
36
- function Tt() {
36
+ function Ht() {
37
37
  return /* @__PURE__ */ Object.create(null);
38
38
  }
39
- function ue(e) {
40
- e.forEach(er);
39
+ function le(e) {
40
+ e.forEach(rr);
41
41
  }
42
- function Ce(e) {
42
+ function Ie(e) {
43
43
  return typeof e == "function";
44
44
  }
45
- function tr(e, t) {
45
+ function nr(e, t) {
46
46
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
47
47
  }
48
- let ye;
49
- function St(e, t) {
50
- return e === t ? !0 : (ye || (ye = document.createElement("a")), ye.href = t, e === ye.href);
48
+ let _e;
49
+ function Bt(e, t) {
50
+ return e === t ? !0 : (_e || (_e = document.createElement("a")), _e.href = t, e === _e.href);
51
51
  }
52
- function Vr(e) {
52
+ function Wr(e) {
53
53
  return Object.keys(e).length === 0;
54
54
  }
55
- function rr(e, ...t) {
55
+ function ir(e, ...t) {
56
56
  if (e == null) {
57
57
  for (const n of t)
58
58
  n(void 0);
@@ -61,20 +61,20 @@ function rr(e, ...t) {
61
61
  const r = e.subscribe(...t);
62
62
  return r.unsubscribe ? () => r.unsubscribe() : r;
63
63
  }
64
- function Xr(e, t, r) {
65
- e.$$.on_destroy.push(rr(t, r));
64
+ function zr(e, t, r) {
65
+ e.$$.on_destroy.push(ir(t, r));
66
66
  }
67
67
  function x(e, t) {
68
68
  e.appendChild(t);
69
69
  }
70
- function Wr(e, t, r) {
71
- const n = zr(e);
70
+ function Zr(e, t, r) {
71
+ const n = Qr(e);
72
72
  if (!n.getElementById(t)) {
73
73
  const i = A("style");
74
- i.id = t, i.textContent = r, Zr(n, i);
74
+ i.id = t, i.textContent = r, Jr(n, i);
75
75
  }
76
76
  }
77
- function zr(e) {
77
+ function Qr(e) {
78
78
  if (!e)
79
79
  return document;
80
80
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -84,7 +84,7 @@ function zr(e) {
84
84
  t
85
85
  ) : e.ownerDocument;
86
86
  }
87
- function Zr(e, t) {
87
+ function Jr(e, t) {
88
88
  return x(
89
89
  /** @type {Document} */
90
90
  e.head || e,
@@ -97,14 +97,14 @@ function k(e, t, r) {
97
97
  function D(e) {
98
98
  e.parentNode && e.parentNode.removeChild(e);
99
99
  }
100
- function nr(e, t) {
100
+ function or(e, t) {
101
101
  for (let r = 0; r < e.length; r += 1)
102
102
  e[r] && e[r].d(t);
103
103
  }
104
104
  function A(e) {
105
105
  return document.createElement(e);
106
106
  }
107
- function _e(e) {
107
+ function Ee(e) {
108
108
  return document.createElementNS("http://www.w3.org/2000/svg", e);
109
109
  }
110
110
  function j(e) {
@@ -113,27 +113,27 @@ function j(e) {
113
113
  function X() {
114
114
  return j(" ");
115
115
  }
116
- function Qr() {
116
+ function Yr() {
117
117
  return j("");
118
118
  }
119
- function Ze(e, t, r, n) {
119
+ function Qe(e, t, r, n) {
120
120
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
121
121
  }
122
- function v(e, t, r) {
122
+ function g(e, t, r) {
123
123
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
124
124
  }
125
125
  function I(e, t, r) {
126
126
  const n = t.toLowerCase();
127
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : v(e, t, r);
127
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
128
128
  }
129
- function Jr(e) {
129
+ function qr(e) {
130
130
  return Array.from(e.childNodes);
131
131
  }
132
132
  function Z(e, t) {
133
133
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
134
134
  t);
135
135
  }
136
- function qr(e) {
136
+ function Kr(e) {
137
137
  const t = {};
138
138
  return e.childNodes.forEach(
139
139
  /** @param {Element} node */
@@ -142,93 +142,93 @@ function qr(e) {
142
142
  }
143
143
  ), t;
144
144
  }
145
- let me;
146
- function pe(e) {
147
- me = e;
145
+ let de;
146
+ function me(e) {
147
+ de = e;
148
148
  }
149
- function ir() {
150
- if (!me)
149
+ function sr() {
150
+ if (!de)
151
151
  throw new Error("Function called outside component initialization");
152
- return me;
152
+ return de;
153
153
  }
154
- function Yr(e) {
155
- ir().$$.on_mount.push(e);
154
+ function en(e) {
155
+ sr().$$.on_mount.push(e);
156
156
  }
157
- function Kr(e) {
158
- ir().$$.on_destroy.push(e);
157
+ function tn(e) {
158
+ sr().$$.on_destroy.push(e);
159
159
  }
160
160
  const re = [], Pe = [];
161
- let ne = [];
162
- const Ht = [], en = /* @__PURE__ */ Promise.resolve();
163
- let Qe = !1;
164
- function tn() {
165
- Qe || (Qe = !0, en.then(Y));
161
+ let ie = [];
162
+ const Pt = [], rn = /* @__PURE__ */ Promise.resolve();
163
+ let Je = !1;
164
+ function nn() {
165
+ Je || (Je = !0, rn.then(q));
166
166
  }
167
- function Je(e) {
168
- ne.push(e);
167
+ function Ye(e) {
168
+ ie.push(e);
169
169
  }
170
- const De = /* @__PURE__ */ new Set();
170
+ const Fe = /* @__PURE__ */ new Set();
171
171
  let ee = 0;
172
- function Y() {
172
+ function q() {
173
173
  if (ee !== 0)
174
174
  return;
175
- const e = me;
175
+ const e = de;
176
176
  do {
177
177
  try {
178
178
  for (; ee < re.length; ) {
179
179
  const t = re[ee];
180
- ee++, pe(t), rn(t.$$);
180
+ ee++, me(t), on(t.$$);
181
181
  }
182
182
  } catch (t) {
183
183
  throw re.length = 0, ee = 0, t;
184
184
  }
185
- for (pe(null), re.length = 0, ee = 0; Pe.length; )
185
+ for (me(null), re.length = 0, ee = 0; Pe.length; )
186
186
  Pe.pop()();
187
- for (let t = 0; t < ne.length; t += 1) {
188
- const r = ne[t];
189
- De.has(r) || (De.add(r), r());
187
+ for (let t = 0; t < ie.length; t += 1) {
188
+ const r = ie[t];
189
+ Fe.has(r) || (Fe.add(r), r());
190
190
  }
191
- ne.length = 0;
191
+ ie.length = 0;
192
192
  } while (re.length);
193
- for (; Ht.length; )
194
- Ht.pop()();
195
- Qe = !1, De.clear(), pe(e);
193
+ for (; Pt.length; )
194
+ Pt.pop()();
195
+ Je = !1, Fe.clear(), me(e);
196
196
  }
197
- function rn(e) {
197
+ function on(e) {
198
198
  if (e.fragment !== null) {
199
- e.update(), ue(e.before_update);
199
+ e.update(), le(e.before_update);
200
200
  const t = e.dirty;
201
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
201
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
202
202
  }
203
203
  }
204
- function nn(e) {
204
+ function sn(e) {
205
205
  const t = [], r = [];
206
- ne.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ne = t;
206
+ ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
207
207
  }
208
- const on = /* @__PURE__ */ new Set();
209
- function sn(e, t) {
210
- e && e.i && (on.delete(e), e.i(t));
208
+ const an = /* @__PURE__ */ new Set();
209
+ function un(e, t) {
210
+ e && e.i && (an.delete(e), e.i(t));
211
211
  }
212
- function Be(e) {
212
+ function Ae(e) {
213
213
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
214
214
  }
215
- function an(e, t, r) {
215
+ function ln(e, t, r) {
216
216
  const { fragment: n, after_update: i } = e.$$;
217
- n && n.m(t, r), Je(() => {
218
- const o = e.$$.on_mount.map(er).filter(Ce);
219
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
220
- }), i.forEach(Je);
217
+ n && n.m(t, r), Ye(() => {
218
+ const o = e.$$.on_mount.map(rr).filter(Ie);
219
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : le(o), e.$$.on_mount = [];
220
+ }), i.forEach(Ye);
221
221
  }
222
- function un(e, t) {
222
+ function hn(e, t) {
223
223
  const r = e.$$;
224
- r.fragment !== null && (nn(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
224
+ r.fragment !== null && (sn(r.after_update), le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
225
225
  }
226
- function ln(e, t) {
227
- e.$$.dirty[0] === -1 && (re.push(e), tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
226
+ function cn(e, t) {
227
+ e.$$.dirty[0] === -1 && (re.push(e), nn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
228
228
  }
229
- function hn(e, t, r, n, i, o, s = null, a = [-1]) {
230
- const l = me;
231
- pe(e);
229
+ function fn(e, t, r, n, i, o, s = null, a = [-1]) {
230
+ const l = de;
231
+ me(e);
232
232
  const u = e.$$ = {
233
233
  fragment: null,
234
234
  ctx: [],
@@ -236,7 +236,7 @@ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
236
236
  props: o,
237
237
  update: U,
238
238
  not_equal: i,
239
- bound: Tt(),
239
+ bound: Ht(),
240
240
  // lifecycle
241
241
  on_mount: [],
242
242
  on_destroy: [],
@@ -245,7 +245,7 @@ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
245
245
  after_update: [],
246
246
  context: new Map(t.context || (l ? l.$$.context : [])),
247
247
  // everything else
248
- callbacks: Tt(),
248
+ callbacks: Ht(),
249
249
  dirty: a,
250
250
  skip_bound: !1,
251
251
  root: t.target || l.$$.root
@@ -254,19 +254,19 @@ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
254
254
  let h = !1;
255
255
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
256
256
  const d = m.length ? m[0] : c;
257
- return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && ln(e, f)), c;
258
- }) : [], u.update(), h = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
257
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && cn(e, f)), c;
258
+ }) : [], u.update(), h = !0, le(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
259
259
  if (t.hydrate) {
260
- const f = Jr(t.target);
260
+ const f = qr(t.target);
261
261
  u.fragment && u.fragment.l(f), f.forEach(D);
262
262
  } else
263
263
  u.fragment && u.fragment.c();
264
- t.intro && sn(e.$$.fragment), an(e, t.target, t.anchor), Y();
264
+ t.intro && un(e.$$.fragment), ln(e, t.target, t.anchor), q();
265
265
  }
266
- pe(l);
266
+ me(l);
267
267
  }
268
- let or;
269
- typeof HTMLElement == "function" && (or = class extends HTMLElement {
268
+ let ar;
269
+ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
270
270
  constructor(t, r, n) {
271
271
  super();
272
272
  /** The Svelte component constructor */
@@ -303,14 +303,14 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
303
303
  }
304
304
  }
305
305
  connectedCallback() {
306
- return wt(this, null, function* () {
306
+ return Tt(this, null, function* () {
307
307
  if (this.$$cn = !0, !this.$$c) {
308
308
  let t = function(o) {
309
309
  return () => {
310
310
  let s;
311
311
  return {
312
312
  c: function() {
313
- s = A("slot"), o !== "default" && v(s, "name", o);
313
+ s = A("slot"), o !== "default" && g(s, "name", o);
314
314
  },
315
315
  /**
316
316
  * @param {HTMLElement} target
@@ -327,18 +327,18 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
327
327
  };
328
328
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
329
329
  return;
330
- const r = {}, n = qr(this);
330
+ const r = {}, n = Kr(this);
331
331
  for (const o of this.$$s)
332
332
  o in n && (r[o] = [t(o)]);
333
333
  for (const o of this.attributes) {
334
334
  const s = this.$$g_p(o.name);
335
- s in this.$$d || (this.$$d[s] = we(s, o.value, this.$$p_d, "toProp"));
335
+ s in this.$$d || (this.$$d[s] = Se(s, o.value, this.$$p_d, "toProp"));
336
336
  }
337
337
  for (const o in this.$$p_d)
338
338
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
339
339
  this.$$c = new this.$$ctor({
340
340
  target: this.shadowRoot || this,
341
- props: xt(Et({}, this.$$d), {
341
+ props: St(wt({}, this.$$d), {
342
342
  $$slots: r,
343
343
  $$scope: {
344
344
  ctx: []
@@ -349,7 +349,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
349
349
  this.$$r = !0;
350
350
  for (const o in this.$$p_d)
351
351
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
352
- const s = we(
352
+ const s = Se(
353
353
  o,
354
354
  this.$$d[o],
355
355
  this.$$p_d,
@@ -373,7 +373,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
373
373
  // and setting attributes through setAttribute etc, this is helpful
374
374
  attributeChangedCallback(t, r, n) {
375
375
  var i;
376
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
376
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Se(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
377
377
  }
378
378
  disconnectedCallback() {
379
379
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -386,7 +386,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
386
386
  ) || t;
387
387
  }
388
388
  });
389
- function we(e, t, r, n) {
389
+ function Se(e, t, r, n) {
390
390
  var o;
391
391
  const i = (o = r[e]) == null ? void 0 : o.type;
392
392
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -416,8 +416,8 @@ function we(e, t, r, n) {
416
416
  return t;
417
417
  }
418
418
  }
419
- function cn(e, t, r, n, i, o) {
420
- let s = class extends or {
419
+ function pn(e, t, r, n, i, o) {
420
+ let s = class extends ar {
421
421
  constructor() {
422
422
  super(e, r, i), this.$$p_d = t;
423
423
  }
@@ -434,7 +434,7 @@ function cn(e, t, r, n, i, o) {
434
434
  },
435
435
  set(l) {
436
436
  var u;
437
- l = we(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
437
+ l = Se(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
438
438
  }
439
439
  });
440
440
  }), n.forEach((a) => {
@@ -447,7 +447,7 @@ function cn(e, t, r, n, i, o) {
447
447
  }), e.element = /** @type {any} */
448
448
  s, s;
449
449
  }
450
- class fn {
450
+ class mn {
451
451
  constructor() {
452
452
  /**
453
453
  * ### PRIVATE API
@@ -468,7 +468,7 @@ class fn {
468
468
  }
469
469
  /** @returns {void} */
470
470
  $destroy() {
471
- un(this, 1), this.$destroy = U;
471
+ hn(this, 1), this.$destroy = U;
472
472
  }
473
473
  /**
474
474
  * @template {Extract<keyof Events, string>} K
@@ -477,7 +477,7 @@ class fn {
477
477
  * @returns {() => void}
478
478
  */
479
479
  $on(t, r) {
480
- if (!Ce(r))
480
+ if (!Ie(r))
481
481
  return U;
482
482
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
483
483
  return n.push(r), () => {
@@ -490,18 +490,19 @@ class fn {
490
490
  * @returns {void}
491
491
  */
492
492
  $set(t) {
493
- this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
493
+ this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
494
494
  }
495
495
  }
496
- const pn = "4";
497
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
498
- function mn(e, t) {
496
+ const dn = "4";
497
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dn);
498
+ const ne = "__WIDGET_GLOBAL_STYLE_CACHE__";
499
+ function bn(e, t) {
499
500
  if (e) {
500
501
  const r = document.createElement("style");
501
502
  r.innerHTML = t, e.appendChild(r);
502
503
  }
503
504
  }
504
- function dn(e, t) {
505
+ function gn(e, t) {
505
506
  if (!e || !t)
506
507
  return;
507
508
  const r = new URL(t);
@@ -512,13 +513,41 @@ function dn(e, t) {
512
513
  console.error("There was an error while trying to load client styling from URL", n);
513
514
  });
514
515
  }
515
- function bn(e, t, r) {
516
- if (window.emMessageBus) {
517
- const n = document.createElement("style");
518
- window.emMessageBus.subscribe(t, (i) => {
519
- n.innerHTML = i, e && e.appendChild(n);
516
+ function vn(e, t, r, n = !1) {
517
+ if (!window.emMessageBus)
518
+ return;
519
+ if (!("adoptedStyleSheets" in Document.prototype) || !n)
520
+ return r = yn(e, t), r;
521
+ window[ne] || (window[ne] = {}), r = _n(e, t);
522
+ const o = r.unsubscribe.bind(r), s = () => {
523
+ if (window[ne][t]) {
524
+ const a = window[ne][t];
525
+ a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[ne][t];
526
+ }
527
+ o();
528
+ };
529
+ return r.unsubscribe = s, r;
530
+ }
531
+ function yn(e, t) {
532
+ const r = document.createElement("style");
533
+ return window.emMessageBus.subscribe(t, (n) => {
534
+ e && (r.innerHTML = n, e.appendChild(r));
535
+ });
536
+ }
537
+ function _n(e, t) {
538
+ return window.emMessageBus.subscribe(t, (r) => {
539
+ var a;
540
+ if (!e)
541
+ return;
542
+ const n = e.getRootNode(), i = window[ne];
543
+ let o = (a = i[t]) == null ? void 0 : a.sheet;
544
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
545
+ sheet: o,
546
+ refCount: 1
520
547
  });
521
- }
548
+ const s = n.adoptedStyleSheets || [];
549
+ s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
550
+ });
522
551
  }
523
552
  /*! *****************************************************************************
524
553
  Copyright (c) Microsoft Corporation.
@@ -542,7 +571,7 @@ var qe = function(e, t) {
542
571
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
543
572
  }, qe(e, t);
544
573
  };
545
- function ge(e, t) {
574
+ function ve(e, t) {
546
575
  if (typeof t != "function" && t !== null)
547
576
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
548
577
  qe(e, t);
@@ -551,7 +580,7 @@ function ge(e, t) {
551
580
  }
552
581
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
553
582
  }
554
- function Ye(e) {
583
+ function Ke(e) {
555
584
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
556
585
  if (r)
557
586
  return r.call(e);
@@ -563,7 +592,7 @@ function Ye(e) {
563
592
  };
564
593
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
565
594
  }
566
- function Ke(e, t) {
595
+ function et(e, t) {
567
596
  var r = typeof Symbol == "function" && e[Symbol.iterator];
568
597
  if (!r)
569
598
  return e;
@@ -583,7 +612,7 @@ function Ke(e, t) {
583
612
  }
584
613
  return o;
585
614
  }
586
- function et(e, t, r) {
615
+ function tt(e, t, r) {
587
616
  if (arguments.length === 2)
588
617
  for (var n = 0, i = t.length, o; n < i; n++)
589
618
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
@@ -592,13 +621,13 @@ function et(e, t, r) {
592
621
  function W(e) {
593
622
  return typeof e == "function";
594
623
  }
595
- function sr(e) {
624
+ function ur(e) {
596
625
  var t = function(n) {
597
626
  Error.call(n), n.stack = new Error().stack;
598
627
  }, r = e(t);
599
628
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
600
629
  }
601
- var Fe = sr(function(e) {
630
+ var je = ur(function(e) {
602
631
  return function(r) {
603
632
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
604
633
  ` + r.map(function(n, i) {
@@ -607,13 +636,13 @@ var Fe = sr(function(e) {
607
636
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
608
637
  };
609
638
  });
610
- function tt(e, t) {
639
+ function rt(e, t) {
611
640
  if (e) {
612
641
  var r = e.indexOf(t);
613
642
  0 <= r && e.splice(r, 1);
614
643
  }
615
644
  }
616
- var Ie = function() {
645
+ var Le = function() {
617
646
  function e(t) {
618
647
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
619
648
  }
@@ -625,12 +654,12 @@ var Ie = function() {
625
654
  if (s)
626
655
  if (this._parentage = null, Array.isArray(s))
627
656
  try {
628
- for (var a = Ye(s), l = a.next(); !l.done; l = a.next()) {
657
+ for (var a = Ke(s), l = a.next(); !l.done; l = a.next()) {
629
658
  var u = l.value;
630
659
  u.remove(this);
631
660
  }
632
- } catch (b) {
633
- t = { error: b };
661
+ } catch (v) {
662
+ t = { error: v };
634
663
  } finally {
635
664
  try {
636
665
  l && !l.done && (r = a.return) && r.call(a);
@@ -645,23 +674,23 @@ var Ie = function() {
645
674
  if (W(h))
646
675
  try {
647
676
  h();
648
- } catch (b) {
649
- o = b instanceof Fe ? b.errors : [b];
677
+ } catch (v) {
678
+ o = v instanceof je ? v.errors : [v];
650
679
  }
651
680
  var f = this._finalizers;
652
681
  if (f) {
653
682
  this._finalizers = null;
654
683
  try {
655
- for (var c = Ye(f), m = c.next(); !m.done; m = c.next()) {
684
+ for (var c = Ke(f), m = c.next(); !m.done; m = c.next()) {
656
685
  var d = m.value;
657
686
  try {
658
- Pt(d);
659
- } catch (b) {
660
- o = o != null ? o : [], b instanceof Fe ? o = et(et([], Ke(o)), Ke(b.errors)) : o.push(b);
687
+ At(d);
688
+ } catch (v) {
689
+ o = o != null ? o : [], v instanceof je ? o = tt(tt([], et(o)), et(v.errors)) : o.push(v);
661
690
  }
662
691
  }
663
- } catch (b) {
664
- n = { error: b };
692
+ } catch (v) {
693
+ n = { error: v };
665
694
  } finally {
666
695
  try {
667
696
  m && !m.done && (i = c.return) && i.call(c);
@@ -672,13 +701,13 @@ var Ie = function() {
672
701
  }
673
702
  }
674
703
  if (o)
675
- throw new Fe(o);
704
+ throw new je(o);
676
705
  }
677
706
  }, e.prototype.add = function(t) {
678
707
  var r;
679
708
  if (t && t !== this)
680
709
  if (this.closed)
681
- Pt(t);
710
+ At(t);
682
711
  else {
683
712
  if (t instanceof e) {
684
713
  if (t.closed || t._hasParent(this))
@@ -695,52 +724,52 @@ var Ie = function() {
695
724
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
696
725
  }, e.prototype._removeParent = function(t) {
697
726
  var r = this._parentage;
698
- r === t ? this._parentage = null : Array.isArray(r) && tt(r, t);
727
+ r === t ? this._parentage = null : Array.isArray(r) && rt(r, t);
699
728
  }, e.prototype.remove = function(t) {
700
729
  var r = this._finalizers;
701
- r && tt(r, t), t instanceof e && t._removeParent(this);
730
+ r && rt(r, t), t instanceof e && t._removeParent(this);
702
731
  }, e.EMPTY = function() {
703
732
  var t = new e();
704
733
  return t.closed = !0, t;
705
734
  }(), e;
706
- }(), ar = Ie.EMPTY;
707
- function ur(e) {
708
- return e instanceof Ie || e && "closed" in e && W(e.remove) && W(e.add) && W(e.unsubscribe);
735
+ }(), lr = Le.EMPTY;
736
+ function hr(e) {
737
+ return e instanceof Le || e && "closed" in e && W(e.remove) && W(e.add) && W(e.unsubscribe);
709
738
  }
710
- function Pt(e) {
739
+ function At(e) {
711
740
  W(e) ? e() : e.unsubscribe();
712
741
  }
713
- var gn = {
742
+ var En = {
714
743
  Promise: void 0
715
- }, vn = {
744
+ }, xn = {
716
745
  setTimeout: function(e, t) {
717
746
  for (var r = [], n = 2; n < arguments.length; n++)
718
747
  r[n - 2] = arguments[n];
719
- return setTimeout.apply(void 0, et([e, t], Ke(r)));
748
+ return setTimeout.apply(void 0, tt([e, t], et(r)));
720
749
  },
721
750
  clearTimeout: function(e) {
722
751
  return clearTimeout(e);
723
752
  },
724
753
  delegate: void 0
725
754
  };
726
- function yn(e) {
727
- vn.setTimeout(function() {
755
+ function wn(e) {
756
+ xn.setTimeout(function() {
728
757
  throw e;
729
758
  });
730
759
  }
731
- function Bt() {
760
+ function Ot() {
732
761
  }
733
762
  function Te(e) {
734
763
  e();
735
764
  }
736
- var lr = function(e) {
737
- ge(t, e);
765
+ var cr = function(e) {
766
+ ve(t, e);
738
767
  function t(r) {
739
768
  var n = e.call(this) || this;
740
- return n.isStopped = !1, r ? (n.destination = r, ur(r) && r.add(n)) : n.destination = xn, n;
769
+ return n.isStopped = !1, r ? (n.destination = r, hr(r) && r.add(n)) : n.destination = Hn, n;
741
770
  }
742
771
  return t.create = function(r, n, i) {
743
- return new rt(r, n, i);
772
+ return new nt(r, n, i);
744
773
  }, t.prototype.next = function(r) {
745
774
  this.isStopped || this._next(r);
746
775
  }, t.prototype.error = function(r) {
@@ -764,7 +793,7 @@ var lr = function(e) {
764
793
  this.unsubscribe();
765
794
  }
766
795
  }, t;
767
- }(Ie), _n = function() {
796
+ }(Le), Sn = function() {
768
797
  function e(t) {
769
798
  this.partialObserver = t;
770
799
  }
@@ -774,7 +803,7 @@ var lr = function(e) {
774
803
  try {
775
804
  r.next(t);
776
805
  } catch (n) {
777
- Ee(n);
806
+ xe(n);
778
807
  }
779
808
  }, e.prototype.error = function(t) {
780
809
  var r = this.partialObserver;
@@ -782,56 +811,56 @@ var lr = function(e) {
782
811
  try {
783
812
  r.error(t);
784
813
  } catch (n) {
785
- Ee(n);
814
+ xe(n);
786
815
  }
787
816
  else
788
- Ee(t);
817
+ xe(t);
789
818
  }, e.prototype.complete = function() {
790
819
  var t = this.partialObserver;
791
820
  if (t.complete)
792
821
  try {
793
822
  t.complete();
794
823
  } catch (r) {
795
- Ee(r);
824
+ xe(r);
796
825
  }
797
826
  }, e;
798
- }(), rt = function(e) {
799
- ge(t, e);
827
+ }(), nt = function(e) {
828
+ ve(t, e);
800
829
  function t(r, n, i) {
801
830
  var o = e.call(this) || this, s;
802
831
  return W(r) || !r ? s = {
803
832
  next: r != null ? r : void 0,
804
833
  error: n != null ? n : void 0,
805
834
  complete: i != null ? i : void 0
806
- } : s = r, o.destination = new _n(s), o;
835
+ } : s = r, o.destination = new Sn(s), o;
807
836
  }
808
837
  return t;
809
- }(lr);
810
- function Ee(e) {
811
- yn(e);
838
+ }(cr);
839
+ function xe(e) {
840
+ wn(e);
812
841
  }
813
- function En(e) {
842
+ function Tn(e) {
814
843
  throw e;
815
844
  }
816
- var xn = {
845
+ var Hn = {
817
846
  closed: !0,
818
- next: Bt,
819
- error: En,
820
- complete: Bt
821
- }, wn = function() {
847
+ next: Ot,
848
+ error: Tn,
849
+ complete: Ot
850
+ }, Bn = function() {
822
851
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
823
852
  }();
824
- function Tn(e) {
853
+ function Pn(e) {
825
854
  return e;
826
855
  }
827
- function Sn(e) {
828
- return e.length === 0 ? Tn : e.length === 1 ? e[0] : function(r) {
856
+ function An(e) {
857
+ return e.length === 0 ? Pn : e.length === 1 ? e[0] : function(r) {
829
858
  return e.reduce(function(n, i) {
830
859
  return i(n);
831
860
  }, r);
832
861
  };
833
862
  }
834
- var At = function() {
863
+ var Ct = function() {
835
864
  function e(t) {
836
865
  t && (this._subscribe = t);
837
866
  }
@@ -839,7 +868,7 @@ var At = function() {
839
868
  var r = new e();
840
869
  return r.source = this, r.operator = t, r;
841
870
  }, e.prototype.subscribe = function(t, r, n) {
842
- var i = this, o = Pn(t) ? t : new rt(t, r, n);
871
+ var i = this, o = Cn(t) ? t : new nt(t, r, n);
843
872
  return Te(function() {
844
873
  var s = i, a = s.operator, l = s.source;
845
874
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -852,8 +881,8 @@ var At = function() {
852
881
  }
853
882
  }, e.prototype.forEach = function(t, r) {
854
883
  var n = this;
855
- return r = Ot(r), new r(function(i, o) {
856
- var s = new rt({
884
+ return r = Nt(r), new r(function(i, o) {
885
+ var s = new nt({
857
886
  next: function(a) {
858
887
  try {
859
888
  t(a);
@@ -869,15 +898,15 @@ var At = function() {
869
898
  }, e.prototype._subscribe = function(t) {
870
899
  var r;
871
900
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
872
- }, e.prototype[wn] = function() {
901
+ }, e.prototype[Bn] = function() {
873
902
  return this;
874
903
  }, e.prototype.pipe = function() {
875
904
  for (var t = [], r = 0; r < arguments.length; r++)
876
905
  t[r] = arguments[r];
877
- return Sn(t)(this);
906
+ return An(t)(this);
878
907
  }, e.prototype.toPromise = function(t) {
879
908
  var r = this;
880
- return t = Ot(t), new t(function(n, i) {
909
+ return t = Nt(t), new t(function(n, i) {
881
910
  var o;
882
911
  r.subscribe(function(s) {
883
912
  return o = s;
@@ -891,32 +920,32 @@ var At = function() {
891
920
  return new e(t);
892
921
  }, e;
893
922
  }();
894
- function Ot(e) {
923
+ function Nt(e) {
895
924
  var t;
896
- return (t = e != null ? e : gn.Promise) !== null && t !== void 0 ? t : Promise;
925
+ return (t = e != null ? e : En.Promise) !== null && t !== void 0 ? t : Promise;
897
926
  }
898
- function Hn(e) {
927
+ function On(e) {
899
928
  return e && W(e.next) && W(e.error) && W(e.complete);
900
929
  }
901
- function Pn(e) {
902
- return e && e instanceof lr || Hn(e) && ur(e);
930
+ function Cn(e) {
931
+ return e && e instanceof cr || On(e) && hr(e);
903
932
  }
904
- var Bn = sr(function(e) {
933
+ var Nn = ur(function(e) {
905
934
  return function() {
906
935
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
907
936
  };
908
- }), hr = function(e) {
909
- ge(t, e);
937
+ }), fr = function(e) {
938
+ ve(t, e);
910
939
  function t() {
911
940
  var r = e.call(this) || this;
912
941
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
913
942
  }
914
943
  return t.prototype.lift = function(r) {
915
- var n = new Nt(this, this);
944
+ var n = new It(this, this);
916
945
  return n.operator = r, n;
917
946
  }, t.prototype._throwIfClosed = function() {
918
947
  if (this.closed)
919
- throw new Bn();
948
+ throw new Nn();
920
949
  }, t.prototype.next = function(r) {
921
950
  var n = this;
922
951
  Te(function() {
@@ -924,7 +953,7 @@ var Bn = sr(function(e) {
924
953
  if (n._throwIfClosed(), !n.isStopped) {
925
954
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
926
955
  try {
927
- for (var s = Ye(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
956
+ for (var s = Ke(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
928
957
  var l = a.value;
929
958
  l.next(r);
930
959
  }
@@ -973,20 +1002,20 @@ var Bn = sr(function(e) {
973
1002
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
974
1003
  }, t.prototype._innerSubscribe = function(r) {
975
1004
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
976
- return o || s ? ar : (this.currentObservers = null, a.push(r), new Ie(function() {
977
- n.currentObservers = null, tt(a, r);
1005
+ return o || s ? lr : (this.currentObservers = null, a.push(r), new Le(function() {
1006
+ n.currentObservers = null, rt(a, r);
978
1007
  }));
979
1008
  }, t.prototype._checkFinalizedStatuses = function(r) {
980
1009
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
981
1010
  i ? r.error(o) : s && r.complete();
982
1011
  }, t.prototype.asObservable = function() {
983
- var r = new At();
1012
+ var r = new Ct();
984
1013
  return r.source = this, r;
985
1014
  }, t.create = function(r, n) {
986
- return new Nt(r, n);
1015
+ return new It(r, n);
987
1016
  }, t;
988
- }(At), Nt = function(e) {
989
- ge(t, e);
1017
+ }(Ct), It = function(e) {
1018
+ ve(t, e);
990
1019
  function t(r, n) {
991
1020
  var i = e.call(this) || this;
992
1021
  return i.destination = r, i.source = n, i;
@@ -1002,17 +1031,17 @@ var Bn = sr(function(e) {
1002
1031
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1003
1032
  }, t.prototype._subscribe = function(r) {
1004
1033
  var n, i;
1005
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ar;
1034
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : lr;
1006
1035
  }, t;
1007
- }(hr), cr = {
1036
+ }(fr), pr = {
1008
1037
  now: function() {
1009
- return (cr.delegate || Date).now();
1038
+ return (pr.delegate || Date).now();
1010
1039
  },
1011
1040
  delegate: void 0
1012
- }, An = function(e) {
1013
- ge(t, e);
1041
+ }, In = function(e) {
1042
+ ve(t, e);
1014
1043
  function t(r, n, i) {
1015
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = cr);
1044
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = pr);
1016
1045
  var o = e.call(this) || this;
1017
1046
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1018
1047
  }
@@ -1032,24 +1061,24 @@ var Bn = sr(function(e) {
1032
1061
  u && o.splice(0, u + 1);
1033
1062
  }
1034
1063
  }, t;
1035
- }(hr);
1036
- const Ct = [], It = {}, On = (e, t = 0) => {
1037
- if (Ct.indexOf(e) == -1) {
1038
- const r = new An(t);
1039
- It[e] = r, Ct.push(e);
1064
+ }(fr);
1065
+ const Lt = [], Mt = {}, Ln = (e, t = 0) => {
1066
+ if (Lt.indexOf(e) == -1) {
1067
+ const r = new In(t);
1068
+ Mt[e] = r, Lt.push(e);
1040
1069
  }
1041
- return It[e];
1070
+ return Mt[e];
1042
1071
  }, te = [];
1043
- function Nn(e, t) {
1072
+ function Mn(e, t) {
1044
1073
  return {
1045
- subscribe: Le(e, t).subscribe
1074
+ subscribe: Me(e, t).subscribe
1046
1075
  };
1047
1076
  }
1048
- function Le(e, t = U) {
1077
+ function Me(e, t = U) {
1049
1078
  let r;
1050
1079
  const n = /* @__PURE__ */ new Set();
1051
1080
  function i(a) {
1052
- if (tr(e, a) && (e = a, r)) {
1081
+ if (nr(e, a) && (e = a, r)) {
1053
1082
  const l = !te.length;
1054
1083
  for (const u of n)
1055
1084
  u[1](), te.push(u, e);
@@ -1071,12 +1100,12 @@ function Le(e, t = U) {
1071
1100
  }
1072
1101
  return { set: i, update: o, subscribe: s };
1073
1102
  }
1074
- function le(e, t, r) {
1103
+ function he(e, t, r) {
1075
1104
  const n = !Array.isArray(e), i = n ? [e] : e;
1076
1105
  if (!i.every(Boolean))
1077
1106
  throw new Error("derived() expects stores as input, got a falsy value");
1078
1107
  const o = t.length < 2;
1079
- return Nn(r, (s, a) => {
1108
+ return Mn(r, (s, a) => {
1080
1109
  let l = !1;
1081
1110
  const u = [];
1082
1111
  let h = 0, f = U;
@@ -1085,109 +1114,109 @@ function le(e, t, r) {
1085
1114
  return;
1086
1115
  f();
1087
1116
  const d = t(n ? u[0] : u, s, a);
1088
- o ? s(d) : f = Ce(d) ? d : U;
1117
+ o ? s(d) : f = Ie(d) ? d : U;
1089
1118
  }, m = i.map(
1090
- (d, b) => rr(
1119
+ (d, v) => ir(
1091
1120
  d,
1092
1121
  (w) => {
1093
- u[b] = w, h &= ~(1 << b), l && c();
1122
+ u[v] = w, h &= ~(1 << v), l && c();
1094
1123
  },
1095
1124
  () => {
1096
- h |= 1 << b;
1125
+ h |= 1 << v;
1097
1126
  }
1098
1127
  )
1099
1128
  );
1100
1129
  return l = !0, c(), function() {
1101
- ue(m), f(), l = !1;
1130
+ le(m), f(), l = !1;
1102
1131
  };
1103
1132
  });
1104
1133
  }
1105
- function Cn(e) {
1134
+ function Rn(e) {
1106
1135
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1107
1136
  }
1108
- var In = function(t) {
1109
- return Ln(t) && !Mn(t);
1137
+ var Gn = function(t) {
1138
+ return $n(t) && !Un(t);
1110
1139
  };
1111
- function Ln(e) {
1140
+ function $n(e) {
1112
1141
  return !!e && typeof e == "object";
1113
1142
  }
1114
- function Mn(e) {
1143
+ function Un(e) {
1115
1144
  var t = Object.prototype.toString.call(e);
1116
- return t === "[object RegExp]" || t === "[object Date]" || $n(e);
1145
+ return t === "[object RegExp]" || t === "[object Date]" || jn(e);
1117
1146
  }
1118
- var Rn = typeof Symbol == "function" && Symbol.for, Gn = Rn ? Symbol.for("react.element") : 60103;
1119
- function $n(e) {
1120
- return e.$$typeof === Gn;
1147
+ var Dn = typeof Symbol == "function" && Symbol.for, Fn = Dn ? Symbol.for("react.element") : 60103;
1148
+ function jn(e) {
1149
+ return e.$$typeof === Fn;
1121
1150
  }
1122
- function Un(e) {
1151
+ function kn(e) {
1123
1152
  return Array.isArray(e) ? [] : {};
1124
1153
  }
1125
- function de(e, t) {
1126
- return t.clone !== !1 && t.isMergeableObject(e) ? ie(Un(e), e, t) : e;
1154
+ function be(e, t) {
1155
+ return t.clone !== !1 && t.isMergeableObject(e) ? oe(kn(e), e, t) : e;
1127
1156
  }
1128
- function Dn(e, t, r) {
1157
+ function Vn(e, t, r) {
1129
1158
  return e.concat(t).map(function(n) {
1130
- return de(n, r);
1159
+ return be(n, r);
1131
1160
  });
1132
1161
  }
1133
- function Fn(e, t) {
1162
+ function Xn(e, t) {
1134
1163
  if (!t.customMerge)
1135
- return ie;
1164
+ return oe;
1136
1165
  var r = t.customMerge(e);
1137
- return typeof r == "function" ? r : ie;
1166
+ return typeof r == "function" ? r : oe;
1138
1167
  }
1139
- function jn(e) {
1168
+ function Wn(e) {
1140
1169
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1141
1170
  return Object.propertyIsEnumerable.call(e, t);
1142
1171
  }) : [];
1143
1172
  }
1144
- function Lt(e) {
1145
- return Object.keys(e).concat(jn(e));
1173
+ function Rt(e) {
1174
+ return Object.keys(e).concat(Wn(e));
1146
1175
  }
1147
- function fr(e, t) {
1176
+ function mr(e, t) {
1148
1177
  try {
1149
1178
  return t in e;
1150
1179
  } catch (r) {
1151
1180
  return !1;
1152
1181
  }
1153
1182
  }
1154
- function kn(e, t) {
1155
- return fr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1183
+ function zn(e, t) {
1184
+ return mr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1156
1185
  }
1157
- function Vn(e, t, r) {
1186
+ function Zn(e, t, r) {
1158
1187
  var n = {};
1159
- return r.isMergeableObject(e) && Lt(e).forEach(function(i) {
1160
- n[i] = de(e[i], r);
1161
- }), Lt(t).forEach(function(i) {
1162
- kn(e, i) || (fr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Fn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
1188
+ return r.isMergeableObject(e) && Rt(e).forEach(function(i) {
1189
+ n[i] = be(e[i], r);
1190
+ }), Rt(t).forEach(function(i) {
1191
+ zn(e, i) || (mr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Xn(i, r)(e[i], t[i], r) : n[i] = be(t[i], r));
1163
1192
  }), n;
1164
1193
  }
1165
- function ie(e, t, r) {
1166
- r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || In, r.cloneUnlessOtherwiseSpecified = de;
1194
+ function oe(e, t, r) {
1195
+ r = r || {}, r.arrayMerge = r.arrayMerge || Vn, r.isMergeableObject = r.isMergeableObject || Gn, r.cloneUnlessOtherwiseSpecified = be;
1167
1196
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1168
- return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : de(t, r);
1197
+ return o ? n ? r.arrayMerge(e, t, r) : Zn(e, t, r) : be(t, r);
1169
1198
  }
1170
- ie.all = function(t, r) {
1199
+ oe.all = function(t, r) {
1171
1200
  if (!Array.isArray(t))
1172
1201
  throw new Error("first argument should be an array");
1173
1202
  return t.reduce(function(n, i) {
1174
- return ie(n, i, r);
1203
+ return oe(n, i, r);
1175
1204
  }, {});
1176
1205
  };
1177
- var Xn = ie, Wn = Xn;
1178
- const zn = /* @__PURE__ */ Cn(Wn);
1179
- var nt = function(e, t) {
1180
- return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1206
+ var Qn = oe, Jn = Qn;
1207
+ const Yn = /* @__PURE__ */ Rn(Jn);
1208
+ var it = function(e, t) {
1209
+ return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1181
1210
  r.__proto__ = n;
1182
1211
  } || function(r, n) {
1183
1212
  for (var i in n)
1184
1213
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1185
- }, nt(e, t);
1214
+ }, it(e, t);
1186
1215
  };
1187
- function Me(e, t) {
1216
+ function Re(e, t) {
1188
1217
  if (typeof t != "function" && t !== null)
1189
1218
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1190
- nt(e, t);
1219
+ it(e, t);
1191
1220
  function r() {
1192
1221
  this.constructor = e;
1193
1222
  }
@@ -1203,7 +1232,7 @@ var F = function() {
1203
1232
  return t;
1204
1233
  }, F.apply(this, arguments);
1205
1234
  };
1206
- function Zn(e, t) {
1235
+ function qn(e, t) {
1207
1236
  var r = {};
1208
1237
  for (var n in e)
1209
1238
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -1212,43 +1241,43 @@ function Zn(e, t) {
1212
1241
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1213
1242
  return r;
1214
1243
  }
1215
- function je(e, t, r) {
1244
+ function ke(e, t, r) {
1216
1245
  if (r || arguments.length === 2)
1217
1246
  for (var n = 0, i = t.length, o; n < i; n++)
1218
1247
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1219
1248
  return e.concat(o || Array.prototype.slice.call(t));
1220
1249
  }
1221
- function ke(e, t) {
1222
- var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : Kn, i = t && t.strategy ? t.strategy : qn;
1250
+ function Ve(e, t) {
1251
+ var r = t && t.cache ? t.cache : oi, n = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ti;
1223
1252
  return i(e, {
1224
1253
  cache: r,
1225
1254
  serializer: n
1226
1255
  });
1227
1256
  }
1228
- function Qn(e) {
1257
+ function Kn(e) {
1229
1258
  return e == null || typeof e == "number" || typeof e == "boolean";
1230
1259
  }
1231
- function Jn(e, t, r, n) {
1232
- var i = Qn(n) ? n : r(n), o = t.get(i);
1260
+ function ei(e, t, r, n) {
1261
+ var i = Kn(n) ? n : r(n), o = t.get(i);
1233
1262
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1234
1263
  }
1235
- function pr(e, t, r) {
1264
+ function dr(e, t, r) {
1236
1265
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1237
1266
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1238
1267
  }
1239
- function mr(e, t, r, n, i) {
1268
+ function br(e, t, r, n, i) {
1240
1269
  return r.bind(t, e, n, i);
1241
1270
  }
1242
- function qn(e, t) {
1243
- var r = e.length === 1 ? Jn : pr;
1244
- return mr(e, this, r, t.cache.create(), t.serializer);
1271
+ function ti(e, t) {
1272
+ var r = e.length === 1 ? ei : dr;
1273
+ return br(e, this, r, t.cache.create(), t.serializer);
1245
1274
  }
1246
- function Yn(e, t) {
1247
- return mr(e, this, pr, t.cache.create(), t.serializer);
1275
+ function ri(e, t) {
1276
+ return br(e, this, dr, t.cache.create(), t.serializer);
1248
1277
  }
1249
- var Kn = function() {
1278
+ var ni = function() {
1250
1279
  return JSON.stringify(arguments);
1251
- }, ei = (
1280
+ }, ii = (
1252
1281
  /** @class */
1253
1282
  function() {
1254
1283
  function e() {
@@ -1260,71 +1289,71 @@ var Kn = function() {
1260
1289
  this.cache[t] = r;
1261
1290
  }, e;
1262
1291
  }()
1263
- ), ti = {
1292
+ ), oi = {
1264
1293
  create: function() {
1265
- return new ei();
1294
+ return new ii();
1266
1295
  }
1267
- }, Ve = {
1268
- variadic: Yn
1269
- }, Ae = function() {
1270
- return Ae = Object.assign || function(t) {
1296
+ }, Xe = {
1297
+ variadic: ri
1298
+ }, Oe = function() {
1299
+ return Oe = Object.assign || function(t) {
1271
1300
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1272
1301
  r = arguments[n];
1273
1302
  for (var o in r)
1274
1303
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1275
1304
  }
1276
1305
  return t;
1277
- }, Ae.apply(this, arguments);
1306
+ }, Oe.apply(this, arguments);
1278
1307
  };
1279
- var y;
1308
+ var _;
1280
1309
  (function(e) {
1281
1310
  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";
1282
- })(y || (y = {}));
1283
- var T;
1311
+ })(_ || (_ = {}));
1312
+ var H;
1284
1313
  (function(e) {
1285
1314
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1286
- })(T || (T = {}));
1287
- var oe;
1315
+ })(H || (H = {}));
1316
+ var se;
1288
1317
  (function(e) {
1289
1318
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1290
- })(oe || (oe = {}));
1291
- function Mt(e) {
1292
- return e.type === T.literal;
1293
- }
1294
- function ri(e) {
1295
- return e.type === T.argument;
1296
- }
1297
- function dr(e) {
1298
- return e.type === T.number;
1319
+ })(se || (se = {}));
1320
+ function Gt(e) {
1321
+ return e.type === H.literal;
1299
1322
  }
1300
- function br(e) {
1301
- return e.type === T.date;
1323
+ function si(e) {
1324
+ return e.type === H.argument;
1302
1325
  }
1303
1326
  function gr(e) {
1304
- return e.type === T.time;
1327
+ return e.type === H.number;
1305
1328
  }
1306
1329
  function vr(e) {
1307
- return e.type === T.select;
1330
+ return e.type === H.date;
1308
1331
  }
1309
1332
  function yr(e) {
1310
- return e.type === T.plural;
1311
- }
1312
- function ni(e) {
1313
- return e.type === T.pound;
1333
+ return e.type === H.time;
1314
1334
  }
1315
1335
  function _r(e) {
1316
- return e.type === T.tag;
1336
+ return e.type === H.select;
1317
1337
  }
1318
1338
  function Er(e) {
1319
- return !!(e && typeof e == "object" && e.type === oe.number);
1339
+ return e.type === H.plural;
1320
1340
  }
1321
- function it(e) {
1322
- return !!(e && typeof e == "object" && e.type === oe.dateTime);
1341
+ function ai(e) {
1342
+ return e.type === H.pound;
1323
1343
  }
1324
- var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
1325
- function oi(e) {
1344
+ function xr(e) {
1345
+ return e.type === H.tag;
1346
+ }
1347
+ function wr(e) {
1348
+ return !!(e && typeof e == "object" && e.type === se.number);
1349
+ }
1350
+ function ot(e) {
1351
+ return !!(e && typeof e == "object" && e.type === se.dateTime);
1352
+ }
1353
+ var Sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ui = /(?:[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;
1354
+ function li(e) {
1326
1355
  var t = {};
1327
- return e.replace(ii, function(r) {
1356
+ return e.replace(ui, function(r) {
1328
1357
  var n = r.length;
1329
1358
  switch (r[0]) {
1330
1359
  case "G":
@@ -1413,21 +1442,21 @@ function oi(e) {
1413
1442
  return "";
1414
1443
  }), t;
1415
1444
  }
1416
- var B = function() {
1417
- return B = Object.assign || function(t) {
1445
+ var P = function() {
1446
+ return P = Object.assign || function(t) {
1418
1447
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1419
1448
  r = arguments[n];
1420
1449
  for (var o in r)
1421
1450
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1422
1451
  }
1423
1452
  return t;
1424
- }, B.apply(this, arguments);
1453
+ }, P.apply(this, arguments);
1425
1454
  };
1426
- var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1427
- function ai(e) {
1455
+ var hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1456
+ function ci(e) {
1428
1457
  if (e.length === 0)
1429
1458
  throw new Error("Number skeleton cannot be empty");
1430
- for (var t = e.split(si).filter(function(c) {
1459
+ for (var t = e.split(hi).filter(function(c) {
1431
1460
  return c.length > 0;
1432
1461
  }), r = [], n = 0, i = t; n < i.length; n++) {
1433
1462
  var o = i[n], s = o.split("/");
@@ -1442,17 +1471,17 @@ function ai(e) {
1442
1471
  }
1443
1472
  return r;
1444
1473
  }
1445
- function ui(e) {
1474
+ function fi(e) {
1446
1475
  return e.replace(/^(.*?)-/, "");
1447
1476
  }
1448
- var Rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wr = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, Tr = /^(0+)$/;
1449
- function Gt(e) {
1477
+ var $t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tr = /^(@+)?(\+|#+)?[rs]?$/g, pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Hr = /^(0+)$/;
1478
+ function Ut(e) {
1450
1479
  var t = {};
1451
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wr, function(r, n, i) {
1480
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tr, function(r, n, i) {
1452
1481
  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)), "";
1453
1482
  }), t;
1454
1483
  }
1455
- function Sr(e) {
1484
+ function Br(e) {
1456
1485
  switch (e) {
1457
1486
  case "sign-auto":
1458
1487
  return {
@@ -1492,7 +1521,7 @@ function Sr(e) {
1492
1521
  };
1493
1522
  }
1494
1523
  }
1495
- function hi(e) {
1524
+ function mi(e) {
1496
1525
  var t;
1497
1526
  if (e[0] === "E" && e[1] === "E" ? (t = {
1498
1527
  notation: "engineering"
@@ -1500,17 +1529,17 @@ function hi(e) {
1500
1529
  notation: "scientific"
1501
1530
  }, e = e.slice(1)), t) {
1502
1531
  var r = e.slice(0, 2);
1503
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tr.test(e))
1532
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Hr.test(e))
1504
1533
  throw new Error("Malformed concise eng/scientific notation");
1505
1534
  t.minimumIntegerDigits = e.length;
1506
1535
  }
1507
1536
  return t;
1508
1537
  }
1509
- function $t(e) {
1510
- var t = {}, r = Sr(e);
1538
+ function Dt(e) {
1539
+ var t = {}, r = Br(e);
1511
1540
  return r || t;
1512
1541
  }
1513
- function ci(e) {
1542
+ function di(e) {
1514
1543
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1515
1544
  var i = n[r];
1516
1545
  switch (i.stem) {
@@ -1534,7 +1563,7 @@ function ci(e) {
1534
1563
  continue;
1535
1564
  case "measure-unit":
1536
1565
  case "unit":
1537
- t.style = "unit", t.unit = ui(i.options[0]);
1566
+ t.style = "unit", t.unit = fi(i.options[0]);
1538
1567
  continue;
1539
1568
  case "compact-short":
1540
1569
  case "K":
@@ -1545,13 +1574,13 @@ function ci(e) {
1545
1574
  t.notation = "compact", t.compactDisplay = "long";
1546
1575
  continue;
1547
1576
  case "scientific":
1548
- t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1549
- return B(B({}, l), $t(u));
1577
+ t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1578
+ return P(P({}, l), Dt(u));
1550
1579
  }, {}));
1551
1580
  continue;
1552
1581
  case "engineering":
1553
- t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1554
- return B(B({}, l), $t(u));
1582
+ t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1583
+ return P(P({}, l), Dt(u));
1555
1584
  }, {}));
1556
1585
  continue;
1557
1586
  case "notation-simple":
@@ -1596,7 +1625,7 @@ function ci(e) {
1596
1625
  case "integer-width":
1597
1626
  if (i.options.length > 1)
1598
1627
  throw new RangeError("integer-width stems only accept a single optional option");
1599
- i.options[0].replace(li, function(l, u, h, f, c, m) {
1628
+ i.options[0].replace(pi, function(l, u, h, f, c, m) {
1600
1629
  if (u)
1601
1630
  t.minimumIntegerDigits = h.length;
1602
1631
  else {
@@ -1609,32 +1638,32 @@ function ci(e) {
1609
1638
  });
1610
1639
  continue;
1611
1640
  }
1612
- if (Tr.test(i.stem)) {
1641
+ if (Hr.test(i.stem)) {
1613
1642
  t.minimumIntegerDigits = i.stem.length;
1614
1643
  continue;
1615
1644
  }
1616
- if (Rt.test(i.stem)) {
1645
+ if ($t.test(i.stem)) {
1617
1646
  if (i.options.length > 1)
1618
1647
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1619
- i.stem.replace(Rt, function(l, u, h, f, c, m) {
1648
+ i.stem.replace($t, function(l, u, h, f, c, m) {
1620
1649
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1621
1650
  });
1622
1651
  var o = i.options[0];
1623
- o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Gt(o)));
1652
+ o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Ut(o)));
1624
1653
  continue;
1625
1654
  }
1626
- if (wr.test(i.stem)) {
1627
- t = B(B({}, t), Gt(i.stem));
1655
+ if (Tr.test(i.stem)) {
1656
+ t = P(P({}, t), Ut(i.stem));
1628
1657
  continue;
1629
1658
  }
1630
- var s = Sr(i.stem);
1631
- s && (t = B(B({}, t), s));
1632
- var a = hi(i.stem);
1633
- a && (t = B(B({}, t), a));
1659
+ var s = Br(i.stem);
1660
+ s && (t = P(P({}, t), s));
1661
+ var a = mi(i.stem);
1662
+ a && (t = P(P({}, t), a));
1634
1663
  }
1635
1664
  return t;
1636
1665
  }
1637
- var xe = {
1666
+ var we = {
1638
1667
  "001": [
1639
1668
  "H",
1640
1669
  "h"
@@ -3049,13 +3078,13 @@ var xe = {
3049
3078
  "h"
3050
3079
  ]
3051
3080
  };
3052
- function fi(e, t) {
3081
+ function bi(e, t) {
3053
3082
  for (var r = "", n = 0; n < e.length; n++) {
3054
3083
  var i = e.charAt(n);
3055
3084
  if (i === "j") {
3056
3085
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3057
3086
  o++, n++;
3058
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = pi(t);
3087
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = gi(t);
3059
3088
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3060
3089
  r += l;
3061
3090
  for (; s-- > 0; )
@@ -3065,7 +3094,7 @@ function fi(e, t) {
3065
3094
  }
3066
3095
  return r;
3067
3096
  }
3068
- function pi(e) {
3097
+ function gi(e) {
3069
3098
  var t = e.hourCycle;
3070
3099
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3071
3100
  e.hourCycles && // @ts-ignore
@@ -3084,23 +3113,23 @@ function pi(e) {
3084
3113
  }
3085
3114
  var r = e.language, n;
3086
3115
  r !== "root" && (n = e.maximize().region);
3087
- var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
3116
+ var i = we[n || ""] || we[r || ""] || we["".concat(r, "-001")] || we["001"];
3088
3117
  return i[0];
3089
3118
  }
3090
- var Xe, mi = new RegExp("^".concat(xr.source, "*")), di = new RegExp("".concat(xr.source, "*$"));
3119
+ var We, vi = new RegExp("^".concat(Sr.source, "*")), yi = new RegExp("".concat(Sr.source, "*$"));
3091
3120
  function E(e, t) {
3092
3121
  return { start: e, end: t };
3093
3122
  }
3094
- var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, vi = !!Object.fromEntries, yi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, Ei = !!String.prototype.trimEnd, xi = !!Number.isSafeInteger, wi = xi ? Number.isSafeInteger : function(e) {
3123
+ var _i = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ei = !!String.fromCodePoint, xi = !!Object.fromEntries, wi = !!String.prototype.codePointAt, Si = !!String.prototype.trimStart, Ti = !!String.prototype.trimEnd, Hi = !!Number.isSafeInteger, Bi = Hi ? Number.isSafeInteger : function(e) {
3095
3124
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3096
- }, ot = !0;
3125
+ }, st = !0;
3097
3126
  try {
3098
- var Ti = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3099
- ot = ((Xe = Ti.exec("a")) === null || Xe === void 0 ? void 0 : Xe[0]) === "a";
3127
+ var Pi = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3128
+ st = ((We = Pi.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
3100
3129
  } catch (e) {
3101
- ot = !1;
3130
+ st = !1;
3102
3131
  }
3103
- var Ut = bi ? (
3132
+ var Ft = _i ? (
3104
3133
  // Native
3105
3134
  function(t, r, n) {
3106
3135
  return t.startsWith(r, n);
@@ -3110,7 +3139,7 @@ var Ut = bi ? (
3110
3139
  function(t, r, n) {
3111
3140
  return t.slice(n, n + r.length) === r;
3112
3141
  }
3113
- ), st = gi ? String.fromCodePoint : (
3142
+ ), at = Ei ? String.fromCodePoint : (
3114
3143
  // IE11
3115
3144
  function() {
3116
3145
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3122,9 +3151,9 @@ var Ut = bi ? (
3122
3151
  }
3123
3152
  return n;
3124
3153
  }
3125
- ), Dt = (
3154
+ ), jt = (
3126
3155
  // native
3127
- vi ? Object.fromEntries : (
3156
+ xi ? Object.fromEntries : (
3128
3157
  // Ponyfill
3129
3158
  function(t) {
3130
3159
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3134,7 +3163,7 @@ var Ut = bi ? (
3134
3163
  return r;
3135
3164
  }
3136
3165
  )
3137
- ), Hr = yi ? (
3166
+ ), Pr = wi ? (
3138
3167
  // Native
3139
3168
  function(t, r) {
3140
3169
  return t.codePointAt(r);
@@ -3148,7 +3177,7 @@ var Ut = bi ? (
3148
3177
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3149
3178
  }
3150
3179
  }
3151
- ), Si = _i ? (
3180
+ ), Ai = Si ? (
3152
3181
  // Native
3153
3182
  function(t) {
3154
3183
  return t.trimStart();
@@ -3156,9 +3185,9 @@ var Ut = bi ? (
3156
3185
  ) : (
3157
3186
  // Ponyfill
3158
3187
  function(t) {
3159
- return t.replace(mi, "");
3188
+ return t.replace(vi, "");
3160
3189
  }
3161
- ), Hi = Ei ? (
3190
+ ), Oi = Ti ? (
3162
3191
  // Native
3163
3192
  function(t) {
3164
3193
  return t.trimEnd();
@@ -3166,32 +3195,32 @@ var Ut = bi ? (
3166
3195
  ) : (
3167
3196
  // Ponyfill
3168
3197
  function(t) {
3169
- return t.replace(di, "");
3198
+ return t.replace(yi, "");
3170
3199
  }
3171
3200
  );
3172
- function Pr(e, t) {
3201
+ function Ar(e, t) {
3173
3202
  return new RegExp(e, t);
3174
3203
  }
3175
- var at;
3176
- if (ot) {
3177
- var Ft = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3178
- at = function(t, r) {
3204
+ var ut;
3205
+ if (st) {
3206
+ var kt = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3207
+ ut = function(t, r) {
3179
3208
  var n;
3180
- Ft.lastIndex = r;
3181
- var i = Ft.exec(t);
3209
+ kt.lastIndex = r;
3210
+ var i = kt.exec(t);
3182
3211
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3183
3212
  };
3184
3213
  } else
3185
- at = function(t, r) {
3214
+ ut = function(t, r) {
3186
3215
  for (var n = []; ; ) {
3187
- var i = Hr(t, r);
3188
- if (i === void 0 || Br(i) || Oi(i))
3216
+ var i = Pr(t, r);
3217
+ if (i === void 0 || Or(i) || Li(i))
3189
3218
  break;
3190
3219
  n.push(i), r += i >= 65536 ? 2 : 1;
3191
3220
  }
3192
- return st.apply(void 0, n);
3221
+ return at.apply(void 0, n);
3193
3222
  };
3194
- var Pi = (
3223
+ var Ci = (
3195
3224
  /** @class */
3196
3225
  function() {
3197
3226
  function e(t, r) {
@@ -3215,14 +3244,14 @@ var Pi = (
3215
3244
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3216
3245
  var a = this.clonePosition();
3217
3246
  this.bump(), i.push({
3218
- type: T.pound,
3247
+ type: H.pound,
3219
3248
  location: E(a, this.clonePosition())
3220
3249
  });
3221
3250
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3222
3251
  if (n)
3223
3252
  break;
3224
- return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
3225
- } else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
3253
+ return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
3254
+ } else if (o === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
3226
3255
  var s = this.parseTag(t, r);
3227
3256
  if (s.err)
3228
3257
  return s;
@@ -3243,7 +3272,7 @@ var Pi = (
3243
3272
  if (this.bumpSpace(), this.bumpIf("/>"))
3244
3273
  return {
3245
3274
  val: {
3246
- type: T.literal,
3275
+ type: H.literal,
3247
3276
  value: "<".concat(i, "/>"),
3248
3277
  location: E(n, this.clonePosition())
3249
3278
  },
@@ -3255,25 +3284,25 @@ var Pi = (
3255
3284
  return o;
3256
3285
  var s = o.val, a = this.clonePosition();
3257
3286
  if (this.bumpIf("</")) {
3258
- if (this.isEOF() || !ut(this.char()))
3259
- return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
3287
+ if (this.isEOF() || !lt(this.char()))
3288
+ return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
3260
3289
  var l = this.clonePosition(), u = this.parseTagName();
3261
- return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3290
+ return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3262
3291
  val: {
3263
- type: T.tag,
3292
+ type: H.tag,
3264
3293
  value: i,
3265
3294
  children: s,
3266
3295
  location: E(n, this.clonePosition())
3267
3296
  },
3268
3297
  err: null
3269
- } : this.error(y.INVALID_TAG, E(a, this.clonePosition())));
3298
+ } : this.error(_.INVALID_TAG, E(a, this.clonePosition())));
3270
3299
  } else
3271
- return this.error(y.UNCLOSED_TAG, E(n, this.clonePosition()));
3300
+ return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
3272
3301
  } else
3273
- return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
3302
+ return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
3274
3303
  }, e.prototype.parseTagName = function() {
3275
3304
  var t = this.offset();
3276
- for (this.bump(); !this.isEOF() && Ai(this.char()); )
3305
+ for (this.bump(); !this.isEOF() && Ii(this.char()); )
3277
3306
  this.bump();
3278
3307
  return this.message.slice(t, this.offset());
3279
3308
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3297,12 +3326,12 @@ var Pi = (
3297
3326
  }
3298
3327
  var l = E(n, this.clonePosition());
3299
3328
  return {
3300
- val: { type: T.literal, value: i, location: l },
3329
+ val: { type: H.literal, value: i, location: l },
3301
3330
  err: null
3302
3331
  };
3303
3332
  }, e.prototype.tryParseLeftAngleBracket = function() {
3304
3333
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3305
- !Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
3334
+ !Ni(this.peek() || 0)) ? (this.bump(), "<") : null;
3306
3335
  }, e.prototype.tryParseQuote = function(t) {
3307
3336
  if (this.isEOF() || this.char() !== 39)
3308
3337
  return null;
@@ -3336,28 +3365,28 @@ var Pi = (
3336
3365
  r.push(n);
3337
3366
  this.bump();
3338
3367
  }
3339
- return st.apply(void 0, r);
3368
+ return at.apply(void 0, r);
3340
3369
  }, e.prototype.tryParseUnquoted = function(t, r) {
3341
3370
  if (this.isEOF())
3342
3371
  return null;
3343
3372
  var n = this.char();
3344
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
3373
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
3345
3374
  }, e.prototype.parseArgument = function(t, r) {
3346
3375
  var n = this.clonePosition();
3347
3376
  if (this.bump(), this.bumpSpace(), this.isEOF())
3348
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3377
+ return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3349
3378
  if (this.char() === 125)
3350
- return this.bump(), this.error(y.EMPTY_ARGUMENT, E(n, this.clonePosition()));
3379
+ return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
3351
3380
  var i = this.parseIdentifierIfPossible().value;
3352
3381
  if (!i)
3353
- return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3382
+ return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3354
3383
  if (this.bumpSpace(), this.isEOF())
3355
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3384
+ return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
3356
3385
  switch (this.char()) {
3357
3386
  case 125:
3358
3387
  return this.bump(), {
3359
3388
  val: {
3360
- type: T.argument,
3389
+ type: H.argument,
3361
3390
  // value does not include the opening and closing braces.
3362
3391
  value: i,
3363
3392
  location: E(n, this.clonePosition())
@@ -3365,12 +3394,12 @@ var Pi = (
3365
3394
  err: null
3366
3395
  };
3367
3396
  case 44:
3368
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3397
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3369
3398
  default:
3370
- return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3399
+ return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
3371
3400
  }
3372
3401
  }, e.prototype.parseIdentifierIfPossible = function() {
3373
- var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
3402
+ var t = this.clonePosition(), r = this.offset(), n = ut(this.message, r), i = r + n.length;
3374
3403
  this.bumpTo(i);
3375
3404
  var o = this.clonePosition(), s = E(t, o);
3376
3405
  return { value: n, location: s };
@@ -3378,7 +3407,7 @@ var Pi = (
3378
3407
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3379
3408
  switch (a) {
3380
3409
  case "":
3381
- return this.error(y.EXPECT_ARGUMENT_TYPE, E(s, l));
3410
+ return this.error(_.EXPECT_ARGUMENT_TYPE, E(s, l));
3382
3411
  case "number":
3383
3412
  case "date":
3384
3413
  case "time": {
@@ -3389,46 +3418,46 @@ var Pi = (
3389
3418
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3390
3419
  if (f.err)
3391
3420
  return f;
3392
- var c = Hi(f.val);
3421
+ var c = Oi(f.val);
3393
3422
  if (c.length === 0)
3394
- return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
3423
+ return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
3395
3424
  var m = E(h, this.clonePosition());
3396
3425
  u = { style: c, styleLocation: m };
3397
3426
  }
3398
3427
  var d = this.tryParseArgumentClose(i);
3399
3428
  if (d.err)
3400
3429
  return d;
3401
- var b = E(i, this.clonePosition());
3402
- if (u && Ut(u == null ? void 0 : u.style, "::", 0)) {
3403
- var w = Si(u.style.slice(2));
3430
+ var v = E(i, this.clonePosition());
3431
+ if (u && Ft(u == null ? void 0 : u.style, "::", 0)) {
3432
+ var w = Ai(u.style.slice(2));
3404
3433
  if (a === "number") {
3405
3434
  var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
3406
3435
  return f.err ? f : {
3407
- val: { type: T.number, value: n, location: b, style: f.val },
3436
+ val: { type: H.number, value: n, location: v, style: f.val },
3408
3437
  err: null
3409
3438
  };
3410
3439
  } else {
3411
3440
  if (w.length === 0)
3412
- return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
3413
- var O = w;
3414
- this.locale && (O = fi(w, this.locale));
3441
+ return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
3442
+ var T = w;
3443
+ this.locale && (T = bi(w, this.locale));
3415
3444
  var c = {
3416
- type: oe.dateTime,
3417
- pattern: O,
3445
+ type: se.dateTime,
3446
+ pattern: T,
3418
3447
  location: u.styleLocation,
3419
- parsedOptions: this.shouldParseSkeletons ? oi(O) : {}
3420
- }, _ = a === "date" ? T.date : T.time;
3448
+ parsedOptions: this.shouldParseSkeletons ? li(T) : {}
3449
+ }, y = a === "date" ? H.date : H.time;
3421
3450
  return {
3422
- val: { type: _, value: n, location: b, style: c },
3451
+ val: { type: y, value: n, location: v, style: c },
3423
3452
  err: null
3424
3453
  };
3425
3454
  }
3426
3455
  }
3427
3456
  return {
3428
3457
  val: {
3429
- type: a === "number" ? T.number : a === "date" ? T.date : T.time,
3458
+ type: a === "number" ? H.number : a === "date" ? H.date : H.time,
3430
3459
  value: n,
3431
- location: b,
3460
+ location: v,
3432
3461
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3433
3462
  },
3434
3463
  err: null
@@ -3439,50 +3468,50 @@ var Pi = (
3439
3468
  case "select": {
3440
3469
  var S = this.clonePosition();
3441
3470
  if (this.bumpSpace(), !this.bumpIf(","))
3442
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, Ae({}, S)));
3471
+ return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(S, Oe({}, S)));
3443
3472
  this.bumpSpace();
3444
- var L = this.parseIdentifierIfPossible(), g = 0;
3473
+ var L = this.parseIdentifierIfPossible(), b = 0;
3445
3474
  if (a !== "select" && L.value === "offset") {
3446
3475
  if (!this.bumpIf(":"))
3447
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
3476
+ return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
3448
3477
  this.bumpSpace();
3449
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3478
+ var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3450
3479
  if (f.err)
3451
3480
  return f;
3452
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), g = f.val;
3481
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), b = f.val;
3453
3482
  }
3454
- var P = this.tryParsePluralOrSelectOptions(t, a, r, L);
3455
- if (P.err)
3456
- return P;
3483
+ var B = this.tryParsePluralOrSelectOptions(t, a, r, L);
3484
+ if (B.err)
3485
+ return B;
3457
3486
  var d = this.tryParseArgumentClose(i);
3458
3487
  if (d.err)
3459
3488
  return d;
3460
- var H = E(i, this.clonePosition());
3489
+ var C = E(i, this.clonePosition());
3461
3490
  return a === "select" ? {
3462
3491
  val: {
3463
- type: T.select,
3492
+ type: H.select,
3464
3493
  value: n,
3465
- options: Dt(P.val),
3466
- location: H
3494
+ options: jt(B.val),
3495
+ location: C
3467
3496
  },
3468
3497
  err: null
3469
3498
  } : {
3470
3499
  val: {
3471
- type: T.plural,
3500
+ type: H.plural,
3472
3501
  value: n,
3473
- options: Dt(P.val),
3474
- offset: g,
3502
+ options: jt(B.val),
3503
+ offset: b,
3475
3504
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3476
- location: H
3505
+ location: C
3477
3506
  },
3478
3507
  err: null
3479
3508
  };
3480
3509
  }
3481
3510
  default:
3482
- return this.error(y.INVALID_ARGUMENT_TYPE, E(s, l));
3511
+ return this.error(_.INVALID_ARGUMENT_TYPE, E(s, l));
3483
3512
  }
3484
3513
  }, e.prototype.tryParseArgumentClose = function(t) {
3485
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3514
+ return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3486
3515
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3487
3516
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3488
3517
  var n = this.char();
@@ -3491,7 +3520,7 @@ var Pi = (
3491
3520
  this.bump();
3492
3521
  var i = this.clonePosition();
3493
3522
  if (!this.bumpUntil("'"))
3494
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
3523
+ return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
3495
3524
  this.bump();
3496
3525
  break;
3497
3526
  }
@@ -3521,16 +3550,16 @@ var Pi = (
3521
3550
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3522
3551
  var n = [];
3523
3552
  try {
3524
- n = ai(t);
3553
+ n = ci(t);
3525
3554
  } catch (i) {
3526
- return this.error(y.INVALID_NUMBER_SKELETON, r);
3555
+ return this.error(_.INVALID_NUMBER_SKELETON, r);
3527
3556
  }
3528
3557
  return {
3529
3558
  val: {
3530
- type: oe.number,
3559
+ type: se.number,
3531
3560
  tokens: n,
3532
3561
  location: r,
3533
- parsedOptions: this.shouldParseSkeletons ? ci(n) : {}
3562
+ parsedOptions: this.shouldParseSkeletons ? di(n) : {}
3534
3563
  },
3535
3564
  err: null
3536
3565
  };
@@ -3539,7 +3568,7 @@ var Pi = (
3539
3568
  if (u.length === 0) {
3540
3569
  var f = this.clonePosition();
3541
3570
  if (r !== "select" && this.bumpIf("=")) {
3542
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3571
+ var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
3543
3572
  if (c.err)
3544
3573
  return c;
3545
3574
  h = E(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
@@ -3547,17 +3576,17 @@ var Pi = (
3547
3576
  break;
3548
3577
  }
3549
3578
  if (l.has(u))
3550
- return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3579
+ return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3551
3580
  u === "other" && (s = !0), this.bumpSpace();
3552
3581
  var m = this.clonePosition();
3553
3582
  if (!this.bumpIf("{"))
3554
- return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
3583
+ return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
3555
3584
  var d = this.parseMessage(t + 1, r, n);
3556
3585
  if (d.err)
3557
3586
  return d;
3558
- var b = this.tryParseArgumentClose(m);
3559
- if (b.err)
3560
- return b;
3587
+ var v = this.tryParseArgumentClose(m);
3588
+ if (v.err)
3589
+ return v;
3561
3590
  a.push([
3562
3591
  u,
3563
3592
  {
@@ -3566,7 +3595,7 @@ var Pi = (
3566
3595
  }
3567
3596
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3568
3597
  }
3569
- return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3598
+ return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3570
3599
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3571
3600
  var n = 1, i = this.clonePosition();
3572
3601
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3578,7 +3607,7 @@ var Pi = (
3578
3607
  break;
3579
3608
  }
3580
3609
  var l = E(i, this.clonePosition());
3581
- return o ? (s *= n, wi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3610
+ return o ? (s *= n, Bi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3582
3611
  }, e.prototype.offset = function() {
3583
3612
  return this.position.offset;
3584
3613
  }, e.prototype.isEOF = function() {
@@ -3593,7 +3622,7 @@ var Pi = (
3593
3622
  var t = this.position.offset;
3594
3623
  if (t >= this.message.length)
3595
3624
  throw Error("out of bound");
3596
- var r = Hr(this.message, t);
3625
+ var r = Pr(this.message, t);
3597
3626
  if (r === void 0)
3598
3627
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3599
3628
  return r;
@@ -3612,7 +3641,7 @@ var Pi = (
3612
3641
  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);
3613
3642
  }
3614
3643
  }, e.prototype.bumpIf = function(t) {
3615
- if (Ut(this.message, t, this.offset())) {
3644
+ if (Ft(this.message, t, this.offset())) {
3616
3645
  for (var r = 0; r < t.length; r++)
3617
3646
  this.bump();
3618
3647
  return !0;
@@ -3634,7 +3663,7 @@ var Pi = (
3634
3663
  break;
3635
3664
  }
3636
3665
  }, e.prototype.bumpSpace = function() {
3637
- for (; !this.isEOF() && Br(this.char()); )
3666
+ for (; !this.isEOF() && Or(this.char()); )
3638
3667
  this.bump();
3639
3668
  }, e.prototype.peek = function() {
3640
3669
  if (this.isEOF())
@@ -3644,47 +3673,47 @@ var Pi = (
3644
3673
  }, e;
3645
3674
  }()
3646
3675
  );
3647
- function ut(e) {
3676
+ function lt(e) {
3648
3677
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3649
3678
  }
3650
- function Bi(e) {
3651
- return ut(e) || e === 47;
3679
+ function Ni(e) {
3680
+ return lt(e) || e === 47;
3652
3681
  }
3653
- function Ai(e) {
3682
+ function Ii(e) {
3654
3683
  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;
3655
3684
  }
3656
- function Br(e) {
3685
+ function Or(e) {
3657
3686
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3658
3687
  }
3659
- function Oi(e) {
3688
+ function Li(e) {
3660
3689
  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;
3661
3690
  }
3662
- function lt(e) {
3691
+ function ht(e) {
3663
3692
  e.forEach(function(t) {
3664
- if (delete t.location, vr(t) || yr(t))
3693
+ if (delete t.location, _r(t) || Er(t))
3665
3694
  for (var r in t.options)
3666
- delete t.options[r].location, lt(t.options[r].value);
3695
+ delete t.options[r].location, ht(t.options[r].value);
3667
3696
  else
3668
- dr(t) && Er(t.style) || (br(t) || gr(t)) && it(t.style) ? delete t.style.location : _r(t) && lt(t.children);
3697
+ gr(t) && wr(t.style) || (vr(t) || yr(t)) && ot(t.style) ? delete t.style.location : xr(t) && ht(t.children);
3669
3698
  });
3670
3699
  }
3671
- function Ni(e, t) {
3672
- t === void 0 && (t = {}), t = Ae({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3673
- var r = new Pi(e, t).parse();
3700
+ function Mi(e, t) {
3701
+ t === void 0 && (t = {}), t = Oe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3702
+ var r = new Ci(e, t).parse();
3674
3703
  if (r.err) {
3675
- var n = SyntaxError(y[r.err.kind]);
3704
+ var n = SyntaxError(_[r.err.kind]);
3676
3705
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3677
3706
  }
3678
- return t != null && t.captureLocation || lt(r.val), r.val;
3707
+ return t != null && t.captureLocation || ht(r.val), r.val;
3679
3708
  }
3680
- var se;
3709
+ var ae;
3681
3710
  (function(e) {
3682
3711
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3683
- })(se || (se = {}));
3684
- var Re = (
3712
+ })(ae || (ae = {}));
3713
+ var Ge = (
3685
3714
  /** @class */
3686
3715
  function(e) {
3687
- Me(t, e);
3716
+ Re(t, e);
3688
3717
  function t(r, n, i) {
3689
3718
  var o = e.call(this, r) || this;
3690
3719
  return o.code = n, o.originalMessage = i, o;
@@ -3693,48 +3722,48 @@ var Re = (
3693
3722
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3694
3723
  }, t;
3695
3724
  }(Error)
3696
- ), jt = (
3725
+ ), Vt = (
3697
3726
  /** @class */
3698
3727
  function(e) {
3699
- Me(t, e);
3728
+ Re(t, e);
3700
3729
  function t(r, n, i, o) {
3701
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
3730
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ae.INVALID_VALUE, o) || this;
3702
3731
  }
3703
3732
  return t;
3704
- }(Re)
3705
- ), Ci = (
3733
+ }(Ge)
3734
+ ), Ri = (
3706
3735
  /** @class */
3707
3736
  function(e) {
3708
- Me(t, e);
3737
+ Re(t, e);
3709
3738
  function t(r, n, i) {
3710
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
3739
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ae.INVALID_VALUE, i) || this;
3711
3740
  }
3712
3741
  return t;
3713
- }(Re)
3714
- ), Ii = (
3742
+ }(Ge)
3743
+ ), Gi = (
3715
3744
  /** @class */
3716
3745
  function(e) {
3717
- Me(t, e);
3746
+ Re(t, e);
3718
3747
  function t(r, n) {
3719
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
3748
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ae.MISSING_VALUE, n) || this;
3720
3749
  }
3721
3750
  return t;
3722
- }(Re)
3751
+ }(Ge)
3723
3752
  ), M;
3724
3753
  (function(e) {
3725
3754
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3726
3755
  })(M || (M = {}));
3727
- function Li(e) {
3756
+ function $i(e) {
3728
3757
  return e.length < 2 ? e : e.reduce(function(t, r) {
3729
3758
  var n = t[t.length - 1];
3730
3759
  return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
3731
3760
  }, []);
3732
3761
  }
3733
- function Mi(e) {
3762
+ function Ui(e) {
3734
3763
  return typeof e == "function";
3735
3764
  }
3736
- function Se(e, t, r, n, i, o, s) {
3737
- if (e.length === 1 && Mt(e[0]))
3765
+ function He(e, t, r, n, i, o, s) {
3766
+ if (e.length === 1 && Gt(e[0]))
3738
3767
  return [
3739
3768
  {
3740
3769
  type: M.literal,
@@ -3743,14 +3772,14 @@ function Se(e, t, r, n, i, o, s) {
3743
3772
  ];
3744
3773
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3745
3774
  var h = u[l];
3746
- if (Mt(h)) {
3775
+ if (Gt(h)) {
3747
3776
  a.push({
3748
3777
  type: M.literal,
3749
3778
  value: h.value
3750
3779
  });
3751
3780
  continue;
3752
3781
  }
3753
- if (ni(h)) {
3782
+ if (ai(h)) {
3754
3783
  typeof o == "number" && a.push({
3755
3784
  type: M.literal,
3756
3785
  value: r.getNumberFormat(t).format(o)
@@ -3759,89 +3788,89 @@ function Se(e, t, r, n, i, o, s) {
3759
3788
  }
3760
3789
  var f = h.value;
3761
3790
  if (!(i && f in i))
3762
- throw new Ii(f, s);
3791
+ throw new Gi(f, s);
3763
3792
  var c = i[f];
3764
- if (ri(h)) {
3793
+ if (si(h)) {
3765
3794
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3766
3795
  type: typeof c == "string" ? M.literal : M.object,
3767
3796
  value: c
3768
3797
  });
3769
3798
  continue;
3770
3799
  }
3771
- if (br(h)) {
3772
- var m = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
3800
+ if (vr(h)) {
3801
+ var m = typeof h.style == "string" ? n.date[h.style] : ot(h.style) ? h.style.parsedOptions : void 0;
3773
3802
  a.push({
3774
3803
  type: M.literal,
3775
3804
  value: r.getDateTimeFormat(t, m).format(c)
3776
3805
  });
3777
3806
  continue;
3778
3807
  }
3779
- if (gr(h)) {
3780
- var m = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
3808
+ if (yr(h)) {
3809
+ var m = typeof h.style == "string" ? n.time[h.style] : ot(h.style) ? h.style.parsedOptions : n.time.medium;
3781
3810
  a.push({
3782
3811
  type: M.literal,
3783
3812
  value: r.getDateTimeFormat(t, m).format(c)
3784
3813
  });
3785
3814
  continue;
3786
3815
  }
3787
- if (dr(h)) {
3788
- var m = typeof h.style == "string" ? n.number[h.style] : Er(h.style) ? h.style.parsedOptions : void 0;
3816
+ if (gr(h)) {
3817
+ var m = typeof h.style == "string" ? n.number[h.style] : wr(h.style) ? h.style.parsedOptions : void 0;
3789
3818
  m && m.scale && (c = c * (m.scale || 1)), a.push({
3790
3819
  type: M.literal,
3791
3820
  value: r.getNumberFormat(t, m).format(c)
3792
3821
  });
3793
3822
  continue;
3794
3823
  }
3795
- if (_r(h)) {
3796
- var d = h.children, b = h.value, w = i[b];
3797
- if (!Mi(w))
3798
- throw new Ci(b, "function", s);
3799
- var O = Se(d, t, r, n, i, o), _ = w(O.map(function(g) {
3800
- return g.value;
3824
+ if (xr(h)) {
3825
+ var d = h.children, v = h.value, w = i[v];
3826
+ if (!Ui(w))
3827
+ throw new Ri(v, "function", s);
3828
+ var T = He(d, t, r, n, i, o), y = w(T.map(function(b) {
3829
+ return b.value;
3801
3830
  }));
3802
- Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(g) {
3831
+ Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(b) {
3803
3832
  return {
3804
- type: typeof g == "string" ? M.literal : M.object,
3805
- value: g
3833
+ type: typeof b == "string" ? M.literal : M.object,
3834
+ value: b
3806
3835
  };
3807
3836
  }));
3808
3837
  }
3809
- if (vr(h)) {
3838
+ if (_r(h)) {
3810
3839
  var S = h.options[c] || h.options.other;
3811
3840
  if (!S)
3812
- throw new jt(h.value, c, Object.keys(h.options), s);
3813
- a.push.apply(a, Se(S.value, t, r, n, i));
3841
+ throw new Vt(h.value, c, Object.keys(h.options), s);
3842
+ a.push.apply(a, He(S.value, t, r, n, i));
3814
3843
  continue;
3815
3844
  }
3816
- if (yr(h)) {
3845
+ if (Er(h)) {
3817
3846
  var S = h.options["=".concat(c)];
3818
3847
  if (!S) {
3819
3848
  if (!Intl.PluralRules)
3820
- throw new Re(`Intl.PluralRules is not available in this environment.
3849
+ throw new Ge(`Intl.PluralRules is not available in this environment.
3821
3850
  Try polyfilling it using "@formatjs/intl-pluralrules"
3822
- `, se.MISSING_INTL_API, s);
3851
+ `, ae.MISSING_INTL_API, s);
3823
3852
  var L = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3824
3853
  S = h.options[L] || h.options.other;
3825
3854
  }
3826
3855
  if (!S)
3827
- throw new jt(h.value, c, Object.keys(h.options), s);
3828
- a.push.apply(a, Se(S.value, t, r, n, i, c - (h.offset || 0)));
3856
+ throw new Vt(h.value, c, Object.keys(h.options), s);
3857
+ a.push.apply(a, He(S.value, t, r, n, i, c - (h.offset || 0)));
3829
3858
  continue;
3830
3859
  }
3831
3860
  }
3832
- return Li(a);
3861
+ return $i(a);
3833
3862
  }
3834
- function Ri(e, t) {
3863
+ function Di(e, t) {
3835
3864
  return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3836
3865
  return r[n] = F(F({}, e[n]), t[n] || {}), r;
3837
3866
  }, {})) : e;
3838
3867
  }
3839
- function Gi(e, t) {
3868
+ function Fi(e, t) {
3840
3869
  return t ? Object.keys(e).reduce(function(r, n) {
3841
- return r[n] = Ri(e[n], t[n]), r;
3870
+ return r[n] = Di(e[n], t[n]), r;
3842
3871
  }, F({}, e)) : e;
3843
3872
  }
3844
- function We(e) {
3873
+ function ze(e) {
3845
3874
  return {
3846
3875
  create: function() {
3847
3876
  return {
@@ -3855,39 +3884,39 @@ function We(e) {
3855
3884
  }
3856
3885
  };
3857
3886
  }
3858
- function $i(e) {
3887
+ function ji(e) {
3859
3888
  return e === void 0 && (e = {
3860
3889
  number: {},
3861
3890
  dateTime: {},
3862
3891
  pluralRules: {}
3863
3892
  }), {
3864
- getNumberFormat: ke(function() {
3893
+ getNumberFormat: Ve(function() {
3865
3894
  for (var t, r = [], n = 0; n < arguments.length; n++)
3866
3895
  r[n] = arguments[n];
3867
- return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
3896
+ return new ((t = Intl.NumberFormat).bind.apply(t, ke([void 0], r, !1)))();
3868
3897
  }, {
3869
- cache: We(e.number),
3870
- strategy: Ve.variadic
3898
+ cache: ze(e.number),
3899
+ strategy: Xe.variadic
3871
3900
  }),
3872
- getDateTimeFormat: ke(function() {
3901
+ getDateTimeFormat: Ve(function() {
3873
3902
  for (var t, r = [], n = 0; n < arguments.length; n++)
3874
3903
  r[n] = arguments[n];
3875
- return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
3904
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ke([void 0], r, !1)))();
3876
3905
  }, {
3877
- cache: We(e.dateTime),
3878
- strategy: Ve.variadic
3906
+ cache: ze(e.dateTime),
3907
+ strategy: Xe.variadic
3879
3908
  }),
3880
- getPluralRules: ke(function() {
3909
+ getPluralRules: Ve(function() {
3881
3910
  for (var t, r = [], n = 0; n < arguments.length; n++)
3882
3911
  r[n] = arguments[n];
3883
- return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
3912
+ return new ((t = Intl.PluralRules).bind.apply(t, ke([void 0], r, !1)))();
3884
3913
  }, {
3885
- cache: We(e.pluralRules),
3886
- strategy: Ve.variadic
3914
+ cache: ze(e.pluralRules),
3915
+ strategy: Xe.variadic
3887
3916
  })
3888
3917
  };
3889
3918
  }
3890
- var Ui = (
3919
+ var ki = (
3891
3920
  /** @class */
3892
3921
  function() {
3893
3922
  function e(t, r, n, i) {
@@ -3906,7 +3935,7 @@ var Ui = (
3906
3935
  }, []);
3907
3936
  return h.length <= 1 ? h[0] || "" : h;
3908
3937
  }, this.formatToParts = function(l) {
3909
- return Se(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3938
+ return He(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3910
3939
  }, this.resolvedOptions = function() {
3911
3940
  var l;
3912
3941
  return {
@@ -3919,13 +3948,13 @@ var Ui = (
3919
3948
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3920
3949
  var s = i || {};
3921
3950
  s.formatters;
3922
- var a = Zn(s, ["formatters"]);
3951
+ var a = qn(s, ["formatters"]);
3923
3952
  this.ast = e.__parse(t, F(F({}, a), { locale: this.resolvedLocale }));
3924
3953
  } else
3925
3954
  this.ast = t;
3926
3955
  if (!Array.isArray(this.ast))
3927
3956
  throw new TypeError("A message must be provided as a String or AST.");
3928
- this.formats = Gi(e.formats, n), this.formatters = i && i.formatters || $i(this.formatterCache);
3957
+ this.formats = Fi(e.formats, n), this.formatters = i && i.formatters || ji(this.formatterCache);
3929
3958
  }
3930
3959
  return Object.defineProperty(e, "defaultLocale", {
3931
3960
  get: function() {
@@ -3938,7 +3967,7 @@ var Ui = (
3938
3967
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3939
3968
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3940
3969
  }
3941
- }, e.__parse = Ni, e.formats = {
3970
+ }, e.__parse = Mi, e.formats = {
3942
3971
  number: {
3943
3972
  integer: {
3944
3973
  maximumFractionDigits: 0
@@ -3999,7 +4028,7 @@ var Ui = (
3999
4028
  }, e;
4000
4029
  }()
4001
4030
  );
4002
- function Di(e, t) {
4031
+ function Vi(e, t) {
4003
4032
  if (t == null)
4004
4033
  return;
4005
4034
  if (t in e)
@@ -4020,92 +4049,92 @@ function Di(e, t) {
4020
4049
  n = void 0;
4021
4050
  return n;
4022
4051
  }
4023
- const z = {}, Fi = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Ar = (e, t) => {
4052
+ const z = {}, Xi = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Cr = (e, t) => {
4024
4053
  if (t == null)
4025
4054
  return;
4026
4055
  if (t in z && e in z[t])
4027
4056
  return z[t][e];
4028
- const r = Ge(t);
4057
+ const r = $e(t);
4029
4058
  for (let n = 0; n < r.length; n++) {
4030
- const i = r[n], o = ki(i, e);
4059
+ const i = r[n], o = zi(i, e);
4031
4060
  if (o)
4032
- return Fi(e, t, o);
4061
+ return Xi(e, t, o);
4033
4062
  }
4034
4063
  };
4035
- let pt;
4036
- const he = Le({});
4037
- function ji(e) {
4038
- return pt[e] || null;
4064
+ let mt;
4065
+ const ce = Me({});
4066
+ function Wi(e) {
4067
+ return mt[e] || null;
4039
4068
  }
4040
- function Or(e) {
4041
- return e in pt;
4069
+ function Nr(e) {
4070
+ return e in mt;
4042
4071
  }
4043
- function ki(e, t) {
4044
- if (!Or(e))
4072
+ function zi(e, t) {
4073
+ if (!Nr(e))
4045
4074
  return null;
4046
- const r = ji(e);
4047
- return Di(r, t);
4075
+ const r = Wi(e);
4076
+ return Vi(r, t);
4048
4077
  }
4049
- function Vi(e) {
4078
+ function Zi(e) {
4050
4079
  if (e == null)
4051
4080
  return;
4052
- const t = Ge(e);
4081
+ const t = $e(e);
4053
4082
  for (let r = 0; r < t.length; r++) {
4054
4083
  const n = t[r];
4055
- if (Or(n))
4084
+ if (Nr(n))
4056
4085
  return n;
4057
4086
  }
4058
4087
  }
4059
- function Nr(e, ...t) {
4060
- delete z[e], he.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
4088
+ function Ir(e, ...t) {
4089
+ delete z[e], ce.update((r) => (r[e] = Yn.all([r[e] || {}, ...t]), r));
4061
4090
  }
4062
- le(
4063
- [he],
4091
+ he(
4092
+ [ce],
4064
4093
  ([e]) => Object.keys(e)
4065
4094
  );
4066
- he.subscribe((e) => pt = e);
4067
- const He = {};
4068
- function Xi(e, t) {
4069
- He[e].delete(t), He[e].size === 0 && delete He[e];
4095
+ ce.subscribe((e) => mt = e);
4096
+ const Be = {};
4097
+ function Qi(e, t) {
4098
+ Be[e].delete(t), Be[e].size === 0 && delete Be[e];
4070
4099
  }
4071
- function Cr(e) {
4072
- return He[e];
4100
+ function Lr(e) {
4101
+ return Be[e];
4073
4102
  }
4074
- function Wi(e) {
4075
- return Ge(e).map((t) => {
4076
- const r = Cr(t);
4103
+ function Ji(e) {
4104
+ return $e(e).map((t) => {
4105
+ const r = Lr(t);
4077
4106
  return [t, r ? [...r] : []];
4078
4107
  }).filter(([, t]) => t.length > 0);
4079
4108
  }
4080
- function ht(e) {
4081
- return e == null ? !1 : Ge(e).some(
4109
+ function ct(e) {
4110
+ return e == null ? !1 : $e(e).some(
4082
4111
  (t) => {
4083
4112
  var r;
4084
- return (r = Cr(t)) == null ? void 0 : r.size;
4113
+ return (r = Lr(t)) == null ? void 0 : r.size;
4085
4114
  }
4086
4115
  );
4087
4116
  }
4088
- function zi(e, t) {
4117
+ function Yi(e, t) {
4089
4118
  return Promise.all(
4090
- t.map((n) => (Xi(e, n), n().then((i) => i.default || i)))
4091
- ).then((n) => Nr(e, ...n));
4092
- }
4093
- const fe = {};
4094
- function Ir(e) {
4095
- if (!ht(e))
4096
- return e in fe ? fe[e] : Promise.resolve();
4097
- const t = Wi(e);
4098
- return fe[e] = Promise.all(
4119
+ t.map((n) => (Qi(e, n), n().then((i) => i.default || i)))
4120
+ ).then((n) => Ir(e, ...n));
4121
+ }
4122
+ const pe = {};
4123
+ function Mr(e) {
4124
+ if (!ct(e))
4125
+ return e in pe ? pe[e] : Promise.resolve();
4126
+ const t = Ji(e);
4127
+ return pe[e] = Promise.all(
4099
4128
  t.map(
4100
- ([r, n]) => zi(r, n)
4129
+ ([r, n]) => Yi(r, n)
4101
4130
  )
4102
4131
  ).then(() => {
4103
- if (ht(e))
4104
- return Ir(e);
4105
- delete fe[e];
4106
- }), fe[e];
4132
+ if (ct(e))
4133
+ return Mr(e);
4134
+ delete pe[e];
4135
+ }), pe[e];
4107
4136
  }
4108
- const Zi = {
4137
+ const qi = {
4109
4138
  number: {
4110
4139
  scientific: { notation: "scientific" },
4111
4140
  engineering: { notation: "engineering" },
@@ -4134,135 +4163,135 @@ const Zi = {
4134
4163
  timeZoneName: "short"
4135
4164
  }
4136
4165
  }
4137
- }, Qi = {
4166
+ }, Ki = {
4138
4167
  fallbackLocale: null,
4139
4168
  loadingDelay: 200,
4140
- formats: Zi,
4169
+ formats: qi,
4141
4170
  warnOnMissingMessages: !0,
4142
4171
  handleMissingMessage: void 0,
4143
4172
  ignoreTag: !0
4144
- }, Ji = Qi;
4145
- function ae() {
4146
- return Ji;
4173
+ }, eo = Ki;
4174
+ function ue() {
4175
+ return eo;
4147
4176
  }
4148
- const ze = Le(!1);
4149
- var qi = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ro = (e, t) => {
4177
+ const Ze = Me(!1);
4178
+ var to = Object.defineProperty, ro = Object.defineProperties, no = Object.getOwnPropertyDescriptors, Xt = Object.getOwnPropertySymbols, io = Object.prototype.hasOwnProperty, oo = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, so = (e, t) => {
4150
4179
  for (var r in t || (t = {}))
4151
- eo.call(t, r) && Vt(e, r, t[r]);
4152
- if (kt)
4153
- for (var r of kt(t))
4154
- to.call(t, r) && Vt(e, r, t[r]);
4180
+ io.call(t, r) && Wt(e, r, t[r]);
4181
+ if (Xt)
4182
+ for (var r of Xt(t))
4183
+ oo.call(t, r) && Wt(e, r, t[r]);
4155
4184
  return e;
4156
- }, no = (e, t) => Yi(e, Ki(t));
4157
- let ct;
4158
- const Oe = Le(null);
4159
- function Xt(e) {
4185
+ }, ao = (e, t) => ro(e, no(t));
4186
+ let ft;
4187
+ const Ce = Me(null);
4188
+ function zt(e) {
4160
4189
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4161
4190
  }
4162
- function Ge(e, t = ae().fallbackLocale) {
4163
- const r = Xt(e);
4164
- return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
4191
+ function $e(e, t = ue().fallbackLocale) {
4192
+ const r = zt(e);
4193
+ return t ? [.../* @__PURE__ */ new Set([...r, ...zt(t)])] : r;
4165
4194
  }
4166
4195
  function K() {
4167
- return ct != null ? ct : void 0;
4196
+ return ft != null ? ft : void 0;
4168
4197
  }
4169
- Oe.subscribe((e) => {
4170
- ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4198
+ Ce.subscribe((e) => {
4199
+ ft = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4171
4200
  });
4172
- const io = (e) => {
4173
- if (e && Vi(e) && ht(e)) {
4174
- const { loadingDelay: t } = ae();
4201
+ const uo = (e) => {
4202
+ if (e && Zi(e) && ct(e)) {
4203
+ const { loadingDelay: t } = ue();
4175
4204
  let r;
4176
4205
  return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
4177
- () => ze.set(!0),
4206
+ () => Ze.set(!0),
4178
4207
  t
4179
- ) : ze.set(!0), Ir(e).then(() => {
4180
- Oe.set(e);
4208
+ ) : Ze.set(!0), Mr(e).then(() => {
4209
+ Ce.set(e);
4181
4210
  }).finally(() => {
4182
- clearTimeout(r), ze.set(!1);
4211
+ clearTimeout(r), Ze.set(!1);
4183
4212
  });
4184
4213
  }
4185
- return Oe.set(e);
4186
- }, Q = no(ro({}, Oe), {
4187
- set: io
4188
- }), $e = (e) => {
4214
+ return Ce.set(e);
4215
+ }, Q = ao(so({}, Ce), {
4216
+ set: uo
4217
+ }), Ue = (e) => {
4189
4218
  const t = /* @__PURE__ */ Object.create(null);
4190
4219
  return (n) => {
4191
4220
  const i = JSON.stringify(n);
4192
4221
  return i in t ? t[i] : t[i] = e(n);
4193
4222
  };
4194
4223
  };
4195
- var oo = Object.defineProperty, Ne = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
4224
+ var lo = Object.defineProperty, Ne = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, Gr = Object.prototype.propertyIsEnumerable, Zt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
4196
4225
  for (var r in t || (t = {}))
4197
- Lr.call(t, r) && Wt(e, r, t[r]);
4226
+ Rr.call(t, r) && Zt(e, r, t[r]);
4198
4227
  if (Ne)
4199
4228
  for (var r of Ne(t))
4200
- Mr.call(t, r) && Wt(e, r, t[r]);
4229
+ Gr.call(t, r) && Zt(e, r, t[r]);
4201
4230
  return e;
4202
- }, ce = (e, t) => {
4231
+ }, fe = (e, t) => {
4203
4232
  var r = {};
4204
4233
  for (var n in e)
4205
- Lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4234
+ Rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4206
4235
  if (e != null && Ne)
4207
4236
  for (var n of Ne(e))
4208
- t.indexOf(n) < 0 && Mr.call(e, n) && (r[n] = e[n]);
4237
+ t.indexOf(n) < 0 && Gr.call(e, n) && (r[n] = e[n]);
4209
4238
  return r;
4210
4239
  };
4211
- const be = (e, t) => {
4212
- const { formats: r } = ae();
4240
+ const ge = (e, t) => {
4241
+ const { formats: r } = ue();
4213
4242
  if (e in r && t in r[e])
4214
4243
  return r[e][t];
4215
4244
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4216
- }, so = $e(
4245
+ }, ho = Ue(
4217
4246
  (e) => {
4218
- var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
4247
+ var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
4219
4248
  if (r == null)
4220
4249
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4221
- return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
4250
+ return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
4222
4251
  }
4223
- ), ao = $e(
4252
+ ), co = Ue(
4224
4253
  (e) => {
4225
- var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
4254
+ var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
4226
4255
  if (r == null)
4227
4256
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4228
- return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
4257
+ return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
4229
4258
  }
4230
- ), uo = $e(
4259
+ ), fo = Ue(
4231
4260
  (e) => {
4232
- var t = e, { locale: r, format: n } = t, i = ce(t, ["locale", "format"]);
4261
+ var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
4233
4262
  if (r == null)
4234
4263
  throw new Error(
4235
4264
  '[svelte-i18n] A "locale" must be set to format time values'
4236
4265
  );
4237
- return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
4266
+ return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
4238
4267
  }
4239
- ), lo = (e = {}) => {
4268
+ ), po = (e = {}) => {
4240
4269
  var t = e, {
4241
4270
  locale: r = K()
4242
- } = t, n = ce(t, [
4271
+ } = t, n = fe(t, [
4243
4272
  "locale"
4244
4273
  ]);
4245
- return so(mt({ locale: r }, n));
4246
- }, ho = (e = {}) => {
4274
+ return ho(dt({ locale: r }, n));
4275
+ }, mo = (e = {}) => {
4247
4276
  var t = e, {
4248
4277
  locale: r = K()
4249
- } = t, n = ce(t, [
4278
+ } = t, n = fe(t, [
4250
4279
  "locale"
4251
4280
  ]);
4252
- return ao(mt({ locale: r }, n));
4253
- }, co = (e = {}) => {
4281
+ return co(dt({ locale: r }, n));
4282
+ }, bo = (e = {}) => {
4254
4283
  var t = e, {
4255
4284
  locale: r = K()
4256
- } = t, n = ce(t, [
4285
+ } = t, n = fe(t, [
4257
4286
  "locale"
4258
4287
  ]);
4259
- return uo(mt({ locale: r }, n));
4260
- }, fo = $e(
4288
+ return fo(dt({ locale: r }, n));
4289
+ }, go = Ue(
4261
4290
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4262
- (e, t = K()) => new Ui(e, t, ae().formats, {
4263
- ignoreTag: ae().ignoreTag
4291
+ (e, t = K()) => new ki(e, t, ue().formats, {
4292
+ ignoreTag: ue().ignoreTag
4264
4293
  })
4265
- ), po = (e, t = {}) => {
4294
+ ), vo = (e, t = {}) => {
4266
4295
  var r, n, i, o;
4267
4296
  let s = t;
4268
4297
  typeof e == "object" && (s = e, e = s.id);
@@ -4275,9 +4304,9 @@ const be = (e, t) => {
4275
4304
  throw new Error(
4276
4305
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4277
4306
  );
4278
- let h = Ar(e, l);
4307
+ let h = Cr(e, l);
4279
4308
  if (!h)
4280
- h = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4309
+ h = (o = (i = (n = (r = ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4281
4310
  else if (typeof h != "string")
4282
4311
  return console.warn(
4283
4312
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4286,7 +4315,7 @@ const be = (e, t) => {
4286
4315
  return h;
4287
4316
  let f = h;
4288
4317
  try {
4289
- f = fo(h, l).format(a);
4318
+ f = go(h, l).format(a);
4290
4319
  } catch (c) {
4291
4320
  c instanceof Error && console.warn(
4292
4321
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4294,26 +4323,26 @@ const be = (e, t) => {
4294
4323
  );
4295
4324
  }
4296
4325
  return f;
4297
- }, mo = (e, t) => co(t).format(e), bo = (e, t) => ho(t).format(e), go = (e, t) => lo(t).format(e), vo = (e, t = K()) => Ar(e, t), yo = le([Q, he], () => po);
4298
- le([Q], () => mo);
4299
- le([Q], () => bo);
4300
- le([Q], () => go);
4301
- le([Q, he], () => vo);
4302
- window.emWidgets = { topic: On };
4303
- const _o = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4326
+ }, yo = (e, t) => bo(t).format(e), _o = (e, t) => mo(t).format(e), Eo = (e, t) => po(t).format(e), xo = (e, t = K()) => Cr(e, t), wo = he([Q, ce], () => vo);
4327
+ he([Q], () => yo);
4328
+ he([Q], () => _o);
4329
+ he([Q], () => Eo);
4330
+ he([Q, ce], () => xo);
4331
+ window.emWidgets = { topic: Ln };
4332
+ const So = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4304
4333
  String(Number.MAX_SAFE_INTEGER).length;
4305
- function Eo({ withLocale: e, translations: t }) {
4334
+ function To({ withLocale: e, translations: t }) {
4306
4335
  Q.subscribe((r) => {
4307
- r == null && (he.set(t), Q.set(e));
4336
+ r == null && (ce.set(t), Q.set(e));
4308
4337
  });
4309
4338
  }
4310
- function zt(e, t) {
4311
- Nr(e, t);
4339
+ function Qt(e, t) {
4340
+ Ir(e, t);
4312
4341
  }
4313
- function xo(e) {
4342
+ function Ho(e) {
4314
4343
  Q.set(e);
4315
4344
  }
4316
- const Zt = {
4345
+ const Jt = {
4317
4346
  en: {
4318
4347
  loading: "Loading, please wait ...",
4319
4348
  playNow: "Play Now",
@@ -4324,22 +4353,22 @@ const Zt = {
4324
4353
  noMoreGames: "No more games"
4325
4354
  }
4326
4355
  };
4327
- function wo(e) {
4328
- Wr(e, "svelte-h1f7fe", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControlsArea.SinglePage{display:none}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
4356
+ function Bo(e) {
4357
+ Zr(e, "svelte-h1f7fe", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .LoadingGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames .LoadingGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.TournamentsPaginationControlsArea{clear:both;margin-top:30px;display:flex;justify-content:center;width:100%}.TournamentsPaginationControlsArea.SinglePage{display:none}.TournamentsPaginationControls{background:var(--emw--color-green, transparent);width:60%;height:35px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px;cursor:pointer;width:190px}.TournamentsPaginationControls.Disabled{color:var(--emw--color-gray-100, #B5B5B5);border-color:var(--emw--color-gray-100, #B5B5B5);opacity:50%;cursor:default}.TournamentsPaginationControlsArea{justify-content:center;gap:30px}.TournamentsPaginationControlsArea .TournamentsPaginationControls{align-items:center}.TournamentsPaginationControlsArea .TournamentsPaginationControlsText{font-size:var(--emw--size-standard, 16px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}.MobileClass .GamesWrapper .GameList.items{max-height:calc(100vh - 350px);overflow-y:auto}");
4329
4358
  }
4330
- function Qt(e, t, r) {
4359
+ function Yt(e, t, r) {
4331
4360
  const n = e.slice();
4332
4361
  return n[32] = t[r], n;
4333
4362
  }
4334
- function Jt(e, t, r) {
4363
+ function qt(e, t, r) {
4335
4364
  const n = e.slice();
4336
4365
  return n[32] = t[r], n[36] = r, n;
4337
4366
  }
4338
- function qt(e) {
4367
+ function Kt(e) {
4339
4368
  let t, r;
4340
4369
  return {
4341
4370
  c() {
4342
- t = A("div"), r = A("casino-tournaments-tab"), I(r, "part", "TournamentGames"), I(r, "tabs", "casino,sports"), I(r, "tab", "casino"), I(r, "tid", ft), I(
4371
+ t = A("div"), r = A("casino-tournaments-tab"), I(r, "part", "TournamentGames"), I(r, "tabs", "casino,sports"), I(r, "tab", "casino"), I(r, "tid", pt), I(
4343
4372
  r,
4344
4373
  "clientstyling",
4345
4374
  /*clientstyling*/
@@ -4354,7 +4383,7 @@ function qt(e) {
4354
4383
  "mbsource",
4355
4384
  /*mbsource*/
4356
4385
  e[2]
4357
- ), v(t, "class", "GamesTabNav");
4386
+ ), g(t, "class", "GamesTabNav");
4358
4387
  },
4359
4388
  m(n, i) {
4360
4389
  k(n, t, i), x(t, r);
@@ -4385,14 +4414,14 @@ function qt(e) {
4385
4414
  }
4386
4415
  };
4387
4416
  }
4388
- function To(e) {
4417
+ function Po(e) {
4389
4418
  let t, r = (
4390
4419
  /*$_*/
4391
4420
  e[13]("noGamesAvailable") + ""
4392
4421
  ), n;
4393
4422
  return {
4394
4423
  c() {
4395
- t = A("div"), n = j(r), v(t, "class", "NoGames");
4424
+ t = A("div"), n = j(r), g(t, "class", "NoGames");
4396
4425
  },
4397
4426
  m(i, o) {
4398
4427
  k(i, t, o), x(t, n);
@@ -4407,14 +4436,14 @@ function To(e) {
4407
4436
  }
4408
4437
  };
4409
4438
  }
4410
- function So(e) {
4439
+ function Ao(e) {
4411
4440
  let t, r = (
4412
4441
  /*$_*/
4413
4442
  e[13]("noMoreGames") + ""
4414
4443
  ), n;
4415
4444
  return {
4416
4445
  c() {
4417
- t = A("div"), n = j(r), v(t, "class", "NoGames");
4446
+ t = A("div"), n = j(r), g(t, "class", "NoGames");
4418
4447
  },
4419
4448
  m(i, o) {
4420
4449
  k(i, t, o), x(t, n);
@@ -4429,14 +4458,14 @@ function So(e) {
4429
4458
  }
4430
4459
  };
4431
4460
  }
4432
- function Ho(e) {
4461
+ function Oo(e) {
4433
4462
  let t, r = (
4434
4463
  /*$_*/
4435
4464
  e[13]("loading") + ""
4436
4465
  ), n;
4437
4466
  return {
4438
4467
  c() {
4439
- t = A("div"), n = j(r), v(t, "class", "LoadingGames");
4468
+ t = A("div"), n = j(r), g(t, "class", "LoadingGames");
4440
4469
  },
4441
4470
  m(i, o) {
4442
4471
  k(i, t, o), x(t, n);
@@ -4451,18 +4480,18 @@ function Ho(e) {
4451
4480
  }
4452
4481
  };
4453
4482
  }
4454
- function Po(e) {
4455
- let t, r = Be(
4483
+ function Co(e) {
4484
+ let t, r = Ae(
4456
4485
  /*casinoGames*/
4457
4486
  e[8]
4458
4487
  ), n = [];
4459
4488
  for (let i = 0; i < r.length; i += 1)
4460
- n[i] = Yt(Jt(e, r, i));
4489
+ n[i] = er(qt(e, r, i));
4461
4490
  return {
4462
4491
  c() {
4463
4492
  for (let i = 0; i < n.length; i += 1)
4464
4493
  n[i].c();
4465
- t = Qr();
4494
+ t = Yr();
4466
4495
  },
4467
4496
  m(i, o) {
4468
4497
  for (let s = 0; s < n.length; s += 1)
@@ -4472,14 +4501,14 @@ function Po(e) {
4472
4501
  p(i, o) {
4473
4502
  if (o[0] & /*gameClicked, casinoGames, $_*/
4474
4503
  41216) {
4475
- r = Be(
4504
+ r = Ae(
4476
4505
  /*casinoGames*/
4477
4506
  i[8]
4478
4507
  );
4479
4508
  let s;
4480
4509
  for (s = 0; s < r.length; s += 1) {
4481
- const a = Jt(i, r, s);
4482
- n[s] ? n[s].p(a, o) : (n[s] = Yt(a), n[s].c(), n[s].m(t.parentNode, t));
4510
+ const a = qt(i, r, s);
4511
+ n[s] ? n[s].p(a, o) : (n[s] = er(a), n[s].c(), n[s].m(t.parentNode, t));
4483
4512
  }
4484
4513
  for (; s < n.length; s += 1)
4485
4514
  n[s].d(1);
@@ -4487,26 +4516,26 @@ function Po(e) {
4487
4516
  }
4488
4517
  },
4489
4518
  d(i) {
4490
- i && D(t), nr(n, i);
4519
+ i && D(t), or(n, i);
4491
4520
  }
4492
4521
  };
4493
4522
  }
4494
- function Yt(e) {
4523
+ function er(e) {
4495
4524
  let t, r, n = (
4496
4525
  /*$_*/
4497
4526
  e[13]("playNow") + ""
4498
4527
  ), i, o, s, a, l, u, h, f, c;
4499
4528
  return {
4500
4529
  c() {
4501
- t = A("div"), r = A("span"), i = j(n), o = X(), s = A("ui-image"), h = X(), v(r, "class", "PlayNowButton"), St(s.src, a = /*item*/
4530
+ t = A("div"), r = A("span"), i = j(n), o = X(), s = A("ui-image"), h = X(), g(r, "class", "PlayNowButton"), Bt(s.src, a = /*item*/
4502
4531
  e[32].thumbnail) || I(s, "src", a), I(s, "width", "132px"), I(s, "height", "100px"), I(s, "alt", l = /*item*/
4503
4532
  e[32].name), I(s, "title", u = /*item*/
4504
- e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
4505
- e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
4533
+ e[32].name), g(t, "class", "item"), g(t, "id", "g_" + /*idx*/
4534
+ e[36]), g(t, "role", "button"), g(t, "tabindex", "0");
4506
4535
  },
4507
4536
  m(m, d) {
4508
- k(m, t, d), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = Ze(t, "click", function() {
4509
- Ce(
4537
+ k(m, t, d), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = Qe(t, "click", function() {
4538
+ Ie(
4510
4539
  /*gameClicked*/
4511
4540
  e[15](
4512
4541
  /*item*/
@@ -4522,7 +4551,7 @@ function Yt(e) {
4522
4551
  e = m, d[0] & /*$_*/
4523
4552
  8192 && n !== (n = /*$_*/
4524
4553
  e[13]("playNow") + "") && Z(i, n), d[0] & /*casinoGames*/
4525
- 256 && !St(s.src, a = /*item*/
4554
+ 256 && !Bt(s.src, a = /*item*/
4526
4555
  e[32].thumbnail) && I(s, "src", a), d[0] & /*casinoGames*/
4527
4556
  256 && l !== (l = /*item*/
4528
4557
  e[32].name) && I(s, "alt", l), d[0] & /*casinoGames*/
@@ -4534,35 +4563,35 @@ function Yt(e) {
4534
4563
  }
4535
4564
  };
4536
4565
  }
4537
- function Bo(e) {
4566
+ function No(e) {
4538
4567
  let t, r, n, i, o, s, a, l = (
4539
4568
  /*$_*/
4540
4569
  e[13]("previous") + ""
4541
- ), u, h, f, c, m, d, b = (
4570
+ ), u, h, f, c, m, d, v = (
4542
4571
  /*$_*/
4543
4572
  e[13]("next") + ""
4544
- ), w, O, _, S, L, g, P, H, $, N;
4573
+ ), w, T, y, S, L, b, B, C, $, N;
4545
4574
  return {
4546
4575
  c() {
4547
- t = A("div"), r = A("button"), n = _e("svg"), i = _e("path"), s = X(), a = A("span"), u = j(l), c = X(), m = A("button"), d = A("span"), w = j(b), O = X(), _ = _e("svg"), S = _e("path"), v(i, "fill", o = /*hasPreviousPage*/
4548
- e[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(i, "class", "a"), v(i, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(i, "transform", "translate(19.246 -6.188) rotate(90)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "8"), v(n, "height", "13.992"), v(n, "viewBox", "0 0 8 13.992"), v(a, "class", "TournamentsPaginationControlsText"), v(r, "class", h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
4576
+ t = A("div"), r = A("button"), n = Ee("svg"), i = Ee("path"), s = X(), a = A("span"), u = j(l), c = X(), m = A("button"), d = A("span"), w = j(v), T = X(), y = Ee("svg"), S = Ee("path"), g(i, "fill", o = /*hasPreviousPage*/
4577
+ e[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), g(i, "class", "a"), g(i, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), g(i, "transform", "translate(19.246 -6.188) rotate(90)"), g(n, "xmlns", "http://www.w3.org/2000/svg"), g(n, "width", "8"), g(n, "height", "13.992"), g(n, "viewBox", "0 0 8 13.992"), g(a, "class", "TournamentsPaginationControlsText"), g(r, "class", h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
4549
4578
  e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
4550
- !e[10], v(d, "class", "TournamentsPaginationControlsText"), v(S, "fill", L = /*hasNextPage*/
4551
- e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(S, "class", "a"), v(S, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(S, "transform", "translate(-11.246 20.179) rotate(-90)"), v(_, "xmlns", "http://www.w3.org/2000/svg"), v(_, "width", "8"), v(_, "height", "13.992"), v(_, "viewBox", "0 0 8 13.992"), v(m, "class", g = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
4552
- e[11] ? "" : "Disabled")), m.disabled = P = /*hasNextPage*/
4553
- !e[11], v(t, "class", H = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
4579
+ !e[10], g(d, "class", "TournamentsPaginationControlsText"), g(S, "fill", L = /*hasNextPage*/
4580
+ e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), g(S, "class", "a"), g(S, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), g(S, "transform", "translate(-11.246 20.179) rotate(-90)"), g(y, "xmlns", "http://www.w3.org/2000/svg"), g(y, "width", "8"), g(y, "height", "13.992"), g(y, "viewBox", "0 0 8 13.992"), g(m, "class", b = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
4581
+ e[11] ? "" : "Disabled")), m.disabled = B = /*hasNextPage*/
4582
+ !e[11], g(t, "class", C = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
4554
4583
  e[10] && !/*hasNextPage*/
4555
4584
  e[11] ? "SinglePage" : ""));
4556
4585
  },
4557
- m(C, R) {
4558
- k(C, t, R), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, m), x(m, d), x(d, w), x(m, O), x(m, _), x(_, S), $ || (N = [
4559
- Ze(
4586
+ m(O, R) {
4587
+ k(O, t, R), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, m), x(m, d), x(d, w), x(m, T), x(m, y), x(y, S), $ || (N = [
4588
+ Qe(
4560
4589
  r,
4561
4590
  "click",
4562
4591
  /*gotoPage*/
4563
4592
  e[16].bind(this, -1)
4564
4593
  ),
4565
- Ze(
4594
+ Qe(
4566
4595
  m,
4567
4596
  "click",
4568
4597
  /*gotoPage*/
@@ -4570,34 +4599,34 @@ function Bo(e) {
4570
4599
  )
4571
4600
  ], $ = !0);
4572
4601
  },
4573
- p(C, R) {
4602
+ p(O, R) {
4574
4603
  R[0] & /*hasPreviousPage*/
4575
4604
  1024 && o !== (o = /*hasPreviousPage*/
4576
- C[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(i, "fill", o), R[0] & /*$_*/
4605
+ O[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && g(i, "fill", o), R[0] & /*$_*/
4577
4606
  8192 && l !== (l = /*$_*/
4578
- C[13]("previous") + "") && Z(u, l), R[0] & /*hasPreviousPage*/
4607
+ O[13]("previous") + "") && Z(u, l), R[0] & /*hasPreviousPage*/
4579
4608
  1024 && h !== (h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
4580
- C[10] ? "" : "Disabled")) && v(r, "class", h), R[0] & /*hasPreviousPage*/
4609
+ O[10] ? "" : "Disabled")) && g(r, "class", h), R[0] & /*hasPreviousPage*/
4581
4610
  1024 && f !== (f = /*hasPreviousPage*/
4582
- !C[10]) && (r.disabled = f), R[0] & /*$_*/
4583
- 8192 && b !== (b = /*$_*/
4584
- C[13]("next") + "") && Z(w, b), R[0] & /*hasNextPage*/
4611
+ !O[10]) && (r.disabled = f), R[0] & /*$_*/
4612
+ 8192 && v !== (v = /*$_*/
4613
+ O[13]("next") + "") && Z(w, v), R[0] & /*hasNextPage*/
4585
4614
  2048 && L !== (L = /*hasNextPage*/
4586
- C[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(S, "fill", L), R[0] & /*hasNextPage*/
4587
- 2048 && g !== (g = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
4588
- C[11] ? "" : "Disabled")) && v(m, "class", g), R[0] & /*hasNextPage*/
4589
- 2048 && P !== (P = /*hasNextPage*/
4590
- !C[11]) && (m.disabled = P), R[0] & /*hasPreviousPage, hasNextPage*/
4591
- 3072 && H !== (H = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
4592
- C[10] && !/*hasNextPage*/
4593
- C[11] ? "SinglePage" : "")) && v(t, "class", H);
4615
+ O[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && g(S, "fill", L), R[0] & /*hasNextPage*/
4616
+ 2048 && b !== (b = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
4617
+ O[11] ? "" : "Disabled")) && g(m, "class", b), R[0] & /*hasNextPage*/
4618
+ 2048 && B !== (B = /*hasNextPage*/
4619
+ !O[11]) && (m.disabled = B), R[0] & /*hasPreviousPage, hasNextPage*/
4620
+ 3072 && C !== (C = "TournamentsPaginationControlsArea " + (!/*hasPreviousPage*/
4621
+ O[10] && !/*hasNextPage*/
4622
+ O[11] ? "SinglePage" : "")) && g(t, "class", C);
4594
4623
  },
4595
- d(C) {
4596
- C && D(t), $ = !1, ue(N);
4624
+ d(O) {
4625
+ O && D(t), $ = !1, le(N);
4597
4626
  }
4598
4627
  };
4599
4628
  }
4600
- function Kt(e) {
4629
+ function tr(e) {
4601
4630
  let t, r = (
4602
4631
  /*item*/
4603
4632
  e[32].rule + ""
@@ -4607,7 +4636,7 @@ function Kt(e) {
4607
4636
  ), s;
4608
4637
  return {
4609
4638
  c() {
4610
- t = A("li"), n = j(r), i = X(), s = j(o), v(t, "part", "li"), v(t, "class", "Market");
4639
+ t = A("li"), n = j(r), i = X(), s = j(o), g(t, "part", "li"), g(t, "class", "Market");
4611
4640
  },
4612
4641
  m(a, l) {
4613
4642
  k(a, t, l), x(t, n), x(t, i), x(t, s);
@@ -4624,114 +4653,114 @@ function Kt(e) {
4624
4653
  }
4625
4654
  };
4626
4655
  }
4627
- function Ao(e) {
4656
+ function Io(e) {
4628
4657
  var S, L;
4629
4658
  let t, r, n, i, o, s, a, l, u, h, f, c = (
4630
4659
  /*tournamentdetails*/
4631
4660
  e[3] && /*tournamentdetails*/
4632
4661
  ((S = e[3].wallet) == null ? void 0 : S.sports) && /*tournamentdetails*/
4633
- ((L = e[3].wallet) == null ? void 0 : L.casino) && qt(e)
4662
+ ((L = e[3].wallet) == null ? void 0 : L.casino) && Kt(e)
4634
4663
  );
4635
- function m(g, P) {
4636
- var H;
4664
+ function m(b, B) {
4665
+ var C;
4637
4666
  return (
4638
4667
  /*casinoGames*/
4639
- (H = g[8]) != null && H.length ? Po : (
4668
+ (C = b[8]) != null && C.length ? Co : (
4640
4669
  /*isLoadingGames*/
4641
- g[12] ? Ho : (
4670
+ b[12] ? Oo : (
4642
4671
  /*noMoreGamesWhenPagination*/
4643
- g[9] ? So : To
4672
+ b[9] ? Ao : Po
4644
4673
  )
4645
4674
  )
4646
4675
  );
4647
4676
  }
4648
- let d = m(e), b = d(e), w = !/*isMobileDevice*/
4649
- e[14] && Bo(e), O = Be(
4677
+ let d = m(e), v = d(e), w = !/*isMobileDevice*/
4678
+ e[14] && No(e), T = Ae(
4650
4679
  /*sportsRules*/
4651
4680
  e[7]
4652
- ), _ = [];
4653
- for (let g = 0; g < O.length; g += 1)
4654
- _[g] = Kt(Qt(e, O, g));
4681
+ ), y = [];
4682
+ for (let b = 0; b < T.length; b += 1)
4683
+ y[b] = tr(Yt(e, T, b));
4655
4684
  return {
4656
4685
  c() {
4657
- t = A("div"), c && c.c(), r = X(), n = A("div"), i = A("div"), o = A("div"), b.c(), s = X(), w && w.c(), l = X(), u = A("div"), h = A("ul");
4658
- for (let g = 0; g < _.length; g += 1)
4659
- _[g].c();
4660
- v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
4661
- (e[6] != "casino" ? "hidden" : "")), v(h, "class", "SportsPage"), v(u, "class", f = "TabContent GamesContent " + /*activeTab*/
4662
- (e[6] != "sports" ? "hidden" : "")), v(n, "class", "GamesWrapper"), v(
4686
+ t = A("div"), c && c.c(), r = X(), n = A("div"), i = A("div"), o = A("div"), v.c(), s = X(), w && w.c(), l = X(), u = A("div"), h = A("ul");
4687
+ for (let b = 0; b < y.length; b += 1)
4688
+ y[b].c();
4689
+ g(o, "class", "GameList items"), g(i, "class", a = "TabContent GamesContent " + /*activeTab*/
4690
+ (e[6] != "casino" ? "hidden" : "")), g(h, "class", "SportsPage"), g(u, "class", f = "TabContent GamesContent " + /*activeTab*/
4691
+ (e[6] != "sports" ? "hidden" : "")), g(n, "class", "GamesWrapper"), g(
4663
4692
  t,
4664
4693
  "class",
4665
4694
  /*isMobileDevice*/
4666
4695
  e[14] ? "MobileClass" : ""
4667
4696
  );
4668
4697
  },
4669
- m(g, P) {
4670
- k(g, t, P), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), b.m(o, null), e[19](o), x(i, s), w && w.m(i, null), x(n, l), x(n, u), x(u, h);
4671
- for (let H = 0; H < _.length; H += 1)
4672
- _[H] && _[H].m(h, null);
4698
+ m(b, B) {
4699
+ k(b, t, B), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), v.m(o, null), e[19](o), x(i, s), w && w.m(i, null), x(n, l), x(n, u), x(u, h);
4700
+ for (let C = 0; C < y.length; C += 1)
4701
+ y[C] && y[C].m(h, null);
4673
4702
  e[20](t);
4674
4703
  },
4675
- p(g, P) {
4676
- var H, $;
4704
+ p(b, B) {
4705
+ var C, $;
4677
4706
  if (/*tournamentdetails*/
4678
- g[3] && /*tournamentdetails*/
4679
- ((H = g[3].wallet) != null && H.sports) && /*tournamentdetails*/
4680
- (($ = g[3].wallet) != null && $.casino) ? c ? c.p(g, P) : (c = qt(g), c.c(), c.m(t, r)) : c && (c.d(1), c = null), d === (d = m(g)) && b ? b.p(g, P) : (b.d(1), b = d(g), b && (b.c(), b.m(o, null))), /*isMobileDevice*/
4681
- g[14] || w.p(g, P), P[0] & /*activeTab*/
4707
+ b[3] && /*tournamentdetails*/
4708
+ ((C = b[3].wallet) != null && C.sports) && /*tournamentdetails*/
4709
+ (($ = b[3].wallet) != null && $.casino) ? c ? c.p(b, B) : (c = Kt(b), c.c(), c.m(t, r)) : c && (c.d(1), c = null), d === (d = m(b)) && v ? v.p(b, B) : (v.d(1), v = d(b), v && (v.c(), v.m(o, null))), /*isMobileDevice*/
4710
+ b[14] || w.p(b, B), B[0] & /*activeTab*/
4682
4711
  64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
4683
- (g[6] != "casino" ? "hidden" : "")) && v(i, "class", a), P[0] & /*$_, sportsRules*/
4712
+ (b[6] != "casino" ? "hidden" : "")) && g(i, "class", a), B[0] & /*$_, sportsRules*/
4684
4713
  8320) {
4685
- O = Be(
4714
+ T = Ae(
4686
4715
  /*sportsRules*/
4687
- g[7]
4716
+ b[7]
4688
4717
  );
4689
4718
  let N;
4690
- for (N = 0; N < O.length; N += 1) {
4691
- const C = Qt(g, O, N);
4692
- _[N] ? _[N].p(C, P) : (_[N] = Kt(C), _[N].c(), _[N].m(h, null));
4719
+ for (N = 0; N < T.length; N += 1) {
4720
+ const O = Yt(b, T, N);
4721
+ y[N] ? y[N].p(O, B) : (y[N] = tr(O), y[N].c(), y[N].m(h, null));
4693
4722
  }
4694
- for (; N < _.length; N += 1)
4695
- _[N].d(1);
4696
- _.length = O.length;
4723
+ for (; N < y.length; N += 1)
4724
+ y[N].d(1);
4725
+ y.length = T.length;
4697
4726
  }
4698
- P[0] & /*activeTab*/
4727
+ B[0] & /*activeTab*/
4699
4728
  64 && f !== (f = "TabContent GamesContent " + /*activeTab*/
4700
- (g[6] != "sports" ? "hidden" : "")) && v(u, "class", f);
4729
+ (b[6] != "sports" ? "hidden" : "")) && g(u, "class", f);
4701
4730
  },
4702
4731
  i: U,
4703
4732
  o: U,
4704
- d(g) {
4705
- g && D(t), c && c.d(), b.d(), e[19](null), w && w.d(), nr(_, g), e[20](null);
4733
+ d(b) {
4734
+ b && D(t), c && c.d(), v.d(), e[19](null), w && w.d(), or(y, b), e[20](null);
4706
4735
  }
4707
4736
  };
4708
4737
  }
4709
- let ft = "gameTab";
4710
- function Oo(e, t, r) {
4738
+ let pt = "gameTab";
4739
+ function Lo(e, t, r) {
4711
4740
  let n;
4712
- Xr(e, yo, (p) => r(13, n = p));
4713
- let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, m = window.navigator.userAgent, d, b, w, O = _o(m), _ = !1;
4714
- Eo({ withLocale: "en", translations: {} });
4715
- const S = () => {
4741
+ zr(e, wo, (p) => r(13, n = p));
4742
+ let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, m = window.navigator.userAgent, d, v, w, T, y = So(m), S = !1;
4743
+ To({ withLocale: "en", translations: {} });
4744
+ const L = () => {
4716
4745
  fetch(a).then((p) => p.json()).then((p) => {
4717
4746
  Object.keys(p).forEach((V) => {
4718
- zt(V, p[V]);
4747
+ Qt(V, p[V]);
4719
4748
  });
4720
4749
  }).catch((p) => {
4721
4750
  console.log(p);
4722
4751
  });
4723
4752
  };
4724
- Object.keys(Zt).forEach((p) => {
4725
- zt(p, Zt[p]);
4753
+ Object.keys(Jt).forEach((p) => {
4754
+ Qt(p, Jt[p]);
4726
4755
  });
4727
- const L = () => {
4728
- xo(l), setTimeout(
4756
+ const b = () => {
4757
+ Ho(l), setTimeout(
4729
4758
  () => {
4730
- g();
4759
+ B();
4731
4760
  },
4732
4761
  10
4733
4762
  );
4734
- }, g = () => {
4763
+ }, B = () => {
4735
4764
  window.postMessage(
4736
4765
  {
4737
4766
  type: "TournamentsTabsLocalize",
@@ -4742,7 +4771,7 @@ function Oo(e, t, r) {
4742
4771
  },
4743
4772
  window.location.href
4744
4773
  );
4745
- }, P = (p) => {
4774
+ }, C = (p) => {
4746
4775
  window.postMessage(
4747
4776
  {
4748
4777
  type: "TournamentGameAction",
@@ -4753,9 +4782,9 @@ function Oo(e, t, r) {
4753
4782
  window.location.href
4754
4783
  );
4755
4784
  };
4756
- let H = !1, $ = !1, N = !1;
4757
- const C = (p) => {
4758
- !H && p === -1 || !$ && p === 1 || (r(12, N = !0), r(8, f = []), window.postMessage(
4785
+ let $ = !1, N = !1, O = !1;
4786
+ const R = (p) => {
4787
+ !$ && p === -1 || !N && p === 1 || (r(12, O = !0), r(8, f = []), window.postMessage(
4759
4788
  {
4760
4789
  type: "TournamentsLoadMoreGames",
4761
4790
  id: c.id,
@@ -4763,36 +4792,36 @@ function Oo(e, t, r) {
4763
4792
  },
4764
4793
  window.location.href
4765
4794
  ));
4766
- }, R = () => {
4767
- var V, q, gt, vt, yt;
4768
- r(8, f = ((V = c.games) == null ? void 0 : V.items) || []), r(9, _ = !1), r(10, H = !1), r(11, $ = ((q = c.games) == null ? void 0 : q.total) > ((gt = c.games) == null ? void 0 : gt.items.length)), bt();
4769
- const p = (yt = (vt = c.metadata) == null ? void 0 : vt.sports) == null ? void 0 : yt.rules;
4795
+ }, bt = () => {
4796
+ var V, Y, yt, _t, Et;
4797
+ r(8, f = ((V = c.games) == null ? void 0 : V.items) || []), r(9, S = !1), r(10, $ = !1), r(11, N = ((Y = c.games) == null ? void 0 : Y.total) > ((yt = c.games) == null ? void 0 : yt.items.length)), vt();
4798
+ const p = (Et = (_t = c.metadata) == null ? void 0 : _t.sports) == null ? void 0 : Et.rules;
4770
4799
  if (p) {
4771
4800
  r(6, u = c.wallet.casino ? "casino" : "sports");
4772
4801
  try {
4773
- const ve = JSON.parse(p);
4774
- r(7, h = ve[l] || ve["*"]);
4775
- } catch (ve) {
4776
- console.error("Error parsing tournament rules", ve);
4802
+ const ye = JSON.parse(p);
4803
+ r(7, h = ye[l] || ye["*"]);
4804
+ } catch (ye) {
4805
+ console.error("Error parsing tournament rules", ye);
4777
4806
  }
4778
4807
  }
4779
- }, dt = (p) => {
4780
- var q;
4808
+ }, gt = (p) => {
4809
+ var Y;
4781
4810
  if (!p.data || !p.data.type)
4782
4811
  return;
4783
4812
  const V = p.data.tid || "";
4784
4813
  switch (p.data.type) {
4785
4814
  case "TournamentsTabSwitch":
4786
- V === ft && r(6, u = p.data.tab);
4815
+ V === pt && r(6, u = p.data.tab);
4787
4816
  break;
4788
4817
  case "TournamentsTabListenerLoaded":
4789
- g();
4818
+ B();
4790
4819
  break;
4791
4820
  case "TournamentsGamesUpdate":
4792
- r(3, c = p.data.details), R();
4821
+ r(3, c = p.data.details), bt();
4793
4822
  break;
4794
4823
  case "TournamentsLoadedMoreGames":
4795
- O ? (q = p.data.games) != null && q.items.length && (r(8, f = [...f, ...p.data.games.items]), bt()) : (r(12, N = !1), r(8, f = [...p.data.games.items]), r(11, $ = p.data.hasNextPage), r(10, H = p.data.hasPreviousPage), r(9, _ = !f.length));
4824
+ y ? (Y = p.data.games) != null && Y.items.length && (r(8, f = [...f, ...p.data.games.items]), vt()) : (r(12, O = !1), r(8, f = [...p.data.games.items]), r(11, N = p.data.hasNextPage), r(10, $ = p.data.hasPreviousPage), r(9, S = !f.length));
4796
4825
  break;
4797
4826
  default:
4798
4827
  console.warn(`Unhandled message type: ${p.data.type}`);
@@ -4800,10 +4829,10 @@ function Oo(e, t, r) {
4800
4829
  }
4801
4830
  };
4802
4831
  let J;
4803
- const Rr = (p) => {
4804
- J = p == null ? void 0 : p.lastElementChild, !(!O || w || !p || !J) && (w = new IntersectionObserver((V) => {
4805
- V.forEach((q) => {
4806
- q.isIntersecting && (w.unobserve(J), window.postMessage(
4832
+ const $r = (p) => {
4833
+ J = p == null ? void 0 : p.lastElementChild, !(!y || T || !p || !J) && (T = new IntersectionObserver((V) => {
4834
+ V.forEach((Y) => {
4835
+ Y.isIntersecting && (T.unobserve(J), window.postMessage(
4807
4836
  {
4808
4837
  type: "TournamentsLoadMoreGames",
4809
4838
  id: c.id,
@@ -4813,24 +4842,24 @@ function Oo(e, t, r) {
4813
4842
  ));
4814
4843
  });
4815
4844
  }));
4816
- }, bt = () => {
4817
- !O || !J || !w || !f.length || (w.unobserve(J), J = b.lastElementChild, w.observe(J));
4845
+ }, vt = () => {
4846
+ !y || !J || !T || !f.length || (T.unobserve(J), J = w.lastElementChild, T.observe(J));
4818
4847
  };
4819
- Kr(() => O && w && w.disconnect()), Yr(() => (window.postMessage(
4848
+ tn(() => y && T && T.disconnect()), en(() => (window.postMessage(
4820
4849
  {
4821
4850
  type: "TournamentsGamesListenerLoaded",
4822
- gamesTabTid: ft
4851
+ gamesTabTid: pt
4823
4852
  },
4824
4853
  window.location.href
4825
- ), window.addEventListener("message", dt, !1), () => {
4826
- window.removeEventListener("message", dt);
4854
+ ), window.addEventListener("message", gt, !1), () => {
4855
+ window.removeEventListener("message", gt);
4827
4856
  }));
4828
- function Gr(p) {
4857
+ function Ur(p) {
4829
4858
  Pe[p ? "unshift" : "push"](() => {
4830
- b = p, r(5, b);
4859
+ w = p, r(5, w);
4831
4860
  });
4832
4861
  }
4833
- function $r(p) {
4862
+ function Dr(p) {
4834
4863
  Pe[p ? "unshift" : "push"](() => {
4835
4864
  d = p, r(4, d);
4836
4865
  });
@@ -4839,45 +4868,45 @@ function Oo(e, t, r) {
4839
4868
  "clientstyling" in p && r(0, i = p.clientstyling), "clientstylingurl" in p && r(1, o = p.clientstylingurl), "mbsource" in p && r(2, s = p.mbsource), "translationurl" in p && r(17, a = p.translationurl), "lang" in p && r(18, l = p.lang);
4840
4869
  }, e.$$.update = () => {
4841
4870
  e.$$.dirty[0] & /*tournamentdetails*/
4842
- 8 && c && R(), e.$$.dirty[0] & /*lang*/
4843
- 262144 && l && L(), e.$$.dirty[0] & /*translationurl*/
4844
- 131072 && a && S(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4845
- 17 && i && d && mn(d, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4846
- 18 && o && d && dn(d, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4847
- 20 && s && d && bn(d, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
4848
- 32 && b && Rr(b);
4871
+ 8 && c && bt(), e.$$.dirty[0] & /*lang*/
4872
+ 262144 && l && b(), e.$$.dirty[0] & /*translationurl*/
4873
+ 131072 && a && L(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4874
+ 17 && i && d && bn(d, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4875
+ 18 && o && d && gn(d, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4876
+ 20 && s && d && vn(d, `${s}.Style`, v), e.$$.dirty[0] & /*gameListEle*/
4877
+ 32 && w && $r(w);
4849
4878
  }, [
4850
4879
  i,
4851
4880
  o,
4852
4881
  s,
4853
4882
  c,
4854
4883
  d,
4855
- b,
4884
+ w,
4856
4885
  u,
4857
4886
  h,
4858
4887
  f,
4859
- _,
4860
- H,
4888
+ S,
4861
4889
  $,
4862
4890
  N,
4863
- n,
4864
4891
  O,
4865
- P,
4892
+ n,
4893
+ y,
4866
4894
  C,
4895
+ R,
4867
4896
  a,
4868
4897
  l,
4869
- Gr,
4870
- $r
4898
+ Ur,
4899
+ Dr
4871
4900
  ];
4872
4901
  }
4873
- class No extends fn {
4902
+ class Mo extends mn {
4874
4903
  constructor(t) {
4875
- super(), hn(
4904
+ super(), fn(
4876
4905
  this,
4877
4906
  t,
4878
- Oo,
4879
- Ao,
4880
- tr,
4907
+ Lo,
4908
+ Io,
4909
+ nr,
4881
4910
  {
4882
4911
  clientstyling: 0,
4883
4912
  clientstylingurl: 1,
@@ -4885,7 +4914,7 @@ class No extends fn {
4885
4914
  translationurl: 17,
4886
4915
  lang: 18
4887
4916
  },
4888
- wo,
4917
+ Bo,
4889
4918
  [-1, -1]
4890
4919
  );
4891
4920
  }
@@ -4893,34 +4922,34 @@ class No extends fn {
4893
4922
  return this.$$.ctx[0];
4894
4923
  }
4895
4924
  set clientstyling(t) {
4896
- this.$$set({ clientstyling: t }), Y();
4925
+ this.$$set({ clientstyling: t }), q();
4897
4926
  }
4898
4927
  get clientstylingurl() {
4899
4928
  return this.$$.ctx[1];
4900
4929
  }
4901
4930
  set clientstylingurl(t) {
4902
- this.$$set({ clientstylingurl: t }), Y();
4931
+ this.$$set({ clientstylingurl: t }), q();
4903
4932
  }
4904
4933
  get mbsource() {
4905
4934
  return this.$$.ctx[2];
4906
4935
  }
4907
4936
  set mbsource(t) {
4908
- this.$$set({ mbsource: t }), Y();
4937
+ this.$$set({ mbsource: t }), q();
4909
4938
  }
4910
4939
  get translationurl() {
4911
4940
  return this.$$.ctx[17];
4912
4941
  }
4913
4942
  set translationurl(t) {
4914
- this.$$set({ translationurl: t }), Y();
4943
+ this.$$set({ translationurl: t }), q();
4915
4944
  }
4916
4945
  get lang() {
4917
4946
  return this.$$.ctx[18];
4918
4947
  }
4919
4948
  set lang(t) {
4920
- this.$$set({ lang: t }), Y();
4949
+ this.$$set({ lang: t }), q();
4921
4950
  }
4922
4951
  }
4923
- cn(No, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
4952
+ pn(Mo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
4924
4953
  export {
4925
- No as default
4954
+ Mo as default
4926
4955
  };