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