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