@everymatrix/casino-tournaments-tab 1.74.3 → 1.74.4

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