@everymatrix/casino-page-nd 1.54.6 → 1.54.9

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