@everymatrix/casino-page 1.44.0 → 1.45.2

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