@everymatrix/casino-tournaments-thumbnail-duration 1.44.0 → 1.45.2

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