@everymatrix/casino-categories-slider 1.44.0 → 1.45.2

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