@everymatrix/player-reality-check 1.86.3 → 1.86.5

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.
@@ -1,25 +1,25 @@
1
- import "../stencil/ui-skeleton-Cn9Rv2BY.js";
1
+ import "../stencil/ui-skeleton-W50o8tfg.js";
2
2
  function N() {
3
3
  }
4
- function Ut(e) {
4
+ function Dt(e) {
5
5
  return e();
6
6
  }
7
- function ht() {
7
+ function pt() {
8
8
  return /* @__PURE__ */ Object.create(null);
9
9
  }
10
- function ce(e) {
11
- e.forEach(Ut);
10
+ function le(e) {
11
+ e.forEach(Dt);
12
12
  }
13
- function st(e) {
13
+ function ct(e) {
14
14
  return typeof e == "function";
15
15
  }
16
- function Ft(e, t) {
16
+ function jt(e, t) {
17
17
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
18
18
  }
19
- function Er(e) {
19
+ function Sr(e) {
20
20
  return Object.keys(e).length === 0;
21
21
  }
22
- function Dt(e, ...t) {
22
+ function Gt(e, ...t) {
23
23
  if (e == null) {
24
24
  for (const n of t)
25
25
  n(void 0);
@@ -28,20 +28,20 @@ function Dt(e, ...t) {
28
28
  const r = e.subscribe(...t);
29
29
  return r.unsubscribe ? () => r.unsubscribe() : r;
30
30
  }
31
- function Sr(e, t, r) {
32
- e.$$.on_destroy.push(Dt(t, r));
31
+ function wr(e, t, r) {
32
+ e.$$.on_destroy.push(Gt(t, r));
33
33
  }
34
34
  function b(e, t) {
35
35
  e.appendChild(t);
36
36
  }
37
- function wr(e, t, r) {
38
- const n = Tr(e);
37
+ function Tr(e, t, r) {
38
+ const n = Hr(e);
39
39
  if (!n.getElementById(t)) {
40
- const i = H("style");
41
- i.id = t, i.textContent = r, Hr(n, i);
40
+ const i = T("style");
41
+ i.id = t, i.textContent = r, Cr(n, i);
42
42
  }
43
43
  }
44
- function Tr(e) {
44
+ function Hr(e) {
45
45
  if (!e)
46
46
  return document;
47
47
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -51,34 +51,34 @@ function Tr(e) {
51
51
  t
52
52
  ) : e.ownerDocument;
53
53
  }
54
- function Hr(e, t) {
54
+ function Cr(e, t) {
55
55
  return b(
56
56
  /** @type {Document} */
57
57
  e.head || e,
58
58
  t
59
59
  ), t.sheet;
60
60
  }
61
- function j(e, t, r) {
61
+ function G(e, t, r) {
62
62
  e.insertBefore(t, r || null);
63
63
  }
64
64
  function U(e) {
65
65
  e.parentNode && e.parentNode.removeChild(e);
66
66
  }
67
- function Gt(e, t) {
67
+ function Vt(e, t) {
68
68
  for (let r = 0; r < e.length; r += 1)
69
69
  e[r] && e[r].d(t);
70
70
  }
71
- function H(e) {
71
+ function T(e) {
72
72
  return document.createElement(e);
73
73
  }
74
74
  function K(e) {
75
75
  return document.createElementNS("http://www.w3.org/2000/svg", e);
76
76
  }
77
- function q(e) {
77
+ function W(e) {
78
78
  return document.createTextNode(e);
79
79
  }
80
- function G() {
81
- return q(" ");
80
+ function j() {
81
+ return W(" ");
82
82
  }
83
83
  function Ce(e, t, r, n) {
84
84
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
@@ -90,7 +90,7 @@ function A(e, t, r) {
90
90
  const n = t.toLowerCase();
91
91
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
92
92
  }
93
- function Cr(e) {
93
+ function Br(e) {
94
94
  let t;
95
95
  return {
96
96
  /* push */
@@ -103,17 +103,17 @@ function Cr(e) {
103
103
  }
104
104
  };
105
105
  }
106
- function Br(e) {
106
+ function Ar(e) {
107
107
  return Array.from(e.childNodes);
108
108
  }
109
109
  function ne(e, t) {
110
110
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
111
111
  t);
112
112
  }
113
- function Ar(e, t) {
113
+ function Pr(e, t) {
114
114
  e.value = t ?? "";
115
115
  }
116
- function Pr(e) {
116
+ function Or(e) {
117
117
  const t = {};
118
118
  return e.childNodes.forEach(
119
119
  /** @param {Element} node */
@@ -122,90 +122,90 @@ function Pr(e) {
122
122
  }
123
123
  ), t;
124
124
  }
125
- let be;
126
- function me(e) {
127
- be = e;
125
+ let me;
126
+ function de(e) {
127
+ me = e;
128
128
  }
129
129
  function Rr() {
130
- if (!be)
130
+ if (!me)
131
131
  throw new Error("Function called outside component initialization");
132
- return be;
132
+ return me;
133
133
  }
134
134
  function Mr(e) {
135
135
  Rr().$$.on_mount.push(e);
136
136
  }
137
- const re = [], je = [];
137
+ const re = [], Xe = [];
138
138
  let ie = [];
139
- const ft = [], Or = /* @__PURE__ */ Promise.resolve();
140
- let Ve = !1;
141
- function Ir() {
142
- Ve || (Ve = !0, Or.then(V));
139
+ const dt = [], Ir = /* @__PURE__ */ Promise.resolve();
140
+ let ze = !1;
141
+ function Lr() {
142
+ ze || (ze = !0, Ir.then(V));
143
143
  }
144
- function Xe(e) {
144
+ function qe(e) {
145
145
  ie.push(e);
146
146
  }
147
- const Le = /* @__PURE__ */ new Set();
147
+ const ke = /* @__PURE__ */ new Set();
148
148
  let ee = 0;
149
149
  function V() {
150
150
  if (ee !== 0)
151
151
  return;
152
- const e = be;
152
+ const e = me;
153
153
  do {
154
154
  try {
155
155
  for (; ee < re.length; ) {
156
156
  const t = re[ee];
157
- ee++, me(t), Lr(t.$$);
157
+ ee++, de(t), Nr(t.$$);
158
158
  }
159
159
  } catch (t) {
160
160
  throw re.length = 0, ee = 0, t;
161
161
  }
162
- for (me(null), re.length = 0, ee = 0; je.length; )
163
- je.pop()();
162
+ for (de(null), re.length = 0, ee = 0; Xe.length; )
163
+ Xe.pop()();
164
164
  for (let t = 0; t < ie.length; t += 1) {
165
165
  const r = ie[t];
166
- Le.has(r) || (Le.add(r), r());
166
+ ke.has(r) || (ke.add(r), r());
167
167
  }
168
168
  ie.length = 0;
169
169
  } while (re.length);
170
- for (; ft.length; )
171
- ft.pop()();
172
- Ve = !1, Le.clear(), me(e);
170
+ for (; dt.length; )
171
+ dt.pop()();
172
+ ze = !1, ke.clear(), de(e);
173
173
  }
174
- function Lr(e) {
174
+ function Nr(e) {
175
175
  if (e.fragment !== null) {
176
- e.update(), ce(e.before_update);
176
+ e.update(), le(e.before_update);
177
177
  const t = e.dirty;
178
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
178
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(qe);
179
179
  }
180
180
  }
181
- function Nr(e) {
181
+ function kr(e) {
182
182
  const t = [], r = [];
183
183
  ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
184
184
  }
185
- const kr = /* @__PURE__ */ new Set();
186
- function $r(e, t) {
187
- e && e.i && (kr.delete(e), e.i(t));
185
+ const $r = /* @__PURE__ */ new Set();
186
+ function Ur(e, t) {
187
+ e && e.i && ($r.delete(e), e.i(t));
188
188
  }
189
- function ze(e) {
189
+ function We(e) {
190
190
  return e?.length !== void 0 ? e : Array.from(e);
191
191
  }
192
- function Ur(e, t, r) {
192
+ function Fr(e, t, r) {
193
193
  const { fragment: n, after_update: i } = e.$$;
194
- n && n.m(t, r), Xe(() => {
195
- const o = e.$$.on_mount.map(Ut).filter(st);
196
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
197
- }), i.forEach(Xe);
194
+ n && n.m(t, r), qe(() => {
195
+ const o = e.$$.on_mount.map(Dt).filter(ct);
196
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : le(o), e.$$.on_mount = [];
197
+ }), i.forEach(qe);
198
198
  }
199
- function Fr(e, t) {
199
+ function Dr(e, t) {
200
200
  const r = e.$$;
201
- r.fragment !== null && (Nr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
201
+ r.fragment !== null && (kr(r.after_update), le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
202
202
  }
203
- function Dr(e, t) {
204
- e.$$.dirty[0] === -1 && (re.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ function jr(e, t) {
204
+ e.$$.dirty[0] === -1 && (re.push(e), Lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
205
205
  }
206
206
  function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
207
- const l = be;
208
- me(e);
207
+ const l = me;
208
+ de(e);
209
209
  const u = e.$$ = {
210
210
  fragment: null,
211
211
  ctx: [],
@@ -213,7 +213,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
213
213
  props: o,
214
214
  update: N,
215
215
  not_equal: i,
216
- bound: ht(),
216
+ bound: pt(),
217
217
  // lifecycle
218
218
  on_mount: [],
219
219
  on_destroy: [],
@@ -222,7 +222,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
222
222
  after_update: [],
223
223
  context: new Map(t.context || (l ? l.$$.context : [])),
224
224
  // everything else
225
- callbacks: ht(),
225
+ callbacks: pt(),
226
226
  dirty: a,
227
227
  skip_bound: !1,
228
228
  root: t.target || l.$$.root
@@ -231,19 +231,19 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
231
231
  let c = !1;
232
232
  if (u.ctx = r ? r(e, t.props || {}, (f, h, ...d) => {
233
233
  const m = d.length ? d[0] : h;
234
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && Dr(e, f)), h;
235
- }) : [], u.update(), c = !0, ce(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
234
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && jr(e, f)), h;
235
+ }) : [], u.update(), c = !0, le(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
236
236
  if (t.hydrate) {
237
- const f = Br(t.target);
237
+ const f = Ar(t.target);
238
238
  u.fragment && u.fragment.l(f), f.forEach(U);
239
239
  } else
240
240
  u.fragment && u.fragment.c();
241
- t.intro && $r(e.$$.fragment), Ur(e, t.target, t.anchor), V();
241
+ t.intro && Ur(e.$$.fragment), Fr(e, t.target, t.anchor), V();
242
242
  }
243
- me(l);
243
+ de(l);
244
244
  }
245
- let jt;
246
- typeof HTMLElement == "function" && (jt = class extends HTMLElement {
245
+ let Xt;
246
+ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
247
247
  /** The Svelte component constructor */
248
248
  $$ctor;
249
249
  /** Slots */
@@ -285,14 +285,14 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
285
285
  let o;
286
286
  return {
287
287
  c: function() {
288
- o = H("slot"), i !== "default" && x(o, "name", i);
288
+ o = T("slot"), i !== "default" && x(o, "name", i);
289
289
  },
290
290
  /**
291
291
  * @param {HTMLElement} target
292
292
  * @param {HTMLElement} [anchor]
293
293
  */
294
294
  m: function(l, u) {
295
- j(l, o, u);
295
+ G(l, o, u);
296
296
  },
297
297
  d: function(l) {
298
298
  l && U(o);
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (jt = class extends HTMLElement {
302
302
  };
303
303
  if (await Promise.resolve(), !this.$$cn || this.$$c)
304
304
  return;
305
- const t = {}, r = Pr(this);
305
+ const t = {}, r = Or(this);
306
306
  for (const i of this.$$s)
307
307
  i in r && (t[i] = [e(i)]);
308
308
  for (const i of this.attributes) {
@@ -389,8 +389,8 @@ function Se(e, t, r, n) {
389
389
  return t;
390
390
  }
391
391
  }
392
- function jr(e, t, r, n, i, o) {
393
- let s = class extends jt {
392
+ function Vr(e, t, r, n, i, o) {
393
+ let s = class extends Xt {
394
394
  constructor() {
395
395
  super(e, r, i), this.$$p_d = t;
396
396
  }
@@ -418,7 +418,7 @@ function jr(e, t, r, n, i, o) {
418
418
  }), e.element = /** @type {any} */
419
419
  s, s;
420
420
  }
421
- class Vr {
421
+ class Xr {
422
422
  /**
423
423
  * ### PRIVATE API
424
424
  *
@@ -437,7 +437,7 @@ class Vr {
437
437
  $$set = void 0;
438
438
  /** @returns {void} */
439
439
  $destroy() {
440
- Fr(this, 1), this.$destroy = N;
440
+ Dr(this, 1), this.$destroy = N;
441
441
  }
442
442
  /**
443
443
  * @template {Extract<keyof Events, string>} K
@@ -446,7 +446,7 @@ class Vr {
446
446
  * @returns {() => void}
447
447
  */
448
448
  $on(t, r) {
449
- if (!st(r))
449
+ if (!ct(r))
450
450
  return N;
451
451
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
452
452
  return n.push(r), () => {
@@ -459,11 +459,11 @@ class Vr {
459
459
  * @returns {void}
460
460
  */
461
461
  $set(t) {
462
- this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
+ this.$$set && !Sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
463
463
  }
464
464
  }
465
- const Xr = "4";
466
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
465
+ const zr = "4";
466
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zr);
467
467
  /*! *****************************************************************************
468
468
  Copyright (c) Microsoft Corporation.
469
469
 
@@ -478,43 +478,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
478
478
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
479
479
  PERFORMANCE OF THIS SOFTWARE.
480
480
  ***************************************************************************** */
481
- var qe = function(e, t) {
482
- return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
481
+ var Ze = function(e, t) {
482
+ return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
483
483
  r.__proto__ = n;
484
484
  } || function(r, n) {
485
485
  for (var i in n)
486
486
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
487
- }, qe(e, t);
487
+ }, Ze(e, t);
488
488
  };
489
- function Z(e, t) {
489
+ function ge(e, t) {
490
490
  if (typeof t != "function" && t !== null)
491
491
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
492
- qe(e, t);
492
+ Ze(e, t);
493
493
  function r() {
494
494
  this.constructor = e;
495
495
  }
496
496
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
497
497
  }
498
- var S = function() {
499
- return S = Object.assign || function(t) {
500
- for (var r, n = 1, i = arguments.length; n < i; n++) {
501
- r = arguments[n];
502
- for (var o in r)
503
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
504
- }
505
- return t;
506
- }, S.apply(this, arguments);
507
- };
508
- function zr(e, t) {
509
- var r = {};
510
- for (var n in e)
511
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
512
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
513
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
514
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
515
- return r;
516
- }
517
- function We(e) {
498
+ function Qe(e) {
518
499
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
519
500
  if (r)
520
501
  return r.call(e);
@@ -526,7 +507,7 @@ function We(e) {
526
507
  };
527
508
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
528
509
  }
529
- function Ze(e, t) {
510
+ function Je(e, t) {
530
511
  var r = typeof Symbol == "function" && e[Symbol.iterator];
531
512
  if (!r)
532
513
  return e;
@@ -546,22 +527,22 @@ function Ze(e, t) {
546
527
  }
547
528
  return o;
548
529
  }
549
- function oe(e, t, r) {
550
- if (r || arguments.length === 2)
530
+ function Ye(e, t, r) {
531
+ if (arguments.length === 2)
551
532
  for (var n = 0, i = t.length, o; n < i; n++)
552
533
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
553
534
  return e.concat(o || t);
554
535
  }
555
- function W(e) {
536
+ function Z(e) {
556
537
  return typeof e == "function";
557
538
  }
558
- function Vt(e) {
539
+ function zt(e) {
559
540
  var t = function(n) {
560
541
  Error.call(n), n.stack = new Error().stack;
561
542
  }, r = e(t);
562
543
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
563
544
  }
564
- var Ne = Vt(function(e) {
545
+ var $e = zt(function(e) {
565
546
  return function(r) {
566
547
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
567
548
  ` + r.map(function(n, i) {
@@ -570,13 +551,13 @@ var Ne = Vt(function(e) {
570
551
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
571
552
  };
572
553
  });
573
- function Qe(e, t) {
554
+ function Ke(e, t) {
574
555
  if (e) {
575
556
  var r = e.indexOf(t);
576
557
  0 <= r && e.splice(r, 1);
577
558
  }
578
559
  }
579
- var Pe = function() {
560
+ var Oe = function() {
580
561
  function e(t) {
581
562
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
582
563
  }
@@ -588,7 +569,7 @@ var Pe = function() {
588
569
  if (s)
589
570
  if (this._parentage = null, Array.isArray(s))
590
571
  try {
591
- for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
572
+ for (var a = Qe(s), l = a.next(); !l.done; l = a.next()) {
592
573
  var u = l.value;
593
574
  u.remove(this);
594
575
  }
@@ -605,22 +586,22 @@ var Pe = function() {
605
586
  else
606
587
  s.remove(this);
607
588
  var c = this.initialTeardown;
608
- if (W(c))
589
+ if (Z(c))
609
590
  try {
610
591
  c();
611
592
  } catch (p) {
612
- o = p instanceof Ne ? p.errors : [p];
593
+ o = p instanceof $e ? p.errors : [p];
613
594
  }
614
595
  var f = this._finalizers;
615
596
  if (f) {
616
597
  this._finalizers = null;
617
598
  try {
618
- for (var h = We(f), d = h.next(); !d.done; d = h.next()) {
599
+ for (var h = Qe(f), d = h.next(); !d.done; d = h.next()) {
619
600
  var m = d.value;
620
601
  try {
621
- pt(m);
602
+ mt(m);
622
603
  } catch (p) {
623
- o = o ?? [], p instanceof Ne ? o = oe(oe([], Ze(o)), Ze(p.errors)) : o.push(p);
604
+ o = o ?? [], p instanceof $e ? o = Ye(Ye([], Je(o)), Je(p.errors)) : o.push(p);
624
605
  }
625
606
  }
626
607
  } catch (p) {
@@ -635,13 +616,13 @@ var Pe = function() {
635
616
  }
636
617
  }
637
618
  if (o)
638
- throw new Ne(o);
619
+ throw new $e(o);
639
620
  }
640
621
  }, e.prototype.add = function(t) {
641
622
  var r;
642
623
  if (t && t !== this)
643
624
  if (this.closed)
644
- pt(t);
625
+ mt(t);
645
626
  else {
646
627
  if (t instanceof e) {
647
628
  if (t.closed || t._hasParent(this))
@@ -658,56 +639,52 @@ var Pe = function() {
658
639
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
659
640
  }, e.prototype._removeParent = function(t) {
660
641
  var r = this._parentage;
661
- r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
642
+ r === t ? this._parentage = null : Array.isArray(r) && Ke(r, t);
662
643
  }, e.prototype.remove = function(t) {
663
644
  var r = this._finalizers;
664
- r && Qe(r, t), t instanceof e && t._removeParent(this);
645
+ r && Ke(r, t), t instanceof e && t._removeParent(this);
665
646
  }, e.EMPTY = function() {
666
647
  var t = new e();
667
648
  return t.closed = !0, t;
668
649
  }(), e;
669
- }(), Xt = Pe.EMPTY;
670
- function zt(e) {
671
- return e instanceof Pe || e && "closed" in e && W(e.remove) && W(e.add) && W(e.unsubscribe);
672
- }
673
- function pt(e) {
674
- W(e) ? e() : e.unsubscribe();
675
- }
676
- var qt = {
677
- onUnhandledError: null,
678
- onStoppedNotification: null,
679
- Promise: void 0,
680
- useDeprecatedSynchronousErrorHandling: !1,
681
- useDeprecatedNextContext: !1
682
- }, qr = {
650
+ }(), qt = Oe.EMPTY;
651
+ function Wt(e) {
652
+ return e instanceof Oe || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
653
+ }
654
+ function mt(e) {
655
+ Z(e) ? e() : e.unsubscribe();
656
+ }
657
+ var qr = {
658
+ Promise: void 0
659
+ }, Wr = {
683
660
  setTimeout: function(e, t) {
684
661
  for (var r = [], n = 2; n < arguments.length; n++)
685
662
  r[n - 2] = arguments[n];
686
- return setTimeout.apply(void 0, oe([e, t], Ze(r)));
663
+ return setTimeout.apply(void 0, Ye([e, t], Je(r)));
687
664
  },
688
665
  clearTimeout: function(e) {
689
666
  return clearTimeout(e);
690
667
  },
691
668
  delegate: void 0
692
669
  };
693
- function Wr(e) {
694
- qr.setTimeout(function() {
670
+ function Zr(e) {
671
+ Wr.setTimeout(function() {
695
672
  throw e;
696
673
  });
697
674
  }
698
- function dt() {
675
+ function bt() {
699
676
  }
700
677
  function we(e) {
701
678
  e();
702
679
  }
703
- var Wt = function(e) {
704
- Z(t, e);
680
+ var Zt = function(e) {
681
+ ge(t, e);
705
682
  function t(r) {
706
683
  var n = e.call(this) || this;
707
- return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = Yr, n;
684
+ return n.isStopped = !1, r ? (n.destination = r, Wt(r) && r.add(n)) : n.destination = Yr, n;
708
685
  }
709
686
  return t.create = function(r, n, i) {
710
- return new Je(r, n, i);
687
+ return new et(r, n, i);
711
688
  }, t.prototype.next = function(r) {
712
689
  this.isStopped || this._next(r);
713
690
  }, t.prototype.error = function(r) {
@@ -731,11 +708,7 @@ var Wt = function(e) {
731
708
  this.unsubscribe();
732
709
  }
733
710
  }, t;
734
- }(Pe), Zr = Function.prototype.bind;
735
- function ke(e, t) {
736
- return Zr.call(e, t);
737
- }
738
- var Qr = function() {
711
+ }(Oe), Qr = function() {
739
712
  function e(t) {
740
713
  this.partialObserver = t;
741
714
  }
@@ -766,41 +739,29 @@ var Qr = function() {
766
739
  xe(r);
767
740
  }
768
741
  }, e;
769
- }(), Je = function(e) {
770
- Z(t, e);
742
+ }(), et = function(e) {
743
+ ge(t, e);
771
744
  function t(r, n, i) {
772
745
  var o = e.call(this) || this, s;
773
- if (W(r) || !r)
774
- s = {
775
- next: r ?? void 0,
776
- error: n ?? void 0,
777
- complete: i ?? void 0
778
- };
779
- else {
780
- var a;
781
- o && qt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
782
- return o.unsubscribe();
783
- }, s = {
784
- next: r.next && ke(r.next, a),
785
- error: r.error && ke(r.error, a),
786
- complete: r.complete && ke(r.complete, a)
787
- }) : s = r;
788
- }
789
- return o.destination = new Qr(s), o;
746
+ return Z(r) || !r ? s = {
747
+ next: r ?? void 0,
748
+ error: n ?? void 0,
749
+ complete: i ?? void 0
750
+ } : s = r, o.destination = new Qr(s), o;
790
751
  }
791
752
  return t;
792
- }(Wt);
753
+ }(Zt);
793
754
  function xe(e) {
794
- Wr(e);
755
+ Zr(e);
795
756
  }
796
757
  function Jr(e) {
797
758
  throw e;
798
759
  }
799
760
  var Yr = {
800
761
  closed: !0,
801
- next: dt,
762
+ next: bt,
802
763
  error: Jr,
803
- complete: dt
764
+ complete: bt
804
765
  }, Kr = function() {
805
766
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
806
767
  }();
@@ -814,7 +775,7 @@ function tn(e) {
814
775
  }, r);
815
776
  };
816
777
  }
817
- var mt = function() {
778
+ var yt = function() {
818
779
  function e(t) {
819
780
  t && (this._subscribe = t);
820
781
  }
@@ -822,7 +783,7 @@ var mt = function() {
822
783
  var r = new e();
823
784
  return r.source = this, r.operator = t, r;
824
785
  }, e.prototype.subscribe = function(t, r, n) {
825
- var i = this, o = nn(t) ? t : new Je(t, r, n);
786
+ var i = this, o = nn(t) ? t : new et(t, r, n);
826
787
  return we(function() {
827
788
  var s = i, a = s.operator, l = s.source;
828
789
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -835,8 +796,8 @@ var mt = function() {
835
796
  }
836
797
  }, e.prototype.forEach = function(t, r) {
837
798
  var n = this;
838
- return r = bt(r), new r(function(i, o) {
839
- var s = new Je({
799
+ return r = gt(r), new r(function(i, o) {
800
+ var s = new et({
840
801
  next: function(a) {
841
802
  try {
842
803
  t(a);
@@ -860,7 +821,7 @@ var mt = function() {
860
821
  return tn(t)(this);
861
822
  }, e.prototype.toPromise = function(t) {
862
823
  var r = this;
863
- return t = bt(t), new t(function(n, i) {
824
+ return t = gt(t), new t(function(n, i) {
864
825
  var o;
865
826
  r.subscribe(function(s) {
866
827
  return o = s;
@@ -874,28 +835,28 @@ var mt = function() {
874
835
  return new e(t);
875
836
  }, e;
876
837
  }();
877
- function bt(e) {
838
+ function gt(e) {
878
839
  var t;
879
- return (t = e ?? qt.Promise) !== null && t !== void 0 ? t : Promise;
840
+ return (t = e ?? qr.Promise) !== null && t !== void 0 ? t : Promise;
880
841
  }
881
842
  function rn(e) {
882
- return e && W(e.next) && W(e.error) && W(e.complete);
843
+ return e && Z(e.next) && Z(e.error) && Z(e.complete);
883
844
  }
884
845
  function nn(e) {
885
- return e && e instanceof Wt || rn(e) && zt(e);
846
+ return e && e instanceof Zt || rn(e) && Wt(e);
886
847
  }
887
- var on = Vt(function(e) {
848
+ var on = zt(function(e) {
888
849
  return function() {
889
850
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
890
851
  };
891
- }), Zt = function(e) {
892
- Z(t, e);
852
+ }), Qt = function(e) {
853
+ ge(t, e);
893
854
  function t() {
894
855
  var r = e.call(this) || this;
895
856
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
896
857
  }
897
858
  return t.prototype.lift = function(r) {
898
- var n = new yt(this, this);
859
+ var n = new vt(this, this);
899
860
  return n.operator = r, n;
900
861
  }, t.prototype._throwIfClosed = function() {
901
862
  if (this.closed)
@@ -907,7 +868,7 @@ var on = Vt(function(e) {
907
868
  if (n._throwIfClosed(), !n.isStopped) {
908
869
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
909
870
  try {
910
- for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
871
+ for (var s = Qe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
911
872
  var l = a.value;
912
873
  l.next(r);
913
874
  }
@@ -956,20 +917,20 @@ var on = Vt(function(e) {
956
917
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
957
918
  }, t.prototype._innerSubscribe = function(r) {
958
919
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
959
- return o || s ? Xt : (this.currentObservers = null, a.push(r), new Pe(function() {
960
- n.currentObservers = null, Qe(a, r);
920
+ return o || s ? qt : (this.currentObservers = null, a.push(r), new Oe(function() {
921
+ n.currentObservers = null, Ke(a, r);
961
922
  }));
962
923
  }, t.prototype._checkFinalizedStatuses = function(r) {
963
924
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
964
925
  i ? r.error(o) : s && r.complete();
965
926
  }, t.prototype.asObservable = function() {
966
- var r = new mt();
927
+ var r = new yt();
967
928
  return r.source = this, r;
968
929
  }, t.create = function(r, n) {
969
- return new yt(r, n);
930
+ return new vt(r, n);
970
931
  }, t;
971
- }(mt), yt = function(e) {
972
- Z(t, e);
932
+ }(yt), vt = function(e) {
933
+ ge(t, e);
973
934
  function t(r, n) {
974
935
  var i = e.call(this) || this;
975
936
  return i.destination = r, i.source = n, i;
@@ -985,17 +946,17 @@ var on = Vt(function(e) {
985
946
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
986
947
  }, t.prototype._subscribe = function(r) {
987
948
  var n, i;
988
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
949
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
989
950
  }, t;
990
- }(Zt), Qt = {
951
+ }(Qt), Jt = {
991
952
  now: function() {
992
- return (Qt.delegate || Date).now();
953
+ return (Jt.delegate || Date).now();
993
954
  },
994
955
  delegate: void 0
995
956
  }, sn = function(e) {
996
- Z(t, e);
957
+ ge(t, e);
997
958
  function t(r, n, i) {
998
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Qt);
959
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jt);
999
960
  var o = e.call(this) || this;
1000
961
  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;
1001
962
  }
@@ -1015,13 +976,13 @@ var on = Vt(function(e) {
1015
976
  u && o.splice(0, u + 1);
1016
977
  }
1017
978
  }, t;
1018
- }(Zt);
1019
- const gt = [], vt = {}, an = (e, t = 0) => {
1020
- if (gt.indexOf(e) == -1) {
979
+ }(Qt);
980
+ const _t = [], xt = {}, an = (e, t = 0) => {
981
+ if (_t.indexOf(e) == -1) {
1021
982
  const r = new sn(t);
1022
- vt[e] = r, gt.push(e);
983
+ xt[e] = r, _t.push(e);
1023
984
  }
1024
- return vt[e];
985
+ return xt[e];
1025
986
  }, te = [];
1026
987
  function un(e, t) {
1027
988
  return {
@@ -1032,7 +993,7 @@ function Re(e, t = N) {
1032
993
  let r;
1033
994
  const n = /* @__PURE__ */ new Set();
1034
995
  function i(a) {
1035
- if (Ft(e, a) && (e = a, r)) {
996
+ if (jt(e, a) && (e = a, r)) {
1036
997
  const l = !te.length;
1037
998
  for (const u of n)
1038
999
  u[1](), te.push(u, e);
@@ -1054,7 +1015,7 @@ function Re(e, t = N) {
1054
1015
  }
1055
1016
  return { set: i, update: o, subscribe: s };
1056
1017
  }
1057
- function he(e, t, r) {
1018
+ function ce(e, t, r) {
1058
1019
  const n = !Array.isArray(e), i = n ? [e] : e;
1059
1020
  if (!i.every(Boolean))
1060
1021
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -1068,9 +1029,9 @@ function he(e, t, r) {
1068
1029
  return;
1069
1030
  f();
1070
1031
  const m = t(n ? u[0] : u, s, a);
1071
- o ? s(m) : f = st(m) ? m : N;
1032
+ o ? s(m) : f = ct(m) ? m : N;
1072
1033
  }, d = i.map(
1073
- (m, p) => Dt(
1034
+ (m, p) => Gt(
1074
1035
  m,
1075
1036
  (y) => {
1076
1037
  u[p] = y, c &= ~(1 << p), l && h();
@@ -1081,7 +1042,7 @@ function he(e, t, r) {
1081
1042
  )
1082
1043
  );
1083
1044
  return l = !0, h(), function() {
1084
- ce(d), f(), l = !1;
1045
+ le(d), f(), l = !1;
1085
1046
  };
1086
1047
  });
1087
1048
  }
@@ -1105,29 +1066,29 @@ function mn(e) {
1105
1066
  function bn(e) {
1106
1067
  return Array.isArray(e) ? [] : {};
1107
1068
  }
1108
- function ye(e, t) {
1109
- return t.clone !== !1 && t.isMergeableObject(e) ? se(bn(e), e, t) : e;
1069
+ function be(e, t) {
1070
+ return t.clone !== !1 && t.isMergeableObject(e) ? oe(bn(e), e, t) : e;
1110
1071
  }
1111
1072
  function yn(e, t, r) {
1112
1073
  return e.concat(t).map(function(n) {
1113
- return ye(n, r);
1074
+ return be(n, r);
1114
1075
  });
1115
1076
  }
1116
1077
  function gn(e, t) {
1117
1078
  if (!t.customMerge)
1118
- return se;
1079
+ return oe;
1119
1080
  var r = t.customMerge(e);
1120
- return typeof r == "function" ? r : se;
1081
+ return typeof r == "function" ? r : oe;
1121
1082
  }
1122
1083
  function vn(e) {
1123
1084
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1124
1085
  return Object.propertyIsEnumerable.call(e, t);
1125
1086
  }) : [];
1126
1087
  }
1127
- function _t(e) {
1088
+ function Et(e) {
1128
1089
  return Object.keys(e).concat(vn(e));
1129
1090
  }
1130
- function Jt(e, t) {
1091
+ function Yt(e, t) {
1131
1092
  try {
1132
1093
  return t in e;
1133
1094
  } catch {
@@ -1135,129 +1096,179 @@ function Jt(e, t) {
1135
1096
  }
1136
1097
  }
1137
1098
  function _n(e, t) {
1138
- return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1099
+ return Yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1139
1100
  }
1140
1101
  function xn(e, t, r) {
1141
1102
  var n = {};
1142
- return r.isMergeableObject(e) && _t(e).forEach(function(i) {
1143
- n[i] = ye(e[i], r);
1144
- }), _t(t).forEach(function(i) {
1145
- _n(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = gn(i, r)(e[i], t[i], r) : n[i] = ye(t[i], r));
1103
+ return r.isMergeableObject(e) && Et(e).forEach(function(i) {
1104
+ n[i] = be(e[i], r);
1105
+ }), Et(t).forEach(function(i) {
1106
+ _n(e, i) || (Yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = gn(i, r)(e[i], t[i], r) : n[i] = be(t[i], r));
1146
1107
  }), n;
1147
1108
  }
1148
- function se(e, t, r) {
1149
- r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = ye;
1109
+ function oe(e, t, r) {
1110
+ r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = be;
1150
1111
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1151
- return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : ye(t, r);
1112
+ return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : be(t, r);
1152
1113
  }
1153
- se.all = function(t, r) {
1114
+ oe.all = function(t, r) {
1154
1115
  if (!Array.isArray(t))
1155
1116
  throw new Error("first argument should be an array");
1156
1117
  return t.reduce(function(n, i) {
1157
- return se(n, i, r);
1118
+ return oe(n, i, r);
1158
1119
  }, {});
1159
1120
  };
1160
- var En = se, Sn = En;
1121
+ var En = oe, Sn = En;
1161
1122
  const wn = /* @__PURE__ */ ln(Sn);
1162
- function $e(e, t) {
1163
- var r = t && t.cache ? t.cache : Pn, n = t && t.serializer ? t.serializer : An, i = t && t.strategy ? t.strategy : Hn;
1123
+ var tt = function(e, t) {
1124
+ return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1125
+ r.__proto__ = n;
1126
+ } || function(r, n) {
1127
+ for (var i in n)
1128
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1129
+ }, tt(e, t);
1130
+ };
1131
+ function Me(e, t) {
1132
+ if (typeof t != "function" && t !== null)
1133
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1134
+ tt(e, t);
1135
+ function r() {
1136
+ this.constructor = e;
1137
+ }
1138
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1139
+ }
1140
+ var X = function() {
1141
+ return X = Object.assign || function(t) {
1142
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1143
+ r = arguments[n];
1144
+ for (var o in r)
1145
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1146
+ }
1147
+ return t;
1148
+ }, X.apply(this, arguments);
1149
+ };
1150
+ function Tn(e, t) {
1151
+ var r = {};
1152
+ for (var n in e)
1153
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1154
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1155
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1156
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1157
+ return r;
1158
+ }
1159
+ function Ue(e, t, r) {
1160
+ if (r || arguments.length === 2)
1161
+ for (var n = 0, i = t.length, o; n < i; n++)
1162
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1163
+ return e.concat(o || Array.prototype.slice.call(t));
1164
+ }
1165
+ function Fe(e, t) {
1166
+ var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Pn, i = t && t.strategy ? t.strategy : Bn;
1164
1167
  return i(e, {
1165
1168
  cache: r,
1166
1169
  serializer: n
1167
1170
  });
1168
1171
  }
1169
- function Tn(e) {
1172
+ function Hn(e) {
1170
1173
  return e == null || typeof e == "number" || typeof e == "boolean";
1171
1174
  }
1172
- function Yt(e, t, r, n) {
1173
- var i = Tn(n) ? n : r(n), o = t.get(i);
1175
+ function Cn(e, t, r, n) {
1176
+ var i = Hn(n) ? n : r(n), o = t.get(i);
1174
1177
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1175
1178
  }
1176
1179
  function Kt(e, t, r) {
1177
1180
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1178
1181
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1179
1182
  }
1180
- function at(e, t, r, n, i) {
1183
+ function er(e, t, r, n, i) {
1181
1184
  return r.bind(t, e, n, i);
1182
1185
  }
1183
- function Hn(e, t) {
1184
- var r = e.length === 1 ? Yt : Kt;
1185
- return at(e, this, r, t.cache.create(), t.serializer);
1186
- }
1187
- function Cn(e, t) {
1188
- return at(e, this, Kt, t.cache.create(), t.serializer);
1189
- }
1190
1186
  function Bn(e, t) {
1191
- return at(e, this, Yt, t.cache.create(), t.serializer);
1187
+ var r = e.length === 1 ? Cn : Kt;
1188
+ return er(e, this, r, t.cache.create(), t.serializer);
1192
1189
  }
1193
- var An = function() {
1194
- return JSON.stringify(arguments);
1195
- };
1196
- function ut() {
1197
- this.cache = /* @__PURE__ */ Object.create(null);
1190
+ function An(e, t) {
1191
+ return er(e, this, Kt, t.cache.create(), t.serializer);
1198
1192
  }
1199
- ut.prototype.get = function(e) {
1200
- return this.cache[e];
1201
- };
1202
- ut.prototype.set = function(e, t) {
1203
- this.cache[e] = t;
1204
- };
1205
- var Pn = {
1193
+ var Pn = function() {
1194
+ return JSON.stringify(arguments);
1195
+ }, On = (
1196
+ /** @class */
1197
+ function() {
1198
+ function e() {
1199
+ this.cache = /* @__PURE__ */ Object.create(null);
1200
+ }
1201
+ return e.prototype.get = function(t) {
1202
+ return this.cache[t];
1203
+ }, e.prototype.set = function(t, r) {
1204
+ this.cache[t] = r;
1205
+ }, e;
1206
+ }()
1207
+ ), Rn = {
1206
1208
  create: function() {
1207
- return new ut();
1209
+ return new On();
1208
1210
  }
1209
- }, Ue = {
1210
- variadic: Cn,
1211
- monadic: Bn
1212
- }, v;
1211
+ }, De = {
1212
+ variadic: An
1213
+ }, Be = function() {
1214
+ return Be = Object.assign || function(t) {
1215
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1216
+ r = arguments[n];
1217
+ for (var o in r)
1218
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1219
+ }
1220
+ return t;
1221
+ }, Be.apply(this, arguments);
1222
+ };
1223
+ var v;
1213
1224
  (function(e) {
1214
1225
  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";
1215
1226
  })(v || (v = {}));
1216
- var C;
1227
+ var H;
1217
1228
  (function(e) {
1218
1229
  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";
1219
- })(C || (C = {}));
1220
- var ae;
1230
+ })(H || (H = {}));
1231
+ var se;
1221
1232
  (function(e) {
1222
1233
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1223
- })(ae || (ae = {}));
1224
- function xt(e) {
1225
- return e.type === C.literal;
1226
- }
1227
- function Rn(e) {
1228
- return e.type === C.argument;
1234
+ })(se || (se = {}));
1235
+ function St(e) {
1236
+ return e.type === H.literal;
1229
1237
  }
1230
- function er(e) {
1231
- return e.type === C.number;
1238
+ function Mn(e) {
1239
+ return e.type === H.argument;
1232
1240
  }
1233
1241
  function tr(e) {
1234
- return e.type === C.date;
1242
+ return e.type === H.number;
1235
1243
  }
1236
1244
  function rr(e) {
1237
- return e.type === C.time;
1245
+ return e.type === H.date;
1238
1246
  }
1239
1247
  function nr(e) {
1240
- return e.type === C.select;
1248
+ return e.type === H.time;
1241
1249
  }
1242
1250
  function ir(e) {
1243
- return e.type === C.plural;
1244
- }
1245
- function Mn(e) {
1246
- return e.type === C.pound;
1251
+ return e.type === H.select;
1247
1252
  }
1248
1253
  function or(e) {
1249
- return e.type === C.tag;
1254
+ return e.type === H.plural;
1255
+ }
1256
+ function In(e) {
1257
+ return e.type === H.pound;
1250
1258
  }
1251
1259
  function sr(e) {
1252
- return !!(e && typeof e == "object" && e.type === ae.number);
1260
+ return e.type === H.tag;
1253
1261
  }
1254
- function Ye(e) {
1255
- return !!(e && typeof e == "object" && e.type === ae.dateTime);
1262
+ function ar(e) {
1263
+ return !!(e && typeof e == "object" && e.type === se.number);
1256
1264
  }
1257
- var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1258
- function In(e) {
1265
+ function rt(e) {
1266
+ return !!(e && typeof e == "object" && e.type === se.dateTime);
1267
+ }
1268
+ var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ln = /(?:[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;
1269
+ function Nn(e) {
1259
1270
  var t = {};
1260
- return e.replace(On, function(r) {
1271
+ return e.replace(Ln, function(r) {
1261
1272
  var n = r.length;
1262
1273
  switch (r[0]) {
1263
1274
  case "G":
@@ -1346,11 +1357,21 @@ function In(e) {
1346
1357
  return "";
1347
1358
  }), t;
1348
1359
  }
1349
- var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1350
- function Nn(e) {
1360
+ var B = function() {
1361
+ return B = Object.assign || function(t) {
1362
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1363
+ r = arguments[n];
1364
+ for (var o in r)
1365
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1366
+ }
1367
+ return t;
1368
+ }, B.apply(this, arguments);
1369
+ };
1370
+ var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1371
+ function $n(e) {
1351
1372
  if (e.length === 0)
1352
1373
  throw new Error("Number skeleton cannot be empty");
1353
- for (var t = e.split(Ln).filter(function(h) {
1374
+ for (var t = e.split(kn).filter(function(h) {
1354
1375
  return h.length > 0;
1355
1376
  }), r = [], n = 0, i = t; n < i.length; n++) {
1356
1377
  var o = i[n], s = o.split("/");
@@ -1365,17 +1386,17 @@ function Nn(e) {
1365
1386
  }
1366
1387
  return r;
1367
1388
  }
1368
- function kn(e) {
1389
+ function Un(e) {
1369
1390
  return e.replace(/^(.*?)-/, "");
1370
1391
  }
1371
- var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
1372
- function St(e) {
1392
+ var wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Fn = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
1393
+ function Tt(e) {
1373
1394
  var t = {};
1374
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
1395
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, n, i) {
1375
1396
  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)), "";
1376
1397
  }), t;
1377
1398
  }
1378
- function cr(e) {
1399
+ function hr(e) {
1379
1400
  switch (e) {
1380
1401
  case "sign-auto":
1381
1402
  return {
@@ -1415,7 +1436,7 @@ function cr(e) {
1415
1436
  };
1416
1437
  }
1417
1438
  }
1418
- function Un(e) {
1439
+ function Dn(e) {
1419
1440
  var t;
1420
1441
  if (e[0] === "E" && e[1] === "E" ? (t = {
1421
1442
  notation: "engineering"
@@ -1423,17 +1444,17 @@ function Un(e) {
1423
1444
  notation: "scientific"
1424
1445
  }, e = e.slice(1)), t) {
1425
1446
  var r = e.slice(0, 2);
1426
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
1447
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
1427
1448
  throw new Error("Malformed concise eng/scientific notation");
1428
1449
  t.minimumIntegerDigits = e.length;
1429
1450
  }
1430
1451
  return t;
1431
1452
  }
1432
- function wt(e) {
1433
- var t = {}, r = cr(e);
1453
+ function Ht(e) {
1454
+ var t = {}, r = hr(e);
1434
1455
  return r || t;
1435
1456
  }
1436
- function Fn(e) {
1457
+ function jn(e) {
1437
1458
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1438
1459
  var i = n[r];
1439
1460
  switch (i.stem) {
@@ -1457,7 +1478,7 @@ function Fn(e) {
1457
1478
  continue;
1458
1479
  case "measure-unit":
1459
1480
  case "unit":
1460
- t.style = "unit", t.unit = kn(i.options[0]);
1481
+ t.style = "unit", t.unit = Un(i.options[0]);
1461
1482
  continue;
1462
1483
  case "compact-short":
1463
1484
  case "K":
@@ -1468,13 +1489,13 @@ function Fn(e) {
1468
1489
  t.notation = "compact", t.compactDisplay = "long";
1469
1490
  continue;
1470
1491
  case "scientific":
1471
- t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1472
- return S(S({}, l), wt(u));
1492
+ t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1493
+ return B(B({}, l), Ht(u));
1473
1494
  }, {}));
1474
1495
  continue;
1475
1496
  case "engineering":
1476
- t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1477
- return S(S({}, l), wt(u));
1497
+ t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1498
+ return B(B({}, l), Ht(u));
1478
1499
  }, {}));
1479
1500
  continue;
1480
1501
  case "notation-simple":
@@ -1519,7 +1540,7 @@ function Fn(e) {
1519
1540
  case "integer-width":
1520
1541
  if (i.options.length > 1)
1521
1542
  throw new RangeError("integer-width stems only accept a single optional option");
1522
- i.options[0].replace($n, function(l, u, c, f, h, d) {
1543
+ i.options[0].replace(Fn, function(l, u, c, f, h, d) {
1523
1544
  if (u)
1524
1545
  t.minimumIntegerDigits = c.length;
1525
1546
  else {
@@ -1532,28 +1553,28 @@ function Fn(e) {
1532
1553
  });
1533
1554
  continue;
1534
1555
  }
1535
- if (lr.test(i.stem)) {
1556
+ if (cr.test(i.stem)) {
1536
1557
  t.minimumIntegerDigits = i.stem.length;
1537
1558
  continue;
1538
1559
  }
1539
- if (Et.test(i.stem)) {
1560
+ if (wt.test(i.stem)) {
1540
1561
  if (i.options.length > 1)
1541
1562
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1542
- i.stem.replace(Et, function(l, u, c, f, h, d) {
1563
+ i.stem.replace(wt, function(l, u, c, f, h, d) {
1543
1564
  return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1544
1565
  });
1545
1566
  var o = i.options[0];
1546
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), St(o)));
1567
+ o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Tt(o)));
1547
1568
  continue;
1548
1569
  }
1549
- if (ur.test(i.stem)) {
1550
- t = S(S({}, t), St(i.stem));
1570
+ if (lr.test(i.stem)) {
1571
+ t = B(B({}, t), Tt(i.stem));
1551
1572
  continue;
1552
1573
  }
1553
- var s = cr(i.stem);
1554
- s && (t = S(S({}, t), s));
1555
- var a = Un(i.stem);
1556
- a && (t = S(S({}, t), a));
1574
+ var s = hr(i.stem);
1575
+ s && (t = B(B({}, t), s));
1576
+ var a = Dn(i.stem);
1577
+ a && (t = B(B({}, t), a));
1557
1578
  }
1558
1579
  return t;
1559
1580
  }
@@ -2972,13 +2993,13 @@ var Ee = {
2972
2993
  "h"
2973
2994
  ]
2974
2995
  };
2975
- function Dn(e, t) {
2996
+ function Gn(e, t) {
2976
2997
  for (var r = "", n = 0; n < e.length; n++) {
2977
2998
  var i = e.charAt(n);
2978
2999
  if (i === "j") {
2979
3000
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2980
3001
  o++, n++;
2981
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Gn(t);
3002
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Vn(t);
2982
3003
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2983
3004
  r += l;
2984
3005
  for (; s-- > 0; )
@@ -2988,7 +3009,7 @@ function Dn(e, t) {
2988
3009
  }
2989
3010
  return r;
2990
3011
  }
2991
- function Gn(e) {
3012
+ function Vn(e) {
2992
3013
  var t = e.hourCycle;
2993
3014
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2994
3015
  e.hourCycles && // @ts-ignore
@@ -3010,20 +3031,20 @@ function Gn(e) {
3010
3031
  var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
3011
3032
  return i[0];
3012
3033
  }
3013
- var Fe, jn = new RegExp("^".concat(ar.source, "*")), Vn = new RegExp("".concat(ar.source, "*$"));
3034
+ var je, Xn = new RegExp("^".concat(ur.source, "*")), zn = new RegExp("".concat(ur.source, "*$"));
3014
3035
  function _(e, t) {
3015
3036
  return { start: e, end: t };
3016
3037
  }
3017
- var Xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), zn = !!String.fromCodePoint, qn = !!Object.fromEntries, Wn = !!String.prototype.codePointAt, Zn = !!String.prototype.trimStart, Qn = !!String.prototype.trimEnd, Jn = !!Number.isSafeInteger, Yn = Jn ? Number.isSafeInteger : function(e) {
3038
+ var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wn = !!String.fromCodePoint, Zn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, Jn = !!String.prototype.trimStart, Yn = !!String.prototype.trimEnd, Kn = !!Number.isSafeInteger, ei = Kn ? Number.isSafeInteger : function(e) {
3018
3039
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3019
- }, Ke = !0;
3040
+ }, nt = !0;
3020
3041
  try {
3021
- var Kn = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3022
- Ke = ((Fe = Kn.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
3042
+ var ti = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3043
+ nt = ((je = ti.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
3023
3044
  } catch {
3024
- Ke = !1;
3045
+ nt = !1;
3025
3046
  }
3026
- var Tt = Xn ? (
3047
+ var Ct = qn ? (
3027
3048
  // Native
3028
3049
  function(t, r, n) {
3029
3050
  return t.startsWith(r, n);
@@ -3033,7 +3054,7 @@ var Tt = Xn ? (
3033
3054
  function(t, r, n) {
3034
3055
  return t.slice(n, n + r.length) === r;
3035
3056
  }
3036
- ), et = zn ? String.fromCodePoint : (
3057
+ ), it = Wn ? String.fromCodePoint : (
3037
3058
  // IE11
3038
3059
  function() {
3039
3060
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3045,9 +3066,9 @@ var Tt = Xn ? (
3045
3066
  }
3046
3067
  return n;
3047
3068
  }
3048
- ), Ht = (
3069
+ ), Bt = (
3049
3070
  // native
3050
- qn ? Object.fromEntries : (
3071
+ Zn ? Object.fromEntries : (
3051
3072
  // Ponyfill
3052
3073
  function(t) {
3053
3074
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3057,7 +3078,7 @@ var Tt = Xn ? (
3057
3078
  return r;
3058
3079
  }
3059
3080
  )
3060
- ), hr = Wn ? (
3081
+ ), fr = Qn ? (
3061
3082
  // Native
3062
3083
  function(t, r) {
3063
3084
  return t.codePointAt(r);
@@ -3071,7 +3092,7 @@ var Tt = Xn ? (
3071
3092
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3072
3093
  }
3073
3094
  }
3074
- ), ei = Zn ? (
3095
+ ), ri = Jn ? (
3075
3096
  // Native
3076
3097
  function(t) {
3077
3098
  return t.trimStart();
@@ -3079,9 +3100,9 @@ var Tt = Xn ? (
3079
3100
  ) : (
3080
3101
  // Ponyfill
3081
3102
  function(t) {
3082
- return t.replace(jn, "");
3103
+ return t.replace(Xn, "");
3083
3104
  }
3084
- ), ti = Qn ? (
3105
+ ), ni = Yn ? (
3085
3106
  // Native
3086
3107
  function(t) {
3087
3108
  return t.trimEnd();
@@ -3089,32 +3110,32 @@ var Tt = Xn ? (
3089
3110
  ) : (
3090
3111
  // Ponyfill
3091
3112
  function(t) {
3092
- return t.replace(Vn, "");
3113
+ return t.replace(zn, "");
3093
3114
  }
3094
3115
  );
3095
- function fr(e, t) {
3116
+ function pr(e, t) {
3096
3117
  return new RegExp(e, t);
3097
3118
  }
3098
- var tt;
3099
- if (Ke) {
3100
- var Ct = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3101
- tt = function(t, r) {
3119
+ var ot;
3120
+ if (nt) {
3121
+ var At = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3122
+ ot = function(t, r) {
3102
3123
  var n;
3103
- Ct.lastIndex = r;
3104
- var i = Ct.exec(t);
3124
+ At.lastIndex = r;
3125
+ var i = At.exec(t);
3105
3126
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3106
3127
  };
3107
3128
  } else
3108
- tt = function(t, r) {
3129
+ ot = function(t, r) {
3109
3130
  for (var n = []; ; ) {
3110
- var i = hr(t, r);
3111
- if (i === void 0 || pr(i) || oi(i))
3131
+ var i = fr(t, r);
3132
+ if (i === void 0 || dr(i) || ai(i))
3112
3133
  break;
3113
3134
  n.push(i), r += i >= 65536 ? 2 : 1;
3114
3135
  }
3115
- return et.apply(void 0, n);
3136
+ return it.apply(void 0, n);
3116
3137
  };
3117
- var ri = (
3138
+ var ii = (
3118
3139
  /** @class */
3119
3140
  function() {
3120
3141
  function e(t, r) {
@@ -3138,14 +3159,14 @@ var ri = (
3138
3159
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3139
3160
  var a = this.clonePosition();
3140
3161
  this.bump(), i.push({
3141
- type: C.pound,
3162
+ type: H.pound,
3142
3163
  location: _(a, this.clonePosition())
3143
3164
  });
3144
3165
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3145
3166
  if (n)
3146
3167
  break;
3147
3168
  return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3148
- } else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
3169
+ } else if (o === 60 && !this.ignoreTag && st(this.peek() || 0)) {
3149
3170
  var s = this.parseTag(t, r);
3150
3171
  if (s.err)
3151
3172
  return s;
@@ -3166,7 +3187,7 @@ var ri = (
3166
3187
  if (this.bumpSpace(), this.bumpIf("/>"))
3167
3188
  return {
3168
3189
  val: {
3169
- type: C.literal,
3190
+ type: H.literal,
3170
3191
  value: "<".concat(i, "/>"),
3171
3192
  location: _(n, this.clonePosition())
3172
3193
  },
@@ -3178,12 +3199,12 @@ var ri = (
3178
3199
  return o;
3179
3200
  var s = o.val, a = this.clonePosition();
3180
3201
  if (this.bumpIf("</")) {
3181
- if (this.isEOF() || !rt(this.char()))
3202
+ if (this.isEOF() || !st(this.char()))
3182
3203
  return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
3183
3204
  var l = this.clonePosition(), u = this.parseTagName();
3184
3205
  return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3185
3206
  val: {
3186
- type: C.tag,
3207
+ type: H.tag,
3187
3208
  value: i,
3188
3209
  children: s,
3189
3210
  location: _(n, this.clonePosition())
@@ -3196,7 +3217,7 @@ var ri = (
3196
3217
  return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
3197
3218
  }, e.prototype.parseTagName = function() {
3198
3219
  var t = this.offset();
3199
- for (this.bump(); !this.isEOF() && ii(this.char()); )
3220
+ for (this.bump(); !this.isEOF() && si(this.char()); )
3200
3221
  this.bump();
3201
3222
  return this.message.slice(t, this.offset());
3202
3223
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3220,12 +3241,12 @@ var ri = (
3220
3241
  }
3221
3242
  var l = _(n, this.clonePosition());
3222
3243
  return {
3223
- val: { type: C.literal, value: i, location: l },
3244
+ val: { type: H.literal, value: i, location: l },
3224
3245
  err: null
3225
3246
  };
3226
3247
  }, e.prototype.tryParseLeftAngleBracket = function() {
3227
3248
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3228
- !ni(this.peek() || 0)) ? (this.bump(), "<") : null;
3249
+ !oi(this.peek() || 0)) ? (this.bump(), "<") : null;
3229
3250
  }, e.prototype.tryParseQuote = function(t) {
3230
3251
  if (this.isEOF() || this.char() !== 39)
3231
3252
  return null;
@@ -3259,12 +3280,12 @@ var ri = (
3259
3280
  r.push(n);
3260
3281
  this.bump();
3261
3282
  }
3262
- return et.apply(void 0, r);
3283
+ return it.apply(void 0, r);
3263
3284
  }, e.prototype.tryParseUnquoted = function(t, r) {
3264
3285
  if (this.isEOF())
3265
3286
  return null;
3266
3287
  var n = this.char();
3267
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
3288
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), it(n));
3268
3289
  }, e.prototype.parseArgument = function(t, r) {
3269
3290
  var n = this.clonePosition();
3270
3291
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3280,7 +3301,7 @@ var ri = (
3280
3301
  case 125:
3281
3302
  return this.bump(), {
3282
3303
  val: {
3283
- type: C.argument,
3304
+ type: H.argument,
3284
3305
  // value does not include the opening and closing braces.
3285
3306
  value: i,
3286
3307
  location: _(n, this.clonePosition())
@@ -3293,7 +3314,7 @@ var ri = (
3293
3314
  return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3294
3315
  }
3295
3316
  }, e.prototype.parseIdentifierIfPossible = function() {
3296
- var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
3317
+ var t = this.clonePosition(), r = this.offset(), n = ot(this.message, r), i = r + n.length;
3297
3318
  this.bumpTo(i);
3298
3319
  var o = this.clonePosition(), s = _(t, o);
3299
3320
  return { value: n, location: s };
@@ -3312,7 +3333,7 @@ var ri = (
3312
3333
  var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3313
3334
  if (f.err)
3314
3335
  return f;
3315
- var h = ti(f.val);
3336
+ var h = ni(f.val);
3316
3337
  if (h.length === 0)
3317
3338
  return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3318
3339
  var d = _(c, this.clonePosition());
@@ -3322,34 +3343,34 @@ var ri = (
3322
3343
  if (m.err)
3323
3344
  return m;
3324
3345
  var p = _(i, this.clonePosition());
3325
- if (u && Tt(u?.style, "::", 0)) {
3326
- var y = ei(u.style.slice(2));
3346
+ if (u && Ct(u?.style, "::", 0)) {
3347
+ var y = ri(u.style.slice(2));
3327
3348
  if (a === "number") {
3328
3349
  var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
3329
3350
  return f.err ? f : {
3330
- val: { type: C.number, value: n, location: p, style: f.val },
3351
+ val: { type: H.number, value: n, location: p, style: f.val },
3331
3352
  err: null
3332
3353
  };
3333
3354
  } else {
3334
3355
  if (y.length === 0)
3335
3356
  return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
3336
- var w = y;
3337
- this.locale && (w = Dn(y, this.locale));
3357
+ var S = y;
3358
+ this.locale && (S = Gn(y, this.locale));
3338
3359
  var h = {
3339
- type: ae.dateTime,
3340
- pattern: w,
3360
+ type: se.dateTime,
3361
+ pattern: S,
3341
3362
  location: u.styleLocation,
3342
- parsedOptions: this.shouldParseSkeletons ? In(w) : {}
3343
- }, B = a === "date" ? C.date : C.time;
3363
+ parsedOptions: this.shouldParseSkeletons ? Nn(S) : {}
3364
+ }, C = a === "date" ? H.date : H.time;
3344
3365
  return {
3345
- val: { type: B, value: n, location: p, style: h },
3366
+ val: { type: C, value: n, location: p, style: h },
3346
3367
  err: null
3347
3368
  };
3348
3369
  }
3349
3370
  }
3350
3371
  return {
3351
3372
  val: {
3352
- type: a === "number" ? C.number : a === "date" ? C.date : C.time,
3373
+ type: a === "number" ? H.number : a === "date" ? H.date : H.time,
3353
3374
  value: n,
3354
3375
  location: p,
3355
3376
  style: (o = u?.style) !== null && o !== void 0 ? o : null
@@ -3360,9 +3381,9 @@ var ri = (
3360
3381
  case "plural":
3361
3382
  case "selectordinal":
3362
3383
  case "select": {
3363
- var R = this.clonePosition();
3384
+ var O = this.clonePosition();
3364
3385
  if (this.bumpSpace(), !this.bumpIf(","))
3365
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(R, S({}, R)));
3386
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(O, Be({}, O)));
3366
3387
  this.bumpSpace();
3367
3388
  var F = this.parseIdentifierIfPossible(), k = 0;
3368
3389
  if (a !== "select" && F.value === "offset") {
@@ -3374,26 +3395,26 @@ var ri = (
3374
3395
  return f;
3375
3396
  this.bumpSpace(), F = this.parseIdentifierIfPossible(), k = f.val;
3376
3397
  }
3377
- var X = this.tryParsePluralOrSelectOptions(t, a, r, F);
3378
- if (X.err)
3379
- return X;
3398
+ var z = this.tryParsePluralOrSelectOptions(t, a, r, F);
3399
+ if (z.err)
3400
+ return z;
3380
3401
  var m = this.tryParseArgumentClose(i);
3381
3402
  if (m.err)
3382
3403
  return m;
3383
3404
  var D = _(i, this.clonePosition());
3384
3405
  return a === "select" ? {
3385
3406
  val: {
3386
- type: C.select,
3407
+ type: H.select,
3387
3408
  value: n,
3388
- options: Ht(X.val),
3409
+ options: Bt(z.val),
3389
3410
  location: D
3390
3411
  },
3391
3412
  err: null
3392
3413
  } : {
3393
3414
  val: {
3394
- type: C.plural,
3415
+ type: H.plural,
3395
3416
  value: n,
3396
- options: Ht(X.val),
3417
+ options: Bt(z.val),
3397
3418
  offset: k,
3398
3419
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3399
3420
  location: D
@@ -3444,16 +3465,16 @@ var ri = (
3444
3465
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3445
3466
  var n = [];
3446
3467
  try {
3447
- n = Nn(t);
3468
+ n = $n(t);
3448
3469
  } catch {
3449
3470
  return this.error(v.INVALID_NUMBER_SKELETON, r);
3450
3471
  }
3451
3472
  return {
3452
3473
  val: {
3453
- type: ae.number,
3474
+ type: se.number,
3454
3475
  tokens: n,
3455
3476
  location: r,
3456
- parsedOptions: this.shouldParseSkeletons ? Fn(n) : {}
3477
+ parsedOptions: this.shouldParseSkeletons ? jn(n) : {}
3457
3478
  },
3458
3479
  err: null
3459
3480
  };
@@ -3501,7 +3522,7 @@ var ri = (
3501
3522
  break;
3502
3523
  }
3503
3524
  var l = _(i, this.clonePosition());
3504
- return o ? (s *= n, Yn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3525
+ return o ? (s *= n, ei(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3505
3526
  }, e.prototype.offset = function() {
3506
3527
  return this.position.offset;
3507
3528
  }, e.prototype.isEOF = function() {
@@ -3516,7 +3537,7 @@ var ri = (
3516
3537
  var t = this.position.offset;
3517
3538
  if (t >= this.message.length)
3518
3539
  throw Error("out of bound");
3519
- var r = hr(this.message, t);
3540
+ var r = fr(this.message, t);
3520
3541
  if (r === void 0)
3521
3542
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3522
3543
  return r;
@@ -3535,7 +3556,7 @@ var ri = (
3535
3556
  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);
3536
3557
  }
3537
3558
  }, e.prototype.bumpIf = function(t) {
3538
- if (Tt(this.message, t, this.offset())) {
3559
+ if (Ct(this.message, t, this.offset())) {
3539
3560
  for (var r = 0; r < t.length; r++)
3540
3561
  this.bump();
3541
3562
  return !0;
@@ -3557,7 +3578,7 @@ var ri = (
3557
3578
  break;
3558
3579
  }
3559
3580
  }, e.prototype.bumpSpace = function() {
3560
- for (; !this.isEOF() && pr(this.char()); )
3581
+ for (; !this.isEOF() && dr(this.char()); )
3561
3582
  this.bump();
3562
3583
  }, e.prototype.peek = function() {
3563
3584
  if (this.isEOF())
@@ -3567,47 +3588,47 @@ var ri = (
3567
3588
  }, e;
3568
3589
  }()
3569
3590
  );
3570
- function rt(e) {
3591
+ function st(e) {
3571
3592
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3572
3593
  }
3573
- function ni(e) {
3574
- return rt(e) || e === 47;
3594
+ function oi(e) {
3595
+ return st(e) || e === 47;
3575
3596
  }
3576
- function ii(e) {
3597
+ function si(e) {
3577
3598
  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;
3578
3599
  }
3579
- function pr(e) {
3600
+ function dr(e) {
3580
3601
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3581
3602
  }
3582
- function oi(e) {
3603
+ function ai(e) {
3583
3604
  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;
3584
3605
  }
3585
- function nt(e) {
3606
+ function at(e) {
3586
3607
  e.forEach(function(t) {
3587
- if (delete t.location, nr(t) || ir(t))
3608
+ if (delete t.location, ir(t) || or(t))
3588
3609
  for (var r in t.options)
3589
- delete t.options[r].location, nt(t.options[r].value);
3610
+ delete t.options[r].location, at(t.options[r].value);
3590
3611
  else
3591
- er(t) && sr(t.style) || (tr(t) || rr(t)) && Ye(t.style) ? delete t.style.location : or(t) && nt(t.children);
3612
+ tr(t) && ar(t.style) || (rr(t) || nr(t)) && rt(t.style) ? delete t.style.location : sr(t) && at(t.children);
3592
3613
  });
3593
3614
  }
3594
- function si(e, t) {
3595
- t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3596
- var r = new ri(e, t).parse();
3615
+ function ui(e, t) {
3616
+ t === void 0 && (t = {}), t = Be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3617
+ var r = new ii(e, t).parse();
3597
3618
  if (r.err) {
3598
3619
  var n = SyntaxError(v[r.err.kind]);
3599
3620
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3600
3621
  }
3601
- return t?.captureLocation || nt(r.val), r.val;
3622
+ return t?.captureLocation || at(r.val), r.val;
3602
3623
  }
3603
- var ue;
3624
+ var ae;
3604
3625
  (function(e) {
3605
3626
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3606
- })(ue || (ue = {}));
3607
- var Me = (
3627
+ })(ae || (ae = {}));
3628
+ var Ie = (
3608
3629
  /** @class */
3609
3630
  function(e) {
3610
- Z(t, e);
3631
+ Me(t, e);
3611
3632
  function t(r, n, i) {
3612
3633
  var o = e.call(this, r) || this;
3613
3634
  return o.code = n, o.originalMessage = i, o;
@@ -3616,48 +3637,48 @@ var Me = (
3616
3637
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3617
3638
  }, t;
3618
3639
  }(Error)
3619
- ), Bt = (
3640
+ ), Pt = (
3620
3641
  /** @class */
3621
3642
  function(e) {
3622
- Z(t, e);
3643
+ Me(t, e);
3623
3644
  function t(r, n, i, o) {
3624
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ue.INVALID_VALUE, o) || this;
3645
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ae.INVALID_VALUE, o) || this;
3625
3646
  }
3626
3647
  return t;
3627
- }(Me)
3628
- ), ai = (
3648
+ }(Ie)
3649
+ ), li = (
3629
3650
  /** @class */
3630
3651
  function(e) {
3631
- Z(t, e);
3652
+ Me(t, e);
3632
3653
  function t(r, n, i) {
3633
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ue.INVALID_VALUE, i) || this;
3654
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ae.INVALID_VALUE, i) || this;
3634
3655
  }
3635
3656
  return t;
3636
- }(Me)
3637
- ), ui = (
3657
+ }(Ie)
3658
+ ), ci = (
3638
3659
  /** @class */
3639
3660
  function(e) {
3640
- Z(t, e);
3661
+ Me(t, e);
3641
3662
  function t(r, n) {
3642
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ue.MISSING_VALUE, n) || this;
3663
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ae.MISSING_VALUE, n) || this;
3643
3664
  }
3644
3665
  return t;
3645
- }(Me)
3666
+ }(Ie)
3646
3667
  ), L;
3647
3668
  (function(e) {
3648
3669
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3649
3670
  })(L || (L = {}));
3650
- function li(e) {
3671
+ function hi(e) {
3651
3672
  return e.length < 2 ? e : e.reduce(function(t, r) {
3652
3673
  var n = t[t.length - 1];
3653
3674
  return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
3654
3675
  }, []);
3655
3676
  }
3656
- function ci(e) {
3677
+ function fi(e) {
3657
3678
  return typeof e == "function";
3658
3679
  }
3659
3680
  function Te(e, t, r, n, i, o, s) {
3660
- if (e.length === 1 && xt(e[0]))
3681
+ if (e.length === 1 && St(e[0]))
3661
3682
  return [
3662
3683
  {
3663
3684
  type: L.literal,
@@ -3666,14 +3687,14 @@ function Te(e, t, r, n, i, o, s) {
3666
3687
  ];
3667
3688
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3668
3689
  var c = u[l];
3669
- if (xt(c)) {
3690
+ if (St(c)) {
3670
3691
  a.push({
3671
3692
  type: L.literal,
3672
3693
  value: c.value
3673
3694
  });
3674
3695
  continue;
3675
3696
  }
3676
- if (Mn(c)) {
3697
+ if (In(c)) {
3677
3698
  typeof o == "number" && a.push({
3678
3699
  type: L.literal,
3679
3700
  value: r.getNumberFormat(t).format(o)
@@ -3682,89 +3703,89 @@ function Te(e, t, r, n, i, o, s) {
3682
3703
  }
3683
3704
  var f = c.value;
3684
3705
  if (!(i && f in i))
3685
- throw new ui(f, s);
3706
+ throw new ci(f, s);
3686
3707
  var h = i[f];
3687
- if (Rn(c)) {
3708
+ if (Mn(c)) {
3688
3709
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
3689
3710
  type: typeof h == "string" ? L.literal : L.object,
3690
3711
  value: h
3691
3712
  });
3692
3713
  continue;
3693
3714
  }
3694
- if (tr(c)) {
3695
- var d = typeof c.style == "string" ? n.date[c.style] : Ye(c.style) ? c.style.parsedOptions : void 0;
3715
+ if (rr(c)) {
3716
+ var d = typeof c.style == "string" ? n.date[c.style] : rt(c.style) ? c.style.parsedOptions : void 0;
3696
3717
  a.push({
3697
3718
  type: L.literal,
3698
3719
  value: r.getDateTimeFormat(t, d).format(h)
3699
3720
  });
3700
3721
  continue;
3701
3722
  }
3702
- if (rr(c)) {
3703
- var d = typeof c.style == "string" ? n.time[c.style] : Ye(c.style) ? c.style.parsedOptions : n.time.medium;
3723
+ if (nr(c)) {
3724
+ var d = typeof c.style == "string" ? n.time[c.style] : rt(c.style) ? c.style.parsedOptions : n.time.medium;
3704
3725
  a.push({
3705
3726
  type: L.literal,
3706
3727
  value: r.getDateTimeFormat(t, d).format(h)
3707
3728
  });
3708
3729
  continue;
3709
3730
  }
3710
- if (er(c)) {
3711
- var d = typeof c.style == "string" ? n.number[c.style] : sr(c.style) ? c.style.parsedOptions : void 0;
3731
+ if (tr(c)) {
3732
+ var d = typeof c.style == "string" ? n.number[c.style] : ar(c.style) ? c.style.parsedOptions : void 0;
3712
3733
  d && d.scale && (h = h * (d.scale || 1)), a.push({
3713
3734
  type: L.literal,
3714
3735
  value: r.getNumberFormat(t, d).format(h)
3715
3736
  });
3716
3737
  continue;
3717
3738
  }
3718
- if (or(c)) {
3739
+ if (sr(c)) {
3719
3740
  var m = c.children, p = c.value, y = i[p];
3720
- if (!ci(y))
3721
- throw new ai(p, "function", s);
3722
- var w = Te(m, t, r, n, i, o), B = y(w.map(function(k) {
3741
+ if (!fi(y))
3742
+ throw new li(p, "function", s);
3743
+ var S = Te(m, t, r, n, i, o), C = y(S.map(function(k) {
3723
3744
  return k.value;
3724
3745
  }));
3725
- Array.isArray(B) || (B = [B]), a.push.apply(a, B.map(function(k) {
3746
+ Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(k) {
3726
3747
  return {
3727
3748
  type: typeof k == "string" ? L.literal : L.object,
3728
3749
  value: k
3729
3750
  };
3730
3751
  }));
3731
3752
  }
3732
- if (nr(c)) {
3733
- var R = c.options[h] || c.options.other;
3734
- if (!R)
3735
- throw new Bt(c.value, h, Object.keys(c.options), s);
3736
- a.push.apply(a, Te(R.value, t, r, n, i));
3753
+ if (ir(c)) {
3754
+ var O = c.options[h] || c.options.other;
3755
+ if (!O)
3756
+ throw new Pt(c.value, h, Object.keys(c.options), s);
3757
+ a.push.apply(a, Te(O.value, t, r, n, i));
3737
3758
  continue;
3738
3759
  }
3739
- if (ir(c)) {
3740
- var R = c.options["=".concat(h)];
3741
- if (!R) {
3760
+ if (or(c)) {
3761
+ var O = c.options["=".concat(h)];
3762
+ if (!O) {
3742
3763
  if (!Intl.PluralRules)
3743
- throw new Me(`Intl.PluralRules is not available in this environment.
3764
+ throw new Ie(`Intl.PluralRules is not available in this environment.
3744
3765
  Try polyfilling it using "@formatjs/intl-pluralrules"
3745
- `, ue.MISSING_INTL_API, s);
3766
+ `, ae.MISSING_INTL_API, s);
3746
3767
  var F = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3747
- R = c.options[F] || c.options.other;
3768
+ O = c.options[F] || c.options.other;
3748
3769
  }
3749
- if (!R)
3750
- throw new Bt(c.value, h, Object.keys(c.options), s);
3751
- a.push.apply(a, Te(R.value, t, r, n, i, h - (c.offset || 0)));
3770
+ if (!O)
3771
+ throw new Pt(c.value, h, Object.keys(c.options), s);
3772
+ a.push.apply(a, Te(O.value, t, r, n, i, h - (c.offset || 0)));
3752
3773
  continue;
3753
3774
  }
3754
3775
  }
3755
- return li(a);
3776
+ return hi(a);
3756
3777
  }
3757
- function hi(e, t) {
3758
- return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3759
- return r[n] = S(S({}, e[n]), t[n] || {}), r;
3778
+ function pi(e, t) {
3779
+ return t ? X(X(X({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3780
+ return r[n] = X(X({}, e[n]), t[n] || {}), r;
3760
3781
  }, {})) : e;
3761
3782
  }
3762
- function fi(e, t) {
3783
+ function di(e, t) {
3763
3784
  return t ? Object.keys(e).reduce(function(r, n) {
3764
- return r[n] = hi(e[n], t[n]), r;
3765
- }, S({}, e)) : e;
3785
+ return r[n] = pi(e[n], t[n]), r;
3786
+ }, X({}, e)) : e;
3766
3787
  }
3767
- function De(e) {
3788
+ function Ge(e) {
3768
3789
  return {
3769
3790
  create: function() {
3770
3791
  return {
@@ -3778,39 +3799,39 @@ function De(e) {
3778
3799
  }
3779
3800
  };
3780
3801
  }
3781
- function pi(e) {
3802
+ function mi(e) {
3782
3803
  return e === void 0 && (e = {
3783
3804
  number: {},
3784
3805
  dateTime: {},
3785
3806
  pluralRules: {}
3786
3807
  }), {
3787
- getNumberFormat: $e(function() {
3808
+ getNumberFormat: Fe(function() {
3788
3809
  for (var t, r = [], n = 0; n < arguments.length; n++)
3789
3810
  r[n] = arguments[n];
3790
- return new ((t = Intl.NumberFormat).bind.apply(t, oe([void 0], r, !1)))();
3811
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ue([void 0], r, !1)))();
3791
3812
  }, {
3792
- cache: De(e.number),
3793
- strategy: Ue.variadic
3813
+ cache: Ge(e.number),
3814
+ strategy: De.variadic
3794
3815
  }),
3795
- getDateTimeFormat: $e(function() {
3816
+ getDateTimeFormat: Fe(function() {
3796
3817
  for (var t, r = [], n = 0; n < arguments.length; n++)
3797
3818
  r[n] = arguments[n];
3798
- return new ((t = Intl.DateTimeFormat).bind.apply(t, oe([void 0], r, !1)))();
3819
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ue([void 0], r, !1)))();
3799
3820
  }, {
3800
- cache: De(e.dateTime),
3801
- strategy: Ue.variadic
3821
+ cache: Ge(e.dateTime),
3822
+ strategy: De.variadic
3802
3823
  }),
3803
- getPluralRules: $e(function() {
3824
+ getPluralRules: Fe(function() {
3804
3825
  for (var t, r = [], n = 0; n < arguments.length; n++)
3805
3826
  r[n] = arguments[n];
3806
- return new ((t = Intl.PluralRules).bind.apply(t, oe([void 0], r, !1)))();
3827
+ return new ((t = Intl.PluralRules).bind.apply(t, Ue([void 0], r, !1)))();
3807
3828
  }, {
3808
- cache: De(e.pluralRules),
3809
- strategy: Ue.variadic
3829
+ cache: Ge(e.pluralRules),
3830
+ strategy: De.variadic
3810
3831
  })
3811
3832
  };
3812
3833
  }
3813
- var di = (
3834
+ var bi = (
3814
3835
  /** @class */
3815
3836
  function() {
3816
3837
  function e(t, r, n, i) {
@@ -3842,13 +3863,13 @@ var di = (
3842
3863
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3843
3864
  var s = i || {};
3844
3865
  s.formatters;
3845
- var a = zr(s, ["formatters"]);
3846
- this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
3866
+ var a = Tn(s, ["formatters"]);
3867
+ this.ast = e.__parse(t, X(X({}, a), { locale: this.resolvedLocale }));
3847
3868
  } else
3848
3869
  this.ast = t;
3849
3870
  if (!Array.isArray(this.ast))
3850
3871
  throw new TypeError("A message must be provided as a String or AST.");
3851
- this.formats = fi(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
3872
+ this.formats = di(e.formats, n), this.formatters = i && i.formatters || mi(this.formatterCache);
3852
3873
  }
3853
3874
  return Object.defineProperty(e, "defaultLocale", {
3854
3875
  get: function() {
@@ -3861,7 +3882,7 @@ var di = (
3861
3882
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3862
3883
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3863
3884
  }
3864
- }, e.__parse = si, e.formats = {
3885
+ }, e.__parse = ui, e.formats = {
3865
3886
  number: {
3866
3887
  integer: {
3867
3888
  maximumFractionDigits: 0
@@ -3922,7 +3943,7 @@ var di = (
3922
3943
  }, e;
3923
3944
  }()
3924
3945
  );
3925
- function mi(e, t) {
3946
+ function yi(e, t) {
3926
3947
  if (t == null)
3927
3948
  return;
3928
3949
  if (t in e)
@@ -3943,92 +3964,92 @@ function mi(e, t) {
3943
3964
  n = void 0;
3944
3965
  return n;
3945
3966
  }
3946
- const J = {}, bi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), dr = (e, t) => {
3967
+ const J = {}, gi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), mr = (e, t) => {
3947
3968
  if (t == null)
3948
3969
  return;
3949
3970
  if (t in J && e in J[t])
3950
3971
  return J[t][e];
3951
- const r = Oe(t);
3972
+ const r = Le(t);
3952
3973
  for (let n = 0; n < r.length; n++) {
3953
- const i = r[n], o = gi(i, e);
3974
+ const i = r[n], o = _i(i, e);
3954
3975
  if (o)
3955
- return bi(e, t, o);
3976
+ return gi(e, t, o);
3956
3977
  }
3957
3978
  };
3958
- let lt;
3979
+ let ht;
3959
3980
  const ve = Re({});
3960
- function yi(e) {
3961
- return lt[e] || null;
3981
+ function vi(e) {
3982
+ return ht[e] || null;
3962
3983
  }
3963
- function mr(e) {
3964
- return e in lt;
3984
+ function br(e) {
3985
+ return e in ht;
3965
3986
  }
3966
- function gi(e, t) {
3967
- if (!mr(e))
3987
+ function _i(e, t) {
3988
+ if (!br(e))
3968
3989
  return null;
3969
- const r = yi(e);
3970
- return mi(r, t);
3990
+ const r = vi(e);
3991
+ return yi(r, t);
3971
3992
  }
3972
- function vi(e) {
3993
+ function xi(e) {
3973
3994
  if (e == null)
3974
3995
  return;
3975
- const t = Oe(e);
3996
+ const t = Le(e);
3976
3997
  for (let r = 0; r < t.length; r++) {
3977
3998
  const n = t[r];
3978
- if (mr(n))
3999
+ if (br(n))
3979
4000
  return n;
3980
4001
  }
3981
4002
  }
3982
- function br(e, ...t) {
4003
+ function yr(e, ...t) {
3983
4004
  delete J[e], ve.update((r) => (r[e] = wn.all([r[e] || {}, ...t]), r));
3984
4005
  }
3985
- he(
4006
+ ce(
3986
4007
  [ve],
3987
4008
  ([e]) => Object.keys(e)
3988
4009
  );
3989
- ve.subscribe((e) => lt = e);
4010
+ ve.subscribe((e) => ht = e);
3990
4011
  const He = {};
3991
- function _i(e, t) {
4012
+ function Ei(e, t) {
3992
4013
  He[e].delete(t), He[e].size === 0 && delete He[e];
3993
4014
  }
3994
- function yr(e) {
4015
+ function gr(e) {
3995
4016
  return He[e];
3996
4017
  }
3997
- function xi(e) {
3998
- return Oe(e).map((t) => {
3999
- const r = yr(t);
4018
+ function Si(e) {
4019
+ return Le(e).map((t) => {
4020
+ const r = gr(t);
4000
4021
  return [t, r ? [...r] : []];
4001
4022
  }).filter(([, t]) => t.length > 0);
4002
4023
  }
4003
- function it(e) {
4004
- return e == null ? !1 : Oe(e).some(
4024
+ function ut(e) {
4025
+ return e == null ? !1 : Le(e).some(
4005
4026
  (t) => {
4006
4027
  var r;
4007
- return (r = yr(t)) == null ? void 0 : r.size;
4028
+ return (r = gr(t)) == null ? void 0 : r.size;
4008
4029
  }
4009
4030
  );
4010
4031
  }
4011
- function Ei(e, t) {
4032
+ function wi(e, t) {
4012
4033
  return Promise.all(
4013
- t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
4014
- ).then((n) => br(e, ...n));
4015
- }
4016
- const de = {};
4017
- function gr(e) {
4018
- if (!it(e))
4019
- return e in de ? de[e] : Promise.resolve();
4020
- const t = xi(e);
4021
- return de[e] = Promise.all(
4034
+ t.map((n) => (Ei(e, n), n().then((i) => i.default || i)))
4035
+ ).then((n) => yr(e, ...n));
4036
+ }
4037
+ const pe = {};
4038
+ function vr(e) {
4039
+ if (!ut(e))
4040
+ return e in pe ? pe[e] : Promise.resolve();
4041
+ const t = Si(e);
4042
+ return pe[e] = Promise.all(
4022
4043
  t.map(
4023
- ([r, n]) => Ei(r, n)
4044
+ ([r, n]) => wi(r, n)
4024
4045
  )
4025
4046
  ).then(() => {
4026
- if (it(e))
4027
- return gr(e);
4028
- delete de[e];
4029
- }), de[e];
4047
+ if (ut(e))
4048
+ return vr(e);
4049
+ delete pe[e];
4050
+ }), pe[e];
4030
4051
  }
4031
- const Si = {
4052
+ const Ti = {
4032
4053
  number: {
4033
4054
  scientific: { notation: "scientific" },
4034
4055
  engineering: { notation: "engineering" },
@@ -4057,135 +4078,135 @@ const Si = {
4057
4078
  timeZoneName: "short"
4058
4079
  }
4059
4080
  }
4060
- }, wi = {
4081
+ }, Hi = {
4061
4082
  fallbackLocale: null,
4062
4083
  loadingDelay: 200,
4063
- formats: Si,
4084
+ formats: Ti,
4064
4085
  warnOnMissingMessages: !0,
4065
4086
  handleMissingMessage: void 0,
4066
4087
  ignoreTag: !0
4067
- }, Ti = wi;
4068
- function le() {
4069
- return Ti;
4088
+ }, Ci = Hi;
4089
+ function ue() {
4090
+ return Ci;
4070
4091
  }
4071
- const Ge = Re(!1);
4072
- var Hi = Object.defineProperty, Ci = Object.defineProperties, Bi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ri = (e, t) => {
4092
+ const Ve = Re(!1);
4093
+ var Bi = Object.defineProperty, Ai = Object.defineProperties, Pi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mi = (e, t) => {
4073
4094
  for (var r in t || (t = {}))
4074
- Ai.call(t, r) && Pt(e, r, t[r]);
4075
- if (At)
4076
- for (var r of At(t))
4077
- Pi.call(t, r) && Pt(e, r, t[r]);
4095
+ Oi.call(t, r) && Rt(e, r, t[r]);
4096
+ if (Ot)
4097
+ for (var r of Ot(t))
4098
+ Ri.call(t, r) && Rt(e, r, t[r]);
4078
4099
  return e;
4079
- }, Mi = (e, t) => Ci(e, Bi(t));
4080
- let ot;
4081
- const Be = Re(null);
4082
- function Rt(e) {
4100
+ }, Ii = (e, t) => Ai(e, Pi(t));
4101
+ let lt;
4102
+ const Ae = Re(null);
4103
+ function Mt(e) {
4083
4104
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4084
4105
  }
4085
- function Oe(e, t = le().fallbackLocale) {
4086
- const r = Rt(e);
4087
- return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
4106
+ function Le(e, t = ue().fallbackLocale) {
4107
+ const r = Mt(e);
4108
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
4088
4109
  }
4089
4110
  function Y() {
4090
- return ot ?? void 0;
4111
+ return lt ?? void 0;
4091
4112
  }
4092
- Be.subscribe((e) => {
4093
- ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4113
+ Ae.subscribe((e) => {
4114
+ lt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4094
4115
  });
4095
- const Oi = (e) => {
4096
- if (e && vi(e) && it(e)) {
4097
- const { loadingDelay: t } = le();
4116
+ const Li = (e) => {
4117
+ if (e && xi(e) && ut(e)) {
4118
+ const { loadingDelay: t } = ue();
4098
4119
  let r;
4099
4120
  return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
4100
- () => Ge.set(!0),
4121
+ () => Ve.set(!0),
4101
4122
  t
4102
- ) : Ge.set(!0), gr(e).then(() => {
4103
- Be.set(e);
4123
+ ) : Ve.set(!0), vr(e).then(() => {
4124
+ Ae.set(e);
4104
4125
  }).finally(() => {
4105
- clearTimeout(r), Ge.set(!1);
4126
+ clearTimeout(r), Ve.set(!1);
4106
4127
  });
4107
4128
  }
4108
- return Be.set(e);
4109
- }, fe = Mi(Ri({}, Be), {
4110
- set: Oi
4111
- }), Ie = (e) => {
4129
+ return Ae.set(e);
4130
+ }, he = Ii(Mi({}, Ae), {
4131
+ set: Li
4132
+ }), Ne = (e) => {
4112
4133
  const t = /* @__PURE__ */ Object.create(null);
4113
4134
  return (n) => {
4114
4135
  const i = JSON.stringify(n);
4115
4136
  return i in t ? t[i] : t[i] = e(n);
4116
4137
  };
4117
4138
  };
4118
- var Ii = Object.defineProperty, Ae = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
4139
+ var Ni = Object.defineProperty, Pe = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
4119
4140
  for (var r in t || (t = {}))
4120
- vr.call(t, r) && Mt(e, r, t[r]);
4121
- if (Ae)
4122
- for (var r of Ae(t))
4123
- _r.call(t, r) && Mt(e, r, t[r]);
4141
+ _r.call(t, r) && It(e, r, t[r]);
4142
+ if (Pe)
4143
+ for (var r of Pe(t))
4144
+ xr.call(t, r) && It(e, r, t[r]);
4124
4145
  return e;
4125
- }, pe = (e, t) => {
4146
+ }, fe = (e, t) => {
4126
4147
  var r = {};
4127
4148
  for (var n in e)
4128
- vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4129
- if (e != null && Ae)
4130
- for (var n of Ae(e))
4131
- t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
4149
+ _r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4150
+ if (e != null && Pe)
4151
+ for (var n of Pe(e))
4152
+ t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
4132
4153
  return r;
4133
4154
  };
4134
- const ge = (e, t) => {
4135
- const { formats: r } = le();
4155
+ const ye = (e, t) => {
4156
+ const { formats: r } = ue();
4136
4157
  if (e in r && t in r[e])
4137
4158
  return r[e][t];
4138
4159
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4139
- }, Li = Ie(
4160
+ }, ki = Ne(
4140
4161
  (e) => {
4141
- var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
4162
+ var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
4142
4163
  if (r == null)
4143
4164
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4144
- return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
4165
+ return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
4145
4166
  }
4146
- ), Ni = Ie(
4167
+ ), $i = Ne(
4147
4168
  (e) => {
4148
- var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
4169
+ var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
4149
4170
  if (r == null)
4150
4171
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4151
- return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
4172
+ return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
4152
4173
  }
4153
- ), ki = Ie(
4174
+ ), Ui = Ne(
4154
4175
  (e) => {
4155
- var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
4176
+ var t = e, { locale: r, format: n } = t, i = fe(t, ["locale", "format"]);
4156
4177
  if (r == null)
4157
4178
  throw new Error(
4158
4179
  '[svelte-i18n] A "locale" must be set to format time values'
4159
4180
  );
4160
- return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
4181
+ return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
4161
4182
  }
4162
- ), $i = (e = {}) => {
4183
+ ), Fi = (e = {}) => {
4163
4184
  var t = e, {
4164
4185
  locale: r = Y()
4165
- } = t, n = pe(t, [
4186
+ } = t, n = fe(t, [
4166
4187
  "locale"
4167
4188
  ]);
4168
- return Li(ct({ locale: r }, n));
4169
- }, Ui = (e = {}) => {
4189
+ return ki(ft({ locale: r }, n));
4190
+ }, Di = (e = {}) => {
4170
4191
  var t = e, {
4171
4192
  locale: r = Y()
4172
- } = t, n = pe(t, [
4193
+ } = t, n = fe(t, [
4173
4194
  "locale"
4174
4195
  ]);
4175
- return Ni(ct({ locale: r }, n));
4176
- }, Fi = (e = {}) => {
4196
+ return $i(ft({ locale: r }, n));
4197
+ }, ji = (e = {}) => {
4177
4198
  var t = e, {
4178
4199
  locale: r = Y()
4179
- } = t, n = pe(t, [
4200
+ } = t, n = fe(t, [
4180
4201
  "locale"
4181
4202
  ]);
4182
- return ki(ct({ locale: r }, n));
4183
- }, Di = Ie(
4203
+ return Ui(ft({ locale: r }, n));
4204
+ }, Gi = Ne(
4184
4205
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4185
- (e, t = Y()) => new di(e, t, le().formats, {
4186
- ignoreTag: le().ignoreTag
4206
+ (e, t = Y()) => new bi(e, t, ue().formats, {
4207
+ ignoreTag: ue().ignoreTag
4187
4208
  })
4188
- ), Gi = (e, t = {}) => {
4209
+ ), Vi = (e, t = {}) => {
4189
4210
  var r, n, i, o;
4190
4211
  let s = t;
4191
4212
  typeof e == "object" && (s = e, e = s.id);
@@ -4198,9 +4219,9 @@ const ge = (e, t) => {
4198
4219
  throw new Error(
4199
4220
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4200
4221
  );
4201
- let c = dr(e, l);
4222
+ let c = mr(e, l);
4202
4223
  if (!c)
4203
- c = (o = (i = (n = (r = le()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4224
+ c = (o = (i = (n = (r = ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4204
4225
  else if (typeof c != "string")
4205
4226
  return console.warn(
4206
4227
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4209,7 +4230,7 @@ const ge = (e, t) => {
4209
4230
  return c;
4210
4231
  let f = c;
4211
4232
  try {
4212
- f = Di(c, l).format(a);
4233
+ f = Gi(c, l).format(a);
4213
4234
  } catch (h) {
4214
4235
  h instanceof Error && console.warn(
4215
4236
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4217,21 +4238,21 @@ const ge = (e, t) => {
4217
4238
  );
4218
4239
  }
4219
4240
  return f;
4220
- }, ji = (e, t) => Fi(t).format(e), Vi = (e, t) => Ui(t).format(e), Xi = (e, t) => $i(t).format(e), zi = (e, t = Y()) => dr(e, t), qi = he([fe, ve], () => Gi);
4221
- he([fe], () => ji);
4222
- he([fe], () => Vi);
4223
- he([fe], () => Xi);
4224
- he([fe, ve], () => zi);
4241
+ }, Xi = (e, t) => ji(t).format(e), zi = (e, t) => Di(t).format(e), qi = (e, t) => Fi(t).format(e), Wi = (e, t = Y()) => mr(e, t), Zi = ce([he, ve], () => Vi);
4242
+ ce([he], () => Xi);
4243
+ ce([he], () => zi);
4244
+ ce([he], () => qi);
4245
+ ce([he, ve], () => Wi);
4225
4246
  window.emWidgets = { topic: an };
4226
- const Wi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4247
+ const Qi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4227
4248
  String(Number.MAX_SAFE_INTEGER).length;
4228
- function Ot(e, t) {
4229
- br(e, t);
4249
+ function Lt(e, t) {
4250
+ yr(e, t);
4230
4251
  }
4231
- function Zi(e) {
4232
- fe.set(e);
4252
+ function Ji(e) {
4253
+ he.set(e);
4233
4254
  }
4234
- const It = {
4255
+ const Nt = {
4235
4256
  en: {
4236
4257
  titleRealityCheck: "Reality Check",
4237
4258
  never: "Never",
@@ -4343,13 +4364,13 @@ const It = {
4343
4364
  setFrequency: "Set frequency"
4344
4365
  }
4345
4366
  };
4346
- function Qi(e, t) {
4367
+ function Yi(e, t) {
4347
4368
  if (e) {
4348
4369
  const r = document.createElement("style");
4349
4370
  r.innerHTML = t, e.appendChild(r);
4350
4371
  }
4351
4372
  }
4352
- function Ji(e, t) {
4373
+ function Ki(e, t) {
4353
4374
  if (!e || !t)
4354
4375
  return;
4355
4376
  const r = new URL(t);
@@ -4360,7 +4381,7 @@ function Ji(e, t) {
4360
4381
  console.error("There was an error while trying to load client styling from URL", n);
4361
4382
  });
4362
4383
  }
4363
- function Yi(e, t, r) {
4384
+ function eo(e, t, r) {
4364
4385
  if (window.emMessageBus) {
4365
4386
  const n = document.createElement("style");
4366
4387
  window.emMessageBus.subscribe(t, (i) => {
@@ -4368,120 +4389,120 @@ function Yi(e, t, r) {
4368
4389
  });
4369
4390
  }
4370
4391
  }
4371
- function Ki(e) {
4372
- wr(e, "svelte-17lev58", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));line-height:24px}.RealityCheckDescription p{min-height:140px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsContent{grid-template-columns:1fr}.containerTimeout{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
4392
+ function to(e) {
4393
+ Tr(e, "svelte-17lev58", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));line-height:24px}.RealityCheckDescription p{min-height:140px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsContent{grid-template-columns:1fr}.containerTimeout{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
4373
4394
  }
4374
- function Lt(e, t, r) {
4395
+ function kt(e, t, r) {
4375
4396
  const n = e.slice();
4376
4397
  return n[33] = t[r].value, n[34] = t[r].text, n[36] = r, n;
4377
4398
  }
4378
- function eo(e, t, r) {
4399
+ function ro(e, t, r) {
4379
4400
  const n = e.slice();
4380
4401
  return n[30] = t[r], n;
4381
4402
  }
4382
- function to(e) {
4403
+ function no(e) {
4383
4404
  let t, r, n, i, o = (
4384
4405
  /*$_*/
4385
4406
  e[5]("titleRealityCheck") + ""
4386
4407
  ), s, a, l, u, c = (
4387
4408
  /*$_*/
4388
4409
  e[5]("realityCheckText") + ""
4389
- ), f, h, d, m, p, y, w = (
4410
+ ), f, h, d, m, p, y, S = (
4390
4411
  /*$_*/
4391
4412
  e[5]("setFrequency") + ""
4392
- ), B, R, F, k, X, D = (
4413
+ ), C, O, F, k, z, D = (
4393
4414
  /*isMobile*/
4394
- e[6] && no(e)
4395
- ), O = (
4415
+ e[6] && oo(e)
4416
+ ), M = (
4396
4417
  /*realityCheckSuccess*/
4397
- e[4] && kt(e)
4398
- ), z = ze(
4418
+ e[4] && Ut(e)
4419
+ ), q = We(
4399
4420
  /*realityCheckOptions*/
4400
4421
  e[7]
4401
- ), M = [];
4402
- for (let T = 0; T < z.length; T += 1)
4403
- M[T] = $t(Lt(e, z, T));
4422
+ ), R = [];
4423
+ for (let w = 0; w < q.length; w += 1)
4424
+ R[w] = Ft(kt(e, q, w));
4404
4425
  return {
4405
4426
  c() {
4406
- t = H("div"), D && D.c(), r = G(), O && O.c(), n = G(), i = H("h2"), s = q(o), a = G(), l = H("div"), u = H("p"), f = q(c), h = G(), d = H("form");
4407
- for (let T = 0; T < M.length; T += 1)
4408
- M[T].c();
4409
- m = G(), p = H("div"), y = H("button"), B = q(w), x(i, "class", "RealityCheckTitle " + /*isMobile*/
4427
+ t = T("div"), D && D.c(), r = j(), M && M.c(), n = j(), i = T("h2"), s = W(o), a = j(), l = T("div"), u = T("p"), f = W(c), h = j(), d = T("form");
4428
+ for (let w = 0; w < R.length; w += 1)
4429
+ R[w].c();
4430
+ m = j(), p = T("div"), y = T("button"), C = W(S), x(i, "class", "RealityCheckTitle " + /*isMobile*/
4410
4431
  (e[6] ? "RealityCheckTitleNone" : "")), x(l, "class", "RealityCheckDescription " + /*isMobile*/
4411
- (e[6] ? "RealityCheckDescriptionMobile" : "")), x(y, "class", R = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
4432
+ (e[6] ? "RealityCheckDescriptionMobile" : "")), x(y, "class", O = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
4412
4433
  (e[3] === /*realityCheckValue*/
4413
4434
  e[2] ? "ButtonInactive" : "")), y.disabled = F = /*currentRealityCheckValue*/
4414
4435
  e[3] === /*realityCheckValue*/
4415
4436
  e[2], x(p, "class", "BottomButtonsArea " + /*isMobile*/
4416
4437
  (e[6] ? "BottomButtonsAreaMobile" : "")), x(d, "class", "customRadio"), x(t, "class", "containerTimeout");
4417
4438
  },
4418
- m(T, $) {
4419
- j(T, t, $), D && D.m(t, null), b(t, r), O && O.m(t, null), b(t, n), b(t, i), b(i, s), b(t, a), b(t, l), b(l, u), b(u, f), b(t, h), b(t, d);
4420
- for (let P = 0; P < M.length; P += 1)
4421
- M[P] && M[P].m(d, null);
4422
- b(d, m), b(d, p), b(p, y), b(y, B), k || (X = Ce(
4439
+ m(w, $) {
4440
+ G(w, t, $), D && D.m(t, null), b(t, r), M && M.m(t, null), b(t, n), b(t, i), b(i, s), b(t, a), b(t, l), b(l, u), b(u, f), b(t, h), b(t, d);
4441
+ for (let P = 0; P < R.length; P += 1)
4442
+ R[P] && R[P].m(d, null);
4443
+ b(d, m), b(d, p), b(p, y), b(y, C), k || (z = Ce(
4423
4444
  y,
4424
4445
  "click",
4425
4446
  /*submitRealityCheckValue*/
4426
4447
  e[8]
4427
4448
  ), k = !0);
4428
4449
  },
4429
- p(T, $) {
4450
+ p(w, $) {
4430
4451
  if (
4431
4452
  /*isMobile*/
4432
- T[6] && D.p(T, $), /*realityCheckSuccess*/
4433
- T[4] ? O ? O.p(T, $) : (O = kt(T), O.c(), O.m(t, n)) : O && (O.d(1), O = null), $[0] & /*$_*/
4453
+ w[6] && D.p(w, $), /*realityCheckSuccess*/
4454
+ w[4] ? M ? M.p(w, $) : (M = Ut(w), M.c(), M.m(t, n)) : M && (M.d(1), M = null), $[0] & /*$_*/
4434
4455
  32 && o !== (o = /*$_*/
4435
- T[5]("titleRealityCheck") + "") && ne(s, o), $[0] & /*$_*/
4456
+ w[5]("titleRealityCheck") + "") && ne(s, o), $[0] & /*$_*/
4436
4457
  32 && c !== (c = /*$_*/
4437
- T[5]("realityCheckText") + "") && ne(f, c), $[0] & /*realityCheckOptions, realityCheckValue*/
4458
+ w[5]("realityCheckText") + "") && ne(f, c), $[0] & /*realityCheckOptions, realityCheckValue*/
4438
4459
  132
4439
4460
  ) {
4440
- z = ze(
4461
+ q = We(
4441
4462
  /*realityCheckOptions*/
4442
- T[7]
4463
+ w[7]
4443
4464
  );
4444
4465
  let P;
4445
- for (P = 0; P < z.length; P += 1) {
4446
- const _e = Lt(T, z, P);
4447
- M[P] ? M[P].p(_e, $) : (M[P] = $t(_e), M[P].c(), M[P].m(d, m));
4466
+ for (P = 0; P < q.length; P += 1) {
4467
+ const _e = kt(w, q, P);
4468
+ R[P] ? R[P].p(_e, $) : (R[P] = Ft(_e), R[P].c(), R[P].m(d, m));
4448
4469
  }
4449
- for (; P < M.length; P += 1)
4450
- M[P].d(1);
4451
- M.length = z.length;
4470
+ for (; P < R.length; P += 1)
4471
+ R[P].d(1);
4472
+ R.length = q.length;
4452
4473
  }
4453
4474
  $[0] & /*$_*/
4454
- 32 && w !== (w = /*$_*/
4455
- T[5]("setFrequency") + "") && ne(B, w), $[0] & /*currentRealityCheckValue, realityCheckValue*/
4456
- 12 && R !== (R = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
4457
- (T[3] === /*realityCheckValue*/
4458
- T[2] ? "ButtonInactive" : "")) && x(y, "class", R), $[0] & /*currentRealityCheckValue, realityCheckValue*/
4475
+ 32 && S !== (S = /*$_*/
4476
+ w[5]("setFrequency") + "") && ne(C, S), $[0] & /*currentRealityCheckValue, realityCheckValue*/
4477
+ 12 && O !== (O = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
4478
+ (w[3] === /*realityCheckValue*/
4479
+ w[2] ? "ButtonInactive" : "")) && x(y, "class", O), $[0] & /*currentRealityCheckValue, realityCheckValue*/
4459
4480
  12 && F !== (F = /*currentRealityCheckValue*/
4460
- T[3] === /*realityCheckValue*/
4461
- T[2]) && (y.disabled = F);
4481
+ w[3] === /*realityCheckValue*/
4482
+ w[2]) && (y.disabled = F);
4462
4483
  },
4463
- d(T) {
4464
- T && U(t), D && D.d(), O && O.d(), Gt(M, T), k = !1, X();
4484
+ d(w) {
4485
+ w && U(t), D && D.d(), M && M.d(), Vt(R, w), k = !1, z();
4465
4486
  }
4466
4487
  };
4467
4488
  }
4468
- function ro(e) {
4489
+ function io(e) {
4469
4490
  let t, r, n, i, o, s, a, l, u;
4470
4491
  function c(p, y) {
4471
4492
  return (
4472
4493
  /*isMobile*/
4473
- p[6] ? oo : io
4494
+ p[6] ? ao : so
4474
4495
  );
4475
4496
  }
4476
- let h = c(e)(e), d = ze({ length: 6 }), m = [];
4497
+ let h = c(e)(e), d = We({ length: 6 }), m = [];
4477
4498
  for (let p = 0; p < d.length; p += 1)
4478
- m[p] = so(eo(e, d, p));
4499
+ m[p] = uo(ro(e, d, p));
4479
4500
  return {
4480
4501
  c() {
4481
- t = H("div"), h.c(), r = G(), n = H("div"), i = H("ui-skeleton"), o = G(), s = H("div");
4502
+ t = T("div"), h.c(), r = j(), n = T("div"), i = T("ui-skeleton"), o = j(), s = T("div");
4482
4503
  for (let p = 0; p < m.length; p += 1)
4483
4504
  m[p].c();
4484
- a = G(), l = H("div"), u = H("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
4505
+ a = j(), l = T("div"), u = T("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
4485
4506
  i,
4486
4507
  "rows",
4487
4508
  /*isMobile*/
@@ -4494,33 +4515,33 @@ function ro(e) {
4494
4515
  ), x(l, "class", "Button"), x(s, "class", "SkeletonOptionContainer"), x(t, "class", "SkeletonContainer");
4495
4516
  },
4496
4517
  m(p, y) {
4497
- j(p, t, y), h.m(t, null), b(t, r), b(t, n), b(n, i), b(t, o), b(t, s);
4498
- for (let w = 0; w < m.length; w += 1)
4499
- m[w] && m[w].m(s, null);
4518
+ G(p, t, y), h.m(t, null), b(t, r), b(t, n), b(n, i), b(t, o), b(t, s);
4519
+ for (let S = 0; S < m.length; S += 1)
4520
+ m[S] && m[S].m(s, null);
4500
4521
  b(s, a), b(s, l), b(l, u);
4501
4522
  },
4502
4523
  p(p, y) {
4503
4524
  h.p(p, y);
4504
4525
  },
4505
4526
  d(p) {
4506
- p && U(t), h.d(), Gt(m, p);
4527
+ p && U(t), h.d(), Vt(m, p);
4507
4528
  }
4508
4529
  };
4509
4530
  }
4510
- function no(e) {
4531
+ function oo(e) {
4511
4532
  let t, r, n, i, o, s, a, l, u, c, f, h = (
4512
4533
  /*$_*/
4513
4534
  e[5]("titleRealityCheck") + ""
4514
4535
  ), d, m, p, y = (
4515
4536
  /*realityCheckSuccess*/
4516
- e[4] && Nt(e)
4537
+ e[4] && $t(e)
4517
4538
  );
4518
4539
  return {
4519
4540
  c() {
4520
- y && y.c(), t = G(), r = H("div"), n = K("svg"), i = K("defs"), o = K("style"), s = q(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = K("g"), l = K("g"), u = K("path"), c = G(), f = H("h2"), d = q(h), x(u, "class", "aaa"), x(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(u, "transform", "translate(15 15) rotate(180)"), x(l, "transform", "translate(20 158)"), x(a, "transform", "translate(-20 -158)"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "15"), x(n, "height", "15"), x(n, "viewBox", "0 0 15 15"), x(f, "class", "RealityCheckTitleMobile"), x(r, "class", "MenuReturnButton");
4541
+ y && y.c(), t = j(), r = T("div"), n = K("svg"), i = K("defs"), o = K("style"), s = W(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = K("g"), l = K("g"), u = K("path"), c = j(), f = T("h2"), d = W(h), x(u, "class", "aaa"), x(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(u, "transform", "translate(15 15) rotate(180)"), x(l, "transform", "translate(20 158)"), x(a, "transform", "translate(-20 -158)"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "15"), x(n, "height", "15"), x(n, "viewBox", "0 0 15 15"), x(f, "class", "RealityCheckTitleMobile"), x(r, "class", "MenuReturnButton");
4521
4542
  },
4522
- m(w, B) {
4523
- y && y.m(w, B), j(w, t, B), j(w, r, B), b(r, n), b(n, i), b(i, o), b(o, s), b(n, a), b(a, l), b(l, u), b(r, c), b(r, f), b(f, d), m || (p = [
4543
+ m(S, C) {
4544
+ y && y.m(S, C), G(S, t, C), G(S, r, C), b(r, n), b(n, i), b(i, o), b(o, s), b(n, a), b(a, l), b(l, u), b(r, c), b(r, f), b(f, d), m || (p = [
4524
4545
  Ce(
4525
4546
  r,
4526
4547
  "click",
@@ -4530,28 +4551,28 @@ function no(e) {
4530
4551
  Ce(r, "keydown", null)
4531
4552
  ], m = !0);
4532
4553
  },
4533
- p(w, B) {
4554
+ p(S, C) {
4534
4555
  /*realityCheckSuccess*/
4535
- w[4] ? y ? y.p(w, B) : (y = Nt(w), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), B[0] & /*$_*/
4556
+ S[4] ? y ? y.p(S, C) : (y = $t(S), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), C[0] & /*$_*/
4536
4557
  32 && h !== (h = /*$_*/
4537
- w[5]("titleRealityCheck") + "") && ne(d, h);
4558
+ S[5]("titleRealityCheck") + "") && ne(d, h);
4538
4559
  },
4539
- d(w) {
4540
- w && (U(t), U(r)), y && y.d(w), m = !1, ce(p);
4560
+ d(S) {
4561
+ S && (U(t), U(r)), y && y.d(S), m = !1, le(p);
4541
4562
  }
4542
4563
  };
4543
4564
  }
4544
- function Nt(e) {
4565
+ function $t(e) {
4545
4566
  let t, r = (
4546
4567
  /*$_*/
4547
4568
  e[5]("successMessage") + ""
4548
4569
  ), n;
4549
4570
  return {
4550
4571
  c() {
4551
- t = H("div"), n = q(r), x(t, "class", "successMessageMobile");
4572
+ t = T("div"), n = W(r), x(t, "class", "successMessageMobile");
4552
4573
  },
4553
4574
  m(i, o) {
4554
- j(i, t, o), b(t, n);
4575
+ G(i, t, o), b(t, n);
4555
4576
  },
4556
4577
  p(i, o) {
4557
4578
  o[0] & /*$_*/
@@ -4563,18 +4584,18 @@ function Nt(e) {
4563
4584
  }
4564
4585
  };
4565
4586
  }
4566
- function kt(e) {
4587
+ function Ut(e) {
4567
4588
  let t, r = (
4568
4589
  /*$_*/
4569
4590
  e[5]("successMessage") + ""
4570
4591
  ), n;
4571
4592
  return {
4572
4593
  c() {
4573
- t = H("div"), n = q(r), x(t, "class", "successMessage " + /*isMobile*/
4594
+ t = T("div"), n = W(r), x(t, "class", "successMessage " + /*isMobile*/
4574
4595
  (e[6] ? "successMessageMobile" : ""));
4575
4596
  },
4576
4597
  m(i, o) {
4577
- j(i, t, o), b(t, n);
4598
+ G(i, t, o), b(t, n);
4578
4599
  },
4579
4600
  p(i, o) {
4580
4601
  o[0] & /*$_*/
@@ -4586,23 +4607,23 @@ function kt(e) {
4586
4607
  }
4587
4608
  };
4588
4609
  }
4589
- function $t(e) {
4610
+ function Ft(e) {
4590
4611
  let t, r, n, i, o = (
4591
4612
  /*text*/
4592
4613
  e[34] + ""
4593
4614
  ), s, a, l, u;
4594
- return a = Cr(
4615
+ return a = Br(
4595
4616
  /*$$binding_groups*/
4596
4617
  e[20][0]
4597
4618
  ), {
4598
4619
  c() {
4599
- t = H("div"), r = H("input"), n = G(), i = H("label"), s = q(o), x(r, "type", "radio"), x(
4620
+ t = T("div"), r = T("input"), n = j(), i = T("label"), s = W(o), x(r, "type", "radio"), x(
4600
4621
  r,
4601
4622
  "id",
4602
4623
  /*value*/
4603
4624
  e[33]
4604
4625
  ), r.__value = /*value*/
4605
- e[33], Ar(r, r.__value), x(
4626
+ e[33], Pr(r, r.__value), x(
4606
4627
  i,
4607
4628
  "for",
4608
4629
  /*value*/
@@ -4610,7 +4631,7 @@ function $t(e) {
4610
4631
  ), a.p(r);
4611
4632
  },
4612
4633
  m(c, f) {
4613
- j(c, t, f), b(t, r), r.checked = r.__value === /*realityCheckValue*/
4634
+ G(c, t, f), b(t, r), r.checked = r.__value === /*realityCheckValue*/
4614
4635
  e[2], b(t, n), b(t, i), b(i, s), l || (u = Ce(
4615
4636
  r,
4616
4637
  "change",
@@ -4628,14 +4649,14 @@ function $t(e) {
4628
4649
  }
4629
4650
  };
4630
4651
  }
4631
- function io(e) {
4652
+ function so(e) {
4632
4653
  let t;
4633
4654
  return {
4634
4655
  c() {
4635
- t = H("div"), t.innerHTML = '<ui-skeleton structure="title" width="200px" margin-top="20px"></ui-skeleton>', x(t, "class", "SkeletonHeaderText");
4656
+ t = T("div"), t.innerHTML = '<ui-skeleton structure="title" width="200px" margin-top="20px"></ui-skeleton>', x(t, "class", "SkeletonHeaderText");
4636
4657
  },
4637
4658
  m(r, n) {
4638
- j(r, t, n);
4659
+ G(r, t, n);
4639
4660
  },
4640
4661
  p: N,
4641
4662
  d(r) {
@@ -4643,15 +4664,15 @@ function io(e) {
4643
4664
  }
4644
4665
  };
4645
4666
  }
4646
- function oo(e) {
4667
+ function ao(e) {
4647
4668
  let t, r, n, i;
4648
4669
  return {
4649
4670
  c() {
4650
- t = H("div"), r = H("ui-skeleton"), n = G(), i = H("ui-skeleton"), A(r, "structure", "title"), A(r, "width", "20px"), A(r, "height", "20px"), A(r, "margin-top", "5px"), A(r, "margin-bottom", "15px"), A(i, "structure", "title"), A(i, "width", "100px"), A(i, "height", "20px"), A(i, "margin-top", "5px"), A(i, "margin-bottom", "15px"), x(t, "class", "SkeletonMenuButton " + /*isMobile*/
4671
+ t = T("div"), r = T("ui-skeleton"), n = j(), i = T("ui-skeleton"), A(r, "structure", "title"), A(r, "width", "20px"), A(r, "height", "20px"), A(r, "margin-top", "5px"), A(r, "margin-bottom", "15px"), A(i, "structure", "title"), A(i, "width", "100px"), A(i, "height", "20px"), A(i, "margin-top", "5px"), A(i, "margin-bottom", "15px"), x(t, "class", "SkeletonMenuButton " + /*isMobile*/
4651
4672
  (e[6] ? "Mobile" : ""));
4652
4673
  },
4653
4674
  m(o, s) {
4654
- j(o, t, s), b(t, r), b(t, n), b(t, i);
4675
+ G(o, t, s), b(t, r), b(t, n), b(t, i);
4655
4676
  },
4656
4677
  p: N,
4657
4678
  d(o) {
@@ -4659,14 +4680,14 @@ function oo(e) {
4659
4680
  }
4660
4681
  };
4661
4682
  }
4662
- function so(e) {
4683
+ function uo(e) {
4663
4684
  let t;
4664
4685
  return {
4665
4686
  c() {
4666
- t = H("div"), t.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', x(t, "class", "SkeletonOption");
4687
+ t = T("div"), t.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', x(t, "class", "SkeletonOption");
4667
4688
  },
4668
4689
  m(r, n) {
4669
- j(r, t, n);
4690
+ G(r, t, n);
4670
4691
  },
4671
4692
  p: N,
4672
4693
  d(r) {
@@ -4674,22 +4695,22 @@ function so(e) {
4674
4695
  }
4675
4696
  };
4676
4697
  }
4677
- function ao(e) {
4698
+ function lo(e) {
4678
4699
  let t;
4679
4700
  function r(o, s) {
4680
4701
  return (
4681
4702
  /*skeletonLoading*/
4682
- o[1] ? ro : to
4703
+ o[1] ? io : no
4683
4704
  );
4684
4705
  }
4685
4706
  let n = r(e), i = n(e);
4686
4707
  return {
4687
4708
  c() {
4688
- t = H("div"), i.c(), x(t, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
4709
+ t = T("div"), i.c(), x(t, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
4689
4710
  (e[6] ? "PlayerRealityCheckWrapperMobile" : ""));
4690
4711
  },
4691
4712
  m(o, s) {
4692
- j(o, t, s), i.m(t, null), e[21](t);
4713
+ G(o, t, s), i.m(t, null), e[21](t);
4693
4714
  },
4694
4715
  p(o, s) {
4695
4716
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
@@ -4701,11 +4722,11 @@ function ao(e) {
4701
4722
  }
4702
4723
  };
4703
4724
  }
4704
- function uo(e, t, r) {
4725
+ function co(e, t, r) {
4705
4726
  let n;
4706
- Sr(e, qi, (g) => r(5, n = g));
4707
- let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, h, d = Wi(window.navigator.userAgent) !== "PC", m = !0, p, y, w = !1, B = [];
4708
- const R = () => {
4727
+ wr(e, Zi, (g) => r(5, n = g));
4728
+ let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, h, d = Qi(window.navigator.userAgent) !== "PC", m = !0, p, y, S = !1, C = [];
4729
+ const O = () => {
4709
4730
  const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
4710
4731
  E.append("X-SessionID", s);
4711
4732
  const Q = { method: "GET", headers: E };
@@ -4731,21 +4752,21 @@ function uo(e, t, r) {
4731
4752
  );
4732
4753
  }, k = (g) => {
4733
4754
  g.forEach((E) => {
4734
- E == 0 ? B.push({
4755
+ E == 0 ? C.push({
4735
4756
  value: E.toString(),
4736
4757
  text: n("never")
4737
- }) : E < 60 ? B.push({
4758
+ }) : E < 60 ? C.push({
4738
4759
  value: E.toString(),
4739
4760
  text: E + " " + n("minutes")
4740
- }) : E == 60 ? B.push({
4761
+ }) : E == 60 ? C.push({
4741
4762
  value: E.toString(),
4742
4763
  text: n("oneHour")
4743
- }) : E > 60 && B.push({
4764
+ }) : E > 60 && C.push({
4744
4765
  value: E.toString(),
4745
4766
  text: E / 60 + " " + n("hours")
4746
4767
  });
4747
4768
  });
4748
- }, X = async () => {
4769
+ }, z = async () => {
4749
4770
  const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
4750
4771
  E.append("X-SessionID", s), E.append("Content-Type", "application/json"), E.append("Accept", "application/json"), E.append("realityCheckValue", `${parseInt(p, 10)}`);
4751
4772
  const Q = { method: "POST", headers: E };
@@ -4754,10 +4775,10 @@ function uo(e, t, r) {
4754
4775
  (I) => (console.error(I), !1)
4755
4776
  );
4756
4777
  }, D = (g) => {
4757
- g.preventDefault(), X().then((E) => {
4758
- E && (O(), R());
4778
+ g.preventDefault(), z().then((E) => {
4779
+ E && (M(), O());
4759
4780
  });
4760
- }, O = () => {
4781
+ }, M = () => {
4761
4782
  window.postMessage(
4762
4783
  {
4763
4784
  type: "WidgetNotification",
@@ -4767,8 +4788,8 @@ function uo(e, t, r) {
4767
4788
  }
4768
4789
  },
4769
4790
  window.location.href
4770
- ), r(4, w = !0), setTimeout(() => r(4, w = !1), 2e3);
4771
- }, z = () => {
4791
+ ), r(4, S = !0), setTimeout(() => r(4, S = !1), 2e3);
4792
+ }, q = () => {
4772
4793
  window.postMessage(
4773
4794
  {
4774
4795
  type: "PlayerAccountMenuActive",
@@ -4776,27 +4797,27 @@ function uo(e, t, r) {
4776
4797
  },
4777
4798
  window.location.href
4778
4799
  );
4779
- }, M = () => {
4780
- Zi(a);
4781
- }, T = () => {
4800
+ }, R = () => {
4801
+ Ji(a);
4802
+ }, w = () => {
4782
4803
  fetch(f).then((E) => E.json()).then((E) => {
4783
4804
  Object.keys(E).forEach((Q) => {
4784
- Ot(Q, E[Q]);
4805
+ Lt(Q, E[Q]);
4785
4806
  });
4786
4807
  }).catch((E) => {
4787
4808
  console.log(E);
4788
4809
  });
4789
4810
  };
4790
- Object.keys(It).forEach((g) => {
4791
- Ot(g, It[g]);
4811
+ Object.keys(Nt).forEach((g) => {
4812
+ Lt(g, Nt[g]);
4792
4813
  }), Mr(() => () => {
4793
4814
  });
4794
- const $ = [[]], P = () => z();
4815
+ const $ = [[]], P = () => q();
4795
4816
  function _e() {
4796
4817
  p = this.__value, r(2, p);
4797
4818
  }
4798
- function xr(g) {
4799
- je[g ? "unshift" : "push"](() => {
4819
+ function Er(g) {
4820
+ Xe[g ? "unshift" : "push"](() => {
4800
4821
  h = g, r(0, h);
4801
4822
  });
4802
4823
  }
@@ -4804,24 +4825,24 @@ function uo(e, t, r) {
4804
4825
  "endpoint" in g && r(10, i = g.endpoint), "playerid" in g && r(11, o = g.playerid), "session" in g && r(12, s = g.session), "lang" in g && r(13, a = g.lang), "clientstyling" in g && r(14, l = g.clientstyling), "clientstylingurl" in g && r(15, u = g.clientstylingurl), "mbsource" in g && r(16, c = g.mbsource), "translationurl" in g && r(17, f = g.translationurl);
4805
4826
  }, e.$$.update = () => {
4806
4827
  e.$$.dirty[0] & /*lang*/
4807
- 8192 && a && M(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4808
- 7168 && i && o && s && R(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4828
+ 8192 && a && R(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4829
+ 7168 && i && o && s && O(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4809
4830
  7168 && i && o && s && F(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4810
- 16385 && l && h && Qi(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4811
- 32769 && u && h && Ji(h, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4812
- 65537 && c && h && Yi(h, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
4813
- 131072 && f && T();
4831
+ 16385 && l && h && Yi(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4832
+ 32769 && u && h && Ki(h, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4833
+ 65537 && c && h && eo(h, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
4834
+ 131072 && f && w();
4814
4835
  }, [
4815
4836
  h,
4816
4837
  m,
4817
4838
  p,
4818
4839
  y,
4819
- w,
4840
+ S,
4820
4841
  n,
4821
4842
  d,
4822
- B,
4843
+ C,
4823
4844
  D,
4824
- z,
4845
+ q,
4825
4846
  i,
4826
4847
  o,
4827
4848
  s,
@@ -4833,17 +4854,17 @@ function uo(e, t, r) {
4833
4854
  P,
4834
4855
  _e,
4835
4856
  $,
4836
- xr
4857
+ Er
4837
4858
  ];
4838
4859
  }
4839
- class lo extends Vr {
4860
+ class ho extends Xr {
4840
4861
  constructor(t) {
4841
4862
  super(), Gr(
4842
4863
  this,
4843
4864
  t,
4844
- uo,
4845
- ao,
4846
- Ft,
4865
+ co,
4866
+ lo,
4867
+ jt,
4847
4868
  {
4848
4869
  endpoint: 10,
4849
4870
  playerid: 11,
@@ -4854,7 +4875,7 @@ class lo extends Vr {
4854
4875
  mbsource: 16,
4855
4876
  translationurl: 17
4856
4877
  },
4857
- Ki,
4878
+ to,
4858
4879
  [-1, -1]
4859
4880
  );
4860
4881
  }
@@ -4907,7 +4928,7 @@ class lo extends Vr {
4907
4928
  this.$$set({ translationurl: t }), V();
4908
4929
  }
4909
4930
  }
4910
- jr(lo, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4931
+ Vr(ho, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4911
4932
  export {
4912
- lo as P
4933
+ ho as P
4913
4934
  };