@everymatrix/player-account-gaming-limits-confirmation-modal 1.44.0 → 1.45.0

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