@everymatrix/player-consents 1.86.4 → 1.86.6

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,15 +1,15 @@
1
- import { n as q, s as Hr, r as zt, a as Qe, i as Pr, c as Ot, S as It, b as jt, d as ot, e as b, f as j, g as x, h as L, j as X, k as Br, l as A, m as zr, o as Or, p as Ir, q as at, t as jr, u as Lr, v as Rr, w as $, x as Ye, y as G, z as Ur, A as de, B as pe, C as fe, D as Q, H as Lt } from "./GeneralAnimationLoading-D9yegS5O.js";
1
+ import { n as W, s as Ye, a as Ar, r as Bt, i as Hr, c as Ot, S as zt, b as It, d as j, e as L, f as S, g as it, h as E, j as X, k as Pr, l as A, m as Br, o as Or, p as ot, q as Q, t as ge, u as fe, v as $, w as Ke, x as de, y as G, z as zr, H as jt, A as Ir, B as jr, C as Lr, D as Rr } from "./GeneralAnimationLoading-Bl4q3liU.js";
2
2
  const K = [];
3
- function Dr(e, t) {
3
+ function Ur(e, t) {
4
4
  return {
5
- subscribe: Ne(e, t).subscribe
5
+ subscribe: Ae(e, t).subscribe
6
6
  };
7
7
  }
8
- function Ne(e, t = q) {
8
+ function Ae(e, t = W) {
9
9
  let r;
10
10
  const n = /* @__PURE__ */ new Set();
11
11
  function i(s) {
12
- if (Qe(e, s) && (e = s, r)) {
12
+ if (Ye(e, s) && (e = s, r)) {
13
13
  const h = !K.length;
14
14
  for (const u of n)
15
15
  u[1](), K.push(u, e);
@@ -23,9 +23,9 @@ function Ne(e, t = q) {
23
23
  function o(s) {
24
24
  i(s(e));
25
25
  }
26
- function a(s, h = q) {
26
+ function a(s, h = W) {
27
27
  const u = [s, h];
28
- return n.add(u), n.size === 1 && (r = t(i, o) || q), s(e), () => {
28
+ return n.add(u), n.size === 1 && (r = t(i, o) || W), s(e), () => {
29
29
  n.delete(u), n.size === 0 && r && (r(), r = null);
30
30
  };
31
31
  }
@@ -36,96 +36,96 @@ function ie(e, t, r) {
36
36
  if (!i.every(Boolean))
37
37
  throw new Error("derived() expects stores as input, got a falsy value");
38
38
  const o = t.length < 2;
39
- return Dr(r, (a, s) => {
39
+ return Ur(r, (a, s) => {
40
40
  let h = !1;
41
41
  const u = [];
42
- let l = 0, d = q;
42
+ let l = 0, d = W;
43
43
  const m = () => {
44
44
  if (l)
45
45
  return;
46
46
  d();
47
47
  const f = t(n ? u[0] : u, a, s);
48
- o ? a(f) : d = Pr(f) ? f : q;
49
- }, y = i.map(
50
- (f, g) => Hr(
48
+ o ? a(f) : d = Hr(f) ? f : W;
49
+ }, v = i.map(
50
+ (f, p) => Ar(
51
51
  f,
52
- (S) => {
53
- u[g] = S, l &= ~(1 << g), h && m();
52
+ (C) => {
53
+ u[p] = C, l &= ~(1 << p), h && m();
54
54
  },
55
55
  () => {
56
- l |= 1 << g;
56
+ l |= 1 << p;
57
57
  }
58
58
  )
59
59
  );
60
60
  return h = !0, m(), function() {
61
- zt(y), d(), h = !1;
61
+ Bt(v), d(), h = !1;
62
62
  };
63
63
  });
64
64
  }
65
- function Gr(e) {
65
+ function Dr(e) {
66
66
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
67
67
  }
68
- var Fr = function(t) {
69
- return Vr(t) && !Xr(t);
68
+ var Gr = function(t) {
69
+ return Fr(t) && !Vr(t);
70
70
  };
71
- function Vr(e) {
71
+ function Fr(e) {
72
72
  return !!e && typeof e == "object";
73
73
  }
74
- function Xr(e) {
74
+ function Vr(e) {
75
75
  var t = Object.prototype.toString.call(e);
76
- return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
76
+ return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
77
77
  }
78
- var qr = typeof Symbol == "function" && Symbol.for, Wr = qr ? Symbol.for("react.element") : 60103;
79
- function Zr(e) {
80
- return e.$$typeof === Wr;
78
+ var Xr = typeof Symbol == "function" && Symbol.for, qr = Xr ? Symbol.for("react.element") : 60103;
79
+ function Wr(e) {
80
+ return e.$$typeof === qr;
81
81
  }
82
- function Jr(e) {
82
+ function Zr(e) {
83
83
  return Array.isArray(e) ? [] : {};
84
84
  }
85
85
  function me(e, t) {
86
- return t.clone !== !1 && t.isMergeableObject(e) ? ee(Jr(e), e, t) : e;
86
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Zr(e), e, t) : e;
87
87
  }
88
- function Qr(e, t, r) {
88
+ function Jr(e, t, r) {
89
89
  return e.concat(t).map(function(n) {
90
90
  return me(n, r);
91
91
  });
92
92
  }
93
- function Yr(e, t) {
93
+ function Qr(e, t) {
94
94
  if (!t.customMerge)
95
95
  return ee;
96
96
  var r = t.customMerge(e);
97
97
  return typeof r == "function" ? r : ee;
98
98
  }
99
- function Kr(e) {
99
+ function Yr(e) {
100
100
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
101
101
  return Object.propertyIsEnumerable.call(e, t);
102
102
  }) : [];
103
103
  }
104
- function st(e) {
105
- return Object.keys(e).concat(Kr(e));
104
+ function at(e) {
105
+ return Object.keys(e).concat(Yr(e));
106
106
  }
107
- function Rt(e, t) {
107
+ function Lt(e, t) {
108
108
  try {
109
109
  return t in e;
110
110
  } catch {
111
111
  return !1;
112
112
  }
113
113
  }
114
- function $r(e, t) {
115
- return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
114
+ function Kr(e, t) {
115
+ return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
116
116
  }
117
- function en(e, t, r) {
117
+ function $r(e, t, r) {
118
118
  var n = {};
119
- return r.isMergeableObject(e) && st(e).forEach(function(i) {
119
+ return r.isMergeableObject(e) && at(e).forEach(function(i) {
120
120
  n[i] = me(e[i], r);
121
- }), st(t).forEach(function(i) {
122
- $r(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
121
+ }), at(t).forEach(function(i) {
122
+ Kr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
123
123
  }), n;
124
124
  }
125
125
  function ee(e, t, r) {
126
- r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Fr, r.cloneUnlessOtherwiseSpecified = me;
126
+ r = r || {}, r.arrayMerge = r.arrayMerge || Jr, r.isMergeableObject = r.isMergeableObject || Gr, r.cloneUnlessOtherwiseSpecified = me;
127
127
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
128
- return o ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : me(t, r);
128
+ return o ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : me(t, r);
129
129
  }
130
130
  ee.all = function(t, r) {
131
131
  if (!Array.isArray(t))
@@ -134,50 +134,36 @@ ee.all = function(t, r) {
134
134
  return ee(n, i, r);
135
135
  }, {});
136
136
  };
137
- var tn = ee, rn = tn;
138
- const nn = /* @__PURE__ */ Gr(rn);
139
- /*! *****************************************************************************
140
- Copyright (c) Microsoft Corporation.
141
-
142
- Permission to use, copy, modify, and/or distribute this software for any
143
- purpose with or without fee is hereby granted.
144
-
145
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
146
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
147
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
148
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
149
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
150
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
151
- PERFORMANCE OF THIS SOFTWARE.
152
- ***************************************************************************** */
153
- var De = function(e, t) {
154
- return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
137
+ var en = ee, tn = en;
138
+ const rn = /* @__PURE__ */ Dr(tn);
139
+ var Ge = function(e, t) {
140
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
155
141
  r.__proto__ = n;
156
142
  } || function(r, n) {
157
143
  for (var i in n)
158
144
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
159
- }, De(e, t);
145
+ }, Ge(e, t);
160
146
  };
161
- function Ae(e, t) {
147
+ function He(e, t) {
162
148
  if (typeof t != "function" && t !== null)
163
149
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
164
- De(e, t);
150
+ Ge(e, t);
165
151
  function r() {
166
152
  this.constructor = e;
167
153
  }
168
154
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
169
155
  }
170
- var H = function() {
171
- return H = Object.assign || function(t) {
156
+ var q = function() {
157
+ return q = Object.assign || function(t) {
172
158
  for (var r, n = 1, i = arguments.length; n < i; n++) {
173
159
  r = arguments[n];
174
160
  for (var o in r)
175
161
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
176
162
  }
177
163
  return t;
178
- }, H.apply(this, arguments);
164
+ }, q.apply(this, arguments);
179
165
  };
180
- function on(e, t) {
166
+ function nn(e, t) {
181
167
  var r = {};
182
168
  for (var n in e)
183
169
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -186,111 +172,119 @@ function on(e, t) {
186
172
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
187
173
  return r;
188
174
  }
189
- function Oe(e, t, r) {
190
- if (arguments.length === 2)
175
+ function Ie(e, t, r) {
176
+ if (r || arguments.length === 2)
191
177
  for (var n = 0, i = t.length, o; n < i; n++)
192
178
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
193
- return e.concat(o || t);
179
+ return e.concat(o || Array.prototype.slice.call(t));
194
180
  }
195
- function Ie(e, t) {
196
- var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : sn;
181
+ function je(e, t) {
182
+ var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : sn;
197
183
  return i(e, {
198
184
  cache: r,
199
185
  serializer: n
200
186
  });
201
187
  }
202
- function an(e) {
188
+ function on(e) {
203
189
  return e == null || typeof e == "number" || typeof e == "boolean";
204
190
  }
205
- function Ut(e, t, r, n) {
206
- var i = an(n) ? n : r(n), o = t.get(i);
191
+ function an(e, t, r, n) {
192
+ var i = on(n) ? n : r(n), o = t.get(i);
207
193
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
208
194
  }
209
- function Dt(e, t, r) {
195
+ function Rt(e, t, r) {
210
196
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
211
197
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
212
198
  }
213
- function Ke(e, t, r, n, i) {
199
+ function Ut(e, t, r, n, i) {
214
200
  return r.bind(t, e, n, i);
215
201
  }
216
202
  function sn(e, t) {
217
- var r = e.length === 1 ? Ut : Dt;
218
- return Ke(e, this, r, t.cache.create(), t.serializer);
203
+ var r = e.length === 1 ? an : Rt;
204
+ return Ut(e, this, r, t.cache.create(), t.serializer);
219
205
  }
220
206
  function ln(e, t) {
221
- return Ke(e, this, Dt, t.cache.create(), t.serializer);
222
- }
223
- function cn(e, t) {
224
- return Ke(e, this, Ut, t.cache.create(), t.serializer);
207
+ return Ut(e, this, Rt, t.cache.create(), t.serializer);
225
208
  }
226
- var un = function() {
209
+ var cn = function() {
227
210
  return JSON.stringify(arguments);
228
- };
229
- function $e() {
230
- this.cache = /* @__PURE__ */ Object.create(null);
231
- }
232
- $e.prototype.get = function(e) {
233
- return this.cache[e];
234
- };
235
- $e.prototype.set = function(e, t) {
236
- this.cache[e] = t;
237
- };
238
- var hn = {
211
+ }, un = (
212
+ /** @class */
213
+ function() {
214
+ function e() {
215
+ this.cache = /* @__PURE__ */ Object.create(null);
216
+ }
217
+ return e.prototype.get = function(t) {
218
+ return this.cache[t];
219
+ }, e.prototype.set = function(t, r) {
220
+ this.cache[t] = r;
221
+ }, e;
222
+ }()
223
+ ), hn = {
239
224
  create: function() {
240
- return new $e();
225
+ return new un();
241
226
  }
242
- }, je = {
243
- variadic: ln,
244
- monadic: cn
245
- }, w;
227
+ }, Le = {
228
+ variadic: ln
229
+ }, Me = function() {
230
+ return Me = Object.assign || function(t) {
231
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
232
+ r = arguments[n];
233
+ for (var o in r)
234
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
235
+ }
236
+ return t;
237
+ }, Me.apply(this, arguments);
238
+ };
239
+ var w;
246
240
  (function(e) {
247
241
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
248
242
  })(w || (w = {}));
249
- var B;
243
+ var P;
250
244
  (function(e) {
251
245
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
252
- })(B || (B = {}));
246
+ })(P || (P = {}));
253
247
  var te;
254
248
  (function(e) {
255
249
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
256
250
  })(te || (te = {}));
257
- function lt(e) {
258
- return e.type === B.literal;
251
+ function st(e) {
252
+ return e.type === P.literal;
259
253
  }
260
254
  function dn(e) {
261
- return e.type === B.argument;
255
+ return e.type === P.argument;
256
+ }
257
+ function Dt(e) {
258
+ return e.type === P.number;
262
259
  }
263
260
  function Gt(e) {
264
- return e.type === B.number;
261
+ return e.type === P.date;
265
262
  }
266
263
  function Ft(e) {
267
- return e.type === B.date;
264
+ return e.type === P.time;
268
265
  }
269
266
  function Vt(e) {
270
- return e.type === B.time;
267
+ return e.type === P.select;
271
268
  }
272
269
  function Xt(e) {
273
- return e.type === B.select;
274
- }
275
- function qt(e) {
276
- return e.type === B.plural;
270
+ return e.type === P.plural;
277
271
  }
278
272
  function mn(e) {
279
- return e.type === B.pound;
273
+ return e.type === P.pound;
280
274
  }
281
- function Wt(e) {
282
- return e.type === B.tag;
275
+ function qt(e) {
276
+ return e.type === P.tag;
283
277
  }
284
- function Zt(e) {
278
+ function Wt(e) {
285
279
  return !!(e && typeof e == "object" && e.type === te.number);
286
280
  }
287
- function Ge(e) {
281
+ function Fe(e) {
288
282
  return !!(e && typeof e == "object" && e.type === te.dateTime);
289
283
  }
290
- var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
291
- function pn(e) {
284
+ var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
285
+ function gn(e) {
292
286
  var t = {};
293
- return e.replace(gn, function(r) {
287
+ return e.replace(pn, function(r) {
294
288
  var n = r.length;
295
289
  switch (r[0]) {
296
290
  case "G":
@@ -379,6 +373,16 @@ function pn(e) {
379
373
  return "";
380
374
  }), t;
381
375
  }
376
+ var z = function() {
377
+ return z = Object.assign || function(t) {
378
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
379
+ r = arguments[n];
380
+ for (var o in r)
381
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
382
+ }
383
+ return t;
384
+ }, z.apply(this, arguments);
385
+ };
382
386
  var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
383
387
  function _n(e) {
384
388
  if (e.length === 0)
@@ -401,14 +405,14 @@ function _n(e) {
401
405
  function yn(e) {
402
406
  return e.replace(/^(.*?)-/, "");
403
407
  }
404
- var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
405
- function ut(e) {
408
+ var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
409
+ function ct(e) {
406
410
  var t = {};
407
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
411
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
408
412
  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)), "";
409
413
  }), t;
410
414
  }
411
- function Kt(e) {
415
+ function Yt(e) {
412
416
  switch (e) {
413
417
  case "sign-auto":
414
418
  return {
@@ -456,14 +460,14 @@ function kn(e) {
456
460
  notation: "scientific"
457
461
  }, e = e.slice(1)), t) {
458
462
  var r = e.slice(0, 2);
459
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
463
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
460
464
  throw new Error("Malformed concise eng/scientific notation");
461
465
  t.minimumIntegerDigits = e.length;
462
466
  }
463
467
  return t;
464
468
  }
465
- function ht(e) {
466
- var t = {}, r = Kt(e);
469
+ function ut(e) {
470
+ var t = {}, r = Yt(e);
467
471
  return r || t;
468
472
  }
469
473
  function bn(e) {
@@ -501,13 +505,13 @@ function bn(e) {
501
505
  t.notation = "compact", t.compactDisplay = "long";
502
506
  continue;
503
507
  case "scientific":
504
- t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
505
- return H(H({}, h), ht(u));
508
+ t = z(z(z({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
509
+ return z(z({}, h), ut(u));
506
510
  }, {}));
507
511
  continue;
508
512
  case "engineering":
509
- t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
510
- return H(H({}, h), ht(u));
513
+ t = z(z(z({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
514
+ return z(z({}, h), ut(u));
511
515
  }, {}));
512
516
  continue;
513
517
  case "notation-simple":
@@ -552,41 +556,41 @@ function bn(e) {
552
556
  case "integer-width":
553
557
  if (i.options.length > 1)
554
558
  throw new RangeError("integer-width stems only accept a single optional option");
555
- i.options[0].replace(vn, function(h, u, l, d, m, y) {
559
+ i.options[0].replace(vn, function(h, u, l, d, m, v) {
556
560
  if (u)
557
561
  t.minimumIntegerDigits = l.length;
558
562
  else {
559
563
  if (d && m)
560
564
  throw new Error("We currently do not support maximum integer digits");
561
- if (y)
565
+ if (v)
562
566
  throw new Error("We currently do not support exact integer digits");
563
567
  }
564
568
  return "";
565
569
  });
566
570
  continue;
567
571
  }
568
- if (Yt.test(i.stem)) {
572
+ if (Qt.test(i.stem)) {
569
573
  t.minimumIntegerDigits = i.stem.length;
570
574
  continue;
571
575
  }
572
- if (ct.test(i.stem)) {
576
+ if (lt.test(i.stem)) {
573
577
  if (i.options.length > 1)
574
578
  throw new RangeError("Fraction-precision stems only accept a single optional option");
575
- i.stem.replace(ct, function(h, u, l, d, m, y) {
576
- return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
579
+ i.stem.replace(lt, function(h, u, l, d, m, v) {
580
+ return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && v ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + v.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
577
581
  });
578
582
  var o = i.options[0];
579
- o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), ut(o)));
583
+ o === "w" ? t = z(z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = z(z({}, t), ct(o)));
580
584
  continue;
581
585
  }
582
- if (Qt.test(i.stem)) {
583
- t = H(H({}, t), ut(i.stem));
586
+ if (Jt.test(i.stem)) {
587
+ t = z(z({}, t), ct(i.stem));
584
588
  continue;
585
589
  }
586
- var a = Kt(i.stem);
587
- a && (t = H(H({}, t), a));
590
+ var a = Yt(i.stem);
591
+ a && (t = z(z({}, t), a));
588
592
  var s = kn(i.stem);
589
- s && (t = H(H({}, t), s));
593
+ s && (t = z(z({}, t), s));
590
594
  }
591
595
  return t;
592
596
  }
@@ -2043,20 +2047,20 @@ function Cn(e) {
2043
2047
  var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
2044
2048
  return i[0];
2045
2049
  }
2046
- var Le, Sn = new RegExp("^".concat(Jt.source, "*")), xn = new RegExp("".concat(Jt.source, "*$"));
2050
+ var Re, Sn = new RegExp("^".concat(Zt.source, "*")), xn = new RegExp("".concat(Zt.source, "*$"));
2047
2051
  function N(e, t) {
2048
2052
  return { start: e, end: t };
2049
2053
  }
2050
- var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, wn = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, Bn = Pn ? Number.isSafeInteger : function(e) {
2054
+ var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, wn = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, Bn = Pn ? Number.isSafeInteger : function(e) {
2051
2055
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2052
- }, Fe = !0;
2056
+ }, Ve = !0;
2053
2057
  try {
2054
- var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2055
- Fe = ((Le = zn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2058
+ var On = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2059
+ Ve = ((Re = On.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
2056
2060
  } catch {
2057
- Fe = !1;
2061
+ Ve = !1;
2058
2062
  }
2059
- var dt = Mn ? (
2063
+ var ht = Tn ? (
2060
2064
  // Native
2061
2065
  function(t, r, n) {
2062
2066
  return t.startsWith(r, n);
@@ -2066,7 +2070,7 @@ var dt = Mn ? (
2066
2070
  function(t, r, n) {
2067
2071
  return t.slice(n, n + r.length) === r;
2068
2072
  }
2069
- ), Ve = Tn ? String.fromCodePoint : (
2073
+ ), Xe = Mn ? String.fromCodePoint : (
2070
2074
  // IE11
2071
2075
  function() {
2072
2076
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2078,7 +2082,7 @@ var dt = Mn ? (
2078
2082
  }
2079
2083
  return n;
2080
2084
  }
2081
- ), mt = (
2085
+ ), dt = (
2082
2086
  // native
2083
2087
  wn ? Object.fromEntries : (
2084
2088
  // Ponyfill
@@ -2090,7 +2094,7 @@ var dt = Mn ? (
2090
2094
  return r;
2091
2095
  }
2092
2096
  )
2093
- ), $t = Nn ? (
2097
+ ), Kt = Nn ? (
2094
2098
  // Native
2095
2099
  function(t, r) {
2096
2100
  return t.codePointAt(r);
@@ -2104,7 +2108,7 @@ var dt = Mn ? (
2104
2108
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2105
2109
  }
2106
2110
  }
2107
- ), On = An ? (
2111
+ ), zn = An ? (
2108
2112
  // Native
2109
2113
  function(t) {
2110
2114
  return t.trimStart();
@@ -2125,27 +2129,27 @@ var dt = Mn ? (
2125
2129
  return t.replace(xn, "");
2126
2130
  }
2127
2131
  );
2128
- function er(e, t) {
2132
+ function $t(e, t) {
2129
2133
  return new RegExp(e, t);
2130
2134
  }
2131
- var Xe;
2132
- if (Fe) {
2133
- var gt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2134
- Xe = function(t, r) {
2135
+ var qe;
2136
+ if (Ve) {
2137
+ var mt = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2138
+ qe = function(t, r) {
2135
2139
  var n;
2136
- gt.lastIndex = r;
2137
- var i = gt.exec(t);
2140
+ mt.lastIndex = r;
2141
+ var i = mt.exec(t);
2138
2142
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2139
2143
  };
2140
2144
  } else
2141
- Xe = function(t, r) {
2145
+ qe = function(t, r) {
2142
2146
  for (var n = []; ; ) {
2143
- var i = $t(t, r);
2144
- if (i === void 0 || tr(i) || Un(i))
2147
+ var i = Kt(t, r);
2148
+ if (i === void 0 || er(i) || Un(i))
2145
2149
  break;
2146
2150
  n.push(i), r += i >= 65536 ? 2 : 1;
2147
2151
  }
2148
- return Ve.apply(void 0, n);
2152
+ return Xe.apply(void 0, n);
2149
2153
  };
2150
2154
  var jn = (
2151
2155
  /** @class */
@@ -2171,14 +2175,14 @@ var jn = (
2171
2175
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2172
2176
  var s = this.clonePosition();
2173
2177
  this.bump(), i.push({
2174
- type: B.pound,
2178
+ type: P.pound,
2175
2179
  location: N(s, this.clonePosition())
2176
2180
  });
2177
2181
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2178
2182
  if (n)
2179
2183
  break;
2180
2184
  return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
2181
- } else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
2185
+ } else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
2182
2186
  var a = this.parseTag(t, r);
2183
2187
  if (a.err)
2184
2188
  return a;
@@ -2199,7 +2203,7 @@ var jn = (
2199
2203
  if (this.bumpSpace(), this.bumpIf("/>"))
2200
2204
  return {
2201
2205
  val: {
2202
- type: B.literal,
2206
+ type: P.literal,
2203
2207
  value: "<".concat(i, "/>"),
2204
2208
  location: N(n, this.clonePosition())
2205
2209
  },
@@ -2211,12 +2215,12 @@ var jn = (
2211
2215
  return o;
2212
2216
  var a = o.val, s = this.clonePosition();
2213
2217
  if (this.bumpIf("</")) {
2214
- if (this.isEOF() || !qe(this.char()))
2218
+ if (this.isEOF() || !We(this.char()))
2215
2219
  return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
2216
2220
  var h = this.clonePosition(), u = this.parseTagName();
2217
2221
  return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2218
2222
  val: {
2219
- type: B.tag,
2223
+ type: P.tag,
2220
2224
  value: i,
2221
2225
  children: a,
2222
2226
  location: N(n, this.clonePosition())
@@ -2253,7 +2257,7 @@ var jn = (
2253
2257
  }
2254
2258
  var h = N(n, this.clonePosition());
2255
2259
  return {
2256
- val: { type: B.literal, value: i, location: h },
2260
+ val: { type: P.literal, value: i, location: h },
2257
2261
  err: null
2258
2262
  };
2259
2263
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2292,12 +2296,12 @@ var jn = (
2292
2296
  r.push(n);
2293
2297
  this.bump();
2294
2298
  }
2295
- return Ve.apply(void 0, r);
2299
+ return Xe.apply(void 0, r);
2296
2300
  }, e.prototype.tryParseUnquoted = function(t, r) {
2297
2301
  if (this.isEOF())
2298
2302
  return null;
2299
2303
  var n = this.char();
2300
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2304
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
2301
2305
  }, e.prototype.parseArgument = function(t, r) {
2302
2306
  var n = this.clonePosition();
2303
2307
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2313,7 +2317,7 @@ var jn = (
2313
2317
  case 125:
2314
2318
  return this.bump(), {
2315
2319
  val: {
2316
- type: B.argument,
2320
+ type: P.argument,
2317
2321
  // value does not include the opening and closing braces.
2318
2322
  value: i,
2319
2323
  location: N(n, this.clonePosition())
@@ -2326,7 +2330,7 @@ var jn = (
2326
2330
  return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
2327
2331
  }
2328
2332
  }, e.prototype.parseIdentifierIfPossible = function() {
2329
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2333
+ var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
2330
2334
  this.bumpTo(i);
2331
2335
  var o = this.clonePosition(), a = N(t, o);
2332
2336
  return { value: n, location: a };
@@ -2348,43 +2352,43 @@ var jn = (
2348
2352
  var m = In(d.val);
2349
2353
  if (m.length === 0)
2350
2354
  return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
2351
- var y = N(l, this.clonePosition());
2352
- u = { style: m, styleLocation: y };
2355
+ var v = N(l, this.clonePosition());
2356
+ u = { style: m, styleLocation: v };
2353
2357
  }
2354
2358
  var f = this.tryParseArgumentClose(i);
2355
2359
  if (f.err)
2356
2360
  return f;
2357
- var g = N(i, this.clonePosition());
2358
- if (u && dt(u?.style, "::", 0)) {
2359
- var S = On(u.style.slice(2));
2361
+ var p = N(i, this.clonePosition());
2362
+ if (u && ht(u?.style, "::", 0)) {
2363
+ var C = zn(u.style.slice(2));
2360
2364
  if (s === "number") {
2361
- var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
2365
+ var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
2362
2366
  return d.err ? d : {
2363
- val: { type: B.number, value: n, location: g, style: d.val },
2367
+ val: { type: P.number, value: n, location: p, style: d.val },
2364
2368
  err: null
2365
2369
  };
2366
2370
  } else {
2367
- if (S.length === 0)
2368
- return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
2369
- var _ = S;
2370
- this.locale && (_ = En(S, this.locale));
2371
+ if (C.length === 0)
2372
+ return this.error(w.EXPECT_DATE_TIME_SKELETON, p);
2373
+ var _ = C;
2374
+ this.locale && (_ = En(C, this.locale));
2371
2375
  var m = {
2372
2376
  type: te.dateTime,
2373
2377
  pattern: _,
2374
2378
  location: u.styleLocation,
2375
- parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
2376
- }, v = s === "date" ? B.date : B.time;
2379
+ parsedOptions: this.shouldParseSkeletons ? gn(_) : {}
2380
+ }, y = s === "date" ? P.date : P.time;
2377
2381
  return {
2378
- val: { type: v, value: n, location: g, style: m },
2382
+ val: { type: y, value: n, location: p, style: m },
2379
2383
  err: null
2380
2384
  };
2381
2385
  }
2382
2386
  }
2383
2387
  return {
2384
2388
  val: {
2385
- type: s === "number" ? B.number : s === "date" ? B.date : B.time,
2389
+ type: s === "number" ? P.number : s === "date" ? P.date : P.time,
2386
2390
  value: n,
2387
- location: g,
2391
+ location: p,
2388
2392
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2389
2393
  },
2390
2394
  err: null
@@ -2393,43 +2397,43 @@ var jn = (
2393
2397
  case "plural":
2394
2398
  case "selectordinal":
2395
2399
  case "select": {
2396
- var C = this.clonePosition();
2400
+ var x = this.clonePosition();
2397
2401
  if (this.bumpSpace(), !this.bumpIf(","))
2398
- return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, H({}, C)));
2402
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(x, Me({}, x)));
2399
2403
  this.bumpSpace();
2400
- var P = this.parseIdentifierIfPossible(), E = 0;
2401
- if (s !== "select" && P.value === "offset") {
2404
+ var H = this.parseIdentifierIfPossible(), b = 0;
2405
+ if (s !== "select" && H.value === "offset") {
2402
2406
  if (!this.bumpIf(":"))
2403
2407
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
2404
2408
  this.bumpSpace();
2405
2409
  var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2406
2410
  if (d.err)
2407
2411
  return d;
2408
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), E = d.val;
2412
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), b = d.val;
2409
2413
  }
2410
- var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
2411
- if (z.err)
2412
- return z;
2414
+ var B = this.tryParsePluralOrSelectOptions(t, s, r, H);
2415
+ if (B.err)
2416
+ return B;
2413
2417
  var f = this.tryParseArgumentClose(i);
2414
2418
  if (f.err)
2415
2419
  return f;
2416
- var W = N(i, this.clonePosition());
2420
+ var O = N(i, this.clonePosition());
2417
2421
  return s === "select" ? {
2418
2422
  val: {
2419
- type: B.select,
2423
+ type: P.select,
2420
2424
  value: n,
2421
- options: mt(z.val),
2422
- location: W
2425
+ options: dt(B.val),
2426
+ location: O
2423
2427
  },
2424
2428
  err: null
2425
2429
  } : {
2426
2430
  val: {
2427
- type: B.plural,
2431
+ type: P.plural,
2428
2432
  value: n,
2429
- options: mt(z.val),
2430
- offset: E,
2433
+ options: dt(B.val),
2434
+ offset: b,
2431
2435
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2432
- location: W
2436
+ location: O
2433
2437
  },
2434
2438
  err: null
2435
2439
  };
@@ -2505,20 +2509,20 @@ var jn = (
2505
2509
  if (h.has(u))
2506
2510
  return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2507
2511
  u === "other" && (a = !0), this.bumpSpace();
2508
- var y = this.clonePosition();
2512
+ var v = this.clonePosition();
2509
2513
  if (!this.bumpIf("{"))
2510
2514
  return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
2511
2515
  var f = this.parseMessage(t + 1, r, n);
2512
2516
  if (f.err)
2513
2517
  return f;
2514
- var g = this.tryParseArgumentClose(y);
2515
- if (g.err)
2516
- return g;
2518
+ var p = this.tryParseArgumentClose(v);
2519
+ if (p.err)
2520
+ return p;
2517
2521
  s.push([
2518
2522
  u,
2519
2523
  {
2520
2524
  value: f.val,
2521
- location: N(y, this.clonePosition())
2525
+ location: N(v, this.clonePosition())
2522
2526
  }
2523
2527
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2524
2528
  }
@@ -2549,7 +2553,7 @@ var jn = (
2549
2553
  var t = this.position.offset;
2550
2554
  if (t >= this.message.length)
2551
2555
  throw Error("out of bound");
2552
- var r = $t(this.message, t);
2556
+ var r = Kt(this.message, t);
2553
2557
  if (r === void 0)
2554
2558
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2555
2559
  return r;
@@ -2568,7 +2572,7 @@ var jn = (
2568
2572
  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);
2569
2573
  }
2570
2574
  }, e.prototype.bumpIf = function(t) {
2571
- if (dt(this.message, t, this.offset())) {
2575
+ if (ht(this.message, t, this.offset())) {
2572
2576
  for (var r = 0; r < t.length; r++)
2573
2577
  this.bump();
2574
2578
  return !0;
@@ -2590,7 +2594,7 @@ var jn = (
2590
2594
  break;
2591
2595
  }
2592
2596
  }, e.prototype.bumpSpace = function() {
2593
- for (; !this.isEOF() && tr(this.char()); )
2597
+ for (; !this.isEOF() && er(this.char()); )
2594
2598
  this.bump();
2595
2599
  }, e.prototype.peek = function() {
2596
2600
  if (this.isEOF())
@@ -2600,47 +2604,47 @@ var jn = (
2600
2604
  }, e;
2601
2605
  }()
2602
2606
  );
2603
- function qe(e) {
2607
+ function We(e) {
2604
2608
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2605
2609
  }
2606
2610
  function Ln(e) {
2607
- return qe(e) || e === 47;
2611
+ return We(e) || e === 47;
2608
2612
  }
2609
2613
  function Rn(e) {
2610
2614
  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;
2611
2615
  }
2612
- function tr(e) {
2616
+ function er(e) {
2613
2617
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2614
2618
  }
2615
2619
  function Un(e) {
2616
2620
  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;
2617
2621
  }
2618
- function We(e) {
2622
+ function Ze(e) {
2619
2623
  e.forEach(function(t) {
2620
- if (delete t.location, Xt(t) || qt(t))
2624
+ if (delete t.location, Vt(t) || Xt(t))
2621
2625
  for (var r in t.options)
2622
- delete t.options[r].location, We(t.options[r].value);
2626
+ delete t.options[r].location, Ze(t.options[r].value);
2623
2627
  else
2624
- Gt(t) && Zt(t.style) || (Ft(t) || Vt(t)) && Ge(t.style) ? delete t.style.location : Wt(t) && We(t.children);
2628
+ Dt(t) && Wt(t.style) || (Gt(t) || Ft(t)) && Fe(t.style) ? delete t.style.location : qt(t) && Ze(t.children);
2625
2629
  });
2626
2630
  }
2627
2631
  function Dn(e, t) {
2628
- t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2632
+ t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2629
2633
  var r = new jn(e, t).parse();
2630
2634
  if (r.err) {
2631
2635
  var n = SyntaxError(w[r.err.kind]);
2632
2636
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
2633
2637
  }
2634
- return t?.captureLocation || We(r.val), r.val;
2638
+ return t?.captureLocation || Ze(r.val), r.val;
2635
2639
  }
2636
2640
  var re;
2637
2641
  (function(e) {
2638
2642
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2639
2643
  })(re || (re = {}));
2640
- var He = (
2644
+ var Pe = (
2641
2645
  /** @class */
2642
2646
  function(e) {
2643
- Ae(t, e);
2647
+ He(t, e);
2644
2648
  function t(r, n, i) {
2645
2649
  var o = e.call(this, r) || this;
2646
2650
  return o.code = n, o.originalMessage = i, o;
@@ -2652,30 +2656,30 @@ var He = (
2652
2656
  ), pt = (
2653
2657
  /** @class */
2654
2658
  function(e) {
2655
- Ae(t, e);
2659
+ He(t, e);
2656
2660
  function t(r, n, i, o) {
2657
2661
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
2658
2662
  }
2659
2663
  return t;
2660
- }(He)
2664
+ }(Pe)
2661
2665
  ), Gn = (
2662
2666
  /** @class */
2663
2667
  function(e) {
2664
- Ae(t, e);
2668
+ He(t, e);
2665
2669
  function t(r, n, i) {
2666
2670
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
2667
2671
  }
2668
2672
  return t;
2669
- }(He)
2673
+ }(Pe)
2670
2674
  ), Fn = (
2671
2675
  /** @class */
2672
2676
  function(e) {
2673
- Ae(t, e);
2677
+ He(t, e);
2674
2678
  function t(r, n) {
2675
2679
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
2676
2680
  }
2677
2681
  return t;
2678
- }(He)
2682
+ }(Pe)
2679
2683
  ), D;
2680
2684
  (function(e) {
2681
2685
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -2690,7 +2694,7 @@ function Xn(e) {
2690
2694
  return typeof e == "function";
2691
2695
  }
2692
2696
  function xe(e, t, r, n, i, o, a) {
2693
- if (e.length === 1 && lt(e[0]))
2697
+ if (e.length === 1 && st(e[0]))
2694
2698
  return [
2695
2699
  {
2696
2700
  type: D.literal,
@@ -2699,7 +2703,7 @@ function xe(e, t, r, n, i, o, a) {
2699
2703
  ];
2700
2704
  for (var s = [], h = 0, u = e; h < u.length; h++) {
2701
2705
  var l = u[h];
2702
- if (lt(l)) {
2706
+ if (st(l)) {
2703
2707
  s.push({
2704
2708
  type: D.literal,
2705
2709
  value: l.value
@@ -2724,80 +2728,80 @@ function xe(e, t, r, n, i, o, a) {
2724
2728
  });
2725
2729
  continue;
2726
2730
  }
2727
- if (Ft(l)) {
2728
- var y = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
2731
+ if (Gt(l)) {
2732
+ var v = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
2729
2733
  s.push({
2730
2734
  type: D.literal,
2731
- value: r.getDateTimeFormat(t, y).format(m)
2735
+ value: r.getDateTimeFormat(t, v).format(m)
2732
2736
  });
2733
2737
  continue;
2734
2738
  }
2735
- if (Vt(l)) {
2736
- var y = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
2739
+ if (Ft(l)) {
2740
+ var v = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
2737
2741
  s.push({
2738
2742
  type: D.literal,
2739
- value: r.getDateTimeFormat(t, y).format(m)
2743
+ value: r.getDateTimeFormat(t, v).format(m)
2740
2744
  });
2741
2745
  continue;
2742
2746
  }
2743
- if (Gt(l)) {
2744
- var y = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
2745
- y && y.scale && (m = m * (y.scale || 1)), s.push({
2747
+ if (Dt(l)) {
2748
+ var v = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
2749
+ v && v.scale && (m = m * (v.scale || 1)), s.push({
2746
2750
  type: D.literal,
2747
- value: r.getNumberFormat(t, y).format(m)
2751
+ value: r.getNumberFormat(t, v).format(m)
2748
2752
  });
2749
2753
  continue;
2750
2754
  }
2751
- if (Wt(l)) {
2752
- var f = l.children, g = l.value, S = i[g];
2753
- if (!Xn(S))
2754
- throw new Gn(g, "function", a);
2755
- var _ = xe(f, t, r, n, i, o), v = S(_.map(function(E) {
2756
- return E.value;
2755
+ if (qt(l)) {
2756
+ var f = l.children, p = l.value, C = i[p];
2757
+ if (!Xn(C))
2758
+ throw new Gn(p, "function", a);
2759
+ var _ = xe(f, t, r, n, i, o), y = C(_.map(function(b) {
2760
+ return b.value;
2757
2761
  }));
2758
- Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
2762
+ Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(b) {
2759
2763
  return {
2760
- type: typeof E == "string" ? D.literal : D.object,
2761
- value: E
2764
+ type: typeof b == "string" ? D.literal : D.object,
2765
+ value: b
2762
2766
  };
2763
2767
  }));
2764
2768
  }
2765
- if (Xt(l)) {
2766
- var C = l.options[m] || l.options.other;
2767
- if (!C)
2769
+ if (Vt(l)) {
2770
+ var x = l.options[m] || l.options.other;
2771
+ if (!x)
2768
2772
  throw new pt(l.value, m, Object.keys(l.options), a);
2769
- s.push.apply(s, xe(C.value, t, r, n, i));
2773
+ s.push.apply(s, xe(x.value, t, r, n, i));
2770
2774
  continue;
2771
2775
  }
2772
- if (qt(l)) {
2773
- var C = l.options["=".concat(m)];
2774
- if (!C) {
2776
+ if (Xt(l)) {
2777
+ var x = l.options["=".concat(m)];
2778
+ if (!x) {
2775
2779
  if (!Intl.PluralRules)
2776
- throw new He(`Intl.PluralRules is not available in this environment.
2780
+ throw new Pe(`Intl.PluralRules is not available in this environment.
2777
2781
  Try polyfilling it using "@formatjs/intl-pluralrules"
2778
2782
  `, re.MISSING_INTL_API, a);
2779
- var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
2780
- C = l.options[P] || l.options.other;
2783
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
2784
+ x = l.options[H] || l.options.other;
2781
2785
  }
2782
- if (!C)
2786
+ if (!x)
2783
2787
  throw new pt(l.value, m, Object.keys(l.options), a);
2784
- s.push.apply(s, xe(C.value, t, r, n, i, m - (l.offset || 0)));
2788
+ s.push.apply(s, xe(x.value, t, r, n, i, m - (l.offset || 0)));
2785
2789
  continue;
2786
2790
  }
2787
2791
  }
2788
2792
  return Vn(s);
2789
2793
  }
2790
2794
  function qn(e, t) {
2791
- return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2792
- return r[n] = H(H({}, e[n]), t[n] || {}), r;
2795
+ return t ? q(q(q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2796
+ return r[n] = q(q({}, e[n]), t[n] || {}), r;
2793
2797
  }, {})) : e;
2794
2798
  }
2795
2799
  function Wn(e, t) {
2796
2800
  return t ? Object.keys(e).reduce(function(r, n) {
2797
2801
  return r[n] = qn(e[n], t[n]), r;
2798
- }, H({}, e)) : e;
2802
+ }, q({}, e)) : e;
2799
2803
  }
2800
- function Re(e) {
2804
+ function Ue(e) {
2801
2805
  return {
2802
2806
  create: function() {
2803
2807
  return {
@@ -2817,29 +2821,29 @@ function Zn(e) {
2817
2821
  dateTime: {},
2818
2822
  pluralRules: {}
2819
2823
  }), {
2820
- getNumberFormat: Ie(function() {
2824
+ getNumberFormat: je(function() {
2821
2825
  for (var t, r = [], n = 0; n < arguments.length; n++)
2822
2826
  r[n] = arguments[n];
2823
- return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
2827
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
2824
2828
  }, {
2825
- cache: Re(e.number),
2826
- strategy: je.variadic
2829
+ cache: Ue(e.number),
2830
+ strategy: Le.variadic
2827
2831
  }),
2828
- getDateTimeFormat: Ie(function() {
2832
+ getDateTimeFormat: je(function() {
2829
2833
  for (var t, r = [], n = 0; n < arguments.length; n++)
2830
2834
  r[n] = arguments[n];
2831
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
2835
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
2832
2836
  }, {
2833
- cache: Re(e.dateTime),
2834
- strategy: je.variadic
2837
+ cache: Ue(e.dateTime),
2838
+ strategy: Le.variadic
2835
2839
  }),
2836
- getPluralRules: Ie(function() {
2840
+ getPluralRules: je(function() {
2837
2841
  for (var t, r = [], n = 0; n < arguments.length; n++)
2838
2842
  r[n] = arguments[n];
2839
- return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
2843
+ return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
2840
2844
  }, {
2841
- cache: Re(e.pluralRules),
2842
- strategy: je.variadic
2845
+ cache: Ue(e.pluralRules),
2846
+ strategy: Le.variadic
2843
2847
  })
2844
2848
  };
2845
2849
  }
@@ -2875,8 +2879,8 @@ var Jn = (
2875
2879
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2876
2880
  var a = i || {};
2877
2881
  a.formatters;
2878
- var s = on(a, ["formatters"]);
2879
- this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
2882
+ var s = nn(a, ["formatters"]);
2883
+ this.ast = e.__parse(t, q(q({}, s), { locale: this.resolvedLocale }));
2880
2884
  } else
2881
2885
  this.ast = t;
2882
2886
  if (!Array.isArray(this.ast))
@@ -2976,28 +2980,28 @@ function Qn(e, t) {
2976
2980
  n = void 0;
2977
2981
  return n;
2978
2982
  }
2979
- const J = {}, Yn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), rr = (e, t) => {
2983
+ const J = {}, Yn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), tr = (e, t) => {
2980
2984
  if (t == null)
2981
2985
  return;
2982
2986
  if (t in J && e in J[t])
2983
2987
  return J[t][e];
2984
- const r = Pe(t);
2988
+ const r = Be(t);
2985
2989
  for (let n = 0; n < r.length; n++) {
2986
2990
  const i = r[n], o = $n(i, e);
2987
2991
  if (o)
2988
2992
  return Yn(e, t, o);
2989
2993
  }
2990
2994
  };
2991
- let et;
2992
- const _e = Ne({});
2995
+ let $e;
2996
+ const _e = Ae({});
2993
2997
  function Kn(e) {
2994
- return et[e] || null;
2998
+ return $e[e] || null;
2995
2999
  }
2996
- function nr(e) {
2997
- return e in et;
3000
+ function rr(e) {
3001
+ return e in $e;
2998
3002
  }
2999
3003
  function $n(e, t) {
3000
- if (!nr(e))
3004
+ if (!rr(e))
3001
3005
  return null;
3002
3006
  const r = Kn(e);
3003
3007
  return Qn(r, t);
@@ -3005,50 +3009,50 @@ function $n(e, t) {
3005
3009
  function ei(e) {
3006
3010
  if (e == null)
3007
3011
  return;
3008
- const t = Pe(e);
3012
+ const t = Be(e);
3009
3013
  for (let r = 0; r < t.length; r++) {
3010
3014
  const n = t[r];
3011
- if (nr(n))
3015
+ if (rr(n))
3012
3016
  return n;
3013
3017
  }
3014
3018
  }
3015
- function ir(e, ...t) {
3016
- delete J[e], _e.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
3019
+ function nr(e, ...t) {
3020
+ delete J[e], _e.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
3017
3021
  }
3018
3022
  ie(
3019
3023
  [_e],
3020
3024
  ([e]) => Object.keys(e)
3021
3025
  );
3022
- _e.subscribe((e) => et = e);
3023
- const Me = {};
3026
+ _e.subscribe((e) => $e = e);
3027
+ const Te = {};
3024
3028
  function ti(e, t) {
3025
- Me[e].delete(t), Me[e].size === 0 && delete Me[e];
3029
+ Te[e].delete(t), Te[e].size === 0 && delete Te[e];
3026
3030
  }
3027
- function or(e) {
3028
- return Me[e];
3031
+ function ir(e) {
3032
+ return Te[e];
3029
3033
  }
3030
3034
  function ri(e) {
3031
- return Pe(e).map((t) => {
3032
- const r = or(t);
3035
+ return Be(e).map((t) => {
3036
+ const r = ir(t);
3033
3037
  return [t, r ? [...r] : []];
3034
3038
  }).filter(([, t]) => t.length > 0);
3035
3039
  }
3036
- function Ze(e) {
3037
- return e == null ? !1 : Pe(e).some(
3040
+ function Je(e) {
3041
+ return e == null ? !1 : Be(e).some(
3038
3042
  (t) => {
3039
3043
  var r;
3040
- return (r = or(t)) == null ? void 0 : r.size;
3044
+ return (r = ir(t)) == null ? void 0 : r.size;
3041
3045
  }
3042
3046
  );
3043
3047
  }
3044
3048
  function ni(e, t) {
3045
3049
  return Promise.all(
3046
3050
  t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
3047
- ).then((n) => ir(e, ...n));
3051
+ ).then((n) => nr(e, ...n));
3048
3052
  }
3049
3053
  const he = {};
3050
- function ar(e) {
3051
- if (!Ze(e))
3054
+ function or(e) {
3055
+ if (!Je(e))
3052
3056
  return e in he ? he[e] : Promise.resolve();
3053
3057
  const t = ri(e);
3054
3058
  return he[e] = Promise.all(
@@ -3056,8 +3060,8 @@ function ar(e) {
3056
3060
  ([r, n]) => ni(r, n)
3057
3061
  )
3058
3062
  ).then(() => {
3059
- if (Ze(e))
3060
- return ar(e);
3063
+ if (Je(e))
3064
+ return or(e);
3061
3065
  delete he[e];
3062
3066
  }), he[e];
3063
3067
  }
@@ -3101,96 +3105,96 @@ const ii = {
3101
3105
  function ne() {
3102
3106
  return ai;
3103
3107
  }
3104
- const Ue = Ne(!1);
3105
- var si = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
3108
+ const De = Ae(!1);
3109
+ var si = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
3106
3110
  for (var r in t || (t = {}))
3107
- ui.call(t, r) && _t(e, r, t[r]);
3108
- if (ft)
3109
- for (var r of ft(t))
3110
- hi.call(t, r) && _t(e, r, t[r]);
3111
+ ui.call(t, r) && ft(e, r, t[r]);
3112
+ if (gt)
3113
+ for (var r of gt(t))
3114
+ hi.call(t, r) && ft(e, r, t[r]);
3111
3115
  return e;
3112
3116
  }, mi = (e, t) => li(e, ci(t));
3113
- let Je;
3114
- const Te = Ne(null);
3115
- function yt(e) {
3117
+ let Qe;
3118
+ const we = Ae(null);
3119
+ function _t(e) {
3116
3120
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3117
3121
  }
3118
- function Pe(e, t = ne().fallbackLocale) {
3119
- const r = yt(e);
3120
- return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
3122
+ function Be(e, t = ne().fallbackLocale) {
3123
+ const r = _t(e);
3124
+ return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
3121
3125
  }
3122
3126
  function Y() {
3123
- return Je ?? void 0;
3127
+ return Qe ?? void 0;
3124
3128
  }
3125
- Te.subscribe((e) => {
3126
- Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3129
+ we.subscribe((e) => {
3130
+ Qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3127
3131
  });
3128
- const gi = (e) => {
3129
- if (e && ei(e) && Ze(e)) {
3132
+ const pi = (e) => {
3133
+ if (e && ei(e) && Je(e)) {
3130
3134
  const { loadingDelay: t } = ne();
3131
3135
  let r;
3132
3136
  return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
3133
- () => Ue.set(!0),
3137
+ () => De.set(!0),
3134
3138
  t
3135
- ) : Ue.set(!0), ar(e).then(() => {
3136
- Te.set(e);
3139
+ ) : De.set(!0), or(e).then(() => {
3140
+ we.set(e);
3137
3141
  }).finally(() => {
3138
- clearTimeout(r), Ue.set(!1);
3142
+ clearTimeout(r), De.set(!1);
3139
3143
  });
3140
3144
  }
3141
- return Te.set(e);
3142
- }, oe = mi(di({}, Te), {
3143
- set: gi
3144
- }), Be = (e) => {
3145
+ return we.set(e);
3146
+ }, oe = mi(di({}, we), {
3147
+ set: pi
3148
+ }), Oe = (e) => {
3145
3149
  const t = /* @__PURE__ */ Object.create(null);
3146
3150
  return (n) => {
3147
3151
  const i = JSON.stringify(n);
3148
3152
  return i in t ? t[i] : t[i] = e(n);
3149
3153
  };
3150
3154
  };
3151
- var pi = Object.defineProperty, we = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
3155
+ var gi = Object.defineProperty, Ne = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
3152
3156
  for (var r in t || (t = {}))
3153
- sr.call(t, r) && vt(e, r, t[r]);
3154
- if (we)
3155
- for (var r of we(t))
3156
- lr.call(t, r) && vt(e, r, t[r]);
3157
+ ar.call(t, r) && yt(e, r, t[r]);
3158
+ if (Ne)
3159
+ for (var r of Ne(t))
3160
+ sr.call(t, r) && yt(e, r, t[r]);
3157
3161
  return e;
3158
3162
  }, ae = (e, t) => {
3159
3163
  var r = {};
3160
3164
  for (var n in e)
3161
- sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3162
- if (e != null && we)
3163
- for (var n of we(e))
3164
- t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
3165
+ ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3166
+ if (e != null && Ne)
3167
+ for (var n of Ne(e))
3168
+ t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
3165
3169
  return r;
3166
3170
  };
3167
- const ge = (e, t) => {
3171
+ const pe = (e, t) => {
3168
3172
  const { formats: r } = ne();
3169
3173
  if (e in r && t in r[e])
3170
3174
  return r[e][t];
3171
3175
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3172
- }, fi = Be(
3176
+ }, fi = Oe(
3173
3177
  (e) => {
3174
3178
  var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3175
3179
  if (r == null)
3176
3180
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3177
- return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
3181
+ return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
3178
3182
  }
3179
- ), _i = Be(
3183
+ ), _i = Oe(
3180
3184
  (e) => {
3181
3185
  var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3182
3186
  if (r == null)
3183
3187
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3184
- return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
3188
+ return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
3185
3189
  }
3186
- ), yi = Be(
3190
+ ), yi = Oe(
3187
3191
  (e) => {
3188
3192
  var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3189
3193
  if (r == null)
3190
3194
  throw new Error(
3191
3195
  '[svelte-i18n] A "locale" must be set to format time values'
3192
3196
  );
3193
- return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
3197
+ return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
3194
3198
  }
3195
3199
  ), vi = (e = {}) => {
3196
3200
  var t = e, {
@@ -3198,22 +3202,22 @@ const ge = (e, t) => {
3198
3202
  } = t, n = ae(t, [
3199
3203
  "locale"
3200
3204
  ]);
3201
- return fi(tt({ locale: r }, n));
3205
+ return fi(et({ locale: r }, n));
3202
3206
  }, ki = (e = {}) => {
3203
3207
  var t = e, {
3204
3208
  locale: r = Y()
3205
3209
  } = t, n = ae(t, [
3206
3210
  "locale"
3207
3211
  ]);
3208
- return _i(tt({ locale: r }, n));
3212
+ return _i(et({ locale: r }, n));
3209
3213
  }, bi = (e = {}) => {
3210
3214
  var t = e, {
3211
3215
  locale: r = Y()
3212
3216
  } = t, n = ae(t, [
3213
3217
  "locale"
3214
3218
  ]);
3215
- return yi(tt({ locale: r }, n));
3216
- }, Ei = Be(
3219
+ return yi(et({ locale: r }, n));
3220
+ }, Ei = Oe(
3217
3221
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3218
3222
  (e, t = Y()) => new Jn(e, t, ne().formats, {
3219
3223
  ignoreTag: ne().ignoreTag
@@ -3231,7 +3235,7 @@ const ge = (e, t) => {
3231
3235
  throw new Error(
3232
3236
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3233
3237
  );
3234
- let l = rr(e, h);
3238
+ let l = tr(e, h);
3235
3239
  if (!l)
3236
3240
  l = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3237
3241
  else if (typeof l != "string")
@@ -3250,18 +3254,18 @@ const ge = (e, t) => {
3250
3254
  );
3251
3255
  }
3252
3256
  return d;
3253
- }, Si = (e, t) => bi(t).format(e), xi = (e, t) => ki(t).format(e), Mi = (e, t) => vi(t).format(e), Ti = (e, t = Y()) => rr(e, t), wi = ie([oe, _e], () => Ci);
3257
+ }, Si = (e, t) => bi(t).format(e), xi = (e, t) => ki(t).format(e), Ti = (e, t) => vi(t).format(e), Mi = (e, t = Y()) => tr(e, t), wi = ie([oe, _e], () => Ci);
3254
3258
  ie([oe], () => Si);
3255
3259
  ie([oe], () => xi);
3256
- ie([oe], () => Mi);
3257
- ie([oe, _e], () => Ti);
3258
- function kt(e, t) {
3259
- ir(e, t);
3260
+ ie([oe], () => Ti);
3261
+ ie([oe, _e], () => Mi);
3262
+ function vt(e, t) {
3263
+ nr(e, t);
3260
3264
  }
3261
3265
  function Ni(e) {
3262
3266
  oe.set(e);
3263
3267
  }
3264
- const bt = {
3268
+ const kt = {
3265
3269
  en: {
3266
3270
  invalidUrl: "Failed to construct 'URL': Invalid URL",
3267
3271
  fetchConsentsError: "Error: Could not fetch consents.",
@@ -3833,7 +3837,7 @@ if (typeof window < "u") {
3833
3837
  }
3834
3838
  };
3835
3839
  };
3836
- customElements.define = e(customElements.define), import("./GeneralAnimationLoading-D9yegS5O.js").then((t) => t.G).then(({ default: t }) => {
3840
+ customElements.define = e(customElements.define), import("./GeneralAnimationLoading-Bl4q3liU.js").then((t) => t.G).then(({ default: t }) => {
3837
3841
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
3838
3842
  });
3839
3843
  }
@@ -3841,37 +3845,37 @@ function Ai(e) {
3841
3845
  let t, r;
3842
3846
  return {
3843
3847
  c() {
3844
- t = ot("svg"), r = ot("path"), b(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"), b(t, "xmlns", "http://www.w3.org/2000/svg"), b(t, "viewBox", "0 0 512 512");
3848
+ t = it("svg"), r = it("path"), E(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"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "viewBox", "0 0 512 512");
3845
3849
  },
3846
3850
  m(n, i) {
3847
- j(n, t, i), x(t, r);
3851
+ L(n, t, i), S(t, r);
3848
3852
  },
3849
- p: q,
3850
- i: q,
3851
- o: q,
3853
+ p: W,
3854
+ i: W,
3855
+ o: W,
3852
3856
  d(n) {
3853
- n && L(t);
3857
+ n && j(t);
3854
3858
  }
3855
3859
  };
3856
3860
  }
3857
- class Hi extends It {
3861
+ class Hi extends zt {
3858
3862
  constructor(t) {
3859
- super(), jt(this, t, null, Ai, Qe, {});
3863
+ super(), It(this, t, null, Ai, Ye, {});
3860
3864
  }
3861
3865
  }
3862
3866
  customElements.define("circle-exclamation-icon", Ot(Hi, {}, [], [], !0));
3863
3867
  function Pi(e) {
3864
- Br(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}');
3868
+ Pr(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}');
3865
3869
  }
3866
- function Et(e, t, r) {
3870
+ function bt(e, t, r) {
3867
3871
  const n = e.slice();
3868
3872
  return n[64] = t[r], n;
3869
3873
  }
3870
- function Ct(e, t, r) {
3874
+ function Et(e, t, r) {
3871
3875
  const n = e.slice();
3872
3876
  return n[61] = t[r], n[62] = t, n[63] = r, n;
3873
3877
  }
3874
- function St(e, t, r) {
3878
+ function Ct(e, t, r) {
3875
3879
  const n = e.slice();
3876
3880
  return n[64] = t[r], n;
3877
3881
  }
@@ -3881,16 +3885,16 @@ function Bi(e) {
3881
3885
  e[9]
3882
3886
  ), i = [];
3883
3887
  for (let o = 0; o < n.length; o += 1)
3884
- i[o] = xt(Et(e, n, o));
3888
+ i[o] = St(bt(e, n, o));
3885
3889
  return {
3886
3890
  c() {
3887
3891
  t = A("div"), r = A("form");
3888
3892
  for (let o = 0; o < i.length; o += 1)
3889
3893
  i[o].c();
3890
- b(r, "class", "checkbox svelte-etk3ty"), b(t, "class", "legacyStyle");
3894
+ E(r, "class", "checkbox svelte-etk3ty"), E(t, "class", "legacyStyle");
3891
3895
  },
3892
3896
  m(o, a) {
3893
- j(o, t, a), x(t, r);
3897
+ L(o, t, a), S(t, r);
3894
3898
  for (let s = 0; s < i.length; s += 1)
3895
3899
  i[s] && i[s].m(r, null);
3896
3900
  e[31](r);
@@ -3904,8 +3908,8 @@ function Bi(e) {
3904
3908
  );
3905
3909
  let s;
3906
3910
  for (s = 0; s < n.length; s += 1) {
3907
- const h = Et(o, n, s);
3908
- i[s] ? i[s].p(h, a) : (i[s] = xt(h), i[s].c(), i[s].m(r, null));
3911
+ const h = bt(o, n, s);
3912
+ i[s] ? i[s].p(h, a) : (i[s] = St(h), i[s].c(), i[s].m(r, null));
3909
3913
  }
3910
3914
  for (; s < i.length; s += 1)
3911
3915
  i[s].d(1);
@@ -3913,11 +3917,11 @@ function Bi(e) {
3913
3917
  }
3914
3918
  },
3915
3919
  d(o) {
3916
- o && L(t), Ye(i, o), e[31](null);
3920
+ o && j(t), Ke(i, o), e[31](null);
3917
3921
  }
3918
3922
  };
3919
3923
  }
3920
- function zi(e) {
3924
+ function Oi(e) {
3921
3925
  let t = (
3922
3926
  /*$_*/
3923
3927
  e[16]("title") || /*$_*/
@@ -3925,88 +3929,88 @@ function zi(e) {
3925
3929
  ), r, n, i, o = (
3926
3930
  /*$_*/
3927
3931
  (e[16]("saveButtonContent") || "Save Consents") + ""
3928
- ), a, s, h, u, l, d = t && Mt(e), m = $(
3932
+ ), a, s, h, u, l, d = t && xt(e), m = $(
3929
3933
  /*consentsCategories*/
3930
3934
  e[8]
3931
- ), y = [];
3932
- for (let g = 0; g < m.length; g += 1)
3933
- y[g] = Pt(Ct(e, m, g));
3935
+ ), v = [];
3936
+ for (let p = 0; p < m.length; p += 1)
3937
+ v[p] = Ht(Et(e, m, p));
3934
3938
  let f = (
3935
3939
  /*errorMessage*/
3936
- e[6] && Bt(e)
3940
+ e[6] && Pt(e)
3937
3941
  );
3938
3942
  return {
3939
3943
  c() {
3940
3944
  d && d.c(), r = G();
3941
- for (let g = 0; g < y.length; g += 1)
3942
- y[g].c();
3943
- n = G(), i = A("button"), s = G(), f && f.c(), h = Ur(), b(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
3945
+ for (let p = 0; p < v.length; p += 1)
3946
+ v[p].c();
3947
+ n = G(), i = A("button"), s = G(), f && f.c(), h = zr(), E(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
3944
3948
  e[14];
3945
3949
  },
3946
- m(g, S) {
3947
- d && d.m(g, S), j(g, r, S);
3948
- for (let _ = 0; _ < y.length; _ += 1)
3949
- y[_] && y[_].m(g, S);
3950
- j(g, n, S), j(g, i, S), i.innerHTML = o, j(g, s, S), f && f.m(g, S), j(g, h, S), u || (l = de(
3950
+ m(p, C) {
3951
+ d && d.m(p, C), L(p, r, C);
3952
+ for (let _ = 0; _ < v.length; _ += 1)
3953
+ v[_] && v[_].m(p, C);
3954
+ L(p, n, C), L(p, i, C), i.innerHTML = o, L(p, s, C), f && f.m(p, C), L(p, h, C), u || (l = de(
3951
3955
  i,
3952
3956
  "click",
3953
3957
  /*saveChanges*/
3954
3958
  e[17]
3955
3959
  ), u = !0);
3956
3960
  },
3957
- p(g, S) {
3958
- if (S[0] & /*$_*/
3961
+ p(p, C) {
3962
+ if (C[0] & /*$_*/
3959
3963
  65536 && (t = /*$_*/
3960
- g[16]("title") || /*$_*/
3961
- g[16]("description")), t ? d ? d.p(g, S) : (d = Mt(g), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
3964
+ p[16]("title") || /*$_*/
3965
+ p[16]("description")), t ? d ? d.p(p, C) : (d = xt(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
3962
3966
  867088) {
3963
3967
  m = $(
3964
3968
  /*consentsCategories*/
3965
- g[8]
3969
+ p[8]
3966
3970
  );
3967
3971
  let _;
3968
3972
  for (_ = 0; _ < m.length; _ += 1) {
3969
- const v = Ct(g, m, _);
3970
- y[_] ? y[_].p(v, S) : (y[_] = Pt(v), y[_].c(), y[_].m(n.parentNode, n));
3973
+ const y = Et(p, m, _);
3974
+ v[_] ? v[_].p(y, C) : (v[_] = Ht(y), v[_].c(), v[_].m(n.parentNode, n));
3971
3975
  }
3972
- for (; _ < y.length; _ += 1)
3973
- y[_].d(1);
3974
- y.length = m.length;
3976
+ for (; _ < v.length; _ += 1)
3977
+ v[_].d(1);
3978
+ v.length = m.length;
3975
3979
  }
3976
- S[0] & /*$_*/
3980
+ C[0] & /*$_*/
3977
3981
  65536 && o !== (o = /*$_*/
3978
- (g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
3982
+ (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
3979
3983
  16384 && a !== (a = !/*isValid*/
3980
- g[14]) && (i.disabled = a), /*errorMessage*/
3981
- g[6] ? f ? f.p(g, S) : (f = Bt(g), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
3984
+ p[14]) && (i.disabled = a), /*errorMessage*/
3985
+ p[6] ? f ? f.p(p, C) : (f = Pt(p), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
3982
3986
  },
3983
- d(g) {
3984
- g && (L(r), L(n), L(i), L(s), L(h)), d && d.d(g), Ye(y, g), f && f.d(g), u = !1, l();
3987
+ d(p) {
3988
+ p && (j(r), j(n), j(i), j(s), j(h)), d && d.d(p), Ke(v, p), f && f.d(p), u = !1, l();
3985
3989
  }
3986
3990
  };
3987
3991
  }
3988
- function Oi(e) {
3992
+ function zi(e) {
3989
3993
  let t, r, n;
3990
3994
  return {
3991
3995
  c() {
3992
- t = A("div"), r = A("strong"), n = pe(
3996
+ t = A("div"), r = A("strong"), n = fe(
3993
3997
  /*fatalError*/
3994
3998
  e[7]
3995
- ), b(r, "class", "ErrorMessage svelte-etk3ty"), b(t, "class", "ContainerCenter svelte-etk3ty");
3999
+ ), E(r, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ContainerCenter svelte-etk3ty");
3996
4000
  },
3997
4001
  m(i, o) {
3998
- j(i, t, o), x(t, r), x(r, n);
4002
+ L(i, t, o), S(t, r), S(r, n);
3999
4003
  },
4000
4004
  p(i, o) {
4001
4005
  o[0] & /*fatalError*/
4002
- 128 && fe(
4006
+ 128 && ge(
4003
4007
  n,
4004
4008
  /*fatalError*/
4005
4009
  i[7]
4006
4010
  );
4007
4011
  },
4008
4012
  d(i) {
4009
- i && L(t);
4013
+ i && j(t);
4010
4014
  }
4011
4015
  };
4012
4016
  }
@@ -4032,7 +4036,7 @@ function Ii(e) {
4032
4036
  );
4033
4037
  },
4034
4038
  m(r, n) {
4035
- j(r, t, n);
4039
+ L(r, t, n);
4036
4040
  },
4037
4041
  p(r, n) {
4038
4042
  n[0] & /*clientstyling*/
@@ -4056,11 +4060,11 @@ function Ii(e) {
4056
4060
  );
4057
4061
  },
4058
4062
  d(r) {
4059
- r && L(t);
4063
+ r && j(t);
4060
4064
  }
4061
4065
  };
4062
4066
  }
4063
- function xt(e) {
4067
+ function St(e) {
4064
4068
  let t, r, n, i, o, a, s, h, u = (
4065
4069
  /*$_*/
4066
4070
  (e[16](`${/*consent*/
@@ -4069,77 +4073,77 @@ function xt(e) {
4069
4073
  ), l = (
4070
4074
  /*consent*/
4071
4075
  e[64].mustAccept ? " *" : ""
4072
- ), d, m, y, f, g, S, _, v, C;
4073
- function P(...E) {
4076
+ ), d, m, v, f, p, C, _, y, x;
4077
+ function H(...b) {
4074
4078
  return (
4075
4079
  /*input_handler_1*/
4076
4080
  e[30](
4077
4081
  /*consent*/
4078
4082
  e[64],
4079
- ...E
4083
+ ...b
4080
4084
  )
4081
4085
  );
4082
4086
  }
4083
4087
  return {
4084
4088
  c() {
4085
- t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new Lt(!1), d = pe(l), y = G(), f = A("small"), S = G(), b(r, "class", "checkbox__input svelte-etk3ty"), b(r, "type", "checkbox"), r.checked = n = /*consent*/
4086
- e[64].status === "1", b(r, "id", i = `${/*consent*/
4087
- e[64].tagCode}__input`), h.a = d, b(s, "class", "checkbox__label-text svelte-etk3ty"), b(a, "class", "checkbox__label svelte-etk3ty"), b(a, "for", m = `${/*consent*/
4088
- e[64].tagCode}__input`), b(f, "class", "checkbox__error-message svelte-etk3ty"), b(f, "id", g = "checkBoxError__" + /*consent*/
4089
- e[64].tagCode), b(t, "class", _ = "checkbox__wrapper " + /*consent*/
4089
+ t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new jt(!1), d = fe(l), v = G(), f = A("small"), C = G(), E(r, "class", "checkbox__input svelte-etk3ty"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
4090
+ e[64].status === "1", E(r, "id", i = `${/*consent*/
4091
+ e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-etk3ty"), E(a, "class", "checkbox__label svelte-etk3ty"), E(a, "for", m = `${/*consent*/
4092
+ e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-etk3ty"), E(f, "id", p = "checkBoxError__" + /*consent*/
4093
+ e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
4090
4094
  e[64].tagCode + "__input svelte-etk3ty");
4091
4095
  },
4092
- m(E, z) {
4093
- j(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), h.m(u, s), x(s, d), x(t, y), x(t, f), x(t, S), v || (C = de(r, "input", P), v = !0);
4096
+ m(b, B) {
4097
+ L(b, t, B), S(t, r), S(t, o), S(t, a), S(a, s), h.m(u, s), S(s, d), S(t, v), S(t, f), S(t, C), y || (x = de(r, "input", H), y = !0);
4094
4098
  },
4095
- p(E, z) {
4096
- e = E, z[0] & /*playerConsents*/
4099
+ p(b, B) {
4100
+ e = b, B[0] & /*playerConsents*/
4097
4101
  512 && n !== (n = /*consent*/
4098
- e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
4102
+ e[64].status === "1") && (r.checked = n), B[0] & /*playerConsents*/
4099
4103
  512 && i !== (i = `${/*consent*/
4100
- e[64].tagCode}__input`) && b(r, "id", i), z[0] & /*$_, playerConsents*/
4104
+ e[64].tagCode}__input`) && E(r, "id", i), B[0] & /*$_, playerConsents*/
4101
4105
  66048 && u !== (u = /*$_*/
4102
4106
  (e[16](`${/*consent*/
4103
4107
  e[64].tagCode}__description`) || /*consent*/
4104
- e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
4108
+ e[64].tagCode) + "") && h.p(u), B[0] & /*playerConsents*/
4105
4109
  512 && l !== (l = /*consent*/
4106
- e[64].mustAccept ? " *" : "") && fe(d, l), z[0] & /*playerConsents*/
4110
+ e[64].mustAccept ? " *" : "") && ge(d, l), B[0] & /*playerConsents*/
4107
4111
  512 && m !== (m = `${/*consent*/
4108
- e[64].tagCode}__input`) && b(a, "for", m), z[0] & /*playerConsents*/
4109
- 512 && g !== (g = "checkBoxError__" + /*consent*/
4110
- e[64].tagCode) && b(f, "id", g), z[0] & /*playerConsents*/
4112
+ e[64].tagCode}__input`) && E(a, "for", m), B[0] & /*playerConsents*/
4113
+ 512 && p !== (p = "checkBoxError__" + /*consent*/
4114
+ e[64].tagCode) && E(f, "id", p), B[0] & /*playerConsents*/
4111
4115
  512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
4112
- e[64].tagCode + "__input svelte-etk3ty") && b(t, "class", _);
4116
+ e[64].tagCode + "__input svelte-etk3ty") && E(t, "class", _);
4113
4117
  },
4114
- d(E) {
4115
- E && L(t), v = !1, C();
4118
+ d(b) {
4119
+ b && j(t), y = !1, x();
4116
4120
  }
4117
4121
  };
4118
4122
  }
4119
- function Mt(e) {
4123
+ function xt(e) {
4120
4124
  let t, r = (
4121
4125
  /*$_*/
4122
4126
  e[16]("title")
4123
4127
  ), n, i = (
4124
4128
  /*$_*/
4125
4129
  e[16]("description")
4126
- ), o = r && Tt(e), a = i && wt(e);
4130
+ ), o = r && Tt(e), a = i && Mt(e);
4127
4131
  return {
4128
4132
  c() {
4129
- t = A("div"), o && o.c(), n = G(), a && a.c(), b(t, "class", "PlayerConsentsHeader svelte-etk3ty");
4133
+ t = A("div"), o && o.c(), n = G(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-etk3ty");
4130
4134
  },
4131
4135
  m(s, h) {
4132
- j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
4136
+ L(s, t, h), o && o.m(t, null), S(t, n), a && a.m(t, null);
4133
4137
  },
4134
4138
  p(s, h) {
4135
4139
  h[0] & /*$_*/
4136
4140
  65536 && (r = /*$_*/
4137
4141
  s[16]("title")), r ? o ? o.p(s, h) : (o = Tt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
4138
4142
  65536 && (i = /*$_*/
4139
- s[16]("description")), i ? a ? a.p(s, h) : (a = wt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4143
+ s[16]("description")), i ? a ? a.p(s, h) : (a = Mt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4140
4144
  },
4141
4145
  d(s) {
4142
- s && L(t), o && o.d(), a && a.d();
4146
+ s && j(t), o && o.d(), a && a.d();
4143
4147
  }
4144
4148
  };
4145
4149
  }
@@ -4150,58 +4154,58 @@ function Tt(e) {
4150
4154
  ), n;
4151
4155
  return {
4152
4156
  c() {
4153
- t = A("h2"), n = pe(r), b(t, "class", "PlayerConsentsTitle");
4157
+ t = A("h2"), n = fe(r), E(t, "class", "PlayerConsentsTitle");
4154
4158
  },
4155
4159
  m(i, o) {
4156
- j(i, t, o), x(t, n);
4160
+ L(i, t, o), S(t, n);
4157
4161
  },
4158
4162
  p(i, o) {
4159
4163
  o[0] & /*$_*/
4160
4164
  65536 && r !== (r = /*$_*/
4161
- i[16]("title") + "") && fe(n, r);
4165
+ i[16]("title") + "") && ge(n, r);
4162
4166
  },
4163
4167
  d(i) {
4164
- i && L(t);
4168
+ i && j(t);
4165
4169
  }
4166
4170
  };
4167
4171
  }
4168
- function wt(e) {
4172
+ function Mt(e) {
4169
4173
  let t, r = (
4170
4174
  /*$_*/
4171
4175
  e[16]("description") + ""
4172
4176
  ), n;
4173
4177
  return {
4174
4178
  c() {
4175
- t = A("p"), n = pe(r), b(t, "class", "PlayerConsentsDescription");
4179
+ t = A("p"), n = fe(r), E(t, "class", "PlayerConsentsDescription");
4176
4180
  },
4177
4181
  m(i, o) {
4178
- j(i, t, o), x(t, n);
4182
+ L(i, t, o), S(t, n);
4179
4183
  },
4180
4184
  p(i, o) {
4181
4185
  o[0] & /*$_*/
4182
4186
  65536 && r !== (r = /*$_*/
4183
- i[16]("description") + "") && fe(n, r);
4187
+ i[16]("description") + "") && ge(n, r);
4184
4188
  },
4185
4189
  d(i) {
4186
- i && L(t);
4190
+ i && j(t);
4187
4191
  }
4188
4192
  };
4189
4193
  }
4190
- function Nt(e) {
4194
+ function wt(e) {
4191
4195
  let t;
4192
4196
  return {
4193
4197
  c() {
4194
- t = A("sup"), t.textContent = "*", b(t, "class", "ConsentRequired svelte-etk3ty");
4198
+ t = A("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-etk3ty");
4195
4199
  },
4196
4200
  m(r, n) {
4197
- j(r, t, n);
4201
+ L(r, t, n);
4198
4202
  },
4199
4203
  d(r) {
4200
- r && L(t);
4204
+ r && j(t);
4201
4205
  }
4202
4206
  };
4203
4207
  }
4204
- function At(e) {
4208
+ function Nt(e) {
4205
4209
  let t, r = (
4206
4210
  /*$_*/
4207
4211
  (e[16](`${/*consent*/
@@ -4210,10 +4214,10 @@ function At(e) {
4210
4214
  );
4211
4215
  return {
4212
4216
  c() {
4213
- t = A("p"), b(t, "class", "ConsentDescription svelte-etk3ty");
4217
+ t = A("p"), E(t, "class", "ConsentDescription svelte-etk3ty");
4214
4218
  },
4215
4219
  m(n, i) {
4216
- j(n, t, i), t.innerHTML = r;
4220
+ L(n, t, i), t.innerHTML = r;
4217
4221
  },
4218
4222
  p(n, i) {
4219
4223
  i[0] & /*$_, playerConsents, consentsCategories*/
@@ -4223,36 +4227,36 @@ function At(e) {
4223
4227
  n[64].description) + "") && (t.innerHTML = r);
4224
4228
  },
4225
4229
  d(n) {
4226
- n && L(t);
4230
+ n && j(t);
4227
4231
  }
4228
4232
  };
4229
4233
  }
4230
- function Ht(e) {
4234
+ function At(e) {
4231
4235
  let t, r, n, i, o = (
4232
4236
  /*$_*/
4233
4237
  (e[16](`${/*consent*/
4234
4238
  e[64].tagCode}__name`) || /*consent*/
4235
4239
  e[64].friendlyName) + ""
4236
- ), a, s, h, u, l, d, m, y, f, g, S, _ = (
4240
+ ), a, s, h, u, l, d, m, v, f, p, C, _ = (
4237
4241
  /*consent*/
4238
- e[64].mustAccept === !0 && Nt()
4239
- ), v = (
4242
+ e[64].mustAccept === !0 && wt()
4243
+ ), y = (
4240
4244
  /*displayconsentdescription*/
4241
- e[4] === "true" && At(e)
4245
+ e[4] === "true" && Nt(e)
4242
4246
  );
4243
- function C(...P) {
4247
+ function x(...H) {
4244
4248
  return (
4245
4249
  /*input_handler*/
4246
4250
  e[29](
4247
4251
  /*consent*/
4248
4252
  e[64],
4249
- ...P
4253
+ ...H
4250
4254
  )
4251
4255
  );
4252
4256
  }
4253
4257
  return {
4254
4258
  c() {
4255
- t = A("div"), r = A("div"), n = A("h4"), i = new Lt(!1), a = G(), _ && _.c(), s = G(), v && v.c(), h = G(), u = A("label"), l = A("input"), y = G(), f = A("span"), i.a = a, b(n, "class", "ConsentName svelte-etk3ty"), b(r, "class", "ConsentContent"), b(l, "type", "checkbox"), l.disabled = d = /*consent*/
4259
+ t = A("div"), r = A("div"), n = A("h4"), i = new jt(!1), a = G(), _ && _.c(), s = G(), y && y.c(), h = G(), u = A("label"), l = A("input"), v = G(), f = A("span"), i.a = a, E(n, "class", "ConsentName svelte-etk3ty"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
4256
4260
  e[64].mustAccept === !0 && /*initialConsentsState*/
4257
4261
  e[12][
4258
4262
  /*consent*/
@@ -4261,43 +4265,43 @@ function Ht(e) {
4261
4265
  e[13][
4262
4266
  /*consent*/
4263
4267
  e[64].tagCode
4264
- ], b(l, "class", "svelte-etk3ty"), b(f, "class", "Slider Round svelte-etk3ty"), b(u, "class", "ToggleSwitch svelte-etk3ty"), b(t, "class", "ConsentItem svelte-etk3ty");
4268
+ ], E(l, "class", "svelte-etk3ty"), E(f, "class", "Slider Round svelte-etk3ty"), E(u, "class", "ToggleSwitch svelte-etk3ty"), E(t, "class", "ConsentItem svelte-etk3ty");
4265
4269
  },
4266
- m(P, E) {
4267
- j(P, 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, h), x(t, u), x(u, l), x(u, y), x(u, f), g || (S = de(l, "input", C), g = !0);
4270
+ m(H, b) {
4271
+ L(H, t, b), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), y && y.m(r, null), S(t, h), S(t, u), S(u, l), S(u, v), S(u, f), p || (C = de(l, "input", x), p = !0);
4268
4272
  },
4269
- p(P, E) {
4270
- e = P, E[0] & /*$_, playerConsents, consentsCategories*/
4273
+ p(H, b) {
4274
+ e = H, b[0] & /*$_, playerConsents, consentsCategories*/
4271
4275
  66304 && o !== (o = /*$_*/
4272
4276
  (e[16](`${/*consent*/
4273
4277
  e[64].tagCode}__name`) || /*consent*/
4274
4278
  e[64].friendlyName) + "") && i.p(o), /*consent*/
4275
- e[64].mustAccept === !0 ? _ || (_ = Nt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4276
- e[4] === "true" ? v ? v.p(e, E) : (v = At(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4279
+ e[64].mustAccept === !0 ? _ || (_ = wt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4280
+ e[4] === "true" ? y ? y.p(e, b) : (y = Nt(e), y.c(), y.m(r, null)) : y && (y.d(1), y = null), b[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4277
4281
  4864 && d !== (d = /*consent*/
4278
4282
  e[64].mustAccept === !0 && /*initialConsentsState*/
4279
4283
  e[12][
4280
4284
  /*consent*/
4281
4285
  e[64].tagCode
4282
- ] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
4286
+ ] === !0) && (l.disabled = d), b[0] & /*consentsState, playerConsents, consentsCategories*/
4283
4287
  8960 && m !== (m = /*consentsState*/
4284
4288
  e[13][
4285
4289
  /*consent*/
4286
4290
  e[64].tagCode
4287
4291
  ]) && (l.checked = m);
4288
4292
  },
4289
- d(P) {
4290
- P && L(t), _ && _.d(), v && v.d(), g = !1, S();
4293
+ d(H) {
4294
+ H && j(t), _ && _.d(), y && y.d(), p = !1, C();
4291
4295
  }
4292
4296
  };
4293
4297
  }
4294
- function Pt(e) {
4298
+ function Ht(e) {
4295
4299
  let t, r, n, i = (
4296
4300
  /*$_*/
4297
4301
  (e[16](`${/*category*/
4298
4302
  e[61].categoryTagCode}__category`) || /*category*/
4299
4303
  e[61].friendlyName) + ""
4300
- ), o, a, s, h, u, l, d, m, y;
4304
+ ), o, a, s, h, u, l, d, m, v;
4301
4305
  function f() {
4302
4306
  e[26].call(
4303
4307
  s,
@@ -4305,7 +4309,7 @@ function Pt(e) {
4305
4309
  e[61]
4306
4310
  );
4307
4311
  }
4308
- function g() {
4312
+ function p() {
4309
4313
  return (
4310
4314
  /*change_handler*/
4311
4315
  e[27](
@@ -4314,95 +4318,95 @@ function Pt(e) {
4314
4318
  )
4315
4319
  );
4316
4320
  }
4317
- function S(...C) {
4321
+ function C(...x) {
4318
4322
  return (
4319
4323
  /*func*/
4320
4324
  e[28](
4321
4325
  /*category*/
4322
4326
  e[61],
4323
- ...C
4327
+ ...x
4324
4328
  )
4325
4329
  );
4326
4330
  }
4327
4331
  let _ = $(
4328
4332
  /*playerConsents*/
4329
- e[9].filter(S)
4330
- ), v = [];
4331
- for (let C = 0; C < _.length; C += 1)
4332
- v[C] = Ht(St(e, _, C));
4333
+ e[9].filter(C)
4334
+ ), y = [];
4335
+ for (let x = 0; x < _.length; x += 1)
4336
+ y[x] = At(Ct(e, _, x));
4333
4337
  return {
4334
4338
  c() {
4335
4339
  t = A("div"), r = A("div"), n = A("h3"), o = G(), a = A("label"), s = A("input"), h = G(), u = A("span"), l = G(), d = A("div");
4336
- for (let C = 0; C < v.length; C += 1)
4337
- v[C].c();
4338
- b(s, "type", "checkbox"), b(s, "class", "svelte-etk3ty"), b(u, "class", "Slider Round svelte-etk3ty"), b(a, "class", "ToggleSwitch Big svelte-etk3ty"), b(r, "class", "AccordionHeader svelte-etk3ty"), b(d, "class", "AccordionContent svelte-etk3ty"), b(t, "class", "AccordionItem svelte-etk3ty");
4340
+ for (let x = 0; x < y.length; x += 1)
4341
+ y[x].c();
4342
+ E(s, "type", "checkbox"), E(s, "class", "svelte-etk3ty"), E(u, "class", "Slider Round svelte-etk3ty"), E(a, "class", "ToggleSwitch Big svelte-etk3ty"), E(r, "class", "AccordionHeader svelte-etk3ty"), E(d, "class", "AccordionContent svelte-etk3ty"), E(t, "class", "AccordionItem svelte-etk3ty");
4339
4343
  },
4340
- m(C, P) {
4341
- j(C, t, P), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
4344
+ m(x, H) {
4345
+ L(x, t, H), S(t, r), S(r, n), n.innerHTML = i, S(r, o), S(r, a), S(a, s), s.checked = /*categoryToggle*/
4342
4346
  e[11][
4343
4347
  /*category*/
4344
4348
  e[61].categoryTagCode
4345
- ], x(a, h), x(a, u), x(t, l), x(t, d);
4346
- for (let E = 0; E < v.length; E += 1)
4347
- v[E] && v[E].m(d, null);
4348
- m || (y = [
4349
+ ], S(a, h), S(a, u), S(t, l), S(t, d);
4350
+ for (let b = 0; b < y.length; b += 1)
4351
+ y[b] && y[b].m(d, null);
4352
+ m || (v = [
4349
4353
  de(s, "change", f),
4350
- de(s, "change", g)
4354
+ de(s, "change", p)
4351
4355
  ], m = !0);
4352
4356
  },
4353
- p(C, P) {
4354
- if (e = C, P[0] & /*$_, consentsCategories*/
4357
+ p(x, H) {
4358
+ if (e = x, H[0] & /*$_, consentsCategories*/
4355
4359
  65792 && i !== (i = /*$_*/
4356
4360
  (e[16](`${/*category*/
4357
4361
  e[61].categoryTagCode}__category`) || /*category*/
4358
- e[61].friendlyName) + "") && (n.innerHTML = i), P[0] & /*categoryToggle, consentsCategories*/
4362
+ e[61].friendlyName) + "") && (n.innerHTML = i), H[0] & /*categoryToggle, consentsCategories*/
4359
4363
  2304 && (s.checked = /*categoryToggle*/
4360
4364
  e[11][
4361
4365
  /*category*/
4362
4366
  e[61].categoryTagCode
4363
- ]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
4367
+ ]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
4364
4368
  602896) {
4365
4369
  _ = $(
4366
4370
  /*playerConsents*/
4367
- e[9].filter(S)
4371
+ e[9].filter(C)
4368
4372
  );
4369
- let E;
4370
- for (E = 0; E < _.length; E += 1) {
4371
- const z = St(e, _, E);
4372
- v[E] ? v[E].p(z, P) : (v[E] = Ht(z), v[E].c(), v[E].m(d, null));
4373
+ let b;
4374
+ for (b = 0; b < _.length; b += 1) {
4375
+ const B = Ct(e, _, b);
4376
+ y[b] ? y[b].p(B, H) : (y[b] = At(B), y[b].c(), y[b].m(d, null));
4373
4377
  }
4374
- for (; E < v.length; E += 1)
4375
- v[E].d(1);
4376
- v.length = _.length;
4378
+ for (; b < y.length; b += 1)
4379
+ y[b].d(1);
4380
+ y.length = _.length;
4377
4381
  }
4378
4382
  },
4379
- d(C) {
4380
- C && L(t), Ye(v, C), m = !1, zt(y);
4383
+ d(x) {
4384
+ x && j(t), Ke(y, x), m = !1, Bt(v);
4381
4385
  }
4382
4386
  };
4383
4387
  }
4384
- function Bt(e) {
4388
+ function Pt(e) {
4385
4389
  let t, r, n, i, o;
4386
4390
  return {
4387
4391
  c() {
4388
- t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = pe(
4392
+ t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = fe(
4389
4393
  /*errorMessage*/
4390
4394
  e[6]
4391
- ), Q(r, "class", "svelte-etk3ty"), b(i, "class", "ErrorMessage svelte-etk3ty"), b(t, "class", "ConsentErrorContainer svelte-etk3ty");
4395
+ ), Q(r, "class", "svelte-etk3ty"), E(i, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ConsentErrorContainer svelte-etk3ty");
4392
4396
  },
4393
4397
  m(a, s) {
4394
- j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
4398
+ L(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
4395
4399
  },
4396
4400
  p(a, s) {
4397
4401
  s[0] & /*errorMessage*/
4398
- 64 && fe(
4402
+ 64 && ge(
4399
4403
  o,
4400
4404
  /*errorMessage*/
4401
4405
  a[6]
4402
4406
  );
4403
4407
  },
4404
4408
  d(a) {
4405
- a && L(t);
4409
+ a && j(t);
4406
4410
  }
4407
4411
  };
4408
4412
  }
@@ -4418,12 +4422,12 @@ function ji(e) {
4418
4422
  /*fatalError*/
4419
4423
  a[7]
4420
4424
  )
4421
- return Oi;
4425
+ return zi;
4422
4426
  if (
4423
4427
  /*session*/
4424
4428
  a[0]
4425
4429
  )
4426
- return zi;
4430
+ return Oi;
4427
4431
  if (!/*session*/
4428
4432
  a[0])
4429
4433
  return Bi;
@@ -4431,197 +4435,197 @@ function ji(e) {
4431
4435
  let i = n(e), o = i && i(e);
4432
4436
  return {
4433
4437
  c() {
4434
- t = A("div"), r = A("div"), o && o.c(), b(r, "class", "ConsentsContainer svelte-etk3ty"), b(t, "class", Ir("") + " svelte-etk3ty");
4438
+ t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-etk3ty"), E(t, "class", Ir("") + " svelte-etk3ty");
4435
4439
  },
4436
4440
  m(a, s) {
4437
- j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
4441
+ L(a, t, s), S(t, r), o && o.m(r, null), e[32](r);
4438
4442
  },
4439
4443
  p(a, s) {
4440
4444
  i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
4441
4445
  },
4442
- i: q,
4443
- o: q,
4446
+ i: W,
4447
+ o: W,
4444
4448
  d(a) {
4445
- a && L(t), o && o.d(), e[32](null);
4449
+ a && j(t), o && o.d(), e[32](null);
4446
4450
  }
4447
4451
  };
4448
4452
  }
4449
4453
  function Li(e, t, r) {
4450
4454
  let n;
4451
- zr(e, wi, (c) => r(16, n = c));
4452
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, f, g, S = !1, _ = !1, v = "", C = "", P = "", E = "", z = [], W = [], O = [], se = !0, ye = !0, F = {}, ve = {}, Z = {}, U = {}, le, ke, R = {
4455
+ Br(e, wi, (c) => r(16, n = c));
4456
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: v = "false" } = t, f, p = !1, C = !1, _ = "", y = "", x = "", H = "", b = [], B = [], O = [], se = !0, ye = !0, F = {}, ve = {}, Z = {}, U = {}, le, ke, R = {
4453
4457
  none: { key: "0", value: "None" },
4454
4458
  accepted: { key: "1", value: "Accepted" },
4455
4459
  expired: { key: "2", value: "Expired" },
4456
4460
  denied: { key: "3", value: "Denied" },
4457
4461
  suspended: { key: "4", value: "Suspended" }
4458
4462
  }, be = !1;
4459
- Object.keys(bt).forEach((c) => {
4460
- kt(c, bt[c]);
4463
+ Object.keys(kt).forEach((c) => {
4464
+ vt(c, kt[c]);
4461
4465
  });
4462
- const cr = () => {
4466
+ const lr = () => {
4463
4467
  Ni(l);
4464
- }, ur = () => {
4468
+ }, cr = () => {
4465
4469
  let c = new URL(m);
4466
- fetch(c.href).then((p) => p.json()).then((p) => {
4467
- Object.keys(p).forEach((T) => {
4468
- kt(T, p[T]);
4470
+ fetch(c.href).then((g) => g.json()).then((g) => {
4471
+ Object.keys(g).forEach((M) => {
4472
+ vt(M, g[M]);
4469
4473
  });
4470
- }).catch((p) => {
4471
- console.log(p);
4474
+ }).catch((g) => {
4475
+ console.log(g);
4472
4476
  });
4473
- }, hr = () => {
4474
- i && (v = i, _ = !0), o && (C = o);
4475
- }, Ee = (c, p = !1) => {
4476
- p ? r(7, E = c) : (_r(), r(6, P = c));
4477
- }, ce = async (c, p, T, k = !1) => {
4477
+ }, ur = () => {
4478
+ i && (_ = i, C = !0), o && (y = o);
4479
+ }, Ee = (c, g = !1) => {
4480
+ g ? r(7, H = c) : (fr(), r(6, x = c));
4481
+ }, ce = async (c, g, M, k = !1) => {
4478
4482
  try {
4479
- const M = await fetch(c, T);
4480
- if (!M.ok)
4481
- throw new Error(n(p));
4482
- const I = await M.json();
4483
- return _ ? I : I.filter((V) => V.showOnRegister === !0);
4484
- } catch (M) {
4483
+ const T = await fetch(c, M);
4484
+ if (!T.ok)
4485
+ throw new Error(n(g));
4486
+ const I = await T.json();
4487
+ return C ? I : I.filter((V) => V.showOnRegister === !0);
4488
+ } catch (T) {
4485
4489
  throw Ee(
4486
- M instanceof TypeError ? n(p) : M.message,
4490
+ T instanceof TypeError ? n(g) : T.message,
4487
4491
  k
4488
- ), M;
4492
+ ), T;
4489
4493
  }
4490
- }, dr = async () => {
4494
+ }, hr = async () => {
4491
4495
  try {
4492
- let c = [], p = [];
4493
- if (_ ? [c, p] = await rt() : c = await rt(), r(10, se = !1), W = [...c], r(8, z = gr(W).sort((T, k) => T.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = pr(z)), ve = { ...F }, r(9, O = [...p]), W.forEach((T) => {
4494
- let k = O.find((M) => M.tagCode === T.tagCode);
4496
+ let c = [], g = [];
4497
+ if (C ? [c, g] = await tt() : c = await tt(), r(10, se = !1), B = [...c], r(8, b = mr(B).sort((M, k) => M.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = pr(b)), ve = { ...F }, r(9, O = [...g]), B.forEach((M) => {
4498
+ let k = O.find((T) => T.tagCode === M.tagCode);
4495
4499
  k || (k = {
4496
- ...T,
4500
+ ...M,
4497
4501
  status: R.denied.value
4498
- }, O.push(k)), k.description = T.description, k.orderNumber = T.orderNumber;
4499
- }), y === "true") {
4500
- if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
4502
+ }, O.push(k)), k.description = M.description, k.orderNumber = M.orderNumber;
4503
+ }), v === "true") {
4504
+ if (r(9, O = O.filter((M) => M.status === R.expired.value)), O.length !== 0)
4501
4505
  return;
4502
4506
  Ee(n("wrongModalConfig"), !0);
4503
4507
  }
4504
- fr();
4508
+ gr();
4505
4509
  } catch (c) {
4506
4510
  throw r(10, se = !1), Ee(
4507
4511
  c instanceof TypeError ? n("invalidUrl") : c.message,
4508
4512
  !0
4509
4513
  ), c;
4510
4514
  }
4511
- }, rt = async () => {
4515
+ }, tt = async () => {
4512
4516
  const c = new URL(`${a}/api/v1/gm/consents`);
4513
- if (c.searchParams.append("Status", "Active"), !_)
4517
+ if (c.searchParams.append("Status", "Active"), !C)
4514
4518
  return await ce(c.href, "fetchConsentsError", { method: "GET" }, !0);
4515
- const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
4519
+ const g = new URL(`${a}/api/v1/gm/user-consents/${y}`);
4516
4520
  return await Promise.all([
4517
4521
  ce(c.href, "fetchConsentsError", { method: "GET" }, !0),
4518
- ce(p.href, "fetchPlayerConsentsError", {
4522
+ ce(g.href, "fetchPlayerConsentsError", {
4519
4523
  method: "GET",
4520
4524
  headers: {
4521
- "X-SessionId": v,
4525
+ "X-SessionId": _,
4522
4526
  "Content-Type": "application/json"
4523
4527
  }
4524
4528
  })
4525
4529
  ]);
4526
- }, mr = () => {
4530
+ }, dr = () => {
4527
4531
  be = !1;
4528
- const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
4532
+ const c = new URL(`${a}/api/v2/gm/legislation/consents`), g = {
4529
4533
  "Content-Type": "application/json",
4530
4534
  Accept: "application/json"
4531
- }, T = { method: "GET", headers: p };
4532
- fetch(c.href, T).then((k) => k.ok ? k.json() : (be = !0, k.json().then((M) => (console.error(M), Ce(M))))).then((k) => {
4535
+ }, M = { method: "GET", headers: g };
4536
+ fetch(c.href, M).then((k) => k.ok ? k.json() : (be = !0, k.json().then((T) => (console.error(T), Ce(T))))).then((k) => {
4533
4537
  if (!be) {
4534
- if (W = k, localStorage.getItem("playerConsents")) {
4538
+ if (B = k, localStorage.getItem("playerConsents")) {
4535
4539
  try {
4536
4540
  r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
4537
- } catch (M) {
4538
- return console.error(M), Ce(M);
4541
+ } catch (T) {
4542
+ return console.error(T), Ce(T);
4539
4543
  }
4540
4544
  return;
4541
4545
  }
4542
- return r(9, O = W.map((M) => ({
4543
- id: M.id,
4546
+ return r(9, O = B.map((T) => ({
4547
+ id: T.id,
4544
4548
  status: R.denied.key,
4545
- friendlyName: M.friendlyName,
4546
- tagCode: M.tagCode,
4549
+ friendlyName: T.friendlyName,
4550
+ tagCode: T.tagCode,
4547
4551
  selected: null,
4548
- mustAccept: M.mustAccept
4552
+ mustAccept: T.mustAccept
4549
4553
  }))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
4550
4554
  }
4551
4555
  }).catch((k) => (console.error(k), Ce(k))).finally(() => {
4552
4556
  r(10, se = !1);
4553
4557
  });
4554
- }, gr = (c) => {
4555
- const p = /* @__PURE__ */ new Map();
4556
- return c.forEach((T) => {
4557
- p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
4558
- }), Array.from(p.values());
4558
+ }, mr = (c) => {
4559
+ const g = /* @__PURE__ */ new Map();
4560
+ return c.forEach((M) => {
4561
+ g.has(M.category.categoryTagCode) || g.set(M.category.categoryTagCode, M.category);
4562
+ }), Array.from(g.values());
4559
4563
  }, pr = (c) => {
4560
- const p = localStorage.getItem("categoryToggle" + C);
4561
- if (p === null) {
4562
- const T = c.reduce(
4563
- (k, M) => (k[M.categoryTagCode] = !1, k),
4564
+ const g = localStorage.getItem("categoryToggle" + y);
4565
+ if (g === null) {
4566
+ const M = c.reduce(
4567
+ (k, T) => (k[T.categoryTagCode] = !1, k),
4564
4568
  {}
4565
4569
  );
4566
- return localStorage.setItem("categoryToggle" + C, JSON.stringify(T)), T;
4570
+ return localStorage.setItem("categoryToggle" + y, JSON.stringify(M)), M;
4567
4571
  } else
4568
- return JSON.parse(p);
4569
- }, fr = () => {
4572
+ return JSON.parse(g);
4573
+ }, gr = () => {
4570
4574
  O.forEach((c) => {
4571
4575
  r(12, Z[c.tagCode] = c.status === R.accepted.value, Z);
4572
4576
  }), r(13, U = { ...Z });
4573
- }, _r = () => {
4577
+ }, fr = () => {
4574
4578
  r(13, U = { ...Z }), r(11, F = { ...ve });
4575
- }, yr = async () => {
4579
+ }, _r = async () => {
4576
4580
  if (!ye)
4577
4581
  return;
4578
4582
  ye = !1;
4579
- const c = [], p = [];
4583
+ const c = [], g = [];
4580
4584
  if (Object.keys(U).forEach((k) => {
4581
- const M = O.find((I) => I.tagCode === k);
4582
- U[k] !== Z[k] && (M ? c.push({
4585
+ const T = O.find((I) => I.tagCode === k);
4586
+ U[k] !== Z[k] && (T ? c.push({
4583
4587
  tagCode: k,
4584
4588
  status: U[k] ? R.accepted.value : R.denied.value
4585
- }) : p.push({
4589
+ }) : g.push({
4586
4590
  tagCode: k,
4587
4591
  status: U[k] ? R.accepted.value : R.denied.value
4588
4592
  }));
4589
- }), !_) {
4590
- localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ve = { ...F }, window.postMessage(
4593
+ }), !C) {
4594
+ localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), ve = { ...F }, window.postMessage(
4591
4595
  {
4592
4596
  type: "NewPlayerConsentData",
4593
- data: JSON.stringify(p)
4597
+ data: JSON.stringify(g)
4594
4598
  },
4595
4599
  window.location.href
4596
4600
  ), ye = !0;
4597
4601
  return;
4598
4602
  }
4599
- const T = new URL(`${a}/api/v1/gm/user-consents/${C}`);
4603
+ const M = new URL(`${a}/api/v1/gm/user-consents/${y}`);
4600
4604
  try {
4601
4605
  const k = await Promise.allSettled([
4602
- p.length > 0 && ce(T.href, "updateConsentsError", {
4606
+ g.length > 0 && ce(M.href, "updateConsentsError", {
4603
4607
  method: "POST",
4604
4608
  headers: {
4605
- "X-SessionId": v,
4609
+ "X-SessionId": _,
4606
4610
  "Content-Type": "application/json"
4607
4611
  },
4608
- body: JSON.stringify({ userConsents: p })
4612
+ body: JSON.stringify({ userConsents: g })
4609
4613
  }),
4610
- c.length > 0 && ce(T.href, "updateConsentsError", {
4614
+ c.length > 0 && ce(M.href, "updateConsentsError", {
4611
4615
  method: "PATCH",
4612
4616
  headers: {
4613
- "X-SessionId": v,
4617
+ "X-SessionId": _,
4614
4618
  "Content-Type": "application/json"
4615
4619
  },
4616
4620
  body: JSON.stringify({ userConsents: c })
4617
4621
  })
4618
4622
  ]);
4619
- k.forEach((M, I) => {
4620
- if (M.status === "rejected" || M.value.ok === !1) {
4621
- const V = I < p.length ? p[I] : c[I - p.length];
4623
+ k.forEach((T, I) => {
4624
+ if (T.status === "rejected" || T.value.ok === !1) {
4625
+ const V = I < g.length ? g[I] : c[I - g.length];
4622
4626
  r(13, U[V.tagCode] = Z[V.tagCode], U);
4623
4627
  }
4624
- }), k.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ve = { ...F }, window.postMessage(
4628
+ }), k.every((T) => T.status === "fulfilled") && (localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), ve = { ...F }, window.postMessage(
4625
4629
  {
4626
4630
  type: "PlayerConsentUpdated",
4627
4631
  success: !0
@@ -4639,56 +4643,56 @@ function Li(e, t, r) {
4639
4643
  } finally {
4640
4644
  ye = !0, r(14, le = !1);
4641
4645
  }
4642
- }, vr = (c) => {
4643
- const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
4646
+ }, yr = (c) => {
4647
+ const g = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
4644
4648
  "Content-Type": "application/json",
4645
4649
  Accept: "application/json"
4646
4650
  }, k = {
4647
4651
  playerConsents: O,
4648
4652
  registrationId: c
4649
- }, M = {
4653
+ }, T = {
4650
4654
  method: "POST",
4651
4655
  body: JSON.stringify(k),
4652
- headers: T
4656
+ headers: M
4653
4657
  };
4654
- fetch(p.href, M).then((I) => {
4658
+ fetch(g.href, T).then((I) => {
4655
4659
  I.ok || (be = !0);
4656
4660
  }).catch((I) => (console.error(I), Ce(I))).finally(() => {
4657
4661
  r(10, se = !1);
4658
4662
  });
4659
- }, nt = (c) => {
4660
- O.filter((p) => p.category.categoryTagCode === c).forEach((p) => {
4661
- p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = F[c] || !1, U);
4662
- }), r(14, le = it());
4663
- }, ze = (c, p, T) => {
4664
- const k = O.find((V) => V.id === T), M = p ? "value" : "key";
4663
+ }, rt = (c) => {
4664
+ O.filter((g) => g.category.categoryTagCode === c).forEach((g) => {
4665
+ g.status = g.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[g.tagCode] = F[c] || !1, U);
4666
+ }), r(14, le = nt());
4667
+ }, ze = (c, g, M) => {
4668
+ const k = O.find((V) => V.id === M), T = g ? "value" : "key";
4665
4669
  let I;
4666
- if (!p && k.mustAccept) {
4670
+ if (!g && k.mustAccept) {
4667
4671
  const V = Array.from(ke.children);
4668
4672
  for (const ue of V)
4669
- if (I = Array.from(ue.children).find((Ar) => Ar.getAttribute("id") === `checkBoxError__${k.tagCode}`), I)
4673
+ if (I = Array.from(ue.children).find((Nr) => Nr.getAttribute("id") === `checkBoxError__${k.tagCode}`), I)
4670
4674
  break;
4671
4675
  }
4672
- if (k.status === R.accepted[M] ? (k.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[M], I && (I.innerHTML = "")), p) {
4676
+ if (k.status === R.accepted[T] ? (k.status = R.denied[T], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[T], I && (I.innerHTML = "")), g) {
4673
4677
  r(13, U[k.tagCode] = !U[k.tagCode], U);
4674
- const V = O.filter((ue) => ue.category.categoryTagCode === p.categoryTagCode).every((ue) => ue.status !== R.denied.value);
4675
- r(11, F[p.categoryTagCode] = V, F);
4678
+ const V = O.filter((ue) => ue.category.categoryTagCode === g.categoryTagCode).every((ue) => ue.status !== R.denied.value);
4679
+ r(11, F[g.categoryTagCode] = V, F);
4676
4680
  }
4677
- kr();
4678
- }, kr = ((c, p) => {
4679
- let T;
4681
+ vr();
4682
+ }, vr = ((c, g) => {
4683
+ let M;
4680
4684
  return function(...k) {
4681
- const M = this;
4682
- clearTimeout(T), T = setTimeout(
4685
+ const T = this;
4686
+ clearTimeout(M), M = setTimeout(
4683
4687
  () => {
4684
- c.apply(M, k);
4688
+ c.apply(T, k);
4685
4689
  },
4686
- p
4690
+ g
4687
4691
  );
4688
4692
  };
4689
- })(() => br(), 500), br = () => {
4690
- r(14, le = it()), i || (window.postMessage({ type: "isConsentsValid", isValid: le }), localStorage.setItem("playerConsents", JSON.stringify(O)));
4691
- }, it = () => O.filter((p) => O.some((T) => p.tagCode === T.tagCode && T.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, Ce = (c) => {
4693
+ })(() => kr(), 500), kr = () => {
4694
+ r(14, le = nt()), i || (window.postMessage({ type: "isConsentsValid", isValid: le }), localStorage.setItem("playerConsents", JSON.stringify(O)));
4695
+ }, nt = () => O.filter((g) => O.some((M) => g.tagCode === M.tagCode && M.mustAccept && (g.status === R.denied.key || g.status === R.denied.value))).length === 0, Ce = (c) => {
4692
4696
  window.postMessage(
4693
4697
  {
4694
4698
  type: "WidgetNotification",
@@ -4696,46 +4700,46 @@ function Li(e, t, r) {
4696
4700
  },
4697
4701
  window.location.href
4698
4702
  );
4699
- }, Er = (c) => {
4700
- c.data && c.data.type !== "setUpPlayerConsents" || vr(c.data.registerid);
4703
+ }, br = (c) => {
4704
+ c.data && c.data.type !== "setUpPlayerConsents" || yr(c.data.registerid);
4701
4705
  };
4702
4706
  Or(() => {
4703
4707
  setTimeout(
4704
4708
  () => {
4705
- r(25, S = !0);
4709
+ r(25, p = !0);
4706
4710
  },
4707
4711
  50
4708
4712
  );
4709
- const c = (p) => Er(p);
4713
+ const c = (g) => br(g);
4710
4714
  return window.addEventListener("message", c), () => {
4711
- window.emMessageBus && g && g.unsubscribe(), window.removeEventListener("message", c);
4715
+ window.removeEventListener("message", c);
4712
4716
  };
4713
4717
  });
4714
- function Cr(c) {
4718
+ function Er(c) {
4715
4719
  F[c.categoryTagCode] = this.checked, r(11, F);
4716
4720
  }
4717
- const Sr = (c) => nt(c.categoryTagCode), xr = (c, p) => p.category.categoryTagCode === c.categoryTagCode, Mr = (c, p) => ze(p, c.category, c.id), Tr = (c, p) => ze(p, null, c.id);
4718
- function wr(c) {
4719
- at[c ? "unshift" : "push"](() => {
4721
+ const Cr = (c) => rt(c.categoryTagCode), Sr = (c, g) => g.category.categoryTagCode === c.categoryTagCode, xr = (c, g) => ze(g, c.category, c.id), Tr = (c, g) => ze(g, null, c.id);
4722
+ function Mr(c) {
4723
+ ot[c ? "unshift" : "push"](() => {
4720
4724
  ke = c, r(15, ke);
4721
4725
  });
4722
4726
  }
4723
- function Nr(c) {
4724
- at[c ? "unshift" : "push"](() => {
4727
+ function wr(c) {
4728
+ ot[c ? "unshift" : "push"](() => {
4725
4729
  f = c, r(5, f);
4726
4730
  });
4727
4731
  }
4728
4732
  return e.$$set = (c) => {
4729
- "session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, y = c.modalconsents);
4733
+ "session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, v = c.modalconsents);
4730
4734
  }, e.$$.update = () => {
4731
4735
  e.$$.dirty[0] & /*isMounted, session*/
4732
- 33554433 && S && i && (hr(), dr()), e.$$.dirty[0] & /*session*/
4733
- 1 && (i || mr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4736
+ 33554433 && p && i && (ur(), hr()), e.$$.dirty[0] & /*session*/
4737
+ 1 && (i || dr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4734
4738
  34 && s && f && jr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4735
4739
  36 && h && f && Lr(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4736
4740
  40 && f && Rr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
4737
- 4194304 && l && cr(), e.$$.dirty[0] & /*translationurl*/
4738
- 8388608 && m && ur();
4741
+ 4194304 && l && lr(), e.$$.dirty[0] & /*translationurl*/
4742
+ 8388608 && m && cr();
4739
4743
  }, [
4740
4744
  i,
4741
4745
  s,
@@ -4743,9 +4747,9 @@ function Li(e, t, r) {
4743
4747
  u,
4744
4748
  d,
4745
4749
  f,
4746
- P,
4747
- E,
4748
- z,
4750
+ x,
4751
+ H,
4752
+ b,
4749
4753
  O,
4750
4754
  se,
4751
4755
  F,
@@ -4754,32 +4758,32 @@ function Li(e, t, r) {
4754
4758
  le,
4755
4759
  ke,
4756
4760
  n,
4757
- yr,
4758
- nt,
4761
+ _r,
4762
+ rt,
4759
4763
  ze,
4760
4764
  o,
4761
4765
  a,
4762
4766
  l,
4763
4767
  m,
4764
- y,
4765
- S,
4768
+ v,
4769
+ p,
4770
+ Er,
4766
4771
  Cr,
4767
4772
  Sr,
4768
4773
  xr,
4769
- Mr,
4770
4774
  Tr,
4771
- wr,
4772
- Nr
4775
+ Mr,
4776
+ wr
4773
4777
  ];
4774
4778
  }
4775
- class Ri extends It {
4779
+ class Ri extends zt {
4776
4780
  constructor(t) {
4777
- super(), jt(
4781
+ super(), It(
4778
4782
  this,
4779
4783
  t,
4780
4784
  Li,
4781
4785
  ji,
4782
- Qe,
4786
+ Ye,
4783
4787
  {
4784
4788
  session: 0,
4785
4789
  userid: 20,