@everymatrix/casino-tournaments-filter-controller 1.0.69 → 1.0.71

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