@everymatrix/casino-my-games-nd 1.87.26 → 1.87.27

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