@everymatrix/casino-jackpot-banner 1.54.6 → 1.54.8

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