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