@everymatrix/player-account-product-restriction 0.0.3

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