@everymatrix/casino-categories-slider 1.54.4 → 1.54.8

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