@everymatrix/casino-categories-providers 1.43.4 → 1.45.0

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