@everymatrix/player-account-self-exclusion 1.64.7 → 1.65.0

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