@everymatrix/casino-tournaments-thumbnail-games 0.0.1

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.
@@ -0,0 +1,4652 @@
1
+ import "../stencil/ui-image-BW8AeEVd.js";
2
+ function I() {
3
+ }
4
+ function It(e) {
5
+ return e();
6
+ }
7
+ function et() {
8
+ return /* @__PURE__ */ Object.create(null);
9
+ }
10
+ function ie(e) {
11
+ e.forEach(It);
12
+ }
13
+ function ge(e) {
14
+ return typeof e == "function";
15
+ }
16
+ function Nt(e, t) {
17
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
18
+ }
19
+ let se;
20
+ function tt(e, t) {
21
+ return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
22
+ }
23
+ function fr(e) {
24
+ return Object.keys(e).length === 0;
25
+ }
26
+ function Lt(e, ...t) {
27
+ if (e == null) {
28
+ for (const n of t)
29
+ n(void 0);
30
+ return I;
31
+ }
32
+ const r = e.subscribe(...t);
33
+ return r.unsubscribe ? () => r.unsubscribe() : r;
34
+ }
35
+ function pr(e, t, r) {
36
+ e.$$.on_destroy.push(Lt(t, r));
37
+ }
38
+ function B(e, t) {
39
+ e.appendChild(t);
40
+ }
41
+ function mr(e, t, r) {
42
+ const n = dr(e);
43
+ if (!n.getElementById(t)) {
44
+ const i = O("style");
45
+ i.id = t, i.textContent = r, br(n, i);
46
+ }
47
+ }
48
+ function dr(e) {
49
+ if (!e)
50
+ return document;
51
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
52
+ return t && /** @type {ShadowRoot} */
53
+ t.host ? (
54
+ /** @type {ShadowRoot} */
55
+ t
56
+ ) : e.ownerDocument;
57
+ }
58
+ function br(e, t) {
59
+ return B(
60
+ /** @type {Document} */
61
+ e.head || e,
62
+ t
63
+ ), t.sheet;
64
+ }
65
+ function oe(e, t, r) {
66
+ e.insertBefore(t, r || null);
67
+ }
68
+ function Z(e) {
69
+ e.parentNode && e.parentNode.removeChild(e);
70
+ }
71
+ function rt(e, t) {
72
+ for (let r = 0; r < e.length; r += 1)
73
+ e[r] && e[r].d(t);
74
+ }
75
+ function O(e) {
76
+ return document.createElement(e);
77
+ }
78
+ function me(e) {
79
+ return document.createTextNode(e);
80
+ }
81
+ function ee() {
82
+ return me(" ");
83
+ }
84
+ function gr(e, t, r, n) {
85
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
86
+ }
87
+ function H(e, t, r) {
88
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
89
+ }
90
+ function T(e, t, r) {
91
+ const n = t.toLowerCase();
92
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
93
+ }
94
+ function yr(e) {
95
+ return Array.from(e.childNodes);
96
+ }
97
+ function Ie(e, t) {
98
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
99
+ t);
100
+ }
101
+ function vr(e) {
102
+ const t = {};
103
+ return e.childNodes.forEach(
104
+ /** @param {Element} node */
105
+ (r) => {
106
+ t[r.slot || "default"] = !0;
107
+ }
108
+ ), t;
109
+ }
110
+ let te;
111
+ function K(e) {
112
+ te = e;
113
+ }
114
+ function _r() {
115
+ if (!te)
116
+ throw new Error("Function called outside component initialization");
117
+ return te;
118
+ }
119
+ function Er(e) {
120
+ _r().$$.on_mount.push(e);
121
+ }
122
+ const F = [], Ne = [];
123
+ let j = [];
124
+ const nt = [], xr = /* @__PURE__ */ Promise.resolve();
125
+ let Le = !1;
126
+ function Sr() {
127
+ Le || (Le = !0, xr.then(C));
128
+ }
129
+ function Ce(e) {
130
+ j.push(e);
131
+ }
132
+ const Se = /* @__PURE__ */ new Set();
133
+ let U = 0;
134
+ function C() {
135
+ if (U !== 0)
136
+ return;
137
+ const e = te;
138
+ do {
139
+ try {
140
+ for (; U < F.length; ) {
141
+ const t = F[U];
142
+ U++, K(t), Tr(t.$$);
143
+ }
144
+ } catch (t) {
145
+ throw F.length = 0, U = 0, t;
146
+ }
147
+ for (K(null), F.length = 0, U = 0; Ne.length; )
148
+ Ne.pop()();
149
+ for (let t = 0; t < j.length; t += 1) {
150
+ const r = j[t];
151
+ Se.has(r) || (Se.add(r), r());
152
+ }
153
+ j.length = 0;
154
+ } while (F.length);
155
+ for (; nt.length; )
156
+ nt.pop()();
157
+ Le = !1, Se.clear(), K(e);
158
+ }
159
+ function Tr(e) {
160
+ if (e.fragment !== null) {
161
+ e.update(), ie(e.before_update);
162
+ const t = e.dirty;
163
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
164
+ }
165
+ }
166
+ function wr(e) {
167
+ const t = [], r = [];
168
+ j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
169
+ }
170
+ const Hr = /* @__PURE__ */ new Set();
171
+ function Br(e, t) {
172
+ e && e.i && (Hr.delete(e), e.i(t));
173
+ }
174
+ function ae(e) {
175
+ return e?.length !== void 0 ? e : Array.from(e);
176
+ }
177
+ function Ar(e, t, r) {
178
+ const { fragment: n, after_update: i } = e.$$;
179
+ n && n.m(t, r), Ce(() => {
180
+ const o = e.$$.on_mount.map(It).filter(ge);
181
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
182
+ }), i.forEach(Ce);
183
+ }
184
+ function Pr(e, t) {
185
+ const r = e.$$;
186
+ r.fragment !== null && (wr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
187
+ }
188
+ function Or(e, t) {
189
+ e.$$.dirty[0] === -1 && (F.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
+ }
191
+ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
192
+ const h = te;
193
+ K(e);
194
+ const u = e.$$ = {
195
+ fragment: null,
196
+ ctx: [],
197
+ // state
198
+ props: o,
199
+ update: I,
200
+ not_equal: i,
201
+ bound: et(),
202
+ // lifecycle
203
+ on_mount: [],
204
+ on_destroy: [],
205
+ on_disconnect: [],
206
+ before_update: [],
207
+ after_update: [],
208
+ context: new Map(t.context || (h ? h.$$.context : [])),
209
+ // everything else
210
+ callbacks: et(),
211
+ dirty: a,
212
+ skip_bound: !1,
213
+ root: t.target || h.$$.root
214
+ };
215
+ s && s(u.root);
216
+ let l = !1;
217
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
218
+ const y = p.length ? p[0] : f;
219
+ return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Or(e, c)), f;
220
+ }) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
221
+ if (t.hydrate) {
222
+ const c = yr(t.target);
223
+ u.fragment && u.fragment.l(c), c.forEach(Z);
224
+ } else
225
+ u.fragment && u.fragment.c();
226
+ t.intro && Br(e.$$.fragment), Ar(e, t.target, t.anchor), C();
227
+ }
228
+ K(h);
229
+ }
230
+ let Ct;
231
+ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
232
+ /** The Svelte component constructor */
233
+ $$ctor;
234
+ /** Slots */
235
+ $$s;
236
+ /** The Svelte component instance */
237
+ $$c;
238
+ /** Whether or not the custom element is connected */
239
+ $$cn = !1;
240
+ /** Component props data */
241
+ $$d = {};
242
+ /** `true` if currently in the process of reflecting component props back to attributes */
243
+ $$r = !1;
244
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
245
+ $$p_d = {};
246
+ /** @type {Record<string, Function[]>} Event listeners */
247
+ $$l = {};
248
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
249
+ $$l_u = /* @__PURE__ */ new Map();
250
+ constructor(e, t, r) {
251
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
252
+ }
253
+ addEventListener(e, t, r) {
254
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
255
+ const n = this.$$c.$on(e, t);
256
+ this.$$l_u.set(t, n);
257
+ }
258
+ super.addEventListener(e, t, r);
259
+ }
260
+ removeEventListener(e, t, r) {
261
+ if (super.removeEventListener(e, t, r), this.$$c) {
262
+ const n = this.$$l_u.get(t);
263
+ n && (n(), this.$$l_u.delete(t));
264
+ }
265
+ }
266
+ async connectedCallback() {
267
+ if (this.$$cn = !0, !this.$$c) {
268
+ let e = function(i) {
269
+ return () => {
270
+ let o;
271
+ return {
272
+ c: function() {
273
+ o = O("slot"), i !== "default" && H(o, "name", i);
274
+ },
275
+ /**
276
+ * @param {HTMLElement} target
277
+ * @param {HTMLElement} [anchor]
278
+ */
279
+ m: function(h, u) {
280
+ oe(h, o, u);
281
+ },
282
+ d: function(h) {
283
+ h && Z(o);
284
+ }
285
+ };
286
+ };
287
+ };
288
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
289
+ return;
290
+ const t = {}, r = vr(this);
291
+ for (const i of this.$$s)
292
+ i in r && (t[i] = [e(i)]);
293
+ for (const i of this.attributes) {
294
+ const o = this.$$g_p(i.name);
295
+ o in this.$$d || (this.$$d[o] = le(o, i.value, this.$$p_d, "toProp"));
296
+ }
297
+ for (const i in this.$$p_d)
298
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
299
+ this.$$c = new this.$$ctor({
300
+ target: this.shadowRoot || this,
301
+ props: {
302
+ ...this.$$d,
303
+ $$slots: t,
304
+ $$scope: {
305
+ ctx: []
306
+ }
307
+ }
308
+ });
309
+ const n = () => {
310
+ this.$$r = !0;
311
+ for (const i in this.$$p_d)
312
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
313
+ const o = le(
314
+ i,
315
+ this.$$d[i],
316
+ this.$$p_d,
317
+ "toAttribute"
318
+ );
319
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
320
+ }
321
+ this.$$r = !1;
322
+ };
323
+ this.$$c.$$.after_update.push(n), n();
324
+ for (const i in this.$$l)
325
+ for (const o of this.$$l[i]) {
326
+ const s = this.$$c.$on(i, o);
327
+ this.$$l_u.set(o, s);
328
+ }
329
+ this.$$l = {};
330
+ }
331
+ }
332
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
333
+ // and setting attributes through setAttribute etc, this is helpful
334
+ attributeChangedCallback(e, t, r) {
335
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
336
+ }
337
+ disconnectedCallback() {
338
+ this.$$cn = !1, Promise.resolve().then(() => {
339
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
340
+ });
341
+ }
342
+ $$g_p(e) {
343
+ return Object.keys(this.$$p_d).find(
344
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
345
+ ) || e;
346
+ }
347
+ });
348
+ function le(e, t, r, n) {
349
+ const i = r[e]?.type;
350
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
351
+ return t;
352
+ if (n === "toAttribute")
353
+ switch (i) {
354
+ case "Object":
355
+ case "Array":
356
+ return t == null ? null : JSON.stringify(t);
357
+ case "Boolean":
358
+ return t ? "" : null;
359
+ case "Number":
360
+ return t ?? null;
361
+ default:
362
+ return t;
363
+ }
364
+ else
365
+ switch (i) {
366
+ case "Object":
367
+ case "Array":
368
+ return t && JSON.parse(t);
369
+ case "Boolean":
370
+ return t;
371
+ case "Number":
372
+ return t != null ? +t : t;
373
+ default:
374
+ return t;
375
+ }
376
+ }
377
+ function Nr(e, t, r, n, i, o) {
378
+ let s = class extends Ct {
379
+ constructor() {
380
+ super(e, r, i), this.$$p_d = t;
381
+ }
382
+ static get observedAttributes() {
383
+ return Object.keys(t).map(
384
+ (a) => (t[a].attribute || a).toLowerCase()
385
+ );
386
+ }
387
+ };
388
+ return Object.keys(t).forEach((a) => {
389
+ Object.defineProperty(s.prototype, a, {
390
+ get() {
391
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
392
+ },
393
+ set(h) {
394
+ h = le(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
395
+ }
396
+ });
397
+ }), n.forEach((a) => {
398
+ Object.defineProperty(s.prototype, a, {
399
+ get() {
400
+ return this.$$c?.[a];
401
+ }
402
+ });
403
+ }), e.element = /** @type {any} */
404
+ s, s;
405
+ }
406
+ class Lr {
407
+ /**
408
+ * ### PRIVATE API
409
+ *
410
+ * Do not use, may change at any time
411
+ *
412
+ * @type {any}
413
+ */
414
+ $$ = void 0;
415
+ /**
416
+ * ### PRIVATE API
417
+ *
418
+ * Do not use, may change at any time
419
+ *
420
+ * @type {any}
421
+ */
422
+ $$set = void 0;
423
+ /** @returns {void} */
424
+ $destroy() {
425
+ Pr(this, 1), this.$destroy = I;
426
+ }
427
+ /**
428
+ * @template {Extract<keyof Events, string>} K
429
+ * @param {K} type
430
+ * @param {((e: Events[K]) => void) | null | undefined} callback
431
+ * @returns {() => void}
432
+ */
433
+ $on(t, r) {
434
+ if (!ge(r))
435
+ return I;
436
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
+ return n.push(r), () => {
438
+ const i = n.indexOf(r);
439
+ i !== -1 && n.splice(i, 1);
440
+ };
441
+ }
442
+ /**
443
+ * @param {Partial<Props>} props
444
+ * @returns {void}
445
+ */
446
+ $set(t) {
447
+ this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
448
+ }
449
+ }
450
+ const Cr = "4";
451
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
452
+ function Mr(e, t) {
453
+ if (e) {
454
+ const r = document.createElement("style");
455
+ r.innerHTML = t, e.appendChild(r);
456
+ }
457
+ }
458
+ function $r(e, t) {
459
+ const r = new URL(t);
460
+ fetch(r.href).then((n) => n.text()).then((n) => {
461
+ const i = document.createElement("style");
462
+ i.innerHTML = n, e && e.appendChild(i);
463
+ }).catch((n) => {
464
+ console.error("There was an error while trying to load client styling from URL", n);
465
+ });
466
+ }
467
+ function Rr(e, t, r) {
468
+ if (window.emMessageBus) {
469
+ const n = document.createElement("style");
470
+ window.emMessageBus.subscribe(t, (i) => {
471
+ n.innerHTML = i, e && e.appendChild(n);
472
+ });
473
+ }
474
+ }
475
+ /*! *****************************************************************************
476
+ Copyright (c) Microsoft Corporation.
477
+
478
+ Permission to use, copy, modify, and/or distribute this software for any
479
+ purpose with or without fee is hereby granted.
480
+
481
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
482
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
483
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
484
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
485
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
486
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
487
+ PERFORMANCE OF THIS SOFTWARE.
488
+ ***************************************************************************** */
489
+ var Me = function(e, t) {
490
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
491
+ r.__proto__ = n;
492
+ } || function(r, n) {
493
+ for (var i in n)
494
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
495
+ }, Me(e, t);
496
+ };
497
+ function L(e, t) {
498
+ if (typeof t != "function" && t !== null)
499
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
500
+ Me(e, t);
501
+ function r() {
502
+ this.constructor = e;
503
+ }
504
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
505
+ }
506
+ var E = function() {
507
+ return E = Object.assign || function(t) {
508
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
509
+ r = arguments[n];
510
+ for (var o in r)
511
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
512
+ }
513
+ return t;
514
+ }, E.apply(this, arguments);
515
+ };
516
+ function Gr(e, t) {
517
+ var r = {};
518
+ for (var n in e)
519
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
520
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
521
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
522
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
523
+ return r;
524
+ }
525
+ function $e(e) {
526
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
527
+ if (r)
528
+ return r.call(e);
529
+ if (e && typeof e.length == "number")
530
+ return {
531
+ next: function() {
532
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
533
+ }
534
+ };
535
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
536
+ }
537
+ function Re(e, t) {
538
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
539
+ if (!r)
540
+ return e;
541
+ var n = r.call(e), i, o = [], s;
542
+ try {
543
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
544
+ o.push(i.value);
545
+ } catch (a) {
546
+ s = { error: a };
547
+ } finally {
548
+ try {
549
+ i && !i.done && (r = n.return) && r.call(n);
550
+ } finally {
551
+ if (s)
552
+ throw s.error;
553
+ }
554
+ }
555
+ return o;
556
+ }
557
+ function k(e, t, r) {
558
+ if (r || arguments.length === 2)
559
+ for (var n = 0, i = t.length, o; n < i; n++)
560
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
561
+ return e.concat(o || t);
562
+ }
563
+ function N(e) {
564
+ return typeof e == "function";
565
+ }
566
+ function Mt(e) {
567
+ var t = function(n) {
568
+ Error.call(n), n.stack = new Error().stack;
569
+ }, r = e(t);
570
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
571
+ }
572
+ var Te = Mt(function(e) {
573
+ return function(r) {
574
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
575
+ ` + r.map(function(n, i) {
576
+ return i + 1 + ") " + n.toString();
577
+ }).join(`
578
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
579
+ };
580
+ });
581
+ function Ge(e, t) {
582
+ if (e) {
583
+ var r = e.indexOf(t);
584
+ 0 <= r && e.splice(r, 1);
585
+ }
586
+ }
587
+ var ye = function() {
588
+ function e(t) {
589
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
590
+ }
591
+ return e.prototype.unsubscribe = function() {
592
+ var t, r, n, i, o;
593
+ if (!this.closed) {
594
+ this.closed = !0;
595
+ var s = this._parentage;
596
+ if (s)
597
+ if (this._parentage = null, Array.isArray(s))
598
+ try {
599
+ for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
600
+ var u = h.value;
601
+ u.remove(this);
602
+ }
603
+ } catch (b) {
604
+ t = { error: b };
605
+ } finally {
606
+ try {
607
+ h && !h.done && (r = a.return) && r.call(a);
608
+ } finally {
609
+ if (t)
610
+ throw t.error;
611
+ }
612
+ }
613
+ else
614
+ s.remove(this);
615
+ var l = this.initialTeardown;
616
+ if (N(l))
617
+ try {
618
+ l();
619
+ } catch (b) {
620
+ o = b instanceof Te ? b.errors : [b];
621
+ }
622
+ var c = this._finalizers;
623
+ if (c) {
624
+ this._finalizers = null;
625
+ try {
626
+ for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
627
+ var y = p.value;
628
+ try {
629
+ it(y);
630
+ } catch (b) {
631
+ o = o ?? [], b instanceof Te ? o = k(k([], Re(o)), Re(b.errors)) : o.push(b);
632
+ }
633
+ }
634
+ } catch (b) {
635
+ n = { error: b };
636
+ } finally {
637
+ try {
638
+ p && !p.done && (i = f.return) && i.call(f);
639
+ } finally {
640
+ if (n)
641
+ throw n.error;
642
+ }
643
+ }
644
+ }
645
+ if (o)
646
+ throw new Te(o);
647
+ }
648
+ }, e.prototype.add = function(t) {
649
+ var r;
650
+ if (t && t !== this)
651
+ if (this.closed)
652
+ it(t);
653
+ else {
654
+ if (t instanceof e) {
655
+ if (t.closed || t._hasParent(this))
656
+ return;
657
+ t._addParent(this);
658
+ }
659
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
660
+ }
661
+ }, e.prototype._hasParent = function(t) {
662
+ var r = this._parentage;
663
+ return r === t || Array.isArray(r) && r.includes(t);
664
+ }, e.prototype._addParent = function(t) {
665
+ var r = this._parentage;
666
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
667
+ }, e.prototype._removeParent = function(t) {
668
+ var r = this._parentage;
669
+ r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
670
+ }, e.prototype.remove = function(t) {
671
+ var r = this._finalizers;
672
+ r && Ge(r, t), t instanceof e && t._removeParent(this);
673
+ }, e.EMPTY = function() {
674
+ var t = new e();
675
+ return t.closed = !0, t;
676
+ }(), e;
677
+ }(), $t = ye.EMPTY;
678
+ function Rt(e) {
679
+ return e instanceof ye || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
680
+ }
681
+ function it(e) {
682
+ N(e) ? e() : e.unsubscribe();
683
+ }
684
+ var Gt = {
685
+ onUnhandledError: null,
686
+ onStoppedNotification: null,
687
+ Promise: void 0,
688
+ useDeprecatedSynchronousErrorHandling: !1,
689
+ useDeprecatedNextContext: !1
690
+ }, Ur = {
691
+ setTimeout: function(e, t) {
692
+ for (var r = [], n = 2; n < arguments.length; n++)
693
+ r[n - 2] = arguments[n];
694
+ return setTimeout.apply(void 0, k([e, t], Re(r)));
695
+ },
696
+ clearTimeout: function(e) {
697
+ return clearTimeout(e);
698
+ },
699
+ delegate: void 0
700
+ };
701
+ function Dr(e) {
702
+ Ur.setTimeout(function() {
703
+ throw e;
704
+ });
705
+ }
706
+ function ot() {
707
+ }
708
+ function ce(e) {
709
+ e();
710
+ }
711
+ var Ut = function(e) {
712
+ L(t, e);
713
+ function t(r) {
714
+ var n = e.call(this) || this;
715
+ return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Vr, n;
716
+ }
717
+ return t.create = function(r, n, i) {
718
+ return new Ue(r, n, i);
719
+ }, t.prototype.next = function(r) {
720
+ this.isStopped || this._next(r);
721
+ }, t.prototype.error = function(r) {
722
+ this.isStopped || (this.isStopped = !0, this._error(r));
723
+ }, t.prototype.complete = function() {
724
+ this.isStopped || (this.isStopped = !0, this._complete());
725
+ }, t.prototype.unsubscribe = function() {
726
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
727
+ }, t.prototype._next = function(r) {
728
+ this.destination.next(r);
729
+ }, t.prototype._error = function(r) {
730
+ try {
731
+ this.destination.error(r);
732
+ } finally {
733
+ this.unsubscribe();
734
+ }
735
+ }, t.prototype._complete = function() {
736
+ try {
737
+ this.destination.complete();
738
+ } finally {
739
+ this.unsubscribe();
740
+ }
741
+ }, t;
742
+ }(ye), Fr = Function.prototype.bind;
743
+ function we(e, t) {
744
+ return Fr.call(e, t);
745
+ }
746
+ var jr = function() {
747
+ function e(t) {
748
+ this.partialObserver = t;
749
+ }
750
+ return e.prototype.next = function(t) {
751
+ var r = this.partialObserver;
752
+ if (r.next)
753
+ try {
754
+ r.next(t);
755
+ } catch (n) {
756
+ ue(n);
757
+ }
758
+ }, e.prototype.error = function(t) {
759
+ var r = this.partialObserver;
760
+ if (r.error)
761
+ try {
762
+ r.error(t);
763
+ } catch (n) {
764
+ ue(n);
765
+ }
766
+ else
767
+ ue(t);
768
+ }, e.prototype.complete = function() {
769
+ var t = this.partialObserver;
770
+ if (t.complete)
771
+ try {
772
+ t.complete();
773
+ } catch (r) {
774
+ ue(r);
775
+ }
776
+ }, e;
777
+ }(), Ue = function(e) {
778
+ L(t, e);
779
+ function t(r, n, i) {
780
+ var o = e.call(this) || this, s;
781
+ if (N(r) || !r)
782
+ s = {
783
+ next: r ?? void 0,
784
+ error: n ?? void 0,
785
+ complete: i ?? void 0
786
+ };
787
+ else {
788
+ var a;
789
+ o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
790
+ return o.unsubscribe();
791
+ }, s = {
792
+ next: r.next && we(r.next, a),
793
+ error: r.error && we(r.error, a),
794
+ complete: r.complete && we(r.complete, a)
795
+ }) : s = r;
796
+ }
797
+ return o.destination = new jr(s), o;
798
+ }
799
+ return t;
800
+ }(Ut);
801
+ function ue(e) {
802
+ Dr(e);
803
+ }
804
+ function kr(e) {
805
+ throw e;
806
+ }
807
+ var Vr = {
808
+ closed: !0,
809
+ next: ot,
810
+ error: kr,
811
+ complete: ot
812
+ }, Xr = function() {
813
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
814
+ }();
815
+ function Wr(e) {
816
+ return e;
817
+ }
818
+ function zr(e) {
819
+ return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
820
+ return e.reduce(function(n, i) {
821
+ return i(n);
822
+ }, r);
823
+ };
824
+ }
825
+ var st = function() {
826
+ function e(t) {
827
+ t && (this._subscribe = t);
828
+ }
829
+ return e.prototype.lift = function(t) {
830
+ var r = new e();
831
+ return r.source = this, r.operator = t, r;
832
+ }, e.prototype.subscribe = function(t, r, n) {
833
+ var i = this, o = Qr(t) ? t : new Ue(t, r, n);
834
+ return ce(function() {
835
+ var s = i, a = s.operator, h = s.source;
836
+ o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
837
+ }), o;
838
+ }, e.prototype._trySubscribe = function(t) {
839
+ try {
840
+ return this._subscribe(t);
841
+ } catch (r) {
842
+ t.error(r);
843
+ }
844
+ }, e.prototype.forEach = function(t, r) {
845
+ var n = this;
846
+ return r = at(r), new r(function(i, o) {
847
+ var s = new Ue({
848
+ next: function(a) {
849
+ try {
850
+ t(a);
851
+ } catch (h) {
852
+ o(h), s.unsubscribe();
853
+ }
854
+ },
855
+ error: o,
856
+ complete: i
857
+ });
858
+ n.subscribe(s);
859
+ });
860
+ }, e.prototype._subscribe = function(t) {
861
+ var r;
862
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
863
+ }, e.prototype[Xr] = function() {
864
+ return this;
865
+ }, e.prototype.pipe = function() {
866
+ for (var t = [], r = 0; r < arguments.length; r++)
867
+ t[r] = arguments[r];
868
+ return zr(t)(this);
869
+ }, e.prototype.toPromise = function(t) {
870
+ var r = this;
871
+ return t = at(t), new t(function(n, i) {
872
+ var o;
873
+ r.subscribe(function(s) {
874
+ return o = s;
875
+ }, function(s) {
876
+ return i(s);
877
+ }, function() {
878
+ return n(o);
879
+ });
880
+ });
881
+ }, e.create = function(t) {
882
+ return new e(t);
883
+ }, e;
884
+ }();
885
+ function at(e) {
886
+ var t;
887
+ return (t = e ?? Gt.Promise) !== null && t !== void 0 ? t : Promise;
888
+ }
889
+ function Zr(e) {
890
+ return e && N(e.next) && N(e.error) && N(e.complete);
891
+ }
892
+ function Qr(e) {
893
+ return e && e instanceof Ut || Zr(e) && Rt(e);
894
+ }
895
+ var Jr = Mt(function(e) {
896
+ return function() {
897
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
898
+ };
899
+ }), Dt = function(e) {
900
+ L(t, e);
901
+ function t() {
902
+ var r = e.call(this) || this;
903
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
904
+ }
905
+ return t.prototype.lift = function(r) {
906
+ var n = new ut(this, this);
907
+ return n.operator = r, n;
908
+ }, t.prototype._throwIfClosed = function() {
909
+ if (this.closed)
910
+ throw new Jr();
911
+ }, t.prototype.next = function(r) {
912
+ var n = this;
913
+ ce(function() {
914
+ var i, o;
915
+ if (n._throwIfClosed(), !n.isStopped) {
916
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
917
+ try {
918
+ for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
919
+ var h = a.value;
920
+ h.next(r);
921
+ }
922
+ } catch (u) {
923
+ i = { error: u };
924
+ } finally {
925
+ try {
926
+ a && !a.done && (o = s.return) && o.call(s);
927
+ } finally {
928
+ if (i)
929
+ throw i.error;
930
+ }
931
+ }
932
+ }
933
+ });
934
+ }, t.prototype.error = function(r) {
935
+ var n = this;
936
+ ce(function() {
937
+ if (n._throwIfClosed(), !n.isStopped) {
938
+ n.hasError = n.isStopped = !0, n.thrownError = r;
939
+ for (var i = n.observers; i.length; )
940
+ i.shift().error(r);
941
+ }
942
+ });
943
+ }, t.prototype.complete = function() {
944
+ var r = this;
945
+ ce(function() {
946
+ if (r._throwIfClosed(), !r.isStopped) {
947
+ r.isStopped = !0;
948
+ for (var n = r.observers; n.length; )
949
+ n.shift().complete();
950
+ }
951
+ });
952
+ }, t.prototype.unsubscribe = function() {
953
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
954
+ }, Object.defineProperty(t.prototype, "observed", {
955
+ get: function() {
956
+ var r;
957
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
958
+ },
959
+ enumerable: !1,
960
+ configurable: !0
961
+ }), t.prototype._trySubscribe = function(r) {
962
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
963
+ }, t.prototype._subscribe = function(r) {
964
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
965
+ }, t.prototype._innerSubscribe = function(r) {
966
+ var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
967
+ return o || s ? $t : (this.currentObservers = null, a.push(r), new ye(function() {
968
+ n.currentObservers = null, Ge(a, r);
969
+ }));
970
+ }, t.prototype._checkFinalizedStatuses = function(r) {
971
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
972
+ i ? r.error(o) : s && r.complete();
973
+ }, t.prototype.asObservable = function() {
974
+ var r = new st();
975
+ return r.source = this, r;
976
+ }, t.create = function(r, n) {
977
+ return new ut(r, n);
978
+ }, t;
979
+ }(st), ut = function(e) {
980
+ L(t, e);
981
+ function t(r, n) {
982
+ var i = e.call(this) || this;
983
+ return i.destination = r, i.source = n, i;
984
+ }
985
+ return t.prototype.next = function(r) {
986
+ var n, i;
987
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
988
+ }, t.prototype.error = function(r) {
989
+ var n, i;
990
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
991
+ }, t.prototype.complete = function() {
992
+ var r, n;
993
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
994
+ }, t.prototype._subscribe = function(r) {
995
+ var n, i;
996
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
997
+ }, t;
998
+ }(Dt), Ft = {
999
+ now: function() {
1000
+ return (Ft.delegate || Date).now();
1001
+ },
1002
+ delegate: void 0
1003
+ }, qr = function(e) {
1004
+ L(t, e);
1005
+ function t(r, n, i) {
1006
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
1007
+ var o = e.call(this) || this;
1008
+ 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;
1009
+ }
1010
+ return t.prototype.next = function(r) {
1011
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
1012
+ i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
1013
+ }, t.prototype._subscribe = function(r) {
1014
+ this._throwIfClosed(), this._trimBuffer();
1015
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
1016
+ r.next(a[h]);
1017
+ return this._checkFinalizedStatuses(r), n;
1018
+ }, t.prototype._trimBuffer = function() {
1019
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1020
+ if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1021
+ for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
1022
+ u = l;
1023
+ u && o.splice(0, u + 1);
1024
+ }
1025
+ }, t;
1026
+ }(Dt);
1027
+ const ht = [], lt = {}, Yr = (e, t = 0) => {
1028
+ if (ht.indexOf(e) == -1) {
1029
+ const r = new qr(t);
1030
+ lt[e] = r, ht.push(e);
1031
+ }
1032
+ return lt[e];
1033
+ }, D = [];
1034
+ function Kr(e, t) {
1035
+ return {
1036
+ subscribe: ve(e, t).subscribe
1037
+ };
1038
+ }
1039
+ function ve(e, t = I) {
1040
+ let r;
1041
+ const n = /* @__PURE__ */ new Set();
1042
+ function i(a) {
1043
+ if (Nt(e, a) && (e = a, r)) {
1044
+ const h = !D.length;
1045
+ for (const u of n)
1046
+ u[1](), D.push(u, e);
1047
+ if (h) {
1048
+ for (let u = 0; u < D.length; u += 2)
1049
+ D[u][0](D[u + 1]);
1050
+ D.length = 0;
1051
+ }
1052
+ }
1053
+ }
1054
+ function o(a) {
1055
+ i(a(e));
1056
+ }
1057
+ function s(a, h = I) {
1058
+ const u = [a, h];
1059
+ return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
1060
+ n.delete(u), n.size === 0 && r && (r(), r = null);
1061
+ };
1062
+ }
1063
+ return { set: i, update: o, subscribe: s };
1064
+ }
1065
+ function Q(e, t, r) {
1066
+ const n = !Array.isArray(e), i = n ? [e] : e;
1067
+ if (!i.every(Boolean))
1068
+ throw new Error("derived() expects stores as input, got a falsy value");
1069
+ const o = t.length < 2;
1070
+ return Kr(r, (s, a) => {
1071
+ let h = !1;
1072
+ const u = [];
1073
+ let l = 0, c = I;
1074
+ const f = () => {
1075
+ if (l)
1076
+ return;
1077
+ c();
1078
+ const y = t(n ? u[0] : u, s, a);
1079
+ o ? s(y) : c = ge(y) ? y : I;
1080
+ }, p = i.map(
1081
+ (y, b) => Lt(
1082
+ y,
1083
+ (d) => {
1084
+ u[b] = d, l &= ~(1 << b), h && f();
1085
+ },
1086
+ () => {
1087
+ l |= 1 << b;
1088
+ }
1089
+ )
1090
+ );
1091
+ return h = !0, f(), function() {
1092
+ ie(p), c(), h = !1;
1093
+ };
1094
+ });
1095
+ }
1096
+ function en(e) {
1097
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1098
+ }
1099
+ var tn = function(t) {
1100
+ return rn(t) && !nn(t);
1101
+ };
1102
+ function rn(e) {
1103
+ return !!e && typeof e == "object";
1104
+ }
1105
+ function nn(e) {
1106
+ var t = Object.prototype.toString.call(e);
1107
+ return t === "[object RegExp]" || t === "[object Date]" || an(e);
1108
+ }
1109
+ var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
1110
+ function an(e) {
1111
+ return e.$$typeof === sn;
1112
+ }
1113
+ function un(e) {
1114
+ return Array.isArray(e) ? [] : {};
1115
+ }
1116
+ function re(e, t) {
1117
+ return t.clone !== !1 && t.isMergeableObject(e) ? V(un(e), e, t) : e;
1118
+ }
1119
+ function hn(e, t, r) {
1120
+ return e.concat(t).map(function(n) {
1121
+ return re(n, r);
1122
+ });
1123
+ }
1124
+ function ln(e, t) {
1125
+ if (!t.customMerge)
1126
+ return V;
1127
+ var r = t.customMerge(e);
1128
+ return typeof r == "function" ? r : V;
1129
+ }
1130
+ function cn(e) {
1131
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1132
+ return Object.propertyIsEnumerable.call(e, t);
1133
+ }) : [];
1134
+ }
1135
+ function ct(e) {
1136
+ return Object.keys(e).concat(cn(e));
1137
+ }
1138
+ function jt(e, t) {
1139
+ try {
1140
+ return t in e;
1141
+ } catch {
1142
+ return !1;
1143
+ }
1144
+ }
1145
+ function fn(e, t) {
1146
+ return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1147
+ }
1148
+ function pn(e, t, r) {
1149
+ var n = {};
1150
+ return r.isMergeableObject(e) && ct(e).forEach(function(i) {
1151
+ n[i] = re(e[i], r);
1152
+ }), ct(t).forEach(function(i) {
1153
+ fn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
1154
+ }), n;
1155
+ }
1156
+ function V(e, t, r) {
1157
+ r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = re;
1158
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1159
+ return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : re(t, r);
1160
+ }
1161
+ V.all = function(t, r) {
1162
+ if (!Array.isArray(t))
1163
+ throw new Error("first argument should be an array");
1164
+ return t.reduce(function(n, i) {
1165
+ return V(n, i, r);
1166
+ }, {});
1167
+ };
1168
+ var mn = V, dn = mn;
1169
+ const bn = /* @__PURE__ */ en(dn);
1170
+ function He(e, t) {
1171
+ var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : yn;
1172
+ return i(e, {
1173
+ cache: r,
1174
+ serializer: n
1175
+ });
1176
+ }
1177
+ function gn(e) {
1178
+ return e == null || typeof e == "number" || typeof e == "boolean";
1179
+ }
1180
+ function kt(e, t, r, n) {
1181
+ var i = gn(n) ? n : r(n), o = t.get(i);
1182
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1183
+ }
1184
+ function Vt(e, t, r) {
1185
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1186
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1187
+ }
1188
+ function Qe(e, t, r, n, i) {
1189
+ return r.bind(t, e, n, i);
1190
+ }
1191
+ function yn(e, t) {
1192
+ var r = e.length === 1 ? kt : Vt;
1193
+ return Qe(e, this, r, t.cache.create(), t.serializer);
1194
+ }
1195
+ function vn(e, t) {
1196
+ return Qe(e, this, Vt, t.cache.create(), t.serializer);
1197
+ }
1198
+ function _n(e, t) {
1199
+ return Qe(e, this, kt, t.cache.create(), t.serializer);
1200
+ }
1201
+ var En = function() {
1202
+ return JSON.stringify(arguments);
1203
+ };
1204
+ function Je() {
1205
+ this.cache = /* @__PURE__ */ Object.create(null);
1206
+ }
1207
+ Je.prototype.get = function(e) {
1208
+ return this.cache[e];
1209
+ };
1210
+ Je.prototype.set = function(e, t) {
1211
+ this.cache[e] = t;
1212
+ };
1213
+ var xn = {
1214
+ create: function() {
1215
+ return new Je();
1216
+ }
1217
+ }, Be = {
1218
+ variadic: vn,
1219
+ monadic: _n
1220
+ }, v;
1221
+ (function(e) {
1222
+ 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";
1223
+ })(v || (v = {}));
1224
+ var x;
1225
+ (function(e) {
1226
+ e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1227
+ })(x || (x = {}));
1228
+ var X;
1229
+ (function(e) {
1230
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1231
+ })(X || (X = {}));
1232
+ function ft(e) {
1233
+ return e.type === x.literal;
1234
+ }
1235
+ function Sn(e) {
1236
+ return e.type === x.argument;
1237
+ }
1238
+ function Xt(e) {
1239
+ return e.type === x.number;
1240
+ }
1241
+ function Wt(e) {
1242
+ return e.type === x.date;
1243
+ }
1244
+ function zt(e) {
1245
+ return e.type === x.time;
1246
+ }
1247
+ function Zt(e) {
1248
+ return e.type === x.select;
1249
+ }
1250
+ function Qt(e) {
1251
+ return e.type === x.plural;
1252
+ }
1253
+ function Tn(e) {
1254
+ return e.type === x.pound;
1255
+ }
1256
+ function Jt(e) {
1257
+ return e.type === x.tag;
1258
+ }
1259
+ function qt(e) {
1260
+ return !!(e && typeof e == "object" && e.type === X.number);
1261
+ }
1262
+ function De(e) {
1263
+ return !!(e && typeof e == "object" && e.type === X.dateTime);
1264
+ }
1265
+ var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
1266
+ function Hn(e) {
1267
+ var t = {};
1268
+ return e.replace(wn, function(r) {
1269
+ var n = r.length;
1270
+ switch (r[0]) {
1271
+ case "G":
1272
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1273
+ break;
1274
+ case "y":
1275
+ t.year = n === 2 ? "2-digit" : "numeric";
1276
+ break;
1277
+ case "Y":
1278
+ case "u":
1279
+ case "U":
1280
+ case "r":
1281
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1282
+ case "q":
1283
+ case "Q":
1284
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
1285
+ case "M":
1286
+ case "L":
1287
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1288
+ break;
1289
+ case "w":
1290
+ case "W":
1291
+ throw new RangeError("`w/W` (week) patterns are not supported");
1292
+ case "d":
1293
+ t.day = ["numeric", "2-digit"][n - 1];
1294
+ break;
1295
+ case "D":
1296
+ case "F":
1297
+ case "g":
1298
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1299
+ case "E":
1300
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1301
+ break;
1302
+ case "e":
1303
+ if (n < 4)
1304
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
1305
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1306
+ break;
1307
+ case "c":
1308
+ if (n < 4)
1309
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1310
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1311
+ break;
1312
+ case "a":
1313
+ t.hour12 = !0;
1314
+ break;
1315
+ case "b":
1316
+ case "B":
1317
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1318
+ case "h":
1319
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1320
+ break;
1321
+ case "H":
1322
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1323
+ break;
1324
+ case "K":
1325
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1326
+ break;
1327
+ case "k":
1328
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1329
+ break;
1330
+ case "j":
1331
+ case "J":
1332
+ case "C":
1333
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1334
+ case "m":
1335
+ t.minute = ["numeric", "2-digit"][n - 1];
1336
+ break;
1337
+ case "s":
1338
+ t.second = ["numeric", "2-digit"][n - 1];
1339
+ break;
1340
+ case "S":
1341
+ case "A":
1342
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1343
+ case "z":
1344
+ t.timeZoneName = n < 4 ? "short" : "long";
1345
+ break;
1346
+ case "Z":
1347
+ case "O":
1348
+ case "v":
1349
+ case "V":
1350
+ case "X":
1351
+ case "x":
1352
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1353
+ }
1354
+ return "";
1355
+ }), t;
1356
+ }
1357
+ var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1358
+ function An(e) {
1359
+ if (e.length === 0)
1360
+ throw new Error("Number skeleton cannot be empty");
1361
+ for (var t = e.split(Bn).filter(function(f) {
1362
+ return f.length > 0;
1363
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1364
+ var o = i[n], s = o.split("/");
1365
+ if (s.length === 0)
1366
+ throw new Error("Invalid number skeleton");
1367
+ for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
1368
+ var c = l[u];
1369
+ if (c.length === 0)
1370
+ throw new Error("Invalid number skeleton");
1371
+ }
1372
+ r.push({ stem: a, options: h });
1373
+ }
1374
+ return r;
1375
+ }
1376
+ function Pn(e) {
1377
+ return e.replace(/^(.*?)-/, "");
1378
+ }
1379
+ var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
1380
+ function mt(e) {
1381
+ var t = {};
1382
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
1383
+ 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)), "";
1384
+ }), t;
1385
+ }
1386
+ function tr(e) {
1387
+ switch (e) {
1388
+ case "sign-auto":
1389
+ return {
1390
+ signDisplay: "auto"
1391
+ };
1392
+ case "sign-accounting":
1393
+ case "()":
1394
+ return {
1395
+ currencySign: "accounting"
1396
+ };
1397
+ case "sign-always":
1398
+ case "+!":
1399
+ return {
1400
+ signDisplay: "always"
1401
+ };
1402
+ case "sign-accounting-always":
1403
+ case "()!":
1404
+ return {
1405
+ signDisplay: "always",
1406
+ currencySign: "accounting"
1407
+ };
1408
+ case "sign-except-zero":
1409
+ case "+?":
1410
+ return {
1411
+ signDisplay: "exceptZero"
1412
+ };
1413
+ case "sign-accounting-except-zero":
1414
+ case "()?":
1415
+ return {
1416
+ signDisplay: "exceptZero",
1417
+ currencySign: "accounting"
1418
+ };
1419
+ case "sign-never":
1420
+ case "+_":
1421
+ return {
1422
+ signDisplay: "never"
1423
+ };
1424
+ }
1425
+ }
1426
+ function In(e) {
1427
+ var t;
1428
+ if (e[0] === "E" && e[1] === "E" ? (t = {
1429
+ notation: "engineering"
1430
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
1431
+ notation: "scientific"
1432
+ }, e = e.slice(1)), t) {
1433
+ var r = e.slice(0, 2);
1434
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
1435
+ throw new Error("Malformed concise eng/scientific notation");
1436
+ t.minimumIntegerDigits = e.length;
1437
+ }
1438
+ return t;
1439
+ }
1440
+ function dt(e) {
1441
+ var t = {}, r = tr(e);
1442
+ return r || t;
1443
+ }
1444
+ function Nn(e) {
1445
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1446
+ var i = n[r];
1447
+ switch (i.stem) {
1448
+ case "percent":
1449
+ case "%":
1450
+ t.style = "percent";
1451
+ continue;
1452
+ case "%x100":
1453
+ t.style = "percent", t.scale = 100;
1454
+ continue;
1455
+ case "currency":
1456
+ t.style = "currency", t.currency = i.options[0];
1457
+ continue;
1458
+ case "group-off":
1459
+ case ",_":
1460
+ t.useGrouping = !1;
1461
+ continue;
1462
+ case "precision-integer":
1463
+ case ".":
1464
+ t.maximumFractionDigits = 0;
1465
+ continue;
1466
+ case "measure-unit":
1467
+ case "unit":
1468
+ t.style = "unit", t.unit = Pn(i.options[0]);
1469
+ continue;
1470
+ case "compact-short":
1471
+ case "K":
1472
+ t.notation = "compact", t.compactDisplay = "short";
1473
+ continue;
1474
+ case "compact-long":
1475
+ case "KK":
1476
+ t.notation = "compact", t.compactDisplay = "long";
1477
+ continue;
1478
+ case "scientific":
1479
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1480
+ return E(E({}, h), dt(u));
1481
+ }, {}));
1482
+ continue;
1483
+ case "engineering":
1484
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1485
+ return E(E({}, h), dt(u));
1486
+ }, {}));
1487
+ continue;
1488
+ case "notation-simple":
1489
+ t.notation = "standard";
1490
+ continue;
1491
+ case "unit-width-narrow":
1492
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1493
+ continue;
1494
+ case "unit-width-short":
1495
+ t.currencyDisplay = "code", t.unitDisplay = "short";
1496
+ continue;
1497
+ case "unit-width-full-name":
1498
+ t.currencyDisplay = "name", t.unitDisplay = "long";
1499
+ continue;
1500
+ case "unit-width-iso-code":
1501
+ t.currencyDisplay = "symbol";
1502
+ continue;
1503
+ case "scale":
1504
+ t.scale = parseFloat(i.options[0]);
1505
+ continue;
1506
+ case "rounding-mode-floor":
1507
+ t.roundingMode = "floor";
1508
+ continue;
1509
+ case "rounding-mode-ceiling":
1510
+ t.roundingMode = "ceil";
1511
+ continue;
1512
+ case "rounding-mode-down":
1513
+ t.roundingMode = "trunc";
1514
+ continue;
1515
+ case "rounding-mode-up":
1516
+ t.roundingMode = "expand";
1517
+ continue;
1518
+ case "rounding-mode-half-even":
1519
+ t.roundingMode = "halfEven";
1520
+ continue;
1521
+ case "rounding-mode-half-down":
1522
+ t.roundingMode = "halfTrunc";
1523
+ continue;
1524
+ case "rounding-mode-half-up":
1525
+ t.roundingMode = "halfExpand";
1526
+ continue;
1527
+ case "integer-width":
1528
+ if (i.options.length > 1)
1529
+ throw new RangeError("integer-width stems only accept a single optional option");
1530
+ i.options[0].replace(On, function(h, u, l, c, f, p) {
1531
+ if (u)
1532
+ t.minimumIntegerDigits = l.length;
1533
+ else {
1534
+ if (c && f)
1535
+ throw new Error("We currently do not support maximum integer digits");
1536
+ if (p)
1537
+ throw new Error("We currently do not support exact integer digits");
1538
+ }
1539
+ return "";
1540
+ });
1541
+ continue;
1542
+ }
1543
+ if (er.test(i.stem)) {
1544
+ t.minimumIntegerDigits = i.stem.length;
1545
+ continue;
1546
+ }
1547
+ if (pt.test(i.stem)) {
1548
+ if (i.options.length > 1)
1549
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
1550
+ i.stem.replace(pt, function(h, u, l, c, f, p) {
1551
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1552
+ });
1553
+ var o = i.options[0];
1554
+ o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), mt(o)));
1555
+ continue;
1556
+ }
1557
+ if (Kt.test(i.stem)) {
1558
+ t = E(E({}, t), mt(i.stem));
1559
+ continue;
1560
+ }
1561
+ var s = tr(i.stem);
1562
+ s && (t = E(E({}, t), s));
1563
+ var a = In(i.stem);
1564
+ a && (t = E(E({}, t), a));
1565
+ }
1566
+ return t;
1567
+ }
1568
+ var he = {
1569
+ "001": [
1570
+ "H",
1571
+ "h"
1572
+ ],
1573
+ 419: [
1574
+ "h",
1575
+ "H",
1576
+ "hB",
1577
+ "hb"
1578
+ ],
1579
+ AC: [
1580
+ "H",
1581
+ "h",
1582
+ "hb",
1583
+ "hB"
1584
+ ],
1585
+ AD: [
1586
+ "H",
1587
+ "hB"
1588
+ ],
1589
+ AE: [
1590
+ "h",
1591
+ "hB",
1592
+ "hb",
1593
+ "H"
1594
+ ],
1595
+ AF: [
1596
+ "H",
1597
+ "hb",
1598
+ "hB",
1599
+ "h"
1600
+ ],
1601
+ AG: [
1602
+ "h",
1603
+ "hb",
1604
+ "H",
1605
+ "hB"
1606
+ ],
1607
+ AI: [
1608
+ "H",
1609
+ "h",
1610
+ "hb",
1611
+ "hB"
1612
+ ],
1613
+ AL: [
1614
+ "h",
1615
+ "H",
1616
+ "hB"
1617
+ ],
1618
+ AM: [
1619
+ "H",
1620
+ "hB"
1621
+ ],
1622
+ AO: [
1623
+ "H",
1624
+ "hB"
1625
+ ],
1626
+ AR: [
1627
+ "h",
1628
+ "H",
1629
+ "hB",
1630
+ "hb"
1631
+ ],
1632
+ AS: [
1633
+ "h",
1634
+ "H"
1635
+ ],
1636
+ AT: [
1637
+ "H",
1638
+ "hB"
1639
+ ],
1640
+ AU: [
1641
+ "h",
1642
+ "hb",
1643
+ "H",
1644
+ "hB"
1645
+ ],
1646
+ AW: [
1647
+ "H",
1648
+ "hB"
1649
+ ],
1650
+ AX: [
1651
+ "H"
1652
+ ],
1653
+ AZ: [
1654
+ "H",
1655
+ "hB",
1656
+ "h"
1657
+ ],
1658
+ BA: [
1659
+ "H",
1660
+ "hB",
1661
+ "h"
1662
+ ],
1663
+ BB: [
1664
+ "h",
1665
+ "hb",
1666
+ "H",
1667
+ "hB"
1668
+ ],
1669
+ BD: [
1670
+ "h",
1671
+ "hB",
1672
+ "H"
1673
+ ],
1674
+ BE: [
1675
+ "H",
1676
+ "hB"
1677
+ ],
1678
+ BF: [
1679
+ "H",
1680
+ "hB"
1681
+ ],
1682
+ BG: [
1683
+ "H",
1684
+ "hB",
1685
+ "h"
1686
+ ],
1687
+ BH: [
1688
+ "h",
1689
+ "hB",
1690
+ "hb",
1691
+ "H"
1692
+ ],
1693
+ BI: [
1694
+ "H",
1695
+ "h"
1696
+ ],
1697
+ BJ: [
1698
+ "H",
1699
+ "hB"
1700
+ ],
1701
+ BL: [
1702
+ "H",
1703
+ "hB"
1704
+ ],
1705
+ BM: [
1706
+ "h",
1707
+ "hb",
1708
+ "H",
1709
+ "hB"
1710
+ ],
1711
+ BN: [
1712
+ "hb",
1713
+ "hB",
1714
+ "h",
1715
+ "H"
1716
+ ],
1717
+ BO: [
1718
+ "h",
1719
+ "H",
1720
+ "hB",
1721
+ "hb"
1722
+ ],
1723
+ BQ: [
1724
+ "H"
1725
+ ],
1726
+ BR: [
1727
+ "H",
1728
+ "hB"
1729
+ ],
1730
+ BS: [
1731
+ "h",
1732
+ "hb",
1733
+ "H",
1734
+ "hB"
1735
+ ],
1736
+ BT: [
1737
+ "h",
1738
+ "H"
1739
+ ],
1740
+ BW: [
1741
+ "H",
1742
+ "h",
1743
+ "hb",
1744
+ "hB"
1745
+ ],
1746
+ BY: [
1747
+ "H",
1748
+ "h"
1749
+ ],
1750
+ BZ: [
1751
+ "H",
1752
+ "h",
1753
+ "hb",
1754
+ "hB"
1755
+ ],
1756
+ CA: [
1757
+ "h",
1758
+ "hb",
1759
+ "H",
1760
+ "hB"
1761
+ ],
1762
+ CC: [
1763
+ "H",
1764
+ "h",
1765
+ "hb",
1766
+ "hB"
1767
+ ],
1768
+ CD: [
1769
+ "hB",
1770
+ "H"
1771
+ ],
1772
+ CF: [
1773
+ "H",
1774
+ "h",
1775
+ "hB"
1776
+ ],
1777
+ CG: [
1778
+ "H",
1779
+ "hB"
1780
+ ],
1781
+ CH: [
1782
+ "H",
1783
+ "hB",
1784
+ "h"
1785
+ ],
1786
+ CI: [
1787
+ "H",
1788
+ "hB"
1789
+ ],
1790
+ CK: [
1791
+ "H",
1792
+ "h",
1793
+ "hb",
1794
+ "hB"
1795
+ ],
1796
+ CL: [
1797
+ "h",
1798
+ "H",
1799
+ "hB",
1800
+ "hb"
1801
+ ],
1802
+ CM: [
1803
+ "H",
1804
+ "h",
1805
+ "hB"
1806
+ ],
1807
+ CN: [
1808
+ "H",
1809
+ "hB",
1810
+ "hb",
1811
+ "h"
1812
+ ],
1813
+ CO: [
1814
+ "h",
1815
+ "H",
1816
+ "hB",
1817
+ "hb"
1818
+ ],
1819
+ CP: [
1820
+ "H"
1821
+ ],
1822
+ CR: [
1823
+ "h",
1824
+ "H",
1825
+ "hB",
1826
+ "hb"
1827
+ ],
1828
+ CU: [
1829
+ "h",
1830
+ "H",
1831
+ "hB",
1832
+ "hb"
1833
+ ],
1834
+ CV: [
1835
+ "H",
1836
+ "hB"
1837
+ ],
1838
+ CW: [
1839
+ "H",
1840
+ "hB"
1841
+ ],
1842
+ CX: [
1843
+ "H",
1844
+ "h",
1845
+ "hb",
1846
+ "hB"
1847
+ ],
1848
+ CY: [
1849
+ "h",
1850
+ "H",
1851
+ "hb",
1852
+ "hB"
1853
+ ],
1854
+ CZ: [
1855
+ "H"
1856
+ ],
1857
+ DE: [
1858
+ "H",
1859
+ "hB"
1860
+ ],
1861
+ DG: [
1862
+ "H",
1863
+ "h",
1864
+ "hb",
1865
+ "hB"
1866
+ ],
1867
+ DJ: [
1868
+ "h",
1869
+ "H"
1870
+ ],
1871
+ DK: [
1872
+ "H"
1873
+ ],
1874
+ DM: [
1875
+ "h",
1876
+ "hb",
1877
+ "H",
1878
+ "hB"
1879
+ ],
1880
+ DO: [
1881
+ "h",
1882
+ "H",
1883
+ "hB",
1884
+ "hb"
1885
+ ],
1886
+ DZ: [
1887
+ "h",
1888
+ "hB",
1889
+ "hb",
1890
+ "H"
1891
+ ],
1892
+ EA: [
1893
+ "H",
1894
+ "h",
1895
+ "hB",
1896
+ "hb"
1897
+ ],
1898
+ EC: [
1899
+ "h",
1900
+ "H",
1901
+ "hB",
1902
+ "hb"
1903
+ ],
1904
+ EE: [
1905
+ "H",
1906
+ "hB"
1907
+ ],
1908
+ EG: [
1909
+ "h",
1910
+ "hB",
1911
+ "hb",
1912
+ "H"
1913
+ ],
1914
+ EH: [
1915
+ "h",
1916
+ "hB",
1917
+ "hb",
1918
+ "H"
1919
+ ],
1920
+ ER: [
1921
+ "h",
1922
+ "H"
1923
+ ],
1924
+ ES: [
1925
+ "H",
1926
+ "hB",
1927
+ "h",
1928
+ "hb"
1929
+ ],
1930
+ ET: [
1931
+ "hB",
1932
+ "hb",
1933
+ "h",
1934
+ "H"
1935
+ ],
1936
+ FI: [
1937
+ "H"
1938
+ ],
1939
+ FJ: [
1940
+ "h",
1941
+ "hb",
1942
+ "H",
1943
+ "hB"
1944
+ ],
1945
+ FK: [
1946
+ "H",
1947
+ "h",
1948
+ "hb",
1949
+ "hB"
1950
+ ],
1951
+ FM: [
1952
+ "h",
1953
+ "hb",
1954
+ "H",
1955
+ "hB"
1956
+ ],
1957
+ FO: [
1958
+ "H",
1959
+ "h"
1960
+ ],
1961
+ FR: [
1962
+ "H",
1963
+ "hB"
1964
+ ],
1965
+ GA: [
1966
+ "H",
1967
+ "hB"
1968
+ ],
1969
+ GB: [
1970
+ "H",
1971
+ "h",
1972
+ "hb",
1973
+ "hB"
1974
+ ],
1975
+ GD: [
1976
+ "h",
1977
+ "hb",
1978
+ "H",
1979
+ "hB"
1980
+ ],
1981
+ GE: [
1982
+ "H",
1983
+ "hB",
1984
+ "h"
1985
+ ],
1986
+ GF: [
1987
+ "H",
1988
+ "hB"
1989
+ ],
1990
+ GG: [
1991
+ "H",
1992
+ "h",
1993
+ "hb",
1994
+ "hB"
1995
+ ],
1996
+ GH: [
1997
+ "h",
1998
+ "H"
1999
+ ],
2000
+ GI: [
2001
+ "H",
2002
+ "h",
2003
+ "hb",
2004
+ "hB"
2005
+ ],
2006
+ GL: [
2007
+ "H",
2008
+ "h"
2009
+ ],
2010
+ GM: [
2011
+ "h",
2012
+ "hb",
2013
+ "H",
2014
+ "hB"
2015
+ ],
2016
+ GN: [
2017
+ "H",
2018
+ "hB"
2019
+ ],
2020
+ GP: [
2021
+ "H",
2022
+ "hB"
2023
+ ],
2024
+ GQ: [
2025
+ "H",
2026
+ "hB",
2027
+ "h",
2028
+ "hb"
2029
+ ],
2030
+ GR: [
2031
+ "h",
2032
+ "H",
2033
+ "hb",
2034
+ "hB"
2035
+ ],
2036
+ GT: [
2037
+ "h",
2038
+ "H",
2039
+ "hB",
2040
+ "hb"
2041
+ ],
2042
+ GU: [
2043
+ "h",
2044
+ "hb",
2045
+ "H",
2046
+ "hB"
2047
+ ],
2048
+ GW: [
2049
+ "H",
2050
+ "hB"
2051
+ ],
2052
+ GY: [
2053
+ "h",
2054
+ "hb",
2055
+ "H",
2056
+ "hB"
2057
+ ],
2058
+ HK: [
2059
+ "h",
2060
+ "hB",
2061
+ "hb",
2062
+ "H"
2063
+ ],
2064
+ HN: [
2065
+ "h",
2066
+ "H",
2067
+ "hB",
2068
+ "hb"
2069
+ ],
2070
+ HR: [
2071
+ "H",
2072
+ "hB"
2073
+ ],
2074
+ HU: [
2075
+ "H",
2076
+ "h"
2077
+ ],
2078
+ IC: [
2079
+ "H",
2080
+ "h",
2081
+ "hB",
2082
+ "hb"
2083
+ ],
2084
+ ID: [
2085
+ "H"
2086
+ ],
2087
+ IE: [
2088
+ "H",
2089
+ "h",
2090
+ "hb",
2091
+ "hB"
2092
+ ],
2093
+ IL: [
2094
+ "H",
2095
+ "hB"
2096
+ ],
2097
+ IM: [
2098
+ "H",
2099
+ "h",
2100
+ "hb",
2101
+ "hB"
2102
+ ],
2103
+ IN: [
2104
+ "h",
2105
+ "H"
2106
+ ],
2107
+ IO: [
2108
+ "H",
2109
+ "h",
2110
+ "hb",
2111
+ "hB"
2112
+ ],
2113
+ IQ: [
2114
+ "h",
2115
+ "hB",
2116
+ "hb",
2117
+ "H"
2118
+ ],
2119
+ IR: [
2120
+ "hB",
2121
+ "H"
2122
+ ],
2123
+ IS: [
2124
+ "H"
2125
+ ],
2126
+ IT: [
2127
+ "H",
2128
+ "hB"
2129
+ ],
2130
+ JE: [
2131
+ "H",
2132
+ "h",
2133
+ "hb",
2134
+ "hB"
2135
+ ],
2136
+ JM: [
2137
+ "h",
2138
+ "hb",
2139
+ "H",
2140
+ "hB"
2141
+ ],
2142
+ JO: [
2143
+ "h",
2144
+ "hB",
2145
+ "hb",
2146
+ "H"
2147
+ ],
2148
+ JP: [
2149
+ "H",
2150
+ "K",
2151
+ "h"
2152
+ ],
2153
+ KE: [
2154
+ "hB",
2155
+ "hb",
2156
+ "H",
2157
+ "h"
2158
+ ],
2159
+ KG: [
2160
+ "H",
2161
+ "h",
2162
+ "hB",
2163
+ "hb"
2164
+ ],
2165
+ KH: [
2166
+ "hB",
2167
+ "h",
2168
+ "H",
2169
+ "hb"
2170
+ ],
2171
+ KI: [
2172
+ "h",
2173
+ "hb",
2174
+ "H",
2175
+ "hB"
2176
+ ],
2177
+ KM: [
2178
+ "H",
2179
+ "h",
2180
+ "hB",
2181
+ "hb"
2182
+ ],
2183
+ KN: [
2184
+ "h",
2185
+ "hb",
2186
+ "H",
2187
+ "hB"
2188
+ ],
2189
+ KP: [
2190
+ "h",
2191
+ "H",
2192
+ "hB",
2193
+ "hb"
2194
+ ],
2195
+ KR: [
2196
+ "h",
2197
+ "H",
2198
+ "hB",
2199
+ "hb"
2200
+ ],
2201
+ KW: [
2202
+ "h",
2203
+ "hB",
2204
+ "hb",
2205
+ "H"
2206
+ ],
2207
+ KY: [
2208
+ "h",
2209
+ "hb",
2210
+ "H",
2211
+ "hB"
2212
+ ],
2213
+ KZ: [
2214
+ "H",
2215
+ "hB"
2216
+ ],
2217
+ LA: [
2218
+ "H",
2219
+ "hb",
2220
+ "hB",
2221
+ "h"
2222
+ ],
2223
+ LB: [
2224
+ "h",
2225
+ "hB",
2226
+ "hb",
2227
+ "H"
2228
+ ],
2229
+ LC: [
2230
+ "h",
2231
+ "hb",
2232
+ "H",
2233
+ "hB"
2234
+ ],
2235
+ LI: [
2236
+ "H",
2237
+ "hB",
2238
+ "h"
2239
+ ],
2240
+ LK: [
2241
+ "H",
2242
+ "h",
2243
+ "hB",
2244
+ "hb"
2245
+ ],
2246
+ LR: [
2247
+ "h",
2248
+ "hb",
2249
+ "H",
2250
+ "hB"
2251
+ ],
2252
+ LS: [
2253
+ "h",
2254
+ "H"
2255
+ ],
2256
+ LT: [
2257
+ "H",
2258
+ "h",
2259
+ "hb",
2260
+ "hB"
2261
+ ],
2262
+ LU: [
2263
+ "H",
2264
+ "h",
2265
+ "hB"
2266
+ ],
2267
+ LV: [
2268
+ "H",
2269
+ "hB",
2270
+ "hb",
2271
+ "h"
2272
+ ],
2273
+ LY: [
2274
+ "h",
2275
+ "hB",
2276
+ "hb",
2277
+ "H"
2278
+ ],
2279
+ MA: [
2280
+ "H",
2281
+ "h",
2282
+ "hB",
2283
+ "hb"
2284
+ ],
2285
+ MC: [
2286
+ "H",
2287
+ "hB"
2288
+ ],
2289
+ MD: [
2290
+ "H",
2291
+ "hB"
2292
+ ],
2293
+ ME: [
2294
+ "H",
2295
+ "hB",
2296
+ "h"
2297
+ ],
2298
+ MF: [
2299
+ "H",
2300
+ "hB"
2301
+ ],
2302
+ MG: [
2303
+ "H",
2304
+ "h"
2305
+ ],
2306
+ MH: [
2307
+ "h",
2308
+ "hb",
2309
+ "H",
2310
+ "hB"
2311
+ ],
2312
+ MK: [
2313
+ "H",
2314
+ "h",
2315
+ "hb",
2316
+ "hB"
2317
+ ],
2318
+ ML: [
2319
+ "H"
2320
+ ],
2321
+ MM: [
2322
+ "hB",
2323
+ "hb",
2324
+ "H",
2325
+ "h"
2326
+ ],
2327
+ MN: [
2328
+ "H",
2329
+ "h",
2330
+ "hb",
2331
+ "hB"
2332
+ ],
2333
+ MO: [
2334
+ "h",
2335
+ "hB",
2336
+ "hb",
2337
+ "H"
2338
+ ],
2339
+ MP: [
2340
+ "h",
2341
+ "hb",
2342
+ "H",
2343
+ "hB"
2344
+ ],
2345
+ MQ: [
2346
+ "H",
2347
+ "hB"
2348
+ ],
2349
+ MR: [
2350
+ "h",
2351
+ "hB",
2352
+ "hb",
2353
+ "H"
2354
+ ],
2355
+ MS: [
2356
+ "H",
2357
+ "h",
2358
+ "hb",
2359
+ "hB"
2360
+ ],
2361
+ MT: [
2362
+ "H",
2363
+ "h"
2364
+ ],
2365
+ MU: [
2366
+ "H",
2367
+ "h"
2368
+ ],
2369
+ MV: [
2370
+ "H",
2371
+ "h"
2372
+ ],
2373
+ MW: [
2374
+ "h",
2375
+ "hb",
2376
+ "H",
2377
+ "hB"
2378
+ ],
2379
+ MX: [
2380
+ "h",
2381
+ "H",
2382
+ "hB",
2383
+ "hb"
2384
+ ],
2385
+ MY: [
2386
+ "hb",
2387
+ "hB",
2388
+ "h",
2389
+ "H"
2390
+ ],
2391
+ MZ: [
2392
+ "H",
2393
+ "hB"
2394
+ ],
2395
+ NA: [
2396
+ "h",
2397
+ "H",
2398
+ "hB",
2399
+ "hb"
2400
+ ],
2401
+ NC: [
2402
+ "H",
2403
+ "hB"
2404
+ ],
2405
+ NE: [
2406
+ "H"
2407
+ ],
2408
+ NF: [
2409
+ "H",
2410
+ "h",
2411
+ "hb",
2412
+ "hB"
2413
+ ],
2414
+ NG: [
2415
+ "H",
2416
+ "h",
2417
+ "hb",
2418
+ "hB"
2419
+ ],
2420
+ NI: [
2421
+ "h",
2422
+ "H",
2423
+ "hB",
2424
+ "hb"
2425
+ ],
2426
+ NL: [
2427
+ "H",
2428
+ "hB"
2429
+ ],
2430
+ NO: [
2431
+ "H",
2432
+ "h"
2433
+ ],
2434
+ NP: [
2435
+ "H",
2436
+ "h",
2437
+ "hB"
2438
+ ],
2439
+ NR: [
2440
+ "H",
2441
+ "h",
2442
+ "hb",
2443
+ "hB"
2444
+ ],
2445
+ NU: [
2446
+ "H",
2447
+ "h",
2448
+ "hb",
2449
+ "hB"
2450
+ ],
2451
+ NZ: [
2452
+ "h",
2453
+ "hb",
2454
+ "H",
2455
+ "hB"
2456
+ ],
2457
+ OM: [
2458
+ "h",
2459
+ "hB",
2460
+ "hb",
2461
+ "H"
2462
+ ],
2463
+ PA: [
2464
+ "h",
2465
+ "H",
2466
+ "hB",
2467
+ "hb"
2468
+ ],
2469
+ PE: [
2470
+ "h",
2471
+ "H",
2472
+ "hB",
2473
+ "hb"
2474
+ ],
2475
+ PF: [
2476
+ "H",
2477
+ "h",
2478
+ "hB"
2479
+ ],
2480
+ PG: [
2481
+ "h",
2482
+ "H"
2483
+ ],
2484
+ PH: [
2485
+ "h",
2486
+ "hB",
2487
+ "hb",
2488
+ "H"
2489
+ ],
2490
+ PK: [
2491
+ "h",
2492
+ "hB",
2493
+ "H"
2494
+ ],
2495
+ PL: [
2496
+ "H",
2497
+ "h"
2498
+ ],
2499
+ PM: [
2500
+ "H",
2501
+ "hB"
2502
+ ],
2503
+ PN: [
2504
+ "H",
2505
+ "h",
2506
+ "hb",
2507
+ "hB"
2508
+ ],
2509
+ PR: [
2510
+ "h",
2511
+ "H",
2512
+ "hB",
2513
+ "hb"
2514
+ ],
2515
+ PS: [
2516
+ "h",
2517
+ "hB",
2518
+ "hb",
2519
+ "H"
2520
+ ],
2521
+ PT: [
2522
+ "H",
2523
+ "hB"
2524
+ ],
2525
+ PW: [
2526
+ "h",
2527
+ "H"
2528
+ ],
2529
+ PY: [
2530
+ "h",
2531
+ "H",
2532
+ "hB",
2533
+ "hb"
2534
+ ],
2535
+ QA: [
2536
+ "h",
2537
+ "hB",
2538
+ "hb",
2539
+ "H"
2540
+ ],
2541
+ RE: [
2542
+ "H",
2543
+ "hB"
2544
+ ],
2545
+ RO: [
2546
+ "H",
2547
+ "hB"
2548
+ ],
2549
+ RS: [
2550
+ "H",
2551
+ "hB",
2552
+ "h"
2553
+ ],
2554
+ RU: [
2555
+ "H"
2556
+ ],
2557
+ RW: [
2558
+ "H",
2559
+ "h"
2560
+ ],
2561
+ SA: [
2562
+ "h",
2563
+ "hB",
2564
+ "hb",
2565
+ "H"
2566
+ ],
2567
+ SB: [
2568
+ "h",
2569
+ "hb",
2570
+ "H",
2571
+ "hB"
2572
+ ],
2573
+ SC: [
2574
+ "H",
2575
+ "h",
2576
+ "hB"
2577
+ ],
2578
+ SD: [
2579
+ "h",
2580
+ "hB",
2581
+ "hb",
2582
+ "H"
2583
+ ],
2584
+ SE: [
2585
+ "H"
2586
+ ],
2587
+ SG: [
2588
+ "h",
2589
+ "hb",
2590
+ "H",
2591
+ "hB"
2592
+ ],
2593
+ SH: [
2594
+ "H",
2595
+ "h",
2596
+ "hb",
2597
+ "hB"
2598
+ ],
2599
+ SI: [
2600
+ "H",
2601
+ "hB"
2602
+ ],
2603
+ SJ: [
2604
+ "H"
2605
+ ],
2606
+ SK: [
2607
+ "H"
2608
+ ],
2609
+ SL: [
2610
+ "h",
2611
+ "hb",
2612
+ "H",
2613
+ "hB"
2614
+ ],
2615
+ SM: [
2616
+ "H",
2617
+ "h",
2618
+ "hB"
2619
+ ],
2620
+ SN: [
2621
+ "H",
2622
+ "h",
2623
+ "hB"
2624
+ ],
2625
+ SO: [
2626
+ "h",
2627
+ "H"
2628
+ ],
2629
+ SR: [
2630
+ "H",
2631
+ "hB"
2632
+ ],
2633
+ SS: [
2634
+ "h",
2635
+ "hb",
2636
+ "H",
2637
+ "hB"
2638
+ ],
2639
+ ST: [
2640
+ "H",
2641
+ "hB"
2642
+ ],
2643
+ SV: [
2644
+ "h",
2645
+ "H",
2646
+ "hB",
2647
+ "hb"
2648
+ ],
2649
+ SX: [
2650
+ "H",
2651
+ "h",
2652
+ "hb",
2653
+ "hB"
2654
+ ],
2655
+ SY: [
2656
+ "h",
2657
+ "hB",
2658
+ "hb",
2659
+ "H"
2660
+ ],
2661
+ SZ: [
2662
+ "h",
2663
+ "hb",
2664
+ "H",
2665
+ "hB"
2666
+ ],
2667
+ TA: [
2668
+ "H",
2669
+ "h",
2670
+ "hb",
2671
+ "hB"
2672
+ ],
2673
+ TC: [
2674
+ "h",
2675
+ "hb",
2676
+ "H",
2677
+ "hB"
2678
+ ],
2679
+ TD: [
2680
+ "h",
2681
+ "H",
2682
+ "hB"
2683
+ ],
2684
+ TF: [
2685
+ "H",
2686
+ "h",
2687
+ "hB"
2688
+ ],
2689
+ TG: [
2690
+ "H",
2691
+ "hB"
2692
+ ],
2693
+ TH: [
2694
+ "H",
2695
+ "h"
2696
+ ],
2697
+ TJ: [
2698
+ "H",
2699
+ "h"
2700
+ ],
2701
+ TL: [
2702
+ "H",
2703
+ "hB",
2704
+ "hb",
2705
+ "h"
2706
+ ],
2707
+ TM: [
2708
+ "H",
2709
+ "h"
2710
+ ],
2711
+ TN: [
2712
+ "h",
2713
+ "hB",
2714
+ "hb",
2715
+ "H"
2716
+ ],
2717
+ TO: [
2718
+ "h",
2719
+ "H"
2720
+ ],
2721
+ TR: [
2722
+ "H",
2723
+ "hB"
2724
+ ],
2725
+ TT: [
2726
+ "h",
2727
+ "hb",
2728
+ "H",
2729
+ "hB"
2730
+ ],
2731
+ TW: [
2732
+ "hB",
2733
+ "hb",
2734
+ "h",
2735
+ "H"
2736
+ ],
2737
+ TZ: [
2738
+ "hB",
2739
+ "hb",
2740
+ "H",
2741
+ "h"
2742
+ ],
2743
+ UA: [
2744
+ "H",
2745
+ "hB",
2746
+ "h"
2747
+ ],
2748
+ UG: [
2749
+ "hB",
2750
+ "hb",
2751
+ "H",
2752
+ "h"
2753
+ ],
2754
+ UM: [
2755
+ "h",
2756
+ "hb",
2757
+ "H",
2758
+ "hB"
2759
+ ],
2760
+ US: [
2761
+ "h",
2762
+ "hb",
2763
+ "H",
2764
+ "hB"
2765
+ ],
2766
+ UY: [
2767
+ "h",
2768
+ "H",
2769
+ "hB",
2770
+ "hb"
2771
+ ],
2772
+ UZ: [
2773
+ "H",
2774
+ "hB",
2775
+ "h"
2776
+ ],
2777
+ VA: [
2778
+ "H",
2779
+ "h",
2780
+ "hB"
2781
+ ],
2782
+ VC: [
2783
+ "h",
2784
+ "hb",
2785
+ "H",
2786
+ "hB"
2787
+ ],
2788
+ VE: [
2789
+ "h",
2790
+ "H",
2791
+ "hB",
2792
+ "hb"
2793
+ ],
2794
+ VG: [
2795
+ "h",
2796
+ "hb",
2797
+ "H",
2798
+ "hB"
2799
+ ],
2800
+ VI: [
2801
+ "h",
2802
+ "hb",
2803
+ "H",
2804
+ "hB"
2805
+ ],
2806
+ VN: [
2807
+ "H",
2808
+ "h"
2809
+ ],
2810
+ VU: [
2811
+ "h",
2812
+ "H"
2813
+ ],
2814
+ WF: [
2815
+ "H",
2816
+ "hB"
2817
+ ],
2818
+ WS: [
2819
+ "h",
2820
+ "H"
2821
+ ],
2822
+ XK: [
2823
+ "H",
2824
+ "hB",
2825
+ "h"
2826
+ ],
2827
+ YE: [
2828
+ "h",
2829
+ "hB",
2830
+ "hb",
2831
+ "H"
2832
+ ],
2833
+ YT: [
2834
+ "H",
2835
+ "hB"
2836
+ ],
2837
+ ZA: [
2838
+ "H",
2839
+ "h",
2840
+ "hb",
2841
+ "hB"
2842
+ ],
2843
+ ZM: [
2844
+ "h",
2845
+ "hb",
2846
+ "H",
2847
+ "hB"
2848
+ ],
2849
+ ZW: [
2850
+ "H",
2851
+ "h"
2852
+ ],
2853
+ "af-ZA": [
2854
+ "H",
2855
+ "h",
2856
+ "hB",
2857
+ "hb"
2858
+ ],
2859
+ "ar-001": [
2860
+ "h",
2861
+ "hB",
2862
+ "hb",
2863
+ "H"
2864
+ ],
2865
+ "ca-ES": [
2866
+ "H",
2867
+ "h",
2868
+ "hB"
2869
+ ],
2870
+ "en-001": [
2871
+ "h",
2872
+ "hb",
2873
+ "H",
2874
+ "hB"
2875
+ ],
2876
+ "en-HK": [
2877
+ "h",
2878
+ "hb",
2879
+ "H",
2880
+ "hB"
2881
+ ],
2882
+ "en-IL": [
2883
+ "H",
2884
+ "h",
2885
+ "hb",
2886
+ "hB"
2887
+ ],
2888
+ "en-MY": [
2889
+ "h",
2890
+ "hb",
2891
+ "H",
2892
+ "hB"
2893
+ ],
2894
+ "es-BR": [
2895
+ "H",
2896
+ "h",
2897
+ "hB",
2898
+ "hb"
2899
+ ],
2900
+ "es-ES": [
2901
+ "H",
2902
+ "h",
2903
+ "hB",
2904
+ "hb"
2905
+ ],
2906
+ "es-GQ": [
2907
+ "H",
2908
+ "h",
2909
+ "hB",
2910
+ "hb"
2911
+ ],
2912
+ "fr-CA": [
2913
+ "H",
2914
+ "h",
2915
+ "hB"
2916
+ ],
2917
+ "gl-ES": [
2918
+ "H",
2919
+ "h",
2920
+ "hB"
2921
+ ],
2922
+ "gu-IN": [
2923
+ "hB",
2924
+ "hb",
2925
+ "h",
2926
+ "H"
2927
+ ],
2928
+ "hi-IN": [
2929
+ "hB",
2930
+ "h",
2931
+ "H"
2932
+ ],
2933
+ "it-CH": [
2934
+ "H",
2935
+ "h",
2936
+ "hB"
2937
+ ],
2938
+ "it-IT": [
2939
+ "H",
2940
+ "h",
2941
+ "hB"
2942
+ ],
2943
+ "kn-IN": [
2944
+ "hB",
2945
+ "h",
2946
+ "H"
2947
+ ],
2948
+ "ml-IN": [
2949
+ "hB",
2950
+ "h",
2951
+ "H"
2952
+ ],
2953
+ "mr-IN": [
2954
+ "hB",
2955
+ "hb",
2956
+ "h",
2957
+ "H"
2958
+ ],
2959
+ "pa-IN": [
2960
+ "hB",
2961
+ "hb",
2962
+ "h",
2963
+ "H"
2964
+ ],
2965
+ "ta-IN": [
2966
+ "hB",
2967
+ "h",
2968
+ "hb",
2969
+ "H"
2970
+ ],
2971
+ "te-IN": [
2972
+ "hB",
2973
+ "h",
2974
+ "H"
2975
+ ],
2976
+ "zu-ZA": [
2977
+ "H",
2978
+ "hB",
2979
+ "hb",
2980
+ "h"
2981
+ ]
2982
+ };
2983
+ function Ln(e, t) {
2984
+ for (var r = "", n = 0; n < e.length; n++) {
2985
+ var i = e.charAt(n);
2986
+ if (i === "j") {
2987
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2988
+ o++, n++;
2989
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
2990
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2991
+ r += h;
2992
+ for (; s-- > 0; )
2993
+ r = u + r;
2994
+ } else
2995
+ i === "J" ? r += "H" : r += i;
2996
+ }
2997
+ return r;
2998
+ }
2999
+ function Cn(e) {
3000
+ var t = e.hourCycle;
3001
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3002
+ e.hourCycles && // @ts-ignore
3003
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
3004
+ switch (t) {
3005
+ case "h24":
3006
+ return "k";
3007
+ case "h23":
3008
+ return "H";
3009
+ case "h12":
3010
+ return "h";
3011
+ case "h11":
3012
+ return "K";
3013
+ default:
3014
+ throw new Error("Invalid hourCycle");
3015
+ }
3016
+ var r = e.language, n;
3017
+ r !== "root" && (n = e.maximize().region);
3018
+ var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
3019
+ return i[0];
3020
+ }
3021
+ var Ae, Mn = new RegExp("^".concat(Yt.source, "*")), $n = new RegExp("".concat(Yt.source, "*$"));
3022
+ function _(e, t) {
3023
+ return { start: e, end: t };
3024
+ }
3025
+ var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gn = !!String.fromCodePoint, Un = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, Vn = kn ? Number.isSafeInteger : function(e) {
3026
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3027
+ }, Fe = !0;
3028
+ try {
3029
+ var Xn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3030
+ Fe = ((Ae = Xn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
3031
+ } catch {
3032
+ Fe = !1;
3033
+ }
3034
+ var bt = Rn ? (
3035
+ // Native
3036
+ function(t, r, n) {
3037
+ return t.startsWith(r, n);
3038
+ }
3039
+ ) : (
3040
+ // For IE11
3041
+ function(t, r, n) {
3042
+ return t.slice(n, n + r.length) === r;
3043
+ }
3044
+ ), je = Gn ? String.fromCodePoint : (
3045
+ // IE11
3046
+ function() {
3047
+ for (var t = [], r = 0; r < arguments.length; r++)
3048
+ t[r] = arguments[r];
3049
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
3050
+ if (s = t[o++], s > 1114111)
3051
+ throw RangeError(s + " is not a valid code point");
3052
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3053
+ }
3054
+ return n;
3055
+ }
3056
+ ), gt = (
3057
+ // native
3058
+ Un ? Object.fromEntries : (
3059
+ // Ponyfill
3060
+ function(t) {
3061
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
3062
+ var o = i[n], s = o[0], a = o[1];
3063
+ r[s] = a;
3064
+ }
3065
+ return r;
3066
+ }
3067
+ )
3068
+ ), rr = Dn ? (
3069
+ // Native
3070
+ function(t, r) {
3071
+ return t.codePointAt(r);
3072
+ }
3073
+ ) : (
3074
+ // IE 11
3075
+ function(t, r) {
3076
+ var n = t.length;
3077
+ if (!(r < 0 || r >= n)) {
3078
+ var i = t.charCodeAt(r), o;
3079
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3080
+ }
3081
+ }
3082
+ ), Wn = Fn ? (
3083
+ // Native
3084
+ function(t) {
3085
+ return t.trimStart();
3086
+ }
3087
+ ) : (
3088
+ // Ponyfill
3089
+ function(t) {
3090
+ return t.replace(Mn, "");
3091
+ }
3092
+ ), zn = jn ? (
3093
+ // Native
3094
+ function(t) {
3095
+ return t.trimEnd();
3096
+ }
3097
+ ) : (
3098
+ // Ponyfill
3099
+ function(t) {
3100
+ return t.replace($n, "");
3101
+ }
3102
+ );
3103
+ function nr(e, t) {
3104
+ return new RegExp(e, t);
3105
+ }
3106
+ var ke;
3107
+ if (Fe) {
3108
+ var yt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3109
+ ke = function(t, r) {
3110
+ var n;
3111
+ yt.lastIndex = r;
3112
+ var i = yt.exec(t);
3113
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
3114
+ };
3115
+ } else
3116
+ ke = function(t, r) {
3117
+ for (var n = []; ; ) {
3118
+ var i = rr(t, r);
3119
+ if (i === void 0 || ir(i) || qn(i))
3120
+ break;
3121
+ n.push(i), r += i >= 65536 ? 2 : 1;
3122
+ }
3123
+ return je.apply(void 0, n);
3124
+ };
3125
+ var Zn = (
3126
+ /** @class */
3127
+ function() {
3128
+ function e(t, r) {
3129
+ 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;
3130
+ }
3131
+ return e.prototype.parse = function() {
3132
+ if (this.offset() !== 0)
3133
+ throw Error("parser can only be used once");
3134
+ return this.parseMessage(0, "", !1);
3135
+ }, e.prototype.parseMessage = function(t, r, n) {
3136
+ for (var i = []; !this.isEOF(); ) {
3137
+ var o = this.char();
3138
+ if (o === 123) {
3139
+ var s = this.parseArgument(t, n);
3140
+ if (s.err)
3141
+ return s;
3142
+ i.push(s.val);
3143
+ } else {
3144
+ if (o === 125 && t > 0)
3145
+ break;
3146
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
3147
+ var a = this.clonePosition();
3148
+ this.bump(), i.push({
3149
+ type: x.pound,
3150
+ location: _(a, this.clonePosition())
3151
+ });
3152
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3153
+ if (n)
3154
+ break;
3155
+ return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3156
+ } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
3157
+ var s = this.parseTag(t, r);
3158
+ if (s.err)
3159
+ return s;
3160
+ i.push(s.val);
3161
+ } else {
3162
+ var s = this.parseLiteral(t, r);
3163
+ if (s.err)
3164
+ return s;
3165
+ i.push(s.val);
3166
+ }
3167
+ }
3168
+ }
3169
+ return { val: i, err: null };
3170
+ }, e.prototype.parseTag = function(t, r) {
3171
+ var n = this.clonePosition();
3172
+ this.bump();
3173
+ var i = this.parseTagName();
3174
+ if (this.bumpSpace(), this.bumpIf("/>"))
3175
+ return {
3176
+ val: {
3177
+ type: x.literal,
3178
+ value: "<".concat(i, "/>"),
3179
+ location: _(n, this.clonePosition())
3180
+ },
3181
+ err: null
3182
+ };
3183
+ if (this.bumpIf(">")) {
3184
+ var o = this.parseMessage(t + 1, r, !0);
3185
+ if (o.err)
3186
+ return o;
3187
+ var s = o.val, a = this.clonePosition();
3188
+ if (this.bumpIf("</")) {
3189
+ if (this.isEOF() || !Ve(this.char()))
3190
+ return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
3191
+ var h = this.clonePosition(), u = this.parseTagName();
3192
+ return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3193
+ val: {
3194
+ type: x.tag,
3195
+ value: i,
3196
+ children: s,
3197
+ location: _(n, this.clonePosition())
3198
+ },
3199
+ err: null
3200
+ } : this.error(v.INVALID_TAG, _(a, this.clonePosition())));
3201
+ } else
3202
+ return this.error(v.UNCLOSED_TAG, _(n, this.clonePosition()));
3203
+ } else
3204
+ return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
3205
+ }, e.prototype.parseTagName = function() {
3206
+ var t = this.offset();
3207
+ for (this.bump(); !this.isEOF() && Jn(this.char()); )
3208
+ this.bump();
3209
+ return this.message.slice(t, this.offset());
3210
+ }, e.prototype.parseLiteral = function(t, r) {
3211
+ for (var n = this.clonePosition(), i = ""; ; ) {
3212
+ var o = this.tryParseQuote(r);
3213
+ if (o) {
3214
+ i += o;
3215
+ continue;
3216
+ }
3217
+ var s = this.tryParseUnquoted(t, r);
3218
+ if (s) {
3219
+ i += s;
3220
+ continue;
3221
+ }
3222
+ var a = this.tryParseLeftAngleBracket();
3223
+ if (a) {
3224
+ i += a;
3225
+ continue;
3226
+ }
3227
+ break;
3228
+ }
3229
+ var h = _(n, this.clonePosition());
3230
+ return {
3231
+ val: { type: x.literal, value: i, location: h },
3232
+ err: null
3233
+ };
3234
+ }, e.prototype.tryParseLeftAngleBracket = function() {
3235
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3236
+ !Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
3237
+ }, e.prototype.tryParseQuote = function(t) {
3238
+ if (this.isEOF() || this.char() !== 39)
3239
+ return null;
3240
+ switch (this.peek()) {
3241
+ case 39:
3242
+ return this.bump(), this.bump(), "'";
3243
+ case 123:
3244
+ case 60:
3245
+ case 62:
3246
+ case 125:
3247
+ break;
3248
+ case 35:
3249
+ if (t === "plural" || t === "selectordinal")
3250
+ break;
3251
+ return null;
3252
+ default:
3253
+ return null;
3254
+ }
3255
+ this.bump();
3256
+ var r = [this.char()];
3257
+ for (this.bump(); !this.isEOF(); ) {
3258
+ var n = this.char();
3259
+ if (n === 39)
3260
+ if (this.peek() === 39)
3261
+ r.push(39), this.bump();
3262
+ else {
3263
+ this.bump();
3264
+ break;
3265
+ }
3266
+ else
3267
+ r.push(n);
3268
+ this.bump();
3269
+ }
3270
+ return je.apply(void 0, r);
3271
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3272
+ if (this.isEOF())
3273
+ return null;
3274
+ var n = this.char();
3275
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
3276
+ }, e.prototype.parseArgument = function(t, r) {
3277
+ var n = this.clonePosition();
3278
+ if (this.bump(), this.bumpSpace(), this.isEOF())
3279
+ return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3280
+ if (this.char() === 125)
3281
+ return this.bump(), this.error(v.EMPTY_ARGUMENT, _(n, this.clonePosition()));
3282
+ var i = this.parseIdentifierIfPossible().value;
3283
+ if (!i)
3284
+ return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3285
+ if (this.bumpSpace(), this.isEOF())
3286
+ return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3287
+ switch (this.char()) {
3288
+ case 125:
3289
+ return this.bump(), {
3290
+ val: {
3291
+ type: x.argument,
3292
+ // value does not include the opening and closing braces.
3293
+ value: i,
3294
+ location: _(n, this.clonePosition())
3295
+ },
3296
+ err: null
3297
+ };
3298
+ case 44:
3299
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3300
+ default:
3301
+ return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3302
+ }
3303
+ }, e.prototype.parseIdentifierIfPossible = function() {
3304
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
3305
+ this.bumpTo(i);
3306
+ var o = this.clonePosition(), s = _(t, o);
3307
+ return { value: n, location: s };
3308
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3309
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3310
+ switch (a) {
3311
+ case "":
3312
+ return this.error(v.EXPECT_ARGUMENT_TYPE, _(s, h));
3313
+ case "number":
3314
+ case "date":
3315
+ case "time": {
3316
+ this.bumpSpace();
3317
+ var u = null;
3318
+ if (this.bumpIf(",")) {
3319
+ this.bumpSpace();
3320
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3321
+ if (c.err)
3322
+ return c;
3323
+ var f = zn(c.val);
3324
+ if (f.length === 0)
3325
+ return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3326
+ var p = _(l, this.clonePosition());
3327
+ u = { style: f, styleLocation: p };
3328
+ }
3329
+ var y = this.tryParseArgumentClose(i);
3330
+ if (y.err)
3331
+ return y;
3332
+ var b = _(i, this.clonePosition());
3333
+ if (u && bt(u?.style, "::", 0)) {
3334
+ var d = Wn(u.style.slice(2));
3335
+ if (a === "number") {
3336
+ var c = this.parseNumberSkeletonFromString(d, u.styleLocation);
3337
+ return c.err ? c : {
3338
+ val: { type: x.number, value: n, location: b, style: c.val },
3339
+ err: null
3340
+ };
3341
+ } else {
3342
+ if (d.length === 0)
3343
+ return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
3344
+ var w = d;
3345
+ this.locale && (w = Ln(d, this.locale));
3346
+ var f = {
3347
+ type: X.dateTime,
3348
+ pattern: w,
3349
+ location: u.styleLocation,
3350
+ parsedOptions: this.shouldParseSkeletons ? Hn(w) : {}
3351
+ }, g = a === "date" ? x.date : x.time;
3352
+ return {
3353
+ val: { type: g, value: n, location: b, style: f },
3354
+ err: null
3355
+ };
3356
+ }
3357
+ }
3358
+ return {
3359
+ val: {
3360
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3361
+ value: n,
3362
+ location: b,
3363
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
3364
+ },
3365
+ err: null
3366
+ };
3367
+ }
3368
+ case "plural":
3369
+ case "selectordinal":
3370
+ case "select": {
3371
+ var S = this.clonePosition();
3372
+ if (this.bumpSpace(), !this.bumpIf(","))
3373
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, E({}, S)));
3374
+ this.bumpSpace();
3375
+ var R = this.parseIdentifierIfPossible(), m = 0;
3376
+ if (a !== "select" && R.value === "offset") {
3377
+ if (!this.bumpIf(":"))
3378
+ return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3379
+ this.bumpSpace();
3380
+ var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3381
+ if (c.err)
3382
+ return c;
3383
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), m = c.val;
3384
+ }
3385
+ var P = this.tryParsePluralOrSelectOptions(t, a, r, R);
3386
+ if (P.err)
3387
+ return P;
3388
+ var y = this.tryParseArgumentClose(i);
3389
+ if (y.err)
3390
+ return y;
3391
+ var Ke = _(i, this.clonePosition());
3392
+ return a === "select" ? {
3393
+ val: {
3394
+ type: x.select,
3395
+ value: n,
3396
+ options: gt(P.val),
3397
+ location: Ke
3398
+ },
3399
+ err: null
3400
+ } : {
3401
+ val: {
3402
+ type: x.plural,
3403
+ value: n,
3404
+ options: gt(P.val),
3405
+ offset: m,
3406
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3407
+ location: Ke
3408
+ },
3409
+ err: null
3410
+ };
3411
+ }
3412
+ default:
3413
+ return this.error(v.INVALID_ARGUMENT_TYPE, _(s, h));
3414
+ }
3415
+ }, e.prototype.tryParseArgumentClose = function(t) {
3416
+ return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3417
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3418
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3419
+ var n = this.char();
3420
+ switch (n) {
3421
+ case 39: {
3422
+ this.bump();
3423
+ var i = this.clonePosition();
3424
+ if (!this.bumpUntil("'"))
3425
+ return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3426
+ this.bump();
3427
+ break;
3428
+ }
3429
+ case 123: {
3430
+ t += 1, this.bump();
3431
+ break;
3432
+ }
3433
+ case 125: {
3434
+ if (t > 0)
3435
+ t -= 1;
3436
+ else
3437
+ return {
3438
+ val: this.message.slice(r.offset, this.offset()),
3439
+ err: null
3440
+ };
3441
+ break;
3442
+ }
3443
+ default:
3444
+ this.bump();
3445
+ break;
3446
+ }
3447
+ }
3448
+ return {
3449
+ val: this.message.slice(r.offset, this.offset()),
3450
+ err: null
3451
+ };
3452
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3453
+ var n = [];
3454
+ try {
3455
+ n = An(t);
3456
+ } catch {
3457
+ return this.error(v.INVALID_NUMBER_SKELETON, r);
3458
+ }
3459
+ return {
3460
+ val: {
3461
+ type: X.number,
3462
+ tokens: n,
3463
+ location: r,
3464
+ parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
3465
+ },
3466
+ err: null
3467
+ };
3468
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3469
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3470
+ if (u.length === 0) {
3471
+ var c = this.clonePosition();
3472
+ if (r !== "select" && this.bumpIf("=")) {
3473
+ var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
3474
+ if (f.err)
3475
+ return f;
3476
+ l = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3477
+ } else
3478
+ break;
3479
+ }
3480
+ if (h.has(u))
3481
+ return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3482
+ u === "other" && (s = !0), this.bumpSpace();
3483
+ var p = this.clonePosition();
3484
+ if (!this.bumpIf("{"))
3485
+ return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3486
+ var y = this.parseMessage(t + 1, r, n);
3487
+ if (y.err)
3488
+ return y;
3489
+ var b = this.tryParseArgumentClose(p);
3490
+ if (b.err)
3491
+ return b;
3492
+ a.push([
3493
+ u,
3494
+ {
3495
+ value: y.val,
3496
+ location: _(p, this.clonePosition())
3497
+ }
3498
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3499
+ }
3500
+ return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3501
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3502
+ var n = 1, i = this.clonePosition();
3503
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3504
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3505
+ var a = this.char();
3506
+ if (a >= 48 && a <= 57)
3507
+ o = !0, s = s * 10 + (a - 48), this.bump();
3508
+ else
3509
+ break;
3510
+ }
3511
+ var h = _(i, this.clonePosition());
3512
+ return o ? (s *= n, Vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3513
+ }, e.prototype.offset = function() {
3514
+ return this.position.offset;
3515
+ }, e.prototype.isEOF = function() {
3516
+ return this.offset() === this.message.length;
3517
+ }, e.prototype.clonePosition = function() {
3518
+ return {
3519
+ offset: this.position.offset,
3520
+ line: this.position.line,
3521
+ column: this.position.column
3522
+ };
3523
+ }, e.prototype.char = function() {
3524
+ var t = this.position.offset;
3525
+ if (t >= this.message.length)
3526
+ throw Error("out of bound");
3527
+ var r = rr(this.message, t);
3528
+ if (r === void 0)
3529
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3530
+ return r;
3531
+ }, e.prototype.error = function(t, r) {
3532
+ return {
3533
+ val: null,
3534
+ err: {
3535
+ kind: t,
3536
+ message: this.message,
3537
+ location: r
3538
+ }
3539
+ };
3540
+ }, e.prototype.bump = function() {
3541
+ if (!this.isEOF()) {
3542
+ var t = this.char();
3543
+ 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);
3544
+ }
3545
+ }, e.prototype.bumpIf = function(t) {
3546
+ if (bt(this.message, t, this.offset())) {
3547
+ for (var r = 0; r < t.length; r++)
3548
+ this.bump();
3549
+ return !0;
3550
+ }
3551
+ return !1;
3552
+ }, e.prototype.bumpUntil = function(t) {
3553
+ var r = this.offset(), n = this.message.indexOf(t, r);
3554
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3555
+ }, e.prototype.bumpTo = function(t) {
3556
+ if (this.offset() > t)
3557
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3558
+ for (t = Math.min(t, this.message.length); ; ) {
3559
+ var r = this.offset();
3560
+ if (r === t)
3561
+ break;
3562
+ if (r > t)
3563
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3564
+ if (this.bump(), this.isEOF())
3565
+ break;
3566
+ }
3567
+ }, e.prototype.bumpSpace = function() {
3568
+ for (; !this.isEOF() && ir(this.char()); )
3569
+ this.bump();
3570
+ }, e.prototype.peek = function() {
3571
+ if (this.isEOF())
3572
+ return null;
3573
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3574
+ return n ?? null;
3575
+ }, e;
3576
+ }()
3577
+ );
3578
+ function Ve(e) {
3579
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3580
+ }
3581
+ function Qn(e) {
3582
+ return Ve(e) || e === 47;
3583
+ }
3584
+ function Jn(e) {
3585
+ 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;
3586
+ }
3587
+ function ir(e) {
3588
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3589
+ }
3590
+ function qn(e) {
3591
+ 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;
3592
+ }
3593
+ function Xe(e) {
3594
+ e.forEach(function(t) {
3595
+ if (delete t.location, Zt(t) || Qt(t))
3596
+ for (var r in t.options)
3597
+ delete t.options[r].location, Xe(t.options[r].value);
3598
+ else
3599
+ Xt(t) && qt(t.style) || (Wt(t) || zt(t)) && De(t.style) ? delete t.style.location : Jt(t) && Xe(t.children);
3600
+ });
3601
+ }
3602
+ function Yn(e, t) {
3603
+ t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3604
+ var r = new Zn(e, t).parse();
3605
+ if (r.err) {
3606
+ var n = SyntaxError(v[r.err.kind]);
3607
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3608
+ }
3609
+ return t?.captureLocation || Xe(r.val), r.val;
3610
+ }
3611
+ var W;
3612
+ (function(e) {
3613
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3614
+ })(W || (W = {}));
3615
+ var _e = (
3616
+ /** @class */
3617
+ function(e) {
3618
+ L(t, e);
3619
+ function t(r, n, i) {
3620
+ var o = e.call(this, r) || this;
3621
+ return o.code = n, o.originalMessage = i, o;
3622
+ }
3623
+ return t.prototype.toString = function() {
3624
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3625
+ }, t;
3626
+ }(Error)
3627
+ ), vt = (
3628
+ /** @class */
3629
+ function(e) {
3630
+ L(t, e);
3631
+ function t(r, n, i, o) {
3632
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
3633
+ }
3634
+ return t;
3635
+ }(_e)
3636
+ ), Kn = (
3637
+ /** @class */
3638
+ function(e) {
3639
+ L(t, e);
3640
+ function t(r, n, i) {
3641
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3642
+ }
3643
+ return t;
3644
+ }(_e)
3645
+ ), ei = (
3646
+ /** @class */
3647
+ function(e) {
3648
+ L(t, e);
3649
+ function t(r, n) {
3650
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3651
+ }
3652
+ return t;
3653
+ }(_e)
3654
+ ), A;
3655
+ (function(e) {
3656
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3657
+ })(A || (A = {}));
3658
+ function ti(e) {
3659
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3660
+ var n = t[t.length - 1];
3661
+ return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3662
+ }, []);
3663
+ }
3664
+ function ri(e) {
3665
+ return typeof e == "function";
3666
+ }
3667
+ function fe(e, t, r, n, i, o, s) {
3668
+ if (e.length === 1 && ft(e[0]))
3669
+ return [
3670
+ {
3671
+ type: A.literal,
3672
+ value: e[0].value
3673
+ }
3674
+ ];
3675
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3676
+ var l = u[h];
3677
+ if (ft(l)) {
3678
+ a.push({
3679
+ type: A.literal,
3680
+ value: l.value
3681
+ });
3682
+ continue;
3683
+ }
3684
+ if (Tn(l)) {
3685
+ typeof o == "number" && a.push({
3686
+ type: A.literal,
3687
+ value: r.getNumberFormat(t).format(o)
3688
+ });
3689
+ continue;
3690
+ }
3691
+ var c = l.value;
3692
+ if (!(i && c in i))
3693
+ throw new ei(c, s);
3694
+ var f = i[c];
3695
+ if (Sn(l)) {
3696
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3697
+ type: typeof f == "string" ? A.literal : A.object,
3698
+ value: f
3699
+ });
3700
+ continue;
3701
+ }
3702
+ if (Wt(l)) {
3703
+ var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3704
+ a.push({
3705
+ type: A.literal,
3706
+ value: r.getDateTimeFormat(t, p).format(f)
3707
+ });
3708
+ continue;
3709
+ }
3710
+ if (zt(l)) {
3711
+ var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3712
+ a.push({
3713
+ type: A.literal,
3714
+ value: r.getDateTimeFormat(t, p).format(f)
3715
+ });
3716
+ continue;
3717
+ }
3718
+ if (Xt(l)) {
3719
+ var p = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
3720
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3721
+ type: A.literal,
3722
+ value: r.getNumberFormat(t, p).format(f)
3723
+ });
3724
+ continue;
3725
+ }
3726
+ if (Jt(l)) {
3727
+ var y = l.children, b = l.value, d = i[b];
3728
+ if (!ri(d))
3729
+ throw new Kn(b, "function", s);
3730
+ var w = fe(y, t, r, n, i, o), g = d(w.map(function(m) {
3731
+ return m.value;
3732
+ }));
3733
+ Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(m) {
3734
+ return {
3735
+ type: typeof m == "string" ? A.literal : A.object,
3736
+ value: m
3737
+ };
3738
+ }));
3739
+ }
3740
+ if (Zt(l)) {
3741
+ var S = l.options[f] || l.options.other;
3742
+ if (!S)
3743
+ throw new vt(l.value, f, Object.keys(l.options), s);
3744
+ a.push.apply(a, fe(S.value, t, r, n, i));
3745
+ continue;
3746
+ }
3747
+ if (Qt(l)) {
3748
+ var S = l.options["=".concat(f)];
3749
+ if (!S) {
3750
+ if (!Intl.PluralRules)
3751
+ throw new _e(`Intl.PluralRules is not available in this environment.
3752
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3753
+ `, W.MISSING_INTL_API, s);
3754
+ var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3755
+ S = l.options[R] || l.options.other;
3756
+ }
3757
+ if (!S)
3758
+ throw new vt(l.value, f, Object.keys(l.options), s);
3759
+ a.push.apply(a, fe(S.value, t, r, n, i, f - (l.offset || 0)));
3760
+ continue;
3761
+ }
3762
+ }
3763
+ return ti(a);
3764
+ }
3765
+ function ni(e, t) {
3766
+ return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3767
+ return r[n] = E(E({}, e[n]), t[n] || {}), r;
3768
+ }, {})) : e;
3769
+ }
3770
+ function ii(e, t) {
3771
+ return t ? Object.keys(e).reduce(function(r, n) {
3772
+ return r[n] = ni(e[n], t[n]), r;
3773
+ }, E({}, e)) : e;
3774
+ }
3775
+ function Pe(e) {
3776
+ return {
3777
+ create: function() {
3778
+ return {
3779
+ get: function(t) {
3780
+ return e[t];
3781
+ },
3782
+ set: function(t, r) {
3783
+ e[t] = r;
3784
+ }
3785
+ };
3786
+ }
3787
+ };
3788
+ }
3789
+ function oi(e) {
3790
+ return e === void 0 && (e = {
3791
+ number: {},
3792
+ dateTime: {},
3793
+ pluralRules: {}
3794
+ }), {
3795
+ getNumberFormat: He(function() {
3796
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3797
+ r[n] = arguments[n];
3798
+ return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
3799
+ }, {
3800
+ cache: Pe(e.number),
3801
+ strategy: Be.variadic
3802
+ }),
3803
+ getDateTimeFormat: He(function() {
3804
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3805
+ r[n] = arguments[n];
3806
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
3807
+ }, {
3808
+ cache: Pe(e.dateTime),
3809
+ strategy: Be.variadic
3810
+ }),
3811
+ getPluralRules: He(function() {
3812
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3813
+ r[n] = arguments[n];
3814
+ return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
3815
+ }, {
3816
+ cache: Pe(e.pluralRules),
3817
+ strategy: Be.variadic
3818
+ })
3819
+ };
3820
+ }
3821
+ var si = (
3822
+ /** @class */
3823
+ function() {
3824
+ function e(t, r, n, i) {
3825
+ r === void 0 && (r = e.defaultLocale);
3826
+ var o = this;
3827
+ if (this.formatterCache = {
3828
+ number: {},
3829
+ dateTime: {},
3830
+ pluralRules: {}
3831
+ }, this.format = function(h) {
3832
+ var u = o.formatToParts(h);
3833
+ if (u.length === 1)
3834
+ return u[0].value;
3835
+ var l = u.reduce(function(c, f) {
3836
+ return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3837
+ }, []);
3838
+ return l.length <= 1 ? l[0] || "" : l;
3839
+ }, this.formatToParts = function(h) {
3840
+ return fe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3841
+ }, this.resolvedOptions = function() {
3842
+ var h;
3843
+ return {
3844
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3845
+ };
3846
+ }, this.getAst = function() {
3847
+ return o.ast;
3848
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3849
+ if (this.message = t, !e.__parse)
3850
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3851
+ var s = i || {};
3852
+ s.formatters;
3853
+ var a = Gr(s, ["formatters"]);
3854
+ this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
3855
+ } else
3856
+ this.ast = t;
3857
+ if (!Array.isArray(this.ast))
3858
+ throw new TypeError("A message must be provided as a String or AST.");
3859
+ this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
3860
+ }
3861
+ return Object.defineProperty(e, "defaultLocale", {
3862
+ get: function() {
3863
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
3864
+ },
3865
+ enumerable: !1,
3866
+ configurable: !0
3867
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3868
+ if (!(typeof Intl.Locale > "u")) {
3869
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3870
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3871
+ }
3872
+ }, e.__parse = Yn, e.formats = {
3873
+ number: {
3874
+ integer: {
3875
+ maximumFractionDigits: 0
3876
+ },
3877
+ currency: {
3878
+ style: "currency"
3879
+ },
3880
+ percent: {
3881
+ style: "percent"
3882
+ }
3883
+ },
3884
+ date: {
3885
+ short: {
3886
+ month: "numeric",
3887
+ day: "numeric",
3888
+ year: "2-digit"
3889
+ },
3890
+ medium: {
3891
+ month: "short",
3892
+ day: "numeric",
3893
+ year: "numeric"
3894
+ },
3895
+ long: {
3896
+ month: "long",
3897
+ day: "numeric",
3898
+ year: "numeric"
3899
+ },
3900
+ full: {
3901
+ weekday: "long",
3902
+ month: "long",
3903
+ day: "numeric",
3904
+ year: "numeric"
3905
+ }
3906
+ },
3907
+ time: {
3908
+ short: {
3909
+ hour: "numeric",
3910
+ minute: "numeric"
3911
+ },
3912
+ medium: {
3913
+ hour: "numeric",
3914
+ minute: "numeric",
3915
+ second: "numeric"
3916
+ },
3917
+ long: {
3918
+ hour: "numeric",
3919
+ minute: "numeric",
3920
+ second: "numeric",
3921
+ timeZoneName: "short"
3922
+ },
3923
+ full: {
3924
+ hour: "numeric",
3925
+ minute: "numeric",
3926
+ second: "numeric",
3927
+ timeZoneName: "short"
3928
+ }
3929
+ }
3930
+ }, e;
3931
+ }()
3932
+ );
3933
+ function ai(e, t) {
3934
+ if (t == null)
3935
+ return;
3936
+ if (t in e)
3937
+ return e[t];
3938
+ const r = t.split(".");
3939
+ let n = e;
3940
+ for (let i = 0; i < r.length; i++)
3941
+ if (typeof n == "object") {
3942
+ if (i > 0) {
3943
+ const o = r.slice(i, r.length).join(".");
3944
+ if (o in n) {
3945
+ n = n[o];
3946
+ break;
3947
+ }
3948
+ }
3949
+ n = n[r[i]];
3950
+ } else
3951
+ n = void 0;
3952
+ return n;
3953
+ }
3954
+ const M = {}, ui = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), or = (e, t) => {
3955
+ if (t == null)
3956
+ return;
3957
+ if (t in M && e in M[t])
3958
+ return M[t][e];
3959
+ const r = Ee(t);
3960
+ for (let n = 0; n < r.length; n++) {
3961
+ const i = r[n], o = li(i, e);
3962
+ if (o)
3963
+ return ui(e, t, o);
3964
+ }
3965
+ };
3966
+ let qe;
3967
+ const J = ve({});
3968
+ function hi(e) {
3969
+ return qe[e] || null;
3970
+ }
3971
+ function sr(e) {
3972
+ return e in qe;
3973
+ }
3974
+ function li(e, t) {
3975
+ if (!sr(e))
3976
+ return null;
3977
+ const r = hi(e);
3978
+ return ai(r, t);
3979
+ }
3980
+ function ci(e) {
3981
+ if (e == null)
3982
+ return;
3983
+ const t = Ee(e);
3984
+ for (let r = 0; r < t.length; r++) {
3985
+ const n = t[r];
3986
+ if (sr(n))
3987
+ return n;
3988
+ }
3989
+ }
3990
+ function ar(e, ...t) {
3991
+ delete M[e], J.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
3992
+ }
3993
+ Q(
3994
+ [J],
3995
+ ([e]) => Object.keys(e)
3996
+ );
3997
+ J.subscribe((e) => qe = e);
3998
+ const pe = {};
3999
+ function fi(e, t) {
4000
+ pe[e].delete(t), pe[e].size === 0 && delete pe[e];
4001
+ }
4002
+ function ur(e) {
4003
+ return pe[e];
4004
+ }
4005
+ function pi(e) {
4006
+ return Ee(e).map((t) => {
4007
+ const r = ur(t);
4008
+ return [t, r ? [...r] : []];
4009
+ }).filter(([, t]) => t.length > 0);
4010
+ }
4011
+ function We(e) {
4012
+ return e == null ? !1 : Ee(e).some(
4013
+ (t) => {
4014
+ var r;
4015
+ return (r = ur(t)) == null ? void 0 : r.size;
4016
+ }
4017
+ );
4018
+ }
4019
+ function mi(e, t) {
4020
+ return Promise.all(
4021
+ t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
4022
+ ).then((n) => ar(e, ...n));
4023
+ }
4024
+ const Y = {};
4025
+ function hr(e) {
4026
+ if (!We(e))
4027
+ return e in Y ? Y[e] : Promise.resolve();
4028
+ const t = pi(e);
4029
+ return Y[e] = Promise.all(
4030
+ t.map(
4031
+ ([r, n]) => mi(r, n)
4032
+ )
4033
+ ).then(() => {
4034
+ if (We(e))
4035
+ return hr(e);
4036
+ delete Y[e];
4037
+ }), Y[e];
4038
+ }
4039
+ const di = {
4040
+ number: {
4041
+ scientific: { notation: "scientific" },
4042
+ engineering: { notation: "engineering" },
4043
+ compactLong: { notation: "compact", compactDisplay: "long" },
4044
+ compactShort: { notation: "compact", compactDisplay: "short" }
4045
+ },
4046
+ date: {
4047
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
4048
+ medium: { month: "short", day: "numeric", year: "numeric" },
4049
+ long: { month: "long", day: "numeric", year: "numeric" },
4050
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4051
+ },
4052
+ time: {
4053
+ short: { hour: "numeric", minute: "numeric" },
4054
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4055
+ long: {
4056
+ hour: "numeric",
4057
+ minute: "numeric",
4058
+ second: "numeric",
4059
+ timeZoneName: "short"
4060
+ },
4061
+ full: {
4062
+ hour: "numeric",
4063
+ minute: "numeric",
4064
+ second: "numeric",
4065
+ timeZoneName: "short"
4066
+ }
4067
+ }
4068
+ }, bi = {
4069
+ fallbackLocale: null,
4070
+ loadingDelay: 200,
4071
+ formats: di,
4072
+ warnOnMissingMessages: !0,
4073
+ handleMissingMessage: void 0,
4074
+ ignoreTag: !0
4075
+ }, gi = bi;
4076
+ function z() {
4077
+ return gi;
4078
+ }
4079
+ const Oe = ve(!1);
4080
+ var yi = Object.defineProperty, vi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
4081
+ for (var r in t || (t = {}))
4082
+ Ei.call(t, r) && Et(e, r, t[r]);
4083
+ if (_t)
4084
+ for (var r of _t(t))
4085
+ xi.call(t, r) && Et(e, r, t[r]);
4086
+ return e;
4087
+ }, Ti = (e, t) => vi(e, _i(t));
4088
+ let ze;
4089
+ const de = ve(null);
4090
+ function xt(e) {
4091
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4092
+ }
4093
+ function Ee(e, t = z().fallbackLocale) {
4094
+ const r = xt(e);
4095
+ return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
4096
+ }
4097
+ function G() {
4098
+ return ze ?? void 0;
4099
+ }
4100
+ de.subscribe((e) => {
4101
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4102
+ });
4103
+ const wi = (e) => {
4104
+ if (e && ci(e) && We(e)) {
4105
+ const { loadingDelay: t } = z();
4106
+ let r;
4107
+ return typeof window < "u" && G() != null && t ? r = window.setTimeout(
4108
+ () => Oe.set(!0),
4109
+ t
4110
+ ) : Oe.set(!0), hr(e).then(() => {
4111
+ de.set(e);
4112
+ }).finally(() => {
4113
+ clearTimeout(r), Oe.set(!1);
4114
+ });
4115
+ }
4116
+ return de.set(e);
4117
+ }, $ = Ti(Si({}, de), {
4118
+ set: wi
4119
+ }), xe = (e) => {
4120
+ const t = /* @__PURE__ */ Object.create(null);
4121
+ return (n) => {
4122
+ const i = JSON.stringify(n);
4123
+ return i in t ? t[i] : t[i] = e(n);
4124
+ };
4125
+ };
4126
+ var Hi = Object.defineProperty, be = Object.getOwnPropertySymbols, lr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4127
+ for (var r in t || (t = {}))
4128
+ lr.call(t, r) && St(e, r, t[r]);
4129
+ if (be)
4130
+ for (var r of be(t))
4131
+ cr.call(t, r) && St(e, r, t[r]);
4132
+ return e;
4133
+ }, q = (e, t) => {
4134
+ var r = {};
4135
+ for (var n in e)
4136
+ lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4137
+ if (e != null && be)
4138
+ for (var n of be(e))
4139
+ t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
4140
+ return r;
4141
+ };
4142
+ const ne = (e, t) => {
4143
+ const { formats: r } = z();
4144
+ if (e in r && t in r[e])
4145
+ return r[e][t];
4146
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4147
+ }, Bi = xe(
4148
+ (e) => {
4149
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4150
+ if (r == null)
4151
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4152
+ return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
4153
+ }
4154
+ ), Ai = xe(
4155
+ (e) => {
4156
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4157
+ if (r == null)
4158
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4159
+ return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
4160
+ }
4161
+ ), Pi = xe(
4162
+ (e) => {
4163
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4164
+ if (r == null)
4165
+ throw new Error(
4166
+ '[svelte-i18n] A "locale" must be set to format time values'
4167
+ );
4168
+ return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
4169
+ }
4170
+ ), Oi = (e = {}) => {
4171
+ var t = e, {
4172
+ locale: r = G()
4173
+ } = t, n = q(t, [
4174
+ "locale"
4175
+ ]);
4176
+ return Bi(Ye({ locale: r }, n));
4177
+ }, Ii = (e = {}) => {
4178
+ var t = e, {
4179
+ locale: r = G()
4180
+ } = t, n = q(t, [
4181
+ "locale"
4182
+ ]);
4183
+ return Ai(Ye({ locale: r }, n));
4184
+ }, Ni = (e = {}) => {
4185
+ var t = e, {
4186
+ locale: r = G()
4187
+ } = t, n = q(t, [
4188
+ "locale"
4189
+ ]);
4190
+ return Pi(Ye({ locale: r }, n));
4191
+ }, Li = xe(
4192
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4193
+ (e, t = G()) => new si(e, t, z().formats, {
4194
+ ignoreTag: z().ignoreTag
4195
+ })
4196
+ ), Ci = (e, t = {}) => {
4197
+ var r, n, i, o;
4198
+ let s = t;
4199
+ typeof e == "object" && (s = e, e = s.id);
4200
+ const {
4201
+ values: a,
4202
+ locale: h = G(),
4203
+ default: u
4204
+ } = s;
4205
+ if (h == null)
4206
+ throw new Error(
4207
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
4208
+ );
4209
+ let l = or(e, h);
4210
+ if (!l)
4211
+ l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4212
+ else if (typeof l != "string")
4213
+ return console.warn(
4214
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4215
+ ), l;
4216
+ if (!a)
4217
+ return l;
4218
+ let c = l;
4219
+ try {
4220
+ c = Li(l, h).format(a);
4221
+ } catch (f) {
4222
+ f instanceof Error && console.warn(
4223
+ `[svelte-i18n] Message "${e}" has syntax error:`,
4224
+ f.message
4225
+ );
4226
+ }
4227
+ return c;
4228
+ }, Mi = (e, t) => Ni(t).format(e), $i = (e, t) => Ii(t).format(e), Ri = (e, t) => Oi(t).format(e), Gi = (e, t = G()) => or(e, t), Ui = Q([$, J], () => Ci);
4229
+ Q([$], () => Mi);
4230
+ Q([$], () => $i);
4231
+ Q([$], () => Ri);
4232
+ Q([$, J], () => Gi);
4233
+ window.emWidgets = { topic: Yr };
4234
+ const Di = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4235
+ function Fi({ withLocale: e, translations: t }) {
4236
+ $.subscribe((r) => {
4237
+ r == null && (J.set(t), $.set(e));
4238
+ });
4239
+ }
4240
+ function Tt(e, t) {
4241
+ ar(e, t);
4242
+ }
4243
+ function ji(e) {
4244
+ $.set(e);
4245
+ }
4246
+ const wt = {
4247
+ en: {
4248
+ loading: "Loading, please wait ...",
4249
+ playNow: "Play Now",
4250
+ casino: "CASINO",
4251
+ sports: "SPORTSBOOK",
4252
+ contribution: "Contribution"
4253
+ }
4254
+ };
4255
+ function ki(e) {
4256
+ mr(e, "svelte-1jxmngn", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .SportsPage{padding:30px 30px;color:var(--emw--color-gray-100, #B5B5B5)}.GamesWrapper .SportsPage li{text-decoration:underline}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}");
4257
+ }
4258
+ function Ht(e, t, r) {
4259
+ const n = e.slice();
4260
+ return n[19] = t[r], n;
4261
+ }
4262
+ function Bt(e, t, r) {
4263
+ const n = e.slice();
4264
+ return n[22] = t[r], n[24] = r, n;
4265
+ }
4266
+ function At(e) {
4267
+ let t, r;
4268
+ return {
4269
+ c() {
4270
+ t = O("div"), r = O("casino-tournaments-tab"), T(r, "part", "TournamentGames"), T(r, "tabs", "casino,sports"), T(r, "tab", "casino"), T(r, "tid", Ze), T(
4271
+ r,
4272
+ "clientstyling",
4273
+ /*clientstyling*/
4274
+ e[0]
4275
+ ), T(
4276
+ r,
4277
+ "clientstylingurl",
4278
+ /*clientstylingurl*/
4279
+ e[1]
4280
+ ), T(
4281
+ r,
4282
+ "mbsource",
4283
+ /*mbsource*/
4284
+ e[2]
4285
+ ), H(t, "class", "GamesTabNav");
4286
+ },
4287
+ m(n, i) {
4288
+ oe(n, t, i), B(t, r);
4289
+ },
4290
+ p(n, i) {
4291
+ i & /*clientstyling*/
4292
+ 1 && T(
4293
+ r,
4294
+ "clientstyling",
4295
+ /*clientstyling*/
4296
+ n[0]
4297
+ ), i & /*clientstylingurl*/
4298
+ 2 && T(
4299
+ r,
4300
+ "clientstylingurl",
4301
+ /*clientstylingurl*/
4302
+ n[1]
4303
+ ), i & /*mbsource*/
4304
+ 4 && T(
4305
+ r,
4306
+ "mbsource",
4307
+ /*mbsource*/
4308
+ n[2]
4309
+ );
4310
+ },
4311
+ d(n) {
4312
+ n && Z(t);
4313
+ }
4314
+ };
4315
+ }
4316
+ function Pt(e) {
4317
+ let t, r, n = (
4318
+ /*$_*/
4319
+ e[7]("playNow") + ""
4320
+ ), i, o, s, a, h, u, l, c, f;
4321
+ return {
4322
+ c() {
4323
+ t = O("div"), r = O("span"), i = me(n), o = ee(), s = O("ui-image"), l = ee(), H(r, "class", "PlayNowButton"), tt(s.src, a = /*game*/
4324
+ e[22].thumbnail) || T(s, "src", a), T(s, "width", "132px"), T(s, "height", "100px"), T(s, "alt", h = /*game*/
4325
+ e[22].name), T(s, "title", u = /*game*/
4326
+ e[22].name), H(t, "class", "item"), H(t, "role", "button"), H(t, "tabindex", "0");
4327
+ },
4328
+ m(p, y) {
4329
+ oe(p, t, y), B(t, r), B(r, i), B(t, o), B(t, s), B(t, l), c || (f = gr(t, "click", function() {
4330
+ ge(
4331
+ /*gameClicked*/
4332
+ e[9](
4333
+ /*game*/
4334
+ e[22]
4335
+ )
4336
+ ) && e[9](
4337
+ /*game*/
4338
+ e[22]
4339
+ ).apply(this, arguments);
4340
+ }), c = !0);
4341
+ },
4342
+ p(p, y) {
4343
+ e = p, y & /*$_*/
4344
+ 128 && n !== (n = /*$_*/
4345
+ e[7]("playNow") + "") && Ie(i, n), y & /*tournamentdetails*/
4346
+ 8 && !tt(s.src, a = /*game*/
4347
+ e[22].thumbnail) && T(s, "src", a), y & /*tournamentdetails*/
4348
+ 8 && h !== (h = /*game*/
4349
+ e[22].name) && T(s, "alt", h), y & /*tournamentdetails*/
4350
+ 8 && u !== (u = /*game*/
4351
+ e[22].name) && T(s, "title", u);
4352
+ },
4353
+ d(p) {
4354
+ p && Z(t), c = !1, f();
4355
+ }
4356
+ };
4357
+ }
4358
+ function Ot(e) {
4359
+ let t, r = (
4360
+ /*item*/
4361
+ e[19].rule + ""
4362
+ ), n, i, o = (
4363
+ /*item*/
4364
+ (e[19].excluded ? "" : (
4365
+ /*$_*/
4366
+ e[7]("contribution")
4367
+ )) + ""
4368
+ ), s;
4369
+ return {
4370
+ c() {
4371
+ t = O("li"), n = me(r), i = ee(), s = me(o), H(t, "part", "li"), H(t, "class", "Market");
4372
+ },
4373
+ m(a, h) {
4374
+ oe(a, t, h), B(t, n), B(t, i), B(t, s);
4375
+ },
4376
+ p(a, h) {
4377
+ h & /*sportsRules*/
4378
+ 64 && r !== (r = /*item*/
4379
+ a[19].rule + "") && Ie(n, r), h & /*sportsRules, $_*/
4380
+ 192 && o !== (o = /*item*/
4381
+ (a[19].excluded ? "" : (
4382
+ /*$_*/
4383
+ a[7]("contribution")
4384
+ )) + "") && Ie(s, o);
4385
+ },
4386
+ d(a) {
4387
+ a && Z(t);
4388
+ }
4389
+ };
4390
+ }
4391
+ function Vi(e) {
4392
+ let t, r, n, i, o, s, a, h, u, l, c = (
4393
+ /*tournamentdetails*/
4394
+ e[3] && /*tournamentdetails*/
4395
+ e[3]?.wallet?.sports && /*tournamentdetails*/
4396
+ e[3]?.wallet?.casino && At(e)
4397
+ ), f = ae(
4398
+ /*tournamentdetails*/
4399
+ e[3]?.games?.items || []
4400
+ ), p = [];
4401
+ for (let d = 0; d < f.length; d += 1)
4402
+ p[d] = Pt(Bt(e, f, d));
4403
+ let y = ae(
4404
+ /*sportsRules*/
4405
+ e[6]
4406
+ ), b = [];
4407
+ for (let d = 0; d < y.length; d += 1)
4408
+ b[d] = Ot(Ht(e, y, d));
4409
+ return {
4410
+ c() {
4411
+ t = O("div"), c && c.c(), r = ee(), n = O("div"), i = O("div"), o = O("div");
4412
+ for (let d = 0; d < p.length; d += 1)
4413
+ p[d].c();
4414
+ a = ee(), h = O("div"), u = O("ul");
4415
+ for (let d = 0; d < b.length; d += 1)
4416
+ b[d].c();
4417
+ H(o, "class", "GameList items"), H(i, "class", s = "TabContent GamesContent " + /*activeTab*/
4418
+ (e[5] != "casino" ? "hidden" : "")), H(u, "class", "SportsPage"), H(h, "class", l = "TabContent GamesContent " + /*activeTab*/
4419
+ (e[5] != "sports" ? "hidden" : "")), H(n, "class", "GamesWrapper"), H(t, "class", Di(
4420
+ /*userAgent*/
4421
+ e[8]
4422
+ ) ? "MobileClass" : "");
4423
+ },
4424
+ m(d, w) {
4425
+ oe(d, t, w), c && c.m(t, null), B(t, r), B(t, n), B(n, i), B(i, o);
4426
+ for (let g = 0; g < p.length; g += 1)
4427
+ p[g] && p[g].m(o, null);
4428
+ B(n, a), B(n, h), B(h, u);
4429
+ for (let g = 0; g < b.length; g += 1)
4430
+ b[g] && b[g].m(u, null);
4431
+ e[12](t);
4432
+ },
4433
+ p(d, [w]) {
4434
+ if (/*tournamentdetails*/
4435
+ d[3] && /*tournamentdetails*/
4436
+ d[3]?.wallet?.sports && /*tournamentdetails*/
4437
+ d[3]?.wallet?.casino ? c ? c.p(d, w) : (c = At(d), c.c(), c.m(t, r)) : c && (c.d(1), c = null), w & /*gameClicked, tournamentdetails, $_*/
4438
+ 648) {
4439
+ f = ae(
4440
+ /*tournamentdetails*/
4441
+ d[3]?.games?.items || []
4442
+ );
4443
+ let g;
4444
+ for (g = 0; g < f.length; g += 1) {
4445
+ const S = Bt(d, f, g);
4446
+ p[g] ? p[g].p(S, w) : (p[g] = Pt(S), p[g].c(), p[g].m(o, null));
4447
+ }
4448
+ for (; g < p.length; g += 1)
4449
+ p[g].d(1);
4450
+ p.length = f.length;
4451
+ }
4452
+ if (w & /*activeTab*/
4453
+ 32 && s !== (s = "TabContent GamesContent " + /*activeTab*/
4454
+ (d[5] != "casino" ? "hidden" : "")) && H(i, "class", s), w & /*sportsRules, $_*/
4455
+ 192) {
4456
+ y = ae(
4457
+ /*sportsRules*/
4458
+ d[6]
4459
+ );
4460
+ let g;
4461
+ for (g = 0; g < y.length; g += 1) {
4462
+ const S = Ht(d, y, g);
4463
+ b[g] ? b[g].p(S, w) : (b[g] = Ot(S), b[g].c(), b[g].m(u, null));
4464
+ }
4465
+ for (; g < b.length; g += 1)
4466
+ b[g].d(1);
4467
+ b.length = y.length;
4468
+ }
4469
+ w & /*activeTab*/
4470
+ 32 && l !== (l = "TabContent GamesContent " + /*activeTab*/
4471
+ (d[5] != "sports" ? "hidden" : "")) && H(h, "class", l);
4472
+ },
4473
+ i: I,
4474
+ o: I,
4475
+ d(d) {
4476
+ d && Z(t), c && c.d(), rt(p, d), rt(b, d), e[12](null);
4477
+ }
4478
+ };
4479
+ }
4480
+ let Ze = "gameTab";
4481
+ function Xi(e, t, r) {
4482
+ let n;
4483
+ pr(e, Ui, (m) => r(7, n = m));
4484
+ let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { tournamentdetails: a } = t, { translationurl: h } = t, { lang: u = "en" } = t, l = "casino", c, f = window.navigator.userAgent, p;
4485
+ Fi({ withLocale: "en", translations: {} });
4486
+ const y = () => {
4487
+ fetch(h).then((m) => m.json()).then((m) => {
4488
+ Object.keys(m).forEach((P) => {
4489
+ Tt(P, m[P]);
4490
+ });
4491
+ }).catch((m) => {
4492
+ console.log(m);
4493
+ });
4494
+ };
4495
+ Object.keys(wt).forEach((m) => {
4496
+ Tt(m, wt[m]);
4497
+ });
4498
+ const b = () => {
4499
+ ji(u), setTimeout(
4500
+ () => {
4501
+ d();
4502
+ },
4503
+ 10
4504
+ );
4505
+ }, d = () => {
4506
+ window.postMessage(
4507
+ {
4508
+ type: "TournamentsTabsLocalize",
4509
+ tabTitleTranslations: {
4510
+ casino: n("casino"),
4511
+ sports: n("sports")
4512
+ }
4513
+ },
4514
+ window.location.href
4515
+ );
4516
+ }, w = (m) => {
4517
+ window.postMessage(
4518
+ {
4519
+ type: "TournamentGameAction",
4520
+ gameId: m.id,
4521
+ name: m.name,
4522
+ launchUrl: m.launchUrl
4523
+ },
4524
+ window.location.href
4525
+ );
4526
+ }, g = () => {
4527
+ const m = a.metadata?.sports?.rules;
4528
+ if (m) {
4529
+ r(5, l = a.wallet.casino ? "casino" : "sports");
4530
+ try {
4531
+ const P = JSON.parse(m);
4532
+ r(6, c = P[u] || P["*"]);
4533
+ } catch (P) {
4534
+ console.error("Error parsing tournament rules", P);
4535
+ }
4536
+ }
4537
+ }, S = (m) => {
4538
+ if (!m.data || !m.data.type)
4539
+ return;
4540
+ const P = m.data.tid || "";
4541
+ switch (m.data.type) {
4542
+ case "TournamentsTabSwitch":
4543
+ P === Ze && r(5, l = m.data.tab);
4544
+ break;
4545
+ case "TournamentsTabListenerLoaded":
4546
+ d();
4547
+ break;
4548
+ default:
4549
+ console.warn(`Unhandled message type: ${m.data.type}`);
4550
+ break;
4551
+ }
4552
+ };
4553
+ Er(() => (window.postMessage(
4554
+ {
4555
+ type: "TournamentsGamesListenerLoaded",
4556
+ gamesTabTid: Ze
4557
+ },
4558
+ window.location.href
4559
+ ), window.addEventListener("message", S, !1), () => {
4560
+ window.removeEventListener("message", S);
4561
+ }));
4562
+ function R(m) {
4563
+ Ne[m ? "unshift" : "push"](() => {
4564
+ p = m, r(4, p);
4565
+ });
4566
+ }
4567
+ return e.$$set = (m) => {
4568
+ "clientstyling" in m && r(0, i = m.clientstyling), "clientstylingurl" in m && r(1, o = m.clientstylingurl), "mbsource" in m && r(2, s = m.mbsource), "tournamentdetails" in m && r(3, a = m.tournamentdetails), "translationurl" in m && r(10, h = m.translationurl), "lang" in m && r(11, u = m.lang);
4569
+ }, e.$$.update = () => {
4570
+ e.$$.dirty & /*tournamentdetails*/
4571
+ 8 && a && g(), e.$$.dirty & /*lang*/
4572
+ 2048 && u && b(), e.$$.dirty & /*translationurl*/
4573
+ 1024 && h && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4574
+ 17 && i && p && Mr(p, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4575
+ 18 && o && p && $r(p, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4576
+ 20 && s && p && Rr(p, `${s}.Style`);
4577
+ }, [
4578
+ i,
4579
+ o,
4580
+ s,
4581
+ a,
4582
+ p,
4583
+ l,
4584
+ c,
4585
+ n,
4586
+ f,
4587
+ w,
4588
+ h,
4589
+ u,
4590
+ R
4591
+ ];
4592
+ }
4593
+ class Wi extends Lr {
4594
+ constructor(t) {
4595
+ super(), Ir(
4596
+ this,
4597
+ t,
4598
+ Xi,
4599
+ Vi,
4600
+ Nt,
4601
+ {
4602
+ clientstyling: 0,
4603
+ clientstylingurl: 1,
4604
+ mbsource: 2,
4605
+ tournamentdetails: 3,
4606
+ translationurl: 10,
4607
+ lang: 11
4608
+ },
4609
+ ki
4610
+ );
4611
+ }
4612
+ get clientstyling() {
4613
+ return this.$$.ctx[0];
4614
+ }
4615
+ set clientstyling(t) {
4616
+ this.$$set({ clientstyling: t }), C();
4617
+ }
4618
+ get clientstylingurl() {
4619
+ return this.$$.ctx[1];
4620
+ }
4621
+ set clientstylingurl(t) {
4622
+ this.$$set({ clientstylingurl: t }), C();
4623
+ }
4624
+ get mbsource() {
4625
+ return this.$$.ctx[2];
4626
+ }
4627
+ set mbsource(t) {
4628
+ this.$$set({ mbsource: t }), C();
4629
+ }
4630
+ get tournamentdetails() {
4631
+ return this.$$.ctx[3];
4632
+ }
4633
+ set tournamentdetails(t) {
4634
+ this.$$set({ tournamentdetails: t }), C();
4635
+ }
4636
+ get translationurl() {
4637
+ return this.$$.ctx[10];
4638
+ }
4639
+ set translationurl(t) {
4640
+ this.$$set({ translationurl: t }), C();
4641
+ }
4642
+ get lang() {
4643
+ return this.$$.ctx[11];
4644
+ }
4645
+ set lang(t) {
4646
+ this.$$set({ lang: t }), C();
4647
+ }
4648
+ }
4649
+ Nr(Wi, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, tournamentdetails: {}, translationurl: {}, lang: {} }, [], [], !0);
4650
+ export {
4651
+ Wi as C
4652
+ };