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