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