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