@everymatrix/casino-providers 1.54.4 → 1.54.8

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