@everymatrix/player-account-menu-nd 1.43.4 → 1.45.0

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