@everymatrix/casino-random-game 1.53.0 → 1.53.10

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