@everymatrix/player-panic-button 1.54.6 → 1.54.8

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