@everymatrix/player-pending-withdrawals 1.54.6 → 1.54.8

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