@everymatrix/casino-navigation-search 1.44.0 → 1.45.2

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