@everymatrix/player-consents 1.59.3 → 1.60.1

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,43 +1,15 @@
1
- var Pr = Object.defineProperty, Br = Object.defineProperties;
2
- var Or = Object.getOwnPropertyDescriptors;
3
- var it = Object.getOwnPropertySymbols;
4
- var Ir = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable;
5
- var ot = (e, t, r) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Ir.call(t, r) && ot(e, r, t[r]);
8
- if (it)
9
- for (var r of it(t))
10
- jr.call(t, r) && ot(e, r, t[r]);
11
- return e;
12
- }, at = (e, t) => Br(e, Or(t));
13
- var he = (e, t, r) => new Promise((n, i) => {
14
- var o = (h) => {
15
- try {
16
- s(r.next(h));
17
- } catch (u) {
18
- i(u);
19
- }
20
- }, a = (h) => {
21
- try {
22
- s(r.throw(h));
23
- } catch (u) {
24
- i(u);
25
- }
26
- }, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
27
- s((r = r.apply(e, t)).next());
28
- });
29
- import { n as q, s as Ye, a as Lr, r as It, i as Rr, c as jt, S as Lt, b as Rt, d as j, e as L, f as S, g as st, h as E, j as X, k as Ur, l as N, m as Dr, o as Gr, p as lt, q as Q, t as fe, u as _e, v as $, w as Ke, x as ge, y as G, z as Fr, H as Ut, A as Vr, B as Xr, C as qr, D as Wr } from "./GeneralAnimationLoading-CAP3Fch3.js";
1
+ import { n as q, s as Ar, r as Bt, a as Qe, i as Hr, c as Ot, S as It, b as jt, d as ot, e as k, f as j, g as x, h as L, j as X, k as Pr, l as N, m as Br, o as Or, p as Ir, q as jr, t as at, 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-BMZE178n.js";
30
2
  const K = [];
31
- function Zr(e, t) {
3
+ function Dr(e, t) {
32
4
  return {
33
- subscribe: Ne(e, t).subscribe
5
+ subscribe: we(e, t).subscribe
34
6
  };
35
7
  }
36
- function Ne(e, t = q) {
8
+ function we(e, t = q) {
37
9
  let r;
38
10
  const n = /* @__PURE__ */ new Set();
39
11
  function i(s) {
40
- if (Ye(e, s) && (e = s, r)) {
12
+ if (Qe(e, s) && (e = s, r)) {
41
13
  const h = !K.length;
42
14
  for (const u of n)
43
15
  u[1](), K.push(u, e);
@@ -64,7 +36,7 @@ function ie(e, t, r) {
64
36
  if (!i.every(Boolean))
65
37
  throw new Error("derived() expects stores as input, got a falsy value");
66
38
  const o = t.length < 2;
67
- return Zr(r, (a, s) => {
39
+ return Dr(r, (a, s) => {
68
40
  let h = !1;
69
41
  const u = [];
70
42
  let l = 0, d = q;
@@ -73,12 +45,12 @@ function ie(e, t, r) {
73
45
  return;
74
46
  d();
75
47
  const f = t(n ? u[0] : u, a, s);
76
- o ? a(f) : d = Rr(f) ? f : q;
77
- }, v = i.map(
78
- (f, m) => Lr(
48
+ o ? a(f) : d = Hr(f) ? f : q;
49
+ }, b = i.map(
50
+ (f, m) => Ar(
79
51
  f,
80
- (C) => {
81
- u[m] = C, l &= ~(1 << m), h && g();
52
+ (S) => {
53
+ u[m] = S, l &= ~(1 << m), h && g();
82
54
  },
83
55
  () => {
84
56
  l |= 1 << m;
@@ -86,74 +58,74 @@ function ie(e, t, r) {
86
58
  )
87
59
  );
88
60
  return h = !0, g(), function() {
89
- It(v), d(), h = !1;
61
+ Bt(b), d(), h = !1;
90
62
  };
91
63
  });
92
64
  }
93
- function Jr(e) {
65
+ function Gr(e) {
94
66
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
95
67
  }
96
- var Qr = function(t) {
97
- return Yr(t) && !Kr(t);
68
+ var Fr = function(t) {
69
+ return Vr(t) && !Xr(t);
98
70
  };
99
- function Yr(e) {
71
+ function Vr(e) {
100
72
  return !!e && typeof e == "object";
101
73
  }
102
- function Kr(e) {
74
+ function Xr(e) {
103
75
  var t = Object.prototype.toString.call(e);
104
- return t === "[object RegExp]" || t === "[object Date]" || tn(e);
76
+ return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
105
77
  }
106
- var $r = typeof Symbol == "function" && Symbol.for, en = $r ? Symbol.for("react.element") : 60103;
107
- function tn(e) {
108
- return e.$$typeof === en;
78
+ var qr = typeof Symbol == "function" && Symbol.for, Wr = qr ? Symbol.for("react.element") : 60103;
79
+ function Zr(e) {
80
+ return e.$$typeof === Wr;
109
81
  }
110
- function rn(e) {
82
+ function Jr(e) {
111
83
  return Array.isArray(e) ? [] : {};
112
84
  }
113
- function me(e, t) {
114
- return t.clone !== !1 && t.isMergeableObject(e) ? ee(rn(e), e, t) : e;
85
+ function ge(e, t) {
86
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Jr(e), e, t) : e;
115
87
  }
116
- function nn(e, t, r) {
88
+ function Qr(e, t, r) {
117
89
  return e.concat(t).map(function(n) {
118
- return me(n, r);
90
+ return ge(n, r);
119
91
  });
120
92
  }
121
- function on(e, t) {
93
+ function Yr(e, t) {
122
94
  if (!t.customMerge)
123
95
  return ee;
124
96
  var r = t.customMerge(e);
125
97
  return typeof r == "function" ? r : ee;
126
98
  }
127
- function an(e) {
99
+ function Kr(e) {
128
100
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
129
101
  return Object.propertyIsEnumerable.call(e, t);
130
102
  }) : [];
131
103
  }
132
- function ct(e) {
133
- return Object.keys(e).concat(an(e));
104
+ function st(e) {
105
+ return Object.keys(e).concat(Kr(e));
134
106
  }
135
- function Dt(e, t) {
107
+ function Rt(e, t) {
136
108
  try {
137
109
  return t in e;
138
- } catch (r) {
110
+ } catch {
139
111
  return !1;
140
112
  }
141
113
  }
142
- function sn(e, t) {
143
- return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
114
+ function $r(e, t) {
115
+ return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
144
116
  }
145
- function ln(e, t, r) {
117
+ function en(e, t, r) {
146
118
  var n = {};
147
- return r.isMergeableObject(e) && ct(e).forEach(function(i) {
148
- n[i] = me(e[i], r);
149
- }), ct(t).forEach(function(i) {
150
- sn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
119
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
120
+ n[i] = ge(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] = ge(t[i], r));
151
123
  }), n;
152
124
  }
153
125
  function ee(e, t, r) {
154
- r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = me;
126
+ r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Fr, r.cloneUnlessOtherwiseSpecified = ge;
155
127
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
156
- return o ? n ? r.arrayMerge(e, t, r) : ln(e, t, r) : me(t, r);
128
+ return o ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : ge(t, r);
157
129
  }
158
130
  ee.all = function(t, r) {
159
131
  if (!Array.isArray(t))
@@ -162,8 +134,8 @@ ee.all = function(t, r) {
162
134
  return ee(n, i, r);
163
135
  }, {});
164
136
  };
165
- var cn = ee, un = cn;
166
- const hn = /* @__PURE__ */ Jr(un);
137
+ var tn = ee, rn = tn;
138
+ const nn = /* @__PURE__ */ Gr(rn);
167
139
  /*! *****************************************************************************
168
140
  Copyright (c) Microsoft Corporation.
169
141
 
@@ -178,18 +150,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
178
150
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
179
151
  PERFORMANCE OF THIS SOFTWARE.
180
152
  ***************************************************************************** */
181
- var Ge = function(e, t) {
182
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
153
+ var De = function(e, t) {
154
+ return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
183
155
  r.__proto__ = n;
184
156
  } || function(r, n) {
185
157
  for (var i in n)
186
158
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
187
- }, Ge(e, t);
159
+ }, De(e, t);
188
160
  };
189
- function Ae(e, t) {
161
+ function Ne(e, t) {
190
162
  if (typeof t != "function" && t !== null)
191
163
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
192
- Ge(e, t);
164
+ De(e, t);
193
165
  function r() {
194
166
  this.constructor = e;
195
167
  }
@@ -205,7 +177,7 @@ var A = function() {
205
177
  return t;
206
178
  }, A.apply(this, arguments);
207
179
  };
208
- function dn(e, t) {
180
+ function on(e, t) {
209
181
  var r = {};
210
182
  for (var n in e)
211
183
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -214,64 +186,66 @@ function dn(e, t) {
214
186
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
215
187
  return r;
216
188
  }
217
- function Ie(e, t, r) {
189
+ function Oe(e, t, r) {
218
190
  if (arguments.length === 2)
219
191
  for (var n = 0, i = t.length, o; n < i; n++)
220
192
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
221
193
  return e.concat(o || t);
222
194
  }
223
- function je(e, t) {
224
- var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : pn;
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;
225
197
  return i(e, {
226
198
  cache: r,
227
199
  serializer: n
228
200
  });
229
201
  }
230
- function gn(e) {
202
+ function an(e) {
231
203
  return e == null || typeof e == "number" || typeof e == "boolean";
232
204
  }
233
- function mn(e, t, r, n) {
234
- var i = gn(n) ? n : r(n), o = t.get(i);
235
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
205
+ function Ut(e, t, r, n) {
206
+ var i = an(n) ? n : r(n), o = t.get(i);
207
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
236
208
  }
237
- function Gt(e, t, r) {
209
+ function Dt(e, t, r) {
238
210
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
239
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
211
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
240
212
  }
241
- function Ft(e, t, r, n, i) {
213
+ function Ke(e, t, r, n, i) {
242
214
  return r.bind(t, e, n, i);
243
215
  }
244
- function pn(e, t) {
245
- var r = e.length === 1 ? mn : Gt;
246
- return Ft(e, this, r, t.cache.create(), t.serializer);
216
+ function sn(e, t) {
217
+ var r = e.length === 1 ? Ut : Dt;
218
+ return Ke(e, this, r, t.cache.create(), t.serializer);
219
+ }
220
+ function ln(e, t) {
221
+ return Ke(e, this, Dt, t.cache.create(), t.serializer);
247
222
  }
248
- function fn(e, t) {
249
- return Ft(e, this, Gt, t.cache.create(), t.serializer);
223
+ function cn(e, t) {
224
+ return Ke(e, this, Ut, t.cache.create(), t.serializer);
250
225
  }
251
- var _n = function() {
226
+ var un = function() {
252
227
  return JSON.stringify(arguments);
253
- }, bn = (
254
- /** @class */
255
- function() {
256
- function e() {
257
- this.cache = /* @__PURE__ */ Object.create(null);
258
- }
259
- return e.prototype.get = function(t) {
260
- return this.cache[t];
261
- }, e.prototype.set = function(t, r) {
262
- this.cache[t] = r;
263
- }, e;
264
- }()
265
- ), vn = {
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 = {
266
239
  create: function() {
267
- return new bn();
240
+ return new $e();
268
241
  }
269
- }, Le = {
270
- variadic: fn
271
- }, M;
242
+ }, je = {
243
+ variadic: ln,
244
+ monadic: cn
245
+ }, T;
272
246
  (function(e) {
273
247
  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";
274
- })(M || (M = {}));
248
+ })(T || (T = {}));
275
249
  var P;
276
250
  (function(e) {
277
251
  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";
@@ -280,43 +254,43 @@ var te;
280
254
  (function(e) {
281
255
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
282
256
  })(te || (te = {}));
283
- function ut(e) {
257
+ function lt(e) {
284
258
  return e.type === P.literal;
285
259
  }
286
- function yn(e) {
260
+ function dn(e) {
287
261
  return e.type === P.argument;
288
262
  }
289
- function Vt(e) {
263
+ function Gt(e) {
290
264
  return e.type === P.number;
291
265
  }
292
- function Xt(e) {
266
+ function Ft(e) {
293
267
  return e.type === P.date;
294
268
  }
295
- function qt(e) {
269
+ function Vt(e) {
296
270
  return e.type === P.time;
297
271
  }
298
- function Wt(e) {
272
+ function Xt(e) {
299
273
  return e.type === P.select;
300
274
  }
301
- function Zt(e) {
275
+ function qt(e) {
302
276
  return e.type === P.plural;
303
277
  }
304
- function kn(e) {
278
+ function gn(e) {
305
279
  return e.type === P.pound;
306
280
  }
307
- function Jt(e) {
281
+ function Wt(e) {
308
282
  return e.type === P.tag;
309
283
  }
310
- function Qt(e) {
284
+ function Zt(e) {
311
285
  return !!(e && typeof e == "object" && e.type === te.number);
312
286
  }
313
- function Fe(e) {
287
+ function Ge(e) {
314
288
  return !!(e && typeof e == "object" && e.type === te.dateTime);
315
289
  }
316
- var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
317
- function Cn(e) {
290
+ var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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) {
318
292
  var t = {};
319
- return e.replace(En, function(r) {
293
+ return e.replace(mn, function(r) {
320
294
  var n = r.length;
321
295
  switch (r[0]) {
322
296
  case "G":
@@ -405,11 +379,11 @@ function Cn(e) {
405
379
  return "";
406
380
  }), t;
407
381
  }
408
- var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
409
- function xn(e) {
382
+ var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
383
+ function _n(e) {
410
384
  if (e.length === 0)
411
385
  throw new Error("Number skeleton cannot be empty");
412
- for (var t = e.split(Sn).filter(function(g) {
386
+ for (var t = e.split(fn).filter(function(g) {
413
387
  return g.length > 0;
414
388
  }), r = [], n = 0, i = t; n < i.length; n++) {
415
389
  var o = i[n], a = o.split("/");
@@ -424,17 +398,17 @@ function xn(e) {
424
398
  }
425
399
  return r;
426
400
  }
427
- function zn(e) {
401
+ function bn(e) {
428
402
  return e.replace(/^(.*?)-/, "");
429
403
  }
430
- var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
431
- function dt(e) {
404
+ var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
405
+ function ut(e) {
432
406
  var t = {};
433
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
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) {
434
408
  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)), "";
435
409
  }), t;
436
410
  }
437
- function er(e) {
411
+ function Kt(e) {
438
412
  switch (e) {
439
413
  case "sign-auto":
440
414
  return {
@@ -474,7 +448,7 @@ function er(e) {
474
448
  };
475
449
  }
476
450
  }
477
- function Mn(e) {
451
+ function vn(e) {
478
452
  var t;
479
453
  if (e[0] === "E" && e[1] === "E" ? (t = {
480
454
  notation: "engineering"
@@ -482,17 +456,17 @@ function Mn(e) {
482
456
  notation: "scientific"
483
457
  }, e = e.slice(1)), t) {
484
458
  var r = e.slice(0, 2);
485
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$t.test(e))
459
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
486
460
  throw new Error("Malformed concise eng/scientific notation");
487
461
  t.minimumIntegerDigits = e.length;
488
462
  }
489
463
  return t;
490
464
  }
491
- function gt(e) {
492
- var t = {}, r = er(e);
465
+ function ht(e) {
466
+ var t = {}, r = Kt(e);
493
467
  return r || t;
494
468
  }
495
- function wn(e) {
469
+ function kn(e) {
496
470
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
497
471
  var i = n[r];
498
472
  switch (i.stem) {
@@ -516,7 +490,7 @@ function wn(e) {
516
490
  continue;
517
491
  case "measure-unit":
518
492
  case "unit":
519
- t.style = "unit", t.unit = zn(i.options[0]);
493
+ t.style = "unit", t.unit = bn(i.options[0]);
520
494
  continue;
521
495
  case "compact-short":
522
496
  case "K":
@@ -528,12 +502,12 @@ function wn(e) {
528
502
  continue;
529
503
  case "scientific":
530
504
  t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
531
- return A(A({}, h), gt(u));
505
+ return A(A({}, h), ht(u));
532
506
  }, {}));
533
507
  continue;
534
508
  case "engineering":
535
509
  t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
536
- return A(A({}, h), gt(u));
510
+ return A(A({}, h), ht(u));
537
511
  }, {}));
538
512
  continue;
539
513
  case "notation-simple":
@@ -578,45 +552,45 @@ function wn(e) {
578
552
  case "integer-width":
579
553
  if (i.options.length > 1)
580
554
  throw new RangeError("integer-width stems only accept a single optional option");
581
- i.options[0].replace(Tn, function(h, u, l, d, g, v) {
555
+ i.options[0].replace(yn, function(h, u, l, d, g, b) {
582
556
  if (u)
583
557
  t.minimumIntegerDigits = l.length;
584
558
  else {
585
559
  if (d && g)
586
560
  throw new Error("We currently do not support maximum integer digits");
587
- if (v)
561
+ if (b)
588
562
  throw new Error("We currently do not support exact integer digits");
589
563
  }
590
564
  return "";
591
565
  });
592
566
  continue;
593
567
  }
594
- if ($t.test(i.stem)) {
568
+ if (Yt.test(i.stem)) {
595
569
  t.minimumIntegerDigits = i.stem.length;
596
570
  continue;
597
571
  }
598
- if (ht.test(i.stem)) {
572
+ if (ct.test(i.stem)) {
599
573
  if (i.options.length > 1)
600
574
  throw new RangeError("Fraction-precision stems only accept a single optional option");
601
- i.stem.replace(ht, function(h, u, l, d, g, v) {
602
- return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : g && v ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + v.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
575
+ i.stem.replace(ct, function(h, u, l, d, g, b) {
576
+ return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : g && b ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
603
577
  });
604
578
  var o = i.options[0];
605
- o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), dt(o)));
579
+ o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), ut(o)));
606
580
  continue;
607
581
  }
608
- if (Kt.test(i.stem)) {
609
- t = A(A({}, t), dt(i.stem));
582
+ if (Qt.test(i.stem)) {
583
+ t = A(A({}, t), ut(i.stem));
610
584
  continue;
611
585
  }
612
- var a = er(i.stem);
586
+ var a = Kt(i.stem);
613
587
  a && (t = A(A({}, t), a));
614
- var s = Mn(i.stem);
588
+ var s = vn(i.stem);
615
589
  s && (t = A(A({}, t), s));
616
590
  }
617
591
  return t;
618
592
  }
619
- var xe = {
593
+ var Se = {
620
594
  "001": [
621
595
  "H",
622
596
  "h"
@@ -2031,13 +2005,13 @@ var xe = {
2031
2005
  "h"
2032
2006
  ]
2033
2007
  };
2034
- function Nn(e, t) {
2008
+ function En(e, t) {
2035
2009
  for (var r = "", n = 0; n < e.length; n++) {
2036
2010
  var i = e.charAt(n);
2037
2011
  if (i === "j") {
2038
2012
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2039
2013
  o++, n++;
2040
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = An(t);
2014
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
2041
2015
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2042
2016
  r += h;
2043
2017
  for (; a-- > 0; )
@@ -2047,7 +2021,7 @@ function Nn(e, t) {
2047
2021
  }
2048
2022
  return r;
2049
2023
  }
2050
- function An(e) {
2024
+ function Cn(e) {
2051
2025
  var t = e.hourCycle;
2052
2026
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2053
2027
  e.hourCycles && // @ts-ignore
@@ -2066,23 +2040,23 @@ function An(e) {
2066
2040
  }
2067
2041
  var r = e.language, n;
2068
2042
  r !== "root" && (n = e.maximize().region);
2069
- var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
2043
+ var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
2070
2044
  return i[0];
2071
2045
  }
2072
- var Re, Hn = new RegExp("^".concat(Yt.source, "*")), Pn = new RegExp("".concat(Yt.source, "*$"));
2046
+ var Le, Sn = new RegExp("^".concat(Jt.source, "*")), xn = new RegExp("".concat(Jt.source, "*$"));
2073
2047
  function w(e, t) {
2074
2048
  return { start: e, end: t };
2075
2049
  }
2076
- var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, jn = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Dn = Un ? Number.isSafeInteger : function(e) {
2050
+ var zn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Tn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Pn = Hn ? Number.isSafeInteger : function(e) {
2077
2051
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2078
- }, Ve = !0;
2052
+ }, Fe = !0;
2079
2053
  try {
2080
- var Gn = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2081
- Ve = ((Re = Gn.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
2082
- } catch (e) {
2083
- Ve = !1;
2054
+ var Bn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2055
+ Fe = ((Le = Bn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2056
+ } catch {
2057
+ Fe = !1;
2084
2058
  }
2085
- var mt = Bn ? (
2059
+ var dt = zn ? (
2086
2060
  // Native
2087
2061
  function(t, r, n) {
2088
2062
  return t.startsWith(r, n);
@@ -2092,7 +2066,7 @@ var mt = Bn ? (
2092
2066
  function(t, r, n) {
2093
2067
  return t.slice(n, n + r.length) === r;
2094
2068
  }
2095
- ), Xe = On ? String.fromCodePoint : (
2069
+ ), Ve = Mn ? String.fromCodePoint : (
2096
2070
  // IE11
2097
2071
  function() {
2098
2072
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2104,9 +2078,9 @@ var mt = Bn ? (
2104
2078
  }
2105
2079
  return n;
2106
2080
  }
2107
- ), pt = (
2081
+ ), gt = (
2108
2082
  // native
2109
- In ? Object.fromEntries : (
2083
+ Tn ? Object.fromEntries : (
2110
2084
  // Ponyfill
2111
2085
  function(t) {
2112
2086
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2116,7 +2090,7 @@ var mt = Bn ? (
2116
2090
  return r;
2117
2091
  }
2118
2092
  )
2119
- ), tr = jn ? (
2093
+ ), $t = wn ? (
2120
2094
  // Native
2121
2095
  function(t, r) {
2122
2096
  return t.codePointAt(r);
@@ -2130,7 +2104,7 @@ var mt = Bn ? (
2130
2104
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2131
2105
  }
2132
2106
  }
2133
- ), Fn = Ln ? (
2107
+ ), On = Nn ? (
2134
2108
  // Native
2135
2109
  function(t) {
2136
2110
  return t.trimStart();
@@ -2138,9 +2112,9 @@ var mt = Bn ? (
2138
2112
  ) : (
2139
2113
  // Ponyfill
2140
2114
  function(t) {
2141
- return t.replace(Hn, "");
2115
+ return t.replace(Sn, "");
2142
2116
  }
2143
- ), Vn = Rn ? (
2117
+ ), In = An ? (
2144
2118
  // Native
2145
2119
  function(t) {
2146
2120
  return t.trimEnd();
@@ -2148,32 +2122,32 @@ var mt = Bn ? (
2148
2122
  ) : (
2149
2123
  // Ponyfill
2150
2124
  function(t) {
2151
- return t.replace(Pn, "");
2125
+ return t.replace(xn, "");
2152
2126
  }
2153
2127
  );
2154
- function rr(e, t) {
2128
+ function er(e, t) {
2155
2129
  return new RegExp(e, t);
2156
2130
  }
2157
- var qe;
2158
- if (Ve) {
2159
- var ft = rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2160
- qe = function(t, r) {
2131
+ var Xe;
2132
+ if (Fe) {
2133
+ var mt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2134
+ Xe = function(t, r) {
2161
2135
  var n;
2162
- ft.lastIndex = r;
2163
- var i = ft.exec(t);
2136
+ mt.lastIndex = r;
2137
+ var i = mt.exec(t);
2164
2138
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2165
2139
  };
2166
2140
  } else
2167
- qe = function(t, r) {
2141
+ Xe = function(t, r) {
2168
2142
  for (var n = []; ; ) {
2169
- var i = tr(t, r);
2170
- if (i === void 0 || nr(i) || Zn(i))
2143
+ var i = $t(t, r);
2144
+ if (i === void 0 || tr(i) || Un(i))
2171
2145
  break;
2172
2146
  n.push(i), r += i >= 65536 ? 2 : 1;
2173
2147
  }
2174
- return Xe.apply(void 0, n);
2148
+ return Ve.apply(void 0, n);
2175
2149
  };
2176
- var Xn = (
2150
+ var jn = (
2177
2151
  /** @class */
2178
2152
  function() {
2179
2153
  function e(t, r) {
@@ -2203,8 +2177,8 @@ var Xn = (
2203
2177
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2204
2178
  if (n)
2205
2179
  break;
2206
- return this.error(M.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2207
- } else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
2180
+ return this.error(T.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2181
+ } else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
2208
2182
  var a = this.parseTag(t, r);
2209
2183
  if (a.err)
2210
2184
  return a;
@@ -2237,10 +2211,10 @@ var Xn = (
2237
2211
  return o;
2238
2212
  var a = o.val, s = this.clonePosition();
2239
2213
  if (this.bumpIf("</")) {
2240
- if (this.isEOF() || !We(this.char()))
2241
- return this.error(M.INVALID_TAG, w(s, this.clonePosition()));
2214
+ if (this.isEOF() || !qe(this.char()))
2215
+ return this.error(T.INVALID_TAG, w(s, this.clonePosition()));
2242
2216
  var h = this.clonePosition(), u = this.parseTagName();
2243
- return i !== u ? this.error(M.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2217
+ return i !== u ? this.error(T.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2244
2218
  val: {
2245
2219
  type: P.tag,
2246
2220
  value: i,
@@ -2248,14 +2222,14 @@ var Xn = (
2248
2222
  location: w(n, this.clonePosition())
2249
2223
  },
2250
2224
  err: null
2251
- } : this.error(M.INVALID_TAG, w(s, this.clonePosition())));
2225
+ } : this.error(T.INVALID_TAG, w(s, this.clonePosition())));
2252
2226
  } else
2253
- return this.error(M.UNCLOSED_TAG, w(n, this.clonePosition()));
2227
+ return this.error(T.UNCLOSED_TAG, w(n, this.clonePosition()));
2254
2228
  } else
2255
- return this.error(M.INVALID_TAG, w(n, this.clonePosition()));
2229
+ return this.error(T.INVALID_TAG, w(n, this.clonePosition()));
2256
2230
  }, e.prototype.parseTagName = function() {
2257
2231
  var t = this.offset();
2258
- for (this.bump(); !this.isEOF() && Wn(this.char()); )
2232
+ for (this.bump(); !this.isEOF() && Rn(this.char()); )
2259
2233
  this.bump();
2260
2234
  return this.message.slice(t, this.offset());
2261
2235
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2284,7 +2258,7 @@ var Xn = (
2284
2258
  };
2285
2259
  }, e.prototype.tryParseLeftAngleBracket = function() {
2286
2260
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2287
- !qn(this.peek() || 0)) ? (this.bump(), "<") : null;
2261
+ !Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
2288
2262
  }, e.prototype.tryParseQuote = function(t) {
2289
2263
  if (this.isEOF() || this.char() !== 39)
2290
2264
  return null;
@@ -2318,23 +2292,23 @@ var Xn = (
2318
2292
  r.push(n);
2319
2293
  this.bump();
2320
2294
  }
2321
- return Xe.apply(void 0, r);
2295
+ return Ve.apply(void 0, r);
2322
2296
  }, e.prototype.tryParseUnquoted = function(t, r) {
2323
2297
  if (this.isEOF())
2324
2298
  return null;
2325
2299
  var n = this.char();
2326
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
2300
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2327
2301
  }, e.prototype.parseArgument = function(t, r) {
2328
2302
  var n = this.clonePosition();
2329
2303
  if (this.bump(), this.bumpSpace(), this.isEOF())
2330
- return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2304
+ return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2331
2305
  if (this.char() === 125)
2332
- return this.bump(), this.error(M.EMPTY_ARGUMENT, w(n, this.clonePosition()));
2306
+ return this.bump(), this.error(T.EMPTY_ARGUMENT, w(n, this.clonePosition()));
2333
2307
  var i = this.parseIdentifierIfPossible().value;
2334
2308
  if (!i)
2335
- return this.error(M.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2309
+ return this.error(T.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2336
2310
  if (this.bumpSpace(), this.isEOF())
2337
- return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2311
+ return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2338
2312
  switch (this.char()) {
2339
2313
  case 125:
2340
2314
  return this.bump(), {
@@ -2347,12 +2321,12 @@ var Xn = (
2347
2321
  err: null
2348
2322
  };
2349
2323
  case 44:
2350
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2324
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2351
2325
  default:
2352
- return this.error(M.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2326
+ return this.error(T.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2353
2327
  }
2354
2328
  }, e.prototype.parseIdentifierIfPossible = function() {
2355
- var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
2329
+ var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2356
2330
  this.bumpTo(i);
2357
2331
  var o = this.clonePosition(), a = w(t, o);
2358
2332
  return { value: n, location: a };
@@ -2360,7 +2334,7 @@ var Xn = (
2360
2334
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2361
2335
  switch (s) {
2362
2336
  case "":
2363
- return this.error(M.EXPECT_ARGUMENT_TYPE, w(a, h));
2337
+ return this.error(T.EXPECT_ARGUMENT_TYPE, w(a, h));
2364
2338
  case "number":
2365
2339
  case "date":
2366
2340
  case "time": {
@@ -2371,37 +2345,37 @@ var Xn = (
2371
2345
  var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2372
2346
  if (d.err)
2373
2347
  return d;
2374
- var g = Vn(d.val);
2348
+ var g = In(d.val);
2375
2349
  if (g.length === 0)
2376
- return this.error(M.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2377
- var v = w(l, this.clonePosition());
2378
- u = { style: g, styleLocation: v };
2350
+ return this.error(T.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2351
+ var b = w(l, this.clonePosition());
2352
+ u = { style: g, styleLocation: b };
2379
2353
  }
2380
2354
  var f = this.tryParseArgumentClose(i);
2381
2355
  if (f.err)
2382
2356
  return f;
2383
2357
  var m = w(i, this.clonePosition());
2384
- if (u && mt(u == null ? void 0 : u.style, "::", 0)) {
2385
- var C = Fn(u.style.slice(2));
2358
+ if (u && dt(u?.style, "::", 0)) {
2359
+ var S = On(u.style.slice(2));
2386
2360
  if (s === "number") {
2387
- var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
2361
+ var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
2388
2362
  return d.err ? d : {
2389
2363
  val: { type: P.number, value: n, location: m, style: d.val },
2390
2364
  err: null
2391
2365
  };
2392
2366
  } else {
2393
- if (C.length === 0)
2394
- return this.error(M.EXPECT_DATE_TIME_SKELETON, m);
2395
- var _ = C;
2396
- this.locale && (_ = Nn(C, this.locale));
2367
+ if (S.length === 0)
2368
+ return this.error(T.EXPECT_DATE_TIME_SKELETON, m);
2369
+ var _ = S;
2370
+ this.locale && (_ = En(S, this.locale));
2397
2371
  var g = {
2398
2372
  type: te.dateTime,
2399
2373
  pattern: _,
2400
2374
  location: u.styleLocation,
2401
- parsedOptions: this.shouldParseSkeletons ? Cn(_) : {}
2402
- }, b = s === "date" ? P.date : P.time;
2375
+ parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
2376
+ }, y = s === "date" ? P.date : P.time;
2403
2377
  return {
2404
- val: { type: b, value: n, location: m, style: g },
2378
+ val: { type: y, value: n, location: m, style: g },
2405
2379
  err: null
2406
2380
  };
2407
2381
  }
@@ -2411,7 +2385,7 @@ var Xn = (
2411
2385
  type: s === "number" ? P.number : s === "date" ? P.date : P.time,
2412
2386
  value: n,
2413
2387
  location: m,
2414
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2388
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2415
2389
  },
2416
2390
  err: null
2417
2391
  };
@@ -2419,19 +2393,19 @@ var Xn = (
2419
2393
  case "plural":
2420
2394
  case "selectordinal":
2421
2395
  case "select": {
2422
- var x = this.clonePosition();
2396
+ var C = this.clonePosition();
2423
2397
  if (this.bumpSpace(), !this.bumpIf(","))
2424
- return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, w(x, A({}, x)));
2398
+ return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, w(C, A({}, C)));
2425
2399
  this.bumpSpace();
2426
- var H = this.parseIdentifierIfPossible(), k = 0;
2400
+ var H = this.parseIdentifierIfPossible(), E = 0;
2427
2401
  if (s !== "select" && H.value === "offset") {
2428
2402
  if (!this.bumpIf(":"))
2429
- return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2403
+ return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2430
2404
  this.bumpSpace();
2431
- var d = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2405
+ var d = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2432
2406
  if (d.err)
2433
2407
  return d;
2434
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), k = d.val;
2408
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), E = d.val;
2435
2409
  }
2436
2410
  var B = this.tryParsePluralOrSelectOptions(t, s, r, H);
2437
2411
  if (B.err)
@@ -2439,32 +2413,32 @@ var Xn = (
2439
2413
  var f = this.tryParseArgumentClose(i);
2440
2414
  if (f.err)
2441
2415
  return f;
2442
- var O = w(i, this.clonePosition());
2416
+ var W = w(i, this.clonePosition());
2443
2417
  return s === "select" ? {
2444
2418
  val: {
2445
2419
  type: P.select,
2446
2420
  value: n,
2447
- options: pt(B.val),
2448
- location: O
2421
+ options: gt(B.val),
2422
+ location: W
2449
2423
  },
2450
2424
  err: null
2451
2425
  } : {
2452
2426
  val: {
2453
2427
  type: P.plural,
2454
2428
  value: n,
2455
- options: pt(B.val),
2456
- offset: k,
2429
+ options: gt(B.val),
2430
+ offset: E,
2457
2431
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2458
- location: O
2432
+ location: W
2459
2433
  },
2460
2434
  err: null
2461
2435
  };
2462
2436
  }
2463
2437
  default:
2464
- return this.error(M.INVALID_ARGUMENT_TYPE, w(a, h));
2438
+ return this.error(T.INVALID_ARGUMENT_TYPE, w(a, h));
2465
2439
  }
2466
2440
  }, e.prototype.tryParseArgumentClose = function(t) {
2467
- return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2441
+ return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2468
2442
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2469
2443
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2470
2444
  var n = this.char();
@@ -2473,7 +2447,7 @@ var Xn = (
2473
2447
  this.bump();
2474
2448
  var i = this.clonePosition();
2475
2449
  if (!this.bumpUntil("'"))
2476
- return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
2450
+ return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
2477
2451
  this.bump();
2478
2452
  break;
2479
2453
  }
@@ -2503,16 +2477,16 @@ var Xn = (
2503
2477
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2504
2478
  var n = [];
2505
2479
  try {
2506
- n = xn(t);
2507
- } catch (i) {
2508
- return this.error(M.INVALID_NUMBER_SKELETON, r);
2480
+ n = _n(t);
2481
+ } catch {
2482
+ return this.error(T.INVALID_NUMBER_SKELETON, r);
2509
2483
  }
2510
2484
  return {
2511
2485
  val: {
2512
2486
  type: te.number,
2513
2487
  tokens: n,
2514
2488
  location: r,
2515
- parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
2489
+ parsedOptions: this.shouldParseSkeletons ? kn(n) : {}
2516
2490
  },
2517
2491
  err: null
2518
2492
  };
@@ -2521,7 +2495,7 @@ var Xn = (
2521
2495
  if (u.length === 0) {
2522
2496
  var d = this.clonePosition();
2523
2497
  if (r !== "select" && this.bumpIf("=")) {
2524
- var g = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
2498
+ var g = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
2525
2499
  if (g.err)
2526
2500
  return g;
2527
2501
  l = w(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
@@ -2529,26 +2503,26 @@ var Xn = (
2529
2503
  break;
2530
2504
  }
2531
2505
  if (h.has(u))
2532
- return this.error(r === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2506
+ return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2533
2507
  u === "other" && (a = !0), this.bumpSpace();
2534
- var v = this.clonePosition();
2508
+ var b = this.clonePosition();
2535
2509
  if (!this.bumpIf("{"))
2536
- return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
2510
+ return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
2537
2511
  var f = this.parseMessage(t + 1, r, n);
2538
2512
  if (f.err)
2539
2513
  return f;
2540
- var m = this.tryParseArgumentClose(v);
2514
+ var m = this.tryParseArgumentClose(b);
2541
2515
  if (m.err)
2542
2516
  return m;
2543
2517
  s.push([
2544
2518
  u,
2545
2519
  {
2546
2520
  value: f.val,
2547
- location: w(v, this.clonePosition())
2521
+ location: w(b, this.clonePosition())
2548
2522
  }
2549
2523
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2550
2524
  }
2551
- return s.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2525
+ return s.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(T.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2552
2526
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2553
2527
  var n = 1, i = this.clonePosition();
2554
2528
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2560,7 +2534,7 @@ var Xn = (
2560
2534
  break;
2561
2535
  }
2562
2536
  var h = w(i, this.clonePosition());
2563
- return o ? (a *= n, Dn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2537
+ return o ? (a *= n, Pn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2564
2538
  }, e.prototype.offset = function() {
2565
2539
  return this.position.offset;
2566
2540
  }, e.prototype.isEOF = function() {
@@ -2575,7 +2549,7 @@ var Xn = (
2575
2549
  var t = this.position.offset;
2576
2550
  if (t >= this.message.length)
2577
2551
  throw Error("out of bound");
2578
- var r = tr(this.message, t);
2552
+ var r = $t(this.message, t);
2579
2553
  if (r === void 0)
2580
2554
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2581
2555
  return r;
@@ -2594,7 +2568,7 @@ var Xn = (
2594
2568
  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);
2595
2569
  }
2596
2570
  }, e.prototype.bumpIf = function(t) {
2597
- if (mt(this.message, t, this.offset())) {
2571
+ if (dt(this.message, t, this.offset())) {
2598
2572
  for (var r = 0; r < t.length; r++)
2599
2573
  this.bump();
2600
2574
  return !0;
@@ -2616,57 +2590,57 @@ var Xn = (
2616
2590
  break;
2617
2591
  }
2618
2592
  }, e.prototype.bumpSpace = function() {
2619
- for (; !this.isEOF() && nr(this.char()); )
2593
+ for (; !this.isEOF() && tr(this.char()); )
2620
2594
  this.bump();
2621
2595
  }, e.prototype.peek = function() {
2622
2596
  if (this.isEOF())
2623
2597
  return null;
2624
2598
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
2625
- return n != null ? n : null;
2599
+ return n ?? null;
2626
2600
  }, e;
2627
2601
  }()
2628
2602
  );
2629
- function We(e) {
2603
+ function qe(e) {
2630
2604
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2631
2605
  }
2632
- function qn(e) {
2633
- return We(e) || e === 47;
2606
+ function Ln(e) {
2607
+ return qe(e) || e === 47;
2634
2608
  }
2635
- function Wn(e) {
2609
+ function Rn(e) {
2636
2610
  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;
2637
2611
  }
2638
- function nr(e) {
2612
+ function tr(e) {
2639
2613
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2640
2614
  }
2641
- function Zn(e) {
2615
+ function Un(e) {
2642
2616
  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;
2643
2617
  }
2644
- function Ze(e) {
2618
+ function We(e) {
2645
2619
  e.forEach(function(t) {
2646
- if (delete t.location, Wt(t) || Zt(t))
2620
+ if (delete t.location, Xt(t) || qt(t))
2647
2621
  for (var r in t.options)
2648
- delete t.options[r].location, Ze(t.options[r].value);
2622
+ delete t.options[r].location, We(t.options[r].value);
2649
2623
  else
2650
- Vt(t) && Qt(t.style) || (Xt(t) || qt(t)) && Fe(t.style) ? delete t.style.location : Jt(t) && Ze(t.children);
2624
+ Gt(t) && Zt(t.style) || (Ft(t) || Vt(t)) && Ge(t.style) ? delete t.style.location : Wt(t) && We(t.children);
2651
2625
  });
2652
2626
  }
2653
- function Jn(e, t) {
2627
+ function Dn(e, t) {
2654
2628
  t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2655
- var r = new Xn(e, t).parse();
2629
+ var r = new jn(e, t).parse();
2656
2630
  if (r.err) {
2657
- var n = SyntaxError(M[r.err.kind]);
2631
+ var n = SyntaxError(T[r.err.kind]);
2658
2632
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
2659
2633
  }
2660
- return t != null && t.captureLocation || Ze(r.val), r.val;
2634
+ return t?.captureLocation || We(r.val), r.val;
2661
2635
  }
2662
2636
  var re;
2663
2637
  (function(e) {
2664
2638
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2665
2639
  })(re || (re = {}));
2666
- var He = (
2640
+ var Ae = (
2667
2641
  /** @class */
2668
2642
  function(e) {
2669
- Ae(t, e);
2643
+ Ne(t, e);
2670
2644
  function t(r, n, i) {
2671
2645
  var o = e.call(this, r) || this;
2672
2646
  return o.code = n, o.originalMessage = i, o;
@@ -2675,48 +2649,48 @@ var He = (
2675
2649
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2676
2650
  }, t;
2677
2651
  }(Error)
2678
- ), _t = (
2652
+ ), pt = (
2679
2653
  /** @class */
2680
2654
  function(e) {
2681
- Ae(t, e);
2655
+ Ne(t, e);
2682
2656
  function t(r, n, i, o) {
2683
2657
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
2684
2658
  }
2685
2659
  return t;
2686
- }(He)
2687
- ), Qn = (
2660
+ }(Ae)
2661
+ ), Gn = (
2688
2662
  /** @class */
2689
2663
  function(e) {
2690
- Ae(t, e);
2664
+ Ne(t, e);
2691
2665
  function t(r, n, i) {
2692
2666
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
2693
2667
  }
2694
2668
  return t;
2695
- }(He)
2696
- ), Yn = (
2669
+ }(Ae)
2670
+ ), Fn = (
2697
2671
  /** @class */
2698
2672
  function(e) {
2699
- Ae(t, e);
2673
+ Ne(t, e);
2700
2674
  function t(r, n) {
2701
2675
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
2702
2676
  }
2703
2677
  return t;
2704
- }(He)
2678
+ }(Ae)
2705
2679
  ), D;
2706
2680
  (function(e) {
2707
2681
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
2708
2682
  })(D || (D = {}));
2709
- function Kn(e) {
2683
+ function Vn(e) {
2710
2684
  return e.length < 2 ? e : e.reduce(function(t, r) {
2711
2685
  var n = t[t.length - 1];
2712
2686
  return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
2713
2687
  }, []);
2714
2688
  }
2715
- function $n(e) {
2689
+ function Xn(e) {
2716
2690
  return typeof e == "function";
2717
2691
  }
2718
- function ze(e, t, r, n, i, o, a) {
2719
- if (e.length === 1 && ut(e[0]))
2692
+ function xe(e, t, r, n, i, o, a) {
2693
+ if (e.length === 1 && lt(e[0]))
2720
2694
  return [
2721
2695
  {
2722
2696
  type: D.literal,
@@ -2725,14 +2699,14 @@ function ze(e, t, r, n, i, o, a) {
2725
2699
  ];
2726
2700
  for (var s = [], h = 0, u = e; h < u.length; h++) {
2727
2701
  var l = u[h];
2728
- if (ut(l)) {
2702
+ if (lt(l)) {
2729
2703
  s.push({
2730
2704
  type: D.literal,
2731
2705
  value: l.value
2732
2706
  });
2733
2707
  continue;
2734
2708
  }
2735
- if (kn(l)) {
2709
+ if (gn(l)) {
2736
2710
  typeof o == "number" && s.push({
2737
2711
  type: D.literal,
2738
2712
  value: r.getNumberFormat(t).format(o)
@@ -2741,89 +2715,89 @@ function ze(e, t, r, n, i, o, a) {
2741
2715
  }
2742
2716
  var d = l.value;
2743
2717
  if (!(i && d in i))
2744
- throw new Yn(d, a);
2718
+ throw new Fn(d, a);
2745
2719
  var g = i[d];
2746
- if (yn(l)) {
2720
+ if (dn(l)) {
2747
2721
  (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
2748
2722
  type: typeof g == "string" ? D.literal : D.object,
2749
2723
  value: g
2750
2724
  });
2751
2725
  continue;
2752
2726
  }
2753
- if (Xt(l)) {
2754
- var v = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
2727
+ if (Ft(l)) {
2728
+ var b = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
2755
2729
  s.push({
2756
2730
  type: D.literal,
2757
- value: r.getDateTimeFormat(t, v).format(g)
2731
+ value: r.getDateTimeFormat(t, b).format(g)
2758
2732
  });
2759
2733
  continue;
2760
2734
  }
2761
- if (qt(l)) {
2762
- var v = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
2735
+ if (Vt(l)) {
2736
+ var b = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
2763
2737
  s.push({
2764
2738
  type: D.literal,
2765
- value: r.getDateTimeFormat(t, v).format(g)
2739
+ value: r.getDateTimeFormat(t, b).format(g)
2766
2740
  });
2767
2741
  continue;
2768
2742
  }
2769
- if (Vt(l)) {
2770
- var v = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
2771
- v && v.scale && (g = g * (v.scale || 1)), s.push({
2743
+ if (Gt(l)) {
2744
+ var b = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
2745
+ b && b.scale && (g = g * (b.scale || 1)), s.push({
2772
2746
  type: D.literal,
2773
- value: r.getNumberFormat(t, v).format(g)
2747
+ value: r.getNumberFormat(t, b).format(g)
2774
2748
  });
2775
2749
  continue;
2776
2750
  }
2777
- if (Jt(l)) {
2778
- var f = l.children, m = l.value, C = i[m];
2779
- if (!$n(C))
2780
- throw new Qn(m, "function", a);
2781
- var _ = ze(f, t, r, n, i, o), b = C(_.map(function(k) {
2782
- return k.value;
2751
+ if (Wt(l)) {
2752
+ var f = l.children, m = l.value, S = i[m];
2753
+ if (!Xn(S))
2754
+ throw new Gn(m, "function", a);
2755
+ var _ = xe(f, t, r, n, i, o), y = S(_.map(function(E) {
2756
+ return E.value;
2783
2757
  }));
2784
- Array.isArray(b) || (b = [b]), s.push.apply(s, b.map(function(k) {
2758
+ Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(E) {
2785
2759
  return {
2786
- type: typeof k == "string" ? D.literal : D.object,
2787
- value: k
2760
+ type: typeof E == "string" ? D.literal : D.object,
2761
+ value: E
2788
2762
  };
2789
2763
  }));
2790
2764
  }
2791
- if (Wt(l)) {
2792
- var x = l.options[g] || l.options.other;
2793
- if (!x)
2794
- throw new _t(l.value, g, Object.keys(l.options), a);
2795
- s.push.apply(s, ze(x.value, t, r, n, i));
2765
+ if (Xt(l)) {
2766
+ var C = l.options[g] || l.options.other;
2767
+ if (!C)
2768
+ throw new pt(l.value, g, Object.keys(l.options), a);
2769
+ s.push.apply(s, xe(C.value, t, r, n, i));
2796
2770
  continue;
2797
2771
  }
2798
- if (Zt(l)) {
2799
- var x = l.options["=".concat(g)];
2800
- if (!x) {
2772
+ if (qt(l)) {
2773
+ var C = l.options["=".concat(g)];
2774
+ if (!C) {
2801
2775
  if (!Intl.PluralRules)
2802
- throw new He(`Intl.PluralRules is not available in this environment.
2776
+ throw new Ae(`Intl.PluralRules is not available in this environment.
2803
2777
  Try polyfilling it using "@formatjs/intl-pluralrules"
2804
2778
  `, re.MISSING_INTL_API, a);
2805
2779
  var H = r.getPluralRules(t, { type: l.pluralType }).select(g - (l.offset || 0));
2806
- x = l.options[H] || l.options.other;
2780
+ C = l.options[H] || l.options.other;
2807
2781
  }
2808
- if (!x)
2809
- throw new _t(l.value, g, Object.keys(l.options), a);
2810
- s.push.apply(s, ze(x.value, t, r, n, i, g - (l.offset || 0)));
2782
+ if (!C)
2783
+ throw new pt(l.value, g, Object.keys(l.options), a);
2784
+ s.push.apply(s, xe(C.value, t, r, n, i, g - (l.offset || 0)));
2811
2785
  continue;
2812
2786
  }
2813
2787
  }
2814
- return Kn(s);
2788
+ return Vn(s);
2815
2789
  }
2816
- function ei(e, t) {
2790
+ function qn(e, t) {
2817
2791
  return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2818
2792
  return r[n] = A(A({}, e[n]), t[n] || {}), r;
2819
2793
  }, {})) : e;
2820
2794
  }
2821
- function ti(e, t) {
2795
+ function Wn(e, t) {
2822
2796
  return t ? Object.keys(e).reduce(function(r, n) {
2823
- return r[n] = ei(e[n], t[n]), r;
2797
+ return r[n] = qn(e[n], t[n]), r;
2824
2798
  }, A({}, e)) : e;
2825
2799
  }
2826
- function Ue(e) {
2800
+ function Re(e) {
2827
2801
  return {
2828
2802
  create: function() {
2829
2803
  return {
@@ -2837,39 +2811,39 @@ function Ue(e) {
2837
2811
  }
2838
2812
  };
2839
2813
  }
2840
- function ri(e) {
2814
+ function Zn(e) {
2841
2815
  return e === void 0 && (e = {
2842
2816
  number: {},
2843
2817
  dateTime: {},
2844
2818
  pluralRules: {}
2845
2819
  }), {
2846
- getNumberFormat: je(function() {
2820
+ getNumberFormat: Ie(function() {
2847
2821
  for (var t, r = [], n = 0; n < arguments.length; n++)
2848
2822
  r[n] = arguments[n];
2849
- return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
2823
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
2850
2824
  }, {
2851
- cache: Ue(e.number),
2852
- strategy: Le.variadic
2825
+ cache: Re(e.number),
2826
+ strategy: je.variadic
2853
2827
  }),
2854
- getDateTimeFormat: je(function() {
2828
+ getDateTimeFormat: Ie(function() {
2855
2829
  for (var t, r = [], n = 0; n < arguments.length; n++)
2856
2830
  r[n] = arguments[n];
2857
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
2831
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
2858
2832
  }, {
2859
- cache: Ue(e.dateTime),
2860
- strategy: Le.variadic
2833
+ cache: Re(e.dateTime),
2834
+ strategy: je.variadic
2861
2835
  }),
2862
- getPluralRules: je(function() {
2836
+ getPluralRules: Ie(function() {
2863
2837
  for (var t, r = [], n = 0; n < arguments.length; n++)
2864
2838
  r[n] = arguments[n];
2865
- return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
2839
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
2866
2840
  }, {
2867
- cache: Ue(e.pluralRules),
2868
- strategy: Le.variadic
2841
+ cache: Re(e.pluralRules),
2842
+ strategy: je.variadic
2869
2843
  })
2870
2844
  };
2871
2845
  }
2872
- var ni = (
2846
+ var Jn = (
2873
2847
  /** @class */
2874
2848
  function() {
2875
2849
  function e(t, r, n, i) {
@@ -2888,7 +2862,7 @@ var ni = (
2888
2862
  }, []);
2889
2863
  return l.length <= 1 ? l[0] || "" : l;
2890
2864
  }, this.formatToParts = function(h) {
2891
- return ze(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
2865
+ return xe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
2892
2866
  }, this.resolvedOptions = function() {
2893
2867
  var h;
2894
2868
  return {
@@ -2901,13 +2875,13 @@ var ni = (
2901
2875
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2902
2876
  var a = i || {};
2903
2877
  a.formatters;
2904
- var s = dn(a, ["formatters"]);
2878
+ var s = on(a, ["formatters"]);
2905
2879
  this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
2906
2880
  } else
2907
2881
  this.ast = t;
2908
2882
  if (!Array.isArray(this.ast))
2909
2883
  throw new TypeError("A message must be provided as a String or AST.");
2910
- this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
2884
+ this.formats = Wn(e.formats, n), this.formatters = i && i.formatters || Zn(this.formatterCache);
2911
2885
  }
2912
2886
  return Object.defineProperty(e, "defaultLocale", {
2913
2887
  get: function() {
@@ -2916,11 +2890,11 @@ var ni = (
2916
2890
  enumerable: !1,
2917
2891
  configurable: !0
2918
2892
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
2919
- if (typeof Intl.Locale != "undefined") {
2893
+ if (!(typeof Intl.Locale > "u")) {
2920
2894
  var r = Intl.NumberFormat.supportedLocalesOf(t);
2921
2895
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
2922
2896
  }
2923
- }, e.__parse = Jn, e.formats = {
2897
+ }, e.__parse = Dn, e.formats = {
2924
2898
  number: {
2925
2899
  integer: {
2926
2900
  maximumFractionDigits: 0
@@ -2981,7 +2955,7 @@ var ni = (
2981
2955
  }, e;
2982
2956
  }()
2983
2957
  );
2984
- function ii(e, t) {
2958
+ function Qn(e, t) {
2985
2959
  if (t == null)
2986
2960
  return;
2987
2961
  if (t in e)
@@ -3002,92 +2976,92 @@ function ii(e, t) {
3002
2976
  n = void 0;
3003
2977
  return n;
3004
2978
  }
3005
- const J = {}, oi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), ir = (e, t) => {
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) => {
3006
2980
  if (t == null)
3007
2981
  return;
3008
2982
  if (t in J && e in J[t])
3009
2983
  return J[t][e];
3010
- const r = Pe(t);
2984
+ const r = He(t);
3011
2985
  for (let n = 0; n < r.length; n++) {
3012
- const i = r[n], o = si(i, e);
2986
+ const i = r[n], o = $n(i, e);
3013
2987
  if (o)
3014
- return oi(e, t, o);
2988
+ return Yn(e, t, o);
3015
2989
  }
3016
2990
  };
3017
- let $e;
3018
- const be = Ne({});
3019
- function ai(e) {
3020
- return $e[e] || null;
2991
+ let et;
2992
+ const _e = we({});
2993
+ function Kn(e) {
2994
+ return et[e] || null;
3021
2995
  }
3022
- function or(e) {
3023
- return e in $e;
2996
+ function nr(e) {
2997
+ return e in et;
3024
2998
  }
3025
- function si(e, t) {
3026
- if (!or(e))
2999
+ function $n(e, t) {
3000
+ if (!nr(e))
3027
3001
  return null;
3028
- const r = ai(e);
3029
- return ii(r, t);
3002
+ const r = Kn(e);
3003
+ return Qn(r, t);
3030
3004
  }
3031
- function li(e) {
3005
+ function ei(e) {
3032
3006
  if (e == null)
3033
3007
  return;
3034
- const t = Pe(e);
3008
+ const t = He(e);
3035
3009
  for (let r = 0; r < t.length; r++) {
3036
3010
  const n = t[r];
3037
- if (or(n))
3011
+ if (nr(n))
3038
3012
  return n;
3039
3013
  }
3040
3014
  }
3041
- function ar(e, ...t) {
3042
- delete J[e], be.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
3015
+ function ir(e, ...t) {
3016
+ delete J[e], _e.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
3043
3017
  }
3044
3018
  ie(
3045
- [be],
3019
+ [_e],
3046
3020
  ([e]) => Object.keys(e)
3047
3021
  );
3048
- be.subscribe((e) => $e = e);
3049
- const Te = {};
3050
- function ci(e, t) {
3051
- Te[e].delete(t), Te[e].size === 0 && delete Te[e];
3022
+ _e.subscribe((e) => et = e);
3023
+ const ze = {};
3024
+ function ti(e, t) {
3025
+ ze[e].delete(t), ze[e].size === 0 && delete ze[e];
3052
3026
  }
3053
- function sr(e) {
3054
- return Te[e];
3027
+ function or(e) {
3028
+ return ze[e];
3055
3029
  }
3056
- function ui(e) {
3057
- return Pe(e).map((t) => {
3058
- const r = sr(t);
3030
+ function ri(e) {
3031
+ return He(e).map((t) => {
3032
+ const r = or(t);
3059
3033
  return [t, r ? [...r] : []];
3060
3034
  }).filter(([, t]) => t.length > 0);
3061
3035
  }
3062
- function Je(e) {
3063
- return e == null ? !1 : Pe(e).some(
3036
+ function Ze(e) {
3037
+ return e == null ? !1 : He(e).some(
3064
3038
  (t) => {
3065
3039
  var r;
3066
- return (r = sr(t)) == null ? void 0 : r.size;
3040
+ return (r = or(t)) == null ? void 0 : r.size;
3067
3041
  }
3068
3042
  );
3069
3043
  }
3070
- function hi(e, t) {
3044
+ function ni(e, t) {
3071
3045
  return Promise.all(
3072
- t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
3073
- ).then((n) => ar(e, ...n));
3046
+ t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
3047
+ ).then((n) => ir(e, ...n));
3074
3048
  }
3075
- const de = {};
3076
- function lr(e) {
3077
- if (!Je(e))
3078
- return e in de ? de[e] : Promise.resolve();
3079
- const t = ui(e);
3080
- return de[e] = Promise.all(
3049
+ const he = {};
3050
+ function ar(e) {
3051
+ if (!Ze(e))
3052
+ return e in he ? he[e] : Promise.resolve();
3053
+ const t = ri(e);
3054
+ return he[e] = Promise.all(
3081
3055
  t.map(
3082
- ([r, n]) => hi(r, n)
3056
+ ([r, n]) => ni(r, n)
3083
3057
  )
3084
3058
  ).then(() => {
3085
- if (Je(e))
3086
- return lr(e);
3087
- delete de[e];
3088
- }), de[e];
3059
+ if (Ze(e))
3060
+ return ar(e);
3061
+ delete he[e];
3062
+ }), he[e];
3089
3063
  }
3090
- const di = {
3064
+ const ii = {
3091
3065
  number: {
3092
3066
  scientific: { notation: "scientific" },
3093
3067
  engineering: { notation: "engineering" },
@@ -3116,135 +3090,135 @@ const di = {
3116
3090
  timeZoneName: "short"
3117
3091
  }
3118
3092
  }
3119
- }, gi = {
3093
+ }, oi = {
3120
3094
  fallbackLocale: null,
3121
3095
  loadingDelay: 200,
3122
- formats: di,
3096
+ formats: ii,
3123
3097
  warnOnMissingMessages: !0,
3124
3098
  handleMissingMessage: void 0,
3125
3099
  ignoreTag: !0
3126
- }, mi = gi;
3100
+ }, ai = oi;
3127
3101
  function ne() {
3128
- return mi;
3102
+ return ai;
3129
3103
  }
3130
- const De = Ne(!1);
3131
- var pi = Object.defineProperty, fi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
3104
+ const Ue = we(!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) => {
3132
3106
  for (var r in t || (t = {}))
3133
- bi.call(t, r) && vt(e, r, t[r]);
3134
- if (bt)
3135
- for (var r of bt(t))
3136
- vi.call(t, r) && vt(e, r, t[r]);
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]);
3137
3111
  return e;
3138
- }, ki = (e, t) => fi(e, _i(t));
3139
- let Qe;
3140
- const Me = Ne(null);
3141
- function yt(e) {
3112
+ }, gi = (e, t) => li(e, ci(t));
3113
+ let Je;
3114
+ const Me = we(null);
3115
+ function bt(e) {
3142
3116
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3143
3117
  }
3144
- function Pe(e, t = ne().fallbackLocale) {
3145
- const r = yt(e);
3146
- return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
3118
+ function He(e, t = ne().fallbackLocale) {
3119
+ const r = bt(e);
3120
+ return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
3147
3121
  }
3148
3122
  function Y() {
3149
- return Qe != null ? Qe : void 0;
3123
+ return Je ?? void 0;
3150
3124
  }
3151
3125
  Me.subscribe((e) => {
3152
- Qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3126
+ Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3153
3127
  });
3154
- const Ei = (e) => {
3155
- if (e && li(e) && Je(e)) {
3128
+ const mi = (e) => {
3129
+ if (e && ei(e) && Ze(e)) {
3156
3130
  const { loadingDelay: t } = ne();
3157
3131
  let r;
3158
- return typeof window != "undefined" && Y() != null && t ? r = window.setTimeout(
3159
- () => De.set(!0),
3132
+ return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
3133
+ () => Ue.set(!0),
3160
3134
  t
3161
- ) : De.set(!0), lr(e).then(() => {
3135
+ ) : Ue.set(!0), ar(e).then(() => {
3162
3136
  Me.set(e);
3163
3137
  }).finally(() => {
3164
- clearTimeout(r), De.set(!1);
3138
+ clearTimeout(r), Ue.set(!1);
3165
3139
  });
3166
3140
  }
3167
3141
  return Me.set(e);
3168
- }, oe = ki(yi({}, Me), {
3169
- set: Ei
3170
- }), Be = (e) => {
3142
+ }, oe = gi(di({}, Me), {
3143
+ set: mi
3144
+ }), Pe = (e) => {
3171
3145
  const t = /* @__PURE__ */ Object.create(null);
3172
3146
  return (n) => {
3173
3147
  const i = JSON.stringify(n);
3174
3148
  return i in t ? t[i] : t[i] = e(n);
3175
3149
  };
3176
3150
  };
3177
- var Ci = Object.defineProperty, we = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
3151
+ var pi = Object.defineProperty, Te = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
3178
3152
  for (var r in t || (t = {}))
3179
- cr.call(t, r) && kt(e, r, t[r]);
3180
- if (we)
3181
- for (var r of we(t))
3182
- ur.call(t, r) && kt(e, r, t[r]);
3153
+ sr.call(t, r) && yt(e, r, t[r]);
3154
+ if (Te)
3155
+ for (var r of Te(t))
3156
+ lr.call(t, r) && yt(e, r, t[r]);
3183
3157
  return e;
3184
3158
  }, ae = (e, t) => {
3185
3159
  var r = {};
3186
3160
  for (var n in e)
3187
- cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3188
- if (e != null && we)
3189
- for (var n of we(e))
3190
- t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
3161
+ sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3162
+ if (e != null && Te)
3163
+ for (var n of Te(e))
3164
+ t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
3191
3165
  return r;
3192
3166
  };
3193
- const pe = (e, t) => {
3167
+ const me = (e, t) => {
3194
3168
  const { formats: r } = ne();
3195
3169
  if (e in r && t in r[e])
3196
3170
  return r[e][t];
3197
3171
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3198
- }, Si = Be(
3172
+ }, fi = Pe(
3199
3173
  (e) => {
3200
3174
  var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3201
3175
  if (r == null)
3202
3176
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3203
- return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
3177
+ return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3204
3178
  }
3205
- ), xi = Be(
3179
+ ), _i = Pe(
3206
3180
  (e) => {
3207
3181
  var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3208
3182
  if (r == null)
3209
3183
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3210
- return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
3184
+ return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3211
3185
  }
3212
- ), zi = Be(
3186
+ ), bi = Pe(
3213
3187
  (e) => {
3214
3188
  var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3215
3189
  if (r == null)
3216
3190
  throw new Error(
3217
3191
  '[svelte-i18n] A "locale" must be set to format time values'
3218
3192
  );
3219
- return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
3193
+ return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3220
3194
  }
3221
- ), Ti = (e = {}) => {
3195
+ ), yi = (e = {}) => {
3222
3196
  var t = e, {
3223
3197
  locale: r = Y()
3224
3198
  } = t, n = ae(t, [
3225
3199
  "locale"
3226
3200
  ]);
3227
- return Si(et({ locale: r }, n));
3228
- }, Mi = (e = {}) => {
3201
+ return fi(tt({ locale: r }, n));
3202
+ }, vi = (e = {}) => {
3229
3203
  var t = e, {
3230
3204
  locale: r = Y()
3231
3205
  } = t, n = ae(t, [
3232
3206
  "locale"
3233
3207
  ]);
3234
- return xi(et({ locale: r }, n));
3235
- }, wi = (e = {}) => {
3208
+ return _i(tt({ locale: r }, n));
3209
+ }, ki = (e = {}) => {
3236
3210
  var t = e, {
3237
3211
  locale: r = Y()
3238
3212
  } = t, n = ae(t, [
3239
3213
  "locale"
3240
3214
  ]);
3241
- return zi(et({ locale: r }, n));
3242
- }, Ni = Be(
3215
+ return bi(tt({ locale: r }, n));
3216
+ }, Ei = Pe(
3243
3217
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3244
- (e, t = Y()) => new ni(e, t, ne().formats, {
3218
+ (e, t = Y()) => new Jn(e, t, ne().formats, {
3245
3219
  ignoreTag: ne().ignoreTag
3246
3220
  })
3247
- ), Ai = (e, t = {}) => {
3221
+ ), Ci = (e, t = {}) => {
3248
3222
  var r, n, i, o;
3249
3223
  let a = t;
3250
3224
  typeof e == "object" && (a = e, e = a.id);
@@ -3257,7 +3231,7 @@ const pe = (e, t) => {
3257
3231
  throw new Error(
3258
3232
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3259
3233
  );
3260
- let l = ir(e, h);
3234
+ let l = rr(e, h);
3261
3235
  if (!l)
3262
3236
  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;
3263
3237
  else if (typeof l != "string")
@@ -3268,7 +3242,7 @@ const pe = (e, t) => {
3268
3242
  return l;
3269
3243
  let d = l;
3270
3244
  try {
3271
- d = Ni(l, h).format(s);
3245
+ d = Ei(l, h).format(s);
3272
3246
  } catch (g) {
3273
3247
  g instanceof Error && console.warn(
3274
3248
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3276,18 +3250,18 @@ const pe = (e, t) => {
3276
3250
  );
3277
3251
  }
3278
3252
  return d;
3279
- }, Hi = (e, t) => wi(t).format(e), Pi = (e, t) => Mi(t).format(e), Bi = (e, t) => Ti(t).format(e), Oi = (e, t = Y()) => ir(e, t), Ii = ie([oe, be], () => Ai);
3280
- ie([oe], () => Hi);
3281
- ie([oe], () => Pi);
3282
- ie([oe], () => Bi);
3283
- ie([oe, be], () => Oi);
3284
- function Et(e, t) {
3285
- ar(e, t);
3253
+ }, Si = (e, t) => ki(t).format(e), xi = (e, t) => vi(t).format(e), zi = (e, t) => yi(t).format(e), Mi = (e, t = Y()) => rr(e, t), Ti = ie([oe, _e], () => Ci);
3254
+ ie([oe], () => Si);
3255
+ ie([oe], () => xi);
3256
+ ie([oe], () => zi);
3257
+ ie([oe, _e], () => Mi);
3258
+ function vt(e, t) {
3259
+ ir(e, t);
3286
3260
  }
3287
- function ji(e) {
3261
+ function wi(e) {
3288
3262
  oe.set(e);
3289
3263
  }
3290
- const Ct = {
3264
+ const kt = {
3291
3265
  en: {
3292
3266
  invalidUrl: "Failed to construct 'URL': Invalid URL",
3293
3267
  fetchConsentsError: "Error: Could not fetch consents.",
@@ -3847,7 +3821,7 @@ const Ct = {
3847
3821
  wrongModalConfig: "Houve um erro na configuração! Nenhum consentimento expirado encontrado."
3848
3822
  }
3849
3823
  };
3850
- if (typeof window != "undefined") {
3824
+ if (typeof window < "u") {
3851
3825
  let e = function(t) {
3852
3826
  return function(...r) {
3853
3827
  try {
@@ -3859,64 +3833,64 @@ if (typeof window != "undefined") {
3859
3833
  }
3860
3834
  };
3861
3835
  };
3862
- customElements.define = e(customElements.define), import("./GeneralAnimationLoading-CAP3Fch3.js").then((t) => t.G).then(({ default: t }) => {
3836
+ customElements.define = e(customElements.define), import("./GeneralAnimationLoading-BMZE178n.js").then((t) => t.G).then(({ default: t }) => {
3863
3837
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
3864
3838
  });
3865
3839
  }
3866
- function Li(e) {
3840
+ function Ni(e) {
3867
3841
  let t, r;
3868
3842
  return {
3869
3843
  c() {
3870
- t = st("svg"), r = st("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");
3844
+ t = ot("svg"), r = ot("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
3871
3845
  },
3872
3846
  m(n, i) {
3873
- L(n, t, i), S(t, r);
3847
+ j(n, t, i), x(t, r);
3874
3848
  },
3875
3849
  p: q,
3876
3850
  i: q,
3877
3851
  o: q,
3878
3852
  d(n) {
3879
- n && j(t);
3853
+ n && L(t);
3880
3854
  }
3881
3855
  };
3882
3856
  }
3883
- class Ri extends Lt {
3857
+ class Ai extends It {
3884
3858
  constructor(t) {
3885
- super(), Rt(this, t, null, Li, Ye, {});
3859
+ super(), jt(this, t, null, Ni, Qe, {});
3886
3860
  }
3887
3861
  }
3888
- customElements.define("circle-exclamation-icon", jt(Ri, {}, [], [], !0));
3889
- function Ui(e) {
3890
- Ur(e, "svelte-1kygizb", '.DisplayNone.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:none}.ContainerCenter.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:30px}.AccordionHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{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-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:10px}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;padding:10px 0}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{padding-bottom:0}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{margin-bottom:0}.ConsentItem.svelte-1kygizb .ConsentName.svelte-1kygizb.svelte-1kygizb{margin:0}.ConsentItem.svelte-1kygizb .ConsentDescription.svelte-1kygizb.svelte-1kygizb{font-size:0.8rem}.ToggleSwitch.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:53px;height:30px}.ToggleSwitch.Big.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb.svelte-1kygizb{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:disabled+.Slider.svelte-1kygizb{opacity:0.1}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:focus+.Slider.svelte-1kygizb{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb{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-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb: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-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb{border-radius:34px}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb:before{border-radius:50%}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{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, 50px);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-1kygizb.svelte-1kygizb.svelte-1kygizb:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1kygizb circle-exclamation-icon.svelte-1kygizb.svelte-1kygizb{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox.svelte-1kygizb.svelte-1kygizb{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1kygizb.svelte-1kygizb{position:relative}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__input.svelte-1kygizb.svelte-1kygizb{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label.svelte-1kygizb.svelte-1kygizb{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-1kygizb .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1kygizb.svelte-1kygizb{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__error-message.svelte-1kygizb.svelte-1kygizb{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1kygizb.svelte-1kygizb{width:16px;height:auto}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.svelte-1kygizb.svelte-1kygizb{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-1kygizb .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1kygizb.svelte-1kygizb{opacity:1}');
3862
+ customElements.define("circle-exclamation-icon", Ot(Ai, {}, [], [], !0));
3863
+ function Hi(e) {
3864
+ Pr(e, "svelte-1kygizb", '.DisplayNone.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:none}.ContainerCenter.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:30px}.AccordionHeader.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{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-1kygizb.svelte-1kygizb.svelte-1kygizb{margin-bottom:10px}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:block;padding:10px 0}.AccordionContent.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{padding-bottom:0}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb:last-of-type{margin-bottom:0}.ConsentItem.svelte-1kygizb .ConsentName.svelte-1kygizb.svelte-1kygizb{margin:0}.ConsentItem.svelte-1kygizb .ConsentDescription.svelte-1kygizb.svelte-1kygizb{font-size:0.8rem}.ToggleSwitch.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{width:53px;height:30px}.ToggleSwitch.Big.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb.svelte-1kygizb{opacity:0;width:0;height:0}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:disabled+.Slider.svelte-1kygizb{opacity:0.1}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:checked+.Slider.svelte-1kygizb:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-1kygizb input.svelte-1kygizb:focus+.Slider.svelte-1kygizb{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb{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-1kygizb .Slider.svelte-1kygizb.svelte-1kygizb: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-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb{border-radius:34px}.ToggleSwitch.svelte-1kygizb .Slider.Round.svelte-1kygizb.svelte-1kygizb:before{border-radius:50%}.SaveConsentsButton.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{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, 50px);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-1kygizb.svelte-1kygizb.svelte-1kygizb:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-1kygizb circle-exclamation-icon.svelte-1kygizb.svelte-1kygizb{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-1kygizb.svelte-1kygizb.svelte-1kygizb{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox.svelte-1kygizb.svelte-1kygizb{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper.svelte-1kygizb.svelte-1kygizb{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-1kygizb.svelte-1kygizb{position:relative}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__input.svelte-1kygizb.svelte-1kygizb{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__label.svelte-1kygizb.svelte-1kygizb{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-1kygizb .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-1kygizb.svelte-1kygizb{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__error-message.svelte-1kygizb.svelte-1kygizb{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-1kygizb.svelte-1kygizb{width:16px;height:auto}.ConsentsContainer.svelte-1kygizb .legacyStyle .checkbox .checkbox__tooltip.svelte-1kygizb.svelte-1kygizb{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-1kygizb .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-1kygizb.svelte-1kygizb{opacity:1}');
3891
3865
  }
3892
- function St(e, t, r) {
3866
+ function Et(e, t, r) {
3893
3867
  const n = e.slice();
3894
3868
  return n[64] = t[r], n;
3895
3869
  }
3896
- function xt(e, t, r) {
3870
+ function Ct(e, t, r) {
3897
3871
  const n = e.slice();
3898
3872
  return n[61] = t[r], n[62] = t, n[63] = r, n;
3899
3873
  }
3900
- function zt(e, t, r) {
3874
+ function St(e, t, r) {
3901
3875
  const n = e.slice();
3902
3876
  return n[64] = t[r], n;
3903
3877
  }
3904
- function Di(e) {
3878
+ function Pi(e) {
3905
3879
  let t, r, n = $(
3906
3880
  /*playerConsents*/
3907
3881
  e[9]
3908
3882
  ), i = [];
3909
3883
  for (let o = 0; o < n.length; o += 1)
3910
- i[o] = Tt(St(e, n, o));
3884
+ i[o] = xt(Et(e, n, o));
3911
3885
  return {
3912
3886
  c() {
3913
3887
  t = N("div"), r = N("form");
3914
3888
  for (let o = 0; o < i.length; o += 1)
3915
3889
  i[o].c();
3916
- E(r, "class", "checkbox svelte-1kygizb"), E(t, "class", "legacyStyle");
3890
+ k(r, "class", "checkbox svelte-1kygizb"), k(t, "class", "legacyStyle");
3917
3891
  },
3918
3892
  m(o, a) {
3919
- L(o, t, a), S(t, r);
3893
+ j(o, t, a), x(t, r);
3920
3894
  for (let s = 0; s < i.length; s += 1)
3921
3895
  i[s] && i[s].m(r, null);
3922
3896
  e[31](r);
@@ -3930,8 +3904,8 @@ function Di(e) {
3930
3904
  );
3931
3905
  let s;
3932
3906
  for (s = 0; s < n.length; s += 1) {
3933
- const h = St(o, n, s);
3934
- i[s] ? i[s].p(h, a) : (i[s] = Tt(h), i[s].c(), i[s].m(r, null));
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));
3935
3909
  }
3936
3910
  for (; s < i.length; s += 1)
3937
3911
  i[s].d(1);
@@ -3939,11 +3913,11 @@ function Di(e) {
3939
3913
  }
3940
3914
  },
3941
3915
  d(o) {
3942
- o && j(t), Ke(i, o), e[31](null);
3916
+ o && L(t), Ye(i, o), e[31](null);
3943
3917
  }
3944
3918
  };
3945
3919
  }
3946
- function Gi(e) {
3920
+ function Bi(e) {
3947
3921
  let t = (
3948
3922
  /*$_*/
3949
3923
  e[16]("title") || /*$_*/
@@ -3951,40 +3925,40 @@ function Gi(e) {
3951
3925
  ), r, n, i, o = (
3952
3926
  /*$_*/
3953
3927
  (e[16]("saveButtonContent") || "Save Consents") + ""
3954
- ), a, s, h, u, l, d = t && Mt(e), g = $(
3928
+ ), a, s, h, u, l, d = t && zt(e), g = $(
3955
3929
  /*consentsCategories*/
3956
3930
  e[8]
3957
- ), v = [];
3931
+ ), b = [];
3958
3932
  for (let m = 0; m < g.length; m += 1)
3959
- v[m] = Bt(xt(e, g, m));
3933
+ b[m] = Ht(Ct(e, g, m));
3960
3934
  let f = (
3961
3935
  /*errorMessage*/
3962
- e[6] && Ot(e)
3936
+ e[6] && Pt(e)
3963
3937
  );
3964
3938
  return {
3965
3939
  c() {
3966
3940
  d && d.c(), r = G();
3967
- for (let m = 0; m < v.length; m += 1)
3968
- v[m].c();
3969
- n = G(), i = N("button"), s = G(), f && f.c(), h = Fr(), E(i, "class", "SaveConsentsButton svelte-1kygizb"), i.disabled = a = !/*isValid*/
3941
+ for (let m = 0; m < b.length; m += 1)
3942
+ b[m].c();
3943
+ n = G(), i = N("button"), s = G(), f && f.c(), h = Ur(), k(i, "class", "SaveConsentsButton svelte-1kygizb"), i.disabled = a = !/*isValid*/
3970
3944
  e[14];
3971
3945
  },
3972
- m(m, C) {
3973
- d && d.m(m, C), L(m, r, C);
3974
- for (let _ = 0; _ < v.length; _ += 1)
3975
- v[_] && v[_].m(m, C);
3976
- L(m, n, C), L(m, i, C), i.innerHTML = o, L(m, s, C), f && f.m(m, C), L(m, h, C), u || (l = ge(
3946
+ m(m, S) {
3947
+ d && d.m(m, S), j(m, r, S);
3948
+ for (let _ = 0; _ < b.length; _ += 1)
3949
+ b[_] && b[_].m(m, S);
3950
+ j(m, n, S), j(m, i, S), i.innerHTML = o, j(m, s, S), f && f.m(m, S), j(m, h, S), u || (l = de(
3977
3951
  i,
3978
3952
  "click",
3979
3953
  /*saveChanges*/
3980
3954
  e[17]
3981
3955
  ), u = !0);
3982
3956
  },
3983
- p(m, C) {
3984
- if (C[0] & /*$_*/
3957
+ p(m, S) {
3958
+ if (S[0] & /*$_*/
3985
3959
  65536 && (t = /*$_*/
3986
3960
  m[16]("title") || /*$_*/
3987
- m[16]("description")), t ? d ? d.p(m, C) : (d = Mt(m), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
3961
+ m[16]("description")), t ? d ? d.p(m, S) : (d = zt(m), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
3988
3962
  867088) {
3989
3963
  g = $(
3990
3964
  /*consentsCategories*/
@@ -3992,36 +3966,36 @@ function Gi(e) {
3992
3966
  );
3993
3967
  let _;
3994
3968
  for (_ = 0; _ < g.length; _ += 1) {
3995
- const b = xt(m, g, _);
3996
- v[_] ? v[_].p(b, C) : (v[_] = Bt(b), v[_].c(), v[_].m(n.parentNode, n));
3969
+ const y = Ct(m, g, _);
3970
+ b[_] ? b[_].p(y, S) : (b[_] = Ht(y), b[_].c(), b[_].m(n.parentNode, n));
3997
3971
  }
3998
- for (; _ < v.length; _ += 1)
3999
- v[_].d(1);
4000
- v.length = g.length;
3972
+ for (; _ < b.length; _ += 1)
3973
+ b[_].d(1);
3974
+ b.length = g.length;
4001
3975
  }
4002
- C[0] & /*$_*/
3976
+ S[0] & /*$_*/
4003
3977
  65536 && o !== (o = /*$_*/
4004
- (m[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
3978
+ (m[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
4005
3979
  16384 && a !== (a = !/*isValid*/
4006
3980
  m[14]) && (i.disabled = a), /*errorMessage*/
4007
- m[6] ? f ? f.p(m, C) : (f = Ot(m), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
3981
+ m[6] ? f ? f.p(m, S) : (f = Pt(m), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
4008
3982
  },
4009
3983
  d(m) {
4010
- m && (j(r), j(n), j(i), j(s), j(h)), d && d.d(m), Ke(v, m), f && f.d(m), u = !1, l();
3984
+ m && (L(r), L(n), L(i), L(s), L(h)), d && d.d(m), Ye(b, m), f && f.d(m), u = !1, l();
4011
3985
  }
4012
3986
  };
4013
3987
  }
4014
- function Fi(e) {
3988
+ function Oi(e) {
4015
3989
  let t, r, n;
4016
3990
  return {
4017
3991
  c() {
4018
- t = N("div"), r = N("strong"), n = _e(
3992
+ t = N("div"), r = N("strong"), n = pe(
4019
3993
  /*fatalError*/
4020
3994
  e[7]
4021
- ), E(r, "class", "ErrorMessage svelte-1kygizb"), E(t, "class", "ContainerCenter svelte-1kygizb");
3995
+ ), k(r, "class", "ErrorMessage svelte-1kygizb"), k(t, "class", "ContainerCenter svelte-1kygizb");
4022
3996
  },
4023
3997
  m(i, o) {
4024
- L(i, t, o), S(t, r), S(r, n);
3998
+ j(i, t, o), x(t, r), x(r, n);
4025
3999
  },
4026
4000
  p(i, o) {
4027
4001
  o[0] & /*fatalError*/
@@ -4032,11 +4006,11 @@ function Fi(e) {
4032
4006
  );
4033
4007
  },
4034
4008
  d(i) {
4035
- i && j(t);
4009
+ i && L(t);
4036
4010
  }
4037
4011
  };
4038
4012
  }
4039
- function Vi(e) {
4013
+ function Ii(e) {
4040
4014
  let t;
4041
4015
  return {
4042
4016
  c() {
@@ -4058,7 +4032,7 @@ function Vi(e) {
4058
4032
  );
4059
4033
  },
4060
4034
  m(r, n) {
4061
- L(r, t, n);
4035
+ j(r, t, n);
4062
4036
  },
4063
4037
  p(r, n) {
4064
4038
  n[0] & /*clientstyling*/
@@ -4082,11 +4056,11 @@ function Vi(e) {
4082
4056
  );
4083
4057
  },
4084
4058
  d(r) {
4085
- r && j(t);
4059
+ r && L(t);
4086
4060
  }
4087
4061
  };
4088
4062
  }
4089
- function Tt(e) {
4063
+ function xt(e) {
4090
4064
  let t, r, n, i, o, a, s, h, u = (
4091
4065
  /*$_*/
4092
4066
  (e[16](`${/*consent*/
@@ -4095,35 +4069,35 @@ function Tt(e) {
4095
4069
  ), l = (
4096
4070
  /*consent*/
4097
4071
  e[64].mustAccept ? " *" : ""
4098
- ), d, g, v, f, m, C, _, b, x;
4099
- function H(...k) {
4072
+ ), d, g, b, f, m, S, _, y, C;
4073
+ function H(...E) {
4100
4074
  return (
4101
4075
  /*input_handler_1*/
4102
4076
  e[30](
4103
4077
  /*consent*/
4104
4078
  e[64],
4105
- ...k
4079
+ ...E
4106
4080
  )
4107
4081
  );
4108
4082
  }
4109
4083
  return {
4110
4084
  c() {
4111
- t = N("div"), r = N("input"), o = G(), a = N("label"), s = N("div"), h = new Ut(!1), d = _e(l), v = G(), f = N("small"), C = G(), E(r, "class", "checkbox__input svelte-1kygizb"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
4112
- e[64].status === "1", E(r, "id", i = `${/*consent*/
4113
- e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-1kygizb"), E(a, "class", "checkbox__label svelte-1kygizb"), E(a, "for", g = `${/*consent*/
4114
- e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-1kygizb"), E(f, "id", m = "checkBoxError__" + /*consent*/
4115
- e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
4085
+ t = N("div"), r = N("input"), o = G(), a = N("label"), s = N("div"), h = new Lt(!1), d = pe(l), b = G(), f = N("small"), S = G(), k(r, "class", "checkbox__input svelte-1kygizb"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
4086
+ e[64].status === "1", k(r, "id", i = `${/*consent*/
4087
+ e[64].tagCode}__input`), h.a = d, k(s, "class", "checkbox__label-text svelte-1kygizb"), k(a, "class", "checkbox__label svelte-1kygizb"), k(a, "for", g = `${/*consent*/
4088
+ e[64].tagCode}__input`), k(f, "class", "checkbox__error-message svelte-1kygizb"), k(f, "id", m = "checkBoxError__" + /*consent*/
4089
+ e[64].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
4116
4090
  e[64].tagCode + "__input svelte-1kygizb");
4117
4091
  },
4118
- m(k, B) {
4119
- L(k, 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), b || (x = ge(r, "input", H), b = !0);
4092
+ m(E, B) {
4093
+ j(E, t, B), x(t, r), x(t, o), x(t, a), x(a, s), h.m(u, s), x(s, d), x(t, b), x(t, f), x(t, S), y || (C = de(r, "input", H), y = !0);
4120
4094
  },
4121
- p(k, B) {
4122
- e = k, B[0] & /*playerConsents*/
4095
+ p(E, B) {
4096
+ e = E, B[0] & /*playerConsents*/
4123
4097
  512 && n !== (n = /*consent*/
4124
4098
  e[64].status === "1") && (r.checked = n), B[0] & /*playerConsents*/
4125
4099
  512 && i !== (i = `${/*consent*/
4126
- e[64].tagCode}__input`) && E(r, "id", i), B[0] & /*$_, playerConsents*/
4100
+ e[64].tagCode}__input`) && k(r, "id", i), B[0] & /*$_, playerConsents*/
4127
4101
  66048 && u !== (u = /*$_*/
4128
4102
  (e[16](`${/*consent*/
4129
4103
  e[64].tagCode}__description`) || /*consent*/
@@ -4131,55 +4105,55 @@ function Tt(e) {
4131
4105
  512 && l !== (l = /*consent*/
4132
4106
  e[64].mustAccept ? " *" : "") && fe(d, l), B[0] & /*playerConsents*/
4133
4107
  512 && g !== (g = `${/*consent*/
4134
- e[64].tagCode}__input`) && E(a, "for", g), B[0] & /*playerConsents*/
4108
+ e[64].tagCode}__input`) && k(a, "for", g), B[0] & /*playerConsents*/
4135
4109
  512 && m !== (m = "checkBoxError__" + /*consent*/
4136
- e[64].tagCode) && E(f, "id", m), B[0] & /*playerConsents*/
4110
+ e[64].tagCode) && k(f, "id", m), B[0] & /*playerConsents*/
4137
4111
  512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
4138
- e[64].tagCode + "__input svelte-1kygizb") && E(t, "class", _);
4112
+ e[64].tagCode + "__input svelte-1kygizb") && k(t, "class", _);
4139
4113
  },
4140
- d(k) {
4141
- k && j(t), b = !1, x();
4114
+ d(E) {
4115
+ E && L(t), y = !1, C();
4142
4116
  }
4143
4117
  };
4144
4118
  }
4145
- function Mt(e) {
4119
+ function zt(e) {
4146
4120
  let t, r = (
4147
4121
  /*$_*/
4148
4122
  e[16]("title")
4149
4123
  ), n, i = (
4150
4124
  /*$_*/
4151
4125
  e[16]("description")
4152
- ), o = r && wt(e), a = i && Nt(e);
4126
+ ), o = r && Mt(e), a = i && Tt(e);
4153
4127
  return {
4154
4128
  c() {
4155
- t = N("div"), o && o.c(), n = G(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-1kygizb");
4129
+ t = N("div"), o && o.c(), n = G(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-1kygizb");
4156
4130
  },
4157
4131
  m(s, h) {
4158
- L(s, t, h), o && o.m(t, null), S(t, n), a && a.m(t, null);
4132
+ j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
4159
4133
  },
4160
4134
  p(s, h) {
4161
4135
  h[0] & /*$_*/
4162
4136
  65536 && (r = /*$_*/
4163
- s[16]("title")), r ? o ? o.p(s, h) : (o = wt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
4137
+ s[16]("title")), r ? o ? o.p(s, h) : (o = Mt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
4164
4138
  65536 && (i = /*$_*/
4165
- s[16]("description")), i ? a ? a.p(s, h) : (a = Nt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4139
+ s[16]("description")), i ? a ? a.p(s, h) : (a = Tt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4166
4140
  },
4167
4141
  d(s) {
4168
- s && j(t), o && o.d(), a && a.d();
4142
+ s && L(t), o && o.d(), a && a.d();
4169
4143
  }
4170
4144
  };
4171
4145
  }
4172
- function wt(e) {
4146
+ function Mt(e) {
4173
4147
  let t, r = (
4174
4148
  /*$_*/
4175
4149
  e[16]("title") + ""
4176
4150
  ), n;
4177
4151
  return {
4178
4152
  c() {
4179
- t = N("h2"), n = _e(r), E(t, "class", "PlayerConsentsTitle");
4153
+ t = N("h2"), n = pe(r), k(t, "class", "PlayerConsentsTitle");
4180
4154
  },
4181
4155
  m(i, o) {
4182
- L(i, t, o), S(t, n);
4156
+ j(i, t, o), x(t, n);
4183
4157
  },
4184
4158
  p(i, o) {
4185
4159
  o[0] & /*$_*/
@@ -4187,21 +4161,21 @@ function wt(e) {
4187
4161
  i[16]("title") + "") && fe(n, r);
4188
4162
  },
4189
4163
  d(i) {
4190
- i && j(t);
4164
+ i && L(t);
4191
4165
  }
4192
4166
  };
4193
4167
  }
4194
- function Nt(e) {
4168
+ function Tt(e) {
4195
4169
  let t, r = (
4196
4170
  /*$_*/
4197
4171
  e[16]("description") + ""
4198
4172
  ), n;
4199
4173
  return {
4200
4174
  c() {
4201
- t = N("p"), n = _e(r), E(t, "class", "PlayerConsentsDescription");
4175
+ t = N("p"), n = pe(r), k(t, "class", "PlayerConsentsDescription");
4202
4176
  },
4203
4177
  m(i, o) {
4204
- L(i, t, o), S(t, n);
4178
+ j(i, t, o), x(t, n);
4205
4179
  },
4206
4180
  p(i, o) {
4207
4181
  o[0] & /*$_*/
@@ -4209,25 +4183,25 @@ function Nt(e) {
4209
4183
  i[16]("description") + "") && fe(n, r);
4210
4184
  },
4211
4185
  d(i) {
4212
- i && j(t);
4186
+ i && L(t);
4213
4187
  }
4214
4188
  };
4215
4189
  }
4216
- function At(e) {
4190
+ function wt(e) {
4217
4191
  let t;
4218
4192
  return {
4219
4193
  c() {
4220
- t = N("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-1kygizb");
4194
+ t = N("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-1kygizb");
4221
4195
  },
4222
4196
  m(r, n) {
4223
- L(r, t, n);
4197
+ j(r, t, n);
4224
4198
  },
4225
4199
  d(r) {
4226
- r && j(t);
4200
+ r && L(t);
4227
4201
  }
4228
4202
  };
4229
4203
  }
4230
- function Ht(e) {
4204
+ function Nt(e) {
4231
4205
  let t, r = (
4232
4206
  /*$_*/
4233
4207
  (e[16](`${/*consent*/
@@ -4236,10 +4210,10 @@ function Ht(e) {
4236
4210
  );
4237
4211
  return {
4238
4212
  c() {
4239
- t = N("p"), E(t, "class", "ConsentDescription svelte-1kygizb");
4213
+ t = N("p"), k(t, "class", "ConsentDescription svelte-1kygizb");
4240
4214
  },
4241
4215
  m(n, i) {
4242
- L(n, t, i), t.innerHTML = r;
4216
+ j(n, t, i), t.innerHTML = r;
4243
4217
  },
4244
4218
  p(n, i) {
4245
4219
  i[0] & /*$_, playerConsents, consentsCategories*/
@@ -4249,24 +4223,24 @@ function Ht(e) {
4249
4223
  n[64].description) + "") && (t.innerHTML = r);
4250
4224
  },
4251
4225
  d(n) {
4252
- n && j(t);
4226
+ n && L(t);
4253
4227
  }
4254
4228
  };
4255
4229
  }
4256
- function Pt(e) {
4230
+ function At(e) {
4257
4231
  let t, r, n, i, o = (
4258
4232
  /*$_*/
4259
4233
  (e[16](`${/*consent*/
4260
4234
  e[64].tagCode}__name`) || /*consent*/
4261
4235
  e[64].friendlyName) + ""
4262
- ), a, s, h, u, l, d, g, v, f, m, C, _ = (
4236
+ ), a, s, h, u, l, d, g, b, f, m, S, _ = (
4263
4237
  /*consent*/
4264
- e[64].mustAccept === !0 && At()
4265
- ), b = (
4238
+ e[64].mustAccept === !0 && wt()
4239
+ ), y = (
4266
4240
  /*displayconsentdescription*/
4267
- e[4] === "true" && Ht(e)
4241
+ e[4] === "true" && Nt(e)
4268
4242
  );
4269
- function x(...H) {
4243
+ function C(...H) {
4270
4244
  return (
4271
4245
  /*input_handler*/
4272
4246
  e[29](
@@ -4278,7 +4252,7 @@ function Pt(e) {
4278
4252
  }
4279
4253
  return {
4280
4254
  c() {
4281
- t = N("div"), r = N("div"), n = N("h4"), i = new Ut(!1), a = G(), _ && _.c(), s = G(), b && b.c(), h = G(), u = N("label"), l = N("input"), v = G(), f = N("span"), i.a = a, E(n, "class", "ConsentName svelte-1kygizb"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
4255
+ t = N("div"), r = N("div"), n = N("h4"), i = new Lt(!1), a = G(), _ && _.c(), s = G(), y && y.c(), h = G(), u = N("label"), l = N("input"), b = G(), f = N("span"), i.a = a, k(n, "class", "ConsentName svelte-1kygizb"), k(r, "class", "ConsentContent"), k(l, "type", "checkbox"), l.disabled = d = /*consent*/
4282
4256
  e[64].mustAccept === !0 && /*initialConsentsState*/
4283
4257
  e[12][
4284
4258
  /*consent*/
@@ -4287,25 +4261,25 @@ function Pt(e) {
4287
4261
  e[13][
4288
4262
  /*consent*/
4289
4263
  e[64].tagCode
4290
- ], E(l, "class", "svelte-1kygizb"), E(f, "class", "Slider Round svelte-1kygizb"), E(u, "class", "ToggleSwitch svelte-1kygizb"), E(t, "class", "ConsentItem svelte-1kygizb");
4264
+ ], k(l, "class", "svelte-1kygizb"), k(f, "class", "Slider Round svelte-1kygizb"), k(u, "class", "ToggleSwitch svelte-1kygizb"), k(t, "class", "ConsentItem svelte-1kygizb");
4291
4265
  },
4292
- m(H, k) {
4293
- L(H, t, k), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), b && b.m(r, null), S(t, h), S(t, u), S(u, l), S(u, v), S(u, f), m || (C = ge(l, "input", x), m = !0);
4266
+ m(H, E) {
4267
+ j(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), y && y.m(r, null), x(t, h), x(t, u), x(u, l), x(u, b), x(u, f), m || (S = de(l, "input", C), m = !0);
4294
4268
  },
4295
- p(H, k) {
4296
- e = H, k[0] & /*$_, playerConsents, consentsCategories*/
4269
+ p(H, E) {
4270
+ e = H, E[0] & /*$_, playerConsents, consentsCategories*/
4297
4271
  66304 && o !== (o = /*$_*/
4298
4272
  (e[16](`${/*consent*/
4299
4273
  e[64].tagCode}__name`) || /*consent*/
4300
4274
  e[64].friendlyName) + "") && i.p(o), /*consent*/
4301
- e[64].mustAccept === !0 ? _ || (_ = At(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4302
- e[4] === "true" ? b ? b.p(e, k) : (b = Ht(e), b.c(), b.m(r, null)) : b && (b.d(1), b = null), k[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4275
+ e[64].mustAccept === !0 ? _ || (_ = wt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4276
+ e[4] === "true" ? y ? y.p(e, E) : (y = Nt(e), y.c(), y.m(r, null)) : y && (y.d(1), y = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4303
4277
  4864 && d !== (d = /*consent*/
4304
4278
  e[64].mustAccept === !0 && /*initialConsentsState*/
4305
4279
  e[12][
4306
4280
  /*consent*/
4307
4281
  e[64].tagCode
4308
- ] === !0) && (l.disabled = d), k[0] & /*consentsState, playerConsents, consentsCategories*/
4282
+ ] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
4309
4283
  8960 && g !== (g = /*consentsState*/
4310
4284
  e[13][
4311
4285
  /*consent*/
@@ -4313,17 +4287,17 @@ function Pt(e) {
4313
4287
  ]) && (l.checked = g);
4314
4288
  },
4315
4289
  d(H) {
4316
- H && j(t), _ && _.d(), b && b.d(), m = !1, C();
4290
+ H && L(t), _ && _.d(), y && y.d(), m = !1, S();
4317
4291
  }
4318
4292
  };
4319
4293
  }
4320
- function Bt(e) {
4294
+ function Ht(e) {
4321
4295
  let t, r, n, i = (
4322
4296
  /*$_*/
4323
4297
  (e[16](`${/*category*/
4324
4298
  e[61].categoryTagCode}__category`) || /*category*/
4325
4299
  e[61].friendlyName) + ""
4326
- ), o, a, s, h, u, l, d, g, v;
4300
+ ), o, a, s, h, u, l, d, g, b;
4327
4301
  function f() {
4328
4302
  e[26].call(
4329
4303
  s,
@@ -4340,44 +4314,44 @@ function Bt(e) {
4340
4314
  )
4341
4315
  );
4342
4316
  }
4343
- function C(...x) {
4317
+ function S(...C) {
4344
4318
  return (
4345
4319
  /*func*/
4346
4320
  e[28](
4347
4321
  /*category*/
4348
4322
  e[61],
4349
- ...x
4323
+ ...C
4350
4324
  )
4351
4325
  );
4352
4326
  }
4353
4327
  let _ = $(
4354
4328
  /*playerConsents*/
4355
- e[9].filter(C)
4356
- ), b = [];
4357
- for (let x = 0; x < _.length; x += 1)
4358
- b[x] = Pt(zt(e, _, x));
4329
+ e[9].filter(S)
4330
+ ), y = [];
4331
+ for (let C = 0; C < _.length; C += 1)
4332
+ y[C] = At(St(e, _, C));
4359
4333
  return {
4360
4334
  c() {
4361
4335
  t = N("div"), r = N("div"), n = N("h3"), o = G(), a = N("label"), s = N("input"), h = G(), u = N("span"), l = G(), d = N("div");
4362
- for (let x = 0; x < b.length; x += 1)
4363
- b[x].c();
4364
- E(s, "type", "checkbox"), E(s, "class", "svelte-1kygizb"), E(u, "class", "Slider Round svelte-1kygizb"), E(a, "class", "ToggleSwitch Big svelte-1kygizb"), E(r, "class", "AccordionHeader svelte-1kygizb"), E(d, "class", "AccordionContent svelte-1kygizb"), E(t, "class", "AccordionItem svelte-1kygizb");
4336
+ for (let C = 0; C < y.length; C += 1)
4337
+ y[C].c();
4338
+ k(s, "type", "checkbox"), k(s, "class", "svelte-1kygizb"), k(u, "class", "Slider Round svelte-1kygizb"), k(a, "class", "ToggleSwitch Big svelte-1kygizb"), k(r, "class", "AccordionHeader svelte-1kygizb"), k(d, "class", "AccordionContent svelte-1kygizb"), k(t, "class", "AccordionItem svelte-1kygizb");
4365
4339
  },
4366
- m(x, H) {
4367
- 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*/
4340
+ m(C, H) {
4341
+ j(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
4368
4342
  e[11][
4369
4343
  /*category*/
4370
4344
  e[61].categoryTagCode
4371
- ], S(a, h), S(a, u), S(t, l), S(t, d);
4372
- for (let k = 0; k < b.length; k += 1)
4373
- b[k] && b[k].m(d, null);
4374
- g || (v = [
4375
- ge(s, "change", f),
4376
- ge(s, "change", m)
4345
+ ], x(a, h), x(a, u), x(t, l), x(t, d);
4346
+ for (let E = 0; E < y.length; E += 1)
4347
+ y[E] && y[E].m(d, null);
4348
+ g || (b = [
4349
+ de(s, "change", f),
4350
+ de(s, "change", m)
4377
4351
  ], g = !0);
4378
4352
  },
4379
- p(x, H) {
4380
- if (e = x, H[0] & /*$_, consentsCategories*/
4353
+ p(C, H) {
4354
+ if (e = C, H[0] & /*$_, consentsCategories*/
4381
4355
  65792 && i !== (i = /*$_*/
4382
4356
  (e[16](`${/*category*/
4383
4357
  e[61].categoryTagCode}__category`) || /*category*/
@@ -4390,34 +4364,34 @@ function Bt(e) {
4390
4364
  602896) {
4391
4365
  _ = $(
4392
4366
  /*playerConsents*/
4393
- e[9].filter(C)
4367
+ e[9].filter(S)
4394
4368
  );
4395
- let k;
4396
- for (k = 0; k < _.length; k += 1) {
4397
- const B = zt(e, _, k);
4398
- b[k] ? b[k].p(B, H) : (b[k] = Pt(B), b[k].c(), b[k].m(d, null));
4369
+ let E;
4370
+ for (E = 0; E < _.length; E += 1) {
4371
+ const B = St(e, _, E);
4372
+ y[E] ? y[E].p(B, H) : (y[E] = At(B), y[E].c(), y[E].m(d, null));
4399
4373
  }
4400
- for (; k < b.length; k += 1)
4401
- b[k].d(1);
4402
- b.length = _.length;
4374
+ for (; E < y.length; E += 1)
4375
+ y[E].d(1);
4376
+ y.length = _.length;
4403
4377
  }
4404
4378
  },
4405
- d(x) {
4406
- x && j(t), Ke(b, x), g = !1, It(v);
4379
+ d(C) {
4380
+ C && L(t), Ye(y, C), g = !1, Bt(b);
4407
4381
  }
4408
4382
  };
4409
4383
  }
4410
- function Ot(e) {
4384
+ function Pt(e) {
4411
4385
  let t, r, n, i, o;
4412
4386
  return {
4413
4387
  c() {
4414
- t = N("div"), r = N("circle-exclamation-icon"), n = G(), i = N("strong"), o = _e(
4388
+ t = N("div"), r = N("circle-exclamation-icon"), n = G(), i = N("strong"), o = pe(
4415
4389
  /*errorMessage*/
4416
4390
  e[6]
4417
- ), Q(r, "class", "svelte-1kygizb"), E(i, "class", "ErrorMessage svelte-1kygizb"), E(t, "class", "ConsentErrorContainer svelte-1kygizb");
4391
+ ), Q(r, "class", "svelte-1kygizb"), k(i, "class", "ErrorMessage svelte-1kygizb"), k(t, "class", "ConsentErrorContainer svelte-1kygizb");
4418
4392
  },
4419
4393
  m(a, s) {
4420
- L(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
4394
+ j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
4421
4395
  },
4422
4396
  p(a, s) {
4423
4397
  s[0] & /*errorMessage*/
@@ -4428,39 +4402,39 @@ function Ot(e) {
4428
4402
  );
4429
4403
  },
4430
4404
  d(a) {
4431
- a && j(t);
4405
+ a && L(t);
4432
4406
  }
4433
4407
  };
4434
4408
  }
4435
- function Xi(e) {
4409
+ function ji(e) {
4436
4410
  let t, r;
4437
4411
  function n(a, s) {
4438
4412
  if (
4439
4413
  /*isLoading*/
4440
4414
  a[10]
4441
4415
  )
4442
- return Vi;
4416
+ return Ii;
4443
4417
  if (
4444
4418
  /*fatalError*/
4445
4419
  a[7]
4446
4420
  )
4447
- return Fi;
4421
+ return Oi;
4448
4422
  if (
4449
4423
  /*session*/
4450
4424
  a[0]
4451
4425
  )
4452
- return Gi;
4426
+ return Bi;
4453
4427
  if (!/*session*/
4454
4428
  a[0])
4455
- return Di;
4429
+ return Pi;
4456
4430
  }
4457
4431
  let i = n(e), o = i && i(e);
4458
4432
  return {
4459
4433
  c() {
4460
- t = N("div"), r = N("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-1kygizb"), E(t, "class", Vr("") + " svelte-1kygizb");
4434
+ t = N("div"), r = N("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-1kygizb"), k(t, "class", jr("") + " svelte-1kygizb");
4461
4435
  },
4462
4436
  m(a, s) {
4463
- L(a, t, s), S(t, r), o && o.m(r, null), e[32](r);
4437
+ j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
4464
4438
  },
4465
4439
  p(a, s) {
4466
4440
  i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
@@ -4468,103 +4442,104 @@ function Xi(e) {
4468
4442
  i: q,
4469
4443
  o: q,
4470
4444
  d(a) {
4471
- a && j(t), o && o.d(), e[32](null);
4445
+ a && L(t), o && o.d(), e[32](null);
4472
4446
  }
4473
4447
  };
4474
4448
  }
4475
- function qi(e, t, r) {
4449
+ function Li(e, t, r) {
4476
4450
  let n;
4477
- Dr(e, Ii, (c) => r(16, n = c));
4478
- 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: g = "" } = t, { modalconsents: v = "false" } = t, f, m = !1, C = !1, _ = "", b = "", x = "", H = "", k = [], B = [], O = [], se = !0, ve = !0, F = {}, ye = {}, Z = {}, U = {}, le, ke, R = {
4451
+ Br(e, Ti, (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: g = "" } = t, { modalconsents: b = "false" } = t, f, m, S = !1, _ = !1, y = "", C = "", H = "", E = "", B = [], W = [], O = [], se = !0, be = !0, F = {}, ye = {}, Z = {}, U = {}, le, ve, R = {
4479
4453
  none: { key: "0", value: "None" },
4480
4454
  accepted: { key: "1", value: "Accepted" },
4481
4455
  expired: { key: "2", value: "Expired" },
4482
4456
  denied: { key: "3", value: "Denied" },
4483
4457
  suspended: { key: "4", value: "Suspended" }
4484
- }, Ee = !1;
4485
- Object.keys(Ct).forEach((c) => {
4486
- Et(c, Ct[c]);
4458
+ }, ke = !1;
4459
+ Object.keys(kt).forEach((c) => {
4460
+ vt(c, kt[c]);
4487
4461
  });
4488
- const hr = () => {
4489
- ji(l);
4490
- }, dr = () => {
4462
+ const cr = () => {
4463
+ wi(l);
4464
+ }, ur = () => {
4491
4465
  let c = new URL(g);
4492
4466
  fetch(c.href).then((p) => p.json()).then((p) => {
4493
- Object.keys(p).forEach((T) => {
4494
- Et(T, p[T]);
4467
+ Object.keys(p).forEach((M) => {
4468
+ vt(M, p[M]);
4495
4469
  });
4496
4470
  }).catch((p) => {
4497
4471
  console.log(p);
4498
4472
  });
4499
- }, gr = () => {
4500
- i && (_ = i, C = !0), o && (b = o);
4501
- }, Ce = (c, p = !1) => {
4502
- p ? r(7, H = c) : (vr(), r(6, x = c));
4503
- }, ce = (c, p, T, y = !1) => he(this, null, function* () {
4473
+ }, hr = () => {
4474
+ i && (y = i, _ = !0), o && (C = o);
4475
+ }, Ee = (c, p = !1) => {
4476
+ p ? r(7, E = c) : (_r(), r(6, H = c));
4477
+ }, ce = async (c, p, M, v = !1) => {
4504
4478
  try {
4505
- const z = yield fetch(c, T);
4479
+ const z = await fetch(c, M);
4506
4480
  if (!z.ok)
4507
4481
  throw new Error(n(p));
4508
- const I = yield z.json();
4509
- return C ? I : I.filter((V) => V.showOnRegister === !0);
4482
+ const I = await z.json();
4483
+ return _ ? I : I.filter((V) => V.showOnRegister === !0);
4510
4484
  } catch (z) {
4511
- throw Ce(
4485
+ throw Ee(
4512
4486
  z instanceof TypeError ? n(p) : z.message,
4513
- y
4487
+ v
4514
4488
  ), z;
4515
4489
  }
4516
- }), mr = () => he(this, null, function* () {
4490
+ }, dr = async () => {
4517
4491
  try {
4518
4492
  let c = [], p = [];
4519
- if (C ? [c, p] = yield tt() : c = yield tt(), r(10, se = !1), B = [...c], r(8, k = fr(B).sort((T, y) => T.categoryTagCode.localeCompare(y.categoryTagCode))), r(11, F = _r(k)), ye = W({}, F), r(9, O = [...p]), B.forEach((T) => {
4520
- let y = O.find((z) => z.tagCode === T.tagCode);
4521
- y || (y = at(W({}, T), {
4493
+ if (_ ? [c, p] = await rt() : c = await rt(), r(10, se = !1), W = [...c], r(8, B = mr(W).sort((M, v) => M.categoryTagCode.localeCompare(v.categoryTagCode))), r(11, F = pr(B)), ye = { ...F }, r(9, O = [...p]), W.forEach((M) => {
4494
+ let v = O.find((z) => z.tagCode === M.tagCode);
4495
+ v || (v = {
4496
+ ...M,
4522
4497
  status: R.denied.value
4523
- }), O.push(y)), y.description = T.description, y.orderNumber = T.orderNumber;
4524
- }), v === "true") {
4525
- if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
4498
+ }, O.push(v)), v.description = M.description, v.orderNumber = M.orderNumber;
4499
+ }), b === "true") {
4500
+ if (r(9, O = O.filter((M) => M.status === R.expired.value)), O.length !== 0)
4526
4501
  return;
4527
- Ce(n("wrongModalConfig"), !0);
4502
+ Ee(n("wrongModalConfig"), !0);
4528
4503
  }
4529
- br();
4504
+ fr();
4530
4505
  } catch (c) {
4531
- throw r(10, se = !1), Ce(
4506
+ throw r(10, se = !1), Ee(
4532
4507
  c instanceof TypeError ? n("invalidUrl") : c.message,
4533
4508
  !0
4534
4509
  ), c;
4535
4510
  }
4536
- }), tt = () => he(this, null, function* () {
4511
+ }, rt = async () => {
4537
4512
  const c = new URL(`${a}/api/v1/gm/consents`);
4538
- if (c.searchParams.append("Status", "Active"), !C)
4539
- return yield ce(c.href, "fetchConsentsError", { method: "GET" }, !0);
4540
- const p = new URL(`${a}/api/v1/gm/user-consents/${b}`);
4541
- return yield Promise.all([
4513
+ if (c.searchParams.append("Status", "Active"), !_)
4514
+ return await ce(c.href, "fetchConsentsError", { method: "GET" }, !0);
4515
+ const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
4516
+ return await Promise.all([
4542
4517
  ce(c.href, "fetchConsentsError", { method: "GET" }, !0),
4543
4518
  ce(p.href, "fetchPlayerConsentsError", {
4544
4519
  method: "GET",
4545
4520
  headers: {
4546
- "X-SessionId": _,
4521
+ "X-SessionId": y,
4547
4522
  "Content-Type": "application/json"
4548
4523
  }
4549
4524
  })
4550
4525
  ]);
4551
- }), pr = () => {
4552
- Ee = !1;
4526
+ }, gr = () => {
4527
+ ke = !1;
4553
4528
  const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
4554
4529
  "Content-Type": "application/json",
4555
4530
  Accept: "application/json"
4556
- }, T = { method: "GET", headers: p };
4557
- fetch(c.href, T).then((y) => y.ok ? y.json() : (Ee = !0, y.json().then((z) => (console.error(z), Se(z))))).then((y) => {
4558
- if (!Ee) {
4559
- if (B = y, localStorage.getItem("playerConsents")) {
4531
+ }, M = { method: "GET", headers: p };
4532
+ fetch(c.href, M).then((v) => v.ok ? v.json() : (ke = !0, v.json().then((z) => (console.error(z), Ce(z))))).then((v) => {
4533
+ if (!ke) {
4534
+ if (W = v, localStorage.getItem("playerConsents")) {
4560
4535
  try {
4561
4536
  r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
4562
4537
  } catch (z) {
4563
- return console.error(z), Se(z);
4538
+ return console.error(z), Ce(z);
4564
4539
  }
4565
4540
  return;
4566
4541
  }
4567
- return r(9, O = B.map((z) => ({
4542
+ return r(9, O = W.map((z) => ({
4568
4543
  id: z.id,
4569
4544
  status: R.denied.key,
4570
4545
  friendlyName: z.friendlyName,
@@ -4573,88 +4548,88 @@ function qi(e, t, r) {
4573
4548
  mustAccept: z.mustAccept
4574
4549
  }))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
4575
4550
  }
4576
- }).catch((y) => (console.error(y), Se(y))).finally(() => {
4551
+ }).catch((v) => (console.error(v), Ce(v))).finally(() => {
4577
4552
  r(10, se = !1);
4578
4553
  });
4579
- }, fr = (c) => {
4554
+ }, mr = (c) => {
4580
4555
  const p = /* @__PURE__ */ new Map();
4581
- return c.forEach((T) => {
4582
- p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
4556
+ return c.forEach((M) => {
4557
+ p.has(M.category.categoryTagCode) || p.set(M.category.categoryTagCode, M.category);
4583
4558
  }), Array.from(p.values());
4584
- }, _r = (c) => {
4585
- const p = localStorage.getItem("categoryToggle" + b);
4559
+ }, pr = (c) => {
4560
+ const p = localStorage.getItem("categoryToggle" + C);
4586
4561
  if (p === null) {
4587
- const T = c.reduce(
4588
- (y, z) => (y[z.categoryTagCode] = !1, y),
4562
+ const M = c.reduce(
4563
+ (v, z) => (v[z.categoryTagCode] = !1, v),
4589
4564
  {}
4590
4565
  );
4591
- return localStorage.setItem("categoryToggle" + b, JSON.stringify(T)), T;
4566
+ return localStorage.setItem("categoryToggle" + C, JSON.stringify(M)), M;
4592
4567
  } else
4593
4568
  return JSON.parse(p);
4594
- }, br = () => {
4569
+ }, fr = () => {
4595
4570
  O.forEach((c) => {
4596
4571
  r(12, Z[c.tagCode] = c.status === R.accepted.value, Z);
4597
- }), r(13, U = W({}, Z));
4598
- }, vr = () => {
4599
- r(13, U = W({}, Z)), r(11, F = W({}, ye));
4600
- }, yr = () => he(this, null, function* () {
4601
- if (!ve)
4572
+ }), r(13, U = { ...Z });
4573
+ }, _r = () => {
4574
+ r(13, U = { ...Z }), r(11, F = { ...ye });
4575
+ }, br = async () => {
4576
+ if (!be)
4602
4577
  return;
4603
- ve = !1;
4578
+ be = !1;
4604
4579
  const c = [], p = [];
4605
- if (Object.keys(U).forEach((y) => {
4606
- const z = O.find((I) => I.tagCode === y);
4607
- U[y] !== Z[y] && (z ? c.push({
4608
- tagCode: y,
4609
- status: U[y] ? R.accepted.value : R.denied.value
4580
+ if (Object.keys(U).forEach((v) => {
4581
+ const z = O.find((I) => I.tagCode === v);
4582
+ U[v] !== Z[v] && (z ? c.push({
4583
+ tagCode: v,
4584
+ status: U[v] ? R.accepted.value : R.denied.value
4610
4585
  }) : p.push({
4611
- tagCode: y,
4612
- status: U[y] ? R.accepted.value : R.denied.value
4586
+ tagCode: v,
4587
+ status: U[v] ? R.accepted.value : R.denied.value
4613
4588
  }));
4614
- }), !C) {
4615
- localStorage.setItem("categoryToggle" + b, JSON.stringify(F)), ye = W({}, F), window.postMessage(
4589
+ }), !_) {
4590
+ localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ye = { ...F }, window.postMessage(
4616
4591
  {
4617
4592
  type: "NewPlayerConsentData",
4618
4593
  data: JSON.stringify(p)
4619
4594
  },
4620
4595
  window.location.href
4621
- ), ve = !0;
4596
+ ), be = !0;
4622
4597
  return;
4623
4598
  }
4624
- const T = new URL(`${a}/api/v1/gm/user-consents/${b}`);
4599
+ const M = new URL(`${a}/api/v1/gm/user-consents/${C}`);
4625
4600
  try {
4626
- const y = yield Promise.allSettled([
4627
- p.length > 0 && ce(T.href, "updateConsentsError", {
4601
+ const v = await Promise.allSettled([
4602
+ p.length > 0 && ce(M.href, "updateConsentsError", {
4628
4603
  method: "POST",
4629
4604
  headers: {
4630
- "X-SessionId": _,
4605
+ "X-SessionId": y,
4631
4606
  "Content-Type": "application/json"
4632
4607
  },
4633
4608
  body: JSON.stringify({ userConsents: p })
4634
4609
  }),
4635
- c.length > 0 && ce(T.href, "updateConsentsError", {
4610
+ c.length > 0 && ce(M.href, "updateConsentsError", {
4636
4611
  method: "PATCH",
4637
4612
  headers: {
4638
- "X-SessionId": _,
4613
+ "X-SessionId": y,
4639
4614
  "Content-Type": "application/json"
4640
4615
  },
4641
4616
  body: JSON.stringify({ userConsents: c })
4642
4617
  })
4643
4618
  ]);
4644
- y.forEach((z, I) => {
4619
+ v.forEach((z, I) => {
4645
4620
  if (z.status === "rejected" || z.value.ok === !1) {
4646
4621
  const V = I < p.length ? p[I] : c[I - p.length];
4647
4622
  r(13, U[V.tagCode] = Z[V.tagCode], U);
4648
4623
  }
4649
- }), y.every((z) => z.status === "fulfilled") && (localStorage.setItem("categoryToggle" + b, JSON.stringify(F)), ye = W({}, F), window.postMessage(
4624
+ }), v.every((z) => z.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), ye = { ...F }, window.postMessage(
4650
4625
  {
4651
4626
  type: "PlayerConsentUpdated",
4652
4627
  success: !0
4653
4628
  },
4654
4629
  window.location.href
4655
- ), r(12, Z = W({}, U)));
4656
- } catch (y) {
4657
- Ce(y instanceof TypeError ? n("saveChangesError") : y.message), window.postMessage(
4630
+ ), r(12, Z = { ...U }));
4631
+ } catch (v) {
4632
+ Ee(v instanceof TypeError ? n("saveChangesError") : v.message), window.postMessage(
4658
4633
  {
4659
4634
  type: "PlayerConsentUpdated",
4660
4635
  success: !1
@@ -4662,58 +4637,58 @@ function qi(e, t, r) {
4662
4637
  window.location.href
4663
4638
  );
4664
4639
  } finally {
4665
- ve = !0, r(14, le = !1);
4640
+ be = !0, r(14, le = !1);
4666
4641
  }
4667
- }), kr = (c) => {
4668
- const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
4642
+ }, yr = (c) => {
4643
+ const p = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
4669
4644
  "Content-Type": "application/json",
4670
4645
  Accept: "application/json"
4671
- }, y = {
4646
+ }, v = {
4672
4647
  playerConsents: O,
4673
4648
  registrationId: c
4674
4649
  }, z = {
4675
4650
  method: "POST",
4676
- body: JSON.stringify(y),
4677
- headers: T
4651
+ body: JSON.stringify(v),
4652
+ headers: M
4678
4653
  };
4679
4654
  fetch(p.href, z).then((I) => {
4680
- I.ok || (Ee = !0);
4681
- }).catch((I) => (console.error(I), Se(I))).finally(() => {
4655
+ I.ok || (ke = !0);
4656
+ }).catch((I) => (console.error(I), Ce(I))).finally(() => {
4682
4657
  r(10, se = !1);
4683
4658
  });
4684
- }, rt = (c) => {
4659
+ }, nt = (c) => {
4685
4660
  O.filter((p) => p.category.categoryTagCode === c).forEach((p) => {
4686
4661
  p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = F[c] || !1, U);
4687
- }), r(14, le = nt());
4688
- }, Oe = (c, p, T) => {
4689
- const y = O.find((V) => V.id === T), z = p ? "value" : "key";
4662
+ }), r(14, le = it());
4663
+ }, Be = (c, p, M) => {
4664
+ const v = O.find((V) => V.id === M), z = p ? "value" : "key";
4690
4665
  let I;
4691
- if (!p && y.mustAccept) {
4692
- const V = Array.from(ke.children);
4666
+ if (!p && v.mustAccept) {
4667
+ const V = Array.from(ve.children);
4693
4668
  for (const ue of V)
4694
- if (I = Array.from(ue.children).find((Hr) => Hr.getAttribute("id") === `checkBoxError__${y.tagCode}`), I)
4669
+ if (I = Array.from(ue.children).find((Nr) => Nr.getAttribute("id") === `checkBoxError__${v.tagCode}`), I)
4695
4670
  break;
4696
4671
  }
4697
- if (y.status === R.accepted[z] ? (y.status = R.denied[z], I && (I.innerHTML = n("requiredError"))) : (y.status = R.accepted[z], I && (I.innerHTML = "")), p) {
4698
- r(13, U[y.tagCode] = !U[y.tagCode], U);
4672
+ if (v.status === R.accepted[z] ? (v.status = R.denied[z], I && (I.innerHTML = n("requiredError"))) : (v.status = R.accepted[z], I && (I.innerHTML = "")), p) {
4673
+ r(13, U[v.tagCode] = !U[v.tagCode], U);
4699
4674
  const V = O.filter((ue) => ue.category.categoryTagCode === p.categoryTagCode).every((ue) => ue.status !== R.denied.value);
4700
4675
  r(11, F[p.categoryTagCode] = V, F);
4701
4676
  }
4702
- Er();
4703
- }, Er = ((c, p) => {
4704
- let T;
4705
- return function(...y) {
4677
+ vr();
4678
+ }, vr = ((c, p) => {
4679
+ let M;
4680
+ return function(...v) {
4706
4681
  const z = this;
4707
- clearTimeout(T), T = setTimeout(
4682
+ clearTimeout(M), M = setTimeout(
4708
4683
  () => {
4709
- c.apply(z, y);
4684
+ c.apply(z, v);
4710
4685
  },
4711
4686
  p
4712
4687
  );
4713
4688
  };
4714
- })(() => Cr(), 500), Cr = () => {
4715
- r(14, le = nt()), i || (window.postMessage({ type: "isConsentsValid", isValid: le }), localStorage.setItem("playerConsents", JSON.stringify(O)));
4716
- }, nt = () => O.filter((p) => O.some((T) => p.tagCode === T.tagCode && T.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, Se = (c) => {
4689
+ })(() => kr(), 500), kr = () => {
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((M) => p.tagCode === M.tagCode && M.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, Ce = (c) => {
4717
4692
  window.postMessage(
4718
4693
  {
4719
4694
  type: "WidgetNotification",
@@ -4721,46 +4696,46 @@ function qi(e, t, r) {
4721
4696
  },
4722
4697
  window.location.href
4723
4698
  );
4724
- }, Sr = (c) => {
4725
- c.data && c.data.type !== "setUpPlayerConsents" || kr(c.data.registerid);
4699
+ }, Er = (c) => {
4700
+ c.data && c.data.type !== "setUpPlayerConsents" || yr(c.data.registerid);
4726
4701
  };
4727
- Gr(() => {
4702
+ Or(() => {
4728
4703
  setTimeout(
4729
4704
  () => {
4730
- r(25, m = !0);
4705
+ r(25, S = !0);
4731
4706
  },
4732
4707
  50
4733
4708
  );
4734
- const c = (p) => Sr(p);
4709
+ const c = (p) => Er(p);
4735
4710
  return window.addEventListener("message", c), () => {
4736
- window.removeEventListener("message", c);
4711
+ window.emMessageBus && m && m.unsubscribe(), window.removeEventListener("message", c);
4737
4712
  };
4738
4713
  });
4739
- function xr(c) {
4714
+ function Cr(c) {
4740
4715
  F[c.categoryTagCode] = this.checked, r(11, F);
4741
4716
  }
4742
- const zr = (c) => rt(c.categoryTagCode), Tr = (c, p) => p.category.categoryTagCode === c.categoryTagCode, Mr = (c, p) => Oe(p, c.category, c.id), wr = (c, p) => Oe(p, null, c.id);
4743
- function Nr(c) {
4744
- lt[c ? "unshift" : "push"](() => {
4745
- ke = c, r(15, ke);
4717
+ const Sr = (c) => nt(c.categoryTagCode), xr = (c, p) => p.category.categoryTagCode === c.categoryTagCode, zr = (c, p) => Be(p, c.category, c.id), Mr = (c, p) => Be(p, null, c.id);
4718
+ function Tr(c) {
4719
+ at[c ? "unshift" : "push"](() => {
4720
+ ve = c, r(15, ve);
4746
4721
  });
4747
4722
  }
4748
- function Ar(c) {
4749
- lt[c ? "unshift" : "push"](() => {
4723
+ function wr(c) {
4724
+ at[c ? "unshift" : "push"](() => {
4750
4725
  f = c, r(5, f);
4751
4726
  });
4752
4727
  }
4753
4728
  return e.$$set = (c) => {
4754
- "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, g = c.translationurl), "modalconsents" in c && r(24, v = c.modalconsents);
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, g = c.translationurl), "modalconsents" in c && r(24, b = c.modalconsents);
4755
4730
  }, e.$$.update = () => {
4756
4731
  e.$$.dirty[0] & /*isMounted, session*/
4757
- 33554433 && m && i && (gr(), mr()), e.$$.dirty[0] & /*session*/
4758
- 1 && (i || pr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4759
- 34 && s && f && Xr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4760
- 36 && h && f && qr(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4761
- 40 && f && Wr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
4762
- 4194304 && l && hr(), e.$$.dirty[0] & /*translationurl*/
4763
- 8388608 && g && dr();
4732
+ 33554433 && S && i && (hr(), dr()), e.$$.dirty[0] & /*session*/
4733
+ 1 && (i || gr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4734
+ 34 && s && f && Lr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4735
+ 36 && h && f && Ir(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4736
+ 40 && f && Rr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
4737
+ 4194304 && l && cr(), e.$$.dirty[0] & /*translationurl*/
4738
+ 8388608 && g && ur();
4764
4739
  }, [
4765
4740
  i,
4766
4741
  s,
@@ -4768,43 +4743,43 @@ function qi(e, t, r) {
4768
4743
  u,
4769
4744
  d,
4770
4745
  f,
4771
- x,
4772
4746
  H,
4773
- k,
4747
+ E,
4748
+ B,
4774
4749
  O,
4775
4750
  se,
4776
4751
  F,
4777
4752
  Z,
4778
4753
  U,
4779
4754
  le,
4780
- ke,
4755
+ ve,
4781
4756
  n,
4782
- yr,
4783
- rt,
4784
- Oe,
4757
+ br,
4758
+ nt,
4759
+ Be,
4785
4760
  o,
4786
4761
  a,
4787
4762
  l,
4788
4763
  g,
4789
- v,
4790
- m,
4764
+ b,
4765
+ S,
4766
+ Cr,
4767
+ Sr,
4791
4768
  xr,
4792
4769
  zr,
4793
- Tr,
4794
4770
  Mr,
4795
- wr,
4796
- Nr,
4797
- Ar
4771
+ Tr,
4772
+ wr
4798
4773
  ];
4799
4774
  }
4800
- class Wi extends Lt {
4775
+ class Ri extends It {
4801
4776
  constructor(t) {
4802
- super(), Rt(
4777
+ super(), jt(
4803
4778
  this,
4804
4779
  t,
4805
- qi,
4806
- Xi,
4807
- Ye,
4780
+ Li,
4781
+ ji,
4782
+ Qe,
4808
4783
  {
4809
4784
  session: 0,
4810
4785
  userid: 20,
@@ -4817,7 +4792,7 @@ class Wi extends Lt {
4817
4792
  translationurl: 23,
4818
4793
  modalconsents: 24
4819
4794
  },
4820
- Ui,
4795
+ Hi,
4821
4796
  [-1, -1, -1]
4822
4797
  );
4823
4798
  }
@@ -4882,7 +4857,7 @@ class Wi extends Lt {
4882
4857
  this.$$set({ modalconsents: t }), X();
4883
4858
  }
4884
4859
  }
4885
- jt(Wi, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
4860
+ Ot(Ri, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
4886
4861
  export {
4887
- Wi as default
4862
+ Ri as P
4888
4863
  };