@everymatrix/general-logout 1.59.2 → 1.60.0

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.
@@ -27,7 +27,7 @@ var nt = (e, t, r) => new Promise((n, i) => {
27
27
  }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- function A() {
30
+ function w() {
31
31
  }
32
32
  function Pt(e) {
33
33
  return e();
@@ -51,7 +51,7 @@ function It(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
54
- return A;
54
+ return w;
55
55
  }
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
@@ -62,14 +62,14 @@ function vr(e, t, r) {
62
62
  function S(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function _r(e, t, r) {
66
- const n = Er(e);
65
+ function Er(e, t, r) {
66
+ const n = _r(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = O("style");
69
69
  i.id = t, i.textContent = r, xr(n, i);
70
70
  }
71
71
  }
72
- function Er(e) {
72
+ function _r(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -133,27 +133,27 @@ let re;
133
133
  function te(e) {
134
134
  re = e;
135
135
  }
136
- function Ar() {
136
+ function wr() {
137
137
  if (!re)
138
138
  throw new Error("Function called outside component initialization");
139
139
  return re;
140
140
  }
141
- function wr(e) {
142
- Ar().$$.on_mount.push(e);
141
+ function Ar(e) {
142
+ wr().$$.on_mount.push(e);
143
143
  }
144
144
  const j = [], Ne = [];
145
145
  let k = [];
146
146
  const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
147
147
  let Me = !1;
148
148
  function Or() {
149
- Me || (Me = !0, Pr.then(w));
149
+ Me || (Me = !0, Pr.then(A));
150
150
  }
151
151
  function Ce(e) {
152
152
  k.push(e);
153
153
  }
154
154
  const He = /* @__PURE__ */ new Set();
155
155
  let G = 0;
156
- function w() {
156
+ function A() {
157
157
  if (G !== 0)
158
158
  return;
159
159
  const e = re;
@@ -215,7 +215,7 @@ function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
215
215
  ctx: [],
216
216
  // state
217
217
  props: o,
218
- update: A,
218
+ update: w,
219
219
  not_equal: i,
220
220
  bound: it(),
221
221
  // lifecycle
@@ -242,7 +242,7 @@ function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
242
242
  u.fragment && u.fragment.l(f), f.forEach(Q);
243
243
  } else
244
244
  u.fragment && u.fragment.c();
245
- t.intro && Mr(e.$$.fragment), Cr(e, t.target, t.anchor), w();
245
+ t.intro && Mr(e.$$.fragment), Cr(e, t.target, t.anchor), A();
246
246
  }
247
247
  te(h);
248
248
  }
@@ -449,7 +449,7 @@ class Gr {
449
449
  }
450
450
  /** @returns {void} */
451
451
  $destroy() {
452
- $r(this, 1), this.$destroy = A;
452
+ $r(this, 1), this.$destroy = w;
453
453
  }
454
454
  /**
455
455
  * @template {Extract<keyof Events, string>} K
@@ -459,7 +459,7 @@ class Gr {
459
459
  */
460
460
  $on(t, r) {
461
461
  if (!Qe(r))
462
- return A;
462
+ return w;
463
463
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
464
464
  return n.push(r), () => {
465
465
  const i = n.indexOf(r);
@@ -744,7 +744,7 @@ var Dt = function(e) {
744
744
  }
745
745
  }, t;
746
746
  }(ye), Xr = Function.prototype.bind;
747
- function Ae(e, t) {
747
+ function we(e, t) {
748
748
  return Xr.call(e, t);
749
749
  }
750
750
  var Wr = function() {
@@ -793,9 +793,9 @@ var Wr = function() {
793
793
  o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
794
794
  return o.unsubscribe();
795
795
  }, s = {
796
- next: r.next && Ae(r.next, a),
797
- error: r.error && Ae(r.error, a),
798
- complete: r.complete && Ae(r.complete, a)
796
+ next: r.next && we(r.next, a),
797
+ error: r.error && we(r.error, a),
798
+ complete: r.complete && we(r.complete, a)
799
799
  }) : s = r;
800
800
  }
801
801
  return o.destination = new Wr(s), o;
@@ -1040,7 +1040,7 @@ function nn(e, t) {
1040
1040
  subscribe: ve(e, t).subscribe
1041
1041
  };
1042
1042
  }
1043
- function ve(e, t = A) {
1043
+ function ve(e, t = w) {
1044
1044
  let r;
1045
1045
  const n = /* @__PURE__ */ new Set();
1046
1046
  function i(a) {
@@ -1058,9 +1058,9 @@ function ve(e, t = A) {
1058
1058
  function o(a) {
1059
1059
  i(a(e));
1060
1060
  }
1061
- function s(a, h = A) {
1061
+ function s(a, h = w) {
1062
1062
  const u = [a, h];
1063
- return n.add(u), n.size === 1 && (r = t(i, o) || A), a(e), () => {
1063
+ return n.add(u), n.size === 1 && (r = t(i, o) || w), a(e), () => {
1064
1064
  n.delete(u), n.size === 0 && r && (r(), r = null);
1065
1065
  };
1066
1066
  }
@@ -1074,13 +1074,13 @@ function J(e, t, r) {
1074
1074
  return nn(r, (s, a) => {
1075
1075
  let h = !1;
1076
1076
  const u = [];
1077
- let l = 0, f = A;
1077
+ let l = 0, f = w;
1078
1078
  const c = () => {
1079
1079
  if (l)
1080
1080
  return;
1081
1081
  f();
1082
1082
  const d = t(n ? u[0] : u, s, a);
1083
- o ? s(d) : f = Qe(d) ? d : A;
1083
+ o ? s(d) : f = Qe(d) ? d : w;
1084
1084
  }, p = i.map(
1085
1085
  (d, v) => It(
1086
1086
  d,
@@ -1170,19 +1170,19 @@ X.all = function(t, r) {
1170
1170
  }, {});
1171
1171
  };
1172
1172
  var yn = X, vn = yn;
1173
- const _n = /* @__PURE__ */ on(vn);
1174
- function we(e, t) {
1173
+ const En = /* @__PURE__ */ on(vn);
1174
+ function Ae(e, t) {
1175
1175
  var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : xn;
1176
1176
  return i(e, {
1177
1177
  cache: r,
1178
1178
  serializer: n
1179
1179
  });
1180
1180
  }
1181
- function En(e) {
1181
+ function _n(e) {
1182
1182
  return e == null || typeof e == "number" || typeof e == "boolean";
1183
1183
  }
1184
1184
  function kt(e, t, r, n) {
1185
- var i = En(n) ? n : r(n), o = t.get(i);
1185
+ var i = _n(n) ? n : r(n), o = t.get(i);
1186
1186
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1187
1187
  }
1188
1188
  function Vt(e, t, r) {
@@ -1225,40 +1225,40 @@ var Bn = {
1225
1225
  (function(e) {
1226
1226
  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";
1227
1227
  })(m || (m = {}));
1228
- var _;
1228
+ var E;
1229
1229
  (function(e) {
1230
1230
  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";
1231
- })(_ || (_ = {}));
1231
+ })(E || (E = {}));
1232
1232
  var W;
1233
1233
  (function(e) {
1234
1234
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1235
1235
  })(W || (W = {}));
1236
1236
  function dt(e) {
1237
- return e.type === _.literal;
1237
+ return e.type === E.literal;
1238
1238
  }
1239
- function An(e) {
1240
- return e.type === _.argument;
1239
+ function wn(e) {
1240
+ return e.type === E.argument;
1241
1241
  }
1242
1242
  function Xt(e) {
1243
- return e.type === _.number;
1243
+ return e.type === E.number;
1244
1244
  }
1245
1245
  function Wt(e) {
1246
- return e.type === _.date;
1246
+ return e.type === E.date;
1247
1247
  }
1248
1248
  function zt(e) {
1249
- return e.type === _.time;
1249
+ return e.type === E.time;
1250
1250
  }
1251
1251
  function Zt(e) {
1252
- return e.type === _.select;
1252
+ return e.type === E.select;
1253
1253
  }
1254
1254
  function Qt(e) {
1255
- return e.type === _.plural;
1255
+ return e.type === E.plural;
1256
1256
  }
1257
- function wn(e) {
1258
- return e.type === _.pound;
1257
+ function An(e) {
1258
+ return e.type === E.pound;
1259
1259
  }
1260
1260
  function Jt(e) {
1261
- return e.type === _.tag;
1261
+ return e.type === E.tag;
1262
1262
  }
1263
1263
  function Yt(e) {
1264
1264
  return !!(e && typeof e == "object" && e.type === W.number);
@@ -3109,11 +3109,11 @@ function nr(e, t) {
3109
3109
  }
3110
3110
  var Ve;
3111
3111
  if (je) {
3112
- var _t = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3112
+ var Et = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3113
3113
  Ve = function(t, r) {
3114
3114
  var n;
3115
- _t.lastIndex = r;
3116
- var i = _t.exec(t);
3115
+ Et.lastIndex = r;
3116
+ var i = Et.exec(t);
3117
3117
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3118
3118
  };
3119
3119
  } else
@@ -3150,7 +3150,7 @@ var qn = (
3150
3150
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3151
3151
  var a = this.clonePosition();
3152
3152
  this.bump(), i.push({
3153
- type: _.pound,
3153
+ type: E.pound,
3154
3154
  location: b(a, this.clonePosition())
3155
3155
  });
3156
3156
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -3178,7 +3178,7 @@ var qn = (
3178
3178
  if (this.bumpSpace(), this.bumpIf("/>"))
3179
3179
  return {
3180
3180
  val: {
3181
- type: _.literal,
3181
+ type: E.literal,
3182
3182
  value: "<".concat(i, "/>"),
3183
3183
  location: b(n, this.clonePosition())
3184
3184
  },
@@ -3195,7 +3195,7 @@ var qn = (
3195
3195
  var h = this.clonePosition(), u = this.parseTagName();
3196
3196
  return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3197
3197
  val: {
3198
- type: _.tag,
3198
+ type: E.tag,
3199
3199
  value: i,
3200
3200
  children: s,
3201
3201
  location: b(n, this.clonePosition())
@@ -3232,7 +3232,7 @@ var qn = (
3232
3232
  }
3233
3233
  var h = b(n, this.clonePosition());
3234
3234
  return {
3235
- val: { type: _.literal, value: i, location: h },
3235
+ val: { type: E.literal, value: i, location: h },
3236
3236
  err: null
3237
3237
  };
3238
3238
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -3292,7 +3292,7 @@ var qn = (
3292
3292
  case 125:
3293
3293
  return this.bump(), {
3294
3294
  val: {
3295
- type: _.argument,
3295
+ type: E.argument,
3296
3296
  // value does not include the opening and closing braces.
3297
3297
  value: i,
3298
3298
  location: b(n, this.clonePosition())
@@ -3339,7 +3339,7 @@ var qn = (
3339
3339
  if (a === "number") {
3340
3340
  var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
3341
3341
  return f.err ? f : {
3342
- val: { type: _.number, value: n, location: v, style: f.val },
3342
+ val: { type: E.number, value: n, location: v, style: f.val },
3343
3343
  err: null
3344
3344
  };
3345
3345
  } else {
@@ -3352,7 +3352,7 @@ var qn = (
3352
3352
  pattern: $,
3353
3353
  location: u.styleLocation,
3354
3354
  parsedOptions: this.shouldParseSkeletons ? On($) : {}
3355
- }, N = a === "date" ? _.date : _.time;
3355
+ }, N = a === "date" ? E.date : E.time;
3356
3356
  return {
3357
3357
  val: { type: N, value: n, location: v, style: c },
3358
3358
  err: null
@@ -3361,7 +3361,7 @@ var qn = (
3361
3361
  }
3362
3362
  return {
3363
3363
  val: {
3364
- type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3364
+ type: a === "number" ? E.number : a === "date" ? E.date : E.time,
3365
3365
  value: n,
3366
3366
  location: v,
3367
3367
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -3395,7 +3395,7 @@ var qn = (
3395
3395
  var ue = b(i, this.clonePosition());
3396
3396
  return a === "select" ? {
3397
3397
  val: {
3398
- type: _.select,
3398
+ type: E.select,
3399
3399
  value: n,
3400
3400
  options: vt(D.val),
3401
3401
  location: ue
@@ -3403,7 +3403,7 @@ var qn = (
3403
3403
  err: null
3404
3404
  } : {
3405
3405
  val: {
3406
- type: _.plural,
3406
+ type: E.plural,
3407
3407
  value: n,
3408
3408
  options: vt(D.val),
3409
3409
  offset: P,
@@ -3616,7 +3616,7 @@ var z;
3616
3616
  (function(e) {
3617
3617
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3618
3618
  })(z || (z = {}));
3619
- var _e = (
3619
+ var Ee = (
3620
3620
  /** @class */
3621
3621
  function(e) {
3622
3622
  L(t, e);
@@ -3628,7 +3628,7 @@ var _e = (
3628
3628
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3629
3629
  }, t;
3630
3630
  }(Error)
3631
- ), Et = (
3631
+ ), _t = (
3632
3632
  /** @class */
3633
3633
  function(e) {
3634
3634
  L(t, e);
@@ -3636,7 +3636,7 @@ var _e = (
3636
3636
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3637
3637
  }
3638
3638
  return t;
3639
- }(_e)
3639
+ }(Ee)
3640
3640
  ), ni = (
3641
3641
  /** @class */
3642
3642
  function(e) {
@@ -3645,7 +3645,7 @@ var _e = (
3645
3645
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3646
3646
  }
3647
3647
  return t;
3648
- }(_e)
3648
+ }(Ee)
3649
3649
  ), ii = (
3650
3650
  /** @class */
3651
3651
  function(e) {
@@ -3654,15 +3654,15 @@ var _e = (
3654
3654
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3655
3655
  }
3656
3656
  return t;
3657
- }(_e)
3658
- ), E;
3657
+ }(Ee)
3658
+ ), _;
3659
3659
  (function(e) {
3660
3660
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3661
- })(E || (E = {}));
3661
+ })(_ || (_ = {}));
3662
3662
  function oi(e) {
3663
3663
  return e.length < 2 ? e : e.reduce(function(t, r) {
3664
3664
  var n = t[t.length - 1];
3665
- return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3665
+ return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3666
3666
  }, []);
3667
3667
  }
3668
3668
  function si(e) {
@@ -3672,7 +3672,7 @@ function pe(e, t, r, n, i, o, s) {
3672
3672
  if (e.length === 1 && dt(e[0]))
3673
3673
  return [
3674
3674
  {
3675
- type: E.literal,
3675
+ type: _.literal,
3676
3676
  value: e[0].value
3677
3677
  }
3678
3678
  ];
@@ -3680,14 +3680,14 @@ function pe(e, t, r, n, i, o, s) {
3680
3680
  var l = u[h];
3681
3681
  if (dt(l)) {
3682
3682
  a.push({
3683
- type: E.literal,
3683
+ type: _.literal,
3684
3684
  value: l.value
3685
3685
  });
3686
3686
  continue;
3687
3687
  }
3688
- if (wn(l)) {
3688
+ if (An(l)) {
3689
3689
  typeof o == "number" && a.push({
3690
- type: E.literal,
3690
+ type: _.literal,
3691
3691
  value: r.getNumberFormat(t).format(o)
3692
3692
  });
3693
3693
  continue;
@@ -3696,9 +3696,9 @@ function pe(e, t, r, n, i, o, s) {
3696
3696
  if (!(i && f in i))
3697
3697
  throw new ii(f, s);
3698
3698
  var c = i[f];
3699
- if (An(l)) {
3699
+ if (wn(l)) {
3700
3700
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3701
- type: typeof c == "string" ? E.literal : E.object,
3701
+ type: typeof c == "string" ? _.literal : _.object,
3702
3702
  value: c
3703
3703
  });
3704
3704
  continue;
@@ -3706,7 +3706,7 @@ function pe(e, t, r, n, i, o, s) {
3706
3706
  if (Wt(l)) {
3707
3707
  var p = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3708
3708
  a.push({
3709
- type: E.literal,
3709
+ type: _.literal,
3710
3710
  value: r.getDateTimeFormat(t, p).format(c)
3711
3711
  });
3712
3712
  continue;
@@ -3714,7 +3714,7 @@ function pe(e, t, r, n, i, o, s) {
3714
3714
  if (zt(l)) {
3715
3715
  var p = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3716
3716
  a.push({
3717
- type: E.literal,
3717
+ type: _.literal,
3718
3718
  value: r.getDateTimeFormat(t, p).format(c)
3719
3719
  });
3720
3720
  continue;
@@ -3722,7 +3722,7 @@ function pe(e, t, r, n, i, o, s) {
3722
3722
  if (Xt(l)) {
3723
3723
  var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
3724
3724
  p && p.scale && (c = c * (p.scale || 1)), a.push({
3725
- type: E.literal,
3725
+ type: _.literal,
3726
3726
  value: r.getNumberFormat(t, p).format(c)
3727
3727
  });
3728
3728
  continue;
@@ -3736,7 +3736,7 @@ function pe(e, t, r, n, i, o, s) {
3736
3736
  }));
3737
3737
  Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(P) {
3738
3738
  return {
3739
- type: typeof P == "string" ? E.literal : E.object,
3739
+ type: typeof P == "string" ? _.literal : _.object,
3740
3740
  value: P
3741
3741
  };
3742
3742
  }));
@@ -3744,7 +3744,7 @@ function pe(e, t, r, n, i, o, s) {
3744
3744
  if (Zt(l)) {
3745
3745
  var x = l.options[c] || l.options.other;
3746
3746
  if (!x)
3747
- throw new Et(l.value, c, Object.keys(l.options), s);
3747
+ throw new _t(l.value, c, Object.keys(l.options), s);
3748
3748
  a.push.apply(a, pe(x.value, t, r, n, i));
3749
3749
  continue;
3750
3750
  }
@@ -3752,14 +3752,14 @@ function pe(e, t, r, n, i, o, s) {
3752
3752
  var x = l.options["=".concat(c)];
3753
3753
  if (!x) {
3754
3754
  if (!Intl.PluralRules)
3755
- throw new _e(`Intl.PluralRules is not available in this environment.
3755
+ throw new Ee(`Intl.PluralRules is not available in this environment.
3756
3756
  Try polyfilling it using "@formatjs/intl-pluralrules"
3757
3757
  `, z.MISSING_INTL_API, s);
3758
3758
  var R = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3759
3759
  x = l.options[R] || l.options.other;
3760
3760
  }
3761
3761
  if (!x)
3762
- throw new Et(l.value, c, Object.keys(l.options), s);
3762
+ throw new _t(l.value, c, Object.keys(l.options), s);
3763
3763
  a.push.apply(a, pe(x.value, t, r, n, i, c - (l.offset || 0)));
3764
3764
  continue;
3765
3765
  }
@@ -3796,7 +3796,7 @@ function hi(e) {
3796
3796
  dateTime: {},
3797
3797
  pluralRules: {}
3798
3798
  }), {
3799
- getNumberFormat: we(function() {
3799
+ getNumberFormat: Ae(function() {
3800
3800
  for (var t, r = [], n = 0; n < arguments.length; n++)
3801
3801
  r[n] = arguments[n];
3802
3802
  return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
@@ -3804,7 +3804,7 @@ function hi(e) {
3804
3804
  cache: Ie(e.number),
3805
3805
  strategy: Pe.variadic
3806
3806
  }),
3807
- getDateTimeFormat: we(function() {
3807
+ getDateTimeFormat: Ae(function() {
3808
3808
  for (var t, r = [], n = 0; n < arguments.length; n++)
3809
3809
  r[n] = arguments[n];
3810
3810
  return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
@@ -3812,7 +3812,7 @@ function hi(e) {
3812
3812
  cache: Ie(e.dateTime),
3813
3813
  strategy: Pe.variadic
3814
3814
  }),
3815
- getPluralRules: we(function() {
3815
+ getPluralRules: Ae(function() {
3816
3816
  for (var t, r = [], n = 0; n < arguments.length; n++)
3817
3817
  r[n] = arguments[n];
3818
3818
  return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
@@ -3837,7 +3837,7 @@ var li = (
3837
3837
  if (u.length === 1)
3838
3838
  return u[0].value;
3839
3839
  var l = u.reduce(function(f, c) {
3840
- return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3840
+ return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3841
3841
  }, []);
3842
3842
  return l.length <= 1 ? l[0] || "" : l;
3843
3843
  }, this.formatToParts = function(h) {
@@ -3960,7 +3960,7 @@ const C = {}, fi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][
3960
3960
  return;
3961
3961
  if (t in C && e in C[t])
3962
3962
  return C[t][e];
3963
- const r = Ee(t);
3963
+ const r = _e(t);
3964
3964
  for (let n = 0; n < r.length; n++) {
3965
3965
  const i = r[n], o = di(i, e);
3966
3966
  if (o)
@@ -3984,7 +3984,7 @@ function di(e, t) {
3984
3984
  function mi(e) {
3985
3985
  if (e == null)
3986
3986
  return;
3987
- const t = Ee(e);
3987
+ const t = _e(e);
3988
3988
  for (let r = 0; r < t.length; r++) {
3989
3989
  const n = t[r];
3990
3990
  if (sr(n))
@@ -3992,7 +3992,7 @@ function mi(e) {
3992
3992
  }
3993
3993
  }
3994
3994
  function ar(e, ...t) {
3995
- delete C[e], ae.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
3995
+ delete C[e], ae.update((r) => (r[e] = En.all([r[e] || {}, ...t]), r));
3996
3996
  }
3997
3997
  J(
3998
3998
  [ae],
@@ -4007,13 +4007,13 @@ function ur(e) {
4007
4007
  return de[e];
4008
4008
  }
4009
4009
  function gi(e) {
4010
- return Ee(e).map((t) => {
4010
+ return _e(e).map((t) => {
4011
4011
  const r = ur(t);
4012
4012
  return [t, r ? [...r] : []];
4013
4013
  }).filter(([, t]) => t.length > 0);
4014
4014
  }
4015
4015
  function ze(e) {
4016
- return e == null ? !1 : Ee(e).some(
4016
+ return e == null ? !1 : _e(e).some(
4017
4017
  (t) => {
4018
4018
  var r;
4019
4019
  return (r = ur(t)) == null ? void 0 : r.size;
@@ -4069,32 +4069,32 @@ const vi = {
4069
4069
  timeZoneName: "short"
4070
4070
  }
4071
4071
  }
4072
- }, _i = {
4072
+ }, Ei = {
4073
4073
  fallbackLocale: null,
4074
4074
  loadingDelay: 200,
4075
4075
  formats: vi,
4076
4076
  warnOnMissingMessages: !0,
4077
4077
  handleMissingMessage: void 0,
4078
4078
  ignoreTag: !0
4079
- }, Ei = _i;
4079
+ }, _i = Ei;
4080
4080
  function Z() {
4081
- return Ei;
4081
+ return _i;
4082
4082
  }
4083
4083
  const Le = ve(!1);
4084
- var xi = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ai = (e, t) => {
4084
+ var xi = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
4085
4085
  for (var r in t || (t = {}))
4086
4086
  Hi.call(t, r) && St(e, r, t[r]);
4087
4087
  if (xt)
4088
4088
  for (var r of xt(t))
4089
4089
  Bi.call(t, r) && St(e, r, t[r]);
4090
4090
  return e;
4091
- }, wi = (e, t) => Si(e, Ti(t));
4091
+ }, Ai = (e, t) => Si(e, Ti(t));
4092
4092
  let Ze;
4093
4093
  const me = ve(null);
4094
4094
  function Tt(e) {
4095
4095
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4096
4096
  }
4097
- function Ee(e, t = Z().fallbackLocale) {
4097
+ function _e(e, t = Z().fallbackLocale) {
4098
4098
  const r = Tt(e);
4099
4099
  return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4100
4100
  }
@@ -4118,7 +4118,7 @@ const Pi = (e) => {
4118
4118
  });
4119
4119
  }
4120
4120
  return me.set(e);
4121
- }, Y = wi(Ai({}, me), {
4121
+ }, Y = Ai(wi({}, me), {
4122
4122
  set: Pi
4123
4123
  }), xe = (e) => {
4124
4124
  const t = /* @__PURE__ */ Object.create(null);
@@ -4235,14 +4235,24 @@ J([Y], () => Gi);
4235
4235
  J([Y], () => Fi);
4236
4236
  J([Y, ae], () => ji);
4237
4237
  window.emWidgets = { topic: rn };
4238
- const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4238
+ const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Xi = (e, t = {}) => {
4239
+ const r = new CustomEvent("track-custom-event", {
4240
+ detail: {
4241
+ type: e,
4242
+ data: t
4243
+ },
4244
+ bubbles: !0,
4245
+ composed: !0
4246
+ });
4247
+ document.dispatchEvent(r);
4248
+ };
4239
4249
  function Bt(e, t) {
4240
4250
  ar(e, t);
4241
4251
  }
4242
- function Xi(e) {
4252
+ function Wi(e) {
4243
4253
  Y.set(e);
4244
4254
  }
4245
- const At = {
4255
+ const wt = {
4246
4256
  en: {
4247
4257
  logoutButton: "Logout"
4248
4258
  },
@@ -4277,13 +4287,13 @@ const At = {
4277
4287
  logoutButton: "Logout"
4278
4288
  }
4279
4289
  };
4280
- function wt(e, t) {
4290
+ function At(e, t) {
4281
4291
  if (e) {
4282
4292
  const r = document.createElement("style");
4283
4293
  r.innerHTML = t, e.appendChild(r);
4284
4294
  }
4285
4295
  }
4286
- function Wi(e, t) {
4296
+ function zi(e, t) {
4287
4297
  const r = new URL(t);
4288
4298
  fetch(r.href).then((n) => n.text()).then((n) => {
4289
4299
  const i = document.createElement("style");
@@ -4292,7 +4302,7 @@ function Wi(e, t) {
4292
4302
  console.error("There was an error while trying to load client styling from URL", n);
4293
4303
  });
4294
4304
  }
4295
- function zi(e, t, r) {
4305
+ function Zi(e, t, r) {
4296
4306
  if (window.emMessageBus) {
4297
4307
  const n = document.createElement("style");
4298
4308
  window.emMessageBus.subscribe(t, (i) => {
@@ -4300,10 +4310,10 @@ function zi(e, t, r) {
4300
4310
  });
4301
4311
  }
4302
4312
  }
4303
- function Zi(e) {
4304
- _r(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4305
- }
4306
4313
  function Qi(e) {
4314
+ Er(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4315
+ }
4316
+ function Ji(e) {
4307
4317
  let t, r, n, i = (
4308
4318
  /*$_*/
4309
4319
  e[2]("logoutButton") + ""
@@ -4330,9 +4340,9 @@ function Qi(e) {
4330
4340
  }
4331
4341
  };
4332
4342
  }
4333
- function Ji(e) {
4343
+ function Yi(e) {
4334
4344
  let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
4335
- e[3] && Yi(e);
4345
+ e[3] && qi(e);
4336
4346
  return {
4337
4347
  c() {
4338
4348
  t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = Sr(), c && c.c(), H(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), H(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), H(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), H(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), H(n, "data-name", "Layer 1"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "viewBox", "0 0 150 150"), Hr(r, "width", /*isMobile*/
@@ -4361,7 +4371,7 @@ function Ji(e) {
4361
4371
  }
4362
4372
  };
4363
4373
  }
4364
- function Yi(e) {
4374
+ function qi(e) {
4365
4375
  let t, r = (
4366
4376
  /*$_*/
4367
4377
  e[2]("logoutButton") + ""
@@ -4383,12 +4393,12 @@ function Yi(e) {
4383
4393
  }
4384
4394
  };
4385
4395
  }
4386
- function qi(e) {
4396
+ function Ki(e) {
4387
4397
  let t;
4388
4398
  function r(o, s) {
4389
4399
  return (
4390
4400
  /*buttonlocation*/
4391
- o[0] === "PlayerAccountMenu" ? Ji : Qi
4401
+ o[0] === "PlayerAccountMenu" ? Yi : Ji
4392
4402
  );
4393
4403
  }
4394
4404
  let n = r(e), i = n(e);
@@ -4402,14 +4412,14 @@ function qi(e) {
4402
4412
  p(o, [s]) {
4403
4413
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4404
4414
  },
4405
- i: A,
4406
- o: A,
4415
+ i: w,
4416
+ o: w,
4407
4417
  d(o) {
4408
4418
  o && Q(t), i.d(), e[15](null);
4409
4419
  }
4410
4420
  };
4411
4421
  }
4412
- function Ki(e, t, r) {
4422
+ function eo(e, t, r) {
4413
4423
  let n;
4414
4424
  vr(e, ki, (y) => r(2, n = y));
4415
4425
  let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, v = window.navigator.userAgent, B = Vi(v) !== "PC";
@@ -4422,20 +4432,20 @@ function Ki(e, t, r) {
4422
4432
  console.log(M);
4423
4433
  });
4424
4434
  };
4425
- Object.keys(At).forEach((y) => {
4426
- Bt(y, At[y]);
4435
+ Object.keys(wt).forEach((y) => {
4436
+ Bt(y, wt[y]);
4427
4437
  });
4428
4438
  const x = () => {
4429
4439
  let y = new Headers();
4430
4440
  y.append("Content-type", "application/json"), y.append("X-SessionID", o);
4431
4441
  let M = { method: "DELETE", headers: y };
4432
4442
  fetch(`${i}/v1/player/session/player`, M).then((Se) => {
4433
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
4443
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Xi("logged_out", {});
4434
4444
  });
4435
4445
  }, R = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), P = () => {
4436
- Xi(a);
4446
+ Wi(a);
4437
4447
  };
4438
- wr(() => () => {
4448
+ Ar(() => () => {
4439
4449
  });
4440
4450
  const D = () => x(), ue = () => x();
4441
4451
  function fr(y) {
@@ -4449,10 +4459,10 @@ function Ki(e, t, r) {
4449
4459
  e.$$.dirty & /*endpoint, session, buttonlocation*/
4450
4460
  193 && i && o && s && R(), e.$$.dirty & /*lang*/
4451
4461
  256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4452
- 1026 && u && d && wt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4453
- 1026 && u && d && wt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4454
- 2050 && l && d && Wi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4455
- 514 && h && d && zi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4462
+ 1026 && u && d && At(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4463
+ 1026 && u && d && At(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4464
+ 2050 && l && d && zi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4465
+ 514 && h && d && Zi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4456
4466
  4096 && f && N();
4457
4467
  }, [
4458
4468
  s,
@@ -4473,13 +4483,13 @@ function Ki(e, t, r) {
4473
4483
  fr
4474
4484
  ];
4475
4485
  }
4476
- class eo extends Gr {
4486
+ class to extends Gr {
4477
4487
  constructor(t) {
4478
4488
  super(), Ur(
4479
4489
  this,
4480
4490
  t,
4491
+ eo,
4481
4492
  Ki,
4482
- qi,
4483
4493
  Ot,
4484
4494
  {
4485
4495
  endpoint: 6,
@@ -4491,59 +4501,59 @@ class eo extends Gr {
4491
4501
  clientstylingurl: 11,
4492
4502
  translationurl: 12
4493
4503
  },
4494
- Zi
4504
+ Qi
4495
4505
  );
4496
4506
  }
4497
4507
  get endpoint() {
4498
4508
  return this.$$.ctx[6];
4499
4509
  }
4500
4510
  set endpoint(t) {
4501
- this.$$set({ endpoint: t }), w();
4511
+ this.$$set({ endpoint: t }), A();
4502
4512
  }
4503
4513
  get session() {
4504
4514
  return this.$$.ctx[7];
4505
4515
  }
4506
4516
  set session(t) {
4507
- this.$$set({ session: t }), w();
4517
+ this.$$set({ session: t }), A();
4508
4518
  }
4509
4519
  get buttonlocation() {
4510
4520
  return this.$$.ctx[0];
4511
4521
  }
4512
4522
  set buttonlocation(t) {
4513
- this.$$set({ buttonlocation: t }), w();
4523
+ this.$$set({ buttonlocation: t }), A();
4514
4524
  }
4515
4525
  get lang() {
4516
4526
  return this.$$.ctx[8];
4517
4527
  }
4518
4528
  set lang(t) {
4519
- this.$$set({ lang: t }), w();
4529
+ this.$$set({ lang: t }), A();
4520
4530
  }
4521
4531
  get mbsource() {
4522
4532
  return this.$$.ctx[9];
4523
4533
  }
4524
4534
  set mbsource(t) {
4525
- this.$$set({ mbsource: t }), w();
4535
+ this.$$set({ mbsource: t }), A();
4526
4536
  }
4527
4537
  get clientstyling() {
4528
4538
  return this.$$.ctx[10];
4529
4539
  }
4530
4540
  set clientstyling(t) {
4531
- this.$$set({ clientstyling: t }), w();
4541
+ this.$$set({ clientstyling: t }), A();
4532
4542
  }
4533
4543
  get clientstylingurl() {
4534
4544
  return this.$$.ctx[11];
4535
4545
  }
4536
4546
  set clientstylingurl(t) {
4537
- this.$$set({ clientstylingurl: t }), w();
4547
+ this.$$set({ clientstylingurl: t }), A();
4538
4548
  }
4539
4549
  get translationurl() {
4540
4550
  return this.$$.ctx[12];
4541
4551
  }
4542
4552
  set translationurl(t) {
4543
- this.$$set({ translationurl: t }), w();
4553
+ this.$$set({ translationurl: t }), A();
4544
4554
  }
4545
4555
  }
4546
- Dr(eo, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4556
+ Dr(to, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4547
4557
  export {
4548
- eo as default
4558
+ to as default
4549
4559
  };