@everymatrix/casino-random-game 1.76.0 → 1.76.3

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