@soyio/soyio-widget 2.15.2 → 2.15.3

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.
package/dist/index.js CHANGED
@@ -432,7 +432,7 @@ class Hn {
432
432
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
433
433
  }
434
434
  }
435
- const _e = "2.15.1";
435
+ const _e = "2.15.2";
436
436
  function _n(c) {
437
437
  var E;
438
438
  const d = [
@@ -575,11 +575,11 @@ function Qn(c) {
575
575
  }
576
576
  var Ue = { exports: {} }, xe = { exports: {} }, er = xe.exports, Dt;
577
577
  function tr() {
578
- return Dt || (Dt = 1, (function(c, d) {
578
+ return Dt || (Dt = 1, function(c, d) {
579
579
  (function(h, f) {
580
580
  c.exports = f();
581
- })(typeof self != "undefined" ? self : er, (function() {
582
- return (function(h) {
581
+ })(typeof self != "undefined" ? self : er, function() {
582
+ return function(h) {
583
583
  var f = {};
584
584
  function v(y) {
585
585
  if (f[y]) return f[y].exports;
@@ -621,37 +621,37 @@ function tr() {
621
621
  }, v.o = function(y, E) {
622
622
  return {}.hasOwnProperty.call(y, E);
623
623
  }, v.p = "", v(v.s = 0);
624
- })([function(h, f, v) {
625
- v.r(f), v.d(f, "Promise", (function() {
624
+ }([function(h, f, v) {
625
+ v.r(f), v.d(f, "Promise", function() {
626
626
  return P;
627
- })), v.d(f, "TYPES", (function() {
627
+ }), v.d(f, "TYPES", function() {
628
628
  return cn;
629
- })), v.d(f, "ProxyWindow", (function() {
629
+ }), v.d(f, "ProxyWindow", function() {
630
630
  return $;
631
- })), v.d(f, "setup", (function() {
631
+ }), v.d(f, "setup", function() {
632
632
  return Et;
633
- })), v.d(f, "destroy", (function() {
633
+ }), v.d(f, "destroy", function() {
634
634
  return un;
635
- })), v.d(f, "serializeMessage", (function() {
635
+ }), v.d(f, "serializeMessage", function() {
636
636
  return rn;
637
- })), v.d(f, "deserializeMessage", (function() {
637
+ }), v.d(f, "deserializeMessage", function() {
638
638
  return on;
639
- })), v.d(f, "createProxyWindow", (function() {
639
+ }), v.d(f, "createProxyWindow", function() {
640
640
  return an;
641
- })), v.d(f, "toProxyWindow", (function() {
641
+ }), v.d(f, "toProxyWindow", function() {
642
642
  return sn;
643
- })), v.d(f, "on", (function() {
643
+ }), v.d(f, "on", function() {
644
644
  return re;
645
- })), v.d(f, "once", (function() {
645
+ }), v.d(f, "once", function() {
646
646
  return nn;
647
- })), v.d(f, "send", (function() {
647
+ }), v.d(f, "send", function() {
648
648
  return K;
649
- })), v.d(f, "markWindowKnown", (function() {
649
+ }), v.d(f, "markWindowKnown", function() {
650
650
  return ut;
651
- })), v.d(f, "cleanUpWindow", (function() {
651
+ }), v.d(f, "cleanUpWindow", function() {
652
652
  return dn;
653
- })), v.d(f, "bridge", (function() {
654
- }));
653
+ }), v.d(f, "bridge", function() {
654
+ });
655
655
  function y(e) {
656
656
  return {}.toString.call(e) === "[object RegExp]";
657
657
  }
@@ -710,7 +710,7 @@ function tr() {
710
710
  return n && e.mockDomain && e.mockDomain.indexOf("mock:") === 0 ? e.mockDomain : n;
711
711
  }
712
712
  function Q(e) {
713
- if (!(function(n) {
713
+ if (!function(n) {
714
714
  try {
715
715
  if (n === window) return !0;
716
716
  } catch (r) {
@@ -725,9 +725,9 @@ function tr() {
725
725
  } catch (r) {
726
726
  }
727
727
  try {
728
- if ((function(r) {
728
+ if (function(r) {
729
729
  return r === void 0 && (r = window), A(r) === "mock:";
730
- })(n) && J()) return !0;
730
+ }(n) && J()) return !0;
731
731
  } catch (r) {
732
732
  }
733
733
  try {
@@ -735,7 +735,7 @@ function tr() {
735
735
  } catch (r) {
736
736
  }
737
737
  return !1;
738
- })(e)) return !1;
738
+ }(e)) return !1;
739
739
  try {
740
740
  if (e === window || D(e) && J() || F(window) === F(e)) return !0;
741
741
  } catch (n) {
@@ -749,7 +749,7 @@ function tr() {
749
749
  function Be(e, n) {
750
750
  if (!e || !n) return !1;
751
751
  var t = k(n);
752
- return t ? t === e : (function(r) {
752
+ return t ? t === e : function(r) {
753
753
  var o = [];
754
754
  try {
755
755
  for (; r.parent !== r; )
@@ -757,7 +757,7 @@ function tr() {
757
757
  } catch (i) {
758
758
  }
759
759
  return o;
760
- })(n).indexOf(e) !== -1;
760
+ }(n).indexOf(e) !== -1;
761
761
  }
762
762
  function $e(e) {
763
763
  var n = [], t;
@@ -822,16 +822,16 @@ function tr() {
822
822
  if (!e.parent || !e.top) return !0;
823
823
  } catch (o) {
824
824
  }
825
- var t = (function(o, i) {
825
+ var t = function(o, i) {
826
826
  for (var a = 0; a < o.length; a++) try {
827
827
  if (o[a] === i) return a;
828
828
  } catch (l) {
829
829
  }
830
830
  return -1;
831
- })(Ht, e);
831
+ }(Ht, e);
832
832
  if (t !== -1) {
833
833
  var r = _t[t];
834
- if (r && (function(o) {
834
+ if (r && function(o) {
835
835
  if (!o.contentWindow || !o.parentNode) return !0;
836
836
  var i = o.ownerDocument;
837
837
  if (i && i.documentElement && !i.documentElement.contains(o)) {
@@ -839,7 +839,7 @@ function tr() {
839
839
  if (!a.host || !i.documentElement.contains(a.host)) return !0;
840
840
  }
841
841
  return !1;
842
- })(r)) return !0;
842
+ }(r)) return !0;
843
843
  }
844
844
  return !1;
845
845
  }
@@ -851,9 +851,9 @@ function tr() {
851
851
  if (typeof n == "string") return e === "*" || n === e;
852
852
  if (y(n) || Array.isArray(n)) return !1;
853
853
  }
854
- return y(e) ? y(n) ? e.toString() === n.toString() : !Array.isArray(n) && !!n.match(e) : !!Array.isArray(e) && (Array.isArray(n) ? JSON.stringify(e) === JSON.stringify(n) : !y(n) && e.some((function(t) {
854
+ return y(e) ? y(n) ? e.toString() === n.toString() : !Array.isArray(n) && !!n.match(e) : !!Array.isArray(e) && (Array.isArray(n) ? JSON.stringify(e) === JSON.stringify(n) : !y(n) && e.some(function(t) {
855
855
  return oe(t, n);
856
- })));
856
+ }));
857
857
  }
858
858
  function we(e) {
859
859
  try {
@@ -905,9 +905,9 @@ function tr() {
905
905
  }
906
906
  }
907
907
  function qt(e) {
908
- if ((function(t) {
908
+ if (function(t) {
909
909
  return t === void 0 && (t = window), !!k(t);
910
- })(e)) {
910
+ }(e)) {
911
911
  var n = Ve(e);
912
912
  if (n && n.parentElement) {
913
913
  n.parentElement.removeChild(n);
@@ -948,18 +948,18 @@ function tr() {
948
948
  function se() {
949
949
  Ce -= 1, Ye();
950
950
  }
951
- var P = (function() {
951
+ var P = function() {
952
952
  function e(t) {
953
953
  var r = this;
954
954
  if (this.resolved = void 0, this.rejected = void 0, this.errorHandled = void 0, this.value = void 0, this.error = void 0, this.handlers = void 0, this.dispatching = void 0, this.stack = void 0, this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], t) {
955
955
  var o, i, a = !1, l = !1, u = !1;
956
956
  Te();
957
957
  try {
958
- t((function(s) {
958
+ t(function(s) {
959
959
  u ? r.resolve(s) : (a = !0, o = s);
960
- }), (function(s) {
960
+ }, function(s) {
961
961
  u ? r.reject(s) : (l = !0, i = s);
962
- }));
962
+ });
963
963
  } catch (s) {
964
964
  se(), this.reject(s);
965
965
  return;
@@ -980,16 +980,16 @@ function tr() {
980
980
  var o = t && typeof t.toString == "function" ? t.toString() : {}.toString.call(t);
981
981
  t = new Error("Expected reject to be called with Error, got " + o);
982
982
  }
983
- return this.rejected = !0, this.error = t, this.errorHandled || setTimeout((function() {
984
- r.errorHandled || (function(i, a) {
983
+ return this.rejected = !0, this.error = t, this.errorHandled || setTimeout(function() {
984
+ r.errorHandled || function(i, a) {
985
985
  if (Je.indexOf(i) === -1) {
986
- Je.push(i), setTimeout((function() {
986
+ Je.push(i), setTimeout(function() {
987
987
  throw i;
988
- }), 1);
988
+ }, 1);
989
989
  for (var l = 0; l < ie.length; l++) ie[l](i, a);
990
990
  }
991
- })(t, r);
992
- }), 1), this.dispatch(), this;
991
+ }(t, r);
992
+ }, 1), this.dispatch(), this;
993
993
  }, n.asyncReject = function(t) {
994
994
  return this.errorHandled = !0, this.reject(t), this;
995
995
  }, n.dispatch = function() {
@@ -997,11 +997,11 @@ function tr() {
997
997
  if (!this.dispatching && (t || r)) {
998
998
  this.dispatching = !0, Te();
999
999
  for (var i = function(g, I) {
1000
- return g.then((function(x) {
1000
+ return g.then(function(x) {
1001
1001
  I.resolve(x);
1002
- }), (function(x) {
1002
+ }, function(x) {
1003
1003
  I.reject(x);
1004
- }));
1004
+ });
1005
1005
  }, a = 0; a < o.length; a++) {
1006
1006
  var l = o[a], u = l.onSuccess, s = l.onError, w = l.promise, m = void 0;
1007
1007
  if (t) try {
@@ -1042,33 +1042,33 @@ function tr() {
1042
1042
  return this.then(void 0, t);
1043
1043
  }, n.finally = function(t) {
1044
1044
  if (t && typeof t != "function" && !t.call) throw new Error("Promise.finally expected a function");
1045
- return this.then((function(r) {
1046
- return e.try(t).then((function() {
1045
+ return this.then(function(r) {
1046
+ return e.try(t).then(function() {
1047
1047
  return r;
1048
- }));
1049
- }), (function(r) {
1050
- return e.try(t).then((function() {
1048
+ });
1049
+ }, function(r) {
1050
+ return e.try(t).then(function() {
1051
1051
  throw r;
1052
- }));
1053
- }));
1052
+ });
1053
+ });
1054
1054
  }, n.timeout = function(t, r) {
1055
1055
  var o = this;
1056
1056
  if (this.resolved || this.rejected) return this;
1057
- var i = setTimeout((function() {
1057
+ var i = setTimeout(function() {
1058
1058
  o.resolved || o.rejected || o.reject(r || new Error("Promise timed out after " + t + "ms"));
1059
- }), t);
1060
- return this.then((function(a) {
1059
+ }, t);
1060
+ return this.then(function(a) {
1061
1061
  return clearTimeout(i), a;
1062
- }));
1062
+ });
1063
1063
  }, n.toPromise = function() {
1064
1064
  if (typeof Promise == "undefined") throw new TypeError("Could not find Promise");
1065
1065
  return Promise.resolve(this);
1066
1066
  }, n.lazy = function() {
1067
1067
  return this.errorHandled = !0, this;
1068
1068
  }, e.resolve = function(t) {
1069
- return t instanceof e ? t : ee(t) ? new e((function(r, o) {
1069
+ return t instanceof e ? t : ee(t) ? new e(function(r, o) {
1070
1070
  return t.then(r, o);
1071
- })) : new e().resolve(t);
1071
+ }) : new e().resolve(t);
1072
1072
  }, e.reject = function(t) {
1073
1073
  return new e().reject(t);
1074
1074
  }, e.asyncReject = function(t) {
@@ -1078,11 +1078,11 @@ function tr() {
1078
1078
  if (!o)
1079
1079
  return r.resolve(i), r;
1080
1080
  for (var a = function(s, w, m) {
1081
- return w.then((function(p) {
1081
+ return w.then(function(p) {
1082
1082
  i[s] = p, (o -= 1) == 0 && r.resolve(i);
1083
- }), (function(p) {
1083
+ }, function(p) {
1084
1084
  m.reject(p);
1085
- }));
1085
+ });
1086
1086
  }, l = 0; l < t.length; l++) {
1087
1087
  var u = t[l];
1088
1088
  if (u instanceof e) {
@@ -1101,25 +1101,25 @@ function tr() {
1101
1101
  var r = {}, o = [], i = function(l) {
1102
1102
  if (t.hasOwnProperty(l)) {
1103
1103
  var u = t[l];
1104
- ee(u) ? o.push(u.then((function(s) {
1104
+ ee(u) ? o.push(u.then(function(s) {
1105
1105
  r[l] = s;
1106
- }))) : r[l] = u;
1106
+ })) : r[l] = u;
1107
1107
  }
1108
1108
  };
1109
1109
  for (var a in t) i(a);
1110
- return e.all(o).then((function() {
1110
+ return e.all(o).then(function() {
1111
1111
  return r;
1112
- }));
1112
+ });
1113
1113
  }, e.map = function(t, r) {
1114
1114
  return e.all(t.map(r));
1115
1115
  }, e.onPossiblyUnhandledException = function(t) {
1116
- return (function(r) {
1116
+ return function(r) {
1117
1117
  return ie.push(r), {
1118
1118
  cancel: function() {
1119
1119
  ie.splice(ie.indexOf(r), 1);
1120
1120
  }
1121
1121
  };
1122
- })(t);
1122
+ }(t);
1123
1123
  }, e.try = function(t, r, o) {
1124
1124
  if (t && typeof t != "function" && !t.call) throw new Error("Promise.try expected a function");
1125
1125
  var i;
@@ -1131,18 +1131,18 @@ function tr() {
1131
1131
  }
1132
1132
  return se(), e.resolve(i);
1133
1133
  }, e.delay = function(t) {
1134
- return new e((function(r) {
1134
+ return new e(function(r) {
1135
1135
  setTimeout(r, t);
1136
- }));
1136
+ });
1137
1137
  }, e.isPromise = function(t) {
1138
1138
  return !!(t && t instanceof e) || ee(t);
1139
1139
  }, e.flush = function() {
1140
- return (function(t) {
1140
+ return function(t) {
1141
1141
  var r = ae = ae || new t();
1142
1142
  return Ye(), r;
1143
- })(e);
1143
+ }(e);
1144
1144
  }, e;
1145
- })();
1145
+ }();
1146
1146
  function ge(e, n) {
1147
1147
  for (var t = 0; t < e.length; t++) try {
1148
1148
  if (e[t] === n) return t;
@@ -1150,9 +1150,9 @@ function tr() {
1150
1150
  }
1151
1151
  return -1;
1152
1152
  }
1153
- var Re = (function() {
1153
+ var Re = function() {
1154
1154
  function e() {
1155
- if (this.name = void 0, this.weakmap = void 0, this.keys = void 0, this.values = void 0, this.name = "__weakmap_" + (1e9 * Math.random() >>> 0) + "__", (function() {
1155
+ if (this.name = void 0, this.weakmap = void 0, this.keys = void 0, this.values = void 0, this.name = "__weakmap_" + (1e9 * Math.random() >>> 0) + "__", function() {
1156
1156
  if (typeof WeakMap == "undefined" || Object.freeze === void 0) return !1;
1157
1157
  try {
1158
1158
  var t = /* @__PURE__ */ new WeakMap(), r = {};
@@ -1160,7 +1160,7 @@ function tr() {
1160
1160
  } catch (o) {
1161
1161
  return !1;
1162
1162
  }
1163
- })()) try {
1163
+ }()) try {
1164
1164
  this.weakmap = /* @__PURE__ */ new WeakMap();
1165
1165
  } catch (t) {
1166
1166
  }
@@ -1251,7 +1251,7 @@ function tr() {
1251
1251
  var o = r();
1252
1252
  return this.set(t, o), o;
1253
1253
  }, e;
1254
- })();
1254
+ }();
1255
1255
  function Ze(e) {
1256
1256
  return e.name || e.__name__ || e.displayName || "anonymous";
1257
1257
  }
@@ -1264,26 +1264,26 @@ function tr() {
1264
1264
  }
1265
1265
  function Y() {
1266
1266
  var e = "0123456789abcdef";
1267
- return "uid_" + "xxxxxxxxxx".replace(/./g, (function() {
1267
+ return "uid_" + "xxxxxxxxxx".replace(/./g, function() {
1268
1268
  return e.charAt(Math.floor(Math.random() * e.length));
1269
- })) + "_" + (function(n) {
1270
- if (typeof btoa == "function") return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g, (function(t, r) {
1269
+ }) + "_" + function(n) {
1270
+ if (typeof btoa == "function") return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g, function(t, r) {
1271
1271
  return String.fromCharCode(parseInt(r, 16));
1272
- }))).replace(/[=]/g, "");
1272
+ })).replace(/[=]/g, "");
1273
1273
  if (typeof Buffer != "undefined") return Buffer.from(n, "utf8").toString("base64").replace(/[=]/g, "");
1274
1274
  throw new Error("Can not find window.btoa or Buffer");
1275
- })((/* @__PURE__ */ new Date()).toISOString().slice(11, 19).replace("T", ".")).replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
1275
+ }((/* @__PURE__ */ new Date()).toISOString().slice(11, 19).replace("T", ".")).replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
1276
1276
  }
1277
1277
  var ye;
1278
1278
  function Xe(e) {
1279
1279
  try {
1280
- return JSON.stringify([].slice.call(e), (function(n, t) {
1281
- return typeof t == "function" ? "memoize[" + (function(r) {
1280
+ return JSON.stringify([].slice.call(e), function(n, t) {
1281
+ return typeof t == "function" ? "memoize[" + function(r) {
1282
1282
  if (ye = ye || new Re(), r == null || typeof r != "object" && typeof r != "function") throw new Error("Invalid object");
1283
1283
  var o = ye.get(r);
1284
1284
  return o || (o = typeof r + ":" + Y(), ye.set(r, o)), o;
1285
- })(t) + "]" : typeof window != "undefined" && t instanceof window.Element || t !== null && typeof t == "object" && t.nodeType === 1 && typeof t.style == "object" && typeof t.ownerDocument == "object" ? {} : t;
1286
- }));
1285
+ }(t) + "]" : typeof window != "undefined" && t instanceof window.Element || t !== null && typeof t == "object" && t.nodeType === 1 && typeof t.style == "object" && typeof t.ownerDocument == "object" ? {} : t;
1286
+ });
1287
1287
  } catch (n) {
1288
1288
  throw new Error("Arguments not serializable -- can not be used to memoize");
1289
1289
  }
@@ -1327,11 +1327,11 @@ function tr() {
1327
1327
  function t() {
1328
1328
  for (var r = arguments, o = this, i = arguments.length, a = new Array(i), l = 0; l < i; l++) a[l] = arguments[l];
1329
1329
  var u = Xe(a);
1330
- return n.hasOwnProperty(u) || (n[u] = P.try((function() {
1330
+ return n.hasOwnProperty(u) || (n[u] = P.try(function() {
1331
1331
  return e.apply(o, r);
1332
- })).finally((function() {
1332
+ }).finally(function() {
1333
1333
  delete n[u];
1334
- }))), n[u];
1334
+ })), n[u];
1335
1335
  }
1336
1336
  return t.reset = function() {
1337
1337
  n = {};
@@ -1359,12 +1359,12 @@ function tr() {
1359
1359
  function et(e) {
1360
1360
  return typeof e == "string" ? e : e.toString && typeof e.toString == "function" ? e.toString() : {}.toString.call(e);
1361
1361
  }
1362
- ce((function(e) {
1362
+ ce(function(e) {
1363
1363
  if (Object.values) return Object.values(e);
1364
1364
  var n = [];
1365
1365
  for (var t in e) e.hasOwnProperty(t) && n.push(e[t]);
1366
1366
  return n;
1367
- }));
1367
+ });
1368
1368
  function Oe(e) {
1369
1369
  return {}.toString.call(e) === "[object RegExp]";
1370
1370
  }
@@ -1384,25 +1384,25 @@ function tr() {
1384
1384
  function rt() {
1385
1385
  return !!document.body && document.readyState === "interactive";
1386
1386
  }
1387
- ce((function() {
1388
- return new P((function(e) {
1387
+ ce(function() {
1388
+ return new P(function(e) {
1389
1389
  if (nt() || rt()) return e();
1390
- var n = setInterval((function() {
1390
+ var n = setInterval(function() {
1391
1391
  if (nt() || rt())
1392
1392
  return clearInterval(n), e();
1393
- }), 10);
1394
- }));
1395
- }));
1396
- var Ee = typeof document != "undefined" ? document.currentScript : null, Gt = ce((function() {
1397
- if (Ee || (Ee = (function() {
1393
+ }, 10);
1394
+ });
1395
+ });
1396
+ var Ee = typeof document != "undefined" ? document.currentScript : null, Gt = ce(function() {
1397
+ if (Ee || (Ee = function() {
1398
1398
  try {
1399
- var e = (function() {
1399
+ var e = function() {
1400
1400
  try {
1401
1401
  throw new Error("_");
1402
1402
  } catch (a) {
1403
1403
  return a.stack || "";
1404
1404
  }
1405
- })(), n = /.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e), t = n && n[1];
1405
+ }(), n = /.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e), t = n && n[1];
1406
1406
  if (!t) return;
1407
1407
  for (var r = 0, o = [].slice.call(document.getElementsByTagName("script")).reverse(); r < o.length; r++) {
1408
1408
  var i = o[r];
@@ -1410,10 +1410,10 @@ function tr() {
1410
1410
  }
1411
1411
  } catch (a) {
1412
1412
  }
1413
- })())) return Ee;
1413
+ }())) return Ee;
1414
1414
  throw new Error("Can not determine current script");
1415
- })), Vt = Y();
1416
- ce((function() {
1415
+ }), Vt = Y();
1416
+ ce(function() {
1417
1417
  var e;
1418
1418
  try {
1419
1419
  e = Gt();
@@ -1423,20 +1423,20 @@ function tr() {
1423
1423
  var n = e.getAttribute("data-uid");
1424
1424
  if (n && typeof n == "string" || (n = e.getAttribute("data-uid-auto")) && typeof n == "string") return n;
1425
1425
  if (e.src) {
1426
- var t = (function(r) {
1426
+ var t = function(r) {
1427
1427
  for (var o = "", i = 0; i < r.length; i++) {
1428
1428
  var a = r[i].charCodeAt(0) * i;
1429
1429
  r[i + 1] && (a += r[i + 1].charCodeAt(0) * (i - 1)), o += String.fromCharCode(97 + Math.abs(a) % 26);
1430
1430
  }
1431
1431
  return o;
1432
- })(JSON.stringify({
1432
+ }(JSON.stringify({
1433
1433
  src: e.src,
1434
1434
  dataset: e.dataset
1435
1435
  }));
1436
1436
  n = "uid_" + t.slice(t.length - 30);
1437
1437
  } else n = Y();
1438
1438
  return e.setAttribute("data-uid-auto", n), n;
1439
- }));
1439
+ });
1440
1440
  function le(e) {
1441
1441
  e === void 0 && (e = window);
1442
1442
  var n = "__post_robot_10_0_46__";
@@ -1446,7 +1446,7 @@ function tr() {
1446
1446
  return {};
1447
1447
  };
1448
1448
  function z(e, n) {
1449
- return e === void 0 && (e = "store"), n === void 0 && (n = ot), fe(le(), e, (function() {
1449
+ return e === void 0 && (e = "store"), n === void 0 && (n = ot), fe(le(), e, function() {
1450
1450
  var t = n();
1451
1451
  return {
1452
1452
  has: function(r) {
@@ -1471,7 +1471,7 @@ function tr() {
1471
1471
  return Object.keys(t);
1472
1472
  }
1473
1473
  };
1474
- }));
1474
+ });
1475
1475
  }
1476
1476
  var Jt = function() {
1477
1477
  };
@@ -1480,7 +1480,7 @@ function tr() {
1480
1480
  return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new Jt(), e.WINDOW_WILDCARD;
1481
1481
  }
1482
1482
  function H(e, n) {
1483
- return e === void 0 && (e = "store"), n === void 0 && (n = ot), z("windowStore").getOrSet(e, (function() {
1483
+ return e === void 0 && (e = "store"), n === void 0 && (n = ot), z("windowStore").getOrSet(e, function() {
1484
1484
  var t = new Re(), r = function(o) {
1485
1485
  return t.getOrSet(o, n);
1486
1486
  };
@@ -1502,7 +1502,7 @@ function tr() {
1502
1502
  return fe(r(o), e, i);
1503
1503
  }
1504
1504
  };
1505
- }));
1505
+ });
1506
1506
  }
1507
1507
  function it() {
1508
1508
  return z("instance").getOrSet("instanceID", Y);
@@ -1523,7 +1523,7 @@ function tr() {
1523
1523
  }, {
1524
1524
  domain: "*",
1525
1525
  timeout: -1
1526
- }).then((function(t) {
1526
+ }).then(function(t) {
1527
1527
  var r = t.origin, o = t.data.instanceID;
1528
1528
  return at(e, {
1529
1529
  domain: r
@@ -1532,17 +1532,17 @@ function tr() {
1532
1532
  domain: r,
1533
1533
  instanceID: o
1534
1534
  };
1535
- }));
1535
+ });
1536
1536
  }
1537
1537
  function st(e, n) {
1538
1538
  var t = n.send;
1539
- return H("windowInstanceIDPromises").getOrSet(e, (function() {
1539
+ return H("windowInstanceIDPromises").getOrSet(e, function() {
1540
1540
  return Ae(e, {
1541
1541
  send: t
1542
- }).then((function(r) {
1542
+ }).then(function(r) {
1543
1543
  return r.instanceID;
1544
- }));
1545
- }));
1544
+ });
1545
+ });
1546
1546
  }
1547
1547
  function ut(e) {
1548
1548
  H("knownWindows").set(e, !0);
@@ -1613,13 +1613,13 @@ function tr() {
1613
1613
  return e;
1614
1614
  }, B[void 0] = function() {
1615
1615
  }, B), Xt = {};
1616
- new P((function(e) {
1616
+ new P(function(e) {
1617
1617
  if (window.document && window.document.body) return e(window.document.body);
1618
- var n = setInterval((function() {
1618
+ var n = setInterval(function() {
1619
1619
  if (window.document && window.document.body)
1620
1620
  return clearInterval(n), e(window.document.body);
1621
- }), 10);
1622
- }));
1621
+ }, 10);
1622
+ });
1623
1623
  function De() {
1624
1624
  for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1625
1625
  var r = t[n];
@@ -1627,50 +1627,50 @@ function tr() {
1627
1627
  }
1628
1628
  }
1629
1629
  function dt(e, n) {
1630
- var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then((function(u) {
1630
+ var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1631
1631
  if (Q(u)) return ve(u).name;
1632
- })), a = e.then((function(u) {
1632
+ }), a = e.then(function(u) {
1633
1633
  if (G(u)) throw new Error("Window is closed, can not determine type");
1634
1634
  return X(u) ? "popup" : "iframe";
1635
- }));
1635
+ });
1636
1636
  i.catch(te), a.catch(te);
1637
1637
  var l = function() {
1638
- return e.then((function(u) {
1638
+ return e.then(function(u) {
1639
1639
  if (!G(u)) return Q(u) ? ve(u).name : i;
1640
- }));
1640
+ });
1641
1641
  };
1642
1642
  return {
1643
1643
  id: o,
1644
1644
  getType: function() {
1645
1645
  return a;
1646
1646
  },
1647
- getInstanceID: $t((function() {
1648
- return e.then((function(u) {
1647
+ getInstanceID: $t(function() {
1648
+ return e.then(function(u) {
1649
1649
  return st(u, {
1650
1650
  send: t
1651
1651
  });
1652
- }));
1653
- })),
1652
+ });
1653
+ }),
1654
1654
  close: function() {
1655
1655
  return e.then(qt);
1656
1656
  },
1657
1657
  getName: l,
1658
1658
  focus: function() {
1659
- return e.then((function(u) {
1659
+ return e.then(function(u) {
1660
1660
  u.focus();
1661
- }));
1661
+ });
1662
1662
  },
1663
1663
  isClosed: function() {
1664
- return e.then((function(u) {
1664
+ return e.then(function(u) {
1665
1665
  return G(u);
1666
- }));
1666
+ });
1667
1667
  },
1668
1668
  setLocation: function(u, s) {
1669
- return s === void 0 && (s = {}), e.then((function(w) {
1669
+ return s === void 0 && (s = {}), e.then(function(w) {
1670
1670
  var m = window.location.protocol + "//" + window.location.host, p = s.method, g = p === void 0 ? "get" : p, I = s.body;
1671
1671
  if (u.indexOf("/") === 0) u = "" + m + u;
1672
1672
  else if (!u.match(/^https?:\/\//) && u.indexOf(m) !== 0) throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1673
- if (g === "post") return l().then((function(x) {
1673
+ if (g === "post") return l().then(function(x) {
1674
1674
  if (!x) throw new Error("Can not post to window without target name");
1675
1675
  (function(b) {
1676
1676
  var C = b.url, M = b.target, R = b.body, T = b.method, L = T === void 0 ? "post" : T, W = document.createElement("form");
@@ -1685,7 +1685,7 @@ function tr() {
1685
1685
  method: g,
1686
1686
  body: I
1687
1687
  });
1688
- }));
1688
+ });
1689
1689
  if (g !== "get") throw new Error("Unsupported method: " + g);
1690
1690
  if (Q(w)) try {
1691
1691
  if (w.location && typeof w.location.replace == "function") {
@@ -1695,18 +1695,18 @@ function tr() {
1695
1695
  } catch (x) {
1696
1696
  }
1697
1697
  w.location = u;
1698
- }));
1698
+ });
1699
1699
  },
1700
1700
  setName: function(u) {
1701
- return e.then((function(s) {
1701
+ return e.then(function(s) {
1702
1702
  var w = Q(s), m = Ve(s);
1703
1703
  if (!w) throw new Error("Can not set name for cross-domain window: " + u);
1704
1704
  ve(s).name = u, m && m.setAttribute("name", u), i = P.resolve(u);
1705
- }));
1705
+ });
1706
1706
  }
1707
1707
  };
1708
1708
  }
1709
- var $ = (function() {
1709
+ var $ = function() {
1710
1710
  function e(t) {
1711
1711
  var r = t.send, o = t.win, i = t.serializedWindow;
1712
1712
  this.id = void 0, this.isProxyWindow = !0, this.serializedWindow = void 0, this.actualWindow = void 0, this.actualWindowPromise = void 0, this.send = void 0, this.name = void 0, this.actualWindowPromise = new P(), this.serializedWindow = i || dt(this.actualWindowPromise, {
@@ -1721,37 +1721,37 @@ function tr() {
1721
1721
  }, n.getType = function() {
1722
1722
  return this.serializedWindow.getType();
1723
1723
  }, n.isPopup = function() {
1724
- return this.getType().then((function(t) {
1724
+ return this.getType().then(function(t) {
1725
1725
  return t === "popup";
1726
- }));
1726
+ });
1727
1727
  }, n.setLocation = function(t, r) {
1728
1728
  var o = this;
1729
- return this.serializedWindow.setLocation(t, r).then((function() {
1729
+ return this.serializedWindow.setLocation(t, r).then(function() {
1730
1730
  return o;
1731
- }));
1731
+ });
1732
1732
  }, n.getName = function() {
1733
1733
  return this.serializedWindow.getName();
1734
1734
  }, n.setName = function(t) {
1735
1735
  var r = this;
1736
- return this.serializedWindow.setName(t).then((function() {
1736
+ return this.serializedWindow.setName(t).then(function() {
1737
1737
  return r;
1738
- }));
1738
+ });
1739
1739
  }, n.close = function() {
1740
1740
  var t = this;
1741
- return this.serializedWindow.close().then((function() {
1741
+ return this.serializedWindow.close().then(function() {
1742
1742
  return t;
1743
- }));
1743
+ });
1744
1744
  }, n.focus = function() {
1745
1745
  var t = this, r = this.isPopup(), o = this.getName(), i = P.hash({
1746
1746
  isPopup: r,
1747
1747
  name: o
1748
- }).then((function(l) {
1748
+ }).then(function(l) {
1749
1749
  var u = l.name;
1750
1750
  l.isPopup && u && window.open("", u, "noopener");
1751
- })), a = this.serializedWindow.focus();
1752
- return P.all([i, a]).then((function() {
1751
+ }), a = this.serializedWindow.focus();
1752
+ return P.all([i, a]).then(function() {
1753
1753
  return t;
1754
- }));
1754
+ });
1755
1755
  }, n.isClosed = function() {
1756
1756
  return this.serializedWindow.isClosed();
1757
1757
  }, n.getWindow = function() {
@@ -1766,19 +1766,19 @@ function tr() {
1766
1766
  return this.actualWindowPromise;
1767
1767
  }, n.matchWindow = function(t, r) {
1768
1768
  var o = this, i = r.send;
1769
- return P.try((function() {
1769
+ return P.try(function() {
1770
1770
  return o.actualWindow ? t === o.actualWindow : P.hash({
1771
1771
  proxyInstanceID: o.getInstanceID(),
1772
1772
  knownWindowInstanceID: st(t, {
1773
1773
  send: i
1774
1774
  })
1775
- }).then((function(a) {
1775
+ }).then(function(a) {
1776
1776
  var l = a.proxyInstanceID === a.knownWindowInstanceID;
1777
1777
  return l && o.setWindow(t, {
1778
1778
  send: i
1779
1779
  }), l;
1780
- }));
1781
- }));
1780
+ });
1781
+ });
1782
1782
  }, n.unwrap = function() {
1783
1783
  return this.actualWindow || this;
1784
1784
  }, n.getInstanceID = function() {
@@ -1811,7 +1811,7 @@ function tr() {
1811
1811
  send: o
1812
1812
  });
1813
1813
  }, e;
1814
- })();
1814
+ }();
1815
1815
  function je(e, n, t, r, o) {
1816
1816
  var i = H("methodStore"), a = z("proxyWindowMethods");
1817
1817
  $.isProxyWindow(r) ? a.set(e, {
@@ -1819,9 +1819,9 @@ function tr() {
1819
1819
  name: t,
1820
1820
  domain: o,
1821
1821
  source: r
1822
- }) : (a.del(e), i.getOrSet(r, (function() {
1822
+ }) : (a.del(e), i.getOrSet(r, function() {
1823
1823
  return {};
1824
- }))[e] = {
1824
+ })[e] = {
1825
1825
  domain: o,
1826
1826
  name: t,
1827
1827
  val: n,
@@ -1830,89 +1830,89 @@ function tr() {
1830
1830
  }
1831
1831
  function ft(e, n) {
1832
1832
  var t = H("methodStore"), r = z("proxyWindowMethods");
1833
- return t.getOrSet(e, (function() {
1833
+ return t.getOrSet(e, function() {
1834
1834
  return {};
1835
- }))[n] || r.get(n);
1835
+ })[n] || r.get(n);
1836
1836
  }
1837
1837
  function lt(e, n, t, r, o) {
1838
1838
  a = (i = {
1839
1839
  on: o.on,
1840
1840
  send: o.send
1841
- }).on, l = i.send, z("builtinListeners").getOrSet("functionCalls", (function() {
1841
+ }).on, l = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1842
1842
  return a("postrobot_method", {
1843
1843
  domain: "*"
1844
- }, (function(w) {
1844
+ }, function(w) {
1845
1845
  var m = w.source, p = w.origin, g = w.data, I = g.id, x = g.name, b = ft(m, I);
1846
1846
  if (!b) throw new Error("Could not find method '" + x + "' with id: " + g.id + " in " + F(window));
1847
1847
  var C = b.source, M = b.domain, R = b.val;
1848
- return P.try((function() {
1848
+ return P.try(function() {
1849
1849
  if (!oe(M, p)) throw new Error("Method '" + g.name + "' domain " + JSON.stringify(Oe(b.domain) ? b.domain.source : b.domain) + " does not match origin " + p + " in " + F(window));
1850
1850
  if ($.isProxyWindow(C)) return C.matchWindow(m, {
1851
1851
  send: l
1852
- }).then((function(T) {
1852
+ }).then(function(T) {
1853
1853
  if (!T) throw new Error("Method call '" + g.name + "' failed - proxy window does not match source in " + F(window));
1854
- }));
1855
- })).then((function() {
1854
+ });
1855
+ }).then(function() {
1856
1856
  return R.apply({
1857
1857
  source: m,
1858
1858
  origin: p
1859
1859
  }, g.args);
1860
- }), (function(T) {
1861
- return P.try((function() {
1860
+ }, function(T) {
1861
+ return P.try(function() {
1862
1862
  if (R.onError) return R.onError(T);
1863
- })).then((function() {
1864
- throw T.stack && (T.stack = "Remote call to " + x + "(" + (function(L) {
1865
- return L === void 0 && (L = []), (W = L, [].slice.call(W)).map((function(O) {
1863
+ }).then(function() {
1864
+ throw T.stack && (T.stack = "Remote call to " + x + "(" + function(L) {
1865
+ return L === void 0 && (L = []), (W = L, [].slice.call(W)).map(function(O) {
1866
1866
  return typeof O == "string" ? "'" + O + "'" : O === void 0 ? "undefined" : O === null ? "null" : typeof O == "boolean" ? O.toString() : Array.isArray(O) ? "[ ... ]" : typeof O == "object" ? "{ ... }" : typeof O == "function" ? "() => { ... }" : "<" + typeof O + ">";
1867
- })).join(", ");
1867
+ }).join(", ");
1868
1868
  var W;
1869
- })(g.args) + `) failed
1869
+ }(g.args) + `) failed
1870
1870
 
1871
1871
  ` + T.stack), T;
1872
- }));
1873
- })).then((function(T) {
1872
+ });
1873
+ }).then(function(T) {
1874
1874
  return {
1875
1875
  result: T,
1876
1876
  id: I,
1877
1877
  name: x
1878
1878
  };
1879
- }));
1880
- }));
1881
- }));
1879
+ });
1880
+ });
1881
+ });
1882
1882
  var i, a, l, u = t.__id__ || Y();
1883
1883
  e = $.unwrap(e);
1884
1884
  var s = t.__name__ || t.name || r;
1885
- return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), $.isProxyWindow(e) ? (je(u, t, s, e, n), e.awaitWindow().then((function(w) {
1885
+ return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), $.isProxyWindow(e) ? (je(u, t, s, e, n), e.awaitWindow().then(function(w) {
1886
1886
  je(u, t, s, w, n);
1887
- }))) : je(u, t, s, e, n), ne("cross_domain_function", {
1887
+ })) : je(u, t, s, e, n), ne("cross_domain_function", {
1888
1888
  id: u,
1889
1889
  name: s
1890
1890
  });
1891
1891
  }
1892
1892
  function ht(e, n, t, r) {
1893
1893
  var o, i = r.on, a = r.send;
1894
- return (function(l, u) {
1894
+ return function(l, u) {
1895
1895
  u === void 0 && (u = Zt);
1896
- var s = JSON.stringify(l, (function(w) {
1896
+ var s = JSON.stringify(l, function(w) {
1897
1897
  var m = this[w];
1898
1898
  if (Ne(this)) return m;
1899
1899
  var p = ct(m);
1900
1900
  if (!p) return m;
1901
1901
  var g = u[p] || Yt[p];
1902
1902
  return g ? g(m, w) : m;
1903
- }));
1903
+ });
1904
1904
  return s === void 0 ? "undefined" : s;
1905
- })(t, ((o = {}).promise = function(l, u) {
1906
- return (function(s, w, m, p, g) {
1905
+ }(t, ((o = {}).promise = function(l, u) {
1906
+ return function(s, w, m, p, g) {
1907
1907
  return ne("cross_domain_zalgo_promise", {
1908
- then: lt(s, w, (function(I, x) {
1908
+ then: lt(s, w, function(I, x) {
1909
1909
  return m.then(I, x);
1910
- }), p, {
1910
+ }, p, {
1911
1911
  on: g.on,
1912
1912
  send: g.send
1913
1913
  })
1914
1914
  });
1915
- })(e, n, l, u, {
1915
+ }(e, n, l, u, {
1916
1916
  on: i,
1917
1917
  send: a
1918
1918
  });
@@ -1929,27 +1929,27 @@ function tr() {
1929
1929
  }
1930
1930
  function mt(e, n, t, r) {
1931
1931
  var o, i = r.send;
1932
- return (function(a, l) {
1933
- if (l === void 0 && (l = Xt), a !== "undefined") return JSON.parse(a, (function(u, s) {
1932
+ return function(a, l) {
1933
+ if (l === void 0 && (l = Xt), a !== "undefined") return JSON.parse(a, function(u, s) {
1934
1934
  if (Ne(this)) return s;
1935
1935
  var w, m;
1936
1936
  if (Ne(s) ? (w = s.__type__, m = s.__val__) : (w = ct(s), m = s), !w) return m;
1937
1937
  var p = l[w] || Kt[w];
1938
1938
  return p ? p(m, u) : m;
1939
- }));
1940
- })(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
1941
- return (function(l, u, s) {
1939
+ });
1940
+ }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
1941
+ return function(l, u, s) {
1942
1942
  return new P(s.then);
1943
- })(0, 0, a);
1943
+ }(0, 0, a);
1944
1944
  }, o.cross_domain_function = function(a) {
1945
- return (function(l, u, s, w) {
1945
+ return function(l, u, s, w) {
1946
1946
  var m = s.id, p = s.name, g = w.send, I = function(b) {
1947
1947
  b === void 0 && (b = {});
1948
1948
  function C() {
1949
1949
  var M = arguments;
1950
1950
  return $.toProxyWindow(l, {
1951
1951
  send: g
1952
- }).awaitWindow().then((function(R) {
1952
+ }).awaitWindow().then(function(R) {
1953
1953
  var T = ft(R, m);
1954
1954
  if (T && T.val !== C) return T.val.apply({
1955
1955
  source: window,
@@ -1970,19 +1970,19 @@ function tr() {
1970
1970
  }, {
1971
1971
  domain: u,
1972
1972
  fireAndForget: !1
1973
- }).then((function(W) {
1973
+ }).then(function(W) {
1974
1974
  return W.data.result;
1975
- }));
1976
- })).catch((function(R) {
1975
+ });
1976
+ }).catch(function(R) {
1977
1977
  throw R;
1978
- }));
1978
+ });
1979
1979
  }
1980
1980
  return C.__name__ = p, C.__origin__ = u, C.__source__ = l, C.__id__ = m, C.origin = u, C;
1981
1981
  }, x = I();
1982
1982
  return x.fireAndForget = I({
1983
1983
  fireAndForget: !0
1984
1984
  }), x;
1985
- })(e, n, a, {
1985
+ }(e, n, a, {
1986
1986
  send: i
1987
1987
  });
1988
1988
  }, o.cross_domain_window = function(a) {
@@ -1997,11 +1997,11 @@ function tr() {
1997
1997
  };
1998
1998
  function ze(e, n, t, r) {
1999
1999
  var o = r.on, i = r.send;
2000
- return P.try((function() {
2001
- var a = H().getOrSet(e, (function() {
2000
+ return P.try(function() {
2001
+ var a = H().getOrSet(e, function() {
2002
2002
  return {};
2003
- }));
2004
- return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || P.flush().then((function() {
2003
+ });
2004
+ return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || P.flush().then(function() {
2005
2005
  if (G(e)) throw new Error("Window is closed");
2006
2006
  var l = ht(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2007
2007
  on: o,
@@ -2018,15 +2018,15 @@ function tr() {
2018
2018
  }
2019
2019
  if (w.length === s.length) throw new Error(`All post-robot messaging strategies failed:
2020
2020
 
2021
- ` + w.map((function(g, I) {
2021
+ ` + w.map(function(g, I) {
2022
2022
  return I + ". " + de(g);
2023
- })).join(`
2023
+ }).join(`
2024
2024
 
2025
2025
  `));
2026
- })), a.flush.then((function() {
2026
+ }), a.flush.then(function() {
2027
2027
  delete a.flush;
2028
- }));
2029
- })).then(te);
2028
+ });
2029
+ }).then(te);
2030
2030
  }
2031
2031
  function pt(e) {
2032
2032
  return z("responseListeners").get(e);
@@ -2067,7 +2067,7 @@ function tr() {
2067
2067
  domain: n
2068
2068
  }), l = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2069
2069
  function u(s, w, m) {
2070
- return P.flush().then((function() {
2070
+ return P.flush().then(function() {
2071
2071
  if (!t.fireAndForget && !G(e)) try {
2072
2072
  return ze(e, n, {
2073
2073
  id: Y(),
@@ -2087,9 +2087,9 @@ function tr() {
2087
2087
 
2088
2088
  ` + de(p));
2089
2089
  }
2090
- }));
2090
+ });
2091
2091
  }
2092
- return P.all([P.flush().then((function() {
2092
+ return P.all([P.flush().then(function() {
2093
2093
  if (!t.fireAndForget && !G(e)) try {
2094
2094
  return ze(e, n, {
2095
2095
  id: Y(),
@@ -2106,21 +2106,21 @@ function tr() {
2106
2106
 
2107
2107
  ` + de(s));
2108
2108
  }
2109
- })), P.try((function() {
2109
+ }), P.try(function() {
2110
2110
  if (!a) throw new Error("No handler found for post message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2111
2111
  return a.handler({
2112
2112
  source: e,
2113
2113
  origin: n,
2114
2114
  data: t.data
2115
2115
  });
2116
- })).then((function(s) {
2116
+ }).then(function(s) {
2117
2117
  return u("success", s);
2118
- }), (function(s) {
2118
+ }, function(s) {
2119
2119
  return u("error", null, s);
2120
- }))]).then(te).catch((function(s) {
2120
+ })]).then(te).catch(function(s) {
2121
2121
  if (a && a.handleError) return a.handleError(s);
2122
2122
  throw s;
2123
- }));
2123
+ });
2124
2124
  }
2125
2125
  function en(e, n, t) {
2126
2126
  if (!wt(t.hash)) {
@@ -2156,7 +2156,7 @@ function tr() {
2156
2156
  } catch (w) {
2157
2157
  return;
2158
2158
  }
2159
- var i = e.source, a = e.origin, l = (function(w, m, p, g) {
2159
+ var i = e.source, a = e.origin, l = function(w, m, p, g) {
2160
2160
  var I = g.on, x = g.send, b;
2161
2161
  try {
2162
2162
  b = mt(m, p, w, {
@@ -2170,7 +2170,7 @@ function tr() {
2170
2170
  var C = b.__post_robot_10_0_46__;
2171
2171
  if (Array.isArray(C)) return C;
2172
2172
  }
2173
- })(e.data, i, a, {
2173
+ }(e.data, i, a, {
2174
2174
  on: t,
2175
2175
  send: r
2176
2176
  });
@@ -2186,9 +2186,9 @@ function tr() {
2186
2186
  send: r
2187
2187
  }) : s.type === "postrobot_message_response" ? tn(i, a, s) : s.type === "postrobot_message_ack" && en(i, a, s);
2188
2188
  } catch (w) {
2189
- setTimeout((function() {
2189
+ setTimeout(function() {
2190
2190
  throw w;
2191
- }), 0);
2191
+ }, 0);
2192
2192
  }
2193
2193
  }
2194
2194
  }
@@ -2196,22 +2196,22 @@ function tr() {
2196
2196
  function re(e, n, t) {
2197
2197
  if (!e) throw new Error("Expected name");
2198
2198
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t) throw new Error("Expected handler");
2199
- var r = (function o(i, a) {
2199
+ var r = function o(i, a) {
2200
2200
  var l = i.name, u = i.win, s = i.domain, w = H("requestListeners");
2201
2201
  if (!l || typeof l != "string") throw new Error("Name required to add request listener");
2202
2202
  if (u && u !== "*" && $.isProxyWindow(u)) {
2203
- var m = u.awaitWindow().then((function(j) {
2203
+ var m = u.awaitWindow().then(function(j) {
2204
2204
  return o({
2205
2205
  name: l,
2206
2206
  win: j,
2207
2207
  domain: s
2208
2208
  }, a);
2209
- }));
2209
+ });
2210
2210
  return {
2211
2211
  cancel: function() {
2212
- m.then((function(j) {
2212
+ m.then(function(j) {
2213
2213
  return j.cancel();
2214
- }), te);
2214
+ }, te);
2215
2215
  }
2216
2216
  };
2217
2217
  }
@@ -2248,14 +2248,14 @@ function tr() {
2248
2248
  p && p !== "*" || (p = Se());
2249
2249
  var T = (s = s || "*").toString();
2250
2250
  if (R) throw p && s ? new Error("Request listener already exists for " + l + " on domain " + s.toString() + " for " + (p === Se() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + l + " for " + (p === Se() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + l + " on domain " + s.toString()) : new Error("Request listener already exists for " + l);
2251
- var L = w.getOrSet(p, (function() {
2251
+ var L = w.getOrSet(p, function() {
2252
2252
  return {};
2253
- })), W = fe(L, l, (function() {
2253
+ }), W = fe(L, l, function() {
2254
2254
  return {};
2255
- })), O, V;
2256
- return Oe(s) ? (O = fe(W, "__domain_regex__", (function() {
2255
+ }), O, V;
2256
+ return Oe(s) ? (O = fe(W, "__domain_regex__", function() {
2257
2257
  return [];
2258
- }))).push(V = {
2258
+ })).push(V = {
2259
2259
  regex: s,
2260
2260
  listener: a
2261
2261
  }) : W[T] = a, {
@@ -2263,7 +2263,7 @@ function tr() {
2263
2263
  delete W[T], V && (O.splice(O.indexOf(V, 1)), O.length || delete W.__domain_regex__), Object.keys(W).length || delete L[l], p && !Object.keys(L).length && w.del(p);
2264
2264
  }
2265
2265
  };
2266
- })({
2266
+ }({
2267
2267
  name: e,
2268
2268
  win: n.window,
2269
2269
  domain: n.domain || "*"
@@ -2284,24 +2284,24 @@ function tr() {
2284
2284
  var r = new P(), o;
2285
2285
  return n.errorHandler = function(i) {
2286
2286
  o.cancel(), r.reject(i);
2287
- }, o = re(e, n, (function(i) {
2287
+ }, o = re(e, n, function(i) {
2288
2288
  if (o.cancel(), r.resolve(i), t) return t(i);
2289
- })), r.cancel = o.cancel, r;
2289
+ }), r.cancel = o.cancel, r;
2290
2290
  }
2291
2291
  var K = function e(n, t, r, o) {
2292
2292
  var i = (o = o || {}).domain || "*", a = o.timeout || -1, l = o.timeout || 5e3, u = o.fireAndForget || !1;
2293
2293
  return $.toProxyWindow(n, {
2294
2294
  send: e
2295
- }).awaitWindow().then((function(s) {
2296
- return P.try((function() {
2297
- if ((function(w, m, p) {
2295
+ }).awaitWindow().then(function(s) {
2296
+ return P.try(function() {
2297
+ if (function(w, m, p) {
2298
2298
  if (!w) throw new Error("Expected name");
2299
2299
  if (typeof p != "string" && !Array.isArray(p) && !Oe(p)) throw new TypeError("Can not send " + w + ". Expected domain " + JSON.stringify(p) + " to be a string, array, or regex");
2300
2300
  if (G(m)) throw new Error("Can not send " + w + ". Target window is closed");
2301
- })(t, s, i), (function(w, m) {
2301
+ }(t, s, i), function(w, m) {
2302
2302
  var p = Ge(m);
2303
2303
  if (p) return p === w;
2304
- if (m === w || (function(x) {
2304
+ if (m === w || function(x) {
2305
2305
  x === void 0 && (x = window);
2306
2306
  try {
2307
2307
  if (x.top) return x.top;
@@ -2316,14 +2316,14 @@ function tr() {
2316
2316
  if (Be(x, window) && window.top) return window.top;
2317
2317
  } catch (R) {
2318
2318
  }
2319
- for (var b = 0, C = (function R(T) {
2319
+ for (var b = 0, C = function R(T) {
2320
2320
  for (var L = [], W = 0, O = $e(T); W < O.length; W++) {
2321
2321
  var V = O[W];
2322
2322
  L.push(V);
2323
2323
  for (var j = 0, he = R(V); j < he.length; j++) L.push(he[j]);
2324
2324
  }
2325
2325
  return L;
2326
- })(x); b < C.length; b++) {
2326
+ }(x); b < C.length; b++) {
2327
2327
  var M = C[b];
2328
2328
  try {
2329
2329
  if (M.top) return M.top;
@@ -2331,37 +2331,37 @@ function tr() {
2331
2331
  }
2332
2332
  if (k(M) === M) return M;
2333
2333
  }
2334
- })(m) === m) return !1;
2334
+ }(m) === m) return !1;
2335
2335
  for (var g = 0, I = $e(w); g < I.length; g++) if (I[g] === m) return !0;
2336
2336
  return !1;
2337
- })(window, s)) return (function(w, m, p) {
2337
+ }(window, s)) return function(w, m, p) {
2338
2338
  m === void 0 && (m = 5e3), p === void 0 && (p = "Window");
2339
- var g = (function(I) {
2340
- return H("helloPromises").getOrSet(I, (function() {
2339
+ var g = function(I) {
2340
+ return H("helloPromises").getOrSet(I, function() {
2341
2341
  return new P();
2342
- }));
2343
- })(w);
2342
+ });
2343
+ }(w);
2344
2344
  return m !== -1 && (g = g.timeout(m, new Error(p + " did not load after " + m + "ms"))), g;
2345
- })(s, l);
2346
- })).then((function(w) {
2347
- return (function(m, p, g, I) {
2345
+ }(s, l);
2346
+ }).then(function(w) {
2347
+ return function(m, p, g, I) {
2348
2348
  var x = I.send;
2349
- return P.try((function() {
2350
- return typeof p == "string" ? p : P.try((function() {
2349
+ return P.try(function() {
2350
+ return typeof p == "string" ? p : P.try(function() {
2351
2351
  return g || Ae(m, {
2352
2352
  send: x
2353
- }).then((function(b) {
2353
+ }).then(function(b) {
2354
2354
  return b.domain;
2355
- }));
2356
- })).then((function(b) {
2355
+ });
2356
+ }).then(function(b) {
2357
2357
  if (!oe(p, p)) throw new Error("Domain " + et(p) + " does not match " + et(p));
2358
2358
  return b;
2359
- }));
2360
- }));
2361
- })(s, i, (w === void 0 ? {} : w).domain, {
2359
+ });
2360
+ });
2361
+ }(s, i, (w === void 0 ? {} : w).domain, {
2362
2362
  send: e
2363
2363
  });
2364
- })).then((function(w) {
2364
+ }).then(function(w) {
2365
2365
  var m = w, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, g = new P(), I = t + "_" + Y();
2366
2366
  if (!u) {
2367
2367
  var x = {
@@ -2373,35 +2373,35 @@ function tr() {
2373
2373
  (function(W, O) {
2374
2374
  z("responseListeners").set(W, O);
2375
2375
  })(I, x);
2376
- var b = H("requestPromises").getOrSet(s, (function() {
2376
+ var b = H("requestPromises").getOrSet(s, function() {
2377
2377
  return [];
2378
- }));
2379
- b.push(g), g.catch((function() {
2378
+ });
2379
+ b.push(g), g.catch(function() {
2380
2380
  (function(W) {
2381
2381
  z("erroredResponseListeners").set(W, !0);
2382
2382
  })(I), vt(I);
2383
- }));
2384
- var C = (function(W) {
2383
+ });
2384
+ var C = function(W) {
2385
2385
  return H("knownWindows").get(W, !1);
2386
- })(s) ? 1e4 : 2e3, M = a, R = C, T = M, L = (function(W, O) {
2386
+ }(s) ? 1e4 : 2e3, M = a, R = C, T = M, L = function(W, O) {
2387
2387
  var V;
2388
- return (function j() {
2389
- V = setTimeout((function() {
2388
+ return function j() {
2389
+ V = setTimeout(function() {
2390
2390
  (function() {
2391
2391
  if (G(s)) return g.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2392
2392
  if (x.cancelled) return g.reject(new Error("Response listener was cancelled for " + t));
2393
2393
  R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && g.reject(new Error("No response for postMessage " + p + " in " + F() + " in " + M + "ms")) : g.reject(new Error("No ack for postMessage " + p + " in " + F() + " in " + C + "ms"));
2394
2394
  })(), j();
2395
- }), 500);
2396
- })(), {
2395
+ }, 500);
2396
+ }(), {
2397
2397
  cancel: function() {
2398
2398
  clearTimeout(V);
2399
2399
  }
2400
2400
  };
2401
- })();
2402
- g.finally((function() {
2401
+ }();
2402
+ g.finally(function() {
2403
2403
  L.cancel(), b.splice(b.indexOf(g, 1));
2404
- })).catch(te);
2404
+ }).catch(te);
2405
2405
  }
2406
2406
  return ze(s, m, {
2407
2407
  id: Y(),
@@ -2414,15 +2414,15 @@ function tr() {
2414
2414
  }, {
2415
2415
  on: re,
2416
2416
  send: e
2417
- }).then((function() {
2417
+ }).then(function() {
2418
2418
  return u ? g.resolve() : g;
2419
- }), (function(W) {
2419
+ }, function(W) {
2420
2420
  throw new Error("Send request message failed for " + p + " in " + F() + `
2421
2421
 
2422
2422
  ` + de(W));
2423
- }));
2424
- }));
2425
- }));
2423
+ });
2424
+ });
2425
+ });
2426
2426
  };
2427
2427
  function rn(e, n, t) {
2428
2428
  return ht(e, n, t, {
@@ -2455,19 +2455,19 @@ function tr() {
2455
2455
  on: n,
2456
2456
  send: t
2457
2457
  });
2458
- }, (function(o) {
2458
+ }, function(o) {
2459
2459
  var i = o.on, a = o.send;
2460
- z().getOrSet("postMessageListener", (function() {
2461
- return (function(l, u, s) {
2460
+ z().getOrSet("postMessageListener", function() {
2461
+ return function(l, u, s) {
2462
2462
  return l.addEventListener("message", s), {
2463
2463
  cancel: function() {
2464
2464
  l.removeEventListener("message", s);
2465
2465
  }
2466
2466
  };
2467
- })(window, 0, (function(l) {
2467
+ }(window, 0, function(l) {
2468
2468
  (function(u, s) {
2469
2469
  var w = s.on, m = s.send;
2470
- P.try((function() {
2470
+ P.try(function() {
2471
2471
  var p = u.source || u.sourceElement, g = u.origin || u.originalEvent && u.originalEvent.origin, I = u.data;
2472
2472
  if (g === "null" && (g = "file://"), p) {
2473
2473
  if (!g) throw new Error("Post message did not have origin domain");
@@ -2480,34 +2480,34 @@ function tr() {
2480
2480
  send: m
2481
2481
  });
2482
2482
  }
2483
- }));
2483
+ });
2484
2484
  })(l, {
2485
2485
  on: i,
2486
2486
  send: a
2487
2487
  });
2488
- }));
2489
- }));
2490
- })({
2488
+ });
2489
+ });
2490
+ }({
2491
2491
  on: re,
2492
2492
  send: K
2493
- }), (function(o) {
2493
+ }), function(o) {
2494
2494
  var i = o.on, a = o.send;
2495
- z("builtinListeners").getOrSet("helloListener", (function() {
2495
+ z("builtinListeners").getOrSet("helloListener", function() {
2496
2496
  var l = i("postrobot_hello", {
2497
2497
  domain: "*"
2498
- }, (function(s) {
2498
+ }, function(s) {
2499
2499
  return at(s.source, {
2500
2500
  domain: s.origin
2501
2501
  }), {
2502
2502
  instanceID: it()
2503
2503
  };
2504
- })), u = Ge();
2504
+ }), u = Ge();
2505
2505
  return u && Ae(u, {
2506
2506
  send: a
2507
- }).catch((function(s) {
2508
- })), l;
2509
- }));
2510
- })({
2507
+ }).catch(function(s) {
2508
+ }), l;
2509
+ });
2510
+ }({
2511
2511
  on: re,
2512
2512
  send: K
2513
2513
  }));
@@ -2529,14 +2529,14 @@ function tr() {
2529
2529
  }
2530
2530
  Et();
2531
2531
  }]);
2532
- }));
2533
- })(xe)), xe.exports;
2532
+ });
2533
+ }(xe)), xe.exports;
2534
2534
  }
2535
2535
  var jt;
2536
2536
  function nr() {
2537
- return jt || (jt = 1, (function(c) {
2537
+ return jt || (jt = 1, function(c) {
2538
2538
  c.exports = tr(), c.exports.default = c.exports;
2539
- })(Ue)), Ue.exports;
2539
+ }(Ue)), Ue.exports;
2540
2540
  }
2541
2541
  var Ft = nr();
2542
2542
  const rr = /* @__PURE__ */ Qn(Ft), qe = /* @__PURE__ */ gn({