@everymatrix/casino-my-games 1.44.0 → 1.45.2

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