@everymatrix/casino-categories 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,58 +1,58 @@
1
- var tr = Object.defineProperty, rr = Object.defineProperties;
2
- var nr = Object.getOwnPropertyDescriptors;
3
- var Ye = Object.getOwnPropertySymbols;
4
- var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
5
- var Ae = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
1
+ var nr = Object.defineProperty, ir = Object.defineProperties;
2
+ var or = Object.getOwnPropertyDescriptors;
3
+ var Ke = Object.getOwnPropertySymbols;
4
+ var sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
5
+ var Be = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- ir.call(t, r) && Ae(e, r, t[r]);
8
- if (Ye)
9
- for (var r of Ye(t))
10
- sr.call(t, r) && Ae(e, r, t[r]);
7
+ sr.call(t, r) && Be(e, r, t[r]);
8
+ if (Ke)
9
+ for (var r of Ke(t))
10
+ ar.call(t, r) && Be(e, r, t[r]);
11
11
  return e;
12
- }, et = (e, t) => rr(e, nr(t));
13
- var N = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var tt = (e, t, r) => new Promise((n, i) => {
15
- var s = (h) => {
12
+ }, tt = (e, t) => ir(e, or(t));
13
+ var N = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var rt = (e, t, r) => new Promise((n, i) => {
15
+ var o = (h) => {
16
16
  try {
17
- u(r.next(h));
18
- } catch (a) {
19
- i(a);
17
+ a(r.next(h));
18
+ } catch (u) {
19
+ i(u);
20
20
  }
21
- }, o = (h) => {
21
+ }, s = (h) => {
22
22
  try {
23
- u(r.throw(h));
24
- } catch (a) {
25
- i(a);
23
+ a(r.throw(h));
24
+ } catch (u) {
25
+ i(u);
26
26
  }
27
- }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
- u((r = r.apply(e, t)).next());
27
+ }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
29
  });
30
30
  import "../stencil/ui-image-CP8Lp7fB.js";
31
31
  function L() {
32
32
  }
33
- function Ct(e) {
33
+ function Ht(e) {
34
34
  return e();
35
35
  }
36
- function rt() {
36
+ function nt() {
37
37
  return /* @__PURE__ */ Object.create(null);
38
38
  }
39
- function he(e) {
40
- e.forEach(Ct);
39
+ function le(e) {
40
+ e.forEach(Ht);
41
41
  }
42
- function We(e) {
42
+ function Ze(e) {
43
43
  return typeof e == "function";
44
44
  }
45
- function Ht(e, t) {
45
+ function St(e, t) {
46
46
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
47
47
  }
48
- let ce;
49
- function ye(e, t) {
50
- return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
48
+ let ge;
49
+ function _e(e, t) {
50
+ return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
51
51
  }
52
- function or(e) {
52
+ function ur(e) {
53
53
  return Object.keys(e).length === 0;
54
54
  }
55
- function St(e, ...t) {
55
+ function At(e, ...t) {
56
56
  if (e == null) {
57
57
  for (const n of t)
58
58
  n(void 0);
@@ -61,20 +61,20 @@ function St(e, ...t) {
61
61
  const r = e.subscribe(...t);
62
62
  return r.unsubscribe ? () => r.unsubscribe() : r;
63
63
  }
64
- function ar(e, t, r) {
65
- e.$$.on_destroy.push(St(t, r));
64
+ function hr(e, t, r) {
65
+ e.$$.on_destroy.push(At(t, r));
66
66
  }
67
67
  function x(e, t) {
68
68
  e.appendChild(t);
69
69
  }
70
- function ur(e, t, r) {
71
- const n = hr(e);
70
+ function lr(e, t, r) {
71
+ const n = cr(e);
72
72
  if (!n.getElementById(t)) {
73
73
  const i = B("style");
74
- i.id = t, i.textContent = r, lr(n, i);
74
+ i.id = t, i.textContent = r, fr(n, i);
75
75
  }
76
76
  }
77
- function hr(e) {
77
+ function cr(e) {
78
78
  if (!e)
79
79
  return document;
80
80
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -84,20 +84,20 @@ function hr(e) {
84
84
  t
85
85
  ) : e.ownerDocument;
86
86
  }
87
- function lr(e, t) {
87
+ function fr(e, t) {
88
88
  return x(
89
89
  /** @type {Document} */
90
90
  e.head || e,
91
91
  t
92
92
  ), t.sheet;
93
93
  }
94
- function ee(e, t, r) {
94
+ function te(e, t, r) {
95
95
  e.insertBefore(t, r || null);
96
96
  }
97
97
  function V(e) {
98
98
  e.parentNode && e.parentNode.removeChild(e);
99
99
  }
100
- function nt(e, t) {
100
+ function it(e, t) {
101
101
  for (let r = 0; r < e.length; r += 1)
102
102
  e[r] && e[r].d(t);
103
103
  }
@@ -110,7 +110,7 @@ function D(e) {
110
110
  function G() {
111
111
  return D(" ");
112
112
  }
113
- function At(e, t, r, n) {
113
+ function Bt(e, t, r, n) {
114
114
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
115
115
  }
116
116
  function I(e, t, r) {
@@ -120,14 +120,14 @@ function R(e, t, r) {
120
120
  const n = t.toLowerCase();
121
121
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
122
122
  }
123
- function fr(e) {
123
+ function gr(e) {
124
124
  return Array.from(e.childNodes);
125
125
  }
126
126
  function j(e, t) {
127
127
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
128
128
  t);
129
129
  }
130
- function cr(e) {
130
+ function mr(e) {
131
131
  const t = {};
132
132
  return e.childNodes.forEach(
133
133
  /** @param {Element} node */
@@ -136,98 +136,98 @@ function cr(e) {
136
136
  }
137
137
  ), t;
138
138
  }
139
- let oe;
139
+ let ae;
140
140
  function se(e) {
141
- oe = e;
141
+ ae = e;
142
142
  }
143
- function gr() {
144
- if (!oe)
143
+ function pr() {
144
+ if (!ae)
145
145
  throw new Error("Function called outside component initialization");
146
- return oe;
146
+ return ae;
147
147
  }
148
- function mr(e) {
149
- gr().$$.on_mount.push(e);
148
+ function dr(e) {
149
+ pr().$$.on_mount.push(e);
150
150
  }
151
- const Z = [], Me = [];
152
- let Q = [];
153
- const it = [], pr = /* @__PURE__ */ Promise.resolve();
154
- let $e = !1;
155
- function dr() {
156
- $e || ($e = !0, pr.then(M));
151
+ const Z = [], $e = [];
152
+ let J = [];
153
+ const ot = [], br = /* @__PURE__ */ Promise.resolve();
154
+ let Re = !1;
155
+ function yr() {
156
+ Re || (Re = !0, br.then(M));
157
157
  }
158
- function Re(e) {
159
- Q.push(e);
158
+ function Ue(e) {
159
+ J.push(e);
160
160
  }
161
- const Be = /* @__PURE__ */ new Set();
161
+ const we = /* @__PURE__ */ new Set();
162
162
  let z = 0;
163
163
  function M() {
164
164
  if (z !== 0)
165
165
  return;
166
- const e = oe;
166
+ const e = ae;
167
167
  do {
168
168
  try {
169
169
  for (; z < Z.length; ) {
170
170
  const t = Z[z];
171
- z++, se(t), br(t.$$);
171
+ z++, se(t), _r(t.$$);
172
172
  }
173
173
  } catch (t) {
174
174
  throw Z.length = 0, z = 0, t;
175
175
  }
176
- for (se(null), Z.length = 0, z = 0; Me.length; )
177
- Me.pop()();
178
- for (let t = 0; t < Q.length; t += 1) {
179
- const r = Q[t];
180
- Be.has(r) || (Be.add(r), r());
176
+ for (se(null), Z.length = 0, z = 0; $e.length; )
177
+ $e.pop()();
178
+ for (let t = 0; t < J.length; t += 1) {
179
+ const r = J[t];
180
+ we.has(r) || (we.add(r), r());
181
181
  }
182
- Q.length = 0;
182
+ J.length = 0;
183
183
  } while (Z.length);
184
- for (; it.length; )
185
- it.pop()();
186
- $e = !1, Be.clear(), se(e);
184
+ for (; ot.length; )
185
+ ot.pop()();
186
+ Re = !1, we.clear(), se(e);
187
187
  }
188
- function br(e) {
188
+ function _r(e) {
189
189
  if (e.fragment !== null) {
190
- e.update(), he(e.before_update);
190
+ e.update(), le(e.before_update);
191
191
  const t = e.dirty;
192
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
192
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
193
193
  }
194
194
  }
195
- function yr(e) {
195
+ function Er(e) {
196
196
  const t = [], r = [];
197
- Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
197
+ J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
198
198
  }
199
- const _r = /* @__PURE__ */ new Set();
200
- function Er(e, t) {
201
- e && e.i && (_r.delete(e), e.i(t));
199
+ const xr = /* @__PURE__ */ new Set();
200
+ function vr(e, t) {
201
+ e && e.i && (xr.delete(e), e.i(t));
202
202
  }
203
- function ge(e) {
203
+ function me(e) {
204
204
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
205
205
  }
206
- function xr(e, t, r) {
206
+ function Cr(e, t, r) {
207
207
  const { fragment: n, after_update: i } = e.$$;
208
- n && n.m(t, r), Re(() => {
209
- const s = e.$$.on_mount.map(Ct).filter(We);
210
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : he(s), e.$$.on_mount = [];
211
- }), i.forEach(Re);
208
+ n && n.m(t, r), Ue(() => {
209
+ const o = e.$$.on_mount.map(Ht).filter(Ze);
210
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : le(o), e.$$.on_mount = [];
211
+ }), i.forEach(Ue);
212
212
  }
213
- function vr(e, t) {
213
+ function Tr(e, t) {
214
214
  const r = e.$$;
215
- r.fragment !== null && (yr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
215
+ r.fragment !== null && (Er(r.after_update), le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
216
216
  }
217
- function Tr(e, t) {
218
- e.$$.dirty[0] === -1 && (Z.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
217
+ function Hr(e, t) {
218
+ e.$$.dirty[0] === -1 && (Z.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
219
219
  }
220
- function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
221
- const h = oe;
220
+ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
221
+ const h = ae;
222
222
  se(e);
223
- const a = e.$$ = {
223
+ const u = e.$$ = {
224
224
  fragment: null,
225
225
  ctx: [],
226
226
  // state
227
- props: s,
227
+ props: o,
228
228
  update: L,
229
229
  not_equal: i,
230
- bound: rt(),
230
+ bound: nt(),
231
231
  // lifecycle
232
232
  on_mount: [],
233
233
  on_destroy: [],
@@ -236,28 +236,28 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
236
236
  after_update: [],
237
237
  context: new Map(t.context || (h ? h.$$.context : [])),
238
238
  // everything else
239
- callbacks: rt(),
240
- dirty: u,
239
+ callbacks: nt(),
240
+ dirty: a,
241
241
  skip_bound: !1,
242
242
  root: t.target || h.$$.root
243
243
  };
244
- o && o(a.root);
244
+ s && s(u.root);
245
245
  let l = !1;
246
- if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
247
- const d = p.length ? p[0] : f;
248
- return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
249
- }) : [], a.update(), l = !0, he(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
246
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
247
+ const d = p.length ? p[0] : c;
248
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Hr(e, f)), c;
249
+ }) : [], u.update(), l = !0, le(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
250
250
  if (t.hydrate) {
251
- const c = fr(t.target);
252
- a.fragment && a.fragment.l(c), c.forEach(V);
251
+ const f = gr(t.target);
252
+ u.fragment && u.fragment.l(f), f.forEach(V);
253
253
  } else
254
- a.fragment && a.fragment.c();
255
- t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), M();
254
+ u.fragment && u.fragment.c();
255
+ t.intro && vr(e.$$.fragment), Cr(e, t.target, t.anchor), M();
256
256
  }
257
257
  se(h);
258
258
  }
259
- let Bt;
260
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
259
+ let wt;
260
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
261
261
  constructor(t, r, n) {
262
262
  super();
263
263
  /** The Svelte component constructor */
@@ -294,42 +294,42 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
294
294
  }
295
295
  }
296
296
  connectedCallback() {
297
- return tt(this, null, function* () {
297
+ return rt(this, null, function* () {
298
298
  if (this.$$cn = !0, !this.$$c) {
299
- let t = function(s) {
299
+ let t = function(o) {
300
300
  return () => {
301
- let o;
301
+ let s;
302
302
  return {
303
303
  c: function() {
304
- o = B("slot"), s !== "default" && I(o, "name", s);
304
+ s = B("slot"), o !== "default" && I(s, "name", o);
305
305
  },
306
306
  /**
307
307
  * @param {HTMLElement} target
308
308
  * @param {HTMLElement} [anchor]
309
309
  */
310
- m: function(a, l) {
311
- ee(a, o, l);
310
+ m: function(u, l) {
311
+ te(u, s, l);
312
312
  },
313
- d: function(a) {
314
- a && V(o);
313
+ d: function(u) {
314
+ u && V(s);
315
315
  }
316
316
  };
317
317
  };
318
318
  };
319
319
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
320
320
  return;
321
- const r = {}, n = cr(this);
322
- for (const s of this.$$s)
323
- s in n && (r[s] = [t(s)]);
324
- for (const s of this.attributes) {
325
- const o = this.$$g_p(s.name);
326
- o in this.$$d || (this.$$d[o] = pe(o, s.value, this.$$p_d, "toProp"));
321
+ const r = {}, n = mr(this);
322
+ for (const o of this.$$s)
323
+ o in n && (r[o] = [t(o)]);
324
+ for (const o of this.attributes) {
325
+ const s = this.$$g_p(o.name);
326
+ s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
327
327
  }
328
- for (const s in this.$$p_d)
329
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
328
+ for (const o in this.$$p_d)
329
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
330
330
  this.$$c = new this.$$ctor({
331
331
  target: this.shadowRoot || this,
332
- props: et(Ke({}, this.$$d), {
332
+ props: tt(et({}, this.$$d), {
333
333
  $$slots: r,
334
334
  $$scope: {
335
335
  ctx: []
@@ -338,23 +338,23 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
338
338
  });
339
339
  const i = () => {
340
340
  this.$$r = !0;
341
- for (const s in this.$$p_d)
342
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
343
- const o = pe(
344
- s,
345
- this.$$d[s],
341
+ for (const o in this.$$p_d)
342
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
343
+ const s = de(
344
+ o,
345
+ this.$$d[o],
346
346
  this.$$p_d,
347
347
  "toAttribute"
348
348
  );
349
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
349
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
350
350
  }
351
351
  this.$$r = !1;
352
352
  };
353
353
  this.$$c.$$.after_update.push(i), i();
354
- for (const s in this.$$l)
355
- for (const o of this.$$l[s]) {
356
- const u = this.$$c.$on(s, o);
357
- this.$$l_u.set(o, u);
354
+ for (const o in this.$$l)
355
+ for (const s of this.$$l[o]) {
356
+ const a = this.$$c.$on(o, s);
357
+ this.$$l_u.set(s, a);
358
358
  }
359
359
  this.$$l = {};
360
360
  }
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
364
364
  // and setting attributes through setAttribute etc, this is helpful
365
365
  attributeChangedCallback(t, r, n) {
366
366
  var i;
367
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
367
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
368
368
  }
369
369
  disconnectedCallback() {
370
370
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -377,9 +377,9 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
377
377
  ) || t;
378
378
  }
379
379
  });
380
- function pe(e, t, r, n) {
381
- var s;
382
- const i = (s = r[e]) == null ? void 0 : s.type;
380
+ function de(e, t, r, n) {
381
+ var o;
382
+ const i = (o = r[e]) == null ? void 0 : o.type;
383
383
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
384
384
  return t;
385
385
  if (n === "toAttribute")
@@ -407,38 +407,38 @@ function pe(e, t, r, n) {
407
407
  return t;
408
408
  }
409
409
  }
410
- function Hr(e, t, r, n, i, s) {
411
- let o = class extends Bt {
410
+ function Ar(e, t, r, n, i, o) {
411
+ let s = class extends wt {
412
412
  constructor() {
413
413
  super(e, r, i), this.$$p_d = t;
414
414
  }
415
415
  static get observedAttributes() {
416
416
  return Object.keys(t).map(
417
- (u) => (t[u].attribute || u).toLowerCase()
417
+ (a) => (t[a].attribute || a).toLowerCase()
418
418
  );
419
419
  }
420
420
  };
421
- return Object.keys(t).forEach((u) => {
422
- Object.defineProperty(o.prototype, u, {
421
+ return Object.keys(t).forEach((a) => {
422
+ Object.defineProperty(s.prototype, a, {
423
423
  get() {
424
- return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
424
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
425
425
  },
426
426
  set(h) {
427
- var a;
428
- h = pe(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
427
+ var u;
428
+ h = de(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
429
429
  }
430
430
  });
431
- }), n.forEach((u) => {
432
- Object.defineProperty(o.prototype, u, {
431
+ }), n.forEach((a) => {
432
+ Object.defineProperty(s.prototype, a, {
433
433
  get() {
434
434
  var h;
435
- return (h = this.$$c) == null ? void 0 : h[u];
435
+ return (h = this.$$c) == null ? void 0 : h[a];
436
436
  }
437
437
  });
438
438
  }), e.element = /** @type {any} */
439
- o, o;
439
+ s, s;
440
440
  }
441
- class Sr {
441
+ class Br {
442
442
  constructor() {
443
443
  /**
444
444
  * ### PRIVATE API
@@ -459,7 +459,7 @@ class Sr {
459
459
  }
460
460
  /** @returns {void} */
461
461
  $destroy() {
462
- vr(this, 1), this.$destroy = L;
462
+ Tr(this, 1), this.$destroy = L;
463
463
  }
464
464
  /**
465
465
  * @template {Extract<keyof Events, string>} K
@@ -468,7 +468,7 @@ class Sr {
468
468
  * @returns {() => void}
469
469
  */
470
470
  $on(t, r) {
471
- if (!We(r))
471
+ if (!Ze(r))
472
472
  return L;
473
473
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
474
474
  return n.push(r), () => {
@@ -481,115 +481,115 @@ class Sr {
481
481
  * @returns {void}
482
482
  */
483
483
  $set(t) {
484
- this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
484
+ this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
485
485
  }
486
486
  }
487
- const Ar = "4";
488
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
487
+ const wr = "4";
488
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
489
489
  const W = [];
490
- function Br(e, t) {
490
+ function Or(e, t) {
491
491
  return {
492
- subscribe: ve(e, t).subscribe
492
+ subscribe: Ce(e, t).subscribe
493
493
  };
494
494
  }
495
- function ve(e, t = L) {
495
+ function Ce(e, t = L) {
496
496
  let r;
497
497
  const n = /* @__PURE__ */ new Set();
498
- function i(u) {
499
- if (Ht(e, u) && (e = u, r)) {
498
+ function i(a) {
499
+ if (St(e, a) && (e = a, r)) {
500
500
  const h = !W.length;
501
- for (const a of n)
502
- a[1](), W.push(a, e);
501
+ for (const u of n)
502
+ u[1](), W.push(u, e);
503
503
  if (h) {
504
- for (let a = 0; a < W.length; a += 2)
505
- W[a][0](W[a + 1]);
504
+ for (let u = 0; u < W.length; u += 2)
505
+ W[u][0](W[u + 1]);
506
506
  W.length = 0;
507
507
  }
508
508
  }
509
509
  }
510
- function s(u) {
511
- i(u(e));
510
+ function o(a) {
511
+ i(a(e));
512
512
  }
513
- function o(u, h = L) {
514
- const a = [u, h];
515
- return n.add(a), n.size === 1 && (r = t(i, s) || L), u(e), () => {
516
- n.delete(a), n.size === 0 && r && (r(), r = null);
513
+ function s(a, h = L) {
514
+ const u = [a, h];
515
+ return n.add(u), n.size === 1 && (r = t(i, o) || L), a(e), () => {
516
+ n.delete(u), n.size === 0 && r && (r(), r = null);
517
517
  };
518
518
  }
519
- return { set: i, update: s, subscribe: o };
519
+ return { set: i, update: o, subscribe: s };
520
520
  }
521
- function te(e, t, r) {
521
+ function re(e, t, r) {
522
522
  const n = !Array.isArray(e), i = n ? [e] : e;
523
523
  if (!i.every(Boolean))
524
524
  throw new Error("derived() expects stores as input, got a falsy value");
525
- const s = t.length < 2;
526
- return Br(r, (o, u) => {
525
+ const o = t.length < 2;
526
+ return Or(r, (s, a) => {
527
527
  let h = !1;
528
- const a = [];
529
- let l = 0, c = L;
530
- const f = () => {
528
+ const u = [];
529
+ let l = 0, f = L;
530
+ const c = () => {
531
531
  if (l)
532
532
  return;
533
- c();
534
- const d = t(n ? a[0] : a, o, u);
535
- s ? o(d) : c = We(d) ? d : L;
533
+ f();
534
+ const d = t(n ? u[0] : u, s, a);
535
+ o ? s(d) : f = Ze(d) ? d : L;
536
536
  }, p = i.map(
537
- (d, g) => St(
537
+ (d, g) => At(
538
538
  d,
539
539
  (E) => {
540
- a[g] = E, l &= ~(1 << g), h && f();
540
+ u[g] = E, l &= ~(1 << g), h && c();
541
541
  },
542
542
  () => {
543
543
  l |= 1 << g;
544
544
  }
545
545
  )
546
546
  );
547
- return h = !0, f(), function() {
548
- he(p), c(), h = !1;
547
+ return h = !0, c(), function() {
548
+ le(p), f(), h = !1;
549
549
  };
550
550
  });
551
551
  }
552
- function Or(e) {
552
+ function Pr(e) {
553
553
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
554
554
  }
555
- var wr = function(t) {
556
- return Pr(t) && !Nr(t);
555
+ var Nr = function(t) {
556
+ return Lr(t) && !Ir(t);
557
557
  };
558
- function Pr(e) {
558
+ function Lr(e) {
559
559
  return !!e && typeof e == "object";
560
560
  }
561
- function Nr(e) {
561
+ function Ir(e) {
562
562
  var t = Object.prototype.toString.call(e);
563
- return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
563
+ return t === "[object RegExp]" || t === "[object Date]" || Rr(e);
564
564
  }
565
- var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
566
- function Mr(e) {
567
- return e.$$typeof === Ir;
565
+ var Mr = typeof Symbol == "function" && Symbol.for, $r = Mr ? Symbol.for("react.element") : 60103;
566
+ function Rr(e) {
567
+ return e.$$typeof === $r;
568
568
  }
569
- function $r(e) {
569
+ function Ur(e) {
570
570
  return Array.isArray(e) ? [] : {};
571
571
  }
572
- function ae(e, t) {
573
- return t.clone !== !1 && t.isMergeableObject(e) ? J($r(e), e, t) : e;
572
+ function ue(e, t) {
573
+ return t.clone !== !1 && t.isMergeableObject(e) ? q(Ur(e), e, t) : e;
574
574
  }
575
- function Rr(e, t, r) {
575
+ function Gr(e, t, r) {
576
576
  return e.concat(t).map(function(n) {
577
- return ae(n, r);
577
+ return ue(n, r);
578
578
  });
579
579
  }
580
- function Ur(e, t) {
580
+ function Dr(e, t) {
581
581
  if (!t.customMerge)
582
- return J;
582
+ return q;
583
583
  var r = t.customMerge(e);
584
- return typeof r == "function" ? r : J;
584
+ return typeof r == "function" ? r : q;
585
585
  }
586
- function Gr(e) {
586
+ function Fr(e) {
587
587
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
588
588
  return Object.propertyIsEnumerable.call(e, t);
589
589
  }) : [];
590
590
  }
591
591
  function st(e) {
592
- return Object.keys(e).concat(Gr(e));
592
+ return Object.keys(e).concat(Fr(e));
593
593
  }
594
594
  function Ot(e, t) {
595
595
  try {
@@ -598,43 +598,43 @@ function Ot(e, t) {
598
598
  return !1;
599
599
  }
600
600
  }
601
- function Dr(e, t) {
601
+ function jr(e, t) {
602
602
  return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
603
603
  }
604
- function Fr(e, t, r) {
604
+ function kr(e, t, r) {
605
605
  var n = {};
606
606
  return r.isMergeableObject(e) && st(e).forEach(function(i) {
607
- n[i] = ae(e[i], r);
607
+ n[i] = ue(e[i], r);
608
608
  }), st(t).forEach(function(i) {
609
- Dr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
609
+ jr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dr(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
610
610
  }), n;
611
611
  }
612
- function J(e, t, r) {
613
- r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = ae;
614
- var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
615
- return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : ae(t, r);
612
+ function q(e, t, r) {
613
+ r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Nr, r.cloneUnlessOtherwiseSpecified = ue;
614
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
615
+ return o ? n ? r.arrayMerge(e, t, r) : kr(e, t, r) : ue(t, r);
616
616
  }
617
- J.all = function(t, r) {
617
+ q.all = function(t, r) {
618
618
  if (!Array.isArray(t))
619
619
  throw new Error("first argument should be an array");
620
620
  return t.reduce(function(n, i) {
621
- return J(n, i, r);
621
+ return q(n, i, r);
622
622
  }, {});
623
623
  };
624
- var jr = J, kr = jr;
625
- const Vr = /* @__PURE__ */ Or(kr);
626
- var Ue = function(e, t) {
627
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
624
+ var Vr = q, Xr = Vr;
625
+ const zr = /* @__PURE__ */ Pr(Xr);
626
+ var Ge = function(e, t) {
627
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
628
628
  r.__proto__ = n;
629
629
  } || function(r, n) {
630
630
  for (var i in n)
631
631
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
632
- }, Ue(e, t);
632
+ }, Ge(e, t);
633
633
  };
634
634
  function Te(e, t) {
635
635
  if (typeof t != "function" && t !== null)
636
636
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
637
- Ue(e, t);
637
+ Ge(e, t);
638
638
  function r() {
639
639
  this.constructor = e;
640
640
  }
@@ -644,13 +644,13 @@ var U = function() {
644
644
  return U = Object.assign || function(t) {
645
645
  for (var r, n = 1, i = arguments.length; n < i; n++) {
646
646
  r = arguments[n];
647
- for (var s in r)
648
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
647
+ for (var o in r)
648
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
649
649
  }
650
650
  return t;
651
651
  }, U.apply(this, arguments);
652
652
  };
653
- function Xr(e, t) {
653
+ function Wr(e, t) {
654
654
  var r = {};
655
655
  for (var n in e)
656
656
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -661,41 +661,41 @@ function Xr(e, t) {
661
661
  }
662
662
  function Oe(e, t, r) {
663
663
  if (r || arguments.length === 2)
664
- for (var n = 0, i = t.length, s; n < i; n++)
665
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
666
- return e.concat(s || Array.prototype.slice.call(t));
664
+ for (var n = 0, i = t.length, o; n < i; n++)
665
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
666
+ return e.concat(o || Array.prototype.slice.call(t));
667
667
  }
668
- function we(e, t) {
669
- var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Zr;
668
+ function Pe(e, t) {
669
+ var r = t && t.cache ? t.cache : en, n = t && t.serializer ? t.serializer : Yr, i = t && t.strategy ? t.strategy : Jr;
670
670
  return i(e, {
671
671
  cache: r,
672
672
  serializer: n
673
673
  });
674
674
  }
675
- function zr(e) {
675
+ function Zr(e) {
676
676
  return e == null || typeof e == "number" || typeof e == "boolean";
677
677
  }
678
- function Wr(e, t, r, n) {
679
- var i = zr(n) ? n : r(n), s = t.get(i);
680
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
678
+ function Qr(e, t, r, n) {
679
+ var i = Zr(n) ? n : r(n), o = t.get(i);
680
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
681
681
  }
682
- function wt(e, t, r) {
683
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
684
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
682
+ function Pt(e, t, r) {
683
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
684
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
685
685
  }
686
- function Pt(e, t, r, n, i) {
686
+ function Nt(e, t, r, n, i) {
687
687
  return r.bind(t, e, n, i);
688
688
  }
689
- function Zr(e, t) {
690
- var r = e.length === 1 ? Wr : wt;
691
- return Pt(e, this, r, t.cache.create(), t.serializer);
689
+ function Jr(e, t) {
690
+ var r = e.length === 1 ? Qr : Pt;
691
+ return Nt(e, this, r, t.cache.create(), t.serializer);
692
692
  }
693
- function Qr(e, t) {
694
- return Pt(e, this, wt, t.cache.create(), t.serializer);
693
+ function qr(e, t) {
694
+ return Nt(e, this, Pt, t.cache.create(), t.serializer);
695
695
  }
696
- var Jr = function() {
696
+ var Yr = function() {
697
697
  return JSON.stringify(arguments);
698
- }, qr = (
698
+ }, Kr = (
699
699
  /** @class */
700
700
  function() {
701
701
  function e() {
@@ -707,71 +707,71 @@ var Jr = function() {
707
707
  this.cache[t] = r;
708
708
  }, e;
709
709
  }()
710
- ), Yr = {
710
+ ), en = {
711
711
  create: function() {
712
- return new qr();
712
+ return new Kr();
713
713
  }
714
- }, Pe = {
715
- variadic: Qr
716
- }, _e = function() {
717
- return _e = Object.assign || function(t) {
714
+ }, Ne = {
715
+ variadic: qr
716
+ }, Ee = function() {
717
+ return Ee = Object.assign || function(t) {
718
718
  for (var r, n = 1, i = arguments.length; n < i; n++) {
719
719
  r = arguments[n];
720
- for (var s in r)
721
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
720
+ for (var o in r)
721
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
722
722
  }
723
723
  return t;
724
- }, _e.apply(this, arguments);
724
+ }, Ee.apply(this, arguments);
725
725
  };
726
726
  var y;
727
727
  (function(e) {
728
728
  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";
729
729
  })(y || (y = {}));
730
- var v;
730
+ var C;
731
731
  (function(e) {
732
732
  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";
733
- })(v || (v = {}));
734
- var q;
733
+ })(C || (C = {}));
734
+ var Y;
735
735
  (function(e) {
736
736
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
737
- })(q || (q = {}));
738
- function ot(e) {
739
- return e.type === v.literal;
740
- }
741
- function Kr(e) {
742
- return e.type === v.argument;
737
+ })(Y || (Y = {}));
738
+ function at(e) {
739
+ return e.type === C.literal;
743
740
  }
744
- function Nt(e) {
745
- return e.type === v.number;
741
+ function tn(e) {
742
+ return e.type === C.argument;
746
743
  }
747
744
  function Lt(e) {
748
- return e.type === v.date;
745
+ return e.type === C.number;
749
746
  }
750
747
  function It(e) {
751
- return e.type === v.time;
748
+ return e.type === C.date;
752
749
  }
753
750
  function Mt(e) {
754
- return e.type === v.select;
751
+ return e.type === C.time;
755
752
  }
756
753
  function $t(e) {
757
- return e.type === v.plural;
758
- }
759
- function en(e) {
760
- return e.type === v.pound;
754
+ return e.type === C.select;
761
755
  }
762
756
  function Rt(e) {
763
- return e.type === v.tag;
757
+ return e.type === C.plural;
758
+ }
759
+ function rn(e) {
760
+ return e.type === C.pound;
764
761
  }
765
762
  function Ut(e) {
766
- return !!(e && typeof e == "object" && e.type === q.number);
763
+ return e.type === C.tag;
767
764
  }
768
- function Ge(e) {
769
- return !!(e && typeof e == "object" && e.type === q.dateTime);
765
+ function Gt(e) {
766
+ return !!(e && typeof e == "object" && e.type === Y.number);
770
767
  }
771
- var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
772
- function rn(e) {
768
+ function De(e) {
769
+ return !!(e && typeof e == "object" && e.type === Y.dateTime);
770
+ }
771
+ var Dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, nn = /(?:[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;
772
+ function on(e) {
773
773
  var t = {};
774
- return e.replace(tn, function(r) {
774
+ return e.replace(nn, function(r) {
775
775
  var n = r.length;
776
776
  switch (r[0]) {
777
777
  case "G":
@@ -860,46 +860,46 @@ function rn(e) {
860
860
  return "";
861
861
  }), t;
862
862
  }
863
- var C = function() {
864
- return C = Object.assign || function(t) {
863
+ var T = function() {
864
+ return T = Object.assign || function(t) {
865
865
  for (var r, n = 1, i = arguments.length; n < i; n++) {
866
866
  r = arguments[n];
867
- for (var s in r)
868
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
867
+ for (var o in r)
868
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
869
869
  }
870
870
  return t;
871
- }, C.apply(this, arguments);
871
+ }, T.apply(this, arguments);
872
872
  };
873
- var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
874
- function sn(e) {
873
+ var sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
874
+ function an(e) {
875
875
  if (e.length === 0)
876
876
  throw new Error("Number skeleton cannot be empty");
877
- for (var t = e.split(nn).filter(function(f) {
878
- return f.length > 0;
877
+ for (var t = e.split(sn).filter(function(c) {
878
+ return c.length > 0;
879
879
  }), r = [], n = 0, i = t; n < i.length; n++) {
880
- var s = i[n], o = s.split("/");
881
- if (o.length === 0)
880
+ var o = i[n], s = o.split("/");
881
+ if (s.length === 0)
882
882
  throw new Error("Invalid number skeleton");
883
- for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
884
- var c = l[a];
885
- if (c.length === 0)
883
+ for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
884
+ var f = l[u];
885
+ if (f.length === 0)
886
886
  throw new Error("Invalid number skeleton");
887
887
  }
888
- r.push({ stem: u, options: h });
888
+ r.push({ stem: a, options: h });
889
889
  }
890
890
  return r;
891
891
  }
892
- function on(e) {
892
+ function un(e) {
893
893
  return e.replace(/^(.*?)-/, "");
894
894
  }
895
- var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
896
- function ut(e) {
895
+ var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, hn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
896
+ function ht(e) {
897
897
  var t = {};
898
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
898
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
899
899
  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)), "";
900
900
  }), t;
901
901
  }
902
- function jt(e) {
902
+ function kt(e) {
903
903
  switch (e) {
904
904
  case "sign-auto":
905
905
  return {
@@ -939,7 +939,7 @@ function jt(e) {
939
939
  };
940
940
  }
941
941
  }
942
- function un(e) {
942
+ function ln(e) {
943
943
  var t;
944
944
  if (e[0] === "E" && e[1] === "E" ? (t = {
945
945
  notation: "engineering"
@@ -947,17 +947,17 @@ function un(e) {
947
947
  notation: "scientific"
948
948
  }, e = e.slice(1)), t) {
949
949
  var r = e.slice(0, 2);
950
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
950
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
951
951
  throw new Error("Malformed concise eng/scientific notation");
952
952
  t.minimumIntegerDigits = e.length;
953
953
  }
954
954
  return t;
955
955
  }
956
- function ht(e) {
957
- var t = {}, r = jt(e);
956
+ function lt(e) {
957
+ var t = {}, r = kt(e);
958
958
  return r || t;
959
959
  }
960
- function hn(e) {
960
+ function cn(e) {
961
961
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
962
962
  var i = n[r];
963
963
  switch (i.stem) {
@@ -981,7 +981,7 @@ function hn(e) {
981
981
  continue;
982
982
  case "measure-unit":
983
983
  case "unit":
984
- t.style = "unit", t.unit = on(i.options[0]);
984
+ t.style = "unit", t.unit = un(i.options[0]);
985
985
  continue;
986
986
  case "compact-short":
987
987
  case "K":
@@ -992,13 +992,13 @@ function hn(e) {
992
992
  t.notation = "compact", t.compactDisplay = "long";
993
993
  continue;
994
994
  case "scientific":
995
- t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
996
- return C(C({}, h), ht(a));
995
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
996
+ return T(T({}, h), lt(u));
997
997
  }, {}));
998
998
  continue;
999
999
  case "engineering":
1000
- t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
1001
- return C(C({}, h), ht(a));
1000
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1001
+ return T(T({}, h), lt(u));
1002
1002
  }, {}));
1003
1003
  continue;
1004
1004
  case "notation-simple":
@@ -1043,11 +1043,11 @@ function hn(e) {
1043
1043
  case "integer-width":
1044
1044
  if (i.options.length > 1)
1045
1045
  throw new RangeError("integer-width stems only accept a single optional option");
1046
- i.options[0].replace(an, function(h, a, l, c, f, p) {
1047
- if (a)
1046
+ i.options[0].replace(hn, function(h, u, l, f, c, p) {
1047
+ if (u)
1048
1048
  t.minimumIntegerDigits = l.length;
1049
1049
  else {
1050
- if (c && f)
1050
+ if (f && c)
1051
1051
  throw new Error("We currently do not support maximum integer digits");
1052
1052
  if (p)
1053
1053
  throw new Error("We currently do not support exact integer digits");
@@ -1056,32 +1056,32 @@ function hn(e) {
1056
1056
  });
1057
1057
  continue;
1058
1058
  }
1059
- if (Ft.test(i.stem)) {
1059
+ if (jt.test(i.stem)) {
1060
1060
  t.minimumIntegerDigits = i.stem.length;
1061
1061
  continue;
1062
1062
  }
1063
- if (at.test(i.stem)) {
1063
+ if (ut.test(i.stem)) {
1064
1064
  if (i.options.length > 1)
1065
1065
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1066
- i.stem.replace(at, function(h, a, l, c, f, p) {
1067
- return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1066
+ i.stem.replace(ut, function(h, u, l, f, c, p) {
1067
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1068
1068
  });
1069
- var s = i.options[0];
1070
- s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), ut(s)));
1069
+ var o = i.options[0];
1070
+ o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), ht(o)));
1071
1071
  continue;
1072
1072
  }
1073
- if (Dt.test(i.stem)) {
1074
- t = C(C({}, t), ut(i.stem));
1073
+ if (Ft.test(i.stem)) {
1074
+ t = T(T({}, t), ht(i.stem));
1075
1075
  continue;
1076
1076
  }
1077
- var o = jt(i.stem);
1078
- o && (t = C(C({}, t), o));
1079
- var u = un(i.stem);
1080
- u && (t = C(C({}, t), u));
1077
+ var s = kt(i.stem);
1078
+ s && (t = T(T({}, t), s));
1079
+ var a = ln(i.stem);
1080
+ a && (t = T(T({}, t), a));
1081
1081
  }
1082
1082
  return t;
1083
1083
  }
1084
- var me = {
1084
+ var pe = {
1085
1085
  "001": [
1086
1086
  "H",
1087
1087
  "h"
@@ -2496,23 +2496,23 @@ var me = {
2496
2496
  "h"
2497
2497
  ]
2498
2498
  };
2499
- function ln(e, t) {
2499
+ function fn(e, t) {
2500
2500
  for (var r = "", n = 0; n < e.length; n++) {
2501
2501
  var i = e.charAt(n);
2502
2502
  if (i === "j") {
2503
- for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2504
- s++, n++;
2505
- var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = fn(t);
2506
- for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2503
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2504
+ o++, n++;
2505
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = gn(t);
2506
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2507
2507
  r += h;
2508
- for (; o-- > 0; )
2509
- r = a + r;
2508
+ for (; s-- > 0; )
2509
+ r = u + r;
2510
2510
  } else
2511
2511
  i === "J" ? r += "H" : r += i;
2512
2512
  }
2513
2513
  return r;
2514
2514
  }
2515
- function fn(e) {
2515
+ function gn(e) {
2516
2516
  var t = e.hourCycle;
2517
2517
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2518
2518
  e.hourCycles && // @ts-ignore
@@ -2531,23 +2531,23 @@ function fn(e) {
2531
2531
  }
2532
2532
  var r = e.language, n;
2533
2533
  r !== "root" && (n = e.maximize().region);
2534
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2534
+ var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2535
2535
  return i[0];
2536
2536
  }
2537
- var Ne, cn = new RegExp("^".concat(Gt.source, "*")), gn = new RegExp("".concat(Gt.source, "*$"));
2537
+ var Le, mn = new RegExp("^".concat(Dt.source, "*")), pn = new RegExp("".concat(Dt.source, "*$"));
2538
2538
  function _(e, t) {
2539
2539
  return { start: e, end: t };
2540
2540
  }
2541
- var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), pn = !!String.fromCodePoint, dn = !!Object.fromEntries, bn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, xn = En ? Number.isSafeInteger : function(e) {
2541
+ var dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, yn = !!Object.fromEntries, _n = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, xn = !!String.prototype.trimEnd, vn = !!Number.isSafeInteger, Cn = vn ? Number.isSafeInteger : function(e) {
2542
2542
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2543
- }, De = !0;
2543
+ }, Fe = !0;
2544
2544
  try {
2545
- var vn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2546
- De = ((Ne = vn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2545
+ var Tn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2546
+ Fe = ((Le = Tn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2547
2547
  } catch (e) {
2548
- De = !1;
2548
+ Fe = !1;
2549
2549
  }
2550
- var lt = mn ? (
2550
+ var ct = dn ? (
2551
2551
  // Native
2552
2552
  function(t, r, n) {
2553
2553
  return t.startsWith(r, n);
@@ -2557,31 +2557,31 @@ var lt = mn ? (
2557
2557
  function(t, r, n) {
2558
2558
  return t.slice(n, n + r.length) === r;
2559
2559
  }
2560
- ), Fe = pn ? String.fromCodePoint : (
2560
+ ), je = bn ? String.fromCodePoint : (
2561
2561
  // IE11
2562
2562
  function() {
2563
2563
  for (var t = [], r = 0; r < arguments.length; r++)
2564
2564
  t[r] = arguments[r];
2565
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
2566
- if (o = t[s++], o > 1114111)
2567
- throw RangeError(o + " is not a valid code point");
2568
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2565
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2566
+ if (s = t[o++], s > 1114111)
2567
+ throw RangeError(s + " is not a valid code point");
2568
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2569
2569
  }
2570
2570
  return n;
2571
2571
  }
2572
2572
  ), ft = (
2573
2573
  // native
2574
- dn ? Object.fromEntries : (
2574
+ yn ? Object.fromEntries : (
2575
2575
  // Ponyfill
2576
2576
  function(t) {
2577
2577
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2578
- var s = i[n], o = s[0], u = s[1];
2579
- r[o] = u;
2578
+ var o = i[n], s = o[0], a = o[1];
2579
+ r[s] = a;
2580
2580
  }
2581
2581
  return r;
2582
2582
  }
2583
2583
  )
2584
- ), kt = bn ? (
2584
+ ), Vt = _n ? (
2585
2585
  // Native
2586
2586
  function(t, r) {
2587
2587
  return t.codePointAt(r);
@@ -2591,11 +2591,11 @@ var lt = mn ? (
2591
2591
  function(t, r) {
2592
2592
  var n = t.length;
2593
2593
  if (!(r < 0 || r >= n)) {
2594
- var i = t.charCodeAt(r), s;
2595
- return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2594
+ var i = t.charCodeAt(r), o;
2595
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2596
2596
  }
2597
2597
  }
2598
- ), Tn = yn ? (
2598
+ ), Hn = En ? (
2599
2599
  // Native
2600
2600
  function(t) {
2601
2601
  return t.trimStart();
@@ -2603,9 +2603,9 @@ var lt = mn ? (
2603
2603
  ) : (
2604
2604
  // Ponyfill
2605
2605
  function(t) {
2606
- return t.replace(cn, "");
2606
+ return t.replace(mn, "");
2607
2607
  }
2608
- ), Cn = _n ? (
2608
+ ), Sn = xn ? (
2609
2609
  // Native
2610
2610
  function(t) {
2611
2611
  return t.trimEnd();
@@ -2613,32 +2613,32 @@ var lt = mn ? (
2613
2613
  ) : (
2614
2614
  // Ponyfill
2615
2615
  function(t) {
2616
- return t.replace(gn, "");
2616
+ return t.replace(pn, "");
2617
2617
  }
2618
2618
  );
2619
- function Vt(e, t) {
2619
+ function Xt(e, t) {
2620
2620
  return new RegExp(e, t);
2621
2621
  }
2622
- var je;
2623
- if (De) {
2624
- var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2625
- je = function(t, r) {
2622
+ var ke;
2623
+ if (Fe) {
2624
+ var gt = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2625
+ ke = function(t, r) {
2626
2626
  var n;
2627
- ct.lastIndex = r;
2628
- var i = ct.exec(t);
2627
+ gt.lastIndex = r;
2628
+ var i = gt.exec(t);
2629
2629
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2630
2630
  };
2631
2631
  } else
2632
- je = function(t, r) {
2632
+ ke = function(t, r) {
2633
2633
  for (var n = []; ; ) {
2634
- var i = kt(t, r);
2635
- if (i === void 0 || Xt(i) || Bn(i))
2634
+ var i = Vt(t, r);
2635
+ if (i === void 0 || zt(i) || On(i))
2636
2636
  break;
2637
2637
  n.push(i), r += i >= 65536 ? 2 : 1;
2638
2638
  }
2639
- return Fe.apply(void 0, n);
2639
+ return je.apply(void 0, n);
2640
2640
  };
2641
- var Hn = (
2641
+ var An = (
2642
2642
  /** @class */
2643
2643
  function() {
2644
2644
  function e(t, r) {
@@ -2650,35 +2650,35 @@ var Hn = (
2650
2650
  return this.parseMessage(0, "", !1);
2651
2651
  }, e.prototype.parseMessage = function(t, r, n) {
2652
2652
  for (var i = []; !this.isEOF(); ) {
2653
- var s = this.char();
2654
- if (s === 123) {
2655
- var o = this.parseArgument(t, n);
2656
- if (o.err)
2657
- return o;
2658
- i.push(o.val);
2653
+ var o = this.char();
2654
+ if (o === 123) {
2655
+ var s = this.parseArgument(t, n);
2656
+ if (s.err)
2657
+ return s;
2658
+ i.push(s.val);
2659
2659
  } else {
2660
- if (s === 125 && t > 0)
2660
+ if (o === 125 && t > 0)
2661
2661
  break;
2662
- if (s === 35 && (r === "plural" || r === "selectordinal")) {
2663
- var u = this.clonePosition();
2662
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
2663
+ var a = this.clonePosition();
2664
2664
  this.bump(), i.push({
2665
- type: v.pound,
2666
- location: _(u, this.clonePosition())
2665
+ type: C.pound,
2666
+ location: _(a, this.clonePosition())
2667
2667
  });
2668
- } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2668
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2669
2669
  if (n)
2670
2670
  break;
2671
2671
  return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2672
- } else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2673
- var o = this.parseTag(t, r);
2674
- if (o.err)
2675
- return o;
2676
- i.push(o.val);
2672
+ } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2673
+ var s = this.parseTag(t, r);
2674
+ if (s.err)
2675
+ return s;
2676
+ i.push(s.val);
2677
2677
  } else {
2678
- var o = this.parseLiteral(t, r);
2679
- if (o.err)
2680
- return o;
2681
- i.push(o.val);
2678
+ var s = this.parseLiteral(t, r);
2679
+ if (s.err)
2680
+ return s;
2681
+ i.push(s.val);
2682
2682
  }
2683
2683
  }
2684
2684
  }
@@ -2690,66 +2690,66 @@ var Hn = (
2690
2690
  if (this.bumpSpace(), this.bumpIf("/>"))
2691
2691
  return {
2692
2692
  val: {
2693
- type: v.literal,
2693
+ type: C.literal,
2694
2694
  value: "<".concat(i, "/>"),
2695
2695
  location: _(n, this.clonePosition())
2696
2696
  },
2697
2697
  err: null
2698
2698
  };
2699
2699
  if (this.bumpIf(">")) {
2700
- var s = this.parseMessage(t + 1, r, !0);
2701
- if (s.err)
2702
- return s;
2703
- var o = s.val, u = this.clonePosition();
2700
+ var o = this.parseMessage(t + 1, r, !0);
2701
+ if (o.err)
2702
+ return o;
2703
+ var s = o.val, a = this.clonePosition();
2704
2704
  if (this.bumpIf("</")) {
2705
- if (this.isEOF() || !ke(this.char()))
2706
- return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
2707
- var h = this.clonePosition(), a = this.parseTagName();
2708
- return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2705
+ if (this.isEOF() || !Ve(this.char()))
2706
+ return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
2707
+ var h = this.clonePosition(), u = this.parseTagName();
2708
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2709
2709
  val: {
2710
- type: v.tag,
2710
+ type: C.tag,
2711
2711
  value: i,
2712
- children: o,
2712
+ children: s,
2713
2713
  location: _(n, this.clonePosition())
2714
2714
  },
2715
2715
  err: null
2716
- } : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
2716
+ } : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
2717
2717
  } else
2718
2718
  return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
2719
2719
  } else
2720
2720
  return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2721
2721
  }, e.prototype.parseTagName = function() {
2722
2722
  var t = this.offset();
2723
- for (this.bump(); !this.isEOF() && An(this.char()); )
2723
+ for (this.bump(); !this.isEOF() && wn(this.char()); )
2724
2724
  this.bump();
2725
2725
  return this.message.slice(t, this.offset());
2726
2726
  }, e.prototype.parseLiteral = function(t, r) {
2727
2727
  for (var n = this.clonePosition(), i = ""; ; ) {
2728
- var s = this.tryParseQuote(r);
2729
- if (s) {
2730
- i += s;
2731
- continue;
2732
- }
2733
- var o = this.tryParseUnquoted(t, r);
2728
+ var o = this.tryParseQuote(r);
2734
2729
  if (o) {
2735
2730
  i += o;
2736
2731
  continue;
2737
2732
  }
2738
- var u = this.tryParseLeftAngleBracket();
2739
- if (u) {
2740
- i += u;
2733
+ var s = this.tryParseUnquoted(t, r);
2734
+ if (s) {
2735
+ i += s;
2736
+ continue;
2737
+ }
2738
+ var a = this.tryParseLeftAngleBracket();
2739
+ if (a) {
2740
+ i += a;
2741
2741
  continue;
2742
2742
  }
2743
2743
  break;
2744
2744
  }
2745
2745
  var h = _(n, this.clonePosition());
2746
2746
  return {
2747
- val: { type: v.literal, value: i, location: h },
2747
+ val: { type: C.literal, value: i, location: h },
2748
2748
  err: null
2749
2749
  };
2750
2750
  }, e.prototype.tryParseLeftAngleBracket = function() {
2751
2751
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2752
- !Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
2752
+ !Bn(this.peek() || 0)) ? (this.bump(), "<") : null;
2753
2753
  }, e.prototype.tryParseQuote = function(t) {
2754
2754
  if (this.isEOF() || this.char() !== 39)
2755
2755
  return null;
@@ -2783,12 +2783,12 @@ var Hn = (
2783
2783
  r.push(n);
2784
2784
  this.bump();
2785
2785
  }
2786
- return Fe.apply(void 0, r);
2786
+ return je.apply(void 0, r);
2787
2787
  }, e.prototype.tryParseUnquoted = function(t, r) {
2788
2788
  if (this.isEOF())
2789
2789
  return null;
2790
2790
  var n = this.char();
2791
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2791
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
2792
2792
  }, e.prototype.parseArgument = function(t, r) {
2793
2793
  var n = this.clonePosition();
2794
2794
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2804,7 +2804,7 @@ var Hn = (
2804
2804
  case 125:
2805
2805
  return this.bump(), {
2806
2806
  val: {
2807
- type: v.argument,
2807
+ type: C.argument,
2808
2808
  // value does not include the opening and closing braces.
2809
2809
  value: i,
2810
2810
  location: _(n, this.clonePosition())
@@ -2817,66 +2817,66 @@ var Hn = (
2817
2817
  return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2818
2818
  }
2819
2819
  }, e.prototype.parseIdentifierIfPossible = function() {
2820
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2820
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2821
2821
  this.bumpTo(i);
2822
- var s = this.clonePosition(), o = _(t, s);
2823
- return { value: n, location: o };
2822
+ var o = this.clonePosition(), s = _(t, o);
2823
+ return { value: n, location: s };
2824
2824
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2825
- var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2826
- switch (u) {
2825
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2826
+ switch (a) {
2827
2827
  case "":
2828
- return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
2828
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, h));
2829
2829
  case "number":
2830
2830
  case "date":
2831
2831
  case "time": {
2832
2832
  this.bumpSpace();
2833
- var a = null;
2833
+ var u = null;
2834
2834
  if (this.bumpIf(",")) {
2835
2835
  this.bumpSpace();
2836
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2837
- if (c.err)
2838
- return c;
2839
- var f = Cn(c.val);
2840
- if (f.length === 0)
2836
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2837
+ if (f.err)
2838
+ return f;
2839
+ var c = Sn(f.val);
2840
+ if (c.length === 0)
2841
2841
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2842
2842
  var p = _(l, this.clonePosition());
2843
- a = { style: f, styleLocation: p };
2843
+ u = { style: c, styleLocation: p };
2844
2844
  }
2845
2845
  var d = this.tryParseArgumentClose(i);
2846
2846
  if (d.err)
2847
2847
  return d;
2848
2848
  var g = _(i, this.clonePosition());
2849
- if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
2850
- var E = Tn(a.style.slice(2));
2851
- if (u === "number") {
2852
- var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2853
- return c.err ? c : {
2854
- val: { type: v.number, value: n, location: g, style: c.val },
2849
+ if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
2850
+ var E = Hn(u.style.slice(2));
2851
+ if (a === "number") {
2852
+ var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
2853
+ return f.err ? f : {
2854
+ val: { type: C.number, value: n, location: g, style: f.val },
2855
2855
  err: null
2856
2856
  };
2857
2857
  } else {
2858
2858
  if (E.length === 0)
2859
2859
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2860
2860
  var m = E;
2861
- this.locale && (m = ln(E, this.locale));
2862
- var f = {
2863
- type: q.dateTime,
2861
+ this.locale && (m = fn(E, this.locale));
2862
+ var c = {
2863
+ type: Y.dateTime,
2864
2864
  pattern: m,
2865
- location: a.styleLocation,
2866
- parsedOptions: this.shouldParseSkeletons ? rn(m) : {}
2867
- }, T = u === "date" ? v.date : v.time;
2865
+ location: u.styleLocation,
2866
+ parsedOptions: this.shouldParseSkeletons ? on(m) : {}
2867
+ }, v = a === "date" ? C.date : C.time;
2868
2868
  return {
2869
- val: { type: T, value: n, location: g, style: f },
2869
+ val: { type: v, value: n, location: g, style: c },
2870
2870
  err: null
2871
2871
  };
2872
2872
  }
2873
2873
  }
2874
2874
  return {
2875
2875
  val: {
2876
- type: u === "number" ? v.number : u === "date" ? v.date : v.time,
2876
+ type: a === "number" ? C.number : a === "date" ? C.date : C.time,
2877
2877
  value: n,
2878
2878
  location: g,
2879
- style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2879
+ style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2880
2880
  },
2881
2881
  err: null
2882
2882
  };
@@ -2886,47 +2886,47 @@ var Hn = (
2886
2886
  case "select": {
2887
2887
  var S = this.clonePosition();
2888
2888
  if (this.bumpSpace(), !this.bumpIf(","))
2889
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, _e({}, S)));
2889
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, Ee({}, S)));
2890
2890
  this.bumpSpace();
2891
- var w = this.parseIdentifierIfPossible(), A = 0;
2892
- if (u !== "select" && w.value === "offset") {
2891
+ var P = this.parseIdentifierIfPossible(), A = 0;
2892
+ if (a !== "select" && P.value === "offset") {
2893
2893
  if (!this.bumpIf(":"))
2894
2894
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2895
2895
  this.bumpSpace();
2896
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2897
- if (c.err)
2898
- return c;
2899
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
2896
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2897
+ if (f.err)
2898
+ return f;
2899
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), A = f.val;
2900
2900
  }
2901
- var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
2901
+ var H = this.tryParsePluralOrSelectOptions(t, a, r, P);
2902
2902
  if (H.err)
2903
2903
  return H;
2904
2904
  var d = this.tryParseArgumentClose(i);
2905
2905
  if (d.err)
2906
2906
  return d;
2907
- var P = _(i, this.clonePosition());
2908
- return u === "select" ? {
2907
+ var O = _(i, this.clonePosition());
2908
+ return a === "select" ? {
2909
2909
  val: {
2910
- type: v.select,
2910
+ type: C.select,
2911
2911
  value: n,
2912
2912
  options: ft(H.val),
2913
- location: P
2913
+ location: O
2914
2914
  },
2915
2915
  err: null
2916
2916
  } : {
2917
2917
  val: {
2918
- type: v.plural,
2918
+ type: C.plural,
2919
2919
  value: n,
2920
2920
  options: ft(H.val),
2921
2921
  offset: A,
2922
- pluralType: u === "plural" ? "cardinal" : "ordinal",
2923
- location: P
2922
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2923
+ location: O
2924
2924
  },
2925
2925
  err: null
2926
2926
  };
2927
2927
  }
2928
2928
  default:
2929
- return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
2929
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(s, h));
2930
2930
  }
2931
2931
  }, e.prototype.tryParseArgumentClose = function(t) {
2932
2932
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2968,34 +2968,34 @@ var Hn = (
2968
2968
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2969
2969
  var n = [];
2970
2970
  try {
2971
- n = sn(t);
2971
+ n = an(t);
2972
2972
  } catch (i) {
2973
2973
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2974
2974
  }
2975
2975
  return {
2976
2976
  val: {
2977
- type: q.number,
2977
+ type: Y.number,
2978
2978
  tokens: n,
2979
2979
  location: r,
2980
- parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
2980
+ parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
2981
2981
  },
2982
2982
  err: null
2983
2983
  };
2984
2984
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2985
- for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2986
- if (a.length === 0) {
2987
- var c = this.clonePosition();
2985
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2986
+ if (u.length === 0) {
2987
+ var f = this.clonePosition();
2988
2988
  if (r !== "select" && this.bumpIf("=")) {
2989
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2990
- if (f.err)
2991
- return f;
2992
- l = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2989
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2990
+ if (c.err)
2991
+ return c;
2992
+ l = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2993
2993
  } else
2994
2994
  break;
2995
2995
  }
2996
- if (h.has(a))
2996
+ if (h.has(u))
2997
2997
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2998
- a === "other" && (o = !0), this.bumpSpace();
2998
+ u === "other" && (s = !0), this.bumpSpace();
2999
2999
  var p = this.clonePosition();
3000
3000
  if (!this.bumpIf("{"))
3001
3001
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
@@ -3005,27 +3005,27 @@ var Hn = (
3005
3005
  var g = this.tryParseArgumentClose(p);
3006
3006
  if (g.err)
3007
3007
  return g;
3008
- u.push([
3009
- a,
3008
+ a.push([
3009
+ u,
3010
3010
  {
3011
3011
  value: d.val,
3012
3012
  location: _(p, this.clonePosition())
3013
3013
  }
3014
- ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
3014
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3015
3015
  }
3016
- return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3016
+ return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3017
3017
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3018
3018
  var n = 1, i = this.clonePosition();
3019
3019
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3020
- for (var s = !1, o = 0; !this.isEOF(); ) {
3021
- var u = this.char();
3022
- if (u >= 48 && u <= 57)
3023
- s = !0, o = o * 10 + (u - 48), this.bump();
3020
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3021
+ var a = this.char();
3022
+ if (a >= 48 && a <= 57)
3023
+ o = !0, s = s * 10 + (a - 48), this.bump();
3024
3024
  else
3025
3025
  break;
3026
3026
  }
3027
3027
  var h = _(i, this.clonePosition());
3028
- return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3028
+ return o ? (s *= n, Cn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3029
3029
  }, e.prototype.offset = function() {
3030
3030
  return this.position.offset;
3031
3031
  }, e.prototype.isEOF = function() {
@@ -3040,7 +3040,7 @@ var Hn = (
3040
3040
  var t = this.position.offset;
3041
3041
  if (t >= this.message.length)
3042
3042
  throw Error("out of bound");
3043
- var r = kt(this.message, t);
3043
+ var r = Vt(this.message, t);
3044
3044
  if (r === void 0)
3045
3045
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3046
3046
  return r;
@@ -3059,7 +3059,7 @@ var Hn = (
3059
3059
  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);
3060
3060
  }
3061
3061
  }, e.prototype.bumpIf = function(t) {
3062
- if (lt(this.message, t, this.offset())) {
3062
+ if (ct(this.message, t, this.offset())) {
3063
3063
  for (var r = 0; r < t.length; r++)
3064
3064
  this.bump();
3065
3065
  return !0;
@@ -3081,7 +3081,7 @@ var Hn = (
3081
3081
  break;
3082
3082
  }
3083
3083
  }, e.prototype.bumpSpace = function() {
3084
- for (; !this.isEOF() && Xt(this.char()); )
3084
+ for (; !this.isEOF() && zt(this.char()); )
3085
3085
  this.bump();
3086
3086
  }, e.prototype.peek = function() {
3087
3087
  if (this.isEOF())
@@ -3091,204 +3091,204 @@ var Hn = (
3091
3091
  }, e;
3092
3092
  }()
3093
3093
  );
3094
- function ke(e) {
3094
+ function Ve(e) {
3095
3095
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3096
3096
  }
3097
- function Sn(e) {
3098
- return ke(e) || e === 47;
3097
+ function Bn(e) {
3098
+ return Ve(e) || e === 47;
3099
3099
  }
3100
- function An(e) {
3100
+ function wn(e) {
3101
3101
  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;
3102
3102
  }
3103
- function Xt(e) {
3103
+ function zt(e) {
3104
3104
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3105
3105
  }
3106
- function Bn(e) {
3106
+ function On(e) {
3107
3107
  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;
3108
3108
  }
3109
- function Ve(e) {
3109
+ function Xe(e) {
3110
3110
  e.forEach(function(t) {
3111
- if (delete t.location, Mt(t) || $t(t))
3111
+ if (delete t.location, $t(t) || Rt(t))
3112
3112
  for (var r in t.options)
3113
- delete t.options[r].location, Ve(t.options[r].value);
3113
+ delete t.options[r].location, Xe(t.options[r].value);
3114
3114
  else
3115
- Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && Ge(t.style) ? delete t.style.location : Rt(t) && Ve(t.children);
3115
+ Lt(t) && Gt(t.style) || (It(t) || Mt(t)) && De(t.style) ? delete t.style.location : Ut(t) && Xe(t.children);
3116
3116
  });
3117
3117
  }
3118
- function On(e, t) {
3119
- t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3120
- var r = new Hn(e, t).parse();
3118
+ function Pn(e, t) {
3119
+ t === void 0 && (t = {}), t = Ee({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3120
+ var r = new An(e, t).parse();
3121
3121
  if (r.err) {
3122
3122
  var n = SyntaxError(y[r.err.kind]);
3123
3123
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3124
3124
  }
3125
- return t != null && t.captureLocation || Ve(r.val), r.val;
3125
+ return t != null && t.captureLocation || Xe(r.val), r.val;
3126
3126
  }
3127
- var Y;
3127
+ var K;
3128
3128
  (function(e) {
3129
3129
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3130
- })(Y || (Y = {}));
3131
- var Ce = (
3130
+ })(K || (K = {}));
3131
+ var He = (
3132
3132
  /** @class */
3133
3133
  function(e) {
3134
3134
  Te(t, e);
3135
3135
  function t(r, n, i) {
3136
- var s = e.call(this, r) || this;
3137
- return s.code = n, s.originalMessage = i, s;
3136
+ var o = e.call(this, r) || this;
3137
+ return o.code = n, o.originalMessage = i, o;
3138
3138
  }
3139
3139
  return t.prototype.toString = function() {
3140
3140
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3141
3141
  }, t;
3142
3142
  }(Error)
3143
- ), gt = (
3143
+ ), mt = (
3144
3144
  /** @class */
3145
3145
  function(e) {
3146
3146
  Te(t, e);
3147
- function t(r, n, i, s) {
3148
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
3147
+ function t(r, n, i, o) {
3148
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
3149
3149
  }
3150
3150
  return t;
3151
- }(Ce)
3152
- ), wn = (
3151
+ }(He)
3152
+ ), Nn = (
3153
3153
  /** @class */
3154
3154
  function(e) {
3155
3155
  Te(t, e);
3156
3156
  function t(r, n, i) {
3157
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3157
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
3158
3158
  }
3159
3159
  return t;
3160
- }(Ce)
3161
- ), Pn = (
3160
+ }(He)
3161
+ ), Ln = (
3162
3162
  /** @class */
3163
3163
  function(e) {
3164
3164
  Te(t, e);
3165
3165
  function t(r, n) {
3166
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3166
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
3167
3167
  }
3168
3168
  return t;
3169
- }(Ce)
3170
- ), O;
3169
+ }(He)
3170
+ ), w;
3171
3171
  (function(e) {
3172
3172
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3173
- })(O || (O = {}));
3174
- function Nn(e) {
3173
+ })(w || (w = {}));
3174
+ function In(e) {
3175
3175
  return e.length < 2 ? e : e.reduce(function(t, r) {
3176
3176
  var n = t[t.length - 1];
3177
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3177
+ return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3178
3178
  }, []);
3179
3179
  }
3180
- function Ln(e) {
3180
+ function Mn(e) {
3181
3181
  return typeof e == "function";
3182
3182
  }
3183
- function de(e, t, r, n, i, s, o) {
3184
- if (e.length === 1 && ot(e[0]))
3183
+ function be(e, t, r, n, i, o, s) {
3184
+ if (e.length === 1 && at(e[0]))
3185
3185
  return [
3186
3186
  {
3187
- type: O.literal,
3187
+ type: w.literal,
3188
3188
  value: e[0].value
3189
3189
  }
3190
3190
  ];
3191
- for (var u = [], h = 0, a = e; h < a.length; h++) {
3192
- var l = a[h];
3193
- if (ot(l)) {
3194
- u.push({
3195
- type: O.literal,
3191
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3192
+ var l = u[h];
3193
+ if (at(l)) {
3194
+ a.push({
3195
+ type: w.literal,
3196
3196
  value: l.value
3197
3197
  });
3198
3198
  continue;
3199
3199
  }
3200
- if (en(l)) {
3201
- typeof s == "number" && u.push({
3202
- type: O.literal,
3203
- value: r.getNumberFormat(t).format(s)
3200
+ if (rn(l)) {
3201
+ typeof o == "number" && a.push({
3202
+ type: w.literal,
3203
+ value: r.getNumberFormat(t).format(o)
3204
3204
  });
3205
3205
  continue;
3206
3206
  }
3207
- var c = l.value;
3208
- if (!(i && c in i))
3209
- throw new Pn(c, o);
3210
- var f = i[c];
3211
- if (Kr(l)) {
3212
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3213
- type: typeof f == "string" ? O.literal : O.object,
3214
- value: f
3207
+ var f = l.value;
3208
+ if (!(i && f in i))
3209
+ throw new Ln(f, s);
3210
+ var c = i[f];
3211
+ if (tn(l)) {
3212
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3213
+ type: typeof c == "string" ? w.literal : w.object,
3214
+ value: c
3215
3215
  });
3216
3216
  continue;
3217
3217
  }
3218
- if (Lt(l)) {
3219
- var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
3220
- u.push({
3221
- type: O.literal,
3222
- value: r.getDateTimeFormat(t, p).format(f)
3218
+ if (It(l)) {
3219
+ var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3220
+ a.push({
3221
+ type: w.literal,
3222
+ value: r.getDateTimeFormat(t, p).format(c)
3223
3223
  });
3224
3224
  continue;
3225
3225
  }
3226
- if (It(l)) {
3227
- var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
3228
- u.push({
3229
- type: O.literal,
3230
- value: r.getDateTimeFormat(t, p).format(f)
3226
+ if (Mt(l)) {
3227
+ var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3228
+ a.push({
3229
+ type: w.literal,
3230
+ value: r.getDateTimeFormat(t, p).format(c)
3231
3231
  });
3232
3232
  continue;
3233
3233
  }
3234
- if (Nt(l)) {
3235
- var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
3236
- p && p.scale && (f = f * (p.scale || 1)), u.push({
3237
- type: O.literal,
3238
- value: r.getNumberFormat(t, p).format(f)
3234
+ if (Lt(l)) {
3235
+ var p = typeof l.style == "string" ? n.number[l.style] : Gt(l.style) ? l.style.parsedOptions : void 0;
3236
+ p && p.scale && (c = c * (p.scale || 1)), a.push({
3237
+ type: w.literal,
3238
+ value: r.getNumberFormat(t, p).format(c)
3239
3239
  });
3240
3240
  continue;
3241
3241
  }
3242
- if (Rt(l)) {
3242
+ if (Ut(l)) {
3243
3243
  var d = l.children, g = l.value, E = i[g];
3244
- if (!Ln(E))
3245
- throw new wn(g, "function", o);
3246
- var m = de(d, t, r, n, i, s), T = E(m.map(function(A) {
3244
+ if (!Mn(E))
3245
+ throw new Nn(g, "function", s);
3246
+ var m = be(d, t, r, n, i, o), v = E(m.map(function(A) {
3247
3247
  return A.value;
3248
3248
  }));
3249
- Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(A) {
3249
+ Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(A) {
3250
3250
  return {
3251
- type: typeof A == "string" ? O.literal : O.object,
3251
+ type: typeof A == "string" ? w.literal : w.object,
3252
3252
  value: A
3253
3253
  };
3254
3254
  }));
3255
3255
  }
3256
- if (Mt(l)) {
3257
- var S = l.options[f] || l.options.other;
3256
+ if ($t(l)) {
3257
+ var S = l.options[c] || l.options.other;
3258
3258
  if (!S)
3259
- throw new gt(l.value, f, Object.keys(l.options), o);
3260
- u.push.apply(u, de(S.value, t, r, n, i));
3259
+ throw new mt(l.value, c, Object.keys(l.options), s);
3260
+ a.push.apply(a, be(S.value, t, r, n, i));
3261
3261
  continue;
3262
3262
  }
3263
- if ($t(l)) {
3264
- var S = l.options["=".concat(f)];
3263
+ if (Rt(l)) {
3264
+ var S = l.options["=".concat(c)];
3265
3265
  if (!S) {
3266
3266
  if (!Intl.PluralRules)
3267
- throw new Ce(`Intl.PluralRules is not available in this environment.
3267
+ throw new He(`Intl.PluralRules is not available in this environment.
3268
3268
  Try polyfilling it using "@formatjs/intl-pluralrules"
3269
- `, Y.MISSING_INTL_API, o);
3270
- var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3271
- S = l.options[w] || l.options.other;
3269
+ `, K.MISSING_INTL_API, s);
3270
+ var P = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3271
+ S = l.options[P] || l.options.other;
3272
3272
  }
3273
3273
  if (!S)
3274
- throw new gt(l.value, f, Object.keys(l.options), o);
3275
- u.push.apply(u, de(S.value, t, r, n, i, f - (l.offset || 0)));
3274
+ throw new mt(l.value, c, Object.keys(l.options), s);
3275
+ a.push.apply(a, be(S.value, t, r, n, i, c - (l.offset || 0)));
3276
3276
  continue;
3277
3277
  }
3278
3278
  }
3279
- return Nn(u);
3279
+ return In(a);
3280
3280
  }
3281
- function In(e, t) {
3281
+ function $n(e, t) {
3282
3282
  return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3283
3283
  return r[n] = U(U({}, e[n]), t[n] || {}), r;
3284
3284
  }, {})) : e;
3285
3285
  }
3286
- function Mn(e, t) {
3286
+ function Rn(e, t) {
3287
3287
  return t ? Object.keys(e).reduce(function(r, n) {
3288
- return r[n] = In(e[n], t[n]), r;
3288
+ return r[n] = $n(e[n], t[n]), r;
3289
3289
  }, U({}, e)) : e;
3290
3290
  }
3291
- function Le(e) {
3291
+ function Ie(e) {
3292
3292
  return {
3293
3293
  create: function() {
3294
3294
  return {
@@ -3302,77 +3302,77 @@ function Le(e) {
3302
3302
  }
3303
3303
  };
3304
3304
  }
3305
- function $n(e) {
3305
+ function Un(e) {
3306
3306
  return e === void 0 && (e = {
3307
3307
  number: {},
3308
3308
  dateTime: {},
3309
3309
  pluralRules: {}
3310
3310
  }), {
3311
- getNumberFormat: we(function() {
3311
+ getNumberFormat: Pe(function() {
3312
3312
  for (var t, r = [], n = 0; n < arguments.length; n++)
3313
3313
  r[n] = arguments[n];
3314
3314
  return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3315
3315
  }, {
3316
- cache: Le(e.number),
3317
- strategy: Pe.variadic
3316
+ cache: Ie(e.number),
3317
+ strategy: Ne.variadic
3318
3318
  }),
3319
- getDateTimeFormat: we(function() {
3319
+ getDateTimeFormat: Pe(function() {
3320
3320
  for (var t, r = [], n = 0; n < arguments.length; n++)
3321
3321
  r[n] = arguments[n];
3322
3322
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3323
3323
  }, {
3324
- cache: Le(e.dateTime),
3325
- strategy: Pe.variadic
3324
+ cache: Ie(e.dateTime),
3325
+ strategy: Ne.variadic
3326
3326
  }),
3327
- getPluralRules: we(function() {
3327
+ getPluralRules: Pe(function() {
3328
3328
  for (var t, r = [], n = 0; n < arguments.length; n++)
3329
3329
  r[n] = arguments[n];
3330
3330
  return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3331
3331
  }, {
3332
- cache: Le(e.pluralRules),
3333
- strategy: Pe.variadic
3332
+ cache: Ie(e.pluralRules),
3333
+ strategy: Ne.variadic
3334
3334
  })
3335
3335
  };
3336
3336
  }
3337
- var Rn = (
3337
+ var Gn = (
3338
3338
  /** @class */
3339
3339
  function() {
3340
3340
  function e(t, r, n, i) {
3341
3341
  r === void 0 && (r = e.defaultLocale);
3342
- var s = this;
3342
+ var o = this;
3343
3343
  if (this.formatterCache = {
3344
3344
  number: {},
3345
3345
  dateTime: {},
3346
3346
  pluralRules: {}
3347
3347
  }, this.format = function(h) {
3348
- var a = s.formatToParts(h);
3349
- if (a.length === 1)
3350
- return a[0].value;
3351
- var l = a.reduce(function(c, f) {
3352
- return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3348
+ var u = o.formatToParts(h);
3349
+ if (u.length === 1)
3350
+ return u[0].value;
3351
+ var l = u.reduce(function(f, c) {
3352
+ return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3353
3353
  }, []);
3354
3354
  return l.length <= 1 ? l[0] || "" : l;
3355
3355
  }, this.formatToParts = function(h) {
3356
- return de(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3356
+ return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3357
3357
  }, this.resolvedOptions = function() {
3358
3358
  var h;
3359
3359
  return {
3360
- locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3360
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3361
3361
  };
3362
3362
  }, this.getAst = function() {
3363
- return s.ast;
3363
+ return o.ast;
3364
3364
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3365
3365
  if (this.message = t, !e.__parse)
3366
3366
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3367
- var o = i || {};
3368
- o.formatters;
3369
- var u = Xr(o, ["formatters"]);
3370
- this.ast = e.__parse(t, U(U({}, u), { locale: this.resolvedLocale }));
3367
+ var s = i || {};
3368
+ s.formatters;
3369
+ var a = Wr(s, ["formatters"]);
3370
+ this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
3371
3371
  } else
3372
3372
  this.ast = t;
3373
3373
  if (!Array.isArray(this.ast))
3374
3374
  throw new TypeError("A message must be provided as a String or AST.");
3375
- this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || $n(this.formatterCache);
3375
+ this.formats = Rn(e.formats, n), this.formatters = i && i.formatters || Un(this.formatterCache);
3376
3376
  }
3377
3377
  return Object.defineProperty(e, "defaultLocale", {
3378
3378
  get: function() {
@@ -3385,7 +3385,7 @@ var Rn = (
3385
3385
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3386
3386
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3387
3387
  }
3388
- }, e.__parse = On, e.formats = {
3388
+ }, e.__parse = Pn, e.formats = {
3389
3389
  number: {
3390
3390
  integer: {
3391
3391
  maximumFractionDigits: 0
@@ -3446,7 +3446,7 @@ var Rn = (
3446
3446
  }, e;
3447
3447
  }()
3448
3448
  );
3449
- function Un(e, t) {
3449
+ function Dn(e, t) {
3450
3450
  if (t == null)
3451
3451
  return;
3452
3452
  if (t in e)
@@ -3456,9 +3456,9 @@ function Un(e, t) {
3456
3456
  for (let i = 0; i < r.length; i++)
3457
3457
  if (typeof n == "object") {
3458
3458
  if (i > 0) {
3459
- const s = r.slice(i, r.length).join(".");
3460
- if (s in n) {
3461
- n = n[s];
3459
+ const o = r.slice(i, r.length).join(".");
3460
+ if (o in n) {
3461
+ n = n[o];
3462
3462
  break;
3463
3463
  }
3464
3464
  }
@@ -3467,92 +3467,92 @@ function Un(e, t) {
3467
3467
  n = void 0;
3468
3468
  return n;
3469
3469
  }
3470
- const F = {}, Gn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), zt = (e, t) => {
3470
+ const F = {}, Fn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Wt = (e, t) => {
3471
3471
  if (t == null)
3472
3472
  return;
3473
3473
  if (t in F && e in F[t])
3474
3474
  return F[t][e];
3475
- const r = He(t);
3475
+ const r = Se(t);
3476
3476
  for (let n = 0; n < r.length; n++) {
3477
- const i = r[n], s = Fn(i, e);
3478
- if (s)
3479
- return Gn(e, t, s);
3477
+ const i = r[n], o = kn(i, e);
3478
+ if (o)
3479
+ return Fn(e, t, o);
3480
3480
  }
3481
3481
  };
3482
- let Ze;
3483
- const le = ve({});
3484
- function Dn(e) {
3485
- return Ze[e] || null;
3482
+ let Qe;
3483
+ const ce = Ce({});
3484
+ function jn(e) {
3485
+ return Qe[e] || null;
3486
3486
  }
3487
- function Wt(e) {
3488
- return e in Ze;
3487
+ function Zt(e) {
3488
+ return e in Qe;
3489
3489
  }
3490
- function Fn(e, t) {
3491
- if (!Wt(e))
3490
+ function kn(e, t) {
3491
+ if (!Zt(e))
3492
3492
  return null;
3493
- const r = Dn(e);
3494
- return Un(r, t);
3493
+ const r = jn(e);
3494
+ return Dn(r, t);
3495
3495
  }
3496
- function jn(e) {
3496
+ function Vn(e) {
3497
3497
  if (e == null)
3498
3498
  return;
3499
- const t = He(e);
3499
+ const t = Se(e);
3500
3500
  for (let r = 0; r < t.length; r++) {
3501
3501
  const n = t[r];
3502
- if (Wt(n))
3502
+ if (Zt(n))
3503
3503
  return n;
3504
3504
  }
3505
3505
  }
3506
- function Zt(e, ...t) {
3507
- delete F[e], le.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3506
+ function Qt(e, ...t) {
3507
+ delete F[e], ce.update((r) => (r[e] = zr.all([r[e] || {}, ...t]), r));
3508
3508
  }
3509
- te(
3510
- [le],
3509
+ re(
3510
+ [ce],
3511
3511
  ([e]) => Object.keys(e)
3512
3512
  );
3513
- le.subscribe((e) => Ze = e);
3514
- const be = {};
3515
- function kn(e, t) {
3516
- be[e].delete(t), be[e].size === 0 && delete be[e];
3513
+ ce.subscribe((e) => Qe = e);
3514
+ const ye = {};
3515
+ function Xn(e, t) {
3516
+ ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3517
3517
  }
3518
- function Qt(e) {
3519
- return be[e];
3518
+ function Jt(e) {
3519
+ return ye[e];
3520
3520
  }
3521
- function Vn(e) {
3522
- return He(e).map((t) => {
3523
- const r = Qt(t);
3521
+ function zn(e) {
3522
+ return Se(e).map((t) => {
3523
+ const r = Jt(t);
3524
3524
  return [t, r ? [...r] : []];
3525
3525
  }).filter(([, t]) => t.length > 0);
3526
3526
  }
3527
- function Xe(e) {
3528
- return e == null ? !1 : He(e).some(
3527
+ function ze(e) {
3528
+ return e == null ? !1 : Se(e).some(
3529
3529
  (t) => {
3530
3530
  var r;
3531
- return (r = Qt(t)) == null ? void 0 : r.size;
3531
+ return (r = Jt(t)) == null ? void 0 : r.size;
3532
3532
  }
3533
3533
  );
3534
3534
  }
3535
- function Xn(e, t) {
3535
+ function Wn(e, t) {
3536
3536
  return Promise.all(
3537
- t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
3538
- ).then((n) => Zt(e, ...n));
3539
- }
3540
- const ie = {};
3541
- function Jt(e) {
3542
- if (!Xe(e))
3543
- return e in ie ? ie[e] : Promise.resolve();
3544
- const t = Vn(e);
3545
- return ie[e] = Promise.all(
3537
+ t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
3538
+ ).then((n) => Qt(e, ...n));
3539
+ }
3540
+ const oe = {};
3541
+ function qt(e) {
3542
+ if (!ze(e))
3543
+ return e in oe ? oe[e] : Promise.resolve();
3544
+ const t = zn(e);
3545
+ return oe[e] = Promise.all(
3546
3546
  t.map(
3547
- ([r, n]) => Xn(r, n)
3547
+ ([r, n]) => Wn(r, n)
3548
3548
  )
3549
3549
  ).then(() => {
3550
- if (Xe(e))
3551
- return Jt(e);
3552
- delete ie[e];
3553
- }), ie[e];
3550
+ if (ze(e))
3551
+ return qt(e);
3552
+ delete oe[e];
3553
+ }), oe[e];
3554
3554
  }
3555
- const zn = {
3555
+ const Zn = {
3556
3556
  number: {
3557
3557
  scientific: { notation: "scientific" },
3558
3558
  engineering: { notation: "engineering" },
@@ -3581,178 +3581,178 @@ const zn = {
3581
3581
  timeZoneName: "short"
3582
3582
  }
3583
3583
  }
3584
- }, Wn = {
3584
+ }, Qn = {
3585
3585
  fallbackLocale: null,
3586
3586
  loadingDelay: 200,
3587
- formats: zn,
3587
+ formats: Zn,
3588
3588
  warnOnMissingMessages: !0,
3589
3589
  handleMissingMessage: void 0,
3590
3590
  ignoreTag: !0
3591
- }, Zn = Wn;
3592
- function K() {
3593
- return Zn;
3591
+ }, Jn = Qn;
3592
+ function ee() {
3593
+ return Jn;
3594
3594
  }
3595
- const Ie = ve(!1);
3596
- var Qn = Object.defineProperty, Jn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
3595
+ const Me = Ce(!1);
3596
+ var qn = Object.defineProperty, Yn = Object.defineProperties, Kn = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ri = (e, t) => {
3597
3597
  for (var r in t || (t = {}))
3598
- Yn.call(t, r) && pt(e, r, t[r]);
3599
- if (mt)
3600
- for (var r of mt(t))
3601
- Kn.call(t, r) && pt(e, r, t[r]);
3598
+ ei.call(t, r) && dt(e, r, t[r]);
3599
+ if (pt)
3600
+ for (var r of pt(t))
3601
+ ti.call(t, r) && dt(e, r, t[r]);
3602
3602
  return e;
3603
- }, ti = (e, t) => Jn(e, qn(t));
3604
- let ze;
3605
- const Ee = ve(null);
3606
- function dt(e) {
3603
+ }, ni = (e, t) => Yn(e, Kn(t));
3604
+ let We;
3605
+ const xe = Ce(null);
3606
+ function bt(e) {
3607
3607
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3608
3608
  }
3609
- function He(e, t = K().fallbackLocale) {
3610
- const r = dt(e);
3611
- return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3609
+ function Se(e, t = ee().fallbackLocale) {
3610
+ const r = bt(e);
3611
+ return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3612
3612
  }
3613
3613
  function X() {
3614
- return ze != null ? ze : void 0;
3614
+ return We != null ? We : void 0;
3615
3615
  }
3616
- Ee.subscribe((e) => {
3617
- ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3616
+ xe.subscribe((e) => {
3617
+ We = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3618
3618
  });
3619
- const ri = (e) => {
3620
- if (e && jn(e) && Xe(e)) {
3621
- const { loadingDelay: t } = K();
3619
+ const ii = (e) => {
3620
+ if (e && Vn(e) && ze(e)) {
3621
+ const { loadingDelay: t } = ee();
3622
3622
  let r;
3623
3623
  return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3624
- () => Ie.set(!0),
3624
+ () => Me.set(!0),
3625
3625
  t
3626
- ) : Ie.set(!0), Jt(e).then(() => {
3627
- Ee.set(e);
3626
+ ) : Me.set(!0), qt(e).then(() => {
3627
+ xe.set(e);
3628
3628
  }).finally(() => {
3629
- clearTimeout(r), Ie.set(!1);
3629
+ clearTimeout(r), Me.set(!1);
3630
3630
  });
3631
3631
  }
3632
- return Ee.set(e);
3633
- }, re = ti(ei({}, Ee), {
3634
- set: ri
3635
- }), Se = (e) => {
3632
+ return xe.set(e);
3633
+ }, ne = ni(ri({}, xe), {
3634
+ set: ii
3635
+ }), Ae = (e) => {
3636
3636
  const t = /* @__PURE__ */ Object.create(null);
3637
3637
  return (n) => {
3638
3638
  const i = JSON.stringify(n);
3639
3639
  return i in t ? t[i] : t[i] = e(n);
3640
3640
  };
3641
3641
  };
3642
- var ni = Object.defineProperty, xe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3642
+ var oi = Object.defineProperty, ve = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3643
3643
  for (var r in t || (t = {}))
3644
- qt.call(t, r) && bt(e, r, t[r]);
3645
- if (xe)
3646
- for (var r of xe(t))
3647
- Yt.call(t, r) && bt(e, r, t[r]);
3644
+ Yt.call(t, r) && yt(e, r, t[r]);
3645
+ if (ve)
3646
+ for (var r of ve(t))
3647
+ Kt.call(t, r) && yt(e, r, t[r]);
3648
3648
  return e;
3649
- }, ne = (e, t) => {
3649
+ }, ie = (e, t) => {
3650
3650
  var r = {};
3651
3651
  for (var n in e)
3652
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3653
- if (e != null && xe)
3654
- for (var n of xe(e))
3655
- t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3652
+ Yt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3653
+ if (e != null && ve)
3654
+ for (var n of ve(e))
3655
+ t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
3656
3656
  return r;
3657
3657
  };
3658
- const ue = (e, t) => {
3659
- const { formats: r } = K();
3658
+ const he = (e, t) => {
3659
+ const { formats: r } = ee();
3660
3660
  if (e in r && t in r[e])
3661
3661
  return r[e][t];
3662
3662
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3663
- }, ii = Se(
3663
+ }, si = Ae(
3664
3664
  (e) => {
3665
- var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3665
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3666
3666
  if (r == null)
3667
3667
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3668
- return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
3668
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3669
3669
  }
3670
- ), si = Se(
3670
+ ), ai = Ae(
3671
3671
  (e) => {
3672
- var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3672
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3673
3673
  if (r == null)
3674
3674
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3675
- return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
3675
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3676
3676
  }
3677
- ), oi = Se(
3677
+ ), ui = Ae(
3678
3678
  (e) => {
3679
- var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3679
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3680
3680
  if (r == null)
3681
3681
  throw new Error(
3682
3682
  '[svelte-i18n] A "locale" must be set to format time values'
3683
3683
  );
3684
- return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
3684
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3685
3685
  }
3686
- ), ai = (e = {}) => {
3686
+ ), hi = (e = {}) => {
3687
3687
  var t = e, {
3688
3688
  locale: r = X()
3689
- } = t, n = ne(t, [
3689
+ } = t, n = ie(t, [
3690
3690
  "locale"
3691
3691
  ]);
3692
- return ii(Qe({ locale: r }, n));
3693
- }, ui = (e = {}) => {
3692
+ return si(Je({ locale: r }, n));
3693
+ }, li = (e = {}) => {
3694
3694
  var t = e, {
3695
3695
  locale: r = X()
3696
- } = t, n = ne(t, [
3696
+ } = t, n = ie(t, [
3697
3697
  "locale"
3698
3698
  ]);
3699
- return si(Qe({ locale: r }, n));
3700
- }, hi = (e = {}) => {
3699
+ return ai(Je({ locale: r }, n));
3700
+ }, ci = (e = {}) => {
3701
3701
  var t = e, {
3702
3702
  locale: r = X()
3703
- } = t, n = ne(t, [
3703
+ } = t, n = ie(t, [
3704
3704
  "locale"
3705
3705
  ]);
3706
- return oi(Qe({ locale: r }, n));
3707
- }, li = Se(
3706
+ return ui(Je({ locale: r }, n));
3707
+ }, fi = Ae(
3708
3708
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3709
- (e, t = X()) => new Rn(e, t, K().formats, {
3710
- ignoreTag: K().ignoreTag
3709
+ (e, t = X()) => new Gn(e, t, ee().formats, {
3710
+ ignoreTag: ee().ignoreTag
3711
3711
  })
3712
- ), fi = (e, t = {}) => {
3713
- var r, n, i, s;
3714
- let o = t;
3715
- typeof e == "object" && (o = e, e = o.id);
3712
+ ), gi = (e, t = {}) => {
3713
+ var r, n, i, o;
3714
+ let s = t;
3715
+ typeof e == "object" && (s = e, e = s.id);
3716
3716
  const {
3717
- values: u,
3717
+ values: a,
3718
3718
  locale: h = X(),
3719
- default: a
3720
- } = o;
3719
+ default: u
3720
+ } = s;
3721
3721
  if (h == null)
3722
3722
  throw new Error(
3723
3723
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3724
3724
  );
3725
- let l = zt(e, h);
3725
+ let l = Wt(e, h);
3726
3726
  if (!l)
3727
- l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3727
+ l = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3728
3728
  else if (typeof l != "string")
3729
3729
  return console.warn(
3730
3730
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3731
3731
  ), l;
3732
- if (!u)
3732
+ if (!a)
3733
3733
  return l;
3734
- let c = l;
3734
+ let f = l;
3735
3735
  try {
3736
- c = li(l, h).format(u);
3737
- } catch (f) {
3738
- f instanceof Error && console.warn(
3736
+ f = fi(l, h).format(a);
3737
+ } catch (c) {
3738
+ c instanceof Error && console.warn(
3739
3739
  `[svelte-i18n] Message "${e}" has syntax error:`,
3740
- f.message
3740
+ c.message
3741
3741
  );
3742
3742
  }
3743
- return c;
3744
- }, ci = (e, t) => hi(t).format(e), gi = (e, t) => ui(t).format(e), mi = (e, t) => ai(t).format(e), pi = (e, t = X()) => zt(e, t), di = te([re, le], () => fi);
3745
- te([re], () => ci);
3746
- te([re], () => gi);
3747
- te([re], () => mi);
3748
- te([re, le], () => pi);
3749
- function yt(e, t) {
3750
- Zt(e, t);
3751
- }
3752
- function bi(e) {
3753
- re.set(e);
3754
- }
3755
- const _t = {
3743
+ return f;
3744
+ }, mi = (e, t) => ci(t).format(e), pi = (e, t) => li(t).format(e), di = (e, t) => hi(t).format(e), bi = (e, t = X()) => Wt(e, t), yi = re([ne, ce], () => gi);
3745
+ re([ne], () => mi);
3746
+ re([ne], () => pi);
3747
+ re([ne], () => di);
3748
+ re([ne, ce], () => bi);
3749
+ function _t(e, t) {
3750
+ Qt(e, t);
3751
+ }
3752
+ function _i(e) {
3753
+ ne.set(e);
3754
+ }
3755
+ const Et = {
3756
3756
  en: {
3757
3757
  topCategories: "Top Categories",
3758
3758
  otherCategories: "Other Categories",
@@ -3861,14 +3861,14 @@ const _t = {
3861
3861
  loading: "Loading, please wait...",
3862
3862
  games: "games"
3863
3863
  }
3864
- };
3865
- function yi(e, t) {
3864
+ }, Q = "__WIDGET_GLOBAL_STYLE_CACHE__";
3865
+ function Ei(e, t) {
3866
3866
  if (e) {
3867
3867
  const r = document.createElement("style");
3868
3868
  r.innerHTML = t, e.appendChild(r);
3869
3869
  }
3870
3870
  }
3871
- function _i(e, t) {
3871
+ function xi(e, t) {
3872
3872
  if (!e || !t)
3873
3873
  return;
3874
3874
  const r = new URL(t);
@@ -3879,59 +3879,87 @@ function _i(e, t) {
3879
3879
  console.error("There was an error while trying to load client styling from URL", n);
3880
3880
  });
3881
3881
  }
3882
- function Ei(e, t, r) {
3883
- if (window.emMessageBus) {
3884
- const n = document.createElement("style");
3885
- window.emMessageBus.subscribe(t, (i) => {
3886
- n.innerHTML = i, e && e.appendChild(n);
3882
+ function vi(e, t, r, n = !1) {
3883
+ if (!window.emMessageBus)
3884
+ return;
3885
+ if (!("adoptedStyleSheets" in Document.prototype) || !n)
3886
+ return r = Ci(e, t), r;
3887
+ window[Q] || (window[Q] = {}), r = Ti(e, t);
3888
+ const o = r.unsubscribe.bind(r), s = () => {
3889
+ if (window[Q][t]) {
3890
+ const a = window[Q][t];
3891
+ a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[Q][t];
3892
+ }
3893
+ o();
3894
+ };
3895
+ return r.unsubscribe = s, r;
3896
+ }
3897
+ function Ci(e, t) {
3898
+ const r = document.createElement("style");
3899
+ return window.emMessageBus.subscribe(t, (n) => {
3900
+ e && (r.innerHTML = n, e.appendChild(r));
3901
+ });
3902
+ }
3903
+ function Ti(e, t) {
3904
+ return window.emMessageBus.subscribe(t, (r) => {
3905
+ var a;
3906
+ if (!e)
3907
+ return;
3908
+ const n = e.getRootNode(), i = window[Q];
3909
+ let o = (a = i[t]) == null ? void 0 : a.sheet;
3910
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
3911
+ sheet: o,
3912
+ refCount: 1
3887
3913
  });
3888
- }
3914
+ const s = n.adoptedStyleSheets || [];
3915
+ s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
3916
+ });
3889
3917
  }
3890
- function xi(e) {
3891
- ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3918
+ function Hi(e) {
3919
+ lr(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3892
3920
  }
3893
- function Et(e, t, r) {
3921
+ function xt(e, t, r) {
3894
3922
  const n = e.slice();
3895
3923
  return n[23] = t[r], n;
3896
3924
  }
3897
- function xt(e, t, r) {
3925
+ function vt(e, t, r) {
3898
3926
  const n = e.slice();
3899
3927
  return n[23] = t[r], n;
3900
3928
  }
3901
- function vi(e) {
3929
+ function Si(e) {
3902
3930
  let t, r, n = (
3903
3931
  /*$_*/
3904
3932
  e[5]("topCategories") + ""
3905
- ), i, s, o, u, h = (
3933
+ ), i, o, s, a, h = (
3906
3934
  /*$_*/
3907
3935
  e[5]("otherCategories") + ""
3908
- ), a, l, c = ge(
3936
+ ), u, l, f = me(
3909
3937
  /*topCategories*/
3910
3938
  e[3]
3911
- ), f = [];
3912
- for (let g = 0; g < c.length; g += 1)
3913
- f[g] = vt(xt(e, c, g));
3914
- let p = ge(
3939
+ ), c = [];
3940
+ for (let g = 0; g < f.length; g += 1)
3941
+ c[g] = Ct(vt(e, f, g));
3942
+ let p = me(
3915
3943
  /*otherCategories*/
3916
3944
  e[4]
3917
3945
  ), d = [];
3918
3946
  for (let g = 0; g < p.length; g += 1)
3919
- d[g] = Tt(Et(e, p, g));
3947
+ d[g] = Tt(xt(e, p, g));
3920
3948
  return {
3921
3949
  c() {
3922
- t = B("div"), r = B("h4"), i = D(n), s = G();
3923
- for (let g = 0; g < f.length; g += 1)
3924
- f[g].c();
3925
- o = G(), u = B("h4"), a = D(h), l = G();
3950
+ t = B("div"), r = B("h4"), i = D(n), o = G();
3951
+ for (let g = 0; g < c.length; g += 1)
3952
+ c[g].c();
3953
+ s = G(), a = B("h4"), u = D(h), l = G();
3926
3954
  for (let g = 0; g < d.length; g += 1)
3927
3955
  d[g].c();
3928
- I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
3956
+ I(r, "class", "CategoryTitle"), I(a, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
3929
3957
  },
3930
3958
  m(g, E) {
3931
- ee(g, t, E), x(t, r), x(r, i), x(t, s);
3932
- for (let m = 0; m < f.length; m += 1)
3933
- f[m] && f[m].m(t, null);
3934
- x(t, o), x(t, u), x(u, a), x(t, l);
3959
+ te(g, t, E), x(t, r), x(r, i), x(t, o);
3960
+ for (let m = 0; m < c.length; m += 1)
3961
+ c[m] && c[m].m(t, null);
3962
+ x(t, s), x(t, a), x(a, u), x(t, l);
3935
3963
  for (let m = 0; m < d.length; m += 1)
3936
3964
  d[m] && d[m].m(t, null);
3937
3965
  },
@@ -3940,31 +3968,31 @@ function vi(e) {
3940
3968
  32 && n !== (n = /*$_*/
3941
3969
  g[5]("topCategories") + "") && j(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3942
3970
  105) {
3943
- c = ge(
3971
+ f = me(
3944
3972
  /*topCategories*/
3945
3973
  g[3]
3946
3974
  );
3947
3975
  let m;
3948
- for (m = 0; m < c.length; m += 1) {
3949
- const T = xt(g, c, m);
3950
- f[m] ? f[m].p(T, E) : (f[m] = vt(T), f[m].c(), f[m].m(t, o));
3976
+ for (m = 0; m < f.length; m += 1) {
3977
+ const v = vt(g, f, m);
3978
+ c[m] ? c[m].p(v, E) : (c[m] = Ct(v), c[m].c(), c[m].m(t, s));
3951
3979
  }
3952
- for (; m < f.length; m += 1)
3953
- f[m].d(1);
3954
- f.length = c.length;
3980
+ for (; m < c.length; m += 1)
3981
+ c[m].d(1);
3982
+ c.length = f.length;
3955
3983
  }
3956
3984
  if (E & /*$_*/
3957
3985
  32 && h !== (h = /*$_*/
3958
- g[5]("otherCategories") + "") && j(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
3986
+ g[5]("otherCategories") + "") && j(u, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
3959
3987
  113) {
3960
- p = ge(
3988
+ p = me(
3961
3989
  /*otherCategories*/
3962
3990
  g[4]
3963
3991
  );
3964
3992
  let m;
3965
3993
  for (m = 0; m < p.length; m += 1) {
3966
- const T = Et(g, p, m);
3967
- d[m] ? d[m].p(T, E) : (d[m] = Tt(T), d[m].c(), d[m].m(t, null));
3994
+ const v = xt(g, p, m);
3995
+ d[m] ? d[m].p(v, E) : (d[m] = Tt(v), d[m].c(), d[m].m(t, null));
3968
3996
  }
3969
3997
  for (; m < d.length; m += 1)
3970
3998
  d[m].d(1);
@@ -3972,18 +4000,18 @@ function vi(e) {
3972
4000
  }
3973
4001
  },
3974
4002
  d(g) {
3975
- g && V(t), nt(f, g), nt(d, g);
4003
+ g && V(t), it(c, g), it(d, g);
3976
4004
  }
3977
4005
  };
3978
4006
  }
3979
- function Ti(e) {
4007
+ function Ai(e) {
3980
4008
  let t;
3981
4009
  return {
3982
4010
  c() {
3983
4011
  t = B("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
3984
4012
  },
3985
4013
  m(r, n) {
3986
- ee(r, t, n);
4014
+ te(r, t, n);
3987
4015
  },
3988
4016
  p: L,
3989
4017
  d(r) {
@@ -3991,18 +4019,18 @@ function Ti(e) {
3991
4019
  }
3992
4020
  };
3993
4021
  }
3994
- function vt(e) {
3995
- let t, r, n, i, s, o, u, h = (
4022
+ function Ct(e) {
4023
+ let t, r, n, i, o, s, a, h = (
3996
4024
  /*category*/
3997
4025
  e[23].name + ""
3998
- ), a, l, c, f = (
4026
+ ), u, l, f, c = (
3999
4027
  /*category*/
4000
4028
  e[23].games.count + ""
4001
4029
  ), p, d, g = (
4002
4030
  /*$_*/
4003
4031
  e[5]("games") + ""
4004
- ), E, m, T, S;
4005
- function w() {
4032
+ ), E, m, v, S;
4033
+ function P() {
4006
4034
  return (
4007
4035
  /*click_handler*/
4008
4036
  e[15](
@@ -4013,25 +4041,25 @@ function vt(e) {
4013
4041
  }
4014
4042
  return {
4015
4043
  c() {
4016
- t = B("div"), r = B("ui-image"), s = G(), o = B("div"), u = B("p"), a = D(h), l = G(), c = B("p"), p = D(f), d = G(), E = D(g), ye(r.src, n = /*category*/
4044
+ t = B("div"), r = B("ui-image"), o = G(), s = B("div"), a = B("p"), u = D(h), l = G(), f = B("p"), p = D(c), d = G(), E = D(g), _e(r.src, n = /*category*/
4017
4045
  e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
4018
- e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
4046
+ e[23].name), R(r, "class", "CategoryImage"), I(s, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
4019
4047
  (e[0] === /*category*/
4020
4048
  e[23].id ? "Active" : ""));
4021
4049
  },
4022
4050
  m(A, H) {
4023
- ee(A, t, H), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), T || (S = At(t, "click", w), T = !0);
4051
+ te(A, t, H), x(t, r), x(t, o), x(t, s), x(s, a), x(a, u), x(s, l), x(s, f), x(f, p), x(f, d), x(f, E), v || (S = Bt(t, "click", P), v = !0);
4024
4052
  },
4025
4053
  p(A, H) {
4026
4054
  e = A, H & /*topCategories*/
4027
- 8 && !ye(r.src, n = /*category*/
4055
+ 8 && !_e(r.src, n = /*category*/
4028
4056
  e[23].icon) && R(r, "src", n), H & /*topCategories*/
4029
4057
  8 && i !== (i = /*category*/
4030
4058
  e[23].name) && R(r, "alt", i), H & /*topCategories*/
4031
4059
  8 && h !== (h = /*category*/
4032
- e[23].name + "") && j(a, h), H & /*topCategories*/
4033
- 8 && f !== (f = /*category*/
4034
- e[23].games.count + "") && j(p, f), H & /*$_*/
4060
+ e[23].name + "") && j(u, h), H & /*topCategories*/
4061
+ 8 && c !== (c = /*category*/
4062
+ e[23].games.count + "") && j(p, c), H & /*$_*/
4035
4063
  32 && g !== (g = /*$_*/
4036
4064
  e[5]("games") + "") && j(E, g), H & /*activecategory, topCategories*/
4037
4065
  9 && m !== (m = "Category " + /*activecategory*/
@@ -4039,21 +4067,21 @@ function vt(e) {
4039
4067
  e[23].id ? "Active" : "")) && I(t, "class", m);
4040
4068
  },
4041
4069
  d(A) {
4042
- A && V(t), T = !1, S();
4070
+ A && V(t), v = !1, S();
4043
4071
  }
4044
4072
  };
4045
4073
  }
4046
4074
  function Tt(e) {
4047
- let t, r, n, i, s, o, u, h = (
4075
+ let t, r, n, i, o, s, a, h = (
4048
4076
  /*category*/
4049
4077
  e[23].name + ""
4050
- ), a, l, c, f = (
4078
+ ), u, l, f, c = (
4051
4079
  /*category*/
4052
4080
  e[23].games.count + ""
4053
4081
  ), p, d, g = (
4054
4082
  /*$_*/
4055
4083
  e[5]("games") + ""
4056
- ), E, m, T, S, w;
4084
+ ), E, m, v, S, P;
4057
4085
  function A() {
4058
4086
  return (
4059
4087
  /*click_handler_1*/
@@ -4065,42 +4093,42 @@ function Tt(e) {
4065
4093
  }
4066
4094
  return {
4067
4095
  c() {
4068
- t = B("div"), r = B("ui-image"), s = G(), o = B("div"), u = B("p"), a = D(h), l = G(), c = B("p"), p = D(f), d = G(), E = D(g), m = G(), ye(r.src, n = /*category*/
4096
+ t = B("div"), r = B("ui-image"), o = G(), s = B("div"), a = B("p"), u = D(h), l = G(), f = B("p"), p = D(c), d = G(), E = D(g), m = G(), _e(r.src, n = /*category*/
4069
4097
  e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
4070
- e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", T = "Category " + /*activecategory*/
4098
+ e[23].name), R(r, "class", "CategoryImage"), I(s, "class", "CategoryTextContainer"), I(t, "class", v = "Category " + /*activecategory*/
4071
4099
  (e[0] === /*category*/
4072
4100
  e[23].id ? "Active" : ""));
4073
4101
  },
4074
- m(H, P) {
4075
- ee(H, t, P), x(t, r), x(t, s), x(t, o), x(o, u), x(u, a), x(o, l), x(o, c), x(c, p), x(c, d), x(c, E), x(t, m), S || (w = At(t, "click", A), S = !0);
4102
+ m(H, O) {
4103
+ te(H, t, O), x(t, r), x(t, o), x(t, s), x(s, a), x(a, u), x(s, l), x(s, f), x(f, p), x(f, d), x(f, E), x(t, m), S || (P = Bt(t, "click", A), S = !0);
4076
4104
  },
4077
- p(H, P) {
4078
- e = H, P & /*otherCategories*/
4079
- 16 && !ye(r.src, n = /*category*/
4080
- e[23].icon) && R(r, "src", n), P & /*otherCategories*/
4105
+ p(H, O) {
4106
+ e = H, O & /*otherCategories*/
4107
+ 16 && !_e(r.src, n = /*category*/
4108
+ e[23].icon) && R(r, "src", n), O & /*otherCategories*/
4081
4109
  16 && i !== (i = /*category*/
4082
- e[23].name) && R(r, "alt", i), P & /*otherCategories*/
4110
+ e[23].name) && R(r, "alt", i), O & /*otherCategories*/
4083
4111
  16 && h !== (h = /*category*/
4084
- e[23].name + "") && j(a, h), P & /*otherCategories*/
4085
- 16 && f !== (f = /*category*/
4086
- e[23].games.count + "") && j(p, f), P & /*$_*/
4112
+ e[23].name + "") && j(u, h), O & /*otherCategories*/
4113
+ 16 && c !== (c = /*category*/
4114
+ e[23].games.count + "") && j(p, c), O & /*$_*/
4087
4115
  32 && g !== (g = /*$_*/
4088
- e[5]("games") + "") && j(E, g), P & /*activecategory, otherCategories*/
4089
- 17 && T !== (T = "Category " + /*activecategory*/
4116
+ e[5]("games") + "") && j(E, g), O & /*activecategory, otherCategories*/
4117
+ 17 && v !== (v = "Category " + /*activecategory*/
4090
4118
  (e[0] === /*category*/
4091
- e[23].id ? "Active" : "")) && I(t, "class", T);
4119
+ e[23].id ? "Active" : "")) && I(t, "class", v);
4092
4120
  },
4093
4121
  d(H) {
4094
- H && V(t), S = !1, w();
4122
+ H && V(t), S = !1, P();
4095
4123
  }
4096
4124
  };
4097
4125
  }
4098
- function Ci(e) {
4126
+ function Bi(e) {
4099
4127
  let t;
4100
- function r(s, o) {
4128
+ function r(o, s) {
4101
4129
  return (
4102
4130
  /*isLoading*/
4103
- s[2] ? Ti : vi
4131
+ o[2] ? Ai : Si
4104
4132
  );
4105
4133
  }
4106
4134
  let n = r(e), i = n(e);
@@ -4108,101 +4136,101 @@ function Ci(e) {
4108
4136
  c() {
4109
4137
  t = B("div"), i.c();
4110
4138
  },
4111
- m(s, o) {
4112
- ee(s, t, o), i.m(t, null), e[17](t);
4139
+ m(o, s) {
4140
+ te(o, t, s), i.m(t, null), e[17](t);
4113
4141
  },
4114
- p(s, [o]) {
4115
- n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
4142
+ p(o, [s]) {
4143
+ n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4116
4144
  },
4117
4145
  i: L,
4118
4146
  o: L,
4119
- d(s) {
4120
- s && V(t), i.d(), e[17](null);
4147
+ d(o) {
4148
+ o && V(t), i.d(), e[17](null);
4121
4149
  }
4122
4150
  };
4123
4151
  }
4124
- function Hi(e, t, r) {
4152
+ function wi(e, t, r) {
4125
4153
  let n;
4126
- ar(e, di, (b) => r(5, n = b));
4127
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
4128
- const g = [];
4129
- let E = [], m = [];
4130
- Object.keys(_t).forEach((b) => {
4131
- yt(b, _t[b]);
4154
+ hr(e, yi, (b) => r(5, n = b));
4155
+ let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: a = "" } = t, { excludedflags: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d, g = !1;
4156
+ const E = [];
4157
+ let m = [], v = [];
4158
+ Object.keys(Et).forEach((b) => {
4159
+ _t(b, Et[b]);
4132
4160
  });
4133
- const T = () => {
4134
- fetch(c).then(($) => $.json()).then(($) => {
4161
+ const S = () => {
4162
+ fetch(f).then(($) => $.json()).then(($) => {
4135
4163
  Object.keys($).forEach((fe) => {
4136
- yt(fe, $[fe]);
4164
+ _t(fe, $[fe]);
4137
4165
  });
4138
4166
  }).catch(($) => {
4139
4167
  console.log($);
4140
4168
  });
4141
- }, S = () => {
4142
- r(2, d = !0);
4143
- const b = new URL(`${i}/v1/casino/groups/${s}`);
4144
- b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
4145
- r(2, d = !1);
4169
+ }, P = () => {
4170
+ r(2, g = !0);
4171
+ const b = new URL(`${i}/v1/casino/groups/${o}`);
4172
+ b.searchParams.append("language", s), fetch(b).then(($) => $.json()).then(($) => {
4173
+ r(2, g = !1);
4146
4174
  const fe = h.split(",").map((k) => k.trim());
4147
- g.push(...$.items);
4148
- const Je = g.filter((k) => !fe.some((er) => {
4149
- var qe;
4150
- return ((qe = k.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
4175
+ E.push(...$.items);
4176
+ const qe = E.filter((k) => !fe.some((rr) => {
4177
+ var Ye;
4178
+ return ((Ye = k.flags) == null ? void 0 : Ye.indexOf(rr)) >= 0;
4151
4179
  }));
4152
- r(3, E = Je.filter((k) => k.isTopCategory === !0)), r(4, m = Je.filter((k) => k.isTopCategory === !1));
4180
+ r(3, m = qe.filter((k) => k.isTopCategory === !0)), r(4, v = qe.filter((k) => k.isTopCategory === !1));
4153
4181
  });
4154
- }, w = (b) => {
4182
+ }, A = (b) => {
4155
4183
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4156
- }, A = () => {
4157
- bi(o);
4184
+ }, H = () => {
4185
+ _i(s);
4158
4186
  };
4159
- mr(() => () => {
4187
+ dr(() => () => {
4160
4188
  });
4161
- const H = (b) => w(b.id), P = (b) => w(b.id);
4162
- function Kt(b) {
4163
- Me[b ? "unshift" : "push"](() => {
4189
+ const O = (b) => A(b.id), er = (b) => A(b.id);
4190
+ function tr(b) {
4191
+ $e[b ? "unshift" : "push"](() => {
4164
4192
  p = b, r(1, p);
4165
4193
  });
4166
4194
  }
4167
4195
  return e.$$set = (b) => {
4168
- "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
4196
+ "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0, a = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, u = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
4169
4197
  }, e.$$.update = () => {
4170
4198
  e.$$.dirty & /*endpoint, datasource*/
4171
- 384 && i && s && S(), e.$$.dirty & /*translationurl*/
4172
- 8192 && c && T(), e.$$.dirty & /*lang*/
4173
- 512 && o && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4174
- 2050 && a && p && yi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4175
- 4098 && l && p && _i(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4176
- 16386 && f && p && Ei(p, `${f}.Style`);
4199
+ 384 && i && o && P(), e.$$.dirty & /*translationurl*/
4200
+ 8192 && f && S(), e.$$.dirty & /*lang*/
4201
+ 512 && s && H(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4202
+ 2050 && u && p && Ei(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4203
+ 4098 && l && p && xi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4204
+ 16386 && c && p && vi(p, `${c}.Style`, d);
4177
4205
  }, [
4178
- u,
4206
+ a,
4179
4207
  p,
4180
- d,
4181
- E,
4208
+ g,
4182
4209
  m,
4210
+ v,
4183
4211
  n,
4184
- w,
4212
+ A,
4185
4213
  i,
4186
- s,
4187
4214
  o,
4215
+ s,
4188
4216
  h,
4189
- a,
4217
+ u,
4190
4218
  l,
4191
- c,
4192
4219
  f,
4193
- H,
4194
- P,
4195
- Kt
4220
+ c,
4221
+ O,
4222
+ er,
4223
+ tr
4196
4224
  ];
4197
4225
  }
4198
- class Si extends Sr {
4226
+ class Oi extends Br {
4199
4227
  constructor(t) {
4200
- super(), Cr(
4228
+ super(), Sr(
4201
4229
  this,
4202
4230
  t,
4203
- Hi,
4204
- Ci,
4205
- Ht,
4231
+ wi,
4232
+ Bi,
4233
+ St,
4206
4234
  {
4207
4235
  endpoint: 7,
4208
4236
  datasource: 8,
@@ -4214,7 +4242,7 @@ class Si extends Sr {
4214
4242
  translationurl: 13,
4215
4243
  mbsource: 14
4216
4244
  },
4217
- xi
4245
+ Hi
4218
4246
  );
4219
4247
  }
4220
4248
  get endpoint() {
@@ -4272,7 +4300,7 @@ class Si extends Sr {
4272
4300
  this.$$set({ mbsource: t }), M();
4273
4301
  }
4274
4302
  }
4275
- Hr(Si, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4303
+ Ar(Oi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4276
4304
  export {
4277
- Si as default
4305
+ Oi as default
4278
4306
  };