@everymatrix/casino-games-category-section 1.87.25 → 1.87.27

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