@everymatrix/player-account-gaming-limits-popup 1.44.0 → 1.45.2

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