@everymatrix/general-registration-hsl 0.25.49 → 0.25.50

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,16 +1,16 @@
1
- var tn = Object.defineProperty, rn = Object.defineProperties;
2
- var nn = Object.getOwnPropertyDescriptors;
3
- var St = Object.getOwnPropertySymbols;
4
- var on = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable;
5
- var Ze = (e, t, r) => t in e ? tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
1
+ var rn = Object.defineProperty, nn = Object.defineProperties;
2
+ var on = Object.getOwnPropertyDescriptors;
3
+ var wt = Object.getOwnPropertySymbols;
4
+ var an = Object.prototype.hasOwnProperty, sn = Object.prototype.propertyIsEnumerable;
5
+ var Je = (e, t, r) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- on.call(t, r) && Ze(e, r, t[r]);
8
- if (St)
9
- for (var r of St(t))
10
- an.call(t, r) && Ze(e, r, t[r]);
7
+ an.call(t, r) && Je(e, r, t[r]);
8
+ if (wt)
9
+ for (var r of wt(t))
10
+ sn.call(t, r) && Je(e, r, t[r]);
11
11
  return e;
12
- }, Je = (e, t) => rn(e, nn(t));
13
- var U = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
12
+ }, Qe = (e, t) => nn(e, on(t));
13
+ var U = (e, t, r) => (Je(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var re = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (c) => {
16
16
  try {
@@ -29,25 +29,25 @@ var re = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function $() {
31
31
  }
32
- function er(e) {
32
+ function tr(e) {
33
33
  return e();
34
34
  }
35
- function xt() {
35
+ function Tt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function me(e) {
39
- e.forEach(er);
39
+ e.forEach(tr);
40
40
  }
41
- function gt(e) {
41
+ function yt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function _t(e, t) {
44
+ function vt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function sn(e) {
47
+ function ln(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function tr(e, ...t) {
50
+ function rr(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,20 +56,20 @@ function tr(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function ln(e, t, r) {
60
- e.$$.on_destroy.push(tr(t, r));
59
+ function cn(e, t, r) {
60
+ e.$$.on_destroy.push(rr(t, r));
61
61
  }
62
- function x(e, t) {
62
+ function S(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function cn(e, t, r) {
66
- const n = un(e);
65
+ function un(e, t, r) {
66
+ const n = hn(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = T("style");
69
- i.id = t, i.textContent = r, hn(n, i);
69
+ i.id = t, i.textContent = r, dn(n, i);
70
70
  }
71
71
  }
72
- function un(e) {
72
+ function hn(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,56 +79,56 @@ function un(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function hn(e, t) {
83
- return x(
82
+ function dn(e, t) {
83
+ return S(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function L(e, t, r) {
89
+ function z(e, t, r) {
90
90
  e.insertBefore(t, r || null);
91
91
  }
92
92
  function O(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function yt(e, t) {
95
+ function bt(e, t) {
96
96
  for (let r = 0; r < e.length; r += 1)
97
97
  e[r] && e[r].d(t);
98
98
  }
99
99
  function T(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function it(e) {
102
+ function at(e) {
103
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
104
104
  }
105
- function ee(e) {
105
+ function K(e) {
106
106
  return document.createTextNode(e);
107
107
  }
108
108
  function F() {
109
- return ee(" ");
109
+ return K(" ");
110
110
  }
111
- function dn() {
112
- return ee("");
111
+ function mn() {
112
+ return K("");
113
113
  }
114
- function Ce(e, t, r, n) {
114
+ function Se(e, t, r, n) {
115
115
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
116
116
  }
117
117
  function k(e, t, r) {
118
118
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
119
119
  }
120
- function K(e, t, r) {
120
+ function Y(e, t, r) {
121
121
  const n = t.toLowerCase();
122
122
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
123
123
  }
124
- function mn(e) {
124
+ function fn(e) {
125
125
  return Array.from(e.childNodes);
126
126
  }
127
- function Te(e, t) {
127
+ function Me(e, t) {
128
128
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
129
129
  t);
130
130
  }
131
- class rr {
131
+ class nr {
132
132
  constructor(t = !1) {
133
133
  /**
134
134
  * @private
@@ -159,7 +159,7 @@ class rr {
159
159
  * @returns {void}
160
160
  */
161
161
  m(t, r, n = null) {
162
- this.e || (this.is_svg ? this.e = it(
162
+ this.e || (this.is_svg ? this.e = at(
163
163
  /** @type {keyof SVGElementTagNameMap} */
164
164
  r.nodeName
165
165
  ) : this.e = T(
@@ -183,7 +183,7 @@ class rr {
183
183
  * @returns {void} */
184
184
  i(t) {
185
185
  for (let r = 0; r < this.n.length; r += 1)
186
- L(this.t, this.n[r], t);
186
+ z(this.t, this.n[r], t);
187
187
  }
188
188
  /**
189
189
  * @param {string} html
@@ -198,7 +198,7 @@ class rr {
198
198
  this.n.forEach(O);
199
199
  }
200
200
  }
201
- function fn(e) {
201
+ function pn(e) {
202
202
  const t = {};
203
203
  return e.childNodes.forEach(
204
204
  /** @param {Element} node */
@@ -207,90 +207,90 @@ function fn(e) {
207
207
  }
208
208
  ), t;
209
209
  }
210
- let Se;
211
- function Ee(e) {
212
- Se = e;
210
+ let xe;
211
+ function Ce(e) {
212
+ xe = e;
213
213
  }
214
- function pn() {
215
- if (!Se)
214
+ function gn() {
215
+ if (!xe)
216
216
  throw new Error("Function called outside component initialization");
217
- return Se;
217
+ return xe;
218
218
  }
219
- function gn(e) {
220
- pn().$$.on_mount.push(e);
219
+ function _n(e) {
220
+ gn().$$.on_mount.push(e);
221
221
  }
222
- const oe = [], Re = [];
222
+ const oe = [], Ue = [];
223
223
  let se = [];
224
- const wt = [], _n = /* @__PURE__ */ Promise.resolve();
225
- let ot = !1;
226
- function yn() {
227
- ot || (ot = !0, _n.then(X));
224
+ const Mt = [], yn = /* @__PURE__ */ Promise.resolve();
225
+ let st = !1;
226
+ function vn() {
227
+ st || (st = !0, yn.then(X));
228
228
  }
229
- function at(e) {
229
+ function lt(e) {
230
230
  se.push(e);
231
231
  }
232
- const Qe = /* @__PURE__ */ new Set();
232
+ const Ye = /* @__PURE__ */ new Set();
233
233
  let ne = 0;
234
234
  function X() {
235
235
  if (ne !== 0)
236
236
  return;
237
- const e = Se;
237
+ const e = xe;
238
238
  do {
239
239
  try {
240
240
  for (; ne < oe.length; ) {
241
241
  const t = oe[ne];
242
- ne++, Ee(t), vn(t.$$);
242
+ ne++, Ce(t), bn(t.$$);
243
243
  }
244
244
  } catch (t) {
245
245
  throw oe.length = 0, ne = 0, t;
246
246
  }
247
- for (Ee(null), oe.length = 0, ne = 0; Re.length; )
248
- Re.pop()();
247
+ for (Ce(null), oe.length = 0, ne = 0; Ue.length; )
248
+ Ue.pop()();
249
249
  for (let t = 0; t < se.length; t += 1) {
250
250
  const r = se[t];
251
- Qe.has(r) || (Qe.add(r), r());
251
+ Ye.has(r) || (Ye.add(r), r());
252
252
  }
253
253
  se.length = 0;
254
254
  } while (oe.length);
255
- for (; wt.length; )
256
- wt.pop()();
257
- ot = !1, Qe.clear(), Ee(e);
255
+ for (; Mt.length; )
256
+ Mt.pop()();
257
+ st = !1, Ye.clear(), Ce(e);
258
258
  }
259
- function vn(e) {
259
+ function bn(e) {
260
260
  if (e.fragment !== null) {
261
261
  e.update(), me(e.before_update);
262
262
  const t = e.dirty;
263
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
263
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
264
264
  }
265
265
  }
266
- function bn(e) {
266
+ function kn(e) {
267
267
  const t = [], r = [];
268
268
  se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
269
269
  }
270
- const kn = /* @__PURE__ */ new Set();
271
- function En(e, t) {
272
- e && e.i && (kn.delete(e), e.i(t));
270
+ const En = /* @__PURE__ */ new Set();
271
+ function Cn(e, t) {
272
+ e && e.i && (En.delete(e), e.i(t));
273
273
  }
274
274
  function le(e) {
275
275
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
276
276
  }
277
- function Cn(e, t, r) {
277
+ function Sn(e, t, r) {
278
278
  const { fragment: n, after_update: i } = e.$$;
279
- n && n.m(t, r), at(() => {
280
- const o = e.$$.on_mount.map(er).filter(gt);
279
+ n && n.m(t, r), lt(() => {
280
+ const o = e.$$.on_mount.map(tr).filter(yt);
281
281
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : me(o), e.$$.on_mount = [];
282
- }), i.forEach(at);
282
+ }), i.forEach(lt);
283
283
  }
284
- function Sn(e, t) {
284
+ function xn(e, t) {
285
285
  const r = e.$$;
286
- r.fragment !== null && (bn(r.after_update), me(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
286
+ r.fragment !== null && (kn(r.after_update), me(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
287
287
  }
288
- function xn(e, t) {
289
- e.$$.dirty[0] === -1 && (oe.push(e), yn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
288
+ function wn(e, t) {
289
+ e.$$.dirty[0] === -1 && (oe.push(e), vn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
290
290
  }
291
- function nr(e, t, r, n, i, o, a = null, s = [-1]) {
292
- const c = Se;
293
- Ee(e);
291
+ function ir(e, t, r, n, i, o, a = null, s = [-1]) {
292
+ const c = xe;
293
+ Ce(e);
294
294
  const l = e.$$ = {
295
295
  fragment: null,
296
296
  ctx: [],
@@ -298,7 +298,7 @@ function nr(e, t, r, n, i, o, a = null, s = [-1]) {
298
298
  props: o,
299
299
  update: $,
300
300
  not_equal: i,
301
- bound: xt(),
301
+ bound: Tt(),
302
302
  // lifecycle
303
303
  on_mount: [],
304
304
  on_destroy: [],
@@ -307,7 +307,7 @@ function nr(e, t, r, n, i, o, a = null, s = [-1]) {
307
307
  after_update: [],
308
308
  context: new Map(t.context || (c ? c.$$.context : [])),
309
309
  // everything else
310
- callbacks: xt(),
310
+ callbacks: Tt(),
311
311
  dirty: s,
312
312
  skip_bound: !1,
313
313
  root: t.target || c.$$.root
@@ -316,19 +316,19 @@ function nr(e, t, r, n, i, o, a = null, s = [-1]) {
316
316
  let u = !1;
317
317
  if (l.ctx = r ? r(e, t.props || {}, (d, m, ...y) => {
318
318
  const g = y.length ? y[0] : m;
319
- return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), u && xn(e, d)), m;
319
+ return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), u && wn(e, d)), m;
320
320
  }) : [], l.update(), u = !0, me(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
321
321
  if (t.hydrate) {
322
- const d = mn(t.target);
322
+ const d = fn(t.target);
323
323
  l.fragment && l.fragment.l(d), d.forEach(O);
324
324
  } else
325
325
  l.fragment && l.fragment.c();
326
- t.intro && En(e.$$.fragment), Cn(e, t.target, t.anchor), X();
326
+ t.intro && Cn(e.$$.fragment), Sn(e, t.target, t.anchor), X();
327
327
  }
328
- Ee(c);
328
+ Ce(c);
329
329
  }
330
- let ir;
331
- typeof HTMLElement == "function" && (ir = class extends HTMLElement {
330
+ let or;
331
+ typeof HTMLElement == "function" && (or = class extends HTMLElement {
332
332
  constructor(t, r, n) {
333
333
  super();
334
334
  /** The Svelte component constructor */
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
379
379
  * @param {HTMLElement} [anchor]
380
380
  */
381
381
  m: function(l, u) {
382
- L(l, a, u);
382
+ z(l, a, u);
383
383
  },
384
384
  d: function(l) {
385
385
  l && O(a);
@@ -389,7 +389,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
389
389
  };
390
390
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
391
391
  return;
392
- const r = {}, n = fn(this);
392
+ const r = {}, n = pn(this);
393
393
  for (const o of this.$$s)
394
394
  o in n && (r[o] = [t(o)]);
395
395
  for (const o of this.attributes) {
@@ -400,7 +400,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
400
400
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
401
401
  this.$$c = new this.$$ctor({
402
402
  target: this.shadowRoot || this,
403
- props: Je(W({}, this.$$d), {
403
+ props: Qe(W({}, this.$$d), {
404
404
  $$slots: r,
405
405
  $$scope: {
406
406
  ctx: []
@@ -478,8 +478,8 @@ function Le(e, t, r, n) {
478
478
  return t;
479
479
  }
480
480
  }
481
- function or(e, t, r, n, i, o) {
482
- let a = class extends ir {
481
+ function ar(e, t, r, n, i, o) {
482
+ let a = class extends or {
483
483
  constructor() {
484
484
  super(e, r, i), this.$$p_d = t;
485
485
  }
@@ -509,7 +509,7 @@ function or(e, t, r, n, i, o) {
509
509
  }), e.element = /** @type {any} */
510
510
  a, a;
511
511
  }
512
- class ar {
512
+ class sr {
513
513
  constructor() {
514
514
  /**
515
515
  * ### PRIVATE API
@@ -530,7 +530,7 @@ class ar {
530
530
  }
531
531
  /** @returns {void} */
532
532
  $destroy() {
533
- Sn(this, 1), this.$destroy = $;
533
+ xn(this, 1), this.$destroy = $;
534
534
  }
535
535
  /**
536
536
  * @template {Extract<keyof Events, string>} K
@@ -539,7 +539,7 @@ class ar {
539
539
  * @returns {() => void}
540
540
  */
541
541
  $on(t, r) {
542
- if (!gt(r))
542
+ if (!yt(r))
543
543
  return $;
544
544
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
545
545
  return n.push(r), () => {
@@ -552,19 +552,28 @@ class ar {
552
552
  * @returns {void}
553
553
  */
554
554
  $set(t) {
555
- this.$$set && !sn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
555
+ this.$$set && !ln(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
556
+ }
557
+ }
558
+ const Tn = "4";
559
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tn);
560
+ function Mn(e, t, r, n = !1) {
561
+ if (window.emMessageBus) {
562
+ const i = n ? (o) => {
563
+ !o || typeof o != "object" || Array.isArray(o) || Object.keys(o).forEach((a) => r(a, o[a]));
564
+ } : r;
565
+ t = window.emMessageBus.subscribe(e, i);
556
566
  }
567
+ return t;
557
568
  }
558
- const wn = "4";
559
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wn);
560
569
  const ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
561
- function Tn(e, t) {
570
+ function Nn(e, t) {
562
571
  if (e) {
563
572
  const r = document.createElement("style");
564
573
  r.innerHTML = t, e.appendChild(r);
565
574
  }
566
575
  }
567
- function Mn(e, t) {
576
+ function An(e, t) {
568
577
  if (!e || !t)
569
578
  return;
570
579
  const r = new URL(t);
@@ -575,12 +584,12 @@ function Mn(e, t) {
575
584
  console.error("There was an error while trying to load client styling from URL", n);
576
585
  });
577
586
  }
578
- function Nn(e, t, r, n = !1) {
587
+ function Hn(e, t, r, n = !1) {
579
588
  if (!window.emMessageBus)
580
589
  return;
581
590
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
582
- return r = An(e, t), r;
583
- window[ae] || (window[ae] = {}), r = Hn(e, t);
591
+ return r = Pn(e, t), r;
592
+ window[ae] || (window[ae] = {}), r = Bn(e, t);
584
593
  const o = r.unsubscribe.bind(r), a = () => {
585
594
  if (window[ae][t]) {
586
595
  const s = window[ae][t];
@@ -590,13 +599,13 @@ function Nn(e, t, r, n = !1) {
590
599
  };
591
600
  return r.unsubscribe = a, r;
592
601
  }
593
- function An(e, t) {
602
+ function Pn(e, t) {
594
603
  const r = document.createElement("style");
595
604
  return window.emMessageBus.subscribe(t, (n) => {
596
605
  e && (r.innerHTML = n, e.appendChild(r));
597
606
  });
598
607
  }
599
- function Hn(e, t) {
608
+ function Bn(e, t) {
600
609
  return window.emMessageBus.subscribe(t, (r) => {
601
610
  if (!e)
602
611
  return;
@@ -611,16 +620,16 @@ function Hn(e, t) {
611
620
  });
612
621
  }
613
622
  const ie = [];
614
- function Pn(e, t) {
623
+ function On(e, t) {
615
624
  return {
616
- subscribe: Fe(e, t).subscribe
625
+ subscribe: $e(e, t).subscribe
617
626
  };
618
627
  }
619
- function Fe(e, t = $) {
628
+ function $e(e, t = $) {
620
629
  let r;
621
630
  const n = /* @__PURE__ */ new Set();
622
631
  function i(s) {
623
- if (_t(e, s) && (e = s, r)) {
632
+ if (vt(e, s) && (e = s, r)) {
624
633
  const c = !ie.length;
625
634
  for (const l of n)
626
635
  l[1](), ie.push(l, e);
@@ -647,7 +656,7 @@ function fe(e, t, r) {
647
656
  if (!i.every(Boolean))
648
657
  throw new Error("derived() expects stores as input, got a falsy value");
649
658
  const o = t.length < 2;
650
- return Pn(r, (a, s) => {
659
+ return On(r, (a, s) => {
651
660
  let c = !1;
652
661
  const l = [];
653
662
  let u = 0, d = $;
@@ -656,12 +665,12 @@ function fe(e, t, r) {
656
665
  return;
657
666
  d();
658
667
  const g = t(n ? l[0] : l, a, s);
659
- o ? a(g) : d = gt(g) ? g : $;
668
+ o ? a(g) : d = yt(g) ? g : $;
660
669
  }, y = i.map(
661
- (g, p) => tr(
670
+ (g, p) => rr(
662
671
  g,
663
- (S) => {
664
- l[p] = S, u &= ~(1 << p), c && m();
672
+ (C) => {
673
+ l[p] = C, u &= ~(1 << p), c && m();
665
674
  },
666
675
  () => {
667
676
  u |= 1 << p;
@@ -673,70 +682,70 @@ function fe(e, t, r) {
673
682
  };
674
683
  });
675
684
  }
676
- function Bn(e) {
685
+ function zn(e) {
677
686
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
678
687
  }
679
- var On = function(t) {
680
- return zn(t) && !Ln(t);
688
+ var jn = function(t) {
689
+ return Ln(t) && !In(t);
681
690
  };
682
- function zn(e) {
691
+ function Ln(e) {
683
692
  return !!e && typeof e == "object";
684
693
  }
685
- function Ln(e) {
694
+ function In(e) {
686
695
  var t = Object.prototype.toString.call(e);
687
- return t === "[object RegExp]" || t === "[object Date]" || Rn(e);
696
+ return t === "[object RegExp]" || t === "[object Date]" || Dn(e);
688
697
  }
689
- var jn = typeof Symbol == "function" && Symbol.for, In = jn ? Symbol.for("react.element") : 60103;
690
- function Rn(e) {
691
- return e.$$typeof === In;
698
+ var Rn = typeof Symbol == "function" && Symbol.for, Un = Rn ? Symbol.for("react.element") : 60103;
699
+ function Dn(e) {
700
+ return e.$$typeof === Un;
692
701
  }
693
- function Un(e) {
702
+ function Gn(e) {
694
703
  return Array.isArray(e) ? [] : {};
695
704
  }
696
- function xe(e, t) {
697
- return t.clone !== !1 && t.isMergeableObject(e) ? ce(Un(e), e, t) : e;
705
+ function we(e, t) {
706
+ return t.clone !== !1 && t.isMergeableObject(e) ? ce(Gn(e), e, t) : e;
698
707
  }
699
- function Dn(e, t, r) {
708
+ function Fn(e, t, r) {
700
709
  return e.concat(t).map(function(n) {
701
- return xe(n, r);
710
+ return we(n, r);
702
711
  });
703
712
  }
704
- function Gn(e, t) {
713
+ function $n(e, t) {
705
714
  if (!t.customMerge)
706
715
  return ce;
707
716
  var r = t.customMerge(e);
708
717
  return typeof r == "function" ? r : ce;
709
718
  }
710
- function Fn(e) {
719
+ function Vn(e) {
711
720
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
712
721
  return Object.propertyIsEnumerable.call(e, t);
713
722
  }) : [];
714
723
  }
715
- function Tt(e) {
716
- return Object.keys(e).concat(Fn(e));
724
+ function Nt(e) {
725
+ return Object.keys(e).concat(Vn(e));
717
726
  }
718
- function sr(e, t) {
727
+ function lr(e, t) {
719
728
  try {
720
729
  return t in e;
721
730
  } catch (r) {
722
731
  return !1;
723
732
  }
724
733
  }
725
- function $n(e, t) {
726
- return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
734
+ function Xn(e, t) {
735
+ return lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
727
736
  }
728
- function Vn(e, t, r) {
737
+ function qn(e, t, r) {
729
738
  var n = {};
730
- return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
731
- n[i] = xe(e[i], r);
732
- }), Tt(t).forEach(function(i) {
733
- $n(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Gn(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
739
+ return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
740
+ n[i] = we(e[i], r);
741
+ }), Nt(t).forEach(function(i) {
742
+ Xn(e, i) || (lr(e, i) && r.isMergeableObject(t[i]) ? n[i] = $n(i, r)(e[i], t[i], r) : n[i] = we(t[i], r));
734
743
  }), n;
735
744
  }
736
745
  function ce(e, t, r) {
737
- r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || On, r.cloneUnlessOtherwiseSpecified = xe;
746
+ r = r || {}, r.arrayMerge = r.arrayMerge || Fn, r.isMergeableObject = r.isMergeableObject || jn, r.cloneUnlessOtherwiseSpecified = we;
738
747
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
739
- return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : xe(t, r);
748
+ return o ? n ? r.arrayMerge(e, t, r) : qn(e, t, r) : we(t, r);
740
749
  }
741
750
  ce.all = function(t, r) {
742
751
  if (!Array.isArray(t))
@@ -745,20 +754,20 @@ ce.all = function(t, r) {
745
754
  return ce(n, i, r);
746
755
  }, {});
747
756
  };
748
- var Xn = ce, qn = Xn;
749
- const Wn = /* @__PURE__ */ Bn(qn);
750
- var st = function(e, t) {
751
- return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
757
+ var Wn = ce, Zn = Wn;
758
+ const Jn = /* @__PURE__ */ zn(Zn);
759
+ var ct = function(e, t) {
760
+ return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
752
761
  r.__proto__ = n;
753
762
  } || function(r, n) {
754
763
  for (var i in n)
755
764
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
756
- }, st(e, t);
765
+ }, ct(e, t);
757
766
  };
758
- function $e(e, t) {
767
+ function Ve(e, t) {
759
768
  if (typeof t != "function" && t !== null)
760
769
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
761
- st(e, t);
770
+ ct(e, t);
762
771
  function r() {
763
772
  this.constructor = e;
764
773
  }
@@ -774,7 +783,7 @@ var Z = function() {
774
783
  return t;
775
784
  }, Z.apply(this, arguments);
776
785
  };
777
- function Zn(e, t) {
786
+ function Qn(e, t) {
778
787
  var r = {};
779
788
  for (var n in e)
780
789
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -783,43 +792,43 @@ function Zn(e, t) {
783
792
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
784
793
  return r;
785
794
  }
786
- function Ye(e, t, r) {
795
+ function Ke(e, t, r) {
787
796
  if (r || arguments.length === 2)
788
797
  for (var n = 0, i = t.length, o; n < i; n++)
789
798
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
790
799
  return e.concat(o || Array.prototype.slice.call(t));
791
800
  }
792
- function Ke(e, t) {
793
- var r = t && t.cache ? t.cache : ri, n = t && t.serializer ? t.serializer : ei, i = t && t.strategy ? t.strategy : Yn;
801
+ function et(e, t) {
802
+ var r = t && t.cache ? t.cache : ii, n = t && t.serializer ? t.serializer : ri, i = t && t.strategy ? t.strategy : ei;
794
803
  return i(e, {
795
804
  cache: r,
796
805
  serializer: n
797
806
  });
798
807
  }
799
- function Jn(e) {
808
+ function Yn(e) {
800
809
  return e == null || typeof e == "number" || typeof e == "boolean";
801
810
  }
802
- function Qn(e, t, r, n) {
803
- var i = Jn(n) ? n : r(n), o = t.get(i);
811
+ function Kn(e, t, r, n) {
812
+ var i = Yn(n) ? n : r(n), o = t.get(i);
804
813
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
805
814
  }
806
- function lr(e, t, r) {
815
+ function cr(e, t, r) {
807
816
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
808
817
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
809
818
  }
810
- function cr(e, t, r, n, i) {
819
+ function ur(e, t, r, n, i) {
811
820
  return r.bind(t, e, n, i);
812
821
  }
813
- function Yn(e, t) {
814
- var r = e.length === 1 ? Qn : lr;
815
- return cr(e, this, r, t.cache.create(), t.serializer);
822
+ function ei(e, t) {
823
+ var r = e.length === 1 ? Kn : cr;
824
+ return ur(e, this, r, t.cache.create(), t.serializer);
816
825
  }
817
- function Kn(e, t) {
818
- return cr(e, this, lr, t.cache.create(), t.serializer);
826
+ function ti(e, t) {
827
+ return ur(e, this, cr, t.cache.create(), t.serializer);
819
828
  }
820
- var ei = function() {
829
+ var ri = function() {
821
830
  return JSON.stringify(arguments);
822
- }, ti = (
831
+ }, ni = (
823
832
  /** @class */
824
833
  function() {
825
834
  function e() {
@@ -831,21 +840,21 @@ var ei = function() {
831
840
  this.cache[t] = r;
832
841
  }, e;
833
842
  }()
834
- ), ri = {
843
+ ), ii = {
835
844
  create: function() {
836
- return new ti();
845
+ return new ni();
837
846
  }
838
- }, et = {
839
- variadic: Kn
840
- }, Ue = function() {
841
- return Ue = Object.assign || function(t) {
847
+ }, tt = {
848
+ variadic: ti
849
+ }, De = function() {
850
+ return De = Object.assign || function(t) {
842
851
  for (var r, n = 1, i = arguments.length; n < i; n++) {
843
852
  r = arguments[n];
844
853
  for (var o in r)
845
854
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
846
855
  }
847
856
  return t;
848
- }, Ue.apply(this, arguments);
857
+ }, De.apply(this, arguments);
849
858
  };
850
859
  var N;
851
860
  (function(e) {
@@ -859,43 +868,43 @@ var ue;
859
868
  (function(e) {
860
869
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
861
870
  })(ue || (ue = {}));
862
- function Mt(e) {
871
+ function At(e) {
863
872
  return e.type === P.literal;
864
873
  }
865
- function ni(e) {
874
+ function oi(e) {
866
875
  return e.type === P.argument;
867
876
  }
868
- function ur(e) {
877
+ function hr(e) {
869
878
  return e.type === P.number;
870
879
  }
871
- function hr(e) {
880
+ function dr(e) {
872
881
  return e.type === P.date;
873
882
  }
874
- function dr(e) {
883
+ function mr(e) {
875
884
  return e.type === P.time;
876
885
  }
877
- function mr(e) {
886
+ function fr(e) {
878
887
  return e.type === P.select;
879
888
  }
880
- function fr(e) {
889
+ function pr(e) {
881
890
  return e.type === P.plural;
882
891
  }
883
- function ii(e) {
892
+ function ai(e) {
884
893
  return e.type === P.pound;
885
894
  }
886
- function pr(e) {
895
+ function gr(e) {
887
896
  return e.type === P.tag;
888
897
  }
889
- function gr(e) {
898
+ function _r(e) {
890
899
  return !!(e && typeof e == "object" && e.type === ue.number);
891
900
  }
892
- function lt(e) {
901
+ function ut(e) {
893
902
  return !!(e && typeof e == "object" && e.type === ue.dateTime);
894
903
  }
895
- var _r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, oi = /(?:[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;
896
- function ai(e) {
904
+ var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[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;
905
+ function li(e) {
897
906
  var t = {};
898
- return e.replace(oi, function(r) {
907
+ return e.replace(si, function(r) {
899
908
  var n = r.length;
900
909
  switch (r[0]) {
901
910
  case "G":
@@ -994,11 +1003,11 @@ var B = function() {
994
1003
  return t;
995
1004
  }, B.apply(this, arguments);
996
1005
  };
997
- var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
998
- function li(e) {
1006
+ var ci = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1007
+ function ui(e) {
999
1008
  if (e.length === 0)
1000
1009
  throw new Error("Number skeleton cannot be empty");
1001
- for (var t = e.split(si).filter(function(m) {
1010
+ for (var t = e.split(ci).filter(function(m) {
1002
1011
  return m.length > 0;
1003
1012
  }), r = [], n = 0, i = t; n < i.length; n++) {
1004
1013
  var o = i[n], a = o.split("/");
@@ -1013,17 +1022,17 @@ function li(e) {
1013
1022
  }
1014
1023
  return r;
1015
1024
  }
1016
- function ci(e) {
1025
+ function hi(e) {
1017
1026
  return e.replace(/^(.*?)-/, "");
1018
1027
  }
1019
- var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
1020
- function At(e) {
1028
+ var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, di = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
1029
+ function Pt(e) {
1021
1030
  var t = {};
1022
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, n, i) {
1031
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
1023
1032
  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)), "";
1024
1033
  }), t;
1025
1034
  }
1026
- function br(e) {
1035
+ function kr(e) {
1027
1036
  switch (e) {
1028
1037
  case "sign-auto":
1029
1038
  return {
@@ -1063,7 +1072,7 @@ function br(e) {
1063
1072
  };
1064
1073
  }
1065
1074
  }
1066
- function hi(e) {
1075
+ function mi(e) {
1067
1076
  var t;
1068
1077
  if (e[0] === "E" && e[1] === "E" ? (t = {
1069
1078
  notation: "engineering"
@@ -1071,17 +1080,17 @@ function hi(e) {
1071
1080
  notation: "scientific"
1072
1081
  }, e = e.slice(1)), t) {
1073
1082
  var r = e.slice(0, 2);
1074
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
1083
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
1075
1084
  throw new Error("Malformed concise eng/scientific notation");
1076
1085
  t.minimumIntegerDigits = e.length;
1077
1086
  }
1078
1087
  return t;
1079
1088
  }
1080
- function Ht(e) {
1081
- var t = {}, r = br(e);
1089
+ function Bt(e) {
1090
+ var t = {}, r = kr(e);
1082
1091
  return r || t;
1083
1092
  }
1084
- function di(e) {
1093
+ function fi(e) {
1085
1094
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1086
1095
  var i = n[r];
1087
1096
  switch (i.stem) {
@@ -1105,7 +1114,7 @@ function di(e) {
1105
1114
  continue;
1106
1115
  case "measure-unit":
1107
1116
  case "unit":
1108
- t.style = "unit", t.unit = ci(i.options[0]);
1117
+ t.style = "unit", t.unit = hi(i.options[0]);
1109
1118
  continue;
1110
1119
  case "compact-short":
1111
1120
  case "K":
@@ -1117,12 +1126,12 @@ function di(e) {
1117
1126
  continue;
1118
1127
  case "scientific":
1119
1128
  t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1120
- return B(B({}, c), Ht(l));
1129
+ return B(B({}, c), Bt(l));
1121
1130
  }, {}));
1122
1131
  continue;
1123
1132
  case "engineering":
1124
1133
  t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1125
- return B(B({}, c), Ht(l));
1134
+ return B(B({}, c), Bt(l));
1126
1135
  }, {}));
1127
1136
  continue;
1128
1137
  case "notation-simple":
@@ -1167,7 +1176,7 @@ function di(e) {
1167
1176
  case "integer-width":
1168
1177
  if (i.options.length > 1)
1169
1178
  throw new RangeError("integer-width stems only accept a single optional option");
1170
- i.options[0].replace(ui, function(c, l, u, d, m, y) {
1179
+ i.options[0].replace(di, function(c, l, u, d, m, y) {
1171
1180
  if (l)
1172
1181
  t.minimumIntegerDigits = u.length;
1173
1182
  else {
@@ -1180,32 +1189,32 @@ function di(e) {
1180
1189
  });
1181
1190
  continue;
1182
1191
  }
1183
- if (vr.test(i.stem)) {
1192
+ if (br.test(i.stem)) {
1184
1193
  t.minimumIntegerDigits = i.stem.length;
1185
1194
  continue;
1186
1195
  }
1187
- if (Nt.test(i.stem)) {
1196
+ if (Ht.test(i.stem)) {
1188
1197
  if (i.options.length > 1)
1189
1198
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1190
- i.stem.replace(Nt, function(c, l, u, d, m, y) {
1199
+ i.stem.replace(Ht, function(c, l, u, d, m, y) {
1191
1200
  return u === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1192
1201
  });
1193
1202
  var o = i.options[0];
1194
- o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), At(o)));
1203
+ o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Pt(o)));
1195
1204
  continue;
1196
1205
  }
1197
- if (yr.test(i.stem)) {
1198
- t = B(B({}, t), At(i.stem));
1206
+ if (vr.test(i.stem)) {
1207
+ t = B(B({}, t), Pt(i.stem));
1199
1208
  continue;
1200
1209
  }
1201
- var a = br(i.stem);
1210
+ var a = kr(i.stem);
1202
1211
  a && (t = B(B({}, t), a));
1203
- var s = hi(i.stem);
1212
+ var s = mi(i.stem);
1204
1213
  s && (t = B(B({}, t), s));
1205
1214
  }
1206
1215
  return t;
1207
1216
  }
1208
- var ze = {
1217
+ var je = {
1209
1218
  "001": [
1210
1219
  "H",
1211
1220
  "h"
@@ -2620,13 +2629,13 @@ var ze = {
2620
2629
  "h"
2621
2630
  ]
2622
2631
  };
2623
- function mi(e, t) {
2632
+ function pi(e, t) {
2624
2633
  for (var r = "", n = 0; n < e.length; n++) {
2625
2634
  var i = e.charAt(n);
2626
2635
  if (i === "j") {
2627
2636
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2628
2637
  o++, n++;
2629
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = fi(t);
2638
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = gi(t);
2630
2639
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2631
2640
  r += c;
2632
2641
  for (; a-- > 0; )
@@ -2636,7 +2645,7 @@ function mi(e, t) {
2636
2645
  }
2637
2646
  return r;
2638
2647
  }
2639
- function fi(e) {
2648
+ function gi(e) {
2640
2649
  var t = e.hourCycle;
2641
2650
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2642
2651
  e.hourCycles && // @ts-ignore
@@ -2655,23 +2664,23 @@ function fi(e) {
2655
2664
  }
2656
2665
  var r = e.language, n;
2657
2666
  r !== "root" && (n = e.maximize().region);
2658
- var i = ze[n || ""] || ze[r || ""] || ze["".concat(r, "-001")] || ze["001"];
2667
+ var i = je[n || ""] || je[r || ""] || je["".concat(r, "-001")] || je["001"];
2659
2668
  return i[0];
2660
2669
  }
2661
- var tt, pi = new RegExp("^".concat(_r.source, "*")), gi = new RegExp("".concat(_r.source, "*$"));
2670
+ var rt, _i = new RegExp("^".concat(yr.source, "*")), yi = new RegExp("".concat(yr.source, "*$"));
2662
2671
  function A(e, t) {
2663
2672
  return { start: e, end: t };
2664
2673
  }
2665
- var _i = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, vi = !!Object.fromEntries, bi = !!String.prototype.codePointAt, ki = !!String.prototype.trimStart, Ei = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Si = Ci ? Number.isSafeInteger : function(e) {
2674
+ var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, ki = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Si = !!String.prototype.trimEnd, xi = !!Number.isSafeInteger, wi = xi ? Number.isSafeInteger : function(e) {
2666
2675
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2667
- }, ct = !0;
2676
+ }, ht = !0;
2668
2677
  try {
2669
- var xi = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2670
- ct = ((tt = xi.exec("a")) === null || tt === void 0 ? void 0 : tt[0]) === "a";
2678
+ var Ti = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2679
+ ht = ((rt = Ti.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
2671
2680
  } catch (e) {
2672
- ct = !1;
2681
+ ht = !1;
2673
2682
  }
2674
- var Pt = _i ? (
2683
+ var Ot = vi ? (
2675
2684
  // Native
2676
2685
  function(t, r, n) {
2677
2686
  return t.startsWith(r, n);
@@ -2681,7 +2690,7 @@ var Pt = _i ? (
2681
2690
  function(t, r, n) {
2682
2691
  return t.slice(n, n + r.length) === r;
2683
2692
  }
2684
- ), ut = yi ? String.fromCodePoint : (
2693
+ ), dt = bi ? String.fromCodePoint : (
2685
2694
  // IE11
2686
2695
  function() {
2687
2696
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2693,9 +2702,9 @@ var Pt = _i ? (
2693
2702
  }
2694
2703
  return n;
2695
2704
  }
2696
- ), Bt = (
2705
+ ), zt = (
2697
2706
  // native
2698
- vi ? Object.fromEntries : (
2707
+ ki ? Object.fromEntries : (
2699
2708
  // Ponyfill
2700
2709
  function(t) {
2701
2710
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2705,7 +2714,7 @@ var Pt = _i ? (
2705
2714
  return r;
2706
2715
  }
2707
2716
  )
2708
- ), kr = bi ? (
2717
+ ), Er = Ei ? (
2709
2718
  // Native
2710
2719
  function(t, r) {
2711
2720
  return t.codePointAt(r);
@@ -2719,7 +2728,7 @@ var Pt = _i ? (
2719
2728
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2720
2729
  }
2721
2730
  }
2722
- ), wi = ki ? (
2731
+ ), Mi = Ci ? (
2723
2732
  // Native
2724
2733
  function(t) {
2725
2734
  return t.trimStart();
@@ -2727,9 +2736,9 @@ var Pt = _i ? (
2727
2736
  ) : (
2728
2737
  // Ponyfill
2729
2738
  function(t) {
2730
- return t.replace(pi, "");
2739
+ return t.replace(_i, "");
2731
2740
  }
2732
- ), Ti = Ei ? (
2741
+ ), Ni = Si ? (
2733
2742
  // Native
2734
2743
  function(t) {
2735
2744
  return t.trimEnd();
@@ -2737,32 +2746,32 @@ var Pt = _i ? (
2737
2746
  ) : (
2738
2747
  // Ponyfill
2739
2748
  function(t) {
2740
- return t.replace(gi, "");
2749
+ return t.replace(yi, "");
2741
2750
  }
2742
2751
  );
2743
- function Er(e, t) {
2752
+ function Cr(e, t) {
2744
2753
  return new RegExp(e, t);
2745
2754
  }
2746
- var ht;
2747
- if (ct) {
2748
- var Ot = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2749
- ht = function(t, r) {
2755
+ var mt;
2756
+ if (ht) {
2757
+ var jt = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2758
+ mt = function(t, r) {
2750
2759
  var n;
2751
- Ot.lastIndex = r;
2752
- var i = Ot.exec(t);
2760
+ jt.lastIndex = r;
2761
+ var i = jt.exec(t);
2753
2762
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2754
2763
  };
2755
2764
  } else
2756
- ht = function(t, r) {
2765
+ mt = function(t, r) {
2757
2766
  for (var n = []; ; ) {
2758
- var i = kr(t, r);
2759
- if (i === void 0 || Cr(i) || Hi(i))
2767
+ var i = Er(t, r);
2768
+ if (i === void 0 || Sr(i) || Bi(i))
2760
2769
  break;
2761
2770
  n.push(i), r += i >= 65536 ? 2 : 1;
2762
2771
  }
2763
- return ut.apply(void 0, n);
2772
+ return dt.apply(void 0, n);
2764
2773
  };
2765
- var Mi = (
2774
+ var Ai = (
2766
2775
  /** @class */
2767
2776
  function() {
2768
2777
  function e(t, r) {
@@ -2793,7 +2802,7 @@ var Mi = (
2793
2802
  if (n)
2794
2803
  break;
2795
2804
  return this.error(N.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
2796
- } else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
2805
+ } else if (o === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
2797
2806
  var a = this.parseTag(t, r);
2798
2807
  if (a.err)
2799
2808
  return a;
@@ -2826,7 +2835,7 @@ var Mi = (
2826
2835
  return o;
2827
2836
  var a = o.val, s = this.clonePosition();
2828
2837
  if (this.bumpIf("</")) {
2829
- if (this.isEOF() || !dt(this.char()))
2838
+ if (this.isEOF() || !ft(this.char()))
2830
2839
  return this.error(N.INVALID_TAG, A(s, this.clonePosition()));
2831
2840
  var c = this.clonePosition(), l = this.parseTagName();
2832
2841
  return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, A(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -2844,7 +2853,7 @@ var Mi = (
2844
2853
  return this.error(N.INVALID_TAG, A(n, this.clonePosition()));
2845
2854
  }, e.prototype.parseTagName = function() {
2846
2855
  var t = this.offset();
2847
- for (this.bump(); !this.isEOF() && Ai(this.char()); )
2856
+ for (this.bump(); !this.isEOF() && Pi(this.char()); )
2848
2857
  this.bump();
2849
2858
  return this.message.slice(t, this.offset());
2850
2859
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2873,7 +2882,7 @@ var Mi = (
2873
2882
  };
2874
2883
  }, e.prototype.tryParseLeftAngleBracket = function() {
2875
2884
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2876
- !Ni(this.peek() || 0)) ? (this.bump(), "<") : null;
2885
+ !Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2877
2886
  }, e.prototype.tryParseQuote = function(t) {
2878
2887
  if (this.isEOF() || this.char() !== 39)
2879
2888
  return null;
@@ -2907,12 +2916,12 @@ var Mi = (
2907
2916
  r.push(n);
2908
2917
  this.bump();
2909
2918
  }
2910
- return ut.apply(void 0, r);
2919
+ return dt.apply(void 0, r);
2911
2920
  }, e.prototype.tryParseUnquoted = function(t, r) {
2912
2921
  if (this.isEOF())
2913
2922
  return null;
2914
2923
  var n = this.char();
2915
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ut(n));
2924
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), dt(n));
2916
2925
  }, e.prototype.parseArgument = function(t, r) {
2917
2926
  var n = this.clonePosition();
2918
2927
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2941,7 +2950,7 @@ var Mi = (
2941
2950
  return this.error(N.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
2942
2951
  }
2943
2952
  }, e.prototype.parseIdentifierIfPossible = function() {
2944
- var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
2953
+ var t = this.clonePosition(), r = this.offset(), n = mt(this.message, r), i = r + n.length;
2945
2954
  this.bumpTo(i);
2946
2955
  var o = this.clonePosition(), a = A(t, o);
2947
2956
  return { value: n, location: a };
@@ -2960,7 +2969,7 @@ var Mi = (
2960
2969
  var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2961
2970
  if (d.err)
2962
2971
  return d;
2963
- var m = Ti(d.val);
2972
+ var m = Ni(d.val);
2964
2973
  if (m.length === 0)
2965
2974
  return this.error(N.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
2966
2975
  var y = A(u, this.clonePosition());
@@ -2970,24 +2979,24 @@ var Mi = (
2970
2979
  if (g.err)
2971
2980
  return g;
2972
2981
  var p = A(i, this.clonePosition());
2973
- if (l && Pt(l == null ? void 0 : l.style, "::", 0)) {
2974
- var S = wi(l.style.slice(2));
2982
+ if (l && Ot(l == null ? void 0 : l.style, "::", 0)) {
2983
+ var C = Mi(l.style.slice(2));
2975
2984
  if (s === "number") {
2976
- var d = this.parseNumberSkeletonFromString(S, l.styleLocation);
2985
+ var d = this.parseNumberSkeletonFromString(C, l.styleLocation);
2977
2986
  return d.err ? d : {
2978
2987
  val: { type: P.number, value: n, location: p, style: d.val },
2979
2988
  err: null
2980
2989
  };
2981
2990
  } else {
2982
- if (S.length === 0)
2991
+ if (C.length === 0)
2983
2992
  return this.error(N.EXPECT_DATE_TIME_SKELETON, p);
2984
- var _ = S;
2985
- this.locale && (_ = mi(S, this.locale));
2993
+ var _ = C;
2994
+ this.locale && (_ = pi(C, this.locale));
2986
2995
  var m = {
2987
2996
  type: ue.dateTime,
2988
2997
  pattern: _,
2989
2998
  location: l.styleLocation,
2990
- parsedOptions: this.shouldParseSkeletons ? ai(_) : {}
2999
+ parsedOptions: this.shouldParseSkeletons ? li(_) : {}
2991
3000
  }, v = s === "date" ? P.date : P.time;
2992
3001
  return {
2993
3002
  val: { type: v, value: n, location: p, style: m },
@@ -3008,9 +3017,9 @@ var Mi = (
3008
3017
  case "plural":
3009
3018
  case "selectordinal":
3010
3019
  case "select": {
3011
- var C = this.clonePosition();
3020
+ var x = this.clonePosition();
3012
3021
  if (this.bumpSpace(), !this.bumpIf(","))
3013
- return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, A(C, Ue({}, C)));
3022
+ return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, A(x, De({}, x)));
3014
3023
  this.bumpSpace();
3015
3024
  var H = this.parseIdentifierIfPossible(), E = 0;
3016
3025
  if (s !== "select" && H.value === "offset") {
@@ -3022,29 +3031,29 @@ var Mi = (
3022
3031
  return d;
3023
3032
  this.bumpSpace(), H = this.parseIdentifierIfPossible(), E = d.val;
3024
3033
  }
3025
- var z = this.tryParsePluralOrSelectOptions(t, s, r, H);
3026
- if (z.err)
3027
- return z;
3034
+ var j = this.tryParsePluralOrSelectOptions(t, s, r, H);
3035
+ if (j.err)
3036
+ return j;
3028
3037
  var g = this.tryParseArgumentClose(i);
3029
3038
  if (g.err)
3030
3039
  return g;
3031
- var J = A(i, this.clonePosition());
3040
+ var te = A(i, this.clonePosition());
3032
3041
  return s === "select" ? {
3033
3042
  val: {
3034
3043
  type: P.select,
3035
3044
  value: n,
3036
- options: Bt(z.val),
3037
- location: J
3045
+ options: zt(j.val),
3046
+ location: te
3038
3047
  },
3039
3048
  err: null
3040
3049
  } : {
3041
3050
  val: {
3042
3051
  type: P.plural,
3043
3052
  value: n,
3044
- options: Bt(z.val),
3053
+ options: zt(j.val),
3045
3054
  offset: E,
3046
3055
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3047
- location: J
3056
+ location: te
3048
3057
  },
3049
3058
  err: null
3050
3059
  };
@@ -3092,7 +3101,7 @@ var Mi = (
3092
3101
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3093
3102
  var n = [];
3094
3103
  try {
3095
- n = li(t);
3104
+ n = ui(t);
3096
3105
  } catch (i) {
3097
3106
  return this.error(N.INVALID_NUMBER_SKELETON, r);
3098
3107
  }
@@ -3101,7 +3110,7 @@ var Mi = (
3101
3110
  type: ue.number,
3102
3111
  tokens: n,
3103
3112
  location: r,
3104
- parsedOptions: this.shouldParseSkeletons ? di(n) : {}
3113
+ parsedOptions: this.shouldParseSkeletons ? fi(n) : {}
3105
3114
  },
3106
3115
  err: null
3107
3116
  };
@@ -3149,7 +3158,7 @@ var Mi = (
3149
3158
  break;
3150
3159
  }
3151
3160
  var c = A(i, this.clonePosition());
3152
- return o ? (a *= n, Si(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
3161
+ return o ? (a *= n, wi(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
3153
3162
  }, e.prototype.offset = function() {
3154
3163
  return this.position.offset;
3155
3164
  }, e.prototype.isEOF = function() {
@@ -3164,7 +3173,7 @@ var Mi = (
3164
3173
  var t = this.position.offset;
3165
3174
  if (t >= this.message.length)
3166
3175
  throw Error("out of bound");
3167
- var r = kr(this.message, t);
3176
+ var r = Er(this.message, t);
3168
3177
  if (r === void 0)
3169
3178
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3170
3179
  return r;
@@ -3183,7 +3192,7 @@ var Mi = (
3183
3192
  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);
3184
3193
  }
3185
3194
  }, e.prototype.bumpIf = function(t) {
3186
- if (Pt(this.message, t, this.offset())) {
3195
+ if (Ot(this.message, t, this.offset())) {
3187
3196
  for (var r = 0; r < t.length; r++)
3188
3197
  this.bump();
3189
3198
  return !0;
@@ -3205,7 +3214,7 @@ var Mi = (
3205
3214
  break;
3206
3215
  }
3207
3216
  }, e.prototype.bumpSpace = function() {
3208
- for (; !this.isEOF() && Cr(this.char()); )
3217
+ for (; !this.isEOF() && Sr(this.char()); )
3209
3218
  this.bump();
3210
3219
  }, e.prototype.peek = function() {
3211
3220
  if (this.isEOF())
@@ -3215,47 +3224,47 @@ var Mi = (
3215
3224
  }, e;
3216
3225
  }()
3217
3226
  );
3218
- function dt(e) {
3227
+ function ft(e) {
3219
3228
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3220
3229
  }
3221
- function Ni(e) {
3222
- return dt(e) || e === 47;
3230
+ function Hi(e) {
3231
+ return ft(e) || e === 47;
3223
3232
  }
3224
- function Ai(e) {
3233
+ function Pi(e) {
3225
3234
  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;
3226
3235
  }
3227
- function Cr(e) {
3236
+ function Sr(e) {
3228
3237
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3229
3238
  }
3230
- function Hi(e) {
3239
+ function Bi(e) {
3231
3240
  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;
3232
3241
  }
3233
- function mt(e) {
3242
+ function pt(e) {
3234
3243
  e.forEach(function(t) {
3235
- if (delete t.location, mr(t) || fr(t))
3244
+ if (delete t.location, fr(t) || pr(t))
3236
3245
  for (var r in t.options)
3237
- delete t.options[r].location, mt(t.options[r].value);
3246
+ delete t.options[r].location, pt(t.options[r].value);
3238
3247
  else
3239
- ur(t) && gr(t.style) || (hr(t) || dr(t)) && lt(t.style) ? delete t.style.location : pr(t) && mt(t.children);
3248
+ hr(t) && _r(t.style) || (dr(t) || mr(t)) && ut(t.style) ? delete t.style.location : gr(t) && pt(t.children);
3240
3249
  });
3241
3250
  }
3242
- function Pi(e, t) {
3243
- t === void 0 && (t = {}), t = Ue({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3244
- var r = new Mi(e, t).parse();
3251
+ function Oi(e, t) {
3252
+ t === void 0 && (t = {}), t = De({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3253
+ var r = new Ai(e, t).parse();
3245
3254
  if (r.err) {
3246
3255
  var n = SyntaxError(N[r.err.kind]);
3247
3256
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3248
3257
  }
3249
- return t != null && t.captureLocation || mt(r.val), r.val;
3258
+ return t != null && t.captureLocation || pt(r.val), r.val;
3250
3259
  }
3251
3260
  var he;
3252
3261
  (function(e) {
3253
3262
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3254
3263
  })(he || (he = {}));
3255
- var Ve = (
3264
+ var Xe = (
3256
3265
  /** @class */
3257
3266
  function(e) {
3258
- $e(t, e);
3267
+ Ve(t, e);
3259
3268
  function t(r, n, i) {
3260
3269
  var o = e.call(this, r) || this;
3261
3270
  return o.code = n, o.originalMessage = i, o;
@@ -3264,48 +3273,48 @@ var Ve = (
3264
3273
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3265
3274
  }, t;
3266
3275
  }(Error)
3267
- ), zt = (
3276
+ ), Lt = (
3268
3277
  /** @class */
3269
3278
  function(e) {
3270
- $e(t, e);
3279
+ Ve(t, e);
3271
3280
  function t(r, n, i, o) {
3272
3281
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
3273
3282
  }
3274
3283
  return t;
3275
- }(Ve)
3276
- ), Bi = (
3284
+ }(Xe)
3285
+ ), zi = (
3277
3286
  /** @class */
3278
3287
  function(e) {
3279
- $e(t, e);
3288
+ Ve(t, e);
3280
3289
  function t(r, n, i) {
3281
3290
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
3282
3291
  }
3283
3292
  return t;
3284
- }(Ve)
3285
- ), Oi = (
3293
+ }(Xe)
3294
+ ), ji = (
3286
3295
  /** @class */
3287
3296
  function(e) {
3288
- $e(t, e);
3297
+ Ve(t, e);
3289
3298
  function t(r, n) {
3290
3299
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
3291
3300
  }
3292
3301
  return t;
3293
- }(Ve)
3302
+ }(Xe)
3294
3303
  ), G;
3295
3304
  (function(e) {
3296
3305
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3297
3306
  })(G || (G = {}));
3298
- function zi(e) {
3307
+ function Li(e) {
3299
3308
  return e.length < 2 ? e : e.reduce(function(t, r) {
3300
3309
  var n = t[t.length - 1];
3301
3310
  return !n || n.type !== G.literal || r.type !== G.literal ? t.push(r) : n.value += r.value, t;
3302
3311
  }, []);
3303
3312
  }
3304
- function Li(e) {
3313
+ function Ii(e) {
3305
3314
  return typeof e == "function";
3306
3315
  }
3307
- function je(e, t, r, n, i, o, a) {
3308
- if (e.length === 1 && Mt(e[0]))
3316
+ function Ie(e, t, r, n, i, o, a) {
3317
+ if (e.length === 1 && At(e[0]))
3309
3318
  return [
3310
3319
  {
3311
3320
  type: G.literal,
@@ -3314,14 +3323,14 @@ function je(e, t, r, n, i, o, a) {
3314
3323
  ];
3315
3324
  for (var s = [], c = 0, l = e; c < l.length; c++) {
3316
3325
  var u = l[c];
3317
- if (Mt(u)) {
3326
+ if (At(u)) {
3318
3327
  s.push({
3319
3328
  type: G.literal,
3320
3329
  value: u.value
3321
3330
  });
3322
3331
  continue;
3323
3332
  }
3324
- if (ii(u)) {
3333
+ if (ai(u)) {
3325
3334
  typeof o == "number" && s.push({
3326
3335
  type: G.literal,
3327
3336
  value: r.getNumberFormat(t).format(o)
@@ -3330,44 +3339,44 @@ function je(e, t, r, n, i, o, a) {
3330
3339
  }
3331
3340
  var d = u.value;
3332
3341
  if (!(i && d in i))
3333
- throw new Oi(d, a);
3342
+ throw new ji(d, a);
3334
3343
  var m = i[d];
3335
- if (ni(u)) {
3344
+ if (oi(u)) {
3336
3345
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3337
3346
  type: typeof m == "string" ? G.literal : G.object,
3338
3347
  value: m
3339
3348
  });
3340
3349
  continue;
3341
3350
  }
3342
- if (hr(u)) {
3343
- var y = typeof u.style == "string" ? n.date[u.style] : lt(u.style) ? u.style.parsedOptions : void 0;
3351
+ if (dr(u)) {
3352
+ var y = typeof u.style == "string" ? n.date[u.style] : ut(u.style) ? u.style.parsedOptions : void 0;
3344
3353
  s.push({
3345
3354
  type: G.literal,
3346
3355
  value: r.getDateTimeFormat(t, y).format(m)
3347
3356
  });
3348
3357
  continue;
3349
3358
  }
3350
- if (dr(u)) {
3351
- var y = typeof u.style == "string" ? n.time[u.style] : lt(u.style) ? u.style.parsedOptions : n.time.medium;
3359
+ if (mr(u)) {
3360
+ var y = typeof u.style == "string" ? n.time[u.style] : ut(u.style) ? u.style.parsedOptions : n.time.medium;
3352
3361
  s.push({
3353
3362
  type: G.literal,
3354
3363
  value: r.getDateTimeFormat(t, y).format(m)
3355
3364
  });
3356
3365
  continue;
3357
3366
  }
3358
- if (ur(u)) {
3359
- var y = typeof u.style == "string" ? n.number[u.style] : gr(u.style) ? u.style.parsedOptions : void 0;
3367
+ if (hr(u)) {
3368
+ var y = typeof u.style == "string" ? n.number[u.style] : _r(u.style) ? u.style.parsedOptions : void 0;
3360
3369
  y && y.scale && (m = m * (y.scale || 1)), s.push({
3361
3370
  type: G.literal,
3362
3371
  value: r.getNumberFormat(t, y).format(m)
3363
3372
  });
3364
3373
  continue;
3365
3374
  }
3366
- if (pr(u)) {
3367
- var g = u.children, p = u.value, S = i[p];
3368
- if (!Li(S))
3369
- throw new Bi(p, "function", a);
3370
- var _ = je(g, t, r, n, i, o), v = S(_.map(function(E) {
3375
+ if (gr(u)) {
3376
+ var g = u.children, p = u.value, C = i[p];
3377
+ if (!Ii(C))
3378
+ throw new zi(p, "function", a);
3379
+ var _ = Ie(g, t, r, n, i, o), v = C(_.map(function(E) {
3371
3380
  return E.value;
3372
3381
  }));
3373
3382
  Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
@@ -3377,42 +3386,42 @@ function je(e, t, r, n, i, o, a) {
3377
3386
  };
3378
3387
  }));
3379
3388
  }
3380
- if (mr(u)) {
3381
- var C = u.options[m] || u.options.other;
3382
- if (!C)
3383
- throw new zt(u.value, m, Object.keys(u.options), a);
3384
- s.push.apply(s, je(C.value, t, r, n, i));
3389
+ if (fr(u)) {
3390
+ var x = u.options[m] || u.options.other;
3391
+ if (!x)
3392
+ throw new Lt(u.value, m, Object.keys(u.options), a);
3393
+ s.push.apply(s, Ie(x.value, t, r, n, i));
3385
3394
  continue;
3386
3395
  }
3387
- if (fr(u)) {
3388
- var C = u.options["=".concat(m)];
3389
- if (!C) {
3396
+ if (pr(u)) {
3397
+ var x = u.options["=".concat(m)];
3398
+ if (!x) {
3390
3399
  if (!Intl.PluralRules)
3391
- throw new Ve(`Intl.PluralRules is not available in this environment.
3400
+ throw new Xe(`Intl.PluralRules is not available in this environment.
3392
3401
  Try polyfilling it using "@formatjs/intl-pluralrules"
3393
3402
  `, he.MISSING_INTL_API, a);
3394
3403
  var H = r.getPluralRules(t, { type: u.pluralType }).select(m - (u.offset || 0));
3395
- C = u.options[H] || u.options.other;
3404
+ x = u.options[H] || u.options.other;
3396
3405
  }
3397
- if (!C)
3398
- throw new zt(u.value, m, Object.keys(u.options), a);
3399
- s.push.apply(s, je(C.value, t, r, n, i, m - (u.offset || 0)));
3406
+ if (!x)
3407
+ throw new Lt(u.value, m, Object.keys(u.options), a);
3408
+ s.push.apply(s, Ie(x.value, t, r, n, i, m - (u.offset || 0)));
3400
3409
  continue;
3401
3410
  }
3402
3411
  }
3403
- return zi(s);
3412
+ return Li(s);
3404
3413
  }
3405
- function ji(e, t) {
3414
+ function Ri(e, t) {
3406
3415
  return t ? Z(Z(Z({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3407
3416
  return r[n] = Z(Z({}, e[n]), t[n] || {}), r;
3408
3417
  }, {})) : e;
3409
3418
  }
3410
- function Ii(e, t) {
3419
+ function Ui(e, t) {
3411
3420
  return t ? Object.keys(e).reduce(function(r, n) {
3412
- return r[n] = ji(e[n], t[n]), r;
3421
+ return r[n] = Ri(e[n], t[n]), r;
3413
3422
  }, Z({}, e)) : e;
3414
3423
  }
3415
- function rt(e) {
3424
+ function nt(e) {
3416
3425
  return {
3417
3426
  create: function() {
3418
3427
  return {
@@ -3426,39 +3435,39 @@ function rt(e) {
3426
3435
  }
3427
3436
  };
3428
3437
  }
3429
- function Ri(e) {
3438
+ function Di(e) {
3430
3439
  return e === void 0 && (e = {
3431
3440
  number: {},
3432
3441
  dateTime: {},
3433
3442
  pluralRules: {}
3434
3443
  }), {
3435
- getNumberFormat: Ke(function() {
3444
+ getNumberFormat: et(function() {
3436
3445
  for (var t, r = [], n = 0; n < arguments.length; n++)
3437
3446
  r[n] = arguments[n];
3438
- return new ((t = Intl.NumberFormat).bind.apply(t, Ye([void 0], r, !1)))();
3447
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ke([void 0], r, !1)))();
3439
3448
  }, {
3440
- cache: rt(e.number),
3441
- strategy: et.variadic
3449
+ cache: nt(e.number),
3450
+ strategy: tt.variadic
3442
3451
  }),
3443
- getDateTimeFormat: Ke(function() {
3452
+ getDateTimeFormat: et(function() {
3444
3453
  for (var t, r = [], n = 0; n < arguments.length; n++)
3445
3454
  r[n] = arguments[n];
3446
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ye([void 0], r, !1)))();
3455
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ke([void 0], r, !1)))();
3447
3456
  }, {
3448
- cache: rt(e.dateTime),
3449
- strategy: et.variadic
3457
+ cache: nt(e.dateTime),
3458
+ strategy: tt.variadic
3450
3459
  }),
3451
- getPluralRules: Ke(function() {
3460
+ getPluralRules: et(function() {
3452
3461
  for (var t, r = [], n = 0; n < arguments.length; n++)
3453
3462
  r[n] = arguments[n];
3454
- return new ((t = Intl.PluralRules).bind.apply(t, Ye([void 0], r, !1)))();
3463
+ return new ((t = Intl.PluralRules).bind.apply(t, Ke([void 0], r, !1)))();
3455
3464
  }, {
3456
- cache: rt(e.pluralRules),
3457
- strategy: et.variadic
3465
+ cache: nt(e.pluralRules),
3466
+ strategy: tt.variadic
3458
3467
  })
3459
3468
  };
3460
3469
  }
3461
- var Ui = (
3470
+ var Gi = (
3462
3471
  /** @class */
3463
3472
  function() {
3464
3473
  function e(t, r, n, i) {
@@ -3477,7 +3486,7 @@ var Ui = (
3477
3486
  }, []);
3478
3487
  return u.length <= 1 ? u[0] || "" : u;
3479
3488
  }, this.formatToParts = function(c) {
3480
- return je(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3489
+ return Ie(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3481
3490
  }, this.resolvedOptions = function() {
3482
3491
  var c;
3483
3492
  return {
@@ -3489,13 +3498,13 @@ var Ui = (
3489
3498
  if (this.message = t, !e.__parse)
3490
3499
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3491
3500
  var a = i || {};
3492
- var s = Zn(a, ["formatters"]);
3501
+ var s = Qn(a, ["formatters"]);
3493
3502
  this.ast = e.__parse(t, Z(Z({}, s), { locale: this.resolvedLocale }));
3494
3503
  } else
3495
3504
  this.ast = t;
3496
3505
  if (!Array.isArray(this.ast))
3497
3506
  throw new TypeError("A message must be provided as a String or AST.");
3498
- this.formats = Ii(e.formats, n), this.formatters = i && i.formatters || Ri(this.formatterCache);
3507
+ this.formats = Ui(e.formats, n), this.formatters = i && i.formatters || Di(this.formatterCache);
3499
3508
  }
3500
3509
  return Object.defineProperty(e, "defaultLocale", {
3501
3510
  get: function() {
@@ -3508,7 +3517,7 @@ var Ui = (
3508
3517
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3509
3518
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3510
3519
  }
3511
- }, e.__parse = Pi, e.formats = {
3520
+ }, e.__parse = Oi, e.formats = {
3512
3521
  number: {
3513
3522
  integer: {
3514
3523
  maximumFractionDigits: 0
@@ -3569,7 +3578,7 @@ var Ui = (
3569
3578
  }, e;
3570
3579
  }()
3571
3580
  );
3572
- function Di(e, t) {
3581
+ function Fi(e, t) {
3573
3582
  if (t == null)
3574
3583
  return;
3575
3584
  if (t in e)
@@ -3590,92 +3599,92 @@ function Di(e, t) {
3590
3599
  n = void 0;
3591
3600
  return n;
3592
3601
  }
3593
- const Y = {}, Gi = (e, t, r) => r && (t in Y || (Y[t] = {}), e in Y[t] || (Y[t][e] = r), r), Sr = (e, t) => {
3602
+ const Q = {}, $i = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), xr = (e, t) => {
3594
3603
  if (t == null)
3595
3604
  return;
3596
- if (t in Y && e in Y[t])
3597
- return Y[t][e];
3598
- const r = Xe(t);
3605
+ if (t in Q && e in Q[t])
3606
+ return Q[t][e];
3607
+ const r = qe(t);
3599
3608
  for (let n = 0; n < r.length; n++) {
3600
- const i = r[n], o = $i(i, e);
3609
+ const i = r[n], o = Xi(i, e);
3601
3610
  if (o)
3602
- return Gi(e, t, o);
3611
+ return $i(e, t, o);
3603
3612
  }
3604
3613
  };
3605
- let vt;
3606
- const Me = Fe({});
3607
- function Fi(e) {
3608
- return vt[e] || null;
3614
+ let kt;
3615
+ const Ne = $e({});
3616
+ function Vi(e) {
3617
+ return kt[e] || null;
3609
3618
  }
3610
- function xr(e) {
3611
- return e in vt;
3619
+ function wr(e) {
3620
+ return e in kt;
3612
3621
  }
3613
- function $i(e, t) {
3614
- if (!xr(e))
3622
+ function Xi(e, t) {
3623
+ if (!wr(e))
3615
3624
  return null;
3616
- const r = Fi(e);
3617
- return Di(r, t);
3625
+ const r = Vi(e);
3626
+ return Fi(r, t);
3618
3627
  }
3619
- function Vi(e) {
3628
+ function qi(e) {
3620
3629
  if (e == null)
3621
3630
  return;
3622
- const t = Xe(e);
3631
+ const t = qe(e);
3623
3632
  for (let r = 0; r < t.length; r++) {
3624
3633
  const n = t[r];
3625
- if (xr(n))
3634
+ if (wr(n))
3626
3635
  return n;
3627
3636
  }
3628
3637
  }
3629
- function wr(e, ...t) {
3630
- delete Y[e], Me.update((r) => (r[e] = Wn.all([r[e] || {}, ...t]), r));
3638
+ function Tr(e, ...t) {
3639
+ delete Q[e], Ne.update((r) => (r[e] = Jn.all([r[e] || {}, ...t]), r));
3631
3640
  }
3632
3641
  fe(
3633
- [Me],
3642
+ [Ne],
3634
3643
  ([e]) => Object.keys(e)
3635
3644
  );
3636
- Me.subscribe((e) => vt = e);
3637
- const Ie = {};
3638
- function Xi(e, t) {
3639
- Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
3645
+ Ne.subscribe((e) => kt = e);
3646
+ const Re = {};
3647
+ function Wi(e, t) {
3648
+ Re[e].delete(t), Re[e].size === 0 && delete Re[e];
3640
3649
  }
3641
- function Tr(e) {
3642
- return Ie[e];
3650
+ function Mr(e) {
3651
+ return Re[e];
3643
3652
  }
3644
- function qi(e) {
3645
- return Xe(e).map((t) => {
3646
- const r = Tr(t);
3653
+ function Zi(e) {
3654
+ return qe(e).map((t) => {
3655
+ const r = Mr(t);
3647
3656
  return [t, r ? [...r] : []];
3648
3657
  }).filter(([, t]) => t.length > 0);
3649
3658
  }
3650
- function ft(e) {
3651
- return e == null ? !1 : Xe(e).some(
3659
+ function gt(e) {
3660
+ return e == null ? !1 : qe(e).some(
3652
3661
  (t) => {
3653
3662
  var r;
3654
- return (r = Tr(t)) == null ? void 0 : r.size;
3663
+ return (r = Mr(t)) == null ? void 0 : r.size;
3655
3664
  }
3656
3665
  );
3657
3666
  }
3658
- function Wi(e, t) {
3667
+ function Ji(e, t) {
3659
3668
  return Promise.all(
3660
- t.map((n) => (Xi(e, n), n().then((i) => i.default || i)))
3661
- ).then((n) => wr(e, ...n));
3662
- }
3663
- const ke = {};
3664
- function Mr(e) {
3665
- if (!ft(e))
3666
- return e in ke ? ke[e] : Promise.resolve();
3667
- const t = qi(e);
3668
- return ke[e] = Promise.all(
3669
+ t.map((n) => (Wi(e, n), n().then((i) => i.default || i)))
3670
+ ).then((n) => Tr(e, ...n));
3671
+ }
3672
+ const Ee = {};
3673
+ function Nr(e) {
3674
+ if (!gt(e))
3675
+ return e in Ee ? Ee[e] : Promise.resolve();
3676
+ const t = Zi(e);
3677
+ return Ee[e] = Promise.all(
3669
3678
  t.map(
3670
- ([r, n]) => Wi(r, n)
3679
+ ([r, n]) => Ji(r, n)
3671
3680
  )
3672
3681
  ).then(() => {
3673
- if (ft(e))
3674
- return Mr(e);
3675
- delete ke[e];
3676
- }), ke[e];
3682
+ if (gt(e))
3683
+ return Nr(e);
3684
+ delete Ee[e];
3685
+ }), Ee[e];
3677
3686
  }
3678
- const Zi = {
3687
+ const Qi = {
3679
3688
  number: {
3680
3689
  scientific: { notation: "scientific" },
3681
3690
  engineering: { notation: "engineering" },
@@ -3704,148 +3713,148 @@ const Zi = {
3704
3713
  timeZoneName: "short"
3705
3714
  }
3706
3715
  }
3707
- }, Ji = {
3716
+ }, Yi = {
3708
3717
  fallbackLocale: null,
3709
3718
  loadingDelay: 200,
3710
- formats: Zi,
3719
+ formats: Qi,
3711
3720
  warnOnMissingMessages: !0,
3712
3721
  handleMissingMessage: void 0,
3713
3722
  ignoreTag: !0
3714
- }, Qi = Ji;
3723
+ }, Ki = Yi;
3715
3724
  function de() {
3716
- return Qi;
3725
+ return Ki;
3717
3726
  }
3718
- const nt = Fe(!1);
3719
- var Yi = Object.defineProperty, Ki = Object.defineProperties, eo = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, no = (e, t) => {
3727
+ const it = $e(!1);
3728
+ var eo = Object.defineProperty, to = Object.defineProperties, ro = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, io = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oo = (e, t) => {
3720
3729
  for (var r in t || (t = {}))
3721
- to.call(t, r) && jt(e, r, t[r]);
3722
- if (Lt)
3723
- for (var r of Lt(t))
3724
- ro.call(t, r) && jt(e, r, t[r]);
3730
+ no.call(t, r) && Rt(e, r, t[r]);
3731
+ if (It)
3732
+ for (var r of It(t))
3733
+ io.call(t, r) && Rt(e, r, t[r]);
3725
3734
  return e;
3726
- }, io = (e, t) => Ki(e, eo(t));
3727
- let pt;
3728
- const De = Fe(null);
3729
- function It(e) {
3735
+ }, ao = (e, t) => to(e, ro(t));
3736
+ let _t;
3737
+ const Ge = $e(null);
3738
+ function Ut(e) {
3730
3739
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3731
3740
  }
3732
- function Xe(e, t = de().fallbackLocale) {
3733
- const r = It(e);
3734
- return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
3741
+ function qe(e, t = de().fallbackLocale) {
3742
+ const r = Ut(e);
3743
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
3735
3744
  }
3736
- function te() {
3737
- return pt != null ? pt : void 0;
3745
+ function ee() {
3746
+ return _t != null ? _t : void 0;
3738
3747
  }
3739
- De.subscribe((e) => {
3740
- pt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3748
+ Ge.subscribe((e) => {
3749
+ _t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3741
3750
  });
3742
- const oo = (e) => {
3743
- if (e && Vi(e) && ft(e)) {
3751
+ const so = (e) => {
3752
+ if (e && qi(e) && gt(e)) {
3744
3753
  const { loadingDelay: t } = de();
3745
3754
  let r;
3746
- return typeof window != "undefined" && te() != null && t ? r = window.setTimeout(
3747
- () => nt.set(!0),
3755
+ return typeof window != "undefined" && ee() != null && t ? r = window.setTimeout(
3756
+ () => it.set(!0),
3748
3757
  t
3749
- ) : nt.set(!0), Mr(e).then(() => {
3750
- De.set(e);
3758
+ ) : it.set(!0), Nr(e).then(() => {
3759
+ Ge.set(e);
3751
3760
  }).finally(() => {
3752
- clearTimeout(r), nt.set(!1);
3761
+ clearTimeout(r), it.set(!1);
3753
3762
  });
3754
3763
  }
3755
- return De.set(e);
3756
- }, pe = io(no({}, De), {
3757
- set: oo
3758
- }), qe = (e) => {
3764
+ return Ge.set(e);
3765
+ }, pe = ao(oo({}, Ge), {
3766
+ set: so
3767
+ }), We = (e) => {
3759
3768
  const t = /* @__PURE__ */ Object.create(null);
3760
3769
  return (n) => {
3761
3770
  const i = JSON.stringify(n);
3762
3771
  return i in t ? t[i] : t[i] = e(n);
3763
3772
  };
3764
3773
  };
3765
- var ao = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
3774
+ var lo = Object.defineProperty, Fe = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
3766
3775
  for (var r in t || (t = {}))
3767
- Nr.call(t, r) && Rt(e, r, t[r]);
3768
- if (Ge)
3769
- for (var r of Ge(t))
3770
- Ar.call(t, r) && Rt(e, r, t[r]);
3776
+ Ar.call(t, r) && Dt(e, r, t[r]);
3777
+ if (Fe)
3778
+ for (var r of Fe(t))
3779
+ Hr.call(t, r) && Dt(e, r, t[r]);
3771
3780
  return e;
3772
3781
  }, ge = (e, t) => {
3773
3782
  var r = {};
3774
3783
  for (var n in e)
3775
- Nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3776
- if (e != null && Ge)
3777
- for (var n of Ge(e))
3778
- t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
3784
+ Ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3785
+ if (e != null && Fe)
3786
+ for (var n of Fe(e))
3787
+ t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
3779
3788
  return r;
3780
3789
  };
3781
- const we = (e, t) => {
3790
+ const Te = (e, t) => {
3782
3791
  const { formats: r } = de();
3783
3792
  if (e in r && t in r[e])
3784
3793
  return r[e][t];
3785
3794
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3786
- }, so = qe(
3795
+ }, co = We(
3787
3796
  (e) => {
3788
3797
  var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
3789
3798
  if (r == null)
3790
3799
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3791
- return n && (i = we("number", n)), new Intl.NumberFormat(r, i);
3800
+ return n && (i = Te("number", n)), new Intl.NumberFormat(r, i);
3792
3801
  }
3793
- ), lo = qe(
3802
+ ), uo = We(
3794
3803
  (e) => {
3795
3804
  var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
3796
3805
  if (r == null)
3797
3806
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3798
- return n ? i = we("date", n) : Object.keys(i).length === 0 && (i = we("date", "short")), new Intl.DateTimeFormat(r, i);
3807
+ return n ? i = Te("date", n) : Object.keys(i).length === 0 && (i = Te("date", "short")), new Intl.DateTimeFormat(r, i);
3799
3808
  }
3800
- ), co = qe(
3809
+ ), ho = We(
3801
3810
  (e) => {
3802
3811
  var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
3803
3812
  if (r == null)
3804
3813
  throw new Error(
3805
3814
  '[svelte-i18n] A "locale" must be set to format time values'
3806
3815
  );
3807
- return n ? i = we("time", n) : Object.keys(i).length === 0 && (i = we("time", "short")), new Intl.DateTimeFormat(r, i);
3816
+ return n ? i = Te("time", n) : Object.keys(i).length === 0 && (i = Te("time", "short")), new Intl.DateTimeFormat(r, i);
3808
3817
  }
3809
- ), uo = (e = {}) => {
3818
+ ), mo = (e = {}) => {
3810
3819
  var t = e, {
3811
- locale: r = te()
3820
+ locale: r = ee()
3812
3821
  } = t, n = ge(t, [
3813
3822
  "locale"
3814
3823
  ]);
3815
- return so(bt({ locale: r }, n));
3816
- }, ho = (e = {}) => {
3824
+ return co(Et({ locale: r }, n));
3825
+ }, fo = (e = {}) => {
3817
3826
  var t = e, {
3818
- locale: r = te()
3827
+ locale: r = ee()
3819
3828
  } = t, n = ge(t, [
3820
3829
  "locale"
3821
3830
  ]);
3822
- return lo(bt({ locale: r }, n));
3823
- }, mo = (e = {}) => {
3831
+ return uo(Et({ locale: r }, n));
3832
+ }, po = (e = {}) => {
3824
3833
  var t = e, {
3825
- locale: r = te()
3834
+ locale: r = ee()
3826
3835
  } = t, n = ge(t, [
3827
3836
  "locale"
3828
3837
  ]);
3829
- return co(bt({ locale: r }, n));
3830
- }, fo = qe(
3838
+ return ho(Et({ locale: r }, n));
3839
+ }, go = We(
3831
3840
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3832
- (e, t = te()) => new Ui(e, t, de().formats, {
3841
+ (e, t = ee()) => new Gi(e, t, de().formats, {
3833
3842
  ignoreTag: de().ignoreTag
3834
3843
  })
3835
- ), po = (e, t = {}) => {
3844
+ ), _o = (e, t = {}) => {
3836
3845
  var r, n, i, o;
3837
3846
  let a = t;
3838
3847
  typeof e == "object" && (a = e, e = a.id);
3839
3848
  const {
3840
3849
  values: s,
3841
- locale: c = te(),
3850
+ locale: c = ee(),
3842
3851
  default: l
3843
3852
  } = a;
3844
3853
  if (c == null)
3845
3854
  throw new Error(
3846
3855
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3847
3856
  );
3848
- let u = Sr(e, c);
3857
+ let u = xr(e, c);
3849
3858
  if (!u)
3850
3859
  u = (o = (i = (n = (r = de()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3851
3860
  else if (typeof u != "string")
@@ -3856,7 +3865,7 @@ const we = (e, t) => {
3856
3865
  return u;
3857
3866
  let d = u;
3858
3867
  try {
3859
- d = fo(u, c).format(s);
3868
+ d = go(u, c).format(s);
3860
3869
  } catch (m) {
3861
3870
  m instanceof Error && console.warn(
3862
3871
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3864,18 +3873,18 @@ const we = (e, t) => {
3864
3873
  );
3865
3874
  }
3866
3875
  return d;
3867
- }, go = (e, t) => mo(t).format(e), _o = (e, t) => ho(t).format(e), yo = (e, t) => uo(t).format(e), vo = (e, t = te()) => Sr(e, t), bo = fe([pe, Me], () => po);
3868
- fe([pe], () => go);
3869
- fe([pe], () => _o);
3876
+ }, yo = (e, t) => po(t).format(e), vo = (e, t) => fo(t).format(e), bo = (e, t) => mo(t).format(e), ko = (e, t = ee()) => xr(e, t), Eo = fe([pe, Ne], () => _o);
3870
3877
  fe([pe], () => yo);
3871
- fe([pe, Me], () => vo);
3872
- function Ut(e, t) {
3873
- wr(e, t);
3878
+ fe([pe], () => vo);
3879
+ fe([pe], () => bo);
3880
+ fe([pe, Ne], () => ko);
3881
+ function ot(e, t) {
3882
+ Tr(e, t);
3874
3883
  }
3875
- function ko(e) {
3884
+ function Co(e) {
3876
3885
  pe.set(e);
3877
3886
  }
3878
- const Dt = {
3887
+ const Gt = {
3879
3888
  en: {
3880
3889
  invalidUrl: "Failed to construct 'URL': Invalid URL",
3881
3890
  fetchConsentsError: "Error: Could not fetch consents.",
@@ -4447,18 +4456,18 @@ if (typeof window != "undefined") {
4447
4456
  }
4448
4457
  };
4449
4458
  };
4450
- customElements.define = e(customElements.define), import('./GeneralAnimationLoading-lTLzF5jR-501a49e3.js').then(({ default: t }) => {
4459
+ customElements.define = e(customElements.define), import('./GeneralAnimationLoading-DLWh0_Mr-a00326b9.js').then(({ default: t }) => {
4451
4460
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
4452
4461
  });
4453
4462
  }
4454
- function Eo(e) {
4463
+ function So(e) {
4455
4464
  let t, r;
4456
4465
  return {
4457
4466
  c() {
4458
- t = it("svg"), r = it("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
4467
+ t = at("svg"), r = at("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
4459
4468
  },
4460
4469
  m(n, i) {
4461
- L(n, t, i), x(t, r);
4470
+ z(n, t, i), S(t, r);
4462
4471
  },
4463
4472
  p: $,
4464
4473
  i: $,
@@ -4468,34 +4477,34 @@ function Eo(e) {
4468
4477
  }
4469
4478
  };
4470
4479
  }
4471
- class Co extends ar {
4480
+ class xo extends sr {
4472
4481
  constructor(t) {
4473
- super(), nr(this, t, null, Eo, _t, {});
4482
+ super(), ir(this, t, null, So, vt, {});
4474
4483
  }
4475
4484
  }
4476
- customElements.define("circle-exclamation-icon", or(Co, {}, [], [], !0));
4477
- function So(e) {
4478
- cn(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
4479
- }
4480
- function Gt(e, t, r) {
4481
- const n = e.slice();
4482
- return n[65] = t[r], n;
4485
+ customElements.define("circle-exclamation-icon", ar(xo, {}, [], [], !0));
4486
+ function wo(e) {
4487
+ un(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
4483
4488
  }
4484
4489
  function Ft(e, t, r) {
4485
4490
  const n = e.slice();
4486
- return n[62] = t[r], n[63] = t, n[64] = r, n;
4491
+ return n[66] = t[r], n;
4487
4492
  }
4488
4493
  function $t(e, t, r) {
4489
4494
  const n = e.slice();
4490
- return n[65] = t[r], n;
4495
+ return n[63] = t[r], n[64] = t, n[65] = r, n;
4496
+ }
4497
+ function Vt(e, t, r) {
4498
+ const n = e.slice();
4499
+ return n[66] = t[r], n;
4491
4500
  }
4492
- function xo(e) {
4501
+ function To(e) {
4493
4502
  let t, r, n = le(
4494
4503
  /*playerConsents*/
4495
4504
  e[9]
4496
4505
  ), i = [];
4497
4506
  for (let o = 0; o < n.length; o += 1)
4498
- i[o] = Vt(Gt(e, n, o));
4507
+ i[o] = Xt(Ft(e, n, o));
4499
4508
  return {
4500
4509
  c() {
4501
4510
  t = T("div"), r = T("form");
@@ -4504,7 +4513,7 @@ function xo(e) {
4504
4513
  k(r, "class", "checkbox svelte-etk3ty"), k(t, "class", "legacyStyle");
4505
4514
  },
4506
4515
  m(o, a) {
4507
- L(o, t, a), x(t, r);
4516
+ z(o, t, a), S(t, r);
4508
4517
  for (let s = 0; s < i.length; s += 1)
4509
4518
  i[s] && i[s].m(r, null);
4510
4519
  e[32](r);
@@ -4518,8 +4527,8 @@ function xo(e) {
4518
4527
  );
4519
4528
  let s;
4520
4529
  for (s = 0; s < n.length; s += 1) {
4521
- const c = Gt(o, n, s);
4522
- i[s] ? i[s].p(c, a) : (i[s] = Vt(c), i[s].c(), i[s].m(r, null));
4530
+ const c = Ft(o, n, s);
4531
+ i[s] ? i[s].p(c, a) : (i[s] = Xt(c), i[s].c(), i[s].m(r, null));
4523
4532
  }
4524
4533
  for (; s < i.length; s += 1)
4525
4534
  i[s].d(1);
@@ -4527,11 +4536,11 @@ function xo(e) {
4527
4536
  }
4528
4537
  },
4529
4538
  d(o) {
4530
- o && O(t), yt(i, o), e[32](null);
4539
+ o && O(t), bt(i, o), e[32](null);
4531
4540
  }
4532
4541
  };
4533
4542
  }
4534
- function wo(e) {
4543
+ function Mo(e) {
4535
4544
  let t = (
4536
4545
  /*$_*/
4537
4546
  e[16]("title") || /*$_*/
@@ -4539,40 +4548,40 @@ function wo(e) {
4539
4548
  ), r, n, i, o = (
4540
4549
  /*$_*/
4541
4550
  (e[16]("saveButtonContent") || "Save Consents") + ""
4542
- ), a, s, c, l, u, d = t && Xt(e), m = le(
4551
+ ), a, s, c, l, u, d = t && qt(e), m = le(
4543
4552
  /*consentsCategories*/
4544
4553
  e[8]
4545
4554
  ), y = [];
4546
4555
  for (let p = 0; p < m.length; p += 1)
4547
- y[p] = Yt(Ft(e, m, p));
4556
+ y[p] = Kt($t(e, m, p));
4548
4557
  let g = (
4549
4558
  /*errorMessage*/
4550
- e[6] && Kt(e)
4559
+ e[6] && er(e)
4551
4560
  );
4552
4561
  return {
4553
4562
  c() {
4554
4563
  d && d.c(), r = F();
4555
4564
  for (let p = 0; p < y.length; p += 1)
4556
4565
  y[p].c();
4557
- n = F(), i = T("button"), s = F(), g && g.c(), c = dn(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
4566
+ n = F(), i = T("button"), s = F(), g && g.c(), c = mn(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
4558
4567
  e[14];
4559
4568
  },
4560
- m(p, S) {
4561
- d && d.m(p, S), L(p, r, S);
4569
+ m(p, C) {
4570
+ d && d.m(p, C), z(p, r, C);
4562
4571
  for (let _ = 0; _ < y.length; _ += 1)
4563
- y[_] && y[_].m(p, S);
4564
- L(p, n, S), L(p, i, S), i.innerHTML = o, L(p, s, S), g && g.m(p, S), L(p, c, S), l || (u = Ce(
4572
+ y[_] && y[_].m(p, C);
4573
+ z(p, n, C), z(p, i, C), i.innerHTML = o, z(p, s, C), g && g.m(p, C), z(p, c, C), l || (u = Se(
4565
4574
  i,
4566
4575
  "click",
4567
4576
  /*saveChanges*/
4568
4577
  e[18]
4569
4578
  ), l = !0);
4570
4579
  },
4571
- p(p, S) {
4572
- if (S[0] & /*$_*/
4580
+ p(p, C) {
4581
+ if (C[0] & /*$_*/
4573
4582
  65536 && (t = /*$_*/
4574
4583
  p[16]("title") || /*$_*/
4575
- p[16]("description")), t ? d ? d.p(p, S) : (d = Xt(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
4584
+ p[16]("description")), t ? d ? d.p(p, C) : (d = qt(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
4576
4585
  1719056) {
4577
4586
  m = le(
4578
4587
  /*consentsCategories*/
@@ -4580,40 +4589,40 @@ function wo(e) {
4580
4589
  );
4581
4590
  let _;
4582
4591
  for (_ = 0; _ < m.length; _ += 1) {
4583
- const v = Ft(p, m, _);
4584
- y[_] ? y[_].p(v, S) : (y[_] = Yt(v), y[_].c(), y[_].m(n.parentNode, n));
4592
+ const v = $t(p, m, _);
4593
+ y[_] ? y[_].p(v, C) : (y[_] = Kt(v), y[_].c(), y[_].m(n.parentNode, n));
4585
4594
  }
4586
4595
  for (; _ < y.length; _ += 1)
4587
4596
  y[_].d(1);
4588
4597
  y.length = m.length;
4589
4598
  }
4590
- S[0] & /*$_*/
4599
+ C[0] & /*$_*/
4591
4600
  65536 && o !== (o = /*$_*/
4592
- (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
4601
+ (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
4593
4602
  16384 && a !== (a = !/*isValid*/
4594
4603
  p[14]) && (i.disabled = a), /*errorMessage*/
4595
- p[6] ? g ? g.p(p, S) : (g = Kt(p), g.c(), g.m(c.parentNode, c)) : g && (g.d(1), g = null);
4604
+ p[6] ? g ? g.p(p, C) : (g = er(p), g.c(), g.m(c.parentNode, c)) : g && (g.d(1), g = null);
4596
4605
  },
4597
4606
  d(p) {
4598
- p && (O(r), O(n), O(i), O(s), O(c)), d && d.d(p), yt(y, p), g && g.d(p), l = !1, u();
4607
+ p && (O(r), O(n), O(i), O(s), O(c)), d && d.d(p), bt(y, p), g && g.d(p), l = !1, u();
4599
4608
  }
4600
4609
  };
4601
4610
  }
4602
- function To(e) {
4611
+ function No(e) {
4603
4612
  let t, r, n;
4604
4613
  return {
4605
4614
  c() {
4606
- t = T("div"), r = T("strong"), n = ee(
4615
+ t = T("div"), r = T("strong"), n = K(
4607
4616
  /*fatalError*/
4608
4617
  e[7]
4609
4618
  ), k(r, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ContainerCenter svelte-etk3ty");
4610
4619
  },
4611
4620
  m(i, o) {
4612
- L(i, t, o), x(t, r), x(r, n);
4621
+ z(i, t, o), S(t, r), S(r, n);
4613
4622
  },
4614
4623
  p(i, o) {
4615
4624
  o[0] & /*fatalError*/
4616
- 128 && Te(
4625
+ 128 && Me(
4617
4626
  n,
4618
4627
  /*fatalError*/
4619
4628
  i[7]
@@ -4624,21 +4633,21 @@ function To(e) {
4624
4633
  }
4625
4634
  };
4626
4635
  }
4627
- function Mo(e) {
4636
+ function Ao(e) {
4628
4637
  let t;
4629
4638
  return {
4630
4639
  c() {
4631
- t = T("general-animation-loading"), K(
4640
+ t = T("general-animation-loading"), Y(
4632
4641
  t,
4633
4642
  "clientstyling",
4634
4643
  /*clientstyling*/
4635
4644
  e[1]
4636
- ), K(
4645
+ ), Y(
4637
4646
  t,
4638
4647
  "clientstylingurl",
4639
4648
  /*clientstylingurl*/
4640
4649
  e[2]
4641
- ), K(
4650
+ ), Y(
4642
4651
  t,
4643
4652
  "mbsource",
4644
4653
  /*mbsource*/
@@ -4646,23 +4655,23 @@ function Mo(e) {
4646
4655
  );
4647
4656
  },
4648
4657
  m(r, n) {
4649
- L(r, t, n);
4658
+ z(r, t, n);
4650
4659
  },
4651
4660
  p(r, n) {
4652
4661
  n[0] & /*clientstyling*/
4653
- 2 && K(
4662
+ 2 && Y(
4654
4663
  t,
4655
4664
  "clientstyling",
4656
4665
  /*clientstyling*/
4657
4666
  r[1]
4658
4667
  ), n[0] & /*clientstylingurl*/
4659
- 4 && K(
4668
+ 4 && Y(
4660
4669
  t,
4661
4670
  "clientstylingurl",
4662
4671
  /*clientstylingurl*/
4663
4672
  r[2]
4664
4673
  ), n[0] & /*mbsource*/
4665
- 8 && K(
4674
+ 8 && Y(
4666
4675
  t,
4667
4676
  "mbsource",
4668
4677
  /*mbsource*/
@@ -4674,161 +4683,161 @@ function Mo(e) {
4674
4683
  }
4675
4684
  };
4676
4685
  }
4677
- function Vt(e) {
4686
+ function Xt(e) {
4678
4687
  let t, r, n, i, o, a, s, c, l = (
4679
4688
  /*translate*/
4680
4689
  e[17](
4681
4690
  `${/*consent*/
4682
- e[65].tagCode}__description`,
4691
+ e[66].tagCode}__description`,
4683
4692
  /*consent*/
4684
- e[65].friendlyName
4693
+ e[66].friendlyName
4685
4694
  ) + ""
4686
4695
  ), u = (
4687
4696
  /*consent*/
4688
- e[65].mustAccept ? " *" : ""
4689
- ), d, m, y, g, p, S, _, v, C;
4697
+ e[66].mustAccept ? " *" : ""
4698
+ ), d, m, y, g, p, C, _, v, x;
4690
4699
  function H(...E) {
4691
4700
  return (
4692
4701
  /*input_handler_1*/
4693
4702
  e[31](
4694
4703
  /*consent*/
4695
- e[65],
4704
+ e[66],
4696
4705
  ...E
4697
4706
  )
4698
4707
  );
4699
4708
  }
4700
4709
  return {
4701
4710
  c() {
4702
- t = T("div"), r = T("input"), o = F(), a = T("label"), s = T("div"), c = new rr(!1), d = ee(u), y = F(), g = T("small"), S = F(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
4703
- e[65].status === "1", k(r, "id", i = `${/*consent*/
4704
- e[65].tagCode}__input`), c.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
4705
- e[65].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", p = "checkBoxError__" + /*consent*/
4706
- e[65].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
4707
- e[65].tagCode + "__input svelte-etk3ty");
4711
+ t = T("div"), r = T("input"), o = F(), a = T("label"), s = T("div"), c = new nr(!1), d = K(u), y = F(), g = T("small"), C = F(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
4712
+ e[66].status === "1", k(r, "id", i = `${/*consent*/
4713
+ e[66].tagCode}__input`), c.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
4714
+ e[66].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", p = "checkBoxError__" + /*consent*/
4715
+ e[66].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
4716
+ e[66].tagCode + "__input svelte-etk3ty");
4708
4717
  },
4709
- m(E, z) {
4710
- L(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), c.m(l, s), x(s, d), x(t, y), x(t, g), x(t, S), v || (C = Ce(r, "input", H), v = !0);
4718
+ m(E, j) {
4719
+ z(E, t, j), S(t, r), S(t, o), S(t, a), S(a, s), c.m(l, s), S(s, d), S(t, y), S(t, g), S(t, C), v || (x = Se(r, "input", H), v = !0);
4711
4720
  },
4712
- p(E, z) {
4713
- e = E, z[0] & /*playerConsents*/
4721
+ p(E, j) {
4722
+ e = E, j[0] & /*playerConsents*/
4714
4723
  512 && n !== (n = /*consent*/
4715
- e[65].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
4724
+ e[66].status === "1") && (r.checked = n), j[0] & /*playerConsents*/
4716
4725
  512 && i !== (i = `${/*consent*/
4717
- e[65].tagCode}__input`) && k(r, "id", i), z[0] & /*playerConsents*/
4726
+ e[66].tagCode}__input`) && k(r, "id", i), j[0] & /*playerConsents*/
4718
4727
  512 && l !== (l = /*translate*/
4719
4728
  e[17](
4720
4729
  `${/*consent*/
4721
- e[65].tagCode}__description`,
4730
+ e[66].tagCode}__description`,
4722
4731
  /*consent*/
4723
- e[65].friendlyName
4724
- ) + "") && c.p(l), z[0] & /*playerConsents*/
4732
+ e[66].friendlyName
4733
+ ) + "") && c.p(l), j[0] & /*playerConsents*/
4725
4734
  512 && u !== (u = /*consent*/
4726
- e[65].mustAccept ? " *" : "") && Te(d, u), z[0] & /*playerConsents*/
4735
+ e[66].mustAccept ? " *" : "") && Me(d, u), j[0] & /*playerConsents*/
4727
4736
  512 && m !== (m = `${/*consent*/
4728
- e[65].tagCode}__input`) && k(a, "for", m), z[0] & /*playerConsents*/
4737
+ e[66].tagCode}__input`) && k(a, "for", m), j[0] & /*playerConsents*/
4729
4738
  512 && p !== (p = "checkBoxError__" + /*consent*/
4730
- e[65].tagCode) && k(g, "id", p), z[0] & /*playerConsents*/
4739
+ e[66].tagCode) && k(g, "id", p), j[0] & /*playerConsents*/
4731
4740
  512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
4732
- e[65].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
4741
+ e[66].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
4733
4742
  },
4734
4743
  d(E) {
4735
- E && O(t), v = !1, C();
4744
+ E && O(t), v = !1, x();
4736
4745
  }
4737
4746
  };
4738
4747
  }
4739
- function Xt(e) {
4748
+ function qt(e) {
4740
4749
  let t, r = (
4741
4750
  /*$_*/
4742
4751
  e[16]("title")
4743
4752
  ), n, i = (
4744
4753
  /*$_*/
4745
4754
  e[16]("description")
4746
- ), o = r && qt(e), a = i && Wt(e);
4755
+ ), o = r && Wt(e), a = i && Zt(e);
4747
4756
  return {
4748
4757
  c() {
4749
4758
  t = T("div"), o && o.c(), n = F(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-etk3ty");
4750
4759
  },
4751
4760
  m(s, c) {
4752
- L(s, t, c), o && o.m(t, null), x(t, n), a && a.m(t, null);
4761
+ z(s, t, c), o && o.m(t, null), S(t, n), a && a.m(t, null);
4753
4762
  },
4754
4763
  p(s, c) {
4755
4764
  c[0] & /*$_*/
4756
4765
  65536 && (r = /*$_*/
4757
- s[16]("title")), r ? o ? o.p(s, c) : (o = qt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), c[0] & /*$_*/
4766
+ s[16]("title")), r ? o ? o.p(s, c) : (o = Wt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), c[0] & /*$_*/
4758
4767
  65536 && (i = /*$_*/
4759
- s[16]("description")), i ? a ? a.p(s, c) : (a = Wt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4768
+ s[16]("description")), i ? a ? a.p(s, c) : (a = Zt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4760
4769
  },
4761
4770
  d(s) {
4762
4771
  s && O(t), o && o.d(), a && a.d();
4763
4772
  }
4764
4773
  };
4765
4774
  }
4766
- function qt(e) {
4775
+ function Wt(e) {
4767
4776
  let t, r = (
4768
4777
  /*$_*/
4769
4778
  e[16]("title") + ""
4770
4779
  ), n;
4771
4780
  return {
4772
4781
  c() {
4773
- t = T("h2"), n = ee(r), k(t, "class", "PlayerConsentsTitle");
4782
+ t = T("h2"), n = K(r), k(t, "class", "PlayerConsentsTitle");
4774
4783
  },
4775
4784
  m(i, o) {
4776
- L(i, t, o), x(t, n);
4785
+ z(i, t, o), S(t, n);
4777
4786
  },
4778
4787
  p(i, o) {
4779
4788
  o[0] & /*$_*/
4780
4789
  65536 && r !== (r = /*$_*/
4781
- i[16]("title") + "") && Te(n, r);
4790
+ i[16]("title") + "") && Me(n, r);
4782
4791
  },
4783
4792
  d(i) {
4784
4793
  i && O(t);
4785
4794
  }
4786
4795
  };
4787
4796
  }
4788
- function Wt(e) {
4797
+ function Zt(e) {
4789
4798
  let t, r = (
4790
4799
  /*$_*/
4791
4800
  e[16]("description") + ""
4792
4801
  ), n;
4793
4802
  return {
4794
4803
  c() {
4795
- t = T("p"), n = ee(r), k(t, "class", "PlayerConsentsDescription");
4804
+ t = T("p"), n = K(r), k(t, "class", "PlayerConsentsDescription");
4796
4805
  },
4797
4806
  m(i, o) {
4798
- L(i, t, o), x(t, n);
4807
+ z(i, t, o), S(t, n);
4799
4808
  },
4800
4809
  p(i, o) {
4801
4810
  o[0] & /*$_*/
4802
4811
  65536 && r !== (r = /*$_*/
4803
- i[16]("description") + "") && Te(n, r);
4812
+ i[16]("description") + "") && Me(n, r);
4804
4813
  },
4805
4814
  d(i) {
4806
4815
  i && O(t);
4807
4816
  }
4808
4817
  };
4809
4818
  }
4810
- function Zt(e) {
4819
+ function Jt(e) {
4811
4820
  let t;
4812
4821
  return {
4813
4822
  c() {
4814
4823
  t = T("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-etk3ty");
4815
4824
  },
4816
4825
  m(r, n) {
4817
- L(r, t, n);
4826
+ z(r, t, n);
4818
4827
  },
4819
4828
  d(r) {
4820
4829
  r && O(t);
4821
4830
  }
4822
4831
  };
4823
4832
  }
4824
- function Jt(e) {
4833
+ function Qt(e) {
4825
4834
  let t, r = (
4826
4835
  /*translate*/
4827
4836
  e[17](
4828
4837
  `${/*consent*/
4829
- e[65].tagCode}__description`,
4838
+ e[66].tagCode}__description`,
4830
4839
  /*consent*/
4831
- e[65].description
4840
+ e[66].description
4832
4841
  ) + ""
4833
4842
  );
4834
4843
  return {
@@ -4836,16 +4845,16 @@ function Jt(e) {
4836
4845
  t = T("p"), k(t, "class", "ConsentDescription svelte-etk3ty");
4837
4846
  },
4838
4847
  m(n, i) {
4839
- L(n, t, i), t.innerHTML = r;
4848
+ z(n, t, i), t.innerHTML = r;
4840
4849
  },
4841
4850
  p(n, i) {
4842
4851
  i[0] & /*playerConsents, consentsCategories*/
4843
4852
  768 && r !== (r = /*translate*/
4844
4853
  n[17](
4845
4854
  `${/*consent*/
4846
- n[65].tagCode}__description`,
4855
+ n[66].tagCode}__description`,
4847
4856
  /*consent*/
4848
- n[65].description
4857
+ n[66].description
4849
4858
  ) + "") && (t.innerHTML = r);
4850
4859
  },
4851
4860
  d(n) {
@@ -4853,91 +4862,91 @@ function Jt(e) {
4853
4862
  }
4854
4863
  };
4855
4864
  }
4856
- function Qt(e) {
4865
+ function Yt(e) {
4857
4866
  let t, r, n, i, o = (
4858
4867
  /*translate*/
4859
4868
  e[17](
4860
4869
  `${/*consent*/
4861
- e[65].tagCode}__name`,
4870
+ e[66].tagCode}__name`,
4862
4871
  /*consent*/
4863
- e[65].friendlyName
4872
+ e[66].friendlyName
4864
4873
  ) + ""
4865
- ), a, s, c, l, u, d, m, y, g, p, S, _ = (
4874
+ ), a, s, c, l, u, d, m, y, g, p, C, _ = (
4866
4875
  /*consent*/
4867
- e[65].mustAccept === !0 && Zt()
4876
+ e[66].mustAccept === !0 && Jt()
4868
4877
  ), v = (
4869
4878
  /*displayconsentdescription*/
4870
- e[4] === "true" && Jt(e)
4879
+ e[4] === "true" && Qt(e)
4871
4880
  );
4872
- function C(...H) {
4881
+ function x(...H) {
4873
4882
  return (
4874
4883
  /*input_handler*/
4875
4884
  e[30](
4876
4885
  /*consent*/
4877
- e[65],
4886
+ e[66],
4878
4887
  ...H
4879
4888
  )
4880
4889
  );
4881
4890
  }
4882
4891
  return {
4883
4892
  c() {
4884
- t = T("div"), r = T("div"), n = T("h4"), i = new rr(!1), a = F(), _ && _.c(), s = F(), v && v.c(), c = F(), l = T("label"), u = T("input"), y = F(), g = T("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(u, "type", "checkbox"), u.disabled = d = /*consent*/
4885
- e[65].mustAccept === !0 && /*initialConsentsState*/
4893
+ t = T("div"), r = T("div"), n = T("h4"), i = new nr(!1), a = F(), _ && _.c(), s = F(), v && v.c(), c = F(), l = T("label"), u = T("input"), y = F(), g = T("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(u, "type", "checkbox"), u.disabled = d = /*consent*/
4894
+ e[66].mustAccept === !0 && /*initialConsentsState*/
4886
4895
  e[12][
4887
4896
  /*consent*/
4888
- e[65].tagCode
4897
+ e[66].tagCode
4889
4898
  ] === !0, u.checked = m = /*consentsState*/
4890
4899
  e[13][
4891
4900
  /*consent*/
4892
- e[65].tagCode
4901
+ e[66].tagCode
4893
4902
  ], k(u, "class", "svelte-etk3ty"), k(g, "class", "Slider Round svelte-etk3ty"), k(l, "class", "ToggleSwitch svelte-etk3ty"), k(t, "class", "ConsentItem svelte-etk3ty");
4894
4903
  },
4895
4904
  m(H, E) {
4896
- L(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, c), x(t, l), x(l, u), x(l, y), x(l, g), p || (S = Ce(u, "input", C), p = !0);
4905
+ z(H, t, E), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), v && v.m(r, null), S(t, c), S(t, l), S(l, u), S(l, y), S(l, g), p || (C = Se(u, "input", x), p = !0);
4897
4906
  },
4898
4907
  p(H, E) {
4899
4908
  e = H, E[0] & /*playerConsents, consentsCategories*/
4900
4909
  768 && o !== (o = /*translate*/
4901
4910
  e[17](
4902
4911
  `${/*consent*/
4903
- e[65].tagCode}__name`,
4912
+ e[66].tagCode}__name`,
4904
4913
  /*consent*/
4905
- e[65].friendlyName
4914
+ e[66].friendlyName
4906
4915
  ) + "") && i.p(o), /*consent*/
4907
- e[65].mustAccept === !0 ? _ || (_ = Zt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4908
- e[4] === "true" ? v ? v.p(e, E) : (v = Jt(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4916
+ e[66].mustAccept === !0 ? _ || (_ = Jt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4917
+ e[4] === "true" ? v ? v.p(e, E) : (v = Qt(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4909
4918
  4864 && d !== (d = /*consent*/
4910
- e[65].mustAccept === !0 && /*initialConsentsState*/
4919
+ e[66].mustAccept === !0 && /*initialConsentsState*/
4911
4920
  e[12][
4912
4921
  /*consent*/
4913
- e[65].tagCode
4922
+ e[66].tagCode
4914
4923
  ] === !0) && (u.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
4915
4924
  8960 && m !== (m = /*consentsState*/
4916
4925
  e[13][
4917
4926
  /*consent*/
4918
- e[65].tagCode
4927
+ e[66].tagCode
4919
4928
  ]) && (u.checked = m);
4920
4929
  },
4921
4930
  d(H) {
4922
- H && O(t), _ && _.d(), v && v.d(), p = !1, S();
4931
+ H && O(t), _ && _.d(), v && v.d(), p = !1, C();
4923
4932
  }
4924
4933
  };
4925
4934
  }
4926
- function Yt(e) {
4935
+ function Kt(e) {
4927
4936
  let t, r, n, i = (
4928
4937
  /*translate*/
4929
4938
  e[17](
4930
4939
  `${/*category*/
4931
- e[62].categoryTagCode}__category`,
4940
+ e[63].categoryTagCode}__category`,
4932
4941
  /*category*/
4933
- e[62].friendlyName
4942
+ e[63].friendlyName
4934
4943
  ) + ""
4935
4944
  ), o, a, s, c, l, u, d, m, y;
4936
4945
  function g() {
4937
4946
  e[27].call(
4938
4947
  s,
4939
4948
  /*category*/
4940
- e[62]
4949
+ e[63]
4941
4950
  );
4942
4951
  }
4943
4952
  function p() {
@@ -4945,95 +4954,95 @@ function Yt(e) {
4945
4954
  /*change_handler*/
4946
4955
  e[28](
4947
4956
  /*category*/
4948
- e[62]
4957
+ e[63]
4949
4958
  )
4950
4959
  );
4951
4960
  }
4952
- function S(...C) {
4961
+ function C(...x) {
4953
4962
  return (
4954
4963
  /*func*/
4955
4964
  e[29](
4956
4965
  /*category*/
4957
- e[62],
4958
- ...C
4966
+ e[63],
4967
+ ...x
4959
4968
  )
4960
4969
  );
4961
4970
  }
4962
4971
  let _ = le(
4963
4972
  /*playerConsents*/
4964
- e[9].filter(S)
4973
+ e[9].filter(C)
4965
4974
  ), v = [];
4966
- for (let C = 0; C < _.length; C += 1)
4967
- v[C] = Qt($t(e, _, C));
4975
+ for (let x = 0; x < _.length; x += 1)
4976
+ v[x] = Yt(Vt(e, _, x));
4968
4977
  return {
4969
4978
  c() {
4970
4979
  t = T("div"), r = T("div"), n = T("h3"), o = F(), a = T("label"), s = T("input"), c = F(), l = T("span"), u = F(), d = T("div");
4971
- for (let C = 0; C < v.length; C += 1)
4972
- v[C].c();
4980
+ for (let x = 0; x < v.length; x += 1)
4981
+ v[x].c();
4973
4982
  k(s, "type", "checkbox"), k(s, "class", "svelte-etk3ty"), k(l, "class", "Slider Round svelte-etk3ty"), k(a, "class", "ToggleSwitch Big svelte-etk3ty"), k(r, "class", "AccordionHeader svelte-etk3ty"), k(d, "class", "AccordionContent svelte-etk3ty"), k(t, "class", "AccordionItem svelte-etk3ty");
4974
4983
  },
4975
- m(C, H) {
4976
- L(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
4984
+ m(x, H) {
4985
+ z(x, t, H), S(t, r), S(r, n), n.innerHTML = i, S(r, o), S(r, a), S(a, s), s.checked = /*categoryToggle*/
4977
4986
  e[11][
4978
4987
  /*category*/
4979
- e[62].categoryTagCode
4980
- ], x(a, c), x(a, l), x(t, u), x(t, d);
4988
+ e[63].categoryTagCode
4989
+ ], S(a, c), S(a, l), S(t, u), S(t, d);
4981
4990
  for (let E = 0; E < v.length; E += 1)
4982
4991
  v[E] && v[E].m(d, null);
4983
4992
  m || (y = [
4984
- Ce(s, "change", g),
4985
- Ce(s, "change", p)
4993
+ Se(s, "change", g),
4994
+ Se(s, "change", p)
4986
4995
  ], m = !0);
4987
4996
  },
4988
- p(C, H) {
4989
- if (e = C, H[0] & /*consentsCategories*/
4997
+ p(x, H) {
4998
+ if (e = x, H[0] & /*consentsCategories*/
4990
4999
  256 && i !== (i = /*translate*/
4991
5000
  e[17](
4992
5001
  `${/*category*/
4993
- e[62].categoryTagCode}__category`,
5002
+ e[63].categoryTagCode}__category`,
4994
5003
  /*category*/
4995
- e[62].friendlyName
5004
+ e[63].friendlyName
4996
5005
  ) + "") && (n.innerHTML = i), H[0] & /*categoryToggle, consentsCategories*/
4997
5006
  2304 && (s.checked = /*categoryToggle*/
4998
5007
  e[11][
4999
5008
  /*category*/
5000
- e[62].categoryTagCode
5009
+ e[63].categoryTagCode
5001
5010
  ]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, translate, displayconsentdescription*/
5002
5011
  1192720) {
5003
5012
  _ = le(
5004
5013
  /*playerConsents*/
5005
- e[9].filter(S)
5014
+ e[9].filter(C)
5006
5015
  );
5007
5016
  let E;
5008
5017
  for (E = 0; E < _.length; E += 1) {
5009
- const z = $t(e, _, E);
5010
- v[E] ? v[E].p(z, H) : (v[E] = Qt(z), v[E].c(), v[E].m(d, null));
5018
+ const j = Vt(e, _, E);
5019
+ v[E] ? v[E].p(j, H) : (v[E] = Yt(j), v[E].c(), v[E].m(d, null));
5011
5020
  }
5012
5021
  for (; E < v.length; E += 1)
5013
5022
  v[E].d(1);
5014
5023
  v.length = _.length;
5015
5024
  }
5016
5025
  },
5017
- d(C) {
5018
- C && O(t), yt(v, C), m = !1, me(y);
5026
+ d(x) {
5027
+ x && O(t), bt(v, x), m = !1, me(y);
5019
5028
  }
5020
5029
  };
5021
5030
  }
5022
- function Kt(e) {
5031
+ function er(e) {
5023
5032
  let t, r, n, i, o;
5024
5033
  return {
5025
5034
  c() {
5026
- t = T("div"), r = T("circle-exclamation-icon"), n = F(), i = T("strong"), o = ee(
5035
+ t = T("div"), r = T("circle-exclamation-icon"), n = F(), i = T("strong"), o = K(
5027
5036
  /*errorMessage*/
5028
5037
  e[6]
5029
- ), K(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
5038
+ ), Y(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
5030
5039
  },
5031
5040
  m(a, s) {
5032
- L(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
5041
+ z(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
5033
5042
  },
5034
5043
  p(a, s) {
5035
5044
  s[0] & /*errorMessage*/
5036
- 64 && Te(
5045
+ 64 && Me(
5037
5046
  o,
5038
5047
  /*errorMessage*/
5039
5048
  a[6]
@@ -5044,27 +5053,27 @@ function Kt(e) {
5044
5053
  }
5045
5054
  };
5046
5055
  }
5047
- function No(e) {
5056
+ function Ho(e) {
5048
5057
  let t, r;
5049
5058
  function n(a, s) {
5050
5059
  if (
5051
5060
  /*isLoading*/
5052
5061
  a[10]
5053
5062
  )
5054
- return Mo;
5063
+ return Ao;
5055
5064
  if (
5056
5065
  /*fatalError*/
5057
5066
  a[7]
5058
5067
  )
5059
- return To;
5068
+ return No;
5060
5069
  if (
5061
5070
  /*session*/
5062
5071
  a[0]
5063
5072
  )
5064
- return wo;
5073
+ return Mo;
5065
5074
  if (!/*session*/
5066
5075
  a[0])
5067
- return xo;
5076
+ return To;
5068
5077
  }
5069
5078
  let i = n(e), o = i && i(e);
5070
5079
  return {
@@ -5072,7 +5081,7 @@ function No(e) {
5072
5081
  t = T("div"), r = T("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-etk3ty"), k(t, "class", "" + " svelte-etk3ty");
5073
5082
  },
5074
5083
  m(a, s) {
5075
- L(a, t, s), x(t, r), o && o.m(r, null), e[33](r);
5084
+ z(a, t, s), S(t, r), o && o.m(r, null), e[33](r);
5076
5085
  },
5077
5086
  p(a, s) {
5078
5087
  i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
@@ -5084,46 +5093,46 @@ function No(e) {
5084
5093
  }
5085
5094
  };
5086
5095
  }
5087
- function Ao(e, t, r) {
5096
+ function Po(e, t, r) {
5088
5097
  let n;
5089
- ln(e, bo, (h) => r(16, n = h));
5090
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: l } = t, { lang: u = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, p, S = !1, _ = !1, v = "", C = "", H = "", E = "", z = [], J = [], j = [], _e = !0, Ne = !0, V = {}, Ae = {}, Q = {}, D = {}, ye, He, R = {
5098
+ cn(e, Eo, (h) => r(16, n = h));
5099
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: l } = t, { lang: u = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, p, C, _ = !1, v = !1, x = "", H = "", E = "", j = "", te = [], _e = [], L = [], ye = !0, Ae = !0, V = {}, He = {}, J = {}, D = {}, ve, Pe, R = {
5091
5100
  none: { key: "0", value: "None" },
5092
5101
  accepted: { key: "1", value: "Accepted" },
5093
5102
  expired: { key: "2", value: "Expired" },
5094
5103
  denied: { key: "3", value: "Denied" },
5095
5104
  suspended: { key: "4", value: "Suspended" }
5096
- }, Pe = !1;
5097
- Object.keys(Dt).forEach((h) => {
5098
- Ut(h, Dt[h]);
5105
+ }, Be = !1;
5106
+ Object.keys(Gt).forEach((h) => {
5107
+ ot(h, Gt[h]);
5099
5108
  });
5100
- const Pr = () => {
5101
- ko(u);
5102
- }, Br = () => {
5109
+ const Br = () => {
5110
+ Co(u);
5111
+ }, Or = () => {
5103
5112
  let h = new URL(m);
5104
5113
  fetch(h.href).then((f) => f.json()).then((f) => {
5105
5114
  Object.keys(f).forEach((w) => {
5106
- Ut(w, f[w]);
5115
+ ot(w, f[w]);
5107
5116
  });
5108
5117
  }).catch((f) => {
5109
5118
  console.log(f);
5110
5119
  });
5111
- }, Or = (h, f) => {
5120
+ }, zr = (h, f) => {
5112
5121
  const w = n(h);
5113
5122
  return w !== h ? w : f;
5114
- }, zr = () => {
5115
- i && (v = i, _ = !0), o && (C = o);
5116
- }, Be = (h, f = !1) => {
5117
- f ? r(7, E = h) : (Dr(), r(6, H = h));
5118
- }, ve = (h, f, w, b = !1) => re(this, null, function* () {
5123
+ }, jr = () => {
5124
+ i && (x = i, v = !0), o && (H = o);
5125
+ }, Oe = (h, f = !1) => {
5126
+ f ? r(7, j = h) : (Gr(), r(6, E = h));
5127
+ }, be = (h, f, w, b = !1) => re(this, null, function* () {
5119
5128
  try {
5120
5129
  const M = yield fetch(h, w);
5121
5130
  if (!M.ok)
5122
5131
  throw new Error(n(f));
5123
5132
  const I = yield M.json();
5124
- return _ ? I : I.filter((q) => q.showOnRegister === !0);
5133
+ return v ? I : I.filter((q) => q.showOnRegister === !0);
5125
5134
  } catch (M) {
5126
- throw Be(
5135
+ throw Oe(
5127
5136
  M instanceof TypeError ? n(f) : M.message,
5128
5137
  b
5129
5138
  ), M;
@@ -5131,126 +5140,126 @@ function Ao(e, t, r) {
5131
5140
  }), Lr = () => re(this, null, function* () {
5132
5141
  try {
5133
5142
  let h = [], f = [];
5134
- if (_ ? [h, f] = yield kt() : h = yield kt(), r(10, _e = !1), J = [...h], r(8, z = Ir(J).sort((w, b) => w.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, V = Rr(z)), Ae = W({}, V), r(9, j = [...f]), J.forEach((w) => {
5135
- let b = j.find((M) => M.tagCode === w.tagCode);
5136
- b || (b = Je(W({}, w), {
5143
+ if (v ? [h, f] = yield Ct() : h = yield Ct(), r(10, ye = !1), _e = [...h], r(8, te = Rr(_e).sort((w, b) => w.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, V = Ur(te)), He = W({}, V), r(9, L = [...f]), _e.forEach((w) => {
5144
+ let b = L.find((M) => M.tagCode === w.tagCode);
5145
+ b || (b = Qe(W({}, w), {
5137
5146
  status: R.denied.value
5138
- }), j.push(b)), b.description = w.description, b.orderNumber = w.orderNumber;
5147
+ }), L.push(b)), b.description = w.description, b.orderNumber = w.orderNumber;
5139
5148
  }), y === "true") {
5140
- if (r(9, j = j.filter((w) => w.status === R.expired.value)), j.length !== 0)
5149
+ if (r(9, L = L.filter((w) => w.status === R.expired.value)), L.length !== 0)
5141
5150
  return;
5142
- Be(n("wrongModalConfig"), !0);
5151
+ Oe(n("wrongModalConfig"), !0);
5143
5152
  }
5144
- Ur();
5153
+ Dr();
5145
5154
  } catch (h) {
5146
- throw r(10, _e = !1), Be(
5155
+ throw r(10, ye = !1), Oe(
5147
5156
  h instanceof TypeError ? n("invalidUrl") : h.message,
5148
5157
  !0
5149
5158
  ), h;
5150
5159
  }
5151
- }), kt = () => re(this, null, function* () {
5160
+ }), Ct = () => re(this, null, function* () {
5152
5161
  const h = new URL(`${a}/api/v1/gm/consents`);
5153
- if (h.searchParams.append("Status", "Active"), !_)
5154
- return yield ve(h.href, "fetchConsentsError", { method: "GET" }, !0);
5155
- const f = new URL(`${a}/api/v1/gm/user-consents/${C}`);
5162
+ if (h.searchParams.append("Status", "Active"), !v)
5163
+ return yield be(h.href, "fetchConsentsError", { method: "GET" }, !0);
5164
+ const f = new URL(`${a}/api/v1/gm/user-consents/${H}`);
5156
5165
  return yield Promise.all([
5157
- ve(h.href, "fetchConsentsError", { method: "GET" }, !0),
5158
- ve(f.href, "fetchPlayerConsentsError", {
5166
+ be(h.href, "fetchConsentsError", { method: "GET" }, !0),
5167
+ be(f.href, "fetchPlayerConsentsError", {
5159
5168
  method: "GET",
5160
5169
  headers: {
5161
- "X-SessionId": v,
5170
+ "X-SessionId": x,
5162
5171
  "Content-Type": "application/json"
5163
5172
  }
5164
5173
  })
5165
5174
  ]);
5166
- }), jr = () => {
5167
- Pe = !1;
5175
+ }), Ir = () => {
5176
+ Be = !1;
5168
5177
  const h = new URL(`${a}/api/v2/gm/legislation/consents`), f = {
5169
5178
  "Content-Type": "application/json",
5170
5179
  Accept: "application/json"
5171
5180
  }, w = { method: "GET", headers: f };
5172
- fetch(h.href, w).then((b) => b.ok ? b.json() : (Pe = !0, b.json().then((M) => (console.error(M), Oe(M))))).then((b) => {
5173
- if (!Pe) {
5174
- if (J = b, localStorage.getItem("playerConsents")) {
5181
+ fetch(h.href, w).then((b) => b.ok ? b.json() : (Be = !0, b.json().then((M) => (console.error(M), ze(M))))).then((b) => {
5182
+ if (!Be) {
5183
+ if (_e = b, localStorage.getItem("playerConsents")) {
5175
5184
  try {
5176
- r(9, j = JSON.parse(localStorage.getItem("playerConsents")));
5185
+ r(9, L = JSON.parse(localStorage.getItem("playerConsents")));
5177
5186
  } catch (M) {
5178
- return console.error(M), Oe(M);
5187
+ return console.error(M), ze(M);
5179
5188
  }
5180
5189
  return;
5181
5190
  }
5182
- return r(9, j = J.map((M) => ({
5191
+ return r(9, L = _e.map((M) => ({
5183
5192
  id: M.id,
5184
5193
  status: R.denied.key,
5185
5194
  friendlyName: M.friendlyName,
5186
5195
  tagCode: M.tagCode,
5187
5196
  selected: null,
5188
5197
  mustAccept: M.mustAccept
5189
- }))), localStorage.setItem("playerConsents", JSON.stringify(j)), j;
5198
+ }))), localStorage.setItem("playerConsents", JSON.stringify(L)), L;
5190
5199
  }
5191
- }).catch((b) => (console.error(b), Oe(b))).finally(() => {
5192
- r(10, _e = !1);
5200
+ }).catch((b) => (console.error(b), ze(b))).finally(() => {
5201
+ r(10, ye = !1);
5193
5202
  });
5194
- }, Ir = (h) => {
5203
+ }, Rr = (h) => {
5195
5204
  const f = /* @__PURE__ */ new Map();
5196
5205
  return h.forEach((w) => {
5197
5206
  f.has(w.category.categoryTagCode) || f.set(w.category.categoryTagCode, w.category);
5198
5207
  }), Array.from(f.values());
5199
- }, Rr = (h) => {
5200
- const f = localStorage.getItem("categoryToggle" + C);
5208
+ }, Ur = (h) => {
5209
+ const f = localStorage.getItem("categoryToggle" + H);
5201
5210
  if (f === null) {
5202
5211
  const w = h.reduce(
5203
5212
  (b, M) => (b[M.categoryTagCode] = !1, b),
5204
5213
  {}
5205
5214
  );
5206
- return localStorage.setItem("categoryToggle" + C, JSON.stringify(w)), w;
5215
+ return localStorage.setItem("categoryToggle" + H, JSON.stringify(w)), w;
5207
5216
  } else
5208
5217
  return JSON.parse(f);
5209
- }, Ur = () => {
5210
- j.forEach((h) => {
5211
- r(12, Q[h.tagCode] = h.status === R.accepted.value, Q);
5212
- }), r(13, D = W({}, Q));
5213
5218
  }, Dr = () => {
5214
- r(13, D = W({}, Q)), r(11, V = W({}, Ae));
5215
- }, Gr = () => re(this, null, function* () {
5216
- if (!Ne)
5219
+ L.forEach((h) => {
5220
+ r(12, J[h.tagCode] = h.status === R.accepted.value, J);
5221
+ }), r(13, D = W({}, J));
5222
+ }, Gr = () => {
5223
+ r(13, D = W({}, J)), r(11, V = W({}, He));
5224
+ }, Fr = () => re(this, null, function* () {
5225
+ if (!Ae)
5217
5226
  return;
5218
- Ne = !1;
5227
+ Ae = !1;
5219
5228
  const h = [], f = [];
5220
5229
  if (Object.keys(D).forEach((b) => {
5221
- const M = j.find((I) => I.tagCode === b);
5222
- D[b] !== Q[b] && (M ? h.push({
5230
+ const M = L.find((I) => I.tagCode === b);
5231
+ D[b] !== J[b] && (M ? h.push({
5223
5232
  tagCode: b,
5224
5233
  status: D[b] ? R.accepted.value : R.denied.value
5225
5234
  }) : f.push({
5226
5235
  tagCode: b,
5227
5236
  status: D[b] ? R.accepted.value : R.denied.value
5228
5237
  }));
5229
- }), !_) {
5230
- localStorage.setItem("categoryToggle" + C, JSON.stringify(V)), Ae = W({}, V), window.postMessage(
5238
+ }), !v) {
5239
+ localStorage.setItem("categoryToggle" + H, JSON.stringify(V)), He = W({}, V), window.postMessage(
5231
5240
  {
5232
5241
  type: "NewPlayerConsentData",
5233
5242
  data: JSON.stringify(f)
5234
5243
  },
5235
5244
  window.location.href
5236
- ), Ne = !0;
5245
+ ), Ae = !0;
5237
5246
  return;
5238
5247
  }
5239
- const w = new URL(`${a}/api/v1/gm/user-consents/${C}`);
5248
+ const w = new URL(`${a}/api/v1/gm/user-consents/${H}`);
5240
5249
  try {
5241
5250
  const b = yield Promise.allSettled([
5242
- f.length > 0 && ve(w.href, "updateConsentsError", {
5251
+ f.length > 0 && be(w.href, "updateConsentsError", {
5243
5252
  method: "POST",
5244
5253
  headers: {
5245
- "X-SessionId": v,
5254
+ "X-SessionId": x,
5246
5255
  "Content-Type": "application/json"
5247
5256
  },
5248
5257
  body: JSON.stringify({ userConsents: f })
5249
5258
  }),
5250
- h.length > 0 && ve(w.href, "updateConsentsError", {
5259
+ h.length > 0 && be(w.href, "updateConsentsError", {
5251
5260
  method: "PATCH",
5252
5261
  headers: {
5253
- "X-SessionId": v,
5262
+ "X-SessionId": x,
5254
5263
  "Content-Type": "application/json"
5255
5264
  },
5256
5265
  body: JSON.stringify({ userConsents: h })
@@ -5259,17 +5268,17 @@ function Ao(e, t, r) {
5259
5268
  b.forEach((M, I) => {
5260
5269
  if (M.status === "rejected" || M.value.ok === !1) {
5261
5270
  const q = I < f.length ? f[I] : h[I - f.length];
5262
- r(13, D[q.tagCode] = Q[q.tagCode], D);
5271
+ r(13, D[q.tagCode] = J[q.tagCode], D);
5263
5272
  }
5264
- }), b.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(V)), Ae = W({}, V), window.postMessage(
5273
+ }), b.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + H, JSON.stringify(V)), He = W({}, V), window.postMessage(
5265
5274
  {
5266
5275
  type: "PlayerConsentUpdated",
5267
5276
  success: !0
5268
5277
  },
5269
5278
  window.location.href
5270
- ), r(12, Q = W({}, D)));
5279
+ ), r(12, J = W({}, D)));
5271
5280
  } catch (b) {
5272
- Be(b instanceof TypeError ? n("saveChangesError") : b.message), window.postMessage(
5281
+ Oe(b instanceof TypeError ? n("saveChangesError") : b.message), window.postMessage(
5273
5282
  {
5274
5283
  type: "PlayerConsentUpdated",
5275
5284
  success: !1
@@ -5277,14 +5286,14 @@ function Ao(e, t, r) {
5277
5286
  window.location.href
5278
5287
  );
5279
5288
  } finally {
5280
- Ne = !0, r(14, ye = !1);
5289
+ Ae = !0, r(14, ve = !1);
5281
5290
  }
5282
- }), Fr = (h) => {
5291
+ }), $r = (h) => {
5283
5292
  const f = new URL(`${a}/api/v2/gm/legislation/consents`), w = {
5284
5293
  "Content-Type": "application/json",
5285
5294
  Accept: "application/json"
5286
5295
  }, b = {
5287
- playerConsents: j,
5296
+ playerConsents: L,
5288
5297
  registrationId: h
5289
5298
  }, M = {
5290
5299
  method: "POST",
@@ -5292,30 +5301,30 @@ function Ao(e, t, r) {
5292
5301
  headers: w
5293
5302
  };
5294
5303
  fetch(f.href, M).then((I) => {
5295
- I.ok || (Pe = !0);
5296
- }).catch((I) => (console.error(I), Oe(I))).finally(() => {
5297
- r(10, _e = !1);
5304
+ I.ok || (Be = !0);
5305
+ }).catch((I) => (console.error(I), ze(I))).finally(() => {
5306
+ r(10, ye = !1);
5298
5307
  });
5299
- }, Et = (h) => {
5300
- j.filter((f) => f.category.categoryTagCode === h).forEach((f) => {
5308
+ }, St = (h) => {
5309
+ L.filter((f) => f.category.categoryTagCode === h).forEach((f) => {
5301
5310
  f.status = f.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, D[f.tagCode] = V[h] || !1, D);
5302
- }), r(14, ye = Ct());
5303
- }, We = (h, f, w) => {
5304
- const b = j.find((q) => q.id === w), M = f ? "value" : "key";
5311
+ }), r(14, ve = xt());
5312
+ }, Ze = (h, f, w) => {
5313
+ const b = L.find((q) => q.id === w), M = f ? "value" : "key";
5305
5314
  let I;
5306
5315
  if (!f && b.mustAccept) {
5307
- const q = Array.from(He.children);
5308
- for (const be of q)
5309
- if (I = Array.from(be.children).find((en) => en.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
5316
+ const q = Array.from(Pe.children);
5317
+ for (const ke of q)
5318
+ if (I = Array.from(ke.children).find((tn) => tn.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
5310
5319
  break;
5311
5320
  }
5312
5321
  if (b.status === R.accepted[M] ? (b.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (b.status = R.accepted[M], I && (I.innerHTML = "")), f) {
5313
5322
  r(13, D[b.tagCode] = !D[b.tagCode], D);
5314
- const q = j.filter((be) => be.category.categoryTagCode === f.categoryTagCode).every((be) => be.status !== R.denied.value);
5323
+ const q = L.filter((ke) => ke.category.categoryTagCode === f.categoryTagCode).every((ke) => ke.status !== R.denied.value);
5315
5324
  r(11, V[f.categoryTagCode] = q, V);
5316
5325
  }
5317
- $r();
5318
- }, $r = ((h, f) => {
5326
+ Vr();
5327
+ }, Vr = ((h, f) => {
5319
5328
  let w;
5320
5329
  return function(...b) {
5321
5330
  const M = this;
@@ -5326,9 +5335,9 @@ function Ao(e, t, r) {
5326
5335
  f
5327
5336
  );
5328
5337
  };
5329
- })(() => Vr(), 500), Vr = () => {
5330
- r(14, ye = Ct()), i || (window.postMessage({ type: "isConsentsValid", isValid: ye }), localStorage.setItem("playerConsents", JSON.stringify(j)));
5331
- }, Ct = () => j.filter((f) => j.some((w) => f.tagCode === w.tagCode && w.mustAccept && (f.status === R.denied.key || f.status === R.denied.value))).length === 0, Oe = (h) => {
5338
+ })(() => Xr(), 500), Xr = () => {
5339
+ r(14, ve = xt()), i || (window.postMessage({ type: "isConsentsValid", isValid: ve }), localStorage.setItem("playerConsents", JSON.stringify(L)));
5340
+ }, xt = () => L.filter((f) => L.some((w) => f.tagCode === w.tagCode && w.mustAccept && (f.status === R.denied.key || f.status === R.denied.value))).length === 0, ze = (h) => {
5332
5341
  window.postMessage(
5333
5342
  {
5334
5343
  type: "WidgetNotification",
@@ -5336,32 +5345,32 @@ function Ao(e, t, r) {
5336
5345
  },
5337
5346
  window.location.href
5338
5347
  );
5339
- }, Xr = (h) => {
5340
- h.data && h.data.type !== "setUpPlayerConsents" || Fr(h.data.registerid);
5348
+ }, qr = (h) => {
5349
+ h.data && h.data.type !== "setUpPlayerConsents" || $r(h.data.registerid);
5341
5350
  };
5342
- gn(() => {
5351
+ _n(() => {
5343
5352
  setTimeout(
5344
5353
  () => {
5345
- r(26, S = !0);
5354
+ r(26, _ = !0);
5346
5355
  },
5347
5356
  50
5348
5357
  );
5349
- const h = (f) => Xr(f);
5358
+ const h = (f) => qr(f);
5350
5359
  return window.addEventListener("message", h), () => {
5351
- window.removeEventListener("message", h);
5360
+ C && C.unsubscribe(), window.removeEventListener("message", h);
5352
5361
  };
5353
5362
  });
5354
- function qr(h) {
5363
+ function Wr(h) {
5355
5364
  V[h.categoryTagCode] = this.checked, r(11, V);
5356
5365
  }
5357
- const Wr = (h) => Et(h.categoryTagCode), Zr = (h, f) => f.category.categoryTagCode === h.categoryTagCode, Jr = (h, f) => We(f, h.category, h.id), Qr = (h, f) => We(f, null, h.id);
5358
- function Yr(h) {
5359
- Re[h ? "unshift" : "push"](() => {
5360
- He = h, r(15, He);
5366
+ const Zr = (h) => St(h.categoryTagCode), Jr = (h, f) => f.category.categoryTagCode === h.categoryTagCode, Qr = (h, f) => Ze(f, h.category, h.id), Yr = (h, f) => Ze(f, null, h.id);
5367
+ function Kr(h) {
5368
+ Ue[h ? "unshift" : "push"](() => {
5369
+ Pe = h, r(15, Pe);
5361
5370
  });
5362
5371
  }
5363
- function Kr(h) {
5364
- Re[h ? "unshift" : "push"](() => {
5372
+ function en(h) {
5373
+ Ue[h ? "unshift" : "push"](() => {
5365
5374
  g = h, r(5, g);
5366
5375
  });
5367
5376
  }
@@ -5369,13 +5378,14 @@ function Ao(e, t, r) {
5369
5378
  "session" in h && r(0, i = h.session), "userid" in h && r(21, o = h.userid), "endpoint" in h && r(22, a = h.endpoint), "clientstyling" in h && r(1, s = h.clientstyling), "clientstylingurl" in h && r(2, c = h.clientstylingurl), "mbsource" in h && r(3, l = h.mbsource), "lang" in h && r(23, u = h.lang), "displayconsentdescription" in h && r(4, d = h.displayconsentdescription), "translationurl" in h && r(24, m = h.translationurl), "modalconsents" in h && r(25, y = h.modalconsents);
5370
5379
  }, e.$$.update = () => {
5371
5380
  e.$$.dirty[0] & /*isMounted, session*/
5372
- 67108865 && S && i && (zr(), Lr()), e.$$.dirty[0] & /*session*/
5373
- 1 && (i || jr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5374
- 34 && s && g && Tn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5375
- 36 && c && g && Mn(g, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5376
- 40 && g && Nn(g, `${l}.Style`, p), e.$$.dirty[0] & /*lang*/
5377
- 8388608 && u && Pr(), e.$$.dirty[0] & /*translationurl*/
5378
- 16777216 && m && Br();
5381
+ 67108865 && _ && i && (jr(), Lr()), e.$$.dirty[0] & /*session*/
5382
+ 1 && (i || Ir()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5383
+ 34 && s && g && Nn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5384
+ 36 && c && g && An(g, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5385
+ 40 && g && Hn(g, `${l}.Style`, p), e.$$.dirty[0] & /*lang*/
5386
+ 8388608 && u && Br(), e.$$.dirty[0] & /*translationurl*/
5387
+ 16777216 && m && Or(), e.$$.dirty[0] & /*mbsource, translationurl*/
5388
+ 16777224 && l && !m && (C = Mn(`${l}.Translation`, void 0, ot, !0));
5379
5389
  }, [
5380
5390
  i,
5381
5391
  s,
@@ -5383,44 +5393,44 @@ function Ao(e, t, r) {
5383
5393
  l,
5384
5394
  d,
5385
5395
  g,
5386
- H,
5387
5396
  E,
5388
- z,
5389
5397
  j,
5390
- _e,
5398
+ te,
5399
+ L,
5400
+ ye,
5391
5401
  V,
5392
- Q,
5402
+ J,
5393
5403
  D,
5394
- ye,
5395
- He,
5404
+ ve,
5405
+ Pe,
5396
5406
  n,
5397
- Or,
5398
- Gr,
5399
- Et,
5400
- We,
5407
+ zr,
5408
+ Fr,
5409
+ St,
5410
+ Ze,
5401
5411
  o,
5402
5412
  a,
5403
5413
  u,
5404
5414
  m,
5405
5415
  y,
5406
- S,
5407
- qr,
5416
+ _,
5408
5417
  Wr,
5409
5418
  Zr,
5410
5419
  Jr,
5411
5420
  Qr,
5412
5421
  Yr,
5413
- Kr
5422
+ Kr,
5423
+ en
5414
5424
  ];
5415
5425
  }
5416
- class Hr extends ar {
5426
+ class Pr extends sr {
5417
5427
  constructor(t) {
5418
- super(), nr(
5428
+ super(), ir(
5419
5429
  this,
5420
5430
  t,
5421
- Ao,
5422
- No,
5423
- _t,
5431
+ Po,
5432
+ Ho,
5433
+ vt,
5424
5434
  {
5425
5435
  session: 0,
5426
5436
  userid: 21,
@@ -5433,7 +5443,7 @@ class Hr extends ar {
5433
5443
  translationurl: 24,
5434
5444
  modalconsents: 25
5435
5445
  },
5436
- So,
5446
+ wo,
5437
5447
  [-1, -1, -1]
5438
5448
  );
5439
5449
  }
@@ -5498,10 +5508,10 @@ class Hr extends ar {
5498
5508
  this.$$set({ modalconsents: t }), X();
5499
5509
  }
5500
5510
  }
5501
- or(Hr, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
5502
- const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5511
+ ar(Pr, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
5512
+ const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5503
5513
  __proto__: null,
5504
- default: Hr
5514
+ default: Pr
5505
5515
  }, Symbol.toStringTag, { value: "Module" }));
5506
5516
 
5507
- export { Oo as P, ar as S, cn as a, L as b, Re as c, O as d, T as e, X as f, Tn as g, Mn as h, nr as i, Nn as j, or as k, $ as n, gn as o, _t as s };
5517
+ export { jo as P, sr as S, un as a, z as b, Ue as c, O as d, T as e, X as f, Nn as g, An as h, ir as i, Hn as j, ar as k, $ as n, _n as o, vt as s };