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