@everymatrix/casino-random-game 1.74.3 → 1.74.5

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,59 +1,59 @@
1
- function L() {
1
+ function N() {
2
2
  }
3
- function Dn(e, t) {
4
- for (const n in t)
5
- e[n] = t[n];
3
+ function jr(e, t) {
4
+ for (const r in t)
5
+ e[r] = t[r];
6
6
  return (
7
7
  /** @type {T & S} */
8
8
  e
9
9
  );
10
10
  }
11
- function jt(e) {
11
+ function Vt(e) {
12
12
  return e();
13
13
  }
14
- function ct() {
14
+ function mt() {
15
15
  return /* @__PURE__ */ Object.create(null);
16
16
  }
17
17
  function z(e) {
18
- e.forEach(jt);
18
+ e.forEach(Vt);
19
19
  }
20
- function it(e) {
20
+ function ot(e) {
21
21
  return typeof e == "function";
22
22
  }
23
- function kt(e, t) {
23
+ function Wt(e, t) {
24
24
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
25
25
  }
26
26
  let ge;
27
- function ft(e, t) {
27
+ function dt(e, t) {
28
28
  return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
29
29
  }
30
- function $n(e) {
30
+ function kr(e) {
31
31
  return Object.keys(e).length === 0;
32
32
  }
33
- function Vt(e, ...t) {
33
+ function Xt(e, ...t) {
34
34
  if (e == null) {
35
- for (const r of t)
36
- r(void 0);
37
- return L;
35
+ for (const n of t)
36
+ n(void 0);
37
+ return N;
38
38
  }
39
- const n = e.subscribe(...t);
40
- return n.unsubscribe ? () => n.unsubscribe() : n;
39
+ const r = e.subscribe(...t);
40
+ return r.unsubscribe ? () => r.unsubscribe() : r;
41
41
  }
42
- function jn(e, t, n) {
43
- e.$$.on_destroy.push(Vt(t, n));
42
+ function Vr(e, t, r) {
43
+ e.$$.on_destroy.push(Xt(t, r));
44
44
  }
45
- function kn(e, t, n, r) {
45
+ function Wr(e, t, r, n) {
46
46
  if (e) {
47
- const i = Wt(e, t, n, r);
47
+ const i = zt(e, t, r, n);
48
48
  return e[0](i);
49
49
  }
50
50
  }
51
- function Wt(e, t, n, r) {
52
- return e[1] && r ? Dn(n.ctx.slice(), e[1](r(t))) : n.ctx;
51
+ function zt(e, t, r, n) {
52
+ return e[1] && n ? jr(r.ctx.slice(), e[1](n(t))) : r.ctx;
53
53
  }
54
- function Vn(e, t, n, r) {
55
- if (e[2] && r) {
56
- const i = e[2](r(n));
54
+ function Xr(e, t, r, n) {
55
+ if (e[2] && n) {
56
+ const i = e[2](n(r));
57
57
  if (t.dirty === void 0)
58
58
  return i;
59
59
  if (typeof i == "object") {
@@ -66,32 +66,32 @@ function Vn(e, t, n, r) {
66
66
  }
67
67
  return t.dirty;
68
68
  }
69
- function Wn(e, t, n, r, i, o) {
69
+ function zr(e, t, r, n, i, o) {
70
70
  if (i) {
71
- const a = Wt(t, n, r, o);
71
+ const a = zt(t, r, n, o);
72
72
  e.p(a, i);
73
73
  }
74
74
  }
75
- function Xn(e) {
75
+ function Jr(e) {
76
76
  if (e.ctx.length > 32) {
77
- const t = [], n = e.ctx.length / 32;
78
- for (let r = 0; r < n; r++)
79
- t[r] = -1;
77
+ const t = [], r = e.ctx.length / 32;
78
+ for (let n = 0; n < r; n++)
79
+ t[n] = -1;
80
80
  return t;
81
81
  }
82
82
  return -1;
83
83
  }
84
- function v(e, t) {
84
+ function x(e, t) {
85
85
  e.appendChild(t);
86
86
  }
87
- function zn(e, t, n) {
88
- const r = Jn(e);
89
- if (!r.getElementById(t)) {
87
+ function Zr(e, t, r) {
88
+ const n = Qr(e);
89
+ if (!n.getElementById(t)) {
90
90
  const i = S("style");
91
- i.id = t, i.textContent = n, Zn(r, i);
91
+ i.id = t, i.textContent = r, Yr(n, i);
92
92
  }
93
93
  }
94
- function Jn(e) {
94
+ function Qr(e) {
95
95
  if (!e)
96
96
  return document;
97
97
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -101,27 +101,27 @@ function Jn(e) {
101
101
  t
102
102
  ) : e.ownerDocument;
103
103
  }
104
- function Zn(e, t) {
105
- return v(
104
+ function Yr(e, t) {
105
+ return x(
106
106
  /** @type {Document} */
107
107
  e.head || e,
108
108
  t
109
109
  ), t.sheet;
110
110
  }
111
- function I(e, t, n) {
112
- e.insertBefore(t, n || null);
111
+ function O(e, t, r) {
112
+ e.insertBefore(t, r || null);
113
113
  }
114
114
  function R(e) {
115
115
  e.parentNode && e.parentNode.removeChild(e);
116
116
  }
117
- function Qn(e, t) {
118
- for (let n = 0; n < e.length; n += 1)
119
- e[n] && e[n].d(t);
117
+ function qr(e, t) {
118
+ for (let r = 0; r < e.length; r += 1)
119
+ e[r] && e[r].d(t);
120
120
  }
121
121
  function S(e) {
122
122
  return document.createElement(e);
123
123
  }
124
- function dt(e) {
124
+ function pt(e) {
125
125
  return document.createElementNS("http://www.w3.org/2000/svg", e);
126
126
  }
127
127
  function j(e) {
@@ -130,25 +130,25 @@ function j(e) {
130
130
  function k() {
131
131
  return j(" ");
132
132
  }
133
- function Te(e, t, n, r) {
134
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
133
+ function Te(e, t, r, n) {
134
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
135
135
  }
136
- function g(e, t, n) {
137
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
136
+ function g(e, t, r) {
137
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
138
138
  }
139
- function Yn(e) {
139
+ function Kr(e) {
140
140
  return Array.from(e.childNodes);
141
141
  }
142
142
  function X(e, t) {
143
143
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
144
144
  t);
145
145
  }
146
- function qn(e) {
146
+ function en(e) {
147
147
  const t = {};
148
148
  return e.childNodes.forEach(
149
149
  /** @param {Element} node */
150
- (n) => {
151
- t[n.slot || "default"] = !0;
150
+ (r) => {
151
+ t[r.slot || "default"] = !0;
152
152
  }
153
153
  ), t;
154
154
  }
@@ -156,30 +156,30 @@ let fe;
156
156
  function he(e) {
157
157
  fe = e;
158
158
  }
159
- function Kn() {
159
+ function tn() {
160
160
  if (!fe)
161
161
  throw new Error("Function called outside component initialization");
162
162
  return fe;
163
163
  }
164
- function er(e) {
165
- Kn().$$.on_mount.push(e);
164
+ function rn(e) {
165
+ tn().$$.on_mount.push(e);
166
166
  }
167
167
  const q = [], He = [];
168
168
  let K = [];
169
- const mt = [], Xt = /* @__PURE__ */ Promise.resolve();
170
- let je = !1;
171
- function zt() {
172
- je || (je = !0, Xt.then(O));
169
+ const bt = [], Jt = /* @__PURE__ */ Promise.resolve();
170
+ let ke = !1;
171
+ function Zt() {
172
+ ke || (ke = !0, Jt.then(I));
173
173
  }
174
- function tr() {
175
- return zt(), Xt;
174
+ function nn() {
175
+ return Zt(), Jt;
176
176
  }
177
- function ke(e) {
177
+ function Ve(e) {
178
178
  K.push(e);
179
179
  }
180
- const Le = /* @__PURE__ */ new Set();
180
+ const Ne = /* @__PURE__ */ new Set();
181
181
  let Q = 0;
182
- function O() {
182
+ function I() {
183
183
  if (Q !== 0)
184
184
  return;
185
185
  const e = fe;
@@ -187,7 +187,7 @@ function O() {
187
187
  try {
188
188
  for (; Q < q.length; ) {
189
189
  const t = q[Q];
190
- Q++, he(t), nr(t.$$);
190
+ Q++, he(t), on(t.$$);
191
191
  }
192
192
  } catch (t) {
193
193
  throw q.length = 0, Q = 0, t;
@@ -195,29 +195,29 @@ function O() {
195
195
  for (he(null), q.length = 0, Q = 0; He.length; )
196
196
  He.pop()();
197
197
  for (let t = 0; t < K.length; t += 1) {
198
- const n = K[t];
199
- Le.has(n) || (Le.add(n), n());
198
+ const r = K[t];
199
+ Ne.has(r) || (Ne.add(r), r());
200
200
  }
201
201
  K.length = 0;
202
202
  } while (q.length);
203
- for (; mt.length; )
204
- mt.pop()();
205
- je = !1, Le.clear(), he(e);
203
+ for (; bt.length; )
204
+ bt.pop()();
205
+ ke = !1, Ne.clear(), he(e);
206
206
  }
207
- function nr(e) {
207
+ function on(e) {
208
208
  if (e.fragment !== null) {
209
209
  e.update(), z(e.before_update);
210
210
  const t = e.dirty;
211
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
211
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
212
212
  }
213
213
  }
214
- function rr(e) {
215
- const t = [], n = [];
216
- K.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), K = t;
214
+ function an(e) {
215
+ const t = [], r = [];
216
+ K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
217
217
  }
218
- const xe = /* @__PURE__ */ new Set();
218
+ const _e = /* @__PURE__ */ new Set();
219
219
  let W;
220
- function ir() {
220
+ function sn() {
221
221
  W = {
222
222
  r: 0,
223
223
  c: [],
@@ -225,40 +225,40 @@ function ir() {
225
225
  // parent group
226
226
  };
227
227
  }
228
- function or() {
228
+ function un() {
229
229
  W.r || z(W.c), W = W.p;
230
230
  }
231
231
  function ce(e, t) {
232
- e && e.i && (xe.delete(e), e.i(t));
232
+ e && e.i && (_e.delete(e), e.i(t));
233
233
  }
234
- function Ve(e, t, n, r) {
234
+ function We(e, t, r, n) {
235
235
  if (e && e.o) {
236
- if (xe.has(e))
236
+ if (_e.has(e))
237
237
  return;
238
- xe.add(e), W.c.push(() => {
239
- xe.delete(e), r && (n && e.d(1), r());
238
+ _e.add(e), W.c.push(() => {
239
+ _e.delete(e), n && (r && e.d(1), n());
240
240
  }), e.o(t);
241
241
  } else
242
- r && r();
242
+ n && n();
243
243
  }
244
- function pt(e) {
244
+ function gt(e) {
245
245
  return e?.length !== void 0 ? e : Array.from(e);
246
246
  }
247
- function ar(e, t, n) {
248
- const { fragment: r, after_update: i } = e.$$;
249
- r && r.m(t, n), ke(() => {
250
- const o = e.$$.on_mount.map(jt).filter(it);
247
+ function ln(e, t, r) {
248
+ const { fragment: n, after_update: i } = e.$$;
249
+ n && n.m(t, r), Ve(() => {
250
+ const o = e.$$.on_mount.map(Vt).filter(ot);
251
251
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
252
- }), i.forEach(ke);
252
+ }), i.forEach(Ve);
253
253
  }
254
- function sr(e, t) {
255
- const n = e.$$;
256
- n.fragment !== null && (rr(n.after_update), z(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
254
+ function hn(e, t) {
255
+ const r = e.$$;
256
+ r.fragment !== null && (an(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
257
257
  }
258
- function ur(e, t) {
259
- e.$$.dirty[0] === -1 && (q.push(e), zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
258
+ function cn(e, t) {
259
+ e.$$.dirty[0] === -1 && (q.push(e), Zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
260
260
  }
261
- function lr(e, t, n, r, i, o, a = null, s = [-1]) {
261
+ function fn(e, t, r, n, i, o, a = null, s = [-1]) {
262
262
  const h = fe;
263
263
  he(e);
264
264
  const l = e.$$ = {
@@ -266,9 +266,9 @@ function lr(e, t, n, r, i, o, a = null, s = [-1]) {
266
266
  ctx: [],
267
267
  // state
268
268
  props: o,
269
- update: L,
269
+ update: N,
270
270
  not_equal: i,
271
- bound: ct(),
271
+ bound: mt(),
272
272
  // lifecycle
273
273
  on_mount: [],
274
274
  on_destroy: [],
@@ -277,28 +277,28 @@ function lr(e, t, n, r, i, o, a = null, s = [-1]) {
277
277
  after_update: [],
278
278
  context: new Map(t.context || (h ? h.$$.context : [])),
279
279
  // everything else
280
- callbacks: ct(),
280
+ callbacks: mt(),
281
281
  dirty: s,
282
282
  skip_bound: !1,
283
283
  root: t.target || h.$$.root
284
284
  };
285
285
  a && a(l.root);
286
286
  let u = !1;
287
- if (l.ctx = n(e, t.props || {}, (f, c, ...d) => {
288
- const m = d.length ? d[0] : c;
289
- return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && ur(e, f)), c;
290
- }), l.update(), u = !0, z(l.before_update), l.fragment = r(l.ctx), t.target) {
287
+ if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
288
+ const d = m.length ? m[0] : c;
289
+ return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && cn(e, f)), c;
290
+ }) : [], l.update(), u = !0, z(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
291
291
  if (t.hydrate) {
292
- const f = Yn(t.target);
292
+ const f = Kr(t.target);
293
293
  l.fragment && l.fragment.l(f), f.forEach(R);
294
294
  } else
295
295
  l.fragment && l.fragment.c();
296
- t.intro && ce(e.$$.fragment), ar(e, t.target, t.anchor), O();
296
+ t.intro && ce(e.$$.fragment), ln(e, t.target, t.anchor), I();
297
297
  }
298
298
  he(h);
299
299
  }
300
- let Jt;
301
- typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
300
+ let Qt;
301
+ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
302
302
  /** The Svelte component constructor */
303
303
  $$ctor;
304
304
  /** Slots */
@@ -317,20 +317,20 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
317
317
  $$l = {};
318
318
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
319
319
  $$l_u = /* @__PURE__ */ new Map();
320
- constructor(e, t, n) {
321
- super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
320
+ constructor(e, t, r) {
321
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
322
322
  }
323
- addEventListener(e, t, n) {
323
+ addEventListener(e, t, r) {
324
324
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
325
- const r = this.$$c.$on(e, t);
326
- this.$$l_u.set(t, r);
325
+ const n = this.$$c.$on(e, t);
326
+ this.$$l_u.set(t, n);
327
327
  }
328
- super.addEventListener(e, t, n);
328
+ super.addEventListener(e, t, r);
329
329
  }
330
- removeEventListener(e, t, n) {
331
- if (super.removeEventListener(e, t, n), this.$$c) {
332
- const r = this.$$l_u.get(t);
333
- r && (r(), this.$$l_u.delete(t));
330
+ removeEventListener(e, t, r) {
331
+ if (super.removeEventListener(e, t, r), this.$$c) {
332
+ const n = this.$$l_u.get(t);
333
+ n && (n(), this.$$l_u.delete(t));
334
334
  }
335
335
  }
336
336
  async connectedCallback() {
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
347
347
  * @param {HTMLElement} [anchor]
348
348
  */
349
349
  m: function(h, l) {
350
- I(h, o, l);
350
+ O(h, o, l);
351
351
  },
352
352
  d: function(h) {
353
353
  h && R(o);
@@ -357,12 +357,12 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
357
357
  };
358
358
  if (await Promise.resolve(), !this.$$cn || this.$$c)
359
359
  return;
360
- const t = {}, n = qn(this);
360
+ const t = {}, r = en(this);
361
361
  for (const i of this.$$s)
362
- i in n && (t[i] = [e(i)]);
362
+ i in r && (t[i] = [e(i)]);
363
363
  for (const i of this.attributes) {
364
364
  const o = this.$$g_p(i.name);
365
- o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
365
+ o in this.$$d || (this.$$d[o] = xe(o, i.value, this.$$p_d, "toProp"));
366
366
  }
367
367
  for (const i in this.$$p_d)
368
368
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -376,11 +376,11 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
376
376
  }
377
377
  }
378
378
  });
379
- const r = () => {
379
+ const n = () => {
380
380
  this.$$r = !0;
381
381
  for (const i in this.$$p_d)
382
382
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
383
- const o = ve(
383
+ const o = xe(
384
384
  i,
385
385
  this.$$d[i],
386
386
  this.$$p_d,
@@ -390,7 +390,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
390
390
  }
391
391
  this.$$r = !1;
392
392
  };
393
- this.$$c.$$.after_update.push(r), r();
393
+ this.$$c.$$.after_update.push(n), n();
394
394
  for (const i in this.$$l)
395
395
  for (const o of this.$$l[i]) {
396
396
  const a = this.$$c.$on(i, o);
@@ -401,8 +401,8 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
401
401
  }
402
402
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
403
403
  // and setting attributes through setAttribute etc, this is helpful
404
- attributeChangedCallback(e, t, n) {
405
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
404
+ attributeChangedCallback(e, t, r) {
405
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = xe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
406
406
  }
407
407
  disconnectedCallback() {
408
408
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -415,11 +415,11 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
415
415
  ) || e;
416
416
  }
417
417
  });
418
- function ve(e, t, n, r) {
419
- const i = n[e]?.type;
420
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
418
+ function xe(e, t, r, n) {
419
+ const i = r[e]?.type;
420
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
421
421
  return t;
422
- if (r === "toAttribute")
422
+ if (n === "toAttribute")
423
423
  switch (i) {
424
424
  case "Object":
425
425
  case "Array":
@@ -444,10 +444,10 @@ function ve(e, t, n, r) {
444
444
  return t;
445
445
  }
446
446
  }
447
- function hr(e, t, n, r, i, o) {
448
- let a = class extends Jt {
447
+ function mn(e, t, r, n, i, o) {
448
+ let a = class extends Qt {
449
449
  constructor() {
450
- super(e, n, i), this.$$p_d = t;
450
+ super(e, r, i), this.$$p_d = t;
451
451
  }
452
452
  static get observedAttributes() {
453
453
  return Object.keys(t).map(
@@ -461,10 +461,10 @@ function hr(e, t, n, r, i, o) {
461
461
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
462
462
  },
463
463
  set(h) {
464
- h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
464
+ h = xe(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
465
465
  }
466
466
  });
467
- }), r.forEach((s) => {
467
+ }), n.forEach((s) => {
468
468
  Object.defineProperty(a.prototype, s, {
469
469
  get() {
470
470
  return this.$$c?.[s];
@@ -473,7 +473,7 @@ function hr(e, t, n, r, i, o) {
473
473
  }), e.element = /** @type {any} */
474
474
  a, a;
475
475
  }
476
- class cr {
476
+ class dn {
477
477
  /**
478
478
  * ### PRIVATE API
479
479
  *
@@ -492,7 +492,7 @@ class cr {
492
492
  $$set = void 0;
493
493
  /** @returns {void} */
494
494
  $destroy() {
495
- sr(this, 1), this.$destroy = L;
495
+ hn(this, 1), this.$destroy = N;
496
496
  }
497
497
  /**
498
498
  * @template {Extract<keyof Events, string>} K
@@ -500,13 +500,13 @@ class cr {
500
500
  * @param {((e: Events[K]) => void) | null | undefined} callback
501
501
  * @returns {() => void}
502
502
  */
503
- $on(t, n) {
504
- if (!it(n))
505
- return L;
506
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
507
- return r.push(n), () => {
508
- const i = r.indexOf(n);
509
- i !== -1 && r.splice(i, 1);
503
+ $on(t, r) {
504
+ if (!ot(r))
505
+ return N;
506
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
507
+ return n.push(r), () => {
508
+ const i = n.indexOf(r);
509
+ i !== -1 && n.splice(i, 1);
510
510
  };
511
511
  }
512
512
  /**
@@ -514,11 +514,11 @@ class cr {
514
514
  * @returns {void}
515
515
  */
516
516
  $set(t) {
517
- this.$$set && !$n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
517
+ this.$$set && !kr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
518
518
  }
519
519
  }
520
- const fr = "4";
521
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
520
+ const pn = "4";
521
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
522
522
  /*! *****************************************************************************
523
523
  Copyright (c) Microsoft Corporation.
524
524
 
@@ -533,67 +533,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
533
533
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
534
534
  PERFORMANCE OF THIS SOFTWARE.
535
535
  ***************************************************************************** */
536
- var We = function(e, t) {
537
- return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
538
- n.__proto__ = r;
539
- } || function(n, r) {
540
- for (var i in r)
541
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
542
- }, We(e, t);
536
+ var Xe = function(e, t) {
537
+ return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
538
+ r.__proto__ = n;
539
+ } || function(r, n) {
540
+ for (var i in n)
541
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
542
+ }, Xe(e, t);
543
543
  };
544
544
  function D(e, t) {
545
545
  if (typeof t != "function" && t !== null)
546
546
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
547
- We(e, t);
548
- function n() {
547
+ Xe(e, t);
548
+ function r() {
549
549
  this.constructor = e;
550
550
  }
551
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
552
- }
553
- var x = function() {
554
- return x = Object.assign || function(t) {
555
- for (var n, r = 1, i = arguments.length; r < i; r++) {
556
- n = arguments[r];
557
- for (var o in n)
558
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
551
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
552
+ }
553
+ var _ = function() {
554
+ return _ = Object.assign || function(t) {
555
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
556
+ r = arguments[n];
557
+ for (var o in r)
558
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
559
559
  }
560
560
  return t;
561
- }, x.apply(this, arguments);
561
+ }, _.apply(this, arguments);
562
562
  };
563
- function dr(e, t) {
564
- var n = {};
565
- for (var r in e)
566
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
563
+ function bn(e, t) {
564
+ var r = {};
565
+ for (var n in e)
566
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
567
567
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
568
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
569
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
570
- return n;
568
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
569
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
570
+ return r;
571
571
  }
572
- function Xe(e) {
573
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
574
- if (n)
575
- return n.call(e);
572
+ function ze(e) {
573
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
574
+ if (r)
575
+ return r.call(e);
576
576
  if (e && typeof e.length == "number")
577
577
  return {
578
578
  next: function() {
579
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
579
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
580
580
  }
581
581
  };
582
582
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
583
583
  }
584
- function ze(e, t) {
585
- var n = typeof Symbol == "function" && e[Symbol.iterator];
586
- if (!n)
584
+ function Je(e, t) {
585
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
586
+ if (!r)
587
587
  return e;
588
- var r = n.call(e), i, o = [], a;
588
+ var n = r.call(e), i, o = [], a;
589
589
  try {
590
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
590
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
591
591
  o.push(i.value);
592
592
  } catch (s) {
593
593
  a = { error: s };
594
594
  } finally {
595
595
  try {
596
- i && !i.done && (n = r.return) && n.call(r);
596
+ i && !i.done && (r = n.return) && r.call(n);
597
597
  } finally {
598
598
  if (a)
599
599
  throw a.error;
@@ -601,34 +601,34 @@ function ze(e, t) {
601
601
  }
602
602
  return o;
603
603
  }
604
- function ee(e, t, n) {
605
- if (n || arguments.length === 2)
606
- for (var r = 0, i = t.length, o; r < i; r++)
607
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
604
+ function ee(e, t, r) {
605
+ if (r || arguments.length === 2)
606
+ for (var n = 0, i = t.length, o; n < i; n++)
607
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
608
608
  return e.concat(o || t);
609
609
  }
610
610
  function F(e) {
611
611
  return typeof e == "function";
612
612
  }
613
- function Zt(e) {
614
- var t = function(r) {
615
- Error.call(r), r.stack = new Error().stack;
616
- }, n = e(t);
617
- return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
618
- }
619
- var Ce = Zt(function(e) {
620
- return function(n) {
621
- e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
622
- ` + n.map(function(r, i) {
623
- return i + 1 + ") " + r.toString();
613
+ function Yt(e) {
614
+ var t = function(n) {
615
+ Error.call(n), n.stack = new Error().stack;
616
+ }, r = e(t);
617
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
618
+ }
619
+ var Ce = Yt(function(e) {
620
+ return function(r) {
621
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
622
+ ` + r.map(function(n, i) {
623
+ return i + 1 + ") " + n.toString();
624
624
  }).join(`
625
- `) : "", this.name = "UnsubscriptionError", this.errors = n;
625
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
626
626
  };
627
627
  });
628
- function Je(e, t) {
628
+ function Ze(e, t) {
629
629
  if (e) {
630
- var n = e.indexOf(t);
631
- 0 <= n && e.splice(n, 1);
630
+ var r = e.indexOf(t);
631
+ 0 <= r && e.splice(r, 1);
632
632
  }
633
633
  }
634
634
  var Pe = function() {
@@ -636,14 +636,14 @@ var Pe = function() {
636
636
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
637
637
  }
638
638
  return e.prototype.unsubscribe = function() {
639
- var t, n, r, i, o;
639
+ var t, r, n, i, o;
640
640
  if (!this.closed) {
641
641
  this.closed = !0;
642
642
  var a = this._parentage;
643
643
  if (a)
644
644
  if (this._parentage = null, Array.isArray(a))
645
645
  try {
646
- for (var s = Xe(a), h = s.next(); !h.done; h = s.next()) {
646
+ for (var s = ze(a), h = s.next(); !h.done; h = s.next()) {
647
647
  var l = h.value;
648
648
  l.remove(this);
649
649
  }
@@ -651,7 +651,7 @@ var Pe = function() {
651
651
  t = { error: p };
652
652
  } finally {
653
653
  try {
654
- h && !h.done && (n = s.return) && n.call(s);
654
+ h && !h.done && (r = s.return) && r.call(s);
655
655
  } finally {
656
656
  if (t)
657
657
  throw t.error;
@@ -670,22 +670,22 @@ var Pe = function() {
670
670
  if (f) {
671
671
  this._finalizers = null;
672
672
  try {
673
- for (var c = Xe(f), d = c.next(); !d.done; d = c.next()) {
674
- var m = d.value;
673
+ for (var c = ze(f), m = c.next(); !m.done; m = c.next()) {
674
+ var d = m.value;
675
675
  try {
676
- bt(m);
676
+ yt(d);
677
677
  } catch (p) {
678
- o = o ?? [], p instanceof Ce ? o = ee(ee([], ze(o)), ze(p.errors)) : o.push(p);
678
+ o = o ?? [], p instanceof Ce ? o = ee(ee([], Je(o)), Je(p.errors)) : o.push(p);
679
679
  }
680
680
  }
681
681
  } catch (p) {
682
- r = { error: p };
682
+ n = { error: p };
683
683
  } finally {
684
684
  try {
685
- d && !d.done && (i = c.return) && i.call(c);
685
+ m && !m.done && (i = c.return) && i.call(c);
686
686
  } finally {
687
- if (r)
688
- throw r.error;
687
+ if (n)
688
+ throw n.error;
689
689
  }
690
690
  }
691
691
  }
@@ -693,89 +693,89 @@ var Pe = function() {
693
693
  throw new Ce(o);
694
694
  }
695
695
  }, e.prototype.add = function(t) {
696
- var n;
696
+ var r;
697
697
  if (t && t !== this)
698
698
  if (this.closed)
699
- bt(t);
699
+ yt(t);
700
700
  else {
701
701
  if (t instanceof e) {
702
702
  if (t.closed || t._hasParent(this))
703
703
  return;
704
704
  t._addParent(this);
705
705
  }
706
- (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
706
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
707
707
  }
708
708
  }, e.prototype._hasParent = function(t) {
709
- var n = this._parentage;
710
- return n === t || Array.isArray(n) && n.includes(t);
709
+ var r = this._parentage;
710
+ return r === t || Array.isArray(r) && r.includes(t);
711
711
  }, e.prototype._addParent = function(t) {
712
- var n = this._parentage;
713
- this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
712
+ var r = this._parentage;
713
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
714
714
  }, e.prototype._removeParent = function(t) {
715
- var n = this._parentage;
716
- n === t ? this._parentage = null : Array.isArray(n) && Je(n, t);
715
+ var r = this._parentage;
716
+ r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
717
717
  }, e.prototype.remove = function(t) {
718
- var n = this._finalizers;
719
- n && Je(n, t), t instanceof e && t._removeParent(this);
718
+ var r = this._finalizers;
719
+ r && Ze(r, t), t instanceof e && t._removeParent(this);
720
720
  }, e.EMPTY = function() {
721
721
  var t = new e();
722
722
  return t.closed = !0, t;
723
723
  }(), e;
724
- }(), Qt = Pe.EMPTY;
725
- function Yt(e) {
724
+ }(), qt = Pe.EMPTY;
725
+ function Kt(e) {
726
726
  return e instanceof Pe || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
727
727
  }
728
- function bt(e) {
728
+ function yt(e) {
729
729
  F(e) ? e() : e.unsubscribe();
730
730
  }
731
- var mr = {
731
+ var er = {
732
732
  onUnhandledError: null,
733
733
  onStoppedNotification: null,
734
734
  Promise: void 0,
735
735
  useDeprecatedSynchronousErrorHandling: !1,
736
736
  useDeprecatedNextContext: !1
737
- }, pr = {
737
+ }, gn = {
738
738
  setTimeout: function(e, t) {
739
- for (var n = [], r = 2; r < arguments.length; r++)
740
- n[r - 2] = arguments[r];
741
- return setTimeout.apply(void 0, ee([e, t], ze(n)));
739
+ for (var r = [], n = 2; n < arguments.length; n++)
740
+ r[n - 2] = arguments[n];
741
+ return setTimeout.apply(void 0, ee([e, t], Je(r)));
742
742
  },
743
743
  clearTimeout: function(e) {
744
744
  return clearTimeout(e);
745
745
  },
746
746
  delegate: void 0
747
747
  };
748
- function br(e) {
749
- pr.setTimeout(function() {
748
+ function yn(e) {
749
+ gn.setTimeout(function() {
750
750
  throw e;
751
751
  });
752
752
  }
753
- function gt() {
753
+ function vt() {
754
754
  }
755
755
  function Ee(e) {
756
756
  e();
757
757
  }
758
- var qt = function(e) {
758
+ var tr = function(e) {
759
759
  D(t, e);
760
- function t(n) {
761
- var r = e.call(this) || this;
762
- return r.isStopped = !1, n ? (r.destination = n, Yt(n) && n.add(r)) : r.destination = _r, r;
760
+ function t(r) {
761
+ var n = e.call(this) || this;
762
+ return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = En, n;
763
763
  }
764
- return t.create = function(n, r, i) {
765
- return new Ze(n, r, i);
766
- }, t.prototype.next = function(n) {
767
- this.isStopped || this._next(n);
768
- }, t.prototype.error = function(n) {
769
- this.isStopped || (this.isStopped = !0, this._error(n));
764
+ return t.create = function(r, n, i) {
765
+ return new Qe(r, n, i);
766
+ }, t.prototype.next = function(r) {
767
+ this.isStopped || this._next(r);
768
+ }, t.prototype.error = function(r) {
769
+ this.isStopped || (this.isStopped = !0, this._error(r));
770
770
  }, t.prototype.complete = function() {
771
771
  this.isStopped || (this.isStopped = !0, this._complete());
772
772
  }, t.prototype.unsubscribe = function() {
773
773
  this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
774
- }, t.prototype._next = function(n) {
775
- this.destination.next(n);
776
- }, t.prototype._error = function(n) {
774
+ }, t.prototype._next = function(r) {
775
+ this.destination.next(r);
776
+ }, t.prototype._error = function(r) {
777
777
  try {
778
- this.destination.error(n);
778
+ this.destination.error(r);
779
779
  } finally {
780
780
  this.unsubscribe();
781
781
  }
@@ -786,25 +786,29 @@ var qt = function(e) {
786
786
  this.unsubscribe();
787
787
  }
788
788
  }, t;
789
- }(Pe), gr = function() {
789
+ }(Pe), vn = Function.prototype.bind;
790
+ function Ge(e, t) {
791
+ return vn.call(e, t);
792
+ }
793
+ var _n = function() {
790
794
  function e(t) {
791
795
  this.partialObserver = t;
792
796
  }
793
797
  return e.prototype.next = function(t) {
794
- var n = this.partialObserver;
795
- if (n.next)
798
+ var r = this.partialObserver;
799
+ if (r.next)
796
800
  try {
797
- n.next(t);
798
- } catch (r) {
799
- ye(r);
801
+ r.next(t);
802
+ } catch (n) {
803
+ ye(n);
800
804
  }
801
805
  }, e.prototype.error = function(t) {
802
- var n = this.partialObserver;
803
- if (n.error)
806
+ var r = this.partialObserver;
807
+ if (r.error)
804
808
  try {
805
- n.error(t);
806
- } catch (r) {
807
- ye(r);
809
+ r.error(t);
810
+ } catch (n) {
811
+ ye(n);
808
812
  }
809
813
  else
810
814
  ye(t);
@@ -813,55 +817,67 @@ var qt = function(e) {
813
817
  if (t.complete)
814
818
  try {
815
819
  t.complete();
816
- } catch (n) {
817
- ye(n);
820
+ } catch (r) {
821
+ ye(r);
818
822
  }
819
823
  }, e;
820
- }(), Ze = function(e) {
824
+ }(), Qe = function(e) {
821
825
  D(t, e);
822
- function t(n, r, i) {
826
+ function t(r, n, i) {
823
827
  var o = e.call(this) || this, a;
824
- return F(n) || !n ? a = {
825
- next: n ?? void 0,
826
- error: r ?? void 0,
827
- complete: i ?? void 0
828
- } : a = n, o.destination = new gr(a), o;
828
+ if (F(r) || !r)
829
+ a = {
830
+ next: r ?? void 0,
831
+ error: n ?? void 0,
832
+ complete: i ?? void 0
833
+ };
834
+ else {
835
+ var s;
836
+ o && er.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
837
+ return o.unsubscribe();
838
+ }, a = {
839
+ next: r.next && Ge(r.next, s),
840
+ error: r.error && Ge(r.error, s),
841
+ complete: r.complete && Ge(r.complete, s)
842
+ }) : a = r;
843
+ }
844
+ return o.destination = new _n(a), o;
829
845
  }
830
846
  return t;
831
- }(qt);
847
+ }(tr);
832
848
  function ye(e) {
833
- br(e);
849
+ yn(e);
834
850
  }
835
- function yr(e) {
851
+ function xn(e) {
836
852
  throw e;
837
853
  }
838
- var _r = {
854
+ var En = {
839
855
  closed: !0,
840
- next: gt,
841
- error: yr,
842
- complete: gt
843
- }, xr = function() {
856
+ next: vt,
857
+ error: xn,
858
+ complete: vt
859
+ }, wn = function() {
844
860
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
845
861
  }();
846
- function vr(e) {
862
+ function Sn(e) {
847
863
  return e;
848
864
  }
849
- function Er(e) {
850
- return e.length === 0 ? vr : e.length === 1 ? e[0] : function(n) {
851
- return e.reduce(function(r, i) {
852
- return i(r);
853
- }, n);
865
+ function Tn(e) {
866
+ return e.length === 0 ? Sn : e.length === 1 ? e[0] : function(r) {
867
+ return e.reduce(function(n, i) {
868
+ return i(n);
869
+ }, r);
854
870
  };
855
871
  }
856
- var yt = function() {
872
+ var _t = function() {
857
873
  function e(t) {
858
874
  t && (this._subscribe = t);
859
875
  }
860
876
  return e.prototype.lift = function(t) {
861
- var n = new e();
862
- return n.source = this, n.operator = t, n;
863
- }, e.prototype.subscribe = function(t, n, r) {
864
- var i = this, o = Sr(t) ? t : new Ze(t, n, r);
877
+ var r = new e();
878
+ return r.source = this, r.operator = t, r;
879
+ }, e.prototype.subscribe = function(t, r, n) {
880
+ var i = this, o = Bn(t) ? t : new Qe(t, r, n);
865
881
  return Ee(function() {
866
882
  var a = i, s = a.operator, h = a.source;
867
883
  o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
@@ -869,13 +885,13 @@ var yt = function() {
869
885
  }, e.prototype._trySubscribe = function(t) {
870
886
  try {
871
887
  return this._subscribe(t);
872
- } catch (n) {
873
- t.error(n);
888
+ } catch (r) {
889
+ t.error(r);
874
890
  }
875
- }, e.prototype.forEach = function(t, n) {
876
- var r = this;
877
- return n = _t(n), new n(function(i, o) {
878
- var a = new Ze({
891
+ }, e.prototype.forEach = function(t, r) {
892
+ var n = this;
893
+ return r = xt(r), new r(function(i, o) {
894
+ var a = new Qe({
879
895
  next: function(s) {
880
896
  try {
881
897
  t(s);
@@ -886,69 +902,69 @@ var yt = function() {
886
902
  error: o,
887
903
  complete: i
888
904
  });
889
- r.subscribe(a);
905
+ n.subscribe(a);
890
906
  });
891
907
  }, e.prototype._subscribe = function(t) {
892
- var n;
893
- return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
894
- }, e.prototype[xr] = function() {
908
+ var r;
909
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
910
+ }, e.prototype[wn] = function() {
895
911
  return this;
896
912
  }, e.prototype.pipe = function() {
897
- for (var t = [], n = 0; n < arguments.length; n++)
898
- t[n] = arguments[n];
899
- return Er(t)(this);
913
+ for (var t = [], r = 0; r < arguments.length; r++)
914
+ t[r] = arguments[r];
915
+ return Tn(t)(this);
900
916
  }, e.prototype.toPromise = function(t) {
901
- var n = this;
902
- return t = _t(t), new t(function(r, i) {
917
+ var r = this;
918
+ return t = xt(t), new t(function(n, i) {
903
919
  var o;
904
- n.subscribe(function(a) {
920
+ r.subscribe(function(a) {
905
921
  return o = a;
906
922
  }, function(a) {
907
923
  return i(a);
908
924
  }, function() {
909
- return r(o);
925
+ return n(o);
910
926
  });
911
927
  });
912
928
  }, e.create = function(t) {
913
929
  return new e(t);
914
930
  }, e;
915
931
  }();
916
- function _t(e) {
932
+ function xt(e) {
917
933
  var t;
918
- return (t = e ?? mr.Promise) !== null && t !== void 0 ? t : Promise;
934
+ return (t = e ?? er.Promise) !== null && t !== void 0 ? t : Promise;
919
935
  }
920
- function wr(e) {
936
+ function Hn(e) {
921
937
  return e && F(e.next) && F(e.error) && F(e.complete);
922
938
  }
923
- function Sr(e) {
924
- return e && e instanceof qt || wr(e) && Yt(e);
939
+ function Bn(e) {
940
+ return e && e instanceof tr || Hn(e) && Kt(e);
925
941
  }
926
- var Tr = Zt(function(e) {
942
+ var An = Yt(function(e) {
927
943
  return function() {
928
944
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
929
945
  };
930
- }), Kt = function(e) {
946
+ }), rr = function(e) {
931
947
  D(t, e);
932
948
  function t() {
933
- var n = e.call(this) || this;
934
- return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
949
+ var r = e.call(this) || this;
950
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
935
951
  }
936
- return t.prototype.lift = function(n) {
937
- var r = new xt(this, this);
938
- return r.operator = n, r;
952
+ return t.prototype.lift = function(r) {
953
+ var n = new Et(this, this);
954
+ return n.operator = r, n;
939
955
  }, t.prototype._throwIfClosed = function() {
940
956
  if (this.closed)
941
- throw new Tr();
942
- }, t.prototype.next = function(n) {
943
- var r = this;
957
+ throw new An();
958
+ }, t.prototype.next = function(r) {
959
+ var n = this;
944
960
  Ee(function() {
945
961
  var i, o;
946
- if (r._throwIfClosed(), !r.isStopped) {
947
- r.currentObservers || (r.currentObservers = Array.from(r.observers));
962
+ if (n._throwIfClosed(), !n.isStopped) {
963
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
948
964
  try {
949
- for (var a = Xe(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
965
+ for (var a = ze(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
950
966
  var h = s.value;
951
- h.next(n);
967
+ h.next(r);
952
968
  }
953
969
  } catch (l) {
954
970
  i = { error: l };
@@ -962,118 +978,118 @@ var Tr = Zt(function(e) {
962
978
  }
963
979
  }
964
980
  });
965
- }, t.prototype.error = function(n) {
966
- var r = this;
981
+ }, t.prototype.error = function(r) {
982
+ var n = this;
967
983
  Ee(function() {
968
- if (r._throwIfClosed(), !r.isStopped) {
969
- r.hasError = r.isStopped = !0, r.thrownError = n;
970
- for (var i = r.observers; i.length; )
971
- i.shift().error(n);
984
+ if (n._throwIfClosed(), !n.isStopped) {
985
+ n.hasError = n.isStopped = !0, n.thrownError = r;
986
+ for (var i = n.observers; i.length; )
987
+ i.shift().error(r);
972
988
  }
973
989
  });
974
990
  }, t.prototype.complete = function() {
975
- var n = this;
991
+ var r = this;
976
992
  Ee(function() {
977
- if (n._throwIfClosed(), !n.isStopped) {
978
- n.isStopped = !0;
979
- for (var r = n.observers; r.length; )
980
- r.shift().complete();
993
+ if (r._throwIfClosed(), !r.isStopped) {
994
+ r.isStopped = !0;
995
+ for (var n = r.observers; n.length; )
996
+ n.shift().complete();
981
997
  }
982
998
  });
983
999
  }, t.prototype.unsubscribe = function() {
984
1000
  this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
985
1001
  }, Object.defineProperty(t.prototype, "observed", {
986
1002
  get: function() {
987
- var n;
988
- return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
1003
+ var r;
1004
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
989
1005
  },
990
1006
  enumerable: !1,
991
1007
  configurable: !0
992
- }), t.prototype._trySubscribe = function(n) {
993
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
994
- }, t.prototype._subscribe = function(n) {
995
- return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
996
- }, t.prototype._innerSubscribe = function(n) {
997
- var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
998
- return o || a ? Qt : (this.currentObservers = null, s.push(n), new Pe(function() {
999
- r.currentObservers = null, Je(s, n);
1008
+ }), t.prototype._trySubscribe = function(r) {
1009
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1010
+ }, t.prototype._subscribe = function(r) {
1011
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1012
+ }, t.prototype._innerSubscribe = function(r) {
1013
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1014
+ return o || a ? qt : (this.currentObservers = null, s.push(r), new Pe(function() {
1015
+ n.currentObservers = null, Ze(s, r);
1000
1016
  }));
1001
- }, t.prototype._checkFinalizedStatuses = function(n) {
1002
- var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
1003
- i ? n.error(o) : a && n.complete();
1017
+ }, t.prototype._checkFinalizedStatuses = function(r) {
1018
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1019
+ i ? r.error(o) : a && r.complete();
1004
1020
  }, t.prototype.asObservable = function() {
1005
- var n = new yt();
1006
- return n.source = this, n;
1007
- }, t.create = function(n, r) {
1008
- return new xt(n, r);
1021
+ var r = new _t();
1022
+ return r.source = this, r;
1023
+ }, t.create = function(r, n) {
1024
+ return new Et(r, n);
1009
1025
  }, t;
1010
- }(yt), xt = function(e) {
1026
+ }(_t), Et = function(e) {
1011
1027
  D(t, e);
1012
- function t(n, r) {
1028
+ function t(r, n) {
1013
1029
  var i = e.call(this) || this;
1014
- return i.destination = n, i.source = r, i;
1030
+ return i.destination = r, i.source = n, i;
1015
1031
  }
1016
- return t.prototype.next = function(n) {
1017
- var r, i;
1018
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
1019
- }, t.prototype.error = function(n) {
1020
- var r, i;
1021
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
1032
+ return t.prototype.next = function(r) {
1033
+ var n, i;
1034
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1035
+ }, t.prototype.error = function(r) {
1036
+ var n, i;
1037
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1022
1038
  }, t.prototype.complete = function() {
1023
- var n, r;
1024
- (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
1025
- }, t.prototype._subscribe = function(n) {
1026
- var r, i;
1027
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Qt;
1039
+ var r, n;
1040
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1041
+ }, t.prototype._subscribe = function(r) {
1042
+ var n, i;
1043
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
1028
1044
  }, t;
1029
- }(Kt), en = {
1045
+ }(rr), nr = {
1030
1046
  now: function() {
1031
- return (en.delegate || Date).now();
1047
+ return (nr.delegate || Date).now();
1032
1048
  },
1033
1049
  delegate: void 0
1034
- }, Hr = function(e) {
1050
+ }, Pn = function(e) {
1035
1051
  D(t, e);
1036
- function t(n, r, i) {
1037
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = en);
1052
+ function t(r, n, i) {
1053
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
1038
1054
  var o = e.call(this) || this;
1039
- return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
1055
+ return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1040
1056
  }
1041
- return t.prototype.next = function(n) {
1042
- var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, h = r._windowTime;
1043
- i || (o.push(n), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, n);
1044
- }, t.prototype._subscribe = function(n) {
1057
+ return t.prototype.next = function(r) {
1058
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
1059
+ i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
1060
+ }, t.prototype._subscribe = function(r) {
1045
1061
  this._throwIfClosed(), this._trimBuffer();
1046
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !n.closed; h += o ? 1 : 2)
1047
- n.next(s[h]);
1048
- return this._checkFinalizedStatuses(n), r;
1062
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
1063
+ r.next(s[h]);
1064
+ return this._checkFinalizedStatuses(r), n;
1049
1065
  }, t.prototype._trimBuffer = function() {
1050
- var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
1051
- if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1066
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1067
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1052
1068
  for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
1053
1069
  l = u;
1054
1070
  l && o.splice(0, l + 1);
1055
1071
  }
1056
1072
  }, t;
1057
- }(Kt);
1058
- const vt = [], Et = {}, Br = (e, t = 0) => {
1059
- if (vt.indexOf(e) == -1) {
1060
- const n = new Hr(t);
1061
- Et[e] = n, vt.push(e);
1073
+ }(rr);
1074
+ const wt = [], St = {}, Rn = (e, t = 0) => {
1075
+ if (wt.indexOf(e) == -1) {
1076
+ const r = new Pn(t);
1077
+ St[e] = r, wt.push(e);
1062
1078
  }
1063
- return Et[e];
1079
+ return St[e];
1064
1080
  }, Y = [];
1065
- function Ar(e, t) {
1081
+ function In(e, t) {
1066
1082
  return {
1067
1083
  subscribe: Re(e, t).subscribe
1068
1084
  };
1069
1085
  }
1070
- function Re(e, t = L) {
1071
- let n;
1072
- const r = /* @__PURE__ */ new Set();
1086
+ function Re(e, t = N) {
1087
+ let r;
1088
+ const n = /* @__PURE__ */ new Set();
1073
1089
  function i(s) {
1074
- if (kt(e, s) && (e = s, n)) {
1090
+ if (Wt(e, s) && (e = s, r)) {
1075
1091
  const h = !Y.length;
1076
- for (const l of r)
1092
+ for (const l of n)
1077
1093
  l[1](), Y.push(l, e);
1078
1094
  if (h) {
1079
1095
  for (let l = 0; l < Y.length; l += 2)
@@ -1085,32 +1101,32 @@ function Re(e, t = L) {
1085
1101
  function o(s) {
1086
1102
  i(s(e));
1087
1103
  }
1088
- function a(s, h = L) {
1104
+ function a(s, h = N) {
1089
1105
  const l = [s, h];
1090
- return r.add(l), r.size === 1 && (n = t(i, o) || L), s(e), () => {
1091
- r.delete(l), r.size === 0 && n && (n(), n = null);
1106
+ return n.add(l), n.size === 1 && (r = t(i, o) || N), s(e), () => {
1107
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1092
1108
  };
1093
1109
  }
1094
1110
  return { set: i, update: o, subscribe: a };
1095
1111
  }
1096
- function oe(e, t, n) {
1097
- const r = !Array.isArray(e), i = r ? [e] : e;
1112
+ function oe(e, t, r) {
1113
+ const n = !Array.isArray(e), i = n ? [e] : e;
1098
1114
  if (!i.every(Boolean))
1099
1115
  throw new Error("derived() expects stores as input, got a falsy value");
1100
1116
  const o = t.length < 2;
1101
- return Ar(n, (a, s) => {
1117
+ return In(r, (a, s) => {
1102
1118
  let h = !1;
1103
1119
  const l = [];
1104
- let u = 0, f = L;
1120
+ let u = 0, f = N;
1105
1121
  const c = () => {
1106
1122
  if (u)
1107
1123
  return;
1108
1124
  f();
1109
- const m = t(r ? l[0] : l, a, s);
1110
- o ? a(m) : f = it(m) ? m : L;
1111
- }, d = i.map(
1112
- (m, p) => Vt(
1113
- m,
1125
+ const d = t(n ? l[0] : l, a, s);
1126
+ o ? a(d) : f = ot(d) ? d : N;
1127
+ }, m = i.map(
1128
+ (d, p) => Xt(
1129
+ d,
1114
1130
  (A) => {
1115
1131
  l[p] = A, u &= ~(1 << p), h && c();
1116
1132
  },
@@ -1120,136 +1136,134 @@ function oe(e, t, n) {
1120
1136
  )
1121
1137
  );
1122
1138
  return h = !0, c(), function() {
1123
- z(d), f(), h = !1;
1139
+ z(m), f(), h = !1;
1124
1140
  };
1125
1141
  });
1126
1142
  }
1127
- function Pr(e) {
1128
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1143
+ function On(e) {
1144
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1129
1145
  }
1130
- var Rr = function(t) {
1131
- return Or(t) && !Ir(t);
1146
+ var Mn = function(t) {
1147
+ return Ln(t) && !Nn(t);
1132
1148
  };
1133
- function Or(e) {
1149
+ function Ln(e) {
1134
1150
  return !!e && typeof e == "object";
1135
1151
  }
1136
- function Ir(e) {
1152
+ function Nn(e) {
1137
1153
  var t = Object.prototype.toString.call(e);
1138
- return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
1154
+ return t === "[object RegExp]" || t === "[object Date]" || Un(e);
1139
1155
  }
1140
- var Nr = typeof Symbol == "function" && Symbol.for, Mr = Nr ? Symbol.for("react.element") : 60103;
1141
- function Lr(e) {
1142
- return e.$$typeof === Mr;
1156
+ var Cn = typeof Symbol == "function" && Symbol.for, Gn = Cn ? Symbol.for("react.element") : 60103;
1157
+ function Un(e) {
1158
+ return e.$$typeof === Gn;
1143
1159
  }
1144
- function Cr(e) {
1160
+ function Fn(e) {
1145
1161
  return Array.isArray(e) ? [] : {};
1146
1162
  }
1147
- function de(e, t) {
1148
- return t.clone !== !1 && t.isMergeableObject(e) ? te(Cr(e), e, t) : e;
1163
+ function me(e, t) {
1164
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(Fn(e), e, t) : e;
1149
1165
  }
1150
- function Gr(e, t, n) {
1151
- return e.concat(t).map(function(r) {
1152
- return de(r, n);
1166
+ function Dn(e, t, r) {
1167
+ return e.concat(t).map(function(n) {
1168
+ return me(n, r);
1153
1169
  });
1154
1170
  }
1155
- function Ur(e, t) {
1171
+ function $n(e, t) {
1156
1172
  if (!t.customMerge)
1157
1173
  return te;
1158
- var n = t.customMerge(e);
1159
- return typeof n == "function" ? n : te;
1174
+ var r = t.customMerge(e);
1175
+ return typeof r == "function" ? r : te;
1160
1176
  }
1161
- function Fr(e) {
1177
+ function jn(e) {
1162
1178
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1163
1179
  return Object.propertyIsEnumerable.call(e, t);
1164
1180
  }) : [];
1165
1181
  }
1166
- function wt(e) {
1167
- return Object.keys(e).concat(Fr(e));
1182
+ function Tt(e) {
1183
+ return Object.keys(e).concat(jn(e));
1168
1184
  }
1169
- function tn(e, t) {
1185
+ function ir(e, t) {
1170
1186
  try {
1171
1187
  return t in e;
1172
1188
  } catch {
1173
1189
  return !1;
1174
1190
  }
1175
1191
  }
1176
- function Dr(e, t) {
1177
- return tn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1192
+ function kn(e, t) {
1193
+ return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1178
1194
  }
1179
- function $r(e, t, n) {
1180
- var r = {};
1181
- return n.isMergeableObject(e) && wt(e).forEach(function(i) {
1182
- r[i] = de(e[i], n);
1183
- }), wt(t).forEach(function(i) {
1184
- Dr(e, i) || (tn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ur(i, n)(e[i], t[i], n) : r[i] = de(t[i], n));
1185
- }), r;
1186
- }
1187
- function te(e, t, n) {
1188
- n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Rr, n.cloneUnlessOtherwiseSpecified = de;
1189
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
1190
- return o ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : de(t, n);
1191
- }
1192
- te.all = function(t, n) {
1195
+ function Vn(e, t, r) {
1196
+ var n = {};
1197
+ return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
1198
+ n[i] = me(e[i], r);
1199
+ }), Tt(t).forEach(function(i) {
1200
+ kn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = $n(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
1201
+ }), n;
1202
+ }
1203
+ function te(e, t, r) {
1204
+ r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || Mn, r.cloneUnlessOtherwiseSpecified = me;
1205
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1206
+ return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : me(t, r);
1207
+ }
1208
+ te.all = function(t, r) {
1193
1209
  if (!Array.isArray(t))
1194
1210
  throw new Error("first argument should be an array");
1195
- return t.reduce(function(r, i) {
1196
- return te(r, i, n);
1211
+ return t.reduce(function(n, i) {
1212
+ return te(n, i, r);
1197
1213
  }, {});
1198
1214
  };
1199
- var jr = te, kr = jr;
1200
- const Vr = /* @__PURE__ */ Pr(kr);
1201
- function Ge(e, t) {
1202
- var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : Xr;
1215
+ var Wn = te, Xn = Wn;
1216
+ const zn = /* @__PURE__ */ On(Xn);
1217
+ function Ue(e, t) {
1218
+ var r = t && t.cache ? t.cache : Kn, n = t && t.serializer ? t.serializer : qn, i = t && t.strategy ? t.strategy : Zn;
1203
1219
  return i(e, {
1204
- cache: n,
1205
- serializer: r
1220
+ cache: r,
1221
+ serializer: n
1206
1222
  });
1207
1223
  }
1208
- function Wr(e) {
1224
+ function Jn(e) {
1209
1225
  return e == null || typeof e == "number" || typeof e == "boolean";
1210
1226
  }
1211
- function nn(e, t, n, r) {
1212
- var i = Wr(r) ? r : n(r), o = t.get(i);
1213
- return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
1227
+ function or(e, t, r, n) {
1228
+ var i = Jn(n) ? n : r(n), o = t.get(i);
1229
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1214
1230
  }
1215
- function rn(e, t, n) {
1216
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
1217
- return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
1231
+ function ar(e, t, r) {
1232
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1233
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1218
1234
  }
1219
- function ot(e, t, n, r, i) {
1220
- return n.bind(t, e, r, i);
1235
+ function at(e, t, r, n, i) {
1236
+ return r.bind(t, e, n, i);
1221
1237
  }
1222
- function Xr(e, t) {
1223
- var n = e.length === 1 ? nn : rn;
1224
- return ot(e, this, n, t.cache.create(), t.serializer);
1238
+ function Zn(e, t) {
1239
+ var r = e.length === 1 ? or : ar;
1240
+ return at(e, this, r, t.cache.create(), t.serializer);
1225
1241
  }
1226
- function zr(e, t) {
1227
- return ot(e, this, rn, t.cache.create(), t.serializer);
1242
+ function Qn(e, t) {
1243
+ return at(e, this, ar, t.cache.create(), t.serializer);
1228
1244
  }
1229
- function Jr(e, t) {
1230
- return ot(e, this, nn, t.cache.create(), t.serializer);
1245
+ function Yn(e, t) {
1246
+ return at(e, this, or, t.cache.create(), t.serializer);
1231
1247
  }
1232
- var Zr = function() {
1248
+ var qn = function() {
1233
1249
  return JSON.stringify(arguments);
1234
- }, Qr = (
1235
- /** @class */
1236
- function() {
1237
- function e() {
1238
- this.cache = /* @__PURE__ */ Object.create(null);
1239
- }
1240
- return e.prototype.get = function(t) {
1241
- return this.cache[t];
1242
- }, e.prototype.set = function(t, n) {
1243
- this.cache[t] = n;
1244
- }, e;
1245
- }()
1246
- ), Yr = {
1250
+ };
1251
+ function st() {
1252
+ this.cache = /* @__PURE__ */ Object.create(null);
1253
+ }
1254
+ st.prototype.get = function(e) {
1255
+ return this.cache[e];
1256
+ };
1257
+ st.prototype.set = function(e, t) {
1258
+ this.cache[e] = t;
1259
+ };
1260
+ var Kn = {
1247
1261
  create: function() {
1248
- return new Qr();
1262
+ return new st();
1249
1263
  }
1250
- }, Ue = {
1251
- variadic: zr,
1252
- monadic: Jr
1264
+ }, Fe = {
1265
+ variadic: Qn,
1266
+ monadic: Yn
1253
1267
  }, y;
1254
1268
  (function(e) {
1255
1269
  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";
@@ -1258,54 +1272,54 @@ var w;
1258
1272
  (function(e) {
1259
1273
  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";
1260
1274
  })(w || (w = {}));
1261
- var ne;
1275
+ var re;
1262
1276
  (function(e) {
1263
1277
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1264
- })(ne || (ne = {}));
1265
- function St(e) {
1278
+ })(re || (re = {}));
1279
+ function Ht(e) {
1266
1280
  return e.type === w.literal;
1267
1281
  }
1268
- function qr(e) {
1282
+ function ei(e) {
1269
1283
  return e.type === w.argument;
1270
1284
  }
1271
- function on(e) {
1285
+ function sr(e) {
1272
1286
  return e.type === w.number;
1273
1287
  }
1274
- function an(e) {
1288
+ function ur(e) {
1275
1289
  return e.type === w.date;
1276
1290
  }
1277
- function sn(e) {
1291
+ function lr(e) {
1278
1292
  return e.type === w.time;
1279
1293
  }
1280
- function un(e) {
1294
+ function hr(e) {
1281
1295
  return e.type === w.select;
1282
1296
  }
1283
- function ln(e) {
1297
+ function cr(e) {
1284
1298
  return e.type === w.plural;
1285
1299
  }
1286
- function Kr(e) {
1300
+ function ti(e) {
1287
1301
  return e.type === w.pound;
1288
1302
  }
1289
- function hn(e) {
1303
+ function fr(e) {
1290
1304
  return e.type === w.tag;
1291
1305
  }
1292
- function cn(e) {
1293
- return !!(e && typeof e == "object" && e.type === ne.number);
1306
+ function mr(e) {
1307
+ return !!(e && typeof e == "object" && e.type === re.number);
1294
1308
  }
1295
- function Qe(e) {
1296
- return !!(e && typeof e == "object" && e.type === ne.dateTime);
1309
+ function Ye(e) {
1310
+ return !!(e && typeof e == "object" && e.type === re.dateTime);
1297
1311
  }
1298
- var fn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ei = /(?:[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;
1299
- function ti(e) {
1312
+ var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ri = /(?:[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;
1313
+ function ni(e) {
1300
1314
  var t = {};
1301
- return e.replace(ei, function(n) {
1302
- var r = n.length;
1303
- switch (n[0]) {
1315
+ return e.replace(ri, function(r) {
1316
+ var n = r.length;
1317
+ switch (r[0]) {
1304
1318
  case "G":
1305
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1319
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1306
1320
  break;
1307
1321
  case "y":
1308
- t.year = r === 2 ? "2-digit" : "numeric";
1322
+ t.year = n === 2 ? "2-digit" : "numeric";
1309
1323
  break;
1310
1324
  case "Y":
1311
1325
  case "u":
@@ -1317,30 +1331,30 @@ function ti(e) {
1317
1331
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
1318
1332
  case "M":
1319
1333
  case "L":
1320
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1334
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1321
1335
  break;
1322
1336
  case "w":
1323
1337
  case "W":
1324
1338
  throw new RangeError("`w/W` (week) patterns are not supported");
1325
1339
  case "d":
1326
- t.day = ["numeric", "2-digit"][r - 1];
1340
+ t.day = ["numeric", "2-digit"][n - 1];
1327
1341
  break;
1328
1342
  case "D":
1329
1343
  case "F":
1330
1344
  case "g":
1331
1345
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1332
1346
  case "E":
1333
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1347
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1334
1348
  break;
1335
1349
  case "e":
1336
- if (r < 4)
1350
+ if (n < 4)
1337
1351
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
1338
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1352
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1339
1353
  break;
1340
1354
  case "c":
1341
- if (r < 4)
1355
+ if (n < 4)
1342
1356
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1343
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1357
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1344
1358
  break;
1345
1359
  case "a":
1346
1360
  t.hour12 = !0;
@@ -1349,32 +1363,32 @@ function ti(e) {
1349
1363
  case "B":
1350
1364
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1351
1365
  case "h":
1352
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1366
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1353
1367
  break;
1354
1368
  case "H":
1355
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1369
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1356
1370
  break;
1357
1371
  case "K":
1358
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1372
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1359
1373
  break;
1360
1374
  case "k":
1361
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1375
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1362
1376
  break;
1363
1377
  case "j":
1364
1378
  case "J":
1365
1379
  case "C":
1366
1380
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1367
1381
  case "m":
1368
- t.minute = ["numeric", "2-digit"][r - 1];
1382
+ t.minute = ["numeric", "2-digit"][n - 1];
1369
1383
  break;
1370
1384
  case "s":
1371
- t.second = ["numeric", "2-digit"][r - 1];
1385
+ t.second = ["numeric", "2-digit"][n - 1];
1372
1386
  break;
1373
1387
  case "S":
1374
1388
  case "A":
1375
1389
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1376
1390
  case "z":
1377
- t.timeZoneName = r < 4 ? "short" : "long";
1391
+ t.timeZoneName = n < 4 ? "short" : "long";
1378
1392
  break;
1379
1393
  case "Z":
1380
1394
  case "O":
@@ -1387,14 +1401,14 @@ function ti(e) {
1387
1401
  return "";
1388
1402
  }), t;
1389
1403
  }
1390
- var ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1391
- function ri(e) {
1404
+ var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1405
+ function oi(e) {
1392
1406
  if (e.length === 0)
1393
1407
  throw new Error("Number skeleton cannot be empty");
1394
- for (var t = e.split(ni).filter(function(c) {
1408
+ for (var t = e.split(ii).filter(function(c) {
1395
1409
  return c.length > 0;
1396
- }), n = [], r = 0, i = t; r < i.length; r++) {
1397
- var o = i[r], a = o.split("/");
1410
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1411
+ var o = i[n], a = o.split("/");
1398
1412
  if (a.length === 0)
1399
1413
  throw new Error("Invalid number skeleton");
1400
1414
  for (var s = a[0], h = a.slice(1), l = 0, u = h; l < u.length; l++) {
@@ -1402,21 +1416,21 @@ function ri(e) {
1402
1416
  if (f.length === 0)
1403
1417
  throw new Error("Invalid number skeleton");
1404
1418
  }
1405
- n.push({ stem: s, options: h });
1419
+ r.push({ stem: s, options: h });
1406
1420
  }
1407
- return n;
1421
+ return r;
1408
1422
  }
1409
- function ii(e) {
1423
+ function ai(e) {
1410
1424
  return e.replace(/^(.*?)-/, "");
1411
1425
  }
1412
- var Tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dn = /^(@+)?(\+|#+)?[rs]?$/g, oi = /(\*)(0+)|(#+)(0+)|(0+)/g, mn = /^(0+)$/;
1413
- function Ht(e) {
1426
+ var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, si = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
1427
+ function At(e) {
1414
1428
  var t = {};
1415
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dn, function(n, r, i) {
1416
- return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1429
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
1430
+ 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)), "";
1417
1431
  }), t;
1418
1432
  }
1419
- function pn(e) {
1433
+ function gr(e) {
1420
1434
  switch (e) {
1421
1435
  case "sign-auto":
1422
1436
  return {
@@ -1456,27 +1470,27 @@ function pn(e) {
1456
1470
  };
1457
1471
  }
1458
1472
  }
1459
- function ai(e) {
1473
+ function ui(e) {
1460
1474
  var t;
1461
1475
  if (e[0] === "E" && e[1] === "E" ? (t = {
1462
1476
  notation: "engineering"
1463
1477
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1464
1478
  notation: "scientific"
1465
1479
  }, e = e.slice(1)), t) {
1466
- var n = e.slice(0, 2);
1467
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mn.test(e))
1480
+ var r = e.slice(0, 2);
1481
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
1468
1482
  throw new Error("Malformed concise eng/scientific notation");
1469
1483
  t.minimumIntegerDigits = e.length;
1470
1484
  }
1471
1485
  return t;
1472
1486
  }
1473
- function Bt(e) {
1474
- var t = {}, n = pn(e);
1475
- return n || t;
1487
+ function Pt(e) {
1488
+ var t = {}, r = gr(e);
1489
+ return r || t;
1476
1490
  }
1477
- function si(e) {
1478
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
1479
- var i = r[n];
1491
+ function li(e) {
1492
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1493
+ var i = n[r];
1480
1494
  switch (i.stem) {
1481
1495
  case "percent":
1482
1496
  case "%":
@@ -1498,7 +1512,7 @@ function si(e) {
1498
1512
  continue;
1499
1513
  case "measure-unit":
1500
1514
  case "unit":
1501
- t.style = "unit", t.unit = ii(i.options[0]);
1515
+ t.style = "unit", t.unit = ai(i.options[0]);
1502
1516
  continue;
1503
1517
  case "compact-short":
1504
1518
  case "K":
@@ -1509,13 +1523,13 @@ function si(e) {
1509
1523
  t.notation = "compact", t.compactDisplay = "long";
1510
1524
  continue;
1511
1525
  case "scientific":
1512
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1513
- return x(x({}, h), Bt(l));
1526
+ t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1527
+ return _(_({}, h), Pt(l));
1514
1528
  }, {}));
1515
1529
  continue;
1516
1530
  case "engineering":
1517
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1518
- return x(x({}, h), Bt(l));
1531
+ t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1532
+ return _(_({}, h), Pt(l));
1519
1533
  }, {}));
1520
1534
  continue;
1521
1535
  case "notation-simple":
@@ -1560,45 +1574,45 @@ function si(e) {
1560
1574
  case "integer-width":
1561
1575
  if (i.options.length > 1)
1562
1576
  throw new RangeError("integer-width stems only accept a single optional option");
1563
- i.options[0].replace(oi, function(h, l, u, f, c, d) {
1577
+ i.options[0].replace(si, function(h, l, u, f, c, m) {
1564
1578
  if (l)
1565
1579
  t.minimumIntegerDigits = u.length;
1566
1580
  else {
1567
1581
  if (f && c)
1568
1582
  throw new Error("We currently do not support maximum integer digits");
1569
- if (d)
1583
+ if (m)
1570
1584
  throw new Error("We currently do not support exact integer digits");
1571
1585
  }
1572
1586
  return "";
1573
1587
  });
1574
1588
  continue;
1575
1589
  }
1576
- if (mn.test(i.stem)) {
1590
+ if (br.test(i.stem)) {
1577
1591
  t.minimumIntegerDigits = i.stem.length;
1578
1592
  continue;
1579
1593
  }
1580
- if (Tt.test(i.stem)) {
1594
+ if (Bt.test(i.stem)) {
1581
1595
  if (i.options.length > 1)
1582
1596
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1583
- i.stem.replace(Tt, function(h, l, u, f, c, d) {
1584
- return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1597
+ i.stem.replace(Bt, function(h, l, u, f, c, m) {
1598
+ return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1585
1599
  });
1586
1600
  var o = i.options[0];
1587
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ht(o)));
1601
+ o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), At(o)));
1588
1602
  continue;
1589
1603
  }
1590
- if (dn.test(i.stem)) {
1591
- t = x(x({}, t), Ht(i.stem));
1604
+ if (pr.test(i.stem)) {
1605
+ t = _(_({}, t), At(i.stem));
1592
1606
  continue;
1593
1607
  }
1594
- var a = pn(i.stem);
1595
- a && (t = x(x({}, t), a));
1596
- var s = ai(i.stem);
1597
- s && (t = x(x({}, t), s));
1608
+ var a = gr(i.stem);
1609
+ a && (t = _(_({}, t), a));
1610
+ var s = ui(i.stem);
1611
+ s && (t = _(_({}, t), s));
1598
1612
  }
1599
1613
  return t;
1600
1614
  }
1601
- var _e = {
1615
+ var ve = {
1602
1616
  "001": [
1603
1617
  "H",
1604
1618
  "h"
@@ -3013,23 +3027,23 @@ var _e = {
3013
3027
  "h"
3014
3028
  ]
3015
3029
  };
3016
- function ui(e, t) {
3017
- for (var n = "", r = 0; r < e.length; r++) {
3018
- var i = e.charAt(r);
3030
+ function hi(e, t) {
3031
+ for (var r = "", n = 0; n < e.length; n++) {
3032
+ var i = e.charAt(n);
3019
3033
  if (i === "j") {
3020
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
3021
- o++, r++;
3022
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = li(t);
3034
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3035
+ o++, n++;
3036
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = ci(t);
3023
3037
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
3024
- n += h;
3038
+ r += h;
3025
3039
  for (; a-- > 0; )
3026
- n = l + n;
3040
+ r = l + r;
3027
3041
  } else
3028
- i === "J" ? n += "H" : n += i;
3042
+ i === "J" ? r += "H" : r += i;
3029
3043
  }
3030
- return n;
3044
+ return r;
3031
3045
  }
3032
- function li(e) {
3046
+ function ci(e) {
3033
3047
  var t = e.hourCycle;
3034
3048
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3035
3049
  e.hourCycles && // @ts-ignore
@@ -3046,73 +3060,73 @@ function li(e) {
3046
3060
  default:
3047
3061
  throw new Error("Invalid hourCycle");
3048
3062
  }
3049
- var n = e.language, r;
3050
- n !== "root" && (r = e.maximize().region);
3051
- var i = _e[r || ""] || _e[n || ""] || _e["".concat(n, "-001")] || _e["001"];
3063
+ var r = e.language, n;
3064
+ r !== "root" && (n = e.maximize().region);
3065
+ var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
3052
3066
  return i[0];
3053
3067
  }
3054
- var Fe, hi = new RegExp("^".concat(fn.source, "*")), ci = new RegExp("".concat(fn.source, "*$"));
3055
- function _(e, t) {
3068
+ var De, fi = new RegExp("^".concat(dr.source, "*")), mi = new RegExp("".concat(dr.source, "*$"));
3069
+ function v(e, t) {
3056
3070
  return { start: e, end: t };
3057
3071
  }
3058
- var fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, mi = !!Object.fromEntries, pi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, gi = !!String.prototype.trimEnd, yi = !!Number.isSafeInteger, _i = yi ? Number.isSafeInteger : function(e) {
3072
+ var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, bi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, xi = _i ? Number.isSafeInteger : function(e) {
3059
3073
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3060
- }, Ye = !0;
3074
+ }, qe = !0;
3061
3075
  try {
3062
- var xi = gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3063
- Ye = ((Fe = xi.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
3076
+ var Ei = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3077
+ qe = ((De = Ei.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
3064
3078
  } catch {
3065
- Ye = !1;
3079
+ qe = !1;
3066
3080
  }
3067
- var At = fi ? (
3081
+ var Rt = di ? (
3068
3082
  // Native
3069
- function(t, n, r) {
3070
- return t.startsWith(n, r);
3083
+ function(t, r, n) {
3084
+ return t.startsWith(r, n);
3071
3085
  }
3072
3086
  ) : (
3073
3087
  // For IE11
3074
- function(t, n, r) {
3075
- return t.slice(r, r + n.length) === n;
3088
+ function(t, r, n) {
3089
+ return t.slice(n, n + r.length) === r;
3076
3090
  }
3077
- ), qe = di ? String.fromCodePoint : (
3091
+ ), Ke = pi ? String.fromCodePoint : (
3078
3092
  // IE11
3079
3093
  function() {
3080
- for (var t = [], n = 0; n < arguments.length; n++)
3081
- t[n] = arguments[n];
3082
- for (var r = "", i = t.length, o = 0, a; i > o; ) {
3094
+ for (var t = [], r = 0; r < arguments.length; r++)
3095
+ t[r] = arguments[r];
3096
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
3083
3097
  if (a = t[o++], a > 1114111)
3084
3098
  throw RangeError(a + " is not a valid code point");
3085
- r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3099
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3086
3100
  }
3087
- return r;
3101
+ return n;
3088
3102
  }
3089
- ), Pt = (
3103
+ ), It = (
3090
3104
  // native
3091
- mi ? Object.fromEntries : (
3105
+ bi ? Object.fromEntries : (
3092
3106
  // Ponyfill
3093
3107
  function(t) {
3094
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
3095
- var o = i[r], a = o[0], s = o[1];
3096
- n[a] = s;
3108
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
3109
+ var o = i[n], a = o[0], s = o[1];
3110
+ r[a] = s;
3097
3111
  }
3098
- return n;
3112
+ return r;
3099
3113
  }
3100
3114
  )
3101
- ), bn = pi ? (
3115
+ ), yr = gi ? (
3102
3116
  // Native
3103
- function(t, n) {
3104
- return t.codePointAt(n);
3117
+ function(t, r) {
3118
+ return t.codePointAt(r);
3105
3119
  }
3106
3120
  ) : (
3107
3121
  // IE 11
3108
- function(t, n) {
3109
- var r = t.length;
3110
- if (!(n < 0 || n >= r)) {
3111
- var i = t.charCodeAt(n), o;
3112
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3122
+ function(t, r) {
3123
+ var n = t.length;
3124
+ if (!(r < 0 || r >= n)) {
3125
+ var i = t.charCodeAt(r), o;
3126
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3113
3127
  }
3114
3128
  }
3115
- ), vi = bi ? (
3129
+ ), wi = yi ? (
3116
3130
  // Native
3117
3131
  function(t) {
3118
3132
  return t.trimStart();
@@ -3120,9 +3134,9 @@ var At = fi ? (
3120
3134
  ) : (
3121
3135
  // Ponyfill
3122
3136
  function(t) {
3123
- return t.replace(hi, "");
3137
+ return t.replace(fi, "");
3124
3138
  }
3125
- ), Ei = gi ? (
3139
+ ), Si = vi ? (
3126
3140
  // Native
3127
3141
  function(t) {
3128
3142
  return t.trimEnd();
@@ -3130,69 +3144,69 @@ var At = fi ? (
3130
3144
  ) : (
3131
3145
  // Ponyfill
3132
3146
  function(t) {
3133
- return t.replace(ci, "");
3147
+ return t.replace(mi, "");
3134
3148
  }
3135
3149
  );
3136
- function gn(e, t) {
3150
+ function vr(e, t) {
3137
3151
  return new RegExp(e, t);
3138
3152
  }
3139
- var Ke;
3140
- if (Ye) {
3141
- var Rt = gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3142
- Ke = function(t, n) {
3143
- var r;
3144
- Rt.lastIndex = n;
3145
- var i = Rt.exec(t);
3146
- return (r = i[1]) !== null && r !== void 0 ? r : "";
3153
+ var et;
3154
+ if (qe) {
3155
+ var Ot = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3156
+ et = function(t, r) {
3157
+ var n;
3158
+ Ot.lastIndex = r;
3159
+ var i = Ot.exec(t);
3160
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
3147
3161
  };
3148
3162
  } else
3149
- Ke = function(t, n) {
3150
- for (var r = []; ; ) {
3151
- var i = bn(t, n);
3152
- if (i === void 0 || yn(i) || Hi(i))
3163
+ et = function(t, r) {
3164
+ for (var n = []; ; ) {
3165
+ var i = yr(t, r);
3166
+ if (i === void 0 || _r(i) || Ai(i))
3153
3167
  break;
3154
- r.push(i), n += i >= 65536 ? 2 : 1;
3168
+ n.push(i), r += i >= 65536 ? 2 : 1;
3155
3169
  }
3156
- return qe.apply(void 0, r);
3170
+ return Ke.apply(void 0, n);
3157
3171
  };
3158
- var wi = (
3172
+ var Ti = (
3159
3173
  /** @class */
3160
3174
  function() {
3161
- function e(t, n) {
3162
- n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
3175
+ function e(t, r) {
3176
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3163
3177
  }
3164
3178
  return e.prototype.parse = function() {
3165
3179
  if (this.offset() !== 0)
3166
3180
  throw Error("parser can only be used once");
3167
3181
  return this.parseMessage(0, "", !1);
3168
- }, e.prototype.parseMessage = function(t, n, r) {
3182
+ }, e.prototype.parseMessage = function(t, r, n) {
3169
3183
  for (var i = []; !this.isEOF(); ) {
3170
3184
  var o = this.char();
3171
3185
  if (o === 123) {
3172
- var a = this.parseArgument(t, r);
3186
+ var a = this.parseArgument(t, n);
3173
3187
  if (a.err)
3174
3188
  return a;
3175
3189
  i.push(a.val);
3176
3190
  } else {
3177
3191
  if (o === 125 && t > 0)
3178
3192
  break;
3179
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
3193
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
3180
3194
  var s = this.clonePosition();
3181
3195
  this.bump(), i.push({
3182
3196
  type: w.pound,
3183
- location: _(s, this.clonePosition())
3197
+ location: v(s, this.clonePosition())
3184
3198
  });
3185
3199
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3186
- if (r)
3200
+ if (n)
3187
3201
  break;
3188
- return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3189
- } else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
3190
- var a = this.parseTag(t, n);
3202
+ return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3203
+ } else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
3204
+ var a = this.parseTag(t, r);
3191
3205
  if (a.err)
3192
3206
  return a;
3193
3207
  i.push(a.val);
3194
3208
  } else {
3195
- var a = this.parseLiteral(t, n);
3209
+ var a = this.parseLiteral(t, r);
3196
3210
  if (a.err)
3197
3211
  return a;
3198
3212
  i.push(a.val);
@@ -3200,8 +3214,8 @@ var wi = (
3200
3214
  }
3201
3215
  }
3202
3216
  return { val: i, err: null };
3203
- }, e.prototype.parseTag = function(t, n) {
3204
- var r = this.clonePosition();
3217
+ }, e.prototype.parseTag = function(t, r) {
3218
+ var n = this.clonePosition();
3205
3219
  this.bump();
3206
3220
  var i = this.parseTagName();
3207
3221
  if (this.bumpSpace(), this.bumpIf("/>"))
@@ -3209,45 +3223,45 @@ var wi = (
3209
3223
  val: {
3210
3224
  type: w.literal,
3211
3225
  value: "<".concat(i, "/>"),
3212
- location: _(r, this.clonePosition())
3226
+ location: v(n, this.clonePosition())
3213
3227
  },
3214
3228
  err: null
3215
3229
  };
3216
3230
  if (this.bumpIf(">")) {
3217
- var o = this.parseMessage(t + 1, n, !0);
3231
+ var o = this.parseMessage(t + 1, r, !0);
3218
3232
  if (o.err)
3219
3233
  return o;
3220
3234
  var a = o.val, s = this.clonePosition();
3221
3235
  if (this.bumpIf("</")) {
3222
- if (this.isEOF() || !et(this.char()))
3223
- return this.error(y.INVALID_TAG, _(s, this.clonePosition()));
3236
+ if (this.isEOF() || !tt(this.char()))
3237
+ return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
3224
3238
  var h = this.clonePosition(), l = this.parseTagName();
3225
- return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3239
+ return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3226
3240
  val: {
3227
3241
  type: w.tag,
3228
3242
  value: i,
3229
3243
  children: a,
3230
- location: _(r, this.clonePosition())
3244
+ location: v(n, this.clonePosition())
3231
3245
  },
3232
3246
  err: null
3233
- } : this.error(y.INVALID_TAG, _(s, this.clonePosition())));
3247
+ } : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
3234
3248
  } else
3235
- return this.error(y.UNCLOSED_TAG, _(r, this.clonePosition()));
3249
+ return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
3236
3250
  } else
3237
- return this.error(y.INVALID_TAG, _(r, this.clonePosition()));
3251
+ return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
3238
3252
  }, e.prototype.parseTagName = function() {
3239
3253
  var t = this.offset();
3240
- for (this.bump(); !this.isEOF() && Ti(this.char()); )
3254
+ for (this.bump(); !this.isEOF() && Bi(this.char()); )
3241
3255
  this.bump();
3242
3256
  return this.message.slice(t, this.offset());
3243
- }, e.prototype.parseLiteral = function(t, n) {
3244
- for (var r = this.clonePosition(), i = ""; ; ) {
3245
- var o = this.tryParseQuote(n);
3257
+ }, e.prototype.parseLiteral = function(t, r) {
3258
+ for (var n = this.clonePosition(), i = ""; ; ) {
3259
+ var o = this.tryParseQuote(r);
3246
3260
  if (o) {
3247
3261
  i += o;
3248
3262
  continue;
3249
3263
  }
3250
- var a = this.tryParseUnquoted(t, n);
3264
+ var a = this.tryParseUnquoted(t, r);
3251
3265
  if (a) {
3252
3266
  i += a;
3253
3267
  continue;
@@ -3259,14 +3273,14 @@ var wi = (
3259
3273
  }
3260
3274
  break;
3261
3275
  }
3262
- var h = _(r, this.clonePosition());
3276
+ var h = v(n, this.clonePosition());
3263
3277
  return {
3264
3278
  val: { type: w.literal, value: i, location: h },
3265
3279
  err: null
3266
3280
  };
3267
3281
  }, e.prototype.tryParseLeftAngleBracket = function() {
3268
3282
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3269
- !Si(this.peek() || 0)) ? (this.bump(), "<") : null;
3283
+ !Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
3270
3284
  }, e.prototype.tryParseQuote = function(t) {
3271
3285
  if (this.isEOF() || this.char() !== 39)
3272
3286
  return null;
@@ -3286,37 +3300,37 @@ var wi = (
3286
3300
  return null;
3287
3301
  }
3288
3302
  this.bump();
3289
- var n = [this.char()];
3303
+ var r = [this.char()];
3290
3304
  for (this.bump(); !this.isEOF(); ) {
3291
- var r = this.char();
3292
- if (r === 39)
3305
+ var n = this.char();
3306
+ if (n === 39)
3293
3307
  if (this.peek() === 39)
3294
- n.push(39), this.bump();
3308
+ r.push(39), this.bump();
3295
3309
  else {
3296
3310
  this.bump();
3297
3311
  break;
3298
3312
  }
3299
3313
  else
3300
- n.push(r);
3314
+ r.push(n);
3301
3315
  this.bump();
3302
3316
  }
3303
- return qe.apply(void 0, n);
3304
- }, e.prototype.tryParseUnquoted = function(t, n) {
3317
+ return Ke.apply(void 0, r);
3318
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3305
3319
  if (this.isEOF())
3306
3320
  return null;
3307
- var r = this.char();
3308
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qe(r));
3309
- }, e.prototype.parseArgument = function(t, n) {
3310
- var r = this.clonePosition();
3321
+ var n = this.char();
3322
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
3323
+ }, e.prototype.parseArgument = function(t, r) {
3324
+ var n = this.clonePosition();
3311
3325
  if (this.bump(), this.bumpSpace(), this.isEOF())
3312
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
3326
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3313
3327
  if (this.char() === 125)
3314
- return this.bump(), this.error(y.EMPTY_ARGUMENT, _(r, this.clonePosition()));
3328
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3315
3329
  var i = this.parseIdentifierIfPossible().value;
3316
3330
  if (!i)
3317
- return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
3331
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3318
3332
  if (this.bumpSpace(), this.isEOF())
3319
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
3333
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3320
3334
  switch (this.char()) {
3321
3335
  case 125:
3322
3336
  return this.bump(), {
@@ -3324,25 +3338,25 @@ var wi = (
3324
3338
  type: w.argument,
3325
3339
  // value does not include the opening and closing braces.
3326
3340
  value: i,
3327
- location: _(r, this.clonePosition())
3341
+ location: v(n, this.clonePosition())
3328
3342
  },
3329
3343
  err: null
3330
3344
  };
3331
3345
  case 44:
3332
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3346
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3333
3347
  default:
3334
- return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
3348
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3335
3349
  }
3336
3350
  }, e.prototype.parseIdentifierIfPossible = function() {
3337
- var t = this.clonePosition(), n = this.offset(), r = Ke(this.message, n), i = n + r.length;
3351
+ var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
3338
3352
  this.bumpTo(i);
3339
- var o = this.clonePosition(), a = _(t, o);
3340
- return { value: r, location: a };
3341
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3353
+ var o = this.clonePosition(), a = v(t, o);
3354
+ return { value: n, location: a };
3355
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3342
3356
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3343
3357
  switch (s) {
3344
3358
  case "":
3345
- return this.error(y.EXPECT_ARGUMENT_TYPE, _(a, h));
3359
+ return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, h));
3346
3360
  case "number":
3347
3361
  case "date":
3348
3362
  case "time": {
@@ -3353,37 +3367,37 @@ var wi = (
3353
3367
  var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3354
3368
  if (f.err)
3355
3369
  return f;
3356
- var c = Ei(f.val);
3370
+ var c = Si(f.val);
3357
3371
  if (c.length === 0)
3358
- return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3359
- var d = _(u, this.clonePosition());
3360
- l = { style: c, styleLocation: d };
3372
+ return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3373
+ var m = v(u, this.clonePosition());
3374
+ l = { style: c, styleLocation: m };
3361
3375
  }
3362
- var m = this.tryParseArgumentClose(i);
3363
- if (m.err)
3364
- return m;
3365
- var p = _(i, this.clonePosition());
3366
- if (l && At(l?.style, "::", 0)) {
3367
- var A = vi(l.style.slice(2));
3376
+ var d = this.tryParseArgumentClose(i);
3377
+ if (d.err)
3378
+ return d;
3379
+ var p = v(i, this.clonePosition());
3380
+ if (l && Rt(l?.style, "::", 0)) {
3381
+ var A = wi(l.style.slice(2));
3368
3382
  if (s === "number") {
3369
3383
  var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
3370
3384
  return f.err ? f : {
3371
- val: { type: w.number, value: r, location: p, style: f.val },
3385
+ val: { type: w.number, value: n, location: p, style: f.val },
3372
3386
  err: null
3373
3387
  };
3374
3388
  } else {
3375
3389
  if (A.length === 0)
3376
3390
  return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
3377
3391
  var H = A;
3378
- this.locale && (H = ui(A, this.locale));
3392
+ this.locale && (H = hi(A, this.locale));
3379
3393
  var c = {
3380
- type: ne.dateTime,
3394
+ type: re.dateTime,
3381
3395
  pattern: H,
3382
3396
  location: l.styleLocation,
3383
- parsedOptions: this.shouldParseSkeletons ? ti(H) : {}
3397
+ parsedOptions: this.shouldParseSkeletons ? ni(H) : {}
3384
3398
  }, T = s === "date" ? w.date : w.time;
3385
3399
  return {
3386
- val: { type: T, value: r, location: p, style: c },
3400
+ val: { type: T, value: n, location: p, style: c },
3387
3401
  err: null
3388
3402
  };
3389
3403
  }
@@ -3391,7 +3405,7 @@ var wi = (
3391
3405
  return {
3392
3406
  val: {
3393
3407
  type: s === "number" ? w.number : s === "date" ? w.date : w.time,
3394
- value: r,
3408
+ value: n,
3395
3409
  location: p,
3396
3410
  style: (o = l?.style) !== null && o !== void 0 ? o : null
3397
3411
  },
@@ -3403,39 +3417,39 @@ var wi = (
3403
3417
  case "select": {
3404
3418
  var B = this.clonePosition();
3405
3419
  if (this.bumpSpace(), !this.bumpIf(","))
3406
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
3420
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, _({}, B)));
3407
3421
  this.bumpSpace();
3408
- var N = this.parseIdentifierIfPossible(), M = 0;
3409
- if (s !== "select" && N.value === "offset") {
3422
+ var M = this.parseIdentifierIfPossible(), L = 0;
3423
+ if (s !== "select" && M.value === "offset") {
3410
3424
  if (!this.bumpIf(":"))
3411
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3425
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3412
3426
  this.bumpSpace();
3413
3427
  var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3414
3428
  if (f.err)
3415
3429
  return f;
3416
- this.bumpSpace(), N = this.parseIdentifierIfPossible(), M = f.val;
3430
+ this.bumpSpace(), M = this.parseIdentifierIfPossible(), L = f.val;
3417
3431
  }
3418
- var C = this.tryParsePluralOrSelectOptions(t, s, n, N);
3432
+ var C = this.tryParsePluralOrSelectOptions(t, s, r, M);
3419
3433
  if (C.err)
3420
3434
  return C;
3421
- var m = this.tryParseArgumentClose(i);
3422
- if (m.err)
3423
- return m;
3424
- var pe = _(i, this.clonePosition());
3435
+ var d = this.tryParseArgumentClose(i);
3436
+ if (d.err)
3437
+ return d;
3438
+ var pe = v(i, this.clonePosition());
3425
3439
  return s === "select" ? {
3426
3440
  val: {
3427
3441
  type: w.select,
3428
- value: r,
3429
- options: Pt(C.val),
3442
+ value: n,
3443
+ options: It(C.val),
3430
3444
  location: pe
3431
3445
  },
3432
3446
  err: null
3433
3447
  } : {
3434
3448
  val: {
3435
3449
  type: w.plural,
3436
- value: r,
3437
- options: Pt(C.val),
3438
- offset: M,
3450
+ value: n,
3451
+ options: It(C.val),
3452
+ offset: L,
3439
3453
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3440
3454
  location: pe
3441
3455
  },
@@ -3443,19 +3457,19 @@ var wi = (
3443
3457
  };
3444
3458
  }
3445
3459
  default:
3446
- return this.error(y.INVALID_ARGUMENT_TYPE, _(a, h));
3460
+ return this.error(y.INVALID_ARGUMENT_TYPE, v(a, h));
3447
3461
  }
3448
3462
  }, e.prototype.tryParseArgumentClose = function(t) {
3449
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3463
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3450
3464
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3451
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3452
- var r = this.char();
3453
- switch (r) {
3465
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3466
+ var n = this.char();
3467
+ switch (n) {
3454
3468
  case 39: {
3455
3469
  this.bump();
3456
3470
  var i = this.clonePosition();
3457
3471
  if (!this.bumpUntil("'"))
3458
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3472
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3459
3473
  this.bump();
3460
3474
  break;
3461
3475
  }
@@ -3468,7 +3482,7 @@ var wi = (
3468
3482
  t -= 1;
3469
3483
  else
3470
3484
  return {
3471
- val: this.message.slice(n.offset, this.offset()),
3485
+ val: this.message.slice(r.offset, this.offset()),
3472
3486
  err: null
3473
3487
  };
3474
3488
  break;
@@ -3479,61 +3493,61 @@ var wi = (
3479
3493
  }
3480
3494
  }
3481
3495
  return {
3482
- val: this.message.slice(n.offset, this.offset()),
3496
+ val: this.message.slice(r.offset, this.offset()),
3483
3497
  err: null
3484
3498
  };
3485
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3486
- var r = [];
3499
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3500
+ var n = [];
3487
3501
  try {
3488
- r = ri(t);
3502
+ n = oi(t);
3489
3503
  } catch {
3490
- return this.error(y.INVALID_NUMBER_SKELETON, n);
3504
+ return this.error(y.INVALID_NUMBER_SKELETON, r);
3491
3505
  }
3492
3506
  return {
3493
3507
  val: {
3494
- type: ne.number,
3495
- tokens: r,
3496
- location: n,
3497
- parsedOptions: this.shouldParseSkeletons ? si(r) : {}
3508
+ type: re.number,
3509
+ tokens: n,
3510
+ location: r,
3511
+ parsedOptions: this.shouldParseSkeletons ? li(n) : {}
3498
3512
  },
3499
3513
  err: null
3500
3514
  };
3501
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3515
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3502
3516
  for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
3503
3517
  if (l.length === 0) {
3504
3518
  var f = this.clonePosition();
3505
- if (n !== "select" && this.bumpIf("=")) {
3519
+ if (r !== "select" && this.bumpIf("=")) {
3506
3520
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3507
3521
  if (c.err)
3508
3522
  return c;
3509
- u = _(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3523
+ u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3510
3524
  } else
3511
3525
  break;
3512
3526
  }
3513
3527
  if (h.has(l))
3514
- return this.error(n === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3528
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3515
3529
  l === "other" && (a = !0), this.bumpSpace();
3516
- var d = this.clonePosition();
3530
+ var m = this.clonePosition();
3517
3531
  if (!this.bumpIf("{"))
3518
- return this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3519
- var m = this.parseMessage(t + 1, n, r);
3520
- if (m.err)
3521
- return m;
3522
- var p = this.tryParseArgumentClose(d);
3532
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3533
+ var d = this.parseMessage(t + 1, r, n);
3534
+ if (d.err)
3535
+ return d;
3536
+ var p = this.tryParseArgumentClose(m);
3523
3537
  if (p.err)
3524
3538
  return p;
3525
3539
  s.push([
3526
3540
  l,
3527
3541
  {
3528
- value: m.val,
3529
- location: _(d, this.clonePosition())
3542
+ value: d.val,
3543
+ location: v(m, this.clonePosition())
3530
3544
  }
3531
3545
  ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
3532
3546
  }
3533
- return s.length === 0 ? this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3534
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3535
- var r = 1, i = this.clonePosition();
3536
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3547
+ return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3548
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3549
+ var n = 1, i = this.clonePosition();
3550
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3537
3551
  for (var o = !1, a = 0; !this.isEOF(); ) {
3538
3552
  var s = this.char();
3539
3553
  if (s >= 48 && s <= 57)
@@ -3541,8 +3555,8 @@ var wi = (
3541
3555
  else
3542
3556
  break;
3543
3557
  }
3544
- var h = _(i, this.clonePosition());
3545
- return o ? (a *= r, _i(a) ? { val: a, err: null } : this.error(n, h)) : this.error(t, h);
3558
+ var h = v(i, this.clonePosition());
3559
+ return o ? (a *= n, xi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3546
3560
  }, e.prototype.offset = function() {
3547
3561
  return this.position.offset;
3548
3562
  }, e.prototype.isEOF = function() {
@@ -3557,17 +3571,17 @@ var wi = (
3557
3571
  var t = this.position.offset;
3558
3572
  if (t >= this.message.length)
3559
3573
  throw Error("out of bound");
3560
- var n = bn(this.message, t);
3561
- if (n === void 0)
3574
+ var r = yr(this.message, t);
3575
+ if (r === void 0)
3562
3576
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3563
- return n;
3564
- }, e.prototype.error = function(t, n) {
3577
+ return r;
3578
+ }, e.prototype.error = function(t, r) {
3565
3579
  return {
3566
3580
  val: null,
3567
3581
  err: {
3568
3582
  kind: t,
3569
3583
  message: this.message,
3570
- location: n
3584
+ location: r
3571
3585
  }
3572
3586
  };
3573
3587
  }, e.prototype.bump = function() {
@@ -3576,129 +3590,129 @@ var wi = (
3576
3590
  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);
3577
3591
  }
3578
3592
  }, e.prototype.bumpIf = function(t) {
3579
- if (At(this.message, t, this.offset())) {
3580
- for (var n = 0; n < t.length; n++)
3593
+ if (Rt(this.message, t, this.offset())) {
3594
+ for (var r = 0; r < t.length; r++)
3581
3595
  this.bump();
3582
3596
  return !0;
3583
3597
  }
3584
3598
  return !1;
3585
3599
  }, e.prototype.bumpUntil = function(t) {
3586
- var n = this.offset(), r = this.message.indexOf(t, n);
3587
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3600
+ var r = this.offset(), n = this.message.indexOf(t, r);
3601
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3588
3602
  }, e.prototype.bumpTo = function(t) {
3589
3603
  if (this.offset() > t)
3590
3604
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3591
3605
  for (t = Math.min(t, this.message.length); ; ) {
3592
- var n = this.offset();
3593
- if (n === t)
3606
+ var r = this.offset();
3607
+ if (r === t)
3594
3608
  break;
3595
- if (n > t)
3609
+ if (r > t)
3596
3610
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3597
3611
  if (this.bump(), this.isEOF())
3598
3612
  break;
3599
3613
  }
3600
3614
  }, e.prototype.bumpSpace = function() {
3601
- for (; !this.isEOF() && yn(this.char()); )
3615
+ for (; !this.isEOF() && _r(this.char()); )
3602
3616
  this.bump();
3603
3617
  }, e.prototype.peek = function() {
3604
3618
  if (this.isEOF())
3605
3619
  return null;
3606
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3607
- return r ?? null;
3620
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3621
+ return n ?? null;
3608
3622
  }, e;
3609
3623
  }()
3610
3624
  );
3611
- function et(e) {
3625
+ function tt(e) {
3612
3626
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3613
3627
  }
3614
- function Si(e) {
3615
- return et(e) || e === 47;
3628
+ function Hi(e) {
3629
+ return tt(e) || e === 47;
3616
3630
  }
3617
- function Ti(e) {
3631
+ function Bi(e) {
3618
3632
  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;
3619
3633
  }
3620
- function yn(e) {
3634
+ function _r(e) {
3621
3635
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3622
3636
  }
3623
- function Hi(e) {
3637
+ function Ai(e) {
3624
3638
  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;
3625
3639
  }
3626
- function tt(e) {
3640
+ function rt(e) {
3627
3641
  e.forEach(function(t) {
3628
- if (delete t.location, un(t) || ln(t))
3629
- for (var n in t.options)
3630
- delete t.options[n].location, tt(t.options[n].value);
3642
+ if (delete t.location, hr(t) || cr(t))
3643
+ for (var r in t.options)
3644
+ delete t.options[r].location, rt(t.options[r].value);
3631
3645
  else
3632
- on(t) && cn(t.style) || (an(t) || sn(t)) && Qe(t.style) ? delete t.style.location : hn(t) && tt(t.children);
3646
+ sr(t) && mr(t.style) || (ur(t) || lr(t)) && Ye(t.style) ? delete t.style.location : fr(t) && rt(t.children);
3633
3647
  });
3634
3648
  }
3635
- function Bi(e, t) {
3636
- t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3637
- var n = new wi(e, t).parse();
3638
- if (n.err) {
3639
- var r = SyntaxError(y[n.err.kind]);
3640
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3649
+ function Pi(e, t) {
3650
+ t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3651
+ var r = new Ti(e, t).parse();
3652
+ if (r.err) {
3653
+ var n = SyntaxError(y[r.err.kind]);
3654
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3641
3655
  }
3642
- return t?.captureLocation || tt(n.val), n.val;
3656
+ return t?.captureLocation || rt(r.val), r.val;
3643
3657
  }
3644
- var re;
3658
+ var ne;
3645
3659
  (function(e) {
3646
3660
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3647
- })(re || (re = {}));
3648
- var Oe = (
3661
+ })(ne || (ne = {}));
3662
+ var Ie = (
3649
3663
  /** @class */
3650
3664
  function(e) {
3651
3665
  D(t, e);
3652
- function t(n, r, i) {
3653
- var o = e.call(this, n) || this;
3654
- return o.code = r, o.originalMessage = i, o;
3666
+ function t(r, n, i) {
3667
+ var o = e.call(this, r) || this;
3668
+ return o.code = n, o.originalMessage = i, o;
3655
3669
  }
3656
3670
  return t.prototype.toString = function() {
3657
3671
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3658
3672
  }, t;
3659
3673
  }(Error)
3660
- ), Ot = (
3674
+ ), Mt = (
3661
3675
  /** @class */
3662
3676
  function(e) {
3663
3677
  D(t, e);
3664
- function t(n, r, i, o) {
3665
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
3678
+ function t(r, n, i, o) {
3679
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3666
3680
  }
3667
3681
  return t;
3668
- }(Oe)
3669
- ), Ai = (
3682
+ }(Ie)
3683
+ ), Ri = (
3670
3684
  /** @class */
3671
3685
  function(e) {
3672
3686
  D(t, e);
3673
- function t(n, r, i) {
3674
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), re.INVALID_VALUE, i) || this;
3687
+ function t(r, n, i) {
3688
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3675
3689
  }
3676
3690
  return t;
3677
- }(Oe)
3678
- ), Pi = (
3691
+ }(Ie)
3692
+ ), Ii = (
3679
3693
  /** @class */
3680
3694
  function(e) {
3681
3695
  D(t, e);
3682
- function t(n, r) {
3683
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), re.MISSING_VALUE, r) || this;
3696
+ function t(r, n) {
3697
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3684
3698
  }
3685
3699
  return t;
3686
- }(Oe)
3700
+ }(Ie)
3687
3701
  ), P;
3688
3702
  (function(e) {
3689
3703
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3690
3704
  })(P || (P = {}));
3691
- function Ri(e) {
3692
- return e.length < 2 ? e : e.reduce(function(t, n) {
3693
- var r = t[t.length - 1];
3694
- return !r || r.type !== P.literal || n.type !== P.literal ? t.push(n) : r.value += n.value, t;
3705
+ function Oi(e) {
3706
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3707
+ var n = t[t.length - 1];
3708
+ return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3695
3709
  }, []);
3696
3710
  }
3697
- function Oi(e) {
3711
+ function Mi(e) {
3698
3712
  return typeof e == "function";
3699
3713
  }
3700
- function we(e, t, n, r, i, o, a) {
3701
- if (e.length === 1 && St(e[0]))
3714
+ function we(e, t, r, n, i, o, a) {
3715
+ if (e.length === 1 && Ht(e[0]))
3702
3716
  return [
3703
3717
  {
3704
3718
  type: P.literal,
@@ -3707,155 +3721,155 @@ function we(e, t, n, r, i, o, a) {
3707
3721
  ];
3708
3722
  for (var s = [], h = 0, l = e; h < l.length; h++) {
3709
3723
  var u = l[h];
3710
- if (St(u)) {
3724
+ if (Ht(u)) {
3711
3725
  s.push({
3712
3726
  type: P.literal,
3713
3727
  value: u.value
3714
3728
  });
3715
3729
  continue;
3716
3730
  }
3717
- if (Kr(u)) {
3731
+ if (ti(u)) {
3718
3732
  typeof o == "number" && s.push({
3719
3733
  type: P.literal,
3720
- value: n.getNumberFormat(t).format(o)
3734
+ value: r.getNumberFormat(t).format(o)
3721
3735
  });
3722
3736
  continue;
3723
3737
  }
3724
3738
  var f = u.value;
3725
3739
  if (!(i && f in i))
3726
- throw new Pi(f, a);
3740
+ throw new Ii(f, a);
3727
3741
  var c = i[f];
3728
- if (qr(u)) {
3742
+ if (ei(u)) {
3729
3743
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3730
3744
  type: typeof c == "string" ? P.literal : P.object,
3731
3745
  value: c
3732
3746
  });
3733
3747
  continue;
3734
3748
  }
3735
- if (an(u)) {
3736
- var d = typeof u.style == "string" ? r.date[u.style] : Qe(u.style) ? u.style.parsedOptions : void 0;
3749
+ if (ur(u)) {
3750
+ var m = typeof u.style == "string" ? n.date[u.style] : Ye(u.style) ? u.style.parsedOptions : void 0;
3737
3751
  s.push({
3738
3752
  type: P.literal,
3739
- value: n.getDateTimeFormat(t, d).format(c)
3753
+ value: r.getDateTimeFormat(t, m).format(c)
3740
3754
  });
3741
3755
  continue;
3742
3756
  }
3743
- if (sn(u)) {
3744
- var d = typeof u.style == "string" ? r.time[u.style] : Qe(u.style) ? u.style.parsedOptions : r.time.medium;
3757
+ if (lr(u)) {
3758
+ var m = typeof u.style == "string" ? n.time[u.style] : Ye(u.style) ? u.style.parsedOptions : n.time.medium;
3745
3759
  s.push({
3746
3760
  type: P.literal,
3747
- value: n.getDateTimeFormat(t, d).format(c)
3761
+ value: r.getDateTimeFormat(t, m).format(c)
3748
3762
  });
3749
3763
  continue;
3750
3764
  }
3751
- if (on(u)) {
3752
- var d = typeof u.style == "string" ? r.number[u.style] : cn(u.style) ? u.style.parsedOptions : void 0;
3753
- d && d.scale && (c = c * (d.scale || 1)), s.push({
3765
+ if (sr(u)) {
3766
+ var m = typeof u.style == "string" ? n.number[u.style] : mr(u.style) ? u.style.parsedOptions : void 0;
3767
+ m && m.scale && (c = c * (m.scale || 1)), s.push({
3754
3768
  type: P.literal,
3755
- value: n.getNumberFormat(t, d).format(c)
3769
+ value: r.getNumberFormat(t, m).format(c)
3756
3770
  });
3757
3771
  continue;
3758
3772
  }
3759
- if (hn(u)) {
3760
- var m = u.children, p = u.value, A = i[p];
3761
- if (!Oi(A))
3762
- throw new Ai(p, "function", a);
3763
- var H = we(m, t, n, r, i, o), T = A(H.map(function(M) {
3764
- return M.value;
3773
+ if (fr(u)) {
3774
+ var d = u.children, p = u.value, A = i[p];
3775
+ if (!Mi(A))
3776
+ throw new Ri(p, "function", a);
3777
+ var H = we(d, t, r, n, i, o), T = A(H.map(function(L) {
3778
+ return L.value;
3765
3779
  }));
3766
- Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(M) {
3780
+ Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(L) {
3767
3781
  return {
3768
- type: typeof M == "string" ? P.literal : P.object,
3769
- value: M
3782
+ type: typeof L == "string" ? P.literal : P.object,
3783
+ value: L
3770
3784
  };
3771
3785
  }));
3772
3786
  }
3773
- if (un(u)) {
3787
+ if (hr(u)) {
3774
3788
  var B = u.options[c] || u.options.other;
3775
3789
  if (!B)
3776
- throw new Ot(u.value, c, Object.keys(u.options), a);
3777
- s.push.apply(s, we(B.value, t, n, r, i));
3790
+ throw new Mt(u.value, c, Object.keys(u.options), a);
3791
+ s.push.apply(s, we(B.value, t, r, n, i));
3778
3792
  continue;
3779
3793
  }
3780
- if (ln(u)) {
3794
+ if (cr(u)) {
3781
3795
  var B = u.options["=".concat(c)];
3782
3796
  if (!B) {
3783
3797
  if (!Intl.PluralRules)
3784
- throw new Oe(`Intl.PluralRules is not available in this environment.
3798
+ throw new Ie(`Intl.PluralRules is not available in this environment.
3785
3799
  Try polyfilling it using "@formatjs/intl-pluralrules"
3786
- `, re.MISSING_INTL_API, a);
3787
- var N = n.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3788
- B = u.options[N] || u.options.other;
3800
+ `, ne.MISSING_INTL_API, a);
3801
+ var M = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3802
+ B = u.options[M] || u.options.other;
3789
3803
  }
3790
3804
  if (!B)
3791
- throw new Ot(u.value, c, Object.keys(u.options), a);
3792
- s.push.apply(s, we(B.value, t, n, r, i, c - (u.offset || 0)));
3805
+ throw new Mt(u.value, c, Object.keys(u.options), a);
3806
+ s.push.apply(s, we(B.value, t, r, n, i, c - (u.offset || 0)));
3793
3807
  continue;
3794
3808
  }
3795
3809
  }
3796
- return Ri(s);
3810
+ return Oi(s);
3797
3811
  }
3798
- function Ii(e, t) {
3799
- return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3800
- return n[r] = x(x({}, e[r]), t[r] || {}), n;
3812
+ function Li(e, t) {
3813
+ return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3814
+ return r[n] = _(_({}, e[n]), t[n] || {}), r;
3801
3815
  }, {})) : e;
3802
3816
  }
3803
3817
  function Ni(e, t) {
3804
- return t ? Object.keys(e).reduce(function(n, r) {
3805
- return n[r] = Ii(e[r], t[r]), n;
3806
- }, x({}, e)) : e;
3818
+ return t ? Object.keys(e).reduce(function(r, n) {
3819
+ return r[n] = Li(e[n], t[n]), r;
3820
+ }, _({}, e)) : e;
3807
3821
  }
3808
- function De(e) {
3822
+ function $e(e) {
3809
3823
  return {
3810
3824
  create: function() {
3811
3825
  return {
3812
3826
  get: function(t) {
3813
3827
  return e[t];
3814
3828
  },
3815
- set: function(t, n) {
3816
- e[t] = n;
3829
+ set: function(t, r) {
3830
+ e[t] = r;
3817
3831
  }
3818
3832
  };
3819
3833
  }
3820
3834
  };
3821
3835
  }
3822
- function Mi(e) {
3836
+ function Ci(e) {
3823
3837
  return e === void 0 && (e = {
3824
3838
  number: {},
3825
3839
  dateTime: {},
3826
3840
  pluralRules: {}
3827
3841
  }), {
3828
- getNumberFormat: Ge(function() {
3829
- for (var t, n = [], r = 0; r < arguments.length; r++)
3830
- n[r] = arguments[r];
3831
- return new ((t = Intl.NumberFormat).bind.apply(t, ee([void 0], n, !1)))();
3842
+ getNumberFormat: Ue(function() {
3843
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3844
+ r[n] = arguments[n];
3845
+ return new ((t = Intl.NumberFormat).bind.apply(t, ee([void 0], r, !1)))();
3832
3846
  }, {
3833
- cache: De(e.number),
3834
- strategy: Ue.variadic
3847
+ cache: $e(e.number),
3848
+ strategy: Fe.variadic
3835
3849
  }),
3836
- getDateTimeFormat: Ge(function() {
3837
- for (var t, n = [], r = 0; r < arguments.length; r++)
3838
- n[r] = arguments[r];
3839
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ee([void 0], n, !1)))();
3850
+ getDateTimeFormat: Ue(function() {
3851
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3852
+ r[n] = arguments[n];
3853
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ee([void 0], r, !1)))();
3840
3854
  }, {
3841
- cache: De(e.dateTime),
3842
- strategy: Ue.variadic
3855
+ cache: $e(e.dateTime),
3856
+ strategy: Fe.variadic
3843
3857
  }),
3844
- getPluralRules: Ge(function() {
3845
- for (var t, n = [], r = 0; r < arguments.length; r++)
3846
- n[r] = arguments[r];
3847
- return new ((t = Intl.PluralRules).bind.apply(t, ee([void 0], n, !1)))();
3858
+ getPluralRules: Ue(function() {
3859
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3860
+ r[n] = arguments[n];
3861
+ return new ((t = Intl.PluralRules).bind.apply(t, ee([void 0], r, !1)))();
3848
3862
  }, {
3849
- cache: De(e.pluralRules),
3850
- strategy: Ue.variadic
3863
+ cache: $e(e.pluralRules),
3864
+ strategy: Fe.variadic
3851
3865
  })
3852
3866
  };
3853
3867
  }
3854
- var Li = (
3868
+ var Gi = (
3855
3869
  /** @class */
3856
3870
  function() {
3857
- function e(t, n, r, i) {
3858
- n === void 0 && (n = e.defaultLocale);
3871
+ function e(t, r, n, i) {
3872
+ r === void 0 && (r = e.defaultLocale);
3859
3873
  var o = this;
3860
3874
  if (this.formatterCache = {
3861
3875
  number: {},
@@ -3878,18 +3892,18 @@ var Li = (
3878
3892
  };
3879
3893
  }, this.getAst = function() {
3880
3894
  return o.ast;
3881
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3895
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3882
3896
  if (this.message = t, !e.__parse)
3883
3897
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3884
3898
  var a = i || {};
3885
3899
  a.formatters;
3886
- var s = dr(a, ["formatters"]);
3887
- this.ast = e.__parse(t, x(x({}, s), { locale: this.resolvedLocale }));
3900
+ var s = bn(a, ["formatters"]);
3901
+ this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
3888
3902
  } else
3889
3903
  this.ast = t;
3890
3904
  if (!Array.isArray(this.ast))
3891
3905
  throw new TypeError("A message must be provided as a String or AST.");
3892
- this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || Mi(this.formatterCache);
3906
+ this.formats = Ni(e.formats, n), this.formatters = i && i.formatters || Ci(this.formatterCache);
3893
3907
  }
3894
3908
  return Object.defineProperty(e, "defaultLocale", {
3895
3909
  get: function() {
@@ -3899,10 +3913,10 @@ var Li = (
3899
3913
  configurable: !0
3900
3914
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3901
3915
  if (!(typeof Intl.Locale > "u")) {
3902
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3903
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3916
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3917
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3904
3918
  }
3905
- }, e.__parse = Bi, e.formats = {
3919
+ }, e.__parse = Pi, e.formats = {
3906
3920
  number: {
3907
3921
  integer: {
3908
3922
  maximumFractionDigits: 0
@@ -3963,113 +3977,113 @@ var Li = (
3963
3977
  }, e;
3964
3978
  }()
3965
3979
  );
3966
- function Ci(e, t) {
3980
+ function Ui(e, t) {
3967
3981
  if (t == null)
3968
3982
  return;
3969
3983
  if (t in e)
3970
3984
  return e[t];
3971
- const n = t.split(".");
3972
- let r = e;
3973
- for (let i = 0; i < n.length; i++)
3974
- if (typeof r == "object") {
3985
+ const r = t.split(".");
3986
+ let n = e;
3987
+ for (let i = 0; i < r.length; i++)
3988
+ if (typeof n == "object") {
3975
3989
  if (i > 0) {
3976
- const o = n.slice(i, n.length).join(".");
3977
- if (o in r) {
3978
- r = r[o];
3990
+ const o = r.slice(i, r.length).join(".");
3991
+ if (o in n) {
3992
+ n = n[o];
3979
3993
  break;
3980
3994
  }
3981
3995
  }
3982
- r = r[n[i]];
3996
+ n = n[r[i]];
3983
3997
  } else
3984
- r = void 0;
3985
- return r;
3998
+ n = void 0;
3999
+ return n;
3986
4000
  }
3987
- const $ = {}, Gi = (e, t, n) => n && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = n), n), _n = (e, t) => {
4001
+ const $ = {}, Fi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), xr = (e, t) => {
3988
4002
  if (t == null)
3989
4003
  return;
3990
4004
  if (t in $ && e in $[t])
3991
4005
  return $[t][e];
3992
- const n = Ie(t);
3993
- for (let r = 0; r < n.length; r++) {
3994
- const i = n[r], o = Fi(i, e);
4006
+ const r = Oe(t);
4007
+ for (let n = 0; n < r.length; n++) {
4008
+ const i = r[n], o = $i(i, e);
3995
4009
  if (o)
3996
- return Gi(e, t, o);
4010
+ return Fi(e, t, o);
3997
4011
  }
3998
4012
  };
3999
- let at;
4013
+ let ut;
4000
4014
  const ae = Re({});
4001
- function Ui(e) {
4002
- return at[e] || null;
4015
+ function Di(e) {
4016
+ return ut[e] || null;
4003
4017
  }
4004
- function xn(e) {
4005
- return e in at;
4018
+ function Er(e) {
4019
+ return e in ut;
4006
4020
  }
4007
- function Fi(e, t) {
4008
- if (!xn(e))
4021
+ function $i(e, t) {
4022
+ if (!Er(e))
4009
4023
  return null;
4010
- const n = Ui(e);
4011
- return Ci(n, t);
4024
+ const r = Di(e);
4025
+ return Ui(r, t);
4012
4026
  }
4013
- function Di(e) {
4027
+ function ji(e) {
4014
4028
  if (e == null)
4015
4029
  return;
4016
- const t = Ie(e);
4017
- for (let n = 0; n < t.length; n++) {
4018
- const r = t[n];
4019
- if (xn(r))
4020
- return r;
4030
+ const t = Oe(e);
4031
+ for (let r = 0; r < t.length; r++) {
4032
+ const n = t[r];
4033
+ if (Er(n))
4034
+ return n;
4021
4035
  }
4022
4036
  }
4023
- function vn(e, ...t) {
4024
- delete $[e], ae.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
4037
+ function wr(e, ...t) {
4038
+ delete $[e], ae.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
4025
4039
  }
4026
4040
  oe(
4027
4041
  [ae],
4028
4042
  ([e]) => Object.keys(e)
4029
4043
  );
4030
- ae.subscribe((e) => at = e);
4044
+ ae.subscribe((e) => ut = e);
4031
4045
  const Se = {};
4032
- function $i(e, t) {
4046
+ function ki(e, t) {
4033
4047
  Se[e].delete(t), Se[e].size === 0 && delete Se[e];
4034
4048
  }
4035
- function En(e) {
4049
+ function Sr(e) {
4036
4050
  return Se[e];
4037
4051
  }
4038
- function ji(e) {
4039
- return Ie(e).map((t) => {
4040
- const n = En(t);
4041
- return [t, n ? [...n] : []];
4052
+ function Vi(e) {
4053
+ return Oe(e).map((t) => {
4054
+ const r = Sr(t);
4055
+ return [t, r ? [...r] : []];
4042
4056
  }).filter(([, t]) => t.length > 0);
4043
4057
  }
4044
4058
  function nt(e) {
4045
- return e == null ? !1 : Ie(e).some(
4059
+ return e == null ? !1 : Oe(e).some(
4046
4060
  (t) => {
4047
- var n;
4048
- return (n = En(t)) == null ? void 0 : n.size;
4061
+ var r;
4062
+ return (r = Sr(t)) == null ? void 0 : r.size;
4049
4063
  }
4050
4064
  );
4051
4065
  }
4052
- function ki(e, t) {
4066
+ function Wi(e, t) {
4053
4067
  return Promise.all(
4054
- t.map((r) => ($i(e, r), r().then((i) => i.default || i)))
4055
- ).then((r) => vn(e, ...r));
4068
+ t.map((n) => (ki(e, n), n().then((i) => i.default || i)))
4069
+ ).then((n) => wr(e, ...n));
4056
4070
  }
4057
4071
  const le = {};
4058
- function wn(e) {
4072
+ function Tr(e) {
4059
4073
  if (!nt(e))
4060
4074
  return e in le ? le[e] : Promise.resolve();
4061
- const t = ji(e);
4075
+ const t = Vi(e);
4062
4076
  return le[e] = Promise.all(
4063
4077
  t.map(
4064
- ([n, r]) => ki(n, r)
4078
+ ([r, n]) => Wi(r, n)
4065
4079
  )
4066
4080
  ).then(() => {
4067
4081
  if (nt(e))
4068
- return wn(e);
4082
+ return Tr(e);
4069
4083
  delete le[e];
4070
4084
  }), le[e];
4071
4085
  }
4072
- const Vi = {
4086
+ const Xi = {
4073
4087
  number: {
4074
4088
  scientific: { notation: "scientific" },
4075
4089
  engineering: { notation: "engineering" },
@@ -4098,136 +4112,136 @@ const Vi = {
4098
4112
  timeZoneName: "short"
4099
4113
  }
4100
4114
  }
4101
- }, Wi = {
4115
+ }, zi = {
4102
4116
  fallbackLocale: null,
4103
4117
  loadingDelay: 200,
4104
- formats: Vi,
4118
+ formats: Xi,
4105
4119
  warnOnMissingMessages: !0,
4106
4120
  handleMissingMessage: void 0,
4107
4121
  ignoreTag: !0
4108
- }, Xi = Wi;
4122
+ }, Ji = zi;
4109
4123
  function ie() {
4110
- return Xi;
4111
- }
4112
- const $e = Re(!1);
4113
- var zi = Object.defineProperty, Ji = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qi = (e, t) => {
4114
- for (var n in t)
4115
- Qi.call(t, n) && Nt(e, n, t[n]);
4116
- if (It)
4117
- for (var n of It(t))
4118
- Yi.call(t, n) && Nt(e, n, t[n]);
4124
+ return Ji;
4125
+ }
4126
+ const je = Re(!1);
4127
+ var Zi = Object.defineProperty, Qi = Object.defineProperties, Yi = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, qi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, eo = (e, t) => {
4128
+ for (var r in t || (t = {}))
4129
+ qi.call(t, r) && Nt(e, r, t[r]);
4130
+ if (Lt)
4131
+ for (var r of Lt(t))
4132
+ Ki.call(t, r) && Nt(e, r, t[r]);
4119
4133
  return e;
4120
- }, Ki = (e, t) => Ji(e, Zi(t));
4121
- let rt;
4134
+ }, to = (e, t) => Qi(e, Yi(t));
4135
+ let it;
4122
4136
  const Be = Re(null);
4123
- function Mt(e) {
4124
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4137
+ function Ct(e) {
4138
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4125
4139
  }
4126
- function Ie(e, t = ie().fallbackLocale) {
4127
- const n = Mt(e);
4128
- return t ? [.../* @__PURE__ */ new Set([...n, ...Mt(t)])] : n;
4140
+ function Oe(e, t = ie().fallbackLocale) {
4141
+ const r = Ct(e);
4142
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
4129
4143
  }
4130
4144
  function J() {
4131
- return rt ?? void 0;
4145
+ return it ?? void 0;
4132
4146
  }
4133
4147
  Be.subscribe((e) => {
4134
- rt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4148
+ it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4135
4149
  });
4136
- const eo = (e) => {
4137
- if (e && Di(e) && nt(e)) {
4150
+ const ro = (e) => {
4151
+ if (e && ji(e) && nt(e)) {
4138
4152
  const { loadingDelay: t } = ie();
4139
- let n;
4140
- return typeof window < "u" && J() != null && t ? n = window.setTimeout(
4141
- () => $e.set(!0),
4153
+ let r;
4154
+ return typeof window < "u" && J() != null && t ? r = window.setTimeout(
4155
+ () => je.set(!0),
4142
4156
  t
4143
- ) : $e.set(!0), wn(e).then(() => {
4157
+ ) : je.set(!0), Tr(e).then(() => {
4144
4158
  Be.set(e);
4145
4159
  }).finally(() => {
4146
- clearTimeout(n), $e.set(!1);
4160
+ clearTimeout(r), je.set(!1);
4147
4161
  });
4148
4162
  }
4149
4163
  return Be.set(e);
4150
- }, V = Ki(qi({}, Be), {
4151
- set: eo
4152
- }), Ne = (e) => {
4164
+ }, V = to(eo({}, Be), {
4165
+ set: ro
4166
+ }), Me = (e) => {
4153
4167
  const t = /* @__PURE__ */ Object.create(null);
4154
- return (r) => {
4155
- const i = JSON.stringify(r);
4156
- return i in t ? t[i] : t[i] = e(r);
4168
+ return (n) => {
4169
+ const i = JSON.stringify(n);
4170
+ return i in t ? t[i] : t[i] = e(n);
4157
4171
  };
4158
4172
  };
4159
- var to = Object.defineProperty, Ae = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Lt = (e, t, n) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, st = (e, t) => {
4160
- for (var n in t || (t = {}))
4161
- Sn.call(t, n) && Lt(e, n, t[n]);
4173
+ var no = Object.defineProperty, Ae = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4174
+ for (var r in t || (t = {}))
4175
+ Hr.call(t, r) && Gt(e, r, t[r]);
4162
4176
  if (Ae)
4163
- for (var n of Ae(t))
4164
- Tn.call(t, n) && Lt(e, n, t[n]);
4177
+ for (var r of Ae(t))
4178
+ Br.call(t, r) && Gt(e, r, t[r]);
4165
4179
  return e;
4166
4180
  }, se = (e, t) => {
4167
- var n = {};
4168
- for (var r in e)
4169
- Sn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4181
+ var r = {};
4182
+ for (var n in e)
4183
+ Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4170
4184
  if (e != null && Ae)
4171
- for (var r of Ae(e))
4172
- t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
4173
- return n;
4185
+ for (var n of Ae(e))
4186
+ t.indexOf(n) < 0 && Br.call(e, n) && (r[n] = e[n]);
4187
+ return r;
4174
4188
  };
4175
- const me = (e, t) => {
4176
- const { formats: n } = ie();
4177
- if (e in n && t in n[e])
4178
- return n[e][t];
4189
+ const de = (e, t) => {
4190
+ const { formats: r } = ie();
4191
+ if (e in r && t in r[e])
4192
+ return r[e][t];
4179
4193
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4180
- }, no = Ne(
4194
+ }, io = Me(
4181
4195
  (e) => {
4182
- var t = e, { locale: n, format: r } = t, i = se(t, ["locale", "format"]);
4183
- if (n == null)
4196
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4197
+ if (r == null)
4184
4198
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4185
- return r && (i = me("number", r)), new Intl.NumberFormat(n, i);
4199
+ return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
4186
4200
  }
4187
- ), ro = Ne(
4201
+ ), oo = Me(
4188
4202
  (e) => {
4189
- var t = e, { locale: n, format: r } = t, i = se(t, ["locale", "format"]);
4190
- if (n == null)
4203
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4204
+ if (r == null)
4191
4205
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4192
- return r ? i = me("date", r) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(n, i);
4206
+ return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
4193
4207
  }
4194
- ), io = Ne(
4208
+ ), ao = Me(
4195
4209
  (e) => {
4196
- var t = e, { locale: n, format: r } = t, i = se(t, ["locale", "format"]);
4197
- if (n == null)
4210
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4211
+ if (r == null)
4198
4212
  throw new Error(
4199
4213
  '[svelte-i18n] A "locale" must be set to format time values'
4200
4214
  );
4201
- return r ? i = me("time", r) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(n, i);
4215
+ return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
4202
4216
  }
4203
- ), oo = (e = {}) => {
4217
+ ), so = (e = {}) => {
4204
4218
  var t = e, {
4205
- locale: n = J()
4206
- } = t, r = se(t, [
4219
+ locale: r = J()
4220
+ } = t, n = se(t, [
4207
4221
  "locale"
4208
4222
  ]);
4209
- return no(st({ locale: n }, r));
4210
- }, ao = (e = {}) => {
4223
+ return io(lt({ locale: r }, n));
4224
+ }, uo = (e = {}) => {
4211
4225
  var t = e, {
4212
- locale: n = J()
4213
- } = t, r = se(t, [
4226
+ locale: r = J()
4227
+ } = t, n = se(t, [
4214
4228
  "locale"
4215
4229
  ]);
4216
- return ro(st({ locale: n }, r));
4217
- }, so = (e = {}) => {
4230
+ return oo(lt({ locale: r }, n));
4231
+ }, lo = (e = {}) => {
4218
4232
  var t = e, {
4219
- locale: n = J()
4220
- } = t, r = se(t, [
4233
+ locale: r = J()
4234
+ } = t, n = se(t, [
4221
4235
  "locale"
4222
4236
  ]);
4223
- return io(st({ locale: n }, r));
4224
- }, uo = Ne(
4237
+ return ao(lt({ locale: r }, n));
4238
+ }, ho = Me(
4225
4239
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4226
- (e, t = J()) => new Li(e, t, ie().formats, {
4240
+ (e, t = J()) => new Gi(e, t, ie().formats, {
4227
4241
  ignoreTag: ie().ignoreTag
4228
4242
  })
4229
- ), lo = (e, t = {}) => {
4230
- var n, r, i, o;
4243
+ ), co = (e, t = {}) => {
4244
+ var r, n, i, o;
4231
4245
  let a = t;
4232
4246
  typeof e == "object" && (a = e, e = a.id);
4233
4247
  const {
@@ -4239,9 +4253,9 @@ const me = (e, t) => {
4239
4253
  throw new Error(
4240
4254
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4241
4255
  );
4242
- let u = _n(e, h);
4256
+ let u = xr(e, h);
4243
4257
  if (!u)
4244
- u = (o = (i = (r = (n = ie()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4258
+ u = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4245
4259
  else if (typeof u != "string")
4246
4260
  return console.warn(
4247
4261
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4250,7 +4264,7 @@ const me = (e, t) => {
4250
4264
  return u;
4251
4265
  let f = u;
4252
4266
  try {
4253
- f = uo(u, h).format(s);
4267
+ f = ho(u, h).format(s);
4254
4268
  } catch (c) {
4255
4269
  c instanceof Error && console.warn(
4256
4270
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4258,48 +4272,48 @@ const me = (e, t) => {
4258
4272
  );
4259
4273
  }
4260
4274
  return f;
4261
- }, ho = (e, t) => so(t).format(e), co = (e, t) => ao(t).format(e), fo = (e, t) => oo(t).format(e), mo = (e, t = J()) => _n(e, t), po = oe([V, ae], () => lo);
4262
- oe([V], () => ho);
4263
- oe([V], () => co);
4275
+ }, fo = (e, t) => lo(t).format(e), mo = (e, t) => uo(t).format(e), po = (e, t) => so(t).format(e), bo = (e, t = J()) => xr(e, t), go = oe([V, ae], () => co);
4264
4276
  oe([V], () => fo);
4265
- oe([V, ae], () => mo);
4266
- window.emWidgets = { topic: Br };
4267
- const bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4268
- function go(e, t) {
4277
+ oe([V], () => mo);
4278
+ oe([V], () => po);
4279
+ oe([V, ae], () => bo);
4280
+ window.emWidgets = { topic: Rn };
4281
+ const yo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4282
+ function vo(e, t) {
4269
4283
  if (e) {
4270
- const n = document.createElement("style");
4271
- n.innerHTML = t, e.appendChild(n);
4284
+ const r = document.createElement("style");
4285
+ r.innerHTML = t, e.appendChild(r);
4272
4286
  }
4273
4287
  }
4274
- function yo(e, t) {
4275
- const n = new URL(t);
4276
- fetch(n.href).then((r) => r.text()).then((r) => {
4288
+ function _o(e, t) {
4289
+ const r = new URL(t);
4290
+ fetch(r.href).then((n) => n.text()).then((n) => {
4277
4291
  const i = document.createElement("style");
4278
- i.innerHTML = r, e && e.appendChild(i);
4279
- }).catch((r) => {
4280
- console.error("There was an error while trying to load client styling from URL", r);
4292
+ i.innerHTML = n, e && e.appendChild(i);
4293
+ }).catch((n) => {
4294
+ console.error("There was an error while trying to load client styling from URL", n);
4281
4295
  });
4282
4296
  }
4283
- function _o(e, t, n) {
4297
+ function xo(e, t, r) {
4284
4298
  if (window.emMessageBus) {
4285
- const r = document.createElement("style");
4299
+ const n = document.createElement("style");
4286
4300
  window.emMessageBus.subscribe(t, (i) => {
4287
- r.innerHTML = i, e && e.appendChild(r);
4301
+ n.innerHTML = i, e && e.appendChild(n);
4288
4302
  });
4289
4303
  }
4290
4304
  }
4291
- function xo({ withLocale: e, translations: t }) {
4292
- V.subscribe((n) => {
4293
- n == null && (ae.set(t), V.set(e));
4305
+ function Eo({ withLocale: e, translations: t }) {
4306
+ V.subscribe((r) => {
4307
+ r == null && (ae.set(t), V.set(e));
4294
4308
  });
4295
4309
  }
4296
- function Ct(e, t) {
4297
- vn(e, t);
4310
+ function Ut(e, t) {
4311
+ wr(e, t);
4298
4312
  }
4299
- function vo(e) {
4313
+ function wo(e) {
4300
4314
  V.set(e);
4301
4315
  }
4302
- const Gt = {
4316
+ const Ft = {
4303
4317
  en: {
4304
4318
  playRandomGame: "Play a random game",
4305
4319
  randomGameLoading: "Selecting ...",
@@ -4373,152 +4387,152 @@ const Gt = {
4373
4387
  noGames: "There are no random games to play"
4374
4388
  }
4375
4389
  };
4376
- function Eo(e) {
4377
- zn(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
4390
+ function So(e) {
4391
+ Zr(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
4378
4392
  }
4379
- function Ut(e, t, n) {
4380
- const r = e.slice();
4381
- return r[41] = t[n], r;
4393
+ function Dt(e, t, r) {
4394
+ const n = e.slice();
4395
+ return n[41] = t[r], n;
4382
4396
  }
4383
- const wo = (e) => ({}), Ft = (e) => ({});
4384
- function Dt(e) {
4385
- let t, n, r, i, o, a, s;
4397
+ const To = (e) => ({}), $t = (e) => ({});
4398
+ function jt(e) {
4399
+ let t, r, n, i, o, a, s;
4386
4400
  const h = (
4387
4401
  /*#slots*/
4388
4402
  e[23].close
4389
- ), l = kn(
4403
+ ), l = Wr(
4390
4404
  h,
4391
4405
  e,
4392
4406
  /*$$scope*/
4393
4407
  e[22],
4394
- Ft
4395
- ), u = l || So();
4396
- function f(m, p) {
4408
+ $t
4409
+ ), u = l || Ho();
4410
+ function f(d, p) {
4397
4411
  return (
4398
4412
  /*hasRandomGames*/
4399
- m[7] ? Ho : To
4413
+ d[7] ? Ao : Bo
4400
4414
  );
4401
4415
  }
4402
- let c = f(e), d = c(e);
4416
+ let c = f(e), m = c(e);
4403
4417
  return {
4404
4418
  c() {
4405
- t = S("div"), n = S("div"), r = S("span"), u.c(), i = k(), d.c(), g(r, "class", "ModalCloseBtn"), g(r, "role", "button"), g(n, "class", "ModalContainer"), g(t, "class", "ModalWindow");
4419
+ t = S("div"), r = S("div"), n = S("span"), u && u.c(), i = k(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
4406
4420
  },
4407
- m(m, p) {
4408
- I(m, t, p), v(t, n), v(n, r), u.m(r, null), v(n, i), d.m(n, null), o = !0, a || (s = Te(
4409
- r,
4421
+ m(d, p) {
4422
+ O(d, t, p), x(t, r), x(r, n), u && u.m(n, null), x(r, i), m.m(r, null), o = !0, a || (s = Te(
4423
+ n,
4410
4424
  "click",
4411
4425
  /*closeModal*/
4412
4426
  e[12]
4413
4427
  ), a = !0);
4414
4428
  },
4415
- p(m, p) {
4429
+ p(d, p) {
4416
4430
  l && l.p && (!o || p[0] & /*$$scope*/
4417
- 4194304) && Wn(
4431
+ 4194304) && zr(
4418
4432
  l,
4419
4433
  h,
4420
- m,
4434
+ d,
4421
4435
  /*$$scope*/
4422
- m[22],
4423
- o ? Vn(
4436
+ d[22],
4437
+ o ? Xr(
4424
4438
  h,
4425
4439
  /*$$scope*/
4426
- m[22],
4440
+ d[22],
4427
4441
  p,
4428
- wo
4429
- ) : Xn(
4442
+ To
4443
+ ) : Jr(
4430
4444
  /*$$scope*/
4431
- m[22]
4445
+ d[22]
4432
4446
  ),
4433
- Ft
4434
- ), c === (c = f(m)) && d ? d.p(m, p) : (d.d(1), d = c(m), d && (d.c(), d.m(n, null)));
4447
+ $t
4448
+ ), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
4435
4449
  },
4436
- i(m) {
4437
- o || (ce(u, m), o = !0);
4450
+ i(d) {
4451
+ o || (ce(u, d), o = !0);
4438
4452
  },
4439
- o(m) {
4440
- Ve(u, m), o = !1;
4453
+ o(d) {
4454
+ We(u, d), o = !1;
4441
4455
  },
4442
- d(m) {
4443
- m && R(t), u.d(m), d.d(), a = !1, s();
4456
+ d(d) {
4457
+ d && R(t), u && u.d(d), m.d(), a = !1, s();
4444
4458
  }
4445
4459
  };
4446
4460
  }
4447
- function So(e) {
4448
- let t, n;
4461
+ function Ho(e) {
4462
+ let t, r;
4449
4463
  return {
4450
4464
  c() {
4451
- t = dt("svg"), n = dt("path"), g(n, "stroke-linecap", "round"), g(n, "stroke-linejoin", "round"), g(n, "stroke-width", "2"), g(n, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
4465
+ t = pt("svg"), r = pt("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
4452
4466
  },
4453
- m(r, i) {
4454
- I(r, t, i), v(t, n);
4467
+ m(n, i) {
4468
+ O(n, t, i), x(t, r);
4455
4469
  },
4456
- p: L,
4457
- d(r) {
4458
- r && R(t);
4470
+ p: N,
4471
+ d(n) {
4472
+ n && R(t);
4459
4473
  }
4460
4474
  };
4461
4475
  }
4462
- function To(e) {
4463
- let t, n = (
4476
+ function Bo(e) {
4477
+ let t, r = (
4464
4478
  /*$_*/
4465
4479
  e[9]("noGames") + ""
4466
- ), r;
4480
+ ), n;
4467
4481
  return {
4468
4482
  c() {
4469
- t = S("p"), r = j(n), g(t, "class", "RandomGameLoading");
4483
+ t = S("p"), n = j(r), g(t, "class", "RandomGameLoading");
4470
4484
  },
4471
4485
  m(i, o) {
4472
- I(i, t, o), v(t, r);
4486
+ O(i, t, o), x(t, n);
4473
4487
  },
4474
4488
  p(i, o) {
4475
4489
  o[0] & /*$_*/
4476
- 512 && n !== (n = /*$_*/
4477
- i[9]("noGames") + "") && X(r, n);
4490
+ 512 && r !== (r = /*$_*/
4491
+ i[9]("noGames") + "") && X(n, r);
4478
4492
  },
4479
4493
  d(i) {
4480
4494
  i && R(t);
4481
4495
  }
4482
4496
  };
4483
4497
  }
4484
- function Ho(e) {
4485
- let t, n, r, i, o = pt(
4498
+ function Ao(e) {
4499
+ let t, r, n, i, o = gt(
4486
4500
  /*gamesToShow*/
4487
4501
  e[4]
4488
4502
  ), a = [];
4489
4503
  for (let u = 0; u < o.length; u += 1)
4490
- a[u] = $t(Ut(e, o, u));
4504
+ a[u] = kt(Dt(e, o, u));
4491
4505
  function s(u, f) {
4492
4506
  return (
4493
4507
  /*animationDone*/
4494
- u[6] ? Ao : Bo
4508
+ u[6] ? Ro : Po
4495
4509
  );
4496
4510
  }
4497
4511
  let h = s(e), l = h(e);
4498
4512
  return {
4499
4513
  c() {
4500
- t = S("div"), n = S("main"), r = S("div");
4514
+ t = S("div"), r = S("main"), n = S("div");
4501
4515
  for (let u = 0; u < a.length; u += 1)
4502
4516
  a[u].c();
4503
- i = k(), l.c(), g(r, "class", "GamesContainer"), g(n, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
4517
+ i = k(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
4504
4518
  },
4505
4519
  m(u, f) {
4506
- I(u, t, f), v(t, n), v(n, r);
4520
+ O(u, t, f), x(t, r), x(r, n);
4507
4521
  for (let c = 0; c < a.length; c += 1)
4508
- a[c] && a[c].m(r, null);
4509
- e[24](r), v(t, i), l.m(t, null);
4522
+ a[c] && a[c].m(n, null);
4523
+ e[24](n), x(t, i), l.m(t, null);
4510
4524
  },
4511
4525
  p(u, f) {
4512
4526
  if (f[0] & /*gamesToShow*/
4513
4527
  16) {
4514
- o = pt(
4528
+ o = gt(
4515
4529
  /*gamesToShow*/
4516
4530
  u[4]
4517
4531
  );
4518
4532
  let c;
4519
4533
  for (c = 0; c < o.length; c += 1) {
4520
- const d = Ut(u, o, c);
4521
- a[c] ? a[c].p(d, f) : (a[c] = $t(d), a[c].c(), a[c].m(r, null));
4534
+ const m = Dt(u, o, c);
4535
+ a[c] ? a[c].p(m, f) : (a[c] = kt(m), a[c].c(), a[c].m(n, null));
4522
4536
  }
4523
4537
  for (; c < a.length; c += 1)
4524
4538
  a[c].d(1);
@@ -4527,76 +4541,76 @@ function Ho(e) {
4527
4541
  h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
4528
4542
  },
4529
4543
  d(u) {
4530
- u && R(t), Qn(a, u), e[24](null), l.d();
4544
+ u && R(t), qr(a, u), e[24](null), l.d();
4531
4545
  }
4532
4546
  };
4533
4547
  }
4534
- function $t(e) {
4535
- let t, n, r, i, o, a;
4548
+ function kt(e) {
4549
+ let t, r, n, i, o, a;
4536
4550
  return {
4537
4551
  c() {
4538
- t = S("div"), n = S("img"), a = k(), g(n, "class", "RandomGameImage"), ft(n.src, r = /*game*/
4539
- e[41].thumbnail) || g(n, "src", r), g(n, "alt", i = /*game*/
4540
- e[41].name), g(n, "title", o = /*game*/
4552
+ t = S("div"), r = S("img"), a = k(), g(r, "class", "RandomGameImage"), dt(r.src, n = /*game*/
4553
+ e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
4554
+ e[41].name), g(r, "title", o = /*game*/
4541
4555
  e[41].name), g(t, "class", "item");
4542
4556
  },
4543
4557
  m(s, h) {
4544
- I(s, t, h), v(t, n), v(t, a);
4558
+ O(s, t, h), x(t, r), x(t, a);
4545
4559
  },
4546
4560
  p(s, h) {
4547
4561
  h[0] & /*gamesToShow*/
4548
- 16 && !ft(n.src, r = /*game*/
4549
- s[41].thumbnail) && g(n, "src", r), h[0] & /*gamesToShow*/
4562
+ 16 && !dt(r.src, n = /*game*/
4563
+ s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
4550
4564
  16 && i !== (i = /*game*/
4551
- s[41].name) && g(n, "alt", i), h[0] & /*gamesToShow*/
4565
+ s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
4552
4566
  16 && o !== (o = /*game*/
4553
- s[41].name) && g(n, "title", o);
4567
+ s[41].name) && g(r, "title", o);
4554
4568
  },
4555
4569
  d(s) {
4556
4570
  s && R(t);
4557
4571
  }
4558
4572
  };
4559
4573
  }
4560
- function Bo(e) {
4561
- let t, n = (
4574
+ function Po(e) {
4575
+ let t, r = (
4562
4576
  /*$_*/
4563
4577
  e[9]("randomGameLoading") + ""
4564
- ), r;
4578
+ ), n;
4565
4579
  return {
4566
4580
  c() {
4567
- t = S("p"), r = j(n), g(t, "class", "RandomGameLoading");
4581
+ t = S("p"), n = j(r), g(t, "class", "RandomGameLoading");
4568
4582
  },
4569
4583
  m(i, o) {
4570
- I(i, t, o), v(t, r);
4584
+ O(i, t, o), x(t, n);
4571
4585
  },
4572
4586
  p(i, o) {
4573
4587
  o[0] & /*$_*/
4574
- 512 && n !== (n = /*$_*/
4575
- i[9]("randomGameLoading") + "") && X(r, n);
4588
+ 512 && r !== (r = /*$_*/
4589
+ i[9]("randomGameLoading") + "") && X(n, r);
4576
4590
  },
4577
4591
  d(i) {
4578
4592
  i && R(t);
4579
4593
  }
4580
4594
  };
4581
4595
  }
4582
- function Ao(e) {
4583
- let t, n, r, i, o = (
4596
+ function Ro(e) {
4597
+ let t, r, n, i, o = (
4584
4598
  /*randomGame*/
4585
4599
  e[3].name + ""
4586
4600
  ), a, s, h, l = (
4587
4601
  /*randomGame*/
4588
4602
  e[3].vendor.name + ""
4589
- ), u, f, c, d = (
4603
+ ), u, f, c, m = (
4590
4604
  /*$_*/
4591
4605
  e[9]("playNowRandomGame") + ""
4592
- ), m, p, A;
4606
+ ), d, p, A;
4593
4607
  return {
4594
4608
  c() {
4595
4609
  t = S("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
4596
- </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, n = k(), r = S("div"), i = S("p"), a = j(o), s = k(), h = S("p"), u = j(l), f = k(), c = S("button"), m = j(d), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(r, "class", "RandomGameDetails");
4610
+ </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = k(), n = S("div"), i = S("p"), a = j(o), s = k(), h = S("p"), u = j(l), f = k(), c = S("button"), d = j(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
4597
4611
  },
4598
4612
  m(H, T) {
4599
- I(H, t, T), I(H, n, T), I(H, r, T), v(r, i), v(i, a), v(r, s), v(r, h), v(h, u), v(r, f), v(r, c), v(c, m), p || (A = [
4613
+ O(H, t, T), O(H, r, T), O(H, n, T), x(n, i), x(i, a), x(n, s), x(n, h), x(h, u), x(n, f), x(n, c), x(c, d), p || (A = [
4600
4614
  Te(
4601
4615
  t,
4602
4616
  "click",
@@ -4617,83 +4631,83 @@ function Ao(e) {
4617
4631
  H[3].name + "") && X(a, o), T[0] & /*randomGame*/
4618
4632
  8 && l !== (l = /*randomGame*/
4619
4633
  H[3].vendor.name + "") && X(u, l), T[0] & /*$_*/
4620
- 512 && d !== (d = /*$_*/
4621
- H[9]("playNowRandomGame") + "") && X(m, d);
4634
+ 512 && m !== (m = /*$_*/
4635
+ H[9]("playNowRandomGame") + "") && X(d, m);
4622
4636
  },
4623
4637
  d(H) {
4624
- H && (R(t), R(n), R(r)), p = !1, z(A);
4638
+ H && (R(t), R(r), R(n)), p = !1, z(A);
4625
4639
  }
4626
4640
  };
4627
4641
  }
4628
- function Po(e) {
4629
- let t, n = (
4642
+ function Io(e) {
4643
+ let t, r = (
4630
4644
  /*$_*/
4631
4645
  e[9]("playRandomGame") + ""
4632
- ), r;
4646
+ ), n;
4633
4647
  return {
4634
4648
  c() {
4635
- t = S("span"), r = j(n), g(t, "class", "RandomButtonText");
4649
+ t = S("span"), n = j(r), g(t, "class", "RandomButtonText");
4636
4650
  },
4637
4651
  m(i, o) {
4638
- I(i, t, o), v(t, r);
4652
+ O(i, t, o), x(t, n);
4639
4653
  },
4640
4654
  p(i, o) {
4641
4655
  o[0] & /*$_*/
4642
- 512 && n !== (n = /*$_*/
4643
- i[9]("playRandomGame") + "") && X(r, n);
4656
+ 512 && r !== (r = /*$_*/
4657
+ i[9]("playRandomGame") + "") && X(n, r);
4644
4658
  },
4645
4659
  d(i) {
4646
4660
  i && R(t);
4647
4661
  }
4648
4662
  };
4649
4663
  }
4650
- function Ro(e) {
4651
- let t, n;
4664
+ function Oo(e) {
4665
+ let t, r;
4652
4666
  return {
4653
4667
  c() {
4654
- t = S("span"), n = j(
4668
+ t = S("span"), r = j(
4655
4669
  /*buttontext*/
4656
4670
  e[1]
4657
4671
  ), g(t, "class", "RandomButtonText");
4658
4672
  },
4659
- m(r, i) {
4660
- I(r, t, i), v(t, n);
4673
+ m(n, i) {
4674
+ O(n, t, i), x(t, r);
4661
4675
  },
4662
- p(r, i) {
4676
+ p(n, i) {
4663
4677
  i[0] & /*buttontext*/
4664
4678
  2 && X(
4665
- n,
4679
+ r,
4666
4680
  /*buttontext*/
4667
- r[1]
4681
+ n[1]
4668
4682
  );
4669
4683
  },
4670
- d(r) {
4671
- r && R(t);
4684
+ d(n) {
4685
+ n && R(t);
4672
4686
  }
4673
4687
  };
4674
4688
  }
4675
- function Oo(e) {
4676
- let t, n, r, i, o, a, s, h, l, u = (
4689
+ function Mo(e) {
4690
+ let t, r, n, i, o, a, s, h, l, u = (
4677
4691
  /*show*/
4678
- e[5] && Dt(e)
4692
+ e[5] && jt(e)
4679
4693
  );
4680
- function f(m, p) {
4694
+ function f(d, p) {
4681
4695
  if (
4682
4696
  /*buttontext*/
4683
- m[1]
4697
+ d[1]
4684
4698
  )
4685
- return Ro;
4699
+ return Oo;
4686
4700
  if (!/*buttontext*/
4687
- m[1])
4688
- return Po;
4701
+ d[1])
4702
+ return Io;
4689
4703
  }
4690
- let c = f(e), d = c && c(e);
4704
+ let c = f(e), m = c && c(e);
4691
4705
  return {
4692
4706
  c() {
4693
- t = S("div"), u && u.c(), n = k(), r = S("div"), i = S("button"), d && d.c(), o = k(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(r, "class", "RandomButtonWrapper");
4707
+ t = S("div"), u && u.c(), r = k(), n = S("div"), i = S("button"), m && m.c(), o = k(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
4694
4708
  },
4695
- m(m, p) {
4696
- I(m, t, p), u && u.m(t, null), v(t, n), v(t, r), v(r, i), d && d.m(i, null), v(i, o), v(i, a), a.innerHTML = /*randombuttonicon*/
4709
+ m(d, p) {
4710
+ O(d, t, p), u && u.m(t, null), x(t, r), x(t, n), x(n, i), m && m.m(i, null), x(i, o), x(i, a), a.innerHTML = /*randombuttonicon*/
4697
4711
  e[0], e[28](t), s = !0, h || (l = Te(
4698
4712
  i,
4699
4713
  "click",
@@ -4701,156 +4715,156 @@ function Oo(e) {
4701
4715
  e[27]
4702
4716
  ), h = !0);
4703
4717
  },
4704
- p(m, p) {
4718
+ p(d, p) {
4705
4719
  /*show*/
4706
- m[5] ? u ? (u.p(m, p), p[0] & /*show*/
4707
- 32 && ce(u, 1)) : (u = Dt(m), u.c(), ce(u, 1), u.m(t, n)) : u && (ir(), Ve(u, 1, 1, () => {
4720
+ d[5] ? u ? (u.p(d, p), p[0] & /*show*/
4721
+ 32 && ce(u, 1)) : (u = jt(d), u.c(), ce(u, 1), u.m(t, r)) : u && (sn(), We(u, 1, 1, () => {
4708
4722
  u = null;
4709
- }), or()), c === (c = f(m)) && d ? d.p(m, p) : (d && d.d(1), d = c && c(m), d && (d.c(), d.m(i, o))), (!s || p[0] & /*randombuttonicon*/
4723
+ }), un()), c === (c = f(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || p[0] & /*randombuttonicon*/
4710
4724
  1) && (a.innerHTML = /*randombuttonicon*/
4711
- m[0]);
4725
+ d[0]);
4712
4726
  },
4713
- i(m) {
4727
+ i(d) {
4714
4728
  s || (ce(u), s = !0);
4715
4729
  },
4716
- o(m) {
4717
- Ve(u), s = !1;
4730
+ o(d) {
4731
+ We(u), s = !1;
4718
4732
  },
4719
- d(m) {
4720
- m && R(t), u && u.d(), d && d.d(), e[28](null), h = !1, l();
4733
+ d(d) {
4734
+ d && R(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
4721
4735
  }
4722
4736
  };
4723
4737
  }
4724
- function Io(e, t, n) {
4725
- let r;
4726
- jn(e, po, (b) => n(9, r = b));
4727
- let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: d = "" } = t, { clientstylingurl: m = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, N = !1, M = !1, C = !1, pe = window.navigator.userAgent, G, Z, ut, be, lt = null;
4728
- xo({ withLocale: "en", translations: {} });
4729
- const Hn = () => {
4738
+ function Lo(e, t, r) {
4739
+ let n;
4740
+ Vr(e, go, (b) => r(9, n = b));
4741
+ let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, M = !1, L = !1, C = !1, pe = window.navigator.userAgent, G, Z, ht, be, ct = null;
4742
+ Eo({ withLocale: "en", translations: {} });
4743
+ const Ar = () => {
4730
4744
  fetch(c).then((E) => E.json()).then((E) => {
4731
4745
  Object.keys(E).forEach((U) => {
4732
- Ct(U, E[U]);
4746
+ Ut(U, E[U]);
4733
4747
  });
4734
4748
  }).catch((E) => {
4735
4749
  console.log(E);
4736
4750
  });
4737
4751
  };
4738
- Object.keys(Gt).forEach((b) => {
4739
- Ct(b, Gt[b]);
4752
+ Object.keys(Ft).forEach((b) => {
4753
+ Ut(b, Ft[b]);
4740
4754
  });
4741
- const Bn = () => {
4755
+ const Pr = () => {
4742
4756
  let b = new URL(`${a}/v1/casino/games`);
4743
- b.searchParams.append("platform", bo(pe)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
4744
- H = E.items, H.length ? (n(4, B = An(H.slice(0, 19))), n(7, C = !0)) : (n(4, B = []), n(7, C = !1));
4757
+ b.searchParams.append("platform", yo(pe)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
4758
+ H = E.items, H.length ? (r(4, B = Rr(H.slice(0, 19))), r(7, C = !0)) : (r(4, B = []), r(7, C = !1));
4745
4759
  }).catch((E) => {
4746
- console.log(E), n(7, C = !1);
4760
+ console.log(E), r(7, C = !1);
4747
4761
  });
4748
- }, An = (b) => {
4749
- const E = Rn(b);
4762
+ }, Rr = (b) => {
4763
+ const E = Or(b);
4750
4764
  return E.concat(E);
4751
- }, Pn = async () => {
4752
- await tr(), be = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, n(3, T = B[be]), ut = Z.children[be];
4753
- }, Me = async () => {
4754
- n(6, M = !1), n(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await Pn();
4755
- const b = window.getComputedStyle(Z).getPropertyValue("gap"), E = parseInt(b, 10) || 0, ue = (ut.offsetHeight + E) * be, Un = [
4765
+ }, Ir = async () => {
4766
+ await nn(), be = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[be]), ht = Z.children[be];
4767
+ }, Le = async () => {
4768
+ r(6, L = !1), r(5, M = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await Ir();
4769
+ const b = window.getComputedStyle(Z).getPropertyValue("gap"), E = parseInt(b, 10) || 0, ue = (ht.offsetHeight + E) * be, Dr = [
4756
4770
  { transform: "translateX(0px)" },
4757
4771
  { filter: "blur(5px)" },
4758
4772
  {
4759
4773
  transform: `translateY(-${ue}px)`
4760
4774
  }
4761
- ], Fn = {
4775
+ ], $r = {
4762
4776
  duration: 2e3,
4763
4777
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
4764
4778
  fill: "forwards"
4765
4779
  };
4766
- lt = Z.animate(Un, Fn), lt.onfinish = () => {
4767
- n(6, M = !0);
4780
+ ct = Z.animate(Dr, $r), ct.onfinish = () => {
4781
+ r(6, L = !0);
4768
4782
  };
4769
- }, Rn = (b) => {
4783
+ }, Or = (b) => {
4770
4784
  const E = structuredClone(b);
4771
4785
  let U = E.length, ue;
4772
4786
  for (; U != 0; )
4773
4787
  ue = Math.floor(Math.random() * U), U--, [E[U], E[ue]] = [E[ue], E[U]];
4774
4788
  return E;
4775
- }, ht = () => {
4789
+ }, ft = () => {
4776
4790
  window.postMessage(
4777
4791
  {
4778
4792
  type: h,
4779
4793
  gameId: T.gId || T.id
4780
4794
  },
4781
4795
  window.location.href
4782
- ), n(5, N = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
4796
+ ), r(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
4783
4797
  context: "RandomGameWidget",
4784
4798
  gameId: `${T.gId || T.id}`
4785
4799
  });
4786
- }, On = () => {
4787
- n(5, N = !1), window.postMessage({ type: "RandomWidgetState", state: N }, window.location.href);
4788
- }, In = () => {
4789
- vo(l);
4800
+ }, Mr = () => {
4801
+ r(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: M }, window.location.href);
4802
+ }, Lr = () => {
4803
+ wo(l);
4790
4804
  };
4791
- er(() => () => {
4805
+ rn(() => () => {
4792
4806
  });
4793
- function Nn(b) {
4807
+ function Nr(b) {
4794
4808
  He[b ? "unshift" : "push"](() => {
4795
- Z = b, n(8, Z);
4809
+ Z = b, r(8, Z);
4796
4810
  });
4797
4811
  }
4798
- const Mn = () => Me(), Ln = () => ht(), Cn = () => Me();
4799
- function Gn(b) {
4812
+ const Cr = () => Le(), Gr = () => ft(), Ur = () => Le();
4813
+ function Fr(b) {
4800
4814
  He[b ? "unshift" : "push"](() => {
4801
- G = b, n(2, G);
4815
+ G = b, r(2, G);
4802
4816
  });
4803
4817
  }
4804
4818
  return e.$$set = (b) => {
4805
- "endpoint" in b && n(13, a = b.endpoint), "datasource" in b && n(14, s = b.datasource), "gameevent" in b && n(15, h = b.gameevent), "lang" in b && n(16, l = b.lang), "randombuttonicon" in b && n(0, u = b.randombuttonicon), "buttontext" in b && n(1, f = b.buttontext), "translationurl" in b && n(17, c = b.translationurl), "clientstyling" in b && n(18, d = b.clientstyling), "clientstylingurl" in b && n(19, m = b.clientstylingurl), "filteredrandomgamecategories" in b && n(20, p = b.filteredrandomgamecategories), "mbsource" in b && n(21, A = b.mbsource), "$$scope" in b && n(22, o = b.$$scope);
4819
+ "endpoint" in b && r(13, a = b.endpoint), "datasource" in b && r(14, s = b.datasource), "gameevent" in b && r(15, h = b.gameevent), "lang" in b && r(16, l = b.lang), "randombuttonicon" in b && r(0, u = b.randombuttonicon), "buttontext" in b && r(1, f = b.buttontext), "translationurl" in b && r(17, c = b.translationurl), "clientstyling" in b && r(18, m = b.clientstyling), "clientstylingurl" in b && r(19, d = b.clientstylingurl), "filteredrandomgamecategories" in b && r(20, p = b.filteredrandomgamecategories), "mbsource" in b && r(21, A = b.mbsource), "$$scope" in b && r(22, o = b.$$scope);
4806
4820
  }, e.$$.update = () => {
4807
4821
  e.$$.dirty[0] & /*lang*/
4808
- 65536 && l && In(), e.$$.dirty[0] & /*translationurl*/
4809
- 131072 && c && Hn(), e.$$.dirty[0] & /*endpoint, datasource*/
4810
- 24576 && a && s && Bn(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4811
- 262148 && d && G && go(G, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4812
- 524292 && m && G && yo(G, m), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4813
- 2097156 && G && _o(G, `${A}.Style`);
4822
+ 65536 && l && Lr(), e.$$.dirty[0] & /*translationurl*/
4823
+ 131072 && c && Ar(), e.$$.dirty[0] & /*endpoint, datasource*/
4824
+ 24576 && a && s && Pr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4825
+ 262148 && m && G && vo(G, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4826
+ 524292 && d && G && _o(G, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4827
+ 2097156 && G && xo(G, `${A}.Style`);
4814
4828
  }, [
4815
4829
  u,
4816
4830
  f,
4817
4831
  G,
4818
4832
  T,
4819
4833
  B,
4820
- N,
4821
4834
  M,
4835
+ L,
4822
4836
  C,
4823
4837
  Z,
4824
- r,
4825
- Me,
4826
- ht,
4827
- On,
4838
+ n,
4839
+ Le,
4840
+ ft,
4841
+ Mr,
4828
4842
  a,
4829
4843
  s,
4830
4844
  h,
4831
4845
  l,
4832
4846
  c,
4833
- d,
4834
4847
  m,
4848
+ d,
4835
4849
  p,
4836
4850
  A,
4837
4851
  o,
4838
4852
  i,
4839
- Nn,
4840
- Mn,
4841
- Ln,
4842
- Cn,
4843
- Gn
4853
+ Nr,
4854
+ Cr,
4855
+ Gr,
4856
+ Ur,
4857
+ Fr
4844
4858
  ];
4845
4859
  }
4846
- class No extends cr {
4860
+ class No extends dn {
4847
4861
  constructor(t) {
4848
- super(), lr(
4862
+ super(), fn(
4849
4863
  this,
4850
4864
  t,
4851
- Io,
4852
- Oo,
4853
- kt,
4865
+ Lo,
4866
+ Mo,
4867
+ Wt,
4854
4868
  {
4855
4869
  endpoint: 13,
4856
4870
  datasource: 14,
@@ -4864,7 +4878,7 @@ class No extends cr {
4864
4878
  filteredrandomgamecategories: 20,
4865
4879
  mbsource: 21
4866
4880
  },
4867
- Eo,
4881
+ So,
4868
4882
  [-1, -1]
4869
4883
  );
4870
4884
  }
@@ -4872,70 +4886,70 @@ class No extends cr {
4872
4886
  return this.$$.ctx[13];
4873
4887
  }
4874
4888
  set endpoint(t) {
4875
- this.$$set({ endpoint: t }), O();
4889
+ this.$$set({ endpoint: t }), I();
4876
4890
  }
4877
4891
  get datasource() {
4878
4892
  return this.$$.ctx[14];
4879
4893
  }
4880
4894
  set datasource(t) {
4881
- this.$$set({ datasource: t }), O();
4895
+ this.$$set({ datasource: t }), I();
4882
4896
  }
4883
4897
  get gameevent() {
4884
4898
  return this.$$.ctx[15];
4885
4899
  }
4886
4900
  set gameevent(t) {
4887
- this.$$set({ gameevent: t }), O();
4901
+ this.$$set({ gameevent: t }), I();
4888
4902
  }
4889
4903
  get lang() {
4890
4904
  return this.$$.ctx[16];
4891
4905
  }
4892
4906
  set lang(t) {
4893
- this.$$set({ lang: t }), O();
4907
+ this.$$set({ lang: t }), I();
4894
4908
  }
4895
4909
  get randombuttonicon() {
4896
4910
  return this.$$.ctx[0];
4897
4911
  }
4898
4912
  set randombuttonicon(t) {
4899
- this.$$set({ randombuttonicon: t }), O();
4913
+ this.$$set({ randombuttonicon: t }), I();
4900
4914
  }
4901
4915
  get buttontext() {
4902
4916
  return this.$$.ctx[1];
4903
4917
  }
4904
4918
  set buttontext(t) {
4905
- this.$$set({ buttontext: t }), O();
4919
+ this.$$set({ buttontext: t }), I();
4906
4920
  }
4907
4921
  get translationurl() {
4908
4922
  return this.$$.ctx[17];
4909
4923
  }
4910
4924
  set translationurl(t) {
4911
- this.$$set({ translationurl: t }), O();
4925
+ this.$$set({ translationurl: t }), I();
4912
4926
  }
4913
4927
  get clientstyling() {
4914
4928
  return this.$$.ctx[18];
4915
4929
  }
4916
4930
  set clientstyling(t) {
4917
- this.$$set({ clientstyling: t }), O();
4931
+ this.$$set({ clientstyling: t }), I();
4918
4932
  }
4919
4933
  get clientstylingurl() {
4920
4934
  return this.$$.ctx[19];
4921
4935
  }
4922
4936
  set clientstylingurl(t) {
4923
- this.$$set({ clientstylingurl: t }), O();
4937
+ this.$$set({ clientstylingurl: t }), I();
4924
4938
  }
4925
4939
  get filteredrandomgamecategories() {
4926
4940
  return this.$$.ctx[20];
4927
4941
  }
4928
4942
  set filteredrandomgamecategories(t) {
4929
- this.$$set({ filteredrandomgamecategories: t }), O();
4943
+ this.$$set({ filteredrandomgamecategories: t }), I();
4930
4944
  }
4931
4945
  get mbsource() {
4932
4946
  return this.$$.ctx[21];
4933
4947
  }
4934
4948
  set mbsource(t) {
4935
- this.$$set({ mbsource: t }), O();
4949
+ this.$$set({ mbsource: t }), I();
4936
4950
  }
4937
4951
  }
4938
- hr(No, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
4952
+ mn(No, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
4939
4953
  export {
4940
4954
  No as C
4941
4955
  };