@everymatrix/casino-categories-slider 1.44.0 → 1.45.0

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