@soyio/soyio-widget 2.13.2 → 2.13.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
@@ -1,115 +1,157 @@
1
- var on = Object.defineProperty;
2
- var wt = Object.getOwnPropertySymbols, an = Object.getPrototypeOf, sn = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable, cn = Reflect.get;
3
- var dn = (c, f, h) => f in c ? on(c, f, { enumerable: !0, configurable: !0, writable: !0, value: h }) : c[f] = h;
4
- var gt = (c, f) => {
1
+ var sn = Object.defineProperty;
2
+ var gt = Object.getOwnPropertySymbols, un = Object.getPrototypeOf, cn = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, fn = Reflect.get;
3
+ var ln = (d, c, h) => c in d ? sn(d, c, { enumerable: !0, configurable: !0, writable: !0, value: h }) : d[c] = h;
4
+ var yt = (d, c) => {
5
5
  var h = {};
6
- for (var l in c)
7
- sn.call(c, l) && f.indexOf(l) < 0 && (h[l] = c[l]);
8
- if (c != null && wt)
9
- for (var l of wt(c))
10
- f.indexOf(l) < 0 && un.call(c, l) && (h[l] = c[l]);
6
+ for (var f in d)
7
+ cn.call(d, f) && c.indexOf(f) < 0 && (h[f] = d[f]);
8
+ if (d != null && gt)
9
+ for (var f of gt(d))
10
+ c.indexOf(f) < 0 && dn.call(d, f) && (h[f] = d[f]);
11
11
  return h;
12
12
  };
13
- var A = (c, f, h) => (dn(c, typeof f != "symbol" ? f + "" : f, h), h), fn = (c, f, h) => {
14
- if (!f.has(c))
13
+ var N = (d, c, h) => (ln(d, typeof c != "symbol" ? c + "" : c, h), h), hn = (d, c, h) => {
14
+ if (!c.has(d))
15
15
  throw TypeError("Cannot " + h);
16
16
  };
17
- var yt = (c, f, h) => {
18
- if (f.has(c))
17
+ var Et = (d, c, h) => {
18
+ if (c.has(d))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
- f instanceof WeakSet ? f.add(c) : f.set(c, h);
20
+ c instanceof WeakSet ? c.add(d) : c.set(d, h);
21
21
  };
22
- var Et = (c, f, h) => (fn(c, f, "access private method"), h), xt = (c, f, h) => cn(an(c), h, f);
23
- var H = (c, f, h) => new Promise((l, g) => {
24
- var y = (D) => {
22
+ var xt = (d, c, h) => (hn(d, c, "access private method"), h), St = (d, c, h) => fn(un(d), h, c);
23
+ var _ = (d, c, h) => new Promise((f, v) => {
24
+ var y = (A) => {
25
25
  try {
26
- W(h.next(D));
27
- } catch (M) {
28
- g(M);
26
+ I(h.next(A));
27
+ } catch (D) {
28
+ v(D);
29
29
  }
30
- }, E = (D) => {
30
+ }, E = (A) => {
31
31
  try {
32
- W(h.throw(D));
33
- } catch (M) {
34
- g(M);
32
+ I(h.throw(A));
33
+ } catch (D) {
34
+ v(D);
35
35
  }
36
- }, W = (D) => D.done ? l(D.value) : Promise.resolve(D.value).then(y, E);
37
- W((h = h.apply(c, f)).next());
36
+ }, I = (A) => A.done ? f(A.value) : Promise.resolve(A.value).then(y, E);
37
+ I((h = h.apply(d, c)).next());
38
38
  });
39
- function ln(c, f) {
40
- for (var h = 0; h < f.length; h++) {
41
- const l = f[h];
42
- if (typeof l != "string" && !Array.isArray(l)) {
43
- for (const g in l)
44
- if (g !== "default" && !(g in c)) {
45
- const y = Object.getOwnPropertyDescriptor(l, g);
46
- y && Object.defineProperty(c, g, y.get ? y : {
39
+ function mn(d, c) {
40
+ for (var h = 0; h < c.length; h++) {
41
+ const f = c[h];
42
+ if (typeof f != "string" && !Array.isArray(f)) {
43
+ for (const v in f)
44
+ if (v !== "default" && !(v in d)) {
45
+ const y = Object.getOwnPropertyDescriptor(f, v);
46
+ y && Object.defineProperty(d, v, y.get ? y : {
47
47
  enumerable: !0,
48
- get: () => l[g]
48
+ get: () => f[v]
49
49
  });
50
50
  }
51
51
  }
52
52
  }
53
- return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
53
+ return Object.freeze(Object.defineProperty(d, Symbol.toStringTag, { value: "Module" }));
54
54
  }
55
- const Se = !!(typeof window != "undefined" && window.document && window.document.createElement);
56
- class hn {
55
+ const Se = !!(typeof window != "undefined" && window.document && window.document.createElement), bt = 200;
56
+ class ke {
57
57
  constructor() {
58
- A(this, "tooltipElement", null);
59
- A(this, "tooltipContent", null);
60
- A(this, "tooltipClass", "soyio-tooltip");
61
- A(this, "hideTimeout", null);
62
- Se && (this.createTooltipElement(), this.setupGlobalListeners());
58
+ N(this, "tooltipElement", null);
59
+ N(this, "tooltipContent", null);
60
+ N(this, "tooltipClass", "soyio-tooltip");
61
+ N(this, "hideTimeout", null);
62
+ Se && this.createTooltipElement();
63
63
  }
64
64
  createTooltipElement() {
65
- const f = document.querySelector(`.${this.tooltipClass}`);
66
- this.tooltipElement = f || document.createElement("div"), this.tooltipElement.className = this.tooltipClass, this.tooltipElement.style.cssText = `
65
+ const c = document.querySelector(`.${this.tooltipClass}`);
66
+ if (c) {
67
+ this.tooltipElement = c, this.tooltipContent = this.tooltipElement.querySelector(".soyio-tooltip-content");
68
+ return;
69
+ }
70
+ this.tooltipElement = document.createElement("div"), this.tooltipElement.className = this.tooltipClass, this.tooltipElement.style.cssText = `
67
71
  position: fixed;
68
72
  z-index: 99999;
69
- background: white;
70
- padding: 8px 12px;
71
- border-radius: 4px;
72
- box-shadow: 0 2px 4px rgba(0,0,0,0.2);
73
+ background: rgba(30, 30, 30, 0.9);
74
+ color: #f5f5f5;
75
+ padding: 10px 16px;
76
+ border-radius: 8px;
77
+ box-shadow: 0 5px 15px rgba(0,0,0,0.3);
73
78
  font-size: 14px;
74
79
  font-family: Helvetica neue, Helvetica, Arial, sans-serif;
75
80
  max-width: 300px;
76
81
  word-wrap: break-word;
77
82
  pointer-events: none;
78
83
  opacity: 0;
79
- transition: opacity 0.2s ease-in-out;
80
- transform: translateX(-50%) translateY(-100%);
81
- margin-top: -8px;
82
- `;
83
- const h = this.tooltipElement.children[0];
84
- this.tooltipContent = h || document.createElement("div"), this.tooltipContent.style.cssText = "text-align: left;", this.tooltipElement.appendChild(this.tooltipContent), document.body.appendChild(this.tooltipElement);
84
+ transition: opacity ${bt}ms ease, transform ${bt}ms ease;
85
+ backdrop-filter: blur(5px);
86
+ -webkit-backdrop-filter: blur(5px);
87
+ transform: scale(0.95);
88
+ `, this.tooltipContent = document.createElement("div"), this.tooltipContent.className = "soyio-tooltip-content", this.tooltipElement.appendChild(this.tooltipContent), document.body.appendChild(this.tooltipElement);
89
+ }
90
+ show(c, h, f) {
91
+ if (!this.tooltipElement || !this.tooltipContent)
92
+ return;
93
+ this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = c, this.tooltipElement.style.opacity = "0", this.tooltipElement.style.transform = "scale(0.95)";
94
+ const v = this.calculateOptimalPlacement(h, f);
95
+ this.applyPlacement(v), requestAnimationFrame(() => {
96
+ this.tooltipElement && (this.tooltipElement.style.opacity = "1", this.tooltipElement.style.transform = "scale(1)");
97
+ });
98
+ }
99
+ calculateOptimalPlacement(c, h) {
100
+ const f = this.tooltipElement.offsetWidth, v = this.tooltipElement.offsetHeight, { innerWidth: y, innerHeight: E } = window, I = 4, A = {
101
+ top: {
102
+ top: h - v - I,
103
+ left: c - f / 2,
104
+ placement: "top"
105
+ },
106
+ bottom: {
107
+ top: h + I,
108
+ left: c - f / 2,
109
+ placement: "bottom"
110
+ },
111
+ right: {
112
+ top: h - v / 2,
113
+ left: c + I,
114
+ placement: "right"
115
+ },
116
+ left: {
117
+ top: h - v / 2,
118
+ left: c - f - I,
119
+ placement: "left"
120
+ }
121
+ };
122
+ for (const [, k] of Object.entries(A))
123
+ if (ke.fitsInViewport(k, f, v, y, E))
124
+ return k;
125
+ const D = A.top;
126
+ return D.left = Math.max(I, Math.min(D.left, y - f - I)), D.top = Math.max(I, Math.min(D.top, E - v - I)), D;
85
127
  }
86
- setupGlobalListeners() {
87
- window.addEventListener("scroll", () => this.hide(), !0), window.addEventListener("resize", () => this.hide()), window.addEventListener("orientationchange", () => this.hide());
128
+ static fitsInViewport(c, h, f, v, y) {
129
+ return c.top >= 0 && c.left >= 0 && c.top + f <= y && c.left + h <= v;
88
130
  }
89
- show(f, h, l) {
90
- !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = f, this.tooltipElement.style.left = `${h}px`, this.tooltipElement.style.top = `${l}px`, this.tooltipElement.style.opacity = "1");
131
+ applyPlacement(c) {
132
+ this.tooltipElement && (this.tooltipElement.style.left = `${c.left}px`, this.tooltipElement.style.top = `${c.top}px`);
91
133
  }
92
134
  hide() {
93
- this.tooltipElement && (this.tooltipElement.style.opacity = "0");
135
+ this.tooltipElement && (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipElement.style.opacity = "0", this.tooltipElement.style.transform = "scale(0.95)");
94
136
  }
95
137
  destroy() {
96
- var f;
97
- (f = this.tooltipElement) == null || f.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
138
+ var c;
139
+ (c = this.tooltipElement) == null || c.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
98
140
  }
99
141
  }
100
- function mn(c, f, h) {
101
- return H(this, null, function* () {
102
- if (!c.contentWindow)
142
+ function pn(d, c, h) {
143
+ return _(this, null, function* () {
144
+ if (!d.contentWindow)
103
145
  throw new Error("Invalid iframe: contentWindow is null");
104
- const l = yield Promise.resolve().then(() => Ue);
146
+ const f = yield Promise.resolve().then(() => Fe);
105
147
  try {
106
- yield l.send(c.contentWindow, "SET_APPEARANCE", { appearance: f, identifier: h });
107
- } catch (g) {
108
- console.error("Failed to send appearance config:", g);
148
+ yield f.send(d.contentWindow, "SET_APPEARANCE", { appearance: c, identifier: h });
149
+ } catch (v) {
150
+ console.error("Failed to send appearance config:", v);
109
151
  }
110
152
  });
111
153
  }
112
- const pn = "IFRAME_READY", vn = "IFRAME_HEIGHT_CHANGE", wn = "TOOLTIP_STATE_CHANGE", gn = "INFO_EVENT", yn = "CONSENT_STATE_CHANGE", k = {
154
+ const vn = "IFRAME_READY", wn = "IFRAME_HEIGHT_CHANGE", gn = "TOOLTIP_STATE_CHANGE", yn = "INFO_EVENT", En = "CONSENT_STATE_CHANGE", U = {
113
155
  // BASE
114
156
  onHeightChange: {},
115
157
  onIframeReady: {},
@@ -118,52 +160,52 @@ const pn = "IFRAME_READY", vn = "IFRAME_HEIGHT_CHANGE", wn = "TOOLTIP_STATE_CHAN
118
160
  // CONSENT
119
161
  onStateChange: {}
120
162
  };
121
- let St, bt, It, Wt, Pt;
122
- function En() {
123
- return H(this, null, function* () {
124
- const c = yield Promise.resolve().then(() => Ue);
125
- St || bt || It || Wt || Pt || (St = c.on(vn, (f) => H(this, null, function* () {
126
- const h = f.data, l = k.onHeightChange[h.identifier];
127
- return l && l(h.height), Promise.resolve();
128
- })), bt = c.on(pn, (f) => H(this, null, function* () {
129
- const h = f.data, l = k.onIframeReady[h.identifier];
130
- return l && l(), Promise.resolve();
131
- })), It = c.on(wn, (f) => H(this, null, function* () {
132
- const h = f.data, l = k.onTooltipChange[h.identifier];
133
- return l && l(h), Promise.resolve();
134
- })), Wt = c.on(yn, (f) => H(this, null, function* () {
135
- const h = f.data, l = k.onStateChange[h.identifier];
136
- return l && l(h), Promise.resolve();
137
- })), Pt = c.on(gn, (h) => H(this, [h], function* ({ data: f }) {
138
- const E = f, { identifier: l } = E, g = gt(E, ["identifier"]), y = k.onInfo[l];
139
- return y && y(g), Promise.resolve();
163
+ let It, Wt, Pt, Ct, Tt;
164
+ function xn() {
165
+ return _(this, null, function* () {
166
+ const d = yield Promise.resolve().then(() => Fe);
167
+ It || Wt || Pt || Ct || Tt || (It = d.on(wn, (c) => _(this, null, function* () {
168
+ const h = c.data, f = U.onHeightChange[h.identifier];
169
+ return f && f(h.height), Promise.resolve();
170
+ })), Wt = d.on(vn, (c) => _(this, null, function* () {
171
+ const h = c.data, f = U.onIframeReady[h.identifier];
172
+ return f && f(), Promise.resolve();
173
+ })), Pt = d.on(gn, (c) => _(this, null, function* () {
174
+ const h = c.data, f = U.onTooltipChange[h.identifier];
175
+ return f && f(h), Promise.resolve();
176
+ })), Ct = d.on(En, (c) => _(this, null, function* () {
177
+ const h = c.data, f = U.onStateChange[h.identifier];
178
+ return f && f(h), Promise.resolve();
179
+ })), Tt = d.on(yn, (h) => _(this, [h], function* ({ data: c }) {
180
+ const E = c, { identifier: f } = E, v = yt(E, ["identifier"]), y = U.onInfo[f];
181
+ return y && y(v), Promise.resolve();
140
182
  })));
141
183
  });
142
184
  }
143
- function Ct(c, f) {
185
+ function Ot(d, c) {
144
186
  const {
145
187
  onHeightChange: h,
146
- onIframeReady: l,
147
- onTooltipChange: g,
188
+ onIframeReady: f,
189
+ onTooltipChange: v,
148
190
  onStateChange: y,
149
191
  onInfo: E
150
- } = f;
151
- h && (k.onHeightChange[c] = h), l && (k.onIframeReady[c] = l), g && (k.onTooltipChange[c] = g), y && (k.onStateChange[c] = y), E && (k.onInfo[c] = E);
192
+ } = c;
193
+ h && (U.onHeightChange[d] = h), f && (U.onIframeReady[d] = f), v && (U.onTooltipChange[d] = v), y && (U.onStateChange[d] = y), E && (U.onInfo[d] = E);
152
194
  }
153
- function xn(c) {
154
- delete k.onHeightChange[c], delete k.onIframeReady[c], delete k.onTooltipChange[c], delete k.onStateChange[c], delete k.onInfo[c];
195
+ function Sn(d) {
196
+ delete U.onHeightChange[d], delete U.onIframeReady[d], delete U.onTooltipChange[d], delete U.onStateChange[d], delete U.onInfo[d];
155
197
  }
156
- function Sn(c) {
157
- const f = document.getElementById(c);
158
- f && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), f.remove());
198
+ function bn(d) {
199
+ const c = document.getElementById(d);
200
+ c && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), c.remove());
159
201
  }
160
- function bn(c) {
161
- const f = document.querySelector(c);
162
- if (!f)
163
- throw new Error(`Iframe div container with id '${c}' not found`);
164
- if (f.tagName.toLowerCase() !== "div")
165
- throw new Error(`Iframe container with id '${c}' must be a <div> element`);
166
- const h = f;
202
+ function In(d) {
203
+ const c = document.querySelector(d);
204
+ if (!c)
205
+ throw new Error(`Iframe div container with id '${d}' not found`);
206
+ if (c.tagName.toLowerCase() !== "div")
207
+ throw new Error(`Iframe container with id '${d}' must be a <div> element`);
208
+ const h = c;
167
209
  return h.style.position = "relative", h.style.cssText += `
168
210
  padding: 0 !important;
169
211
  margin: 0 !important;
@@ -175,9 +217,9 @@ function bn(c) {
175
217
  opacity: 1 !important;
176
218
  `, h;
177
219
  }
178
- function In(c, f, h) {
179
- const l = document.createElement("iframe");
180
- return l.id = f, l.src = c, l.style.cssText += `
220
+ function Wn(d, c, h) {
221
+ const f = document.createElement("iframe");
222
+ return f.id = c, f.src = d, f.style.cssText += `
181
223
  width: 100% !important;
182
224
  min-width: ${h.minWidth} !important;
183
225
  border: none !important;
@@ -185,12 +227,12 @@ function In(c, f, h) {
185
227
  opacity: 1;
186
228
  transition: height 0.35s,
187
229
  opacity 0.4s 0.1s;
188
- `, l;
230
+ `, f;
189
231
  }
190
- function Wn() {
232
+ function Pn() {
191
233
  return Math.random().toString(36).substring(2, 10);
192
234
  }
193
- const Tt = "https://app.soyio.id", Rt = "https://sandbox.soyio.id", Pn = "https://privacy.soyio.id", Cn = "https://privacy-sandbox.soyio.id", Tn = [
235
+ const Rt = "https://app.soyio.id", At = "https://sandbox.soyio.id", Cn = "https://privacy.soyio.id", Tn = "https://privacy-sandbox.soyio.id", On = [
194
236
  "DISCLOSURE_REQUEST_SUCCESSFUL",
195
237
  "IDENTITY_REGISTERED",
196
238
  "IDENTITY_SIGNATURE",
@@ -198,27 +240,27 @@ const Tt = "https://app.soyio.id", Rt = "https://sandbox.soyio.id", Pn = "https:
198
240
  "DENIED_CAMERA_PERMISSION",
199
241
  "REJECTED_SIGNATURE",
200
242
  "CLOSE_POPUP"
201
- ], Rn = "WIDGET_CLOSED", On = 420, An = 720, Nn = 500, Dn = {
243
+ ], Rn = "WIDGET_CLOSED", An = 420, Nn = 720, Dn = 500, Mn = {
202
244
  minWidth: "375px"
203
- }, Ln = {
245
+ }, jn = {
204
246
  minWidth: "0px"
205
247
  }, zn = {
206
248
  minWidth: "375px"
207
249
  };
208
250
  class Ie {
209
- constructor(f) {
210
- A(this, "iframe", null);
211
- A(this, "skeleton", null);
212
- A(this, "options");
213
- A(this, "appearance");
214
- A(this, "tooltipManager");
215
- A(this, "defaultIframeCSSConfig", Dn);
216
- A(this, "Skeleton", null);
217
- A(this, "defaultUniqueId");
218
- this.options = f, this.appearance = f.appearance || null, this.tooltipManager = new hn(), this.defaultUniqueId = Ie.generateUniqueId();
251
+ constructor(c) {
252
+ N(this, "iframe", null);
253
+ N(this, "skeleton", null);
254
+ N(this, "options");
255
+ N(this, "appearance");
256
+ N(this, "tooltipManager");
257
+ N(this, "defaultIframeCSSConfig", Mn);
258
+ N(this, "Skeleton", null);
259
+ N(this, "defaultUniqueId");
260
+ this.options = c, this.appearance = c.appearance || null, this.tooltipManager = new ke(), this.defaultUniqueId = Ie.generateUniqueId();
219
261
  }
220
262
  static generateUniqueId() {
221
- return Wn();
263
+ return Pn();
222
264
  }
223
265
  get uniqueIdentifier() {
224
266
  return this.defaultUniqueId;
@@ -226,53 +268,53 @@ class Ie {
226
268
  get iframeIdentifier() {
227
269
  return `${this.defaultIframePrefix}-${this.uniqueIdentifier}`;
228
270
  }
229
- handleHeightChange(f) {
230
- if (!this.iframe || (this.iframe.style.height = `${f}px`, f > 0))
271
+ handleHeightChange(c) {
272
+ if (!this.iframe || (this.iframe.style.height = `${c}px`, c > 0))
231
273
  return;
232
274
  const { parentElement: h } = this.iframe;
233
275
  h && (h.style.display = "none");
234
276
  }
235
277
  handleIframeReady() {
236
- return H(this, null, function* () {
237
- this.iframe && (this.options.onReady && this.options.onReady(), yield mn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
278
+ return _(this, null, function* () {
279
+ this.iframe && (this.options.onReady && this.options.onReady(), yield pn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
238
280
  });
239
281
  }
240
- handleTooltipChange(f) {
282
+ handleTooltipChange(c) {
241
283
  if (!this.iframe)
242
284
  return;
243
- const h = this.iframe.getBoundingClientRect(), { text: l, coordinates: g, isVisible: y } = f, E = g.x + h.left, W = g.y + h.top;
244
- y ? this.tooltipManager.show(l, E, W) : this.tooltipManager.hide();
285
+ const h = this.iframe.getBoundingClientRect(), { text: f, coordinates: v, isVisible: y } = c, E = v.x + h.left, I = v.y + h.top;
286
+ y ? this.tooltipManager.show(f, E, I) : this.tooltipManager.hide();
245
287
  }
246
288
  setupListeners() {
247
- return H(this, null, function* () {
248
- yield En();
249
- const f = {
289
+ return _(this, null, function* () {
290
+ yield xn();
291
+ const c = {
250
292
  onHeightChange: this.handleHeightChange.bind(this),
251
293
  onIframeReady: this.handleIframeReady.bind(this),
252
294
  onTooltipChange: this.handleTooltipChange.bind(this),
253
295
  onInfo: this.options.onEvent.bind(this)
254
296
  };
255
- Ct(this.uniqueIdentifier, f);
297
+ Ot(this.uniqueIdentifier, c);
256
298
  });
257
299
  }
258
- mount(f) {
259
- return H(this, null, function* () {
300
+ mount(c) {
301
+ return _(this, null, function* () {
260
302
  if (!Se)
261
303
  return this;
262
- yield this.setupListeners(), Sn(this.iframeIdentifier);
263
- const h = bn(f), l = this.iframeUrl();
264
- return this.iframe = In(l, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(h)), h.appendChild(this.iframe), this;
304
+ yield this.setupListeners(), bn(this.iframeIdentifier);
305
+ const h = In(c), f = this.iframeUrl();
306
+ return this.iframe = Wn(f, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(h)), h.appendChild(this.iframe), this;
265
307
  });
266
308
  }
267
309
  unmount() {
268
- Se && (xn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null));
310
+ Se && (Sn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null));
269
311
  }
270
312
  }
271
- class jn {
272
- constructor(f) {
273
- A(this, "element");
274
- A(this, "identifier");
275
- this.identifier = `skeleton-${f}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
313
+ class Ln {
314
+ constructor(c) {
315
+ N(this, "element");
316
+ N(this, "identifier");
317
+ this.identifier = `skeleton-${c}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
276
318
  position: absolute;
277
319
  left: 50%;
278
320
  top: 50%;
@@ -298,14 +340,14 @@ class jn {
298
340
  flex-direction: column;
299
341
  justify-content: space-between;
300
342
  `;
301
- const l = document.createElement("div");
302
- l.style.cssText = `
343
+ const f = document.createElement("div");
344
+ f.style.cssText = `
303
345
  display: flex;
304
346
  align-items: center;
305
347
  gap: 0.75rem;
306
348
  `;
307
- const g = document.createElement("div");
308
- g.style.cssText = `
349
+ const v = document.createElement("div");
350
+ v.style.cssText = `
309
351
  width: 2rem;
310
352
  height: 2rem;
311
353
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -334,14 +376,14 @@ class jn {
334
376
  margin-left: auto;
335
377
  margin-right: 3px;
336
378
  `;
337
- const W = document.createElement("div");
338
- W.style.cssText = `
379
+ const I = document.createElement("div");
380
+ I.style.cssText = `
339
381
  display: flex;
340
382
  align-items: center;
341
383
  gap: 1rem;
342
384
  `;
343
- const D = document.createElement("div");
344
- D.style.cssText = `
385
+ const A = document.createElement("div");
386
+ A.style.cssText = `
345
387
  width: 1rem;
346
388
  height: 1rem;
347
389
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -351,15 +393,15 @@ class jn {
351
393
  flex-shrink: 0;
352
394
  margin-left: 10px;
353
395
  `;
354
- const M = document.createElement("div");
355
- M.style.cssText = `
396
+ const D = document.createElement("div");
397
+ D.style.cssText = `
356
398
  flex-grow: 1;
357
399
  display: flex;
358
400
  flex-direction: column;
359
401
  gap: 0.5rem;
360
402
  `;
361
- const B = document.createElement("div");
362
- B.style.cssText = `
403
+ const k = document.createElement("div");
404
+ k.style.cssText = `
363
405
  height: 0.875rem;
364
406
  width: 80%;
365
407
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -384,62 +426,62 @@ class jn {
384
426
  }
385
427
  `, document.head.appendChild(Z);
386
428
  }
387
- l.appendChild(g), l.appendChild(y), l.appendChild(E), M.appendChild(B), M.appendChild(oe), W.appendChild(D), W.appendChild(M), h.appendChild(l), h.appendChild(W), this.element.appendChild(h);
429
+ f.appendChild(v), f.appendChild(y), f.appendChild(E), D.appendChild(k), D.appendChild(oe), I.appendChild(A), I.appendChild(D), h.appendChild(f), h.appendChild(I), this.element.appendChild(h);
388
430
  }
389
431
  cleanupExistingSkeleton() {
390
- const f = document.getElementById(this.identifier);
391
- f && f.remove();
432
+ const c = document.getElementById(this.identifier);
433
+ c && c.remove();
392
434
  }
393
- mount(f) {
394
- this.cleanupExistingSkeleton(), f.appendChild(this.element);
435
+ mount(c) {
436
+ this.cleanupExistingSkeleton(), c.appendChild(this.element);
395
437
  }
396
438
  hide() {
397
439
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
398
440
  }
399
441
  }
400
- function Mn(c) {
442
+ function kn(d) {
401
443
  var E;
402
- const f = [
444
+ const c = [
403
445
  "actionToken",
404
446
  "entityId",
405
447
  "context",
406
448
  "optionalReconsentBehavior",
407
449
  "mandatoryReconsentBehavior"
408
- ], h = (E = c.isSandbox) != null ? E : !1, l = c.developmentUrl || (h ? Rt : Tt), g = new URLSearchParams();
409
- f.forEach((W) => {
410
- c[W] && g.set(W, c[W]);
450
+ ], h = (E = d.isSandbox) != null ? E : !1, f = d.developmentUrl || (h ? At : Rt), v = new URLSearchParams();
451
+ c.forEach((I) => {
452
+ d[I] && v.set(I, d[I]);
411
453
  });
412
- const y = g.toString();
413
- return `${l}/embed/consents/${c.consentTemplateId}${y ? `?${y}` : ""}`;
454
+ const y = v.toString();
455
+ return `${f}/embed/consents/${d.consentTemplateId}${y ? `?${y}` : ""}`;
414
456
  }
415
- class Ot extends Ie {
457
+ class Nt extends Ie {
416
458
  constructor(h) {
417
459
  super(h);
418
- A(this, "defaultIframePrefix", "consent-box");
419
- A(this, "defaultIframeCSSConfig", Ln);
420
- A(this, "state", {
460
+ N(this, "defaultIframePrefix", "consent-box");
461
+ N(this, "defaultIframeCSSConfig", jn);
462
+ N(this, "state", {
421
463
  isSelected: !1,
422
464
  actionToken: null
423
465
  });
424
- this.Skeleton = jn;
466
+ this.Skeleton = Ln;
425
467
  }
426
468
  get uniqueIdentifier() {
427
469
  return this.options.consentTemplateId;
428
470
  }
429
471
  iframeUrl() {
430
- return Mn(this.options);
472
+ return kn(this.options);
431
473
  }
432
474
  handleStateChange(h) {
433
- const { isSelected: l, actionToken: g } = h;
434
- this.state = { isSelected: l, actionToken: g }, this.options.onEvent({
475
+ const { isSelected: f, actionToken: v } = h;
476
+ this.state = { isSelected: f, actionToken: v }, this.options.onEvent({
435
477
  eventName: "CONSENT_CHECKBOX_CHANGE",
436
- isSelected: l,
437
- actionToken: g
478
+ isSelected: f,
479
+ actionToken: v
438
480
  });
439
481
  }
440
482
  setupListeners() {
441
- return H(this, null, function* () {
442
- yield xt(Ot.prototype, this, "setupListeners").call(this), Ct(this.uniqueIdentifier, {
483
+ return _(this, null, function* () {
484
+ yield St(Nt.prototype, this, "setupListeners").call(this), Ot(this.uniqueIdentifier, {
443
485
  onStateChange: this.handleStateChange.bind(this)
444
486
  });
445
487
  });
@@ -448,200 +490,200 @@ class Ot extends Ie {
448
490
  return this.state;
449
491
  }
450
492
  }
451
- function kn(c) {
493
+ function Un(d) {
452
494
  var y, E;
453
- const f = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (f ? Cn : Pn), l = new URLSearchParams();
454
- c.sessionToken ? l.set("sessionToken", c.sessionToken) : c.companyId && (l.set("companyId", c.companyId), c.subjectId && l.set("subjectId", c.subjectId)), (E = c.enabledFeatures) != null && E.length && l.set("enabledFeatures", c.enabledFeatures.join(","));
455
- const g = l.toString();
456
- return `${h}${g ? `?${g}` : ""}`;
495
+ const c = (y = d.isSandbox) != null ? y : !1, h = d.developmentUrl || (c ? Tn : Cn), f = new URLSearchParams();
496
+ d.sessionToken ? f.set("sessionToken", d.sessionToken) : d.companyId && (f.set("companyId", d.companyId), d.subjectId && f.set("subjectId", d.subjectId)), (E = d.enabledFeatures) != null && E.length && f.set("enabledFeatures", d.enabledFeatures.join(","));
497
+ const v = f.toString();
498
+ return `${h}${v ? `?${v}` : ""}`;
457
499
  }
458
- class Qn extends Ie {
500
+ class er extends Ie {
459
501
  constructor() {
460
502
  super(...arguments);
461
- A(this, "defaultIframePrefix", "privacy-center");
462
- A(this, "_uniqueIdentifier", "privacy-center");
463
- A(this, "defaultIframeCSSConfig", zn);
503
+ N(this, "defaultIframePrefix", "privacy-center");
504
+ N(this, "_uniqueIdentifier", "privacy-center");
505
+ N(this, "defaultIframeCSSConfig", zn);
464
506
  }
465
507
  get uniqueIdentifier() {
466
508
  return this._uniqueIdentifier;
467
509
  }
468
510
  iframeUrl() {
469
- return kn(this.options);
511
+ return Un(this.options);
470
512
  }
471
513
  }
472
- const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
514
+ const tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
473
515
  __proto__: null
474
- }, Symbol.toStringTag, { value: "Module" })), Un = "WIDGET_EVENT";
475
- function Fn(c) {
476
- let f = "widget/";
477
- return "disclosureRequestId" in c.configProps ? f += ["disclosures", c.configProps.disclosureRequestId].join("/") : f += c.request, f;
516
+ }, Symbol.toStringTag, { value: "Module" })), Fn = "WIDGET_EVENT";
517
+ function Hn(d) {
518
+ let c = "widget/";
519
+ return "disclosureRequestId" in d.configProps ? c += ["disclosures", d.configProps.disclosureRequestId].join("/") : c += d.request, c;
478
520
  }
479
- function Hn(c) {
521
+ function _n(d) {
480
522
  var y;
481
- const f = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (f ? Rt : Tt), l = Object.entries(c.configProps).filter(([E, W]) => W || E === "disclosureRequestId").map(([E, W]) => `${E}=${encodeURIComponent(W)}`).join("&"), g = Fn(c);
482
- return `${h}/${g}?sdk=web&${l}`;
523
+ const c = (y = d.isSandbox) != null ? y : !1, h = d.developmentUrl || (c ? At : Rt), f = Object.entries(d.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), v = Hn(d);
524
+ return `${h}/${v}?sdk=web&${f}`;
483
525
  }
484
- let J = null, je = null;
485
- function Me(c = null) {
486
- J && !J.closed && J.focus(), c == null || c.preventDefault();
526
+ let Y = null, ze = null;
527
+ function Le(d = null) {
528
+ Y && !Y.closed && Y.focus(), d == null || d.preventDefault();
487
529
  }
488
- function ke() {
489
- document.body.style.filter = "", document.body.removeEventListener("click", Me);
530
+ function Ue() {
531
+ document.body.style.filter = "", document.body.removeEventListener("click", Le);
490
532
  }
491
- function _n() {
492
- je = setInterval(() => {
493
- (!J || J.closed) && (je && clearInterval(je), ke());
494
- }, Nn);
533
+ function qn() {
534
+ ze = setInterval(() => {
535
+ (!Y || Y.closed) && (ze && clearInterval(ze), Ue());
536
+ }, Dn);
495
537
  }
496
- function qn(c) {
497
- const f = Hn(c), h = On, l = An, g = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, y = window.screenTop !== void 0 ? window.screenTop : window.screenY, E = window.innerWidth || document.documentElement.clientWidth || window.screen.width, W = window.innerHeight || document.documentElement.clientHeight || window.screen.height, D = E / window.screen.availWidth, M = (E - h) / 2 / D + g, B = (W - l) / 2 / D + y;
498
- document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), J = window.open(
499
- f,
538
+ function Bn(d) {
539
+ const c = _n(d), h = An, f = Nn, v = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, y = window.screenTop !== void 0 ? window.screenTop : window.screenY, E = window.innerWidth || document.documentElement.clientWidth || window.screen.width, I = window.innerHeight || document.documentElement.clientHeight || window.screen.height, A = E / window.screen.availWidth, D = (E - h) / 2 / A + v, k = (I - f) / 2 / A + y;
540
+ document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Le), Y = window.open(
541
+ c,
500
542
  "Soyio",
501
543
  `scrollbars=yes,
502
544
  width=${h},
503
- height=${l},
504
- top=${B},
505
- left=${M}`
506
- ), Me(), _n();
545
+ height=${f},
546
+ top=${k},
547
+ left=${D}`
548
+ ), Le(), qn();
507
549
  }
508
550
  function Gn() {
509
- J && (J.close(), J = null), ke();
551
+ Y && (Y.close(), Y = null), Ue();
510
552
  }
511
553
  let me = null;
512
- function Bn() {
554
+ function $n() {
513
555
  me && (me.cancel(), me = null);
514
556
  }
515
- function $n(c) {
516
- return H(this, null, function* () {
517
- const { onEvent: f } = c, h = yield Promise.resolve().then(() => Ue);
518
- me && Bn(), me = h.on(Un, (g) => H(this, [g], function* ({ data: l }) {
519
- return f(l), Tn.includes(l.eventName) ? Gn() : l.eventName === Rn && ke(), Promise.resolve();
557
+ function Vn(d) {
558
+ return _(this, null, function* () {
559
+ const { onEvent: c } = d, h = yield Promise.resolve().then(() => Fe);
560
+ me && $n(), me = h.on(Fn, (v) => _(this, [v], function* ({ data: f }) {
561
+ return c(f), On.includes(f.eventName) ? Gn() : f.eventName === Rn && Ue(), Promise.resolve();
520
562
  }));
521
563
  });
522
564
  }
523
- function Vn(c) {
524
- $n(c);
565
+ function Jn(d) {
566
+ Vn(d);
525
567
  }
526
- var be, At;
527
- class tr {
528
- constructor(f) {
529
- yt(this, be);
530
- A(this, "onEvent");
531
- this.onEvent = f.onEvent, Se && (qn(f), Vn({
532
- onEvent: Et(this, be, At).bind(this)
568
+ var be, Dt;
569
+ class nr {
570
+ constructor(c) {
571
+ Et(this, be);
572
+ N(this, "onEvent");
573
+ this.onEvent = c.onEvent, Se && (Bn(c), Jn({
574
+ onEvent: xt(this, be, Dt).bind(this)
533
575
  }));
534
576
  }
535
577
  }
536
- be = new WeakSet(), At = function(f) {
537
- this.onEvent(f);
578
+ be = new WeakSet(), Dt = function(c) {
579
+ this.onEvent(c);
538
580
  };
539
581
  var Yn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
540
- function Jn(c) {
541
- return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
582
+ function Zn(d) {
583
+ return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
542
584
  }
543
- var Nt = { exports: {} }, Dt = { exports: {} };
544
- (function(c, f) {
545
- (function(h, l) {
546
- c.exports = l();
585
+ var Mt = { exports: {} }, jt = { exports: {} };
586
+ (function(d, c) {
587
+ (function(h, f) {
588
+ d.exports = f();
547
589
  })(typeof self != "undefined" ? self : Yn, function() {
548
590
  return function(h) {
549
- var l = {};
550
- function g(y) {
551
- if (l[y])
552
- return l[y].exports;
553
- var E = l[y] = {
591
+ var f = {};
592
+ function v(y) {
593
+ if (f[y])
594
+ return f[y].exports;
595
+ var E = f[y] = {
554
596
  i: y,
555
597
  l: !1,
556
598
  exports: {}
557
599
  };
558
- return h[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
600
+ return h[y].call(E.exports, E, E.exports, v), E.l = !0, E.exports;
559
601
  }
560
- return g.m = h, g.c = l, g.d = function(y, E, W) {
561
- g.o(y, E) || Object.defineProperty(y, E, {
602
+ return v.m = h, v.c = f, v.d = function(y, E, I) {
603
+ v.o(y, E) || Object.defineProperty(y, E, {
562
604
  enumerable: !0,
563
- get: W
605
+ get: I
564
606
  });
565
- }, g.r = function(y) {
607
+ }, v.r = function(y) {
566
608
  typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(y, Symbol.toStringTag, {
567
609
  value: "Module"
568
610
  }), Object.defineProperty(y, "__esModule", {
569
611
  value: !0
570
612
  });
571
- }, g.t = function(y, E) {
572
- if (1 & E && (y = g(y)), 8 & E || 4 & E && typeof y == "object" && y && y.__esModule)
613
+ }, v.t = function(y, E) {
614
+ if (1 & E && (y = v(y)), 8 & E || 4 & E && typeof y == "object" && y && y.__esModule)
573
615
  return y;
574
- var W = /* @__PURE__ */ Object.create(null);
575
- if (g.r(W), Object.defineProperty(W, "default", {
616
+ var I = /* @__PURE__ */ Object.create(null);
617
+ if (v.r(I), Object.defineProperty(I, "default", {
576
618
  enumerable: !0,
577
619
  value: y
578
620
  }), 2 & E && typeof y != "string")
579
- for (var D in y)
580
- g.d(W, D, function(M) {
581
- return y[M];
582
- }.bind(null, D));
583
- return W;
584
- }, g.n = function(y) {
621
+ for (var A in y)
622
+ v.d(I, A, function(D) {
623
+ return y[D];
624
+ }.bind(null, A));
625
+ return I;
626
+ }, v.n = function(y) {
585
627
  var E = y && y.__esModule ? function() {
586
628
  return y.default;
587
629
  } : function() {
588
630
  return y;
589
631
  };
590
- return g.d(E, "a", E), E;
591
- }, g.o = function(y, E) {
632
+ return v.d(E, "a", E), E;
633
+ }, v.o = function(y, E) {
592
634
  return {}.hasOwnProperty.call(y, E);
593
- }, g.p = "", g(g.s = 0);
594
- }([function(h, l, g) {
595
- g.r(l), g.d(l, "Promise", function() {
635
+ }, v.p = "", v(v.s = 0);
636
+ }([function(h, f, v) {
637
+ v.r(f), v.d(f, "Promise", function() {
596
638
  return P;
597
- }), g.d(l, "TYPES", function() {
598
- return nn;
599
- }), g.d(l, "ProxyWindow", function() {
639
+ }), v.d(f, "TYPES", function() {
640
+ return on;
641
+ }), v.d(f, "ProxyWindow", function() {
600
642
  return G;
601
- }), g.d(l, "setup", function() {
602
- return vt;
603
- }), g.d(l, "destroy", function() {
604
- return tn;
605
- }), g.d(l, "serializeMessage", function() {
606
- return Xt;
607
- }), g.d(l, "deserializeMessage", function() {
608
- return Kt;
609
- }), g.d(l, "createProxyWindow", function() {
643
+ }), v.d(f, "setup", function() {
644
+ return wt;
645
+ }), v.d(f, "destroy", function() {
646
+ return rn;
647
+ }), v.d(f, "serializeMessage", function() {
610
648
  return Qt;
611
- }), g.d(l, "toProxyWindow", function() {
649
+ }), v.d(f, "deserializeMessage", function() {
612
650
  return en;
613
- }), g.d(l, "on", function() {
614
- return X;
615
- }), g.d(l, "once", function() {
616
- return Zt;
617
- }), g.d(l, "send", function() {
651
+ }), v.d(f, "createProxyWindow", function() {
652
+ return tn;
653
+ }), v.d(f, "toProxyWindow", function() {
654
+ return nn;
655
+ }), v.d(f, "on", function() {
618
656
  return K;
619
- }), g.d(l, "markWindowKnown", function() {
620
- return ot;
621
- }), g.d(l, "cleanUpWindow", function() {
622
- return rn;
623
- }), g.d(l, "bridge", function() {
657
+ }), v.d(f, "once", function() {
658
+ return Xt;
659
+ }), v.d(f, "send", function() {
660
+ return X;
661
+ }), v.d(f, "markWindowKnown", function() {
662
+ return it;
663
+ }), v.d(f, "cleanUpWindow", function() {
664
+ return an;
665
+ }), v.d(f, "bridge", function() {
624
666
  });
625
667
  function y(e) {
626
668
  return {}.toString.call(e) === "[object RegExp]";
627
669
  }
628
670
  var E = `Call was rejected by callee.\r
629
671
  `;
630
- function W(e) {
672
+ function I(e) {
631
673
  return e === void 0 && (e = window), e.location.protocol;
632
674
  }
633
- function D(e) {
675
+ function A(e) {
634
676
  if (e === void 0 && (e = window), e.mockDomain) {
635
677
  var n = e.mockDomain.split("//")[0];
636
678
  if (n)
637
679
  return n;
638
680
  }
639
- return W(e);
681
+ return I(e);
640
682
  }
641
- function M(e) {
642
- return e === void 0 && (e = window), D(e) === "about:";
683
+ function D(e) {
684
+ return e === void 0 && (e = window), A(e) === "about:";
643
685
  }
644
- function B(e) {
686
+ function k(e) {
645
687
  if (e === void 0 && (e = window), e)
646
688
  try {
647
689
  if (e.parent && e.parent !== e)
@@ -650,7 +692,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
650
692
  }
651
693
  }
652
694
  function oe(e) {
653
- if (e === void 0 && (e = window), e && !B(e))
695
+ if (e === void 0 && (e = window), e && !k(e))
654
696
  try {
655
697
  return e.opener;
656
698
  } catch (n) {
@@ -668,13 +710,13 @@ var Nt = { exports: {} }, Dt = { exports: {} };
668
710
  var n = e.location;
669
711
  if (!n)
670
712
  throw new Error("Can not read window location");
671
- var t = W(e);
713
+ var t = I(e);
672
714
  if (!t)
673
715
  throw new Error("Can not read window protocol");
674
716
  if (t === "file:")
675
717
  return "file://";
676
718
  if (t === "about:") {
677
- var r = B(e);
719
+ var r = k(e);
678
720
  return r && Z() ? pe(r) : "about://";
679
721
  }
680
722
  var o = n.host;
@@ -682,7 +724,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
682
724
  throw new Error("Can not read window host");
683
725
  return t + "//" + o;
684
726
  }
685
- function U(e) {
727
+ function F(e) {
686
728
  e === void 0 && (e = window);
687
729
  var n = pe(e);
688
730
  return n && e.mockDomain && e.mockDomain.indexOf("mock:") === 0 ? e.mockDomain : n;
@@ -701,13 +743,13 @@ var Nt = { exports: {} }, Dt = { exports: {} };
701
743
  } catch (r) {
702
744
  }
703
745
  try {
704
- if (M(n) && Z())
746
+ if (D(n) && Z())
705
747
  return !0;
706
748
  } catch (r) {
707
749
  }
708
750
  try {
709
751
  if (function(r) {
710
- return r === void 0 && (r = window), D(r) === "mock:";
752
+ return r === void 0 && (r = window), A(r) === "mock:";
711
753
  }(n) && Z())
712
754
  return !0;
713
755
  } catch (r) {
@@ -721,7 +763,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
721
763
  }(e))
722
764
  return !1;
723
765
  try {
724
- if (e === window || M(e) && Z() || U(window) === U(e))
766
+ if (e === window || D(e) && Z() || F(window) === F(e))
725
767
  return !0;
726
768
  } catch (n) {
727
769
  }
@@ -732,10 +774,10 @@ var Nt = { exports: {} }, Dt = { exports: {} };
732
774
  throw new Error("Expected window to be same domain");
733
775
  return e;
734
776
  }
735
- function Fe(e, n) {
777
+ function He(e, n) {
736
778
  if (!e || !n)
737
779
  return !1;
738
- var t = B(n);
780
+ var t = k(n);
739
781
  return t ? t === e : function(r) {
740
782
  var o = [];
741
783
  try {
@@ -746,7 +788,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
746
788
  return o;
747
789
  }(n).indexOf(e) !== -1;
748
790
  }
749
- function He(e) {
791
+ function _e(e) {
750
792
  var n = [], t;
751
793
  try {
752
794
  t = e.frames;
@@ -773,19 +815,19 @@ var Nt = { exports: {} }, Dt = { exports: {} };
773
815
  return n;
774
816
  }
775
817
  for (var a = 0; a < 100; a++) {
776
- var d = void 0;
818
+ var l = void 0;
777
819
  try {
778
- d = t[a];
820
+ l = t[a];
779
821
  } catch (u) {
780
822
  return n;
781
823
  }
782
- if (!d)
824
+ if (!l)
783
825
  return n;
784
- n.push(d);
826
+ n.push(l);
785
827
  }
786
828
  return n;
787
829
  }
788
- var zt = [], jt = [];
830
+ var Lt = [], kt = [];
789
831
  function $(e, n) {
790
832
  n === void 0 && (n = !0);
791
833
  try {
@@ -822,12 +864,12 @@ var Nt = { exports: {} }, Dt = { exports: {} };
822
864
  try {
823
865
  if (o[a] === i)
824
866
  return a;
825
- } catch (d) {
867
+ } catch (l) {
826
868
  }
827
869
  return -1;
828
- }(zt, e);
870
+ }(Lt, e);
829
871
  if (t !== -1) {
830
- var r = jt[t];
872
+ var r = kt[t];
831
873
  if (r && function(o) {
832
874
  if (!o.contentWindow || !o.parentNode)
833
875
  return !0;
@@ -844,8 +886,8 @@ var Nt = { exports: {} }, Dt = { exports: {} };
844
886
  }
845
887
  return !1;
846
888
  }
847
- function _e(e) {
848
- return e === void 0 && (e = window), oe(e = e || window) || B(e) || void 0;
889
+ function qe(e) {
890
+ return e === void 0 && (e = window), oe(e = e || window) || k(e) || void 0;
849
891
  }
850
892
  function re(e, n) {
851
893
  if (typeof e == "string") {
@@ -914,7 +956,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
914
956
  }
915
957
  return !1;
916
958
  }
917
- function qe(e) {
959
+ function Be(e) {
918
960
  if (Q(e))
919
961
  return ve(e).frameElement;
920
962
  for (var n = 0, t = document.querySelectorAll("iframe"); n < t.length; n++) {
@@ -923,11 +965,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
923
965
  return r;
924
966
  }
925
967
  }
926
- function Mt(e) {
968
+ function Ut(e) {
927
969
  if (function(t) {
928
- return t === void 0 && (t = window), !!B(t);
970
+ return t === void 0 && (t = window), !!k(t);
929
971
  }(e)) {
930
- var n = qe(e);
972
+ var n = Be(e);
931
973
  if (n && n.parentElement) {
932
974
  n.parentElement.removeChild(n);
933
975
  return;
@@ -960,7 +1002,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
960
1002
  return !1;
961
1003
  }
962
1004
  var Ge = [], ie = [], We = 0, ae;
963
- function Be() {
1005
+ function $e() {
964
1006
  if (!We && ae) {
965
1007
  var e = ae;
966
1008
  ae = null, e.resolve();
@@ -970,25 +1012,25 @@ var Nt = { exports: {} }, Dt = { exports: {} };
970
1012
  We += 1;
971
1013
  }
972
1014
  function se() {
973
- We -= 1, Be();
1015
+ We -= 1, $e();
974
1016
  }
975
1017
  var P = function() {
976
1018
  function e(t) {
977
1019
  var r = this;
978
1020
  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) {
979
- var o, i, a = !1, d = !1, u = !1;
1021
+ var o, i, a = !1, l = !1, u = !1;
980
1022
  Pe();
981
1023
  try {
982
1024
  t(function(s) {
983
1025
  u ? r.resolve(s) : (a = !0, o = s);
984
1026
  }, function(s) {
985
- u ? r.reject(s) : (d = !0, i = s);
1027
+ u ? r.reject(s) : (l = !0, i = s);
986
1028
  });
987
1029
  } catch (s) {
988
1030
  se(), this.reject(s);
989
1031
  return;
990
1032
  }
991
- se(), u = !0, a ? this.resolve(o) : d && this.reject(i);
1033
+ se(), u = !0, a ? this.resolve(o) : l && this.reject(i);
992
1034
  }
993
1035
  }
994
1036
  var n = e.prototype;
@@ -1014,8 +1056,8 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1014
1056
  Ge.push(i), setTimeout(function() {
1015
1057
  throw i;
1016
1058
  }, 1);
1017
- for (var d = 0; d < ie.length; d++)
1018
- ie[d](i, a);
1059
+ for (var l = 0; l < ie.length; l++)
1060
+ ie[l](i, a);
1019
1061
  }
1020
1062
  }(t, r);
1021
1063
  }, 1), this.dispatch(), this;
@@ -1025,38 +1067,38 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1025
1067
  var t = this.resolved, r = this.rejected, o = this.handlers;
1026
1068
  if (!this.dispatching && (t || r)) {
1027
1069
  this.dispatching = !0, Pe();
1028
- for (var i = function(w, b) {
1029
- return w.then(function(x) {
1070
+ for (var i = function(g, b) {
1071
+ return g.then(function(x) {
1030
1072
  b.resolve(x);
1031
1073
  }, function(x) {
1032
1074
  b.reject(x);
1033
1075
  });
1034
1076
  }, a = 0; a < o.length; a++) {
1035
- var d = o[a], u = d.onSuccess, s = d.onError, v = d.promise, m = void 0;
1077
+ var l = o[a], u = l.onSuccess, s = l.onError, w = l.promise, m = void 0;
1036
1078
  if (t)
1037
1079
  try {
1038
1080
  m = u ? u(this.value) : this.value;
1039
- } catch (w) {
1040
- v.reject(w);
1081
+ } catch (g) {
1082
+ w.reject(g);
1041
1083
  continue;
1042
1084
  }
1043
1085
  else if (r) {
1044
1086
  if (!s) {
1045
- v.reject(this.error);
1087
+ w.reject(this.error);
1046
1088
  continue;
1047
1089
  }
1048
1090
  try {
1049
1091
  m = s(this.error);
1050
- } catch (w) {
1051
- v.reject(w);
1092
+ } catch (g) {
1093
+ w.reject(g);
1052
1094
  continue;
1053
1095
  }
1054
1096
  }
1055
1097
  if (m instanceof e && (m.resolved || m.rejected)) {
1056
1098
  var p = m;
1057
- p.resolved ? v.resolve(p.value) : v.reject(p.error), p.errorHandled = !0;
1099
+ p.resolved ? w.resolve(p.value) : w.reject(p.error), p.errorHandled = !0;
1058
1100
  } else
1059
- ee(m) ? m instanceof e && (m.resolved || m.rejected) ? m.resolved ? v.resolve(m.value) : v.reject(m.error) : i(m, v) : v.resolve(m);
1101
+ ee(m) ? m instanceof e && (m.resolved || m.rejected) ? m.resolved ? w.resolve(m.value) : w.reject(m.error) : i(m, w) : w.resolve(m);
1060
1102
  }
1061
1103
  o.length = 0, this.dispatching = !1, se();
1062
1104
  }
@@ -1113,33 +1155,33 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1113
1155
  var r = new e(), o = t.length, i = [].slice();
1114
1156
  if (!o)
1115
1157
  return r.resolve(i), r;
1116
- for (var a = function(s, v, m) {
1117
- return v.then(function(p) {
1158
+ for (var a = function(s, w, m) {
1159
+ return w.then(function(p) {
1118
1160
  i[s] = p, (o -= 1) == 0 && r.resolve(i);
1119
1161
  }, function(p) {
1120
1162
  m.reject(p);
1121
1163
  });
1122
- }, d = 0; d < t.length; d++) {
1123
- var u = t[d];
1164
+ }, l = 0; l < t.length; l++) {
1165
+ var u = t[l];
1124
1166
  if (u instanceof e) {
1125
1167
  if (u.resolved) {
1126
- i[d] = u.value, o -= 1;
1168
+ i[l] = u.value, o -= 1;
1127
1169
  continue;
1128
1170
  }
1129
1171
  } else if (!ee(u)) {
1130
- i[d] = u, o -= 1;
1172
+ i[l] = u, o -= 1;
1131
1173
  continue;
1132
1174
  }
1133
- a(d, e.resolve(u), r);
1175
+ a(l, e.resolve(u), r);
1134
1176
  }
1135
1177
  return o === 0 && r.resolve(i), r;
1136
1178
  }, e.hash = function(t) {
1137
- var r = {}, o = [], i = function(d) {
1138
- if (t.hasOwnProperty(d)) {
1139
- var u = t[d];
1179
+ var r = {}, o = [], i = function(l) {
1180
+ if (t.hasOwnProperty(l)) {
1181
+ var u = t[l];
1140
1182
  ee(u) ? o.push(u.then(function(s) {
1141
- r[d] = s;
1142
- })) : r[d] = u;
1183
+ r[l] = s;
1184
+ })) : r[l] = u;
1143
1185
  }
1144
1186
  };
1145
1187
  for (var a in t)
@@ -1177,7 +1219,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1177
1219
  }, e.flush = function() {
1178
1220
  return function(t) {
1179
1221
  var r = ae = ae || new t();
1180
- return Be(), r;
1222
+ return $e(), r;
1181
1223
  }(e);
1182
1224
  }, e;
1183
1225
  }();
@@ -1230,7 +1272,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1230
1272
  if (o)
1231
1273
  try {
1232
1274
  o.set(t, r);
1233
- } catch (v) {
1275
+ } catch (w) {
1234
1276
  delete this.weakmap;
1235
1277
  }
1236
1278
  if (this.isSafeToReadWrite(t))
@@ -1241,11 +1283,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1241
1283
  writable: !0
1242
1284
  });
1243
1285
  return;
1244
- } catch (v) {
1286
+ } catch (w) {
1245
1287
  }
1246
1288
  this._cleanupClosedWindows();
1247
- var d = this.keys, u = this.values, s = ge(d, t);
1248
- s === -1 ? (d.push(t), u.push(r)) : u[s] = r;
1289
+ var l = this.keys, u = this.values, s = ge(l, t);
1290
+ s === -1 ? (l.push(t), u.push(r)) : u[s] = r;
1249
1291
  }, n.get = function(t) {
1250
1292
  if (!t)
1251
1293
  throw new Error("WeakMap expected key");
@@ -1274,14 +1316,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1274
1316
  if (r)
1275
1317
  try {
1276
1318
  r.delete(t);
1277
- } catch (d) {
1319
+ } catch (l) {
1278
1320
  delete this.weakmap;
1279
1321
  }
1280
1322
  if (this.isSafeToReadWrite(t))
1281
1323
  try {
1282
1324
  var o = t[this.name];
1283
1325
  o && o[0] === t && (o[0] = o[1] = void 0);
1284
- } catch (d) {
1326
+ } catch (l) {
1285
1327
  }
1286
1328
  this._cleanupClosedWindows();
1287
1329
  var i = this.keys, a = ge(i, t);
@@ -1311,17 +1353,17 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1311
1353
  return this.set(t, o), o;
1312
1354
  }, e;
1313
1355
  }();
1314
- function $e(e) {
1356
+ function Ve(e) {
1315
1357
  return e.name || e.__name__ || e.displayName || "anonymous";
1316
1358
  }
1317
- function Ve(e, n) {
1359
+ function Je(e, n) {
1318
1360
  try {
1319
1361
  delete e.name, e.name = n;
1320
1362
  } catch (t) {
1321
1363
  }
1322
1364
  return e.__name__ = e.displayName = n, e;
1323
1365
  }
1324
- function Y() {
1366
+ function J() {
1325
1367
  var e = "0123456789abcdef";
1326
1368
  return "uid_" + "xxxxxxxxxx".replace(/./g, function() {
1327
1369
  return e.charAt(Math.floor(Math.random() * e.length));
@@ -1343,54 +1385,54 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1343
1385
  if (ye = ye || new Ce(), r == null || typeof r != "object" && typeof r != "function")
1344
1386
  throw new Error("Invalid object");
1345
1387
  var o = ye.get(r);
1346
- return o || (o = typeof r + ":" + Y(), ye.set(r, o)), o;
1388
+ return o || (o = typeof r + ":" + J(), ye.set(r, o)), o;
1347
1389
  }(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;
1348
1390
  });
1349
1391
  } catch (n) {
1350
1392
  throw new Error("Arguments not serializable -- can not be used to memoize");
1351
1393
  }
1352
1394
  }
1353
- function kt() {
1395
+ function Ft() {
1354
1396
  return {};
1355
1397
  }
1356
- var ue = 0, Je = 0;
1398
+ var ue = 0, Ze = 0;
1357
1399
  function ce(e, n) {
1358
1400
  n === void 0 && (n = {});
1359
- var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, d = ue;
1401
+ var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, l = ue;
1360
1402
  ue += 1;
1361
1403
  var u = function() {
1362
- for (var s = arguments.length, v = new Array(s), m = 0; m < s; m++)
1363
- v[m] = arguments[m];
1364
- d < Je && (i = null, a = null, d = ue, ue += 1);
1404
+ for (var s = arguments.length, w = new Array(s), m = 0; m < s; m++)
1405
+ w[m] = arguments[m];
1406
+ l < Ze && (i = null, a = null, l = ue, ue += 1);
1365
1407
  var p;
1366
- p = r ? (a = a || new Ce()).getOrSet(this, kt) : i = i || {};
1367
- var w;
1408
+ p = r ? (a = a || new Ce()).getOrSet(this, Ft) : i = i || {};
1409
+ var g;
1368
1410
  try {
1369
- w = Ye(v);
1411
+ g = Ye(w);
1370
1412
  } catch (C) {
1371
1413
  return e.apply(this, arguments);
1372
1414
  }
1373
- var b = p[w];
1374
- if (b && o && Date.now() - b.time < o && (delete p[w], b = null), b)
1415
+ var b = p[g];
1416
+ if (b && o && Date.now() - b.time < o && (delete p[g], b = null), b)
1375
1417
  return b.value;
1376
1418
  var x = Date.now(), S = e.apply(this, arguments);
1377
- return p[w] = {
1419
+ return p[g] = {
1378
1420
  time: x,
1379
1421
  value: S
1380
1422
  }, S;
1381
1423
  };
1382
1424
  return u.reset = function() {
1383
1425
  i = null, a = null;
1384
- }, Ve(u, (n.name || $e(e)) + "::memoized");
1426
+ }, Je(u, (n.name || Ve(e)) + "::memoized");
1385
1427
  }
1386
1428
  ce.clear = function() {
1387
- Je = ue;
1429
+ Ze = ue;
1388
1430
  };
1389
- function Ut(e) {
1431
+ function Ht(e) {
1390
1432
  var n = {};
1391
1433
  function t() {
1392
- for (var r = arguments, o = this, i = arguments.length, a = new Array(i), d = 0; d < i; d++)
1393
- a[d] = arguments[d];
1434
+ for (var r = arguments, o = this, i = arguments.length, a = new Array(i), l = 0; l < i; l++)
1435
+ a[l] = arguments[l];
1394
1436
  var u = Ye(a);
1395
1437
  return n.hasOwnProperty(u) || (n[u] = P.try(function() {
1396
1438
  return e.apply(o, r);
@@ -1400,7 +1442,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1400
1442
  }
1401
1443
  return t.reset = function() {
1402
1444
  n = {};
1403
- }, Ve(t, $e(e) + "::promiseMemoized");
1445
+ }, Je(t, Ve(e) + "::promiseMemoized");
1404
1446
  }
1405
1447
  function te() {
1406
1448
  }
@@ -1427,7 +1469,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1427
1469
  return "Error while stringifying error: " + de(o, n + 1);
1428
1470
  }
1429
1471
  }
1430
- function Ze(e) {
1472
+ function Ke(e) {
1431
1473
  return typeof e == "string" ? e : e && e.toString && typeof e.toString == "function" ? e.toString() : {}.toString.call(e);
1432
1474
  }
1433
1475
  ce(function(e) {
@@ -1453,23 +1495,23 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1453
1495
  throw new Error("Body element not found");
1454
1496
  return e;
1455
1497
  }
1456
- function Ke() {
1498
+ function Qe() {
1457
1499
  return !!document.body && document.readyState === "complete";
1458
1500
  }
1459
- function Qe() {
1501
+ function et() {
1460
1502
  return !!document.body && document.readyState === "interactive";
1461
1503
  }
1462
1504
  ce(function() {
1463
1505
  return new P(function(e) {
1464
- if (Ke() || Qe())
1506
+ if (Qe() || et())
1465
1507
  return e();
1466
1508
  var n = setInterval(function() {
1467
- if (Ke() || Qe())
1509
+ if (Qe() || et())
1468
1510
  return clearInterval(n), e();
1469
1511
  }, 10);
1470
1512
  });
1471
1513
  });
1472
- var Ee = typeof document != "undefined" ? document.currentScript : null, Ft = ce(function() {
1514
+ var Ee = typeof document != "undefined" ? document.currentScript : null, _t = ce(function() {
1473
1515
  if (Ee || (Ee = function() {
1474
1516
  try {
1475
1517
  var e = function() {
@@ -1491,13 +1533,13 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1491
1533
  }()))
1492
1534
  return Ee;
1493
1535
  throw new Error("Can not determine current script");
1494
- }), Ht = Y();
1536
+ }), qt = J();
1495
1537
  ce(function() {
1496
1538
  var e;
1497
1539
  try {
1498
- e = Ft();
1540
+ e = _t();
1499
1541
  } catch (r) {
1500
- return Ht;
1542
+ return qt;
1501
1543
  }
1502
1544
  var n = e.getAttribute("data-uid");
1503
1545
  if (n && typeof n == "string" || (n = e.getAttribute("data-uid-auto")) && typeof n == "string")
@@ -1515,7 +1557,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1515
1557
  }));
1516
1558
  n = "uid_" + t.slice(t.length - 30);
1517
1559
  } else
1518
- n = Y();
1560
+ n = J();
1519
1561
  return e.setAttribute("data-uid-auto", n), n;
1520
1562
  });
1521
1563
  function le(e) {
@@ -1523,11 +1565,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1523
1565
  var n = "__post_robot_10_0_46__";
1524
1566
  return e !== window ? e[n] : e[n] = e[n] || {};
1525
1567
  }
1526
- var et = function() {
1568
+ var tt = function() {
1527
1569
  return {};
1528
1570
  };
1529
1571
  function z(e, n) {
1530
- return e === void 0 && (e = "store"), n === void 0 && (n = et), fe(le(), e, function() {
1572
+ return e === void 0 && (e = "store"), n === void 0 && (n = tt), fe(le(), e, function() {
1531
1573
  var t = n();
1532
1574
  return {
1533
1575
  has: function(r) {
@@ -1554,14 +1596,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1554
1596
  };
1555
1597
  });
1556
1598
  }
1557
- var _t = function() {
1599
+ var Bt = function() {
1558
1600
  };
1559
1601
  function xe() {
1560
1602
  var e = le();
1561
- return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new _t(), e.WINDOW_WILDCARD;
1603
+ return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new Bt(), e.WINDOW_WILDCARD;
1562
1604
  }
1563
- function F(e, n) {
1564
- return e === void 0 && (e = "store"), n === void 0 && (n = et), z("windowStore").getOrSet(e, function() {
1605
+ function H(e, n) {
1606
+ return e === void 0 && (e = "store"), n === void 0 && (n = tt), z("windowStore").getOrSet(e, function() {
1565
1607
  var t = new Ce(), r = function(o) {
1566
1608
  return t.getOrSet(o, n);
1567
1609
  };
@@ -1585,11 +1627,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1585
1627
  };
1586
1628
  });
1587
1629
  }
1588
- function tt() {
1589
- return z("instance").getOrSet("instanceID", Y);
1630
+ function nt() {
1631
+ return z("instance").getOrSet("instanceID", J);
1590
1632
  }
1591
- function nt(e, n) {
1592
- var t = n.domain, r = F("helloPromises"), o = r.get(e);
1633
+ function rt(e, n) {
1634
+ var t = n.domain, r = H("helloPromises"), o = r.get(e);
1593
1635
  o && o.resolve({
1594
1636
  domain: t
1595
1637
  });
@@ -1598,15 +1640,15 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1598
1640
  });
1599
1641
  return r.set(e, i), i;
1600
1642
  }
1601
- function Re(e, n) {
1643
+ function Oe(e, n) {
1602
1644
  return (0, n.send)(e, "postrobot_hello", {
1603
- instanceID: tt()
1645
+ instanceID: nt()
1604
1646
  }, {
1605
1647
  domain: "*",
1606
1648
  timeout: -1
1607
1649
  }).then(function(t) {
1608
1650
  var r = t.origin, o = t.data.instanceID;
1609
- return nt(e, {
1651
+ return rt(e, {
1610
1652
  domain: r
1611
1653
  }), {
1612
1654
  win: e,
@@ -1615,23 +1657,23 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1615
1657
  };
1616
1658
  });
1617
1659
  }
1618
- function rt(e, n) {
1660
+ function ot(e, n) {
1619
1661
  var t = n.send;
1620
- return F("windowInstanceIDPromises").getOrSet(e, function() {
1621
- return Re(e, {
1662
+ return H("windowInstanceIDPromises").getOrSet(e, function() {
1663
+ return Oe(e, {
1622
1664
  send: t
1623
1665
  }).then(function(r) {
1624
1666
  return r.instanceID;
1625
1667
  });
1626
1668
  });
1627
1669
  }
1628
- function ot(e) {
1629
- F("knownWindows").set(e, !0);
1670
+ function it(e) {
1671
+ H("knownWindows").set(e, !0);
1630
1672
  }
1631
- function Oe(e) {
1673
+ function Re(e) {
1632
1674
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1633
1675
  }
1634
- function it(e) {
1676
+ function at(e) {
1635
1677
  return e === void 0 ? "undefined" : e === null ? "null" : Array.isArray(e) ? "array" : typeof e == "function" ? "function" : typeof e == "object" ? e instanceof Error ? "error" : typeof e.then == "function" ? "promise" : {}.toString.call(e) === "[object RegExp]" ? "regex" : {}.toString.call(e) === "[object Date]" ? "date" : "object" : typeof e == "string" ? "string" : typeof e == "number" ? "number" : typeof e == "boolean" ? "boolean" : void 0;
1636
1678
  }
1637
1679
  function ne(e, n) {
@@ -1640,60 +1682,60 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1640
1682
  __val__: n
1641
1683
  };
1642
1684
  }
1643
- var _, qt = ((_ = {}).function = function() {
1644
- }, _.error = function(e) {
1685
+ var q, Gt = ((q = {}).function = function() {
1686
+ }, q.error = function(e) {
1645
1687
  return ne("error", {
1646
1688
  message: e.message,
1647
1689
  stack: e.stack,
1648
1690
  code: e.code,
1649
1691
  data: e.data
1650
1692
  });
1651
- }, _.promise = function() {
1652
- }, _.regex = function(e) {
1693
+ }, q.promise = function() {
1694
+ }, q.regex = function(e) {
1653
1695
  return ne("regex", e.source);
1654
- }, _.date = function(e) {
1696
+ }, q.date = function(e) {
1655
1697
  return ne("date", e.toJSON());
1656
- }, _.array = function(e) {
1698
+ }, q.array = function(e) {
1657
1699
  return e;
1658
- }, _.object = function(e) {
1700
+ }, q.object = function(e) {
1659
1701
  return e;
1660
- }, _.string = function(e) {
1702
+ }, q.string = function(e) {
1661
1703
  return e;
1662
- }, _.number = function(e) {
1704
+ }, q.number = function(e) {
1663
1705
  return e;
1664
- }, _.boolean = function(e) {
1706
+ }, q.boolean = function(e) {
1665
1707
  return e;
1666
- }, _.null = function(e) {
1708
+ }, q.null = function(e) {
1667
1709
  return e;
1668
- }, _[void 0] = function(e) {
1710
+ }, q[void 0] = function(e) {
1669
1711
  return ne("undefined", e);
1670
- }, _), Gt = {}, q, Bt = ((q = {}).function = function() {
1712
+ }, q), $t = {}, B, Vt = ((B = {}).function = function() {
1671
1713
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1672
- }, q.error = function(e) {
1714
+ }, B.error = function(e) {
1673
1715
  var n = e.stack, t = e.code, r = e.data, o = new Error(e.message);
1674
1716
  return o.code = t, r && (o.data = r), o.stack = n + `
1675
1717
 
1676
1718
  ` + o.stack, o;
1677
- }, q.promise = function() {
1719
+ }, B.promise = function() {
1678
1720
  throw new Error("Promise serialization is not implemented; nothing to deserialize");
1679
- }, q.regex = function(e) {
1721
+ }, B.regex = function(e) {
1680
1722
  return new RegExp(e);
1681
- }, q.date = function(e) {
1723
+ }, B.date = function(e) {
1682
1724
  return new Date(e);
1683
- }, q.array = function(e) {
1725
+ }, B.array = function(e) {
1684
1726
  return e;
1685
- }, q.object = function(e) {
1727
+ }, B.object = function(e) {
1686
1728
  return e;
1687
- }, q.string = function(e) {
1729
+ }, B.string = function(e) {
1688
1730
  return e;
1689
- }, q.number = function(e) {
1731
+ }, B.number = function(e) {
1690
1732
  return e;
1691
- }, q.boolean = function(e) {
1733
+ }, B.boolean = function(e) {
1692
1734
  return e;
1693
- }, q.null = function(e) {
1735
+ }, B.null = function(e) {
1694
1736
  return e;
1695
- }, q[void 0] = function() {
1696
- }, q), $t = {};
1737
+ }, B[void 0] = function() {
1738
+ }, B), Jt = {};
1697
1739
  new P(function(e) {
1698
1740
  if (window.document && window.document.body)
1699
1741
  return e(window.document.body);
@@ -1708,8 +1750,8 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1708
1750
  e.get(r).shouldClean() && e.del(r);
1709
1751
  }
1710
1752
  }
1711
- function at(e, n) {
1712
- var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1753
+ function st(e, n) {
1754
+ var t = n.send, r = n.id, o = r === void 0 ? J() : r, i = e.then(function(u) {
1713
1755
  if (Q(u))
1714
1756
  return ve(u).name;
1715
1757
  }), a = e.then(function(u) {
@@ -1718,7 +1760,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1718
1760
  return oe(u) ? "popup" : "iframe";
1719
1761
  });
1720
1762
  i.catch(te), a.catch(te);
1721
- var d = function() {
1763
+ var l = function() {
1722
1764
  return e.then(function(u) {
1723
1765
  if (!$(u))
1724
1766
  return Q(u) ? ve(u).name : i;
@@ -1729,17 +1771,17 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1729
1771
  getType: function() {
1730
1772
  return a;
1731
1773
  },
1732
- getInstanceID: Ut(function() {
1774
+ getInstanceID: Ht(function() {
1733
1775
  return e.then(function(u) {
1734
- return rt(u, {
1776
+ return ot(u, {
1735
1777
  send: t
1736
1778
  });
1737
1779
  });
1738
1780
  }),
1739
1781
  close: function() {
1740
- return e.then(Mt);
1782
+ return e.then(Ut);
1741
1783
  },
1742
- getName: d,
1784
+ getName: l,
1743
1785
  focus: function() {
1744
1786
  return e.then(function(u) {
1745
1787
  u.focus();
@@ -1751,48 +1793,48 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1751
1793
  });
1752
1794
  },
1753
1795
  setLocation: function(u, s) {
1754
- return s === void 0 && (s = {}), e.then(function(v) {
1755
- var m = window.location.protocol + "//" + window.location.host, p = s.method, w = p === void 0 ? "get" : p, b = s.body;
1796
+ return s === void 0 && (s = {}), e.then(function(w) {
1797
+ var m = window.location.protocol + "//" + window.location.host, p = s.method, g = p === void 0 ? "get" : p, b = s.body;
1756
1798
  if (u.indexOf("/") === 0)
1757
1799
  u = "" + m + u;
1758
1800
  else if (!u.match(/^https?:\/\//) && u.indexOf(m) !== 0)
1759
1801
  throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1760
- if (w === "post")
1761
- return d().then(function(x) {
1802
+ if (g === "post")
1803
+ return l().then(function(x) {
1762
1804
  if (!x)
1763
1805
  throw new Error("Can not post to window without target name");
1764
1806
  (function(S) {
1765
- var C = S.url, L = S.target, R = S.body, T = S.method, j = T === void 0 ? "post" : T, I = document.createElement("form");
1766
- if (I.setAttribute("target", L), I.setAttribute("method", j), I.setAttribute("action", C), I.style.display = "none", R)
1767
- for (var O = 0, V = Object.keys(R); O < V.length; O++) {
1768
- var N, he = V[O], ze = document.createElement("input");
1769
- ze.setAttribute("name", he), ze.setAttribute("value", (N = R[he]) == null ? void 0 : N.toString()), I.appendChild(ze);
1807
+ var C = S.url, j = S.target, O = S.body, T = S.method, L = T === void 0 ? "post" : T, W = document.createElement("form");
1808
+ if (W.setAttribute("target", j), W.setAttribute("method", L), W.setAttribute("action", C), W.style.display = "none", O)
1809
+ for (var R = 0, V = Object.keys(O); R < V.length; R++) {
1810
+ var M, he = V[R], je = document.createElement("input");
1811
+ je.setAttribute("name", he), je.setAttribute("value", (M = O[he]) == null ? void 0 : M.toString()), W.appendChild(je);
1770
1812
  }
1771
- Xe().appendChild(I), I.submit(), Xe().removeChild(I);
1813
+ Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1772
1814
  })({
1773
1815
  url: u,
1774
1816
  target: x,
1775
- method: w,
1817
+ method: g,
1776
1818
  body: b
1777
1819
  });
1778
1820
  });
1779
- if (w !== "get")
1780
- throw new Error("Unsupported method: " + w);
1781
- if (Q(v))
1821
+ if (g !== "get")
1822
+ throw new Error("Unsupported method: " + g);
1823
+ if (Q(w))
1782
1824
  try {
1783
- if (v.location && typeof v.location.replace == "function") {
1784
- v.location.replace(u);
1825
+ if (w.location && typeof w.location.replace == "function") {
1826
+ w.location.replace(u);
1785
1827
  return;
1786
1828
  }
1787
1829
  } catch (x) {
1788
1830
  }
1789
- v.location = u;
1831
+ w.location = u;
1790
1832
  });
1791
1833
  },
1792
1834
  setName: function(u) {
1793
1835
  return e.then(function(s) {
1794
- var v = Q(s), m = qe(s);
1795
- if (!v)
1836
+ var w = Q(s), m = Be(s);
1837
+ if (!w)
1796
1838
  throw new Error("Can not set name for cross-domain window: " + u);
1797
1839
  ve(s).name = u, m && m.setAttribute("name", u), i = P.resolve(u);
1798
1840
  });
@@ -1802,7 +1844,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1802
1844
  var G = function() {
1803
1845
  function e(t) {
1804
1846
  var r = t.send, o = t.win, i = t.serializedWindow;
1805
- 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 || at(this.actualWindowPromise, {
1847
+ 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 || st(this.actualWindowPromise, {
1806
1848
  send: r
1807
1849
  }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1808
1850
  send: r
@@ -1838,9 +1880,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1838
1880
  var t = this, r = this.isPopup(), o = this.getName(), i = P.hash({
1839
1881
  isPopup: r,
1840
1882
  name: o
1841
- }).then(function(d) {
1842
- var u = d.name;
1843
- d.isPopup && u && window.open("", u, "noopener");
1883
+ }).then(function(l) {
1884
+ var u = l.name;
1885
+ l.isPopup && u && window.open("", u, "noopener");
1844
1886
  }), a = this.serializedWindow.focus();
1845
1887
  return P.all([i, a]).then(function() {
1846
1888
  return t;
@@ -1851,10 +1893,10 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1851
1893
  return this.actualWindow;
1852
1894
  }, n.setWindow = function(t, r) {
1853
1895
  var o = r.send;
1854
- this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = at(this.actualWindowPromise, {
1896
+ this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = st(this.actualWindowPromise, {
1855
1897
  send: o,
1856
1898
  id: this.getID()
1857
- }), F("winToProxyWindow").set(t, this);
1899
+ }), H("winToProxyWindow").set(t, this);
1858
1900
  }, n.awaitWindow = function() {
1859
1901
  return this.actualWindowPromise;
1860
1902
  }, n.matchWindow = function(t, r) {
@@ -1862,14 +1904,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1862
1904
  return P.try(function() {
1863
1905
  return o.actualWindow ? t === o.actualWindow : P.hash({
1864
1906
  proxyInstanceID: o.getInstanceID(),
1865
- knownWindowInstanceID: rt(t, {
1907
+ knownWindowInstanceID: ot(t, {
1866
1908
  send: i
1867
1909
  })
1868
1910
  }).then(function(a) {
1869
- var d = a.proxyInstanceID === a.knownWindowInstanceID;
1870
- return d && o.setWindow(t, {
1911
+ var l = a.proxyInstanceID === a.knownWindowInstanceID;
1912
+ return l && o.setWindow(t, {
1871
1913
  send: i
1872
- }), d;
1914
+ }), l;
1873
1915
  });
1874
1916
  });
1875
1917
  }, n.unwrap = function() {
@@ -1900,14 +1942,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1900
1942
  if (Ae(), e.isProxyWindow(t))
1901
1943
  return t;
1902
1944
  var i = t;
1903
- return F("winToProxyWindow").get(i) || new e({
1945
+ return H("winToProxyWindow").get(i) || new e({
1904
1946
  win: i,
1905
1947
  send: o
1906
1948
  });
1907
1949
  }, e;
1908
1950
  }();
1909
1951
  function Ne(e, n, t, r, o) {
1910
- var i = F("methodStore"), a = z("proxyWindowMethods");
1952
+ var i = H("methodStore"), a = z("proxyWindowMethods");
1911
1953
  G.isProxyWindow(r) ? a.set(e, {
1912
1954
  val: n,
1913
1955
  name: t,
@@ -1922,50 +1964,50 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1922
1964
  source: r
1923
1965
  });
1924
1966
  }
1925
- function st(e, n) {
1926
- var t = F("methodStore"), r = z("proxyWindowMethods");
1967
+ function ut(e, n) {
1968
+ var t = H("methodStore"), r = z("proxyWindowMethods");
1927
1969
  return t.getOrSet(e, function() {
1928
1970
  return {};
1929
1971
  })[n] || r.get(n);
1930
1972
  }
1931
- function ut(e, n, t, r, o) {
1973
+ function ct(e, n, t, r, o) {
1932
1974
  a = (i = {
1933
1975
  on: o.on,
1934
1976
  send: o.send
1935
- }).on, d = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1977
+ }).on, l = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1936
1978
  return a("postrobot_method", {
1937
1979
  domain: "*"
1938
- }, function(v) {
1939
- var m = v.source, p = v.origin, w = v.data, b = w.id, x = w.name, S = st(m, b);
1980
+ }, function(w) {
1981
+ var m = w.source, p = w.origin, g = w.data, b = g.id, x = g.name, S = ut(m, b);
1940
1982
  if (!S)
1941
- throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + U(window));
1942
- var C = S.source, L = S.domain, R = S.val;
1983
+ throw new Error("Could not find method '" + x + "' with id: " + g.id + " in " + F(window));
1984
+ var C = S.source, j = S.domain, O = S.val;
1943
1985
  return P.try(function() {
1944
- if (!re(L, p))
1945
- throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Te(S.domain) ? S.domain.source : S.domain) + " does not match origin " + p + " in " + U(window));
1986
+ if (!re(j, p))
1987
+ throw new Error("Method '" + g.name + "' domain " + JSON.stringify(Te(S.domain) ? S.domain.source : S.domain) + " does not match origin " + p + " in " + F(window));
1946
1988
  if (G.isProxyWindow(C))
1947
1989
  return C.matchWindow(m, {
1948
- send: d
1990
+ send: l
1949
1991
  }).then(function(T) {
1950
1992
  if (!T)
1951
- throw new Error("Method call '" + w.name + "' failed - proxy window does not match source in " + U(window));
1993
+ throw new Error("Method call '" + g.name + "' failed - proxy window does not match source in " + F(window));
1952
1994
  });
1953
1995
  }).then(function() {
1954
- return R.apply({
1996
+ return O.apply({
1955
1997
  source: m,
1956
1998
  origin: p
1957
- }, w.args);
1999
+ }, g.args);
1958
2000
  }, function(T) {
1959
2001
  return P.try(function() {
1960
- if (R.onError)
1961
- return R.onError(T);
2002
+ if (O.onError)
2003
+ return O.onError(T);
1962
2004
  }).then(function() {
1963
- throw T.stack && (T.stack = "Remote call to " + x + "(" + function(j) {
1964
- return j === void 0 && (j = []), (I = j, [].slice.call(I)).map(function(O) {
1965
- 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 + ">";
2005
+ throw T.stack && (T.stack = "Remote call to " + x + "(" + function(L) {
2006
+ return L === void 0 && (L = []), (W = L, [].slice.call(W)).map(function(R) {
2007
+ return typeof R == "string" ? "'" + R + "'" : R === void 0 ? "undefined" : R === null ? "null" : typeof R == "boolean" ? R.toString() : Array.isArray(R) ? "[ ... ]" : typeof R == "object" ? "{ ... }" : typeof R == "function" ? "() => { ... }" : "<" + typeof R + ">";
1966
2008
  }).join(", ");
1967
- var I;
1968
- }(w.args) + `) failed
2009
+ var W;
2010
+ }(g.args) + `) failed
1969
2011
 
1970
2012
  ` + T.stack), T;
1971
2013
  });
@@ -1978,111 +2020,111 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1978
2020
  });
1979
2021
  });
1980
2022
  });
1981
- var i, a, d, u = t.__id__ || Y();
2023
+ var i, a, l, u = t.__id__ || J();
1982
2024
  e = G.unwrap(e);
1983
2025
  var s = t.__name__ || t.name || r;
1984
- return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), G.isProxyWindow(e) ? (Ne(u, t, s, e, n), e.awaitWindow().then(function(v) {
1985
- Ne(u, t, s, v, n);
2026
+ return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), G.isProxyWindow(e) ? (Ne(u, t, s, e, n), e.awaitWindow().then(function(w) {
2027
+ Ne(u, t, s, w, n);
1986
2028
  })) : Ne(u, t, s, e, n), ne("cross_domain_function", {
1987
2029
  id: u,
1988
2030
  name: s
1989
2031
  });
1990
2032
  }
1991
- function ct(e, n, t, r) {
2033
+ function dt(e, n, t, r) {
1992
2034
  var o, i = r.on, a = r.send;
1993
- return function(d, u) {
1994
- u === void 0 && (u = Gt);
1995
- var s = JSON.stringify(d, function(v) {
1996
- var m = this[v];
1997
- if (Oe(this))
2035
+ return function(l, u) {
2036
+ u === void 0 && (u = $t);
2037
+ var s = JSON.stringify(l, function(w) {
2038
+ var m = this[w];
2039
+ if (Re(this))
1998
2040
  return m;
1999
- var p = it(m);
2041
+ var p = at(m);
2000
2042
  if (!p)
2001
2043
  return m;
2002
- var w = u[p] || qt[p];
2003
- return w ? w(m, v) : m;
2044
+ var g = u[p] || Gt[p];
2045
+ return g ? g(m, w) : m;
2004
2046
  });
2005
2047
  return s === void 0 ? "undefined" : s;
2006
- }(t, ((o = {}).promise = function(d, u) {
2007
- return function(s, v, m, p, w) {
2048
+ }(t, ((o = {}).promise = function(l, u) {
2049
+ return function(s, w, m, p, g) {
2008
2050
  return ne("cross_domain_zalgo_promise", {
2009
- then: ut(s, v, function(b, x) {
2051
+ then: ct(s, w, function(b, x) {
2010
2052
  return m.then(b, x);
2011
2053
  }, p, {
2012
- on: w.on,
2013
- send: w.send
2054
+ on: g.on,
2055
+ send: g.send
2014
2056
  })
2015
2057
  });
2016
- }(e, n, d, u, {
2058
+ }(e, n, l, u, {
2017
2059
  on: i,
2018
2060
  send: a
2019
2061
  });
2020
- }, o.function = function(d, u) {
2021
- return ut(e, n, d, u, {
2062
+ }, o.function = function(l, u) {
2063
+ return ct(e, n, l, u, {
2022
2064
  on: i,
2023
2065
  send: a
2024
2066
  });
2025
- }, o.object = function(d) {
2026
- return we(d) || G.isProxyWindow(d) ? ne("cross_domain_window", G.serialize(d, {
2067
+ }, o.object = function(l) {
2068
+ return we(l) || G.isProxyWindow(l) ? ne("cross_domain_window", G.serialize(l, {
2027
2069
  send: a
2028
- })) : d;
2070
+ })) : l;
2029
2071
  }, o));
2030
2072
  }
2031
- function dt(e, n, t, r) {
2073
+ function ft(e, n, t, r) {
2032
2074
  var o, i = r.send;
2033
- return function(a, d) {
2034
- if (d === void 0 && (d = $t), a !== "undefined")
2075
+ return function(a, l) {
2076
+ if (l === void 0 && (l = Jt), a !== "undefined")
2035
2077
  return JSON.parse(a, function(u, s) {
2036
- if (Oe(this))
2078
+ if (Re(this))
2037
2079
  return s;
2038
- var v, m;
2039
- if (Oe(s) ? (v = s.__type__, m = s.__val__) : (v = it(s), m = s), !v)
2080
+ var w, m;
2081
+ if (Re(s) ? (w = s.__type__, m = s.__val__) : (w = at(s), m = s), !w)
2040
2082
  return m;
2041
- var p = d[v] || Bt[v];
2083
+ var p = l[w] || Vt[w];
2042
2084
  return p ? p(m, u) : m;
2043
2085
  });
2044
2086
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
2045
- return function(d, u, s) {
2087
+ return function(l, u, s) {
2046
2088
  return new P(s.then);
2047
2089
  }(0, 0, a);
2048
2090
  }, o.cross_domain_function = function(a) {
2049
- return function(d, u, s, v) {
2050
- var m = s.id, p = s.name, w = v.send, b = function(S) {
2091
+ return function(l, u, s, w) {
2092
+ var m = s.id, p = s.name, g = w.send, b = function(S) {
2051
2093
  S === void 0 && (S = {});
2052
2094
  function C() {
2053
- var L = arguments;
2054
- return G.toProxyWindow(d, {
2055
- send: w
2056
- }).awaitWindow().then(function(R) {
2057
- var T = st(R, m);
2095
+ var j = arguments;
2096
+ return G.toProxyWindow(l, {
2097
+ send: g
2098
+ }).awaitWindow().then(function(O) {
2099
+ var T = ut(O, m);
2058
2100
  if (T && T.val !== C)
2059
2101
  return T.val.apply({
2060
2102
  source: window,
2061
- origin: U()
2062
- }, L);
2063
- var j = [].slice.call(L);
2064
- return S.fireAndForget ? w(R, "postrobot_method", {
2103
+ origin: F()
2104
+ }, j);
2105
+ var L = [].slice.call(j);
2106
+ return S.fireAndForget ? g(O, "postrobot_method", {
2065
2107
  id: m,
2066
2108
  name: p,
2067
- args: j
2109
+ args: L
2068
2110
  }, {
2069
2111
  domain: u,
2070
2112
  fireAndForget: !0
2071
- }) : w(R, "postrobot_method", {
2113
+ }) : g(O, "postrobot_method", {
2072
2114
  id: m,
2073
2115
  name: p,
2074
- args: j
2116
+ args: L
2075
2117
  }, {
2076
2118
  domain: u,
2077
2119
  fireAndForget: !1
2078
- }).then(function(I) {
2079
- return I.data.result;
2120
+ }).then(function(W) {
2121
+ return W.data.result;
2080
2122
  });
2081
- }).catch(function(R) {
2082
- throw R;
2123
+ }).catch(function(O) {
2124
+ throw O;
2083
2125
  });
2084
2126
  }
2085
- return C.__name__ = p, C.__origin__ = u, C.__source__ = d, C.__id__ = m, C.origin = u, C;
2127
+ return C.__name__ = p, C.__origin__ = u, C.__source__ = l, C.__id__ = m, C.origin = u, C;
2086
2128
  }, x = b();
2087
2129
  return x.fireAndForget = b({
2088
2130
  fireAndForget: !0
@@ -2100,33 +2142,33 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2100
2142
  De.postrobot_post_message = function(e, n, t) {
2101
2143
  t.indexOf("file:") === 0 && (t = "*"), e.postMessage(n, t);
2102
2144
  };
2103
- function Le(e, n, t, r) {
2145
+ function Me(e, n, t, r) {
2104
2146
  var o = r.on, i = r.send;
2105
2147
  return P.try(function() {
2106
- var a = F().getOrSet(e, function() {
2148
+ var a = H().getOrSet(e, function() {
2107
2149
  return {};
2108
2150
  });
2109
2151
  return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || P.flush().then(function() {
2110
2152
  if ($(e))
2111
2153
  throw new Error("Window is closed");
2112
- var d = ct(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2154
+ var l = dt(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2113
2155
  on: o,
2114
2156
  send: i
2115
2157
  }), u;
2116
2158
  delete a.buffer;
2117
- for (var s = Object.keys(De), v = [], m = 0; m < s.length; m++) {
2159
+ for (var s = Object.keys(De), w = [], m = 0; m < s.length; m++) {
2118
2160
  var p = s[m];
2119
2161
  try {
2120
- De[p](e, d, n);
2121
- } catch (w) {
2122
- v.push(w);
2162
+ De[p](e, l, n);
2163
+ } catch (g) {
2164
+ w.push(g);
2123
2165
  }
2124
2166
  }
2125
- if (v.length === s.length)
2167
+ if (w.length === s.length)
2126
2168
  throw new Error(`All post-robot messaging strategies failed:
2127
2169
 
2128
- ` + v.map(function(w, b) {
2129
- return b + ". " + de(w);
2170
+ ` + w.map(function(g, b) {
2171
+ return b + ". " + de(g);
2130
2172
  }).join(`
2131
2173
 
2132
2174
  `));
@@ -2135,23 +2177,23 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2135
2177
  });
2136
2178
  }).then(te);
2137
2179
  }
2138
- function ft(e) {
2180
+ function lt(e) {
2139
2181
  return z("responseListeners").get(e);
2140
2182
  }
2141
- function lt(e) {
2183
+ function ht(e) {
2142
2184
  z("responseListeners").del(e);
2143
2185
  }
2144
- function ht(e) {
2186
+ function mt(e) {
2145
2187
  return z("erroredResponseListeners").has(e);
2146
2188
  }
2147
- function mt(e) {
2148
- var n = e.name, t = e.win, r = e.domain, o = F("requestListeners");
2189
+ function pt(e) {
2190
+ var n = e.name, t = e.win, r = e.domain, o = H("requestListeners");
2149
2191
  if (t === "*" && (t = null), r === "*" && (r = null), !n)
2150
2192
  throw new Error("Name required to get request listener");
2151
2193
  for (var i = 0, a = [t, xe()]; i < a.length; i++) {
2152
- var d = a[i];
2153
- if (d) {
2154
- var u = o.get(d);
2194
+ var l = a[i];
2195
+ if (l) {
2196
+ var u = o.get(l);
2155
2197
  if (u) {
2156
2198
  var s = u[n];
2157
2199
  if (s) {
@@ -2159,10 +2201,10 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2159
2201
  if (s[r])
2160
2202
  return s[r];
2161
2203
  if (s.__domain_regex__)
2162
- for (var v = 0, m = s.__domain_regex__; v < m.length; v++) {
2163
- var p = m[v], w = p.listener;
2204
+ for (var w = 0, m = s.__domain_regex__; w < m.length; w++) {
2205
+ var p = m[w], g = p.listener;
2164
2206
  if (re(p.regex, r))
2165
- return w;
2207
+ return g;
2166
2208
  }
2167
2209
  }
2168
2210
  if (s["*"])
@@ -2172,31 +2214,31 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2172
2214
  }
2173
2215
  }
2174
2216
  }
2175
- function Vt(e, n, t, r) {
2176
- var o = r.on, i = r.send, a = mt({
2217
+ function Yt(e, n, t, r) {
2218
+ var o = r.on, i = r.send, a = pt({
2177
2219
  name: t.name,
2178
2220
  win: e,
2179
2221
  domain: n
2180
- }), d = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2181
- function u(s, v, m) {
2222
+ }), l = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2223
+ function u(s, w, m) {
2182
2224
  return P.flush().then(function() {
2183
2225
  if (!t.fireAndForget && !$(e))
2184
2226
  try {
2185
- return Le(e, n, {
2186
- id: Y(),
2187
- origin: U(window),
2227
+ return Me(e, n, {
2228
+ id: J(),
2229
+ origin: F(window),
2188
2230
  type: "postrobot_message_response",
2189
2231
  hash: t.hash,
2190
2232
  name: t.name,
2191
2233
  ack: s,
2192
- data: v,
2234
+ data: w,
2193
2235
  error: m
2194
2236
  }, {
2195
2237
  on: o,
2196
2238
  send: i
2197
2239
  });
2198
2240
  } catch (p) {
2199
- throw new Error("Send response message failed for " + d + " in " + U() + `
2241
+ throw new Error("Send response message failed for " + l + " in " + F() + `
2200
2242
 
2201
2243
  ` + de(p));
2202
2244
  }
@@ -2205,9 +2247,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2205
2247
  return P.all([P.flush().then(function() {
2206
2248
  if (!t.fireAndForget && !$(e))
2207
2249
  try {
2208
- return Le(e, n, {
2209
- id: Y(),
2210
- origin: U(window),
2250
+ return Me(e, n, {
2251
+ id: J(),
2252
+ origin: F(window),
2211
2253
  type: "postrobot_message_ack",
2212
2254
  hash: t.hash,
2213
2255
  name: t.name
@@ -2216,7 +2258,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2216
2258
  send: i
2217
2259
  });
2218
2260
  } catch (s) {
2219
- throw new Error("Send ack message failed for " + d + " in " + U() + `
2261
+ throw new Error("Send ack message failed for " + l + " in " + F() + `
2220
2262
 
2221
2263
  ` + de(s));
2222
2264
  }
@@ -2238,9 +2280,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2238
2280
  throw s;
2239
2281
  });
2240
2282
  }
2241
- function Yt(e, n, t) {
2242
- if (!ht(t.hash)) {
2243
- var r = ft(t.hash);
2283
+ function Zt(e, n, t) {
2284
+ if (!mt(t.hash)) {
2285
+ var r = lt(t.hash);
2244
2286
  if (!r)
2245
2287
  throw new Error("No handler found for post message ack for message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2246
2288
  try {
@@ -2254,9 +2296,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2254
2296
  r.ack = !0;
2255
2297
  }
2256
2298
  }
2257
- function Jt(e, n, t) {
2258
- if (!ht(t.hash)) {
2259
- var r = ft(t.hash);
2299
+ function Kt(e, n, t) {
2300
+ if (!mt(t.hash)) {
2301
+ var r = lt(t.hash);
2260
2302
  if (!r)
2261
2303
  throw new Error("No handler found for post message response for message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2262
2304
  if (!re(r.domain, n))
@@ -2264,29 +2306,29 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2264
2306
  var o;
2265
2307
  if (e !== r.win)
2266
2308
  throw new Error("Response source does not match registered window");
2267
- lt(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2309
+ ht(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2268
2310
  source: e,
2269
2311
  origin: n,
2270
2312
  data: t.data
2271
2313
  });
2272
2314
  }
2273
2315
  }
2274
- function pt(e, n) {
2316
+ function vt(e, n) {
2275
2317
  var t = n.on, r = n.send, o = z("receivedMessages");
2276
2318
  try {
2277
2319
  if (!window || window.closed || !e.source)
2278
2320
  return;
2279
- } catch (v) {
2321
+ } catch (w) {
2280
2322
  return;
2281
2323
  }
2282
- var i = e.source, a = e.origin, d = function(v, m, p, w) {
2283
- var b = w.on, x = w.send, S;
2324
+ var i = e.source, a = e.origin, l = function(w, m, p, g) {
2325
+ var b = g.on, x = g.send, S;
2284
2326
  try {
2285
- S = dt(m, p, v, {
2327
+ S = ft(m, p, w, {
2286
2328
  on: b,
2287
2329
  send: x
2288
2330
  });
2289
- } catch (L) {
2331
+ } catch (j) {
2290
2332
  return;
2291
2333
  }
2292
2334
  if (S && typeof S == "object" && S !== null) {
@@ -2298,102 +2340,102 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2298
2340
  on: t,
2299
2341
  send: r
2300
2342
  });
2301
- if (d) {
2302
- ot(i);
2303
- for (var u = 0; u < d.length; u++) {
2304
- var s = d[u];
2343
+ if (l) {
2344
+ it(i);
2345
+ for (var u = 0; u < l.length; u++) {
2346
+ var s = l[u];
2305
2347
  if (o.has(s.id) || (o.set(s.id, !0), $(i) && !s.fireAndForget))
2306
2348
  return;
2307
2349
  s.origin.indexOf("file:") === 0 && (a = "file://");
2308
2350
  try {
2309
- s.type === "postrobot_message_request" ? Vt(i, a, s, {
2351
+ s.type === "postrobot_message_request" ? Yt(i, a, s, {
2310
2352
  on: t,
2311
2353
  send: r
2312
- }) : s.type === "postrobot_message_response" ? Jt(i, a, s) : s.type === "postrobot_message_ack" && Yt(i, a, s);
2313
- } catch (v) {
2354
+ }) : s.type === "postrobot_message_response" ? Kt(i, a, s) : s.type === "postrobot_message_ack" && Zt(i, a, s);
2355
+ } catch (w) {
2314
2356
  setTimeout(function() {
2315
- throw v;
2357
+ throw w;
2316
2358
  }, 0);
2317
2359
  }
2318
2360
  }
2319
2361
  }
2320
2362
  }
2321
- function X(e, n, t) {
2363
+ function K(e, n, t) {
2322
2364
  if (!e)
2323
2365
  throw new Error("Expected name");
2324
2366
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
2325
2367
  throw new Error("Expected handler");
2326
2368
  var r = function o(i, a) {
2327
- var d = i.name, u = i.win, s = i.domain, v = F("requestListeners");
2328
- if (!d || typeof d != "string")
2369
+ var l = i.name, u = i.win, s = i.domain, w = H("requestListeners");
2370
+ if (!l || typeof l != "string")
2329
2371
  throw new Error("Name required to add request listener");
2330
2372
  if (u && u !== "*" && G.isProxyWindow(u)) {
2331
- var m = u.awaitWindow().then(function(N) {
2373
+ var m = u.awaitWindow().then(function(M) {
2332
2374
  return o({
2333
- name: d,
2334
- win: N,
2375
+ name: l,
2376
+ win: M,
2335
2377
  domain: s
2336
2378
  }, a);
2337
2379
  });
2338
2380
  return {
2339
2381
  cancel: function() {
2340
- m.then(function(N) {
2341
- return N.cancel();
2382
+ m.then(function(M) {
2383
+ return M.cancel();
2342
2384
  }, te);
2343
2385
  }
2344
2386
  };
2345
2387
  }
2346
2388
  var p = u;
2347
2389
  if (Array.isArray(p)) {
2348
- for (var w = [], b = 0, x = p; b < x.length; b++)
2349
- w.push(o({
2350
- name: d,
2390
+ for (var g = [], b = 0, x = p; b < x.length; b++)
2391
+ g.push(o({
2392
+ name: l,
2351
2393
  domain: s,
2352
2394
  win: x[b]
2353
2395
  }, a));
2354
2396
  return {
2355
2397
  cancel: function() {
2356
- for (var N = 0; N < w.length; N++)
2357
- w[N].cancel();
2398
+ for (var M = 0; M < g.length; M++)
2399
+ g[M].cancel();
2358
2400
  }
2359
2401
  };
2360
2402
  }
2361
2403
  if (Array.isArray(s)) {
2362
- for (var S = [], C = 0, L = s; C < L.length; C++)
2404
+ for (var S = [], C = 0, j = s; C < j.length; C++)
2363
2405
  S.push(o({
2364
- name: d,
2406
+ name: l,
2365
2407
  win: p,
2366
- domain: L[C]
2408
+ domain: j[C]
2367
2409
  }, a));
2368
2410
  return {
2369
2411
  cancel: function() {
2370
- for (var N = 0; N < S.length; N++)
2371
- S[N].cancel();
2412
+ for (var M = 0; M < S.length; M++)
2413
+ S[M].cancel();
2372
2414
  }
2373
2415
  };
2374
2416
  }
2375
- var R = mt({
2376
- name: d,
2417
+ var O = pt({
2418
+ name: l,
2377
2419
  win: p,
2378
2420
  domain: s
2379
2421
  });
2380
2422
  p && p !== "*" || (p = xe());
2381
2423
  var T = (s = s || "*").toString();
2382
- if (R)
2383
- throw p && s ? new Error("Request listener already exists for " + d + " on domain " + s.toString() + " for " + (p === xe() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + d + " for " + (p === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + d + " on domain " + s.toString()) : new Error("Request listener already exists for " + d);
2384
- var j = v.getOrSet(p, function() {
2424
+ if (O)
2425
+ throw p && s ? new Error("Request listener already exists for " + l + " on domain " + s.toString() + " for " + (p === xe() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + l + " for " + (p === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + l + " on domain " + s.toString()) : new Error("Request listener already exists for " + l);
2426
+ var L = w.getOrSet(p, function() {
2385
2427
  return {};
2386
- }), I = fe(j, d, function() {
2428
+ }), W = fe(L, l, function() {
2387
2429
  return {};
2388
- }), O, V;
2389
- return Te(s) ? (O = fe(I, "__domain_regex__", function() {
2430
+ }), R, V;
2431
+ return Te(s) ? (R = fe(W, "__domain_regex__", function() {
2390
2432
  return [];
2391
2433
  })).push(V = {
2392
2434
  regex: s,
2393
2435
  listener: a
2394
- }) : I[T] = a, {
2436
+ }) : W[T] = a, {
2395
2437
  cancel: function() {
2396
- delete I[T], V && (O.splice(O.indexOf(V, 1)), O.length || delete I.__domain_regex__), Object.keys(I).length || delete j[d], p && !Object.keys(j).length && v.del(p);
2438
+ delete W[T], V && (R.splice(R.indexOf(V, 1)), R.length || delete W.__domain_regex__), Object.keys(W).length || delete L[l], p && !Object.keys(L).length && w.del(p);
2397
2439
  }
2398
2440
  };
2399
2441
  }({
@@ -2412,138 +2454,138 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2412
2454
  }
2413
2455
  };
2414
2456
  }
2415
- function Zt(e, n, t) {
2457
+ function Xt(e, n, t) {
2416
2458
  typeof (n = n || {}) == "function" && (t = n, n = {});
2417
2459
  var r = new P(), o;
2418
2460
  return n.errorHandler = function(i) {
2419
2461
  o.cancel(), r.reject(i);
2420
- }, o = X(e, n, function(i) {
2462
+ }, o = K(e, n, function(i) {
2421
2463
  if (o.cancel(), r.resolve(i), t)
2422
2464
  return t(i);
2423
2465
  }), r.cancel = o.cancel, r;
2424
2466
  }
2425
- var K = function e(n, t, r, o) {
2426
- var i = (o = o || {}).domain || "*", a = o.timeout || -1, d = o.timeout || 5e3, u = o.fireAndForget || !1;
2467
+ var X = function e(n, t, r, o) {
2468
+ var i = (o = o || {}).domain || "*", a = o.timeout || -1, l = o.timeout || 5e3, u = o.fireAndForget || !1;
2427
2469
  return G.toProxyWindow(n, {
2428
2470
  send: e
2429
2471
  }).awaitWindow().then(function(s) {
2430
2472
  return P.try(function() {
2431
- if (function(v, m, p) {
2432
- if (!v)
2473
+ if (function(w, m, p) {
2474
+ if (!w)
2433
2475
  throw new Error("Expected name");
2434
2476
  if (p && typeof p != "string" && !Array.isArray(p) && !Te(p))
2435
- throw new TypeError("Can not send " + v + ". Expected domain " + JSON.stringify(p) + " to be a string, array, or regex");
2477
+ throw new TypeError("Can not send " + w + ". Expected domain " + JSON.stringify(p) + " to be a string, array, or regex");
2436
2478
  if ($(m))
2437
- throw new Error("Can not send " + v + ". Target window is closed");
2438
- }(t, s, i), function(v, m) {
2439
- var p = _e(m);
2479
+ throw new Error("Can not send " + w + ". Target window is closed");
2480
+ }(t, s, i), function(w, m) {
2481
+ var p = qe(m);
2440
2482
  if (p)
2441
- return p === v;
2442
- if (m === v || function(x) {
2483
+ return p === w;
2484
+ if (m === w || function(x) {
2443
2485
  x === void 0 && (x = window);
2444
2486
  try {
2445
2487
  if (x.top)
2446
2488
  return x.top;
2447
- } catch (R) {
2489
+ } catch (O) {
2448
2490
  }
2449
- if (B(x) === x)
2491
+ if (k(x) === x)
2450
2492
  return x;
2451
2493
  try {
2452
- if (Fe(window, x) && window.top)
2494
+ if (He(window, x) && window.top)
2453
2495
  return window.top;
2454
- } catch (R) {
2496
+ } catch (O) {
2455
2497
  }
2456
2498
  try {
2457
- if (Fe(x, window) && window.top)
2499
+ if (He(x, window) && window.top)
2458
2500
  return window.top;
2459
- } catch (R) {
2501
+ } catch (O) {
2460
2502
  }
2461
- for (var S = 0, C = function R(T) {
2462
- for (var j = [], I = 0, O = He(T); I < O.length; I++) {
2463
- var V = O[I];
2464
- j.push(V);
2465
- for (var N = 0, he = R(V); N < he.length; N++)
2466
- j.push(he[N]);
2503
+ for (var S = 0, C = function O(T) {
2504
+ for (var L = [], W = 0, R = _e(T); W < R.length; W++) {
2505
+ var V = R[W];
2506
+ L.push(V);
2507
+ for (var M = 0, he = O(V); M < he.length; M++)
2508
+ L.push(he[M]);
2467
2509
  }
2468
- return j;
2510
+ return L;
2469
2511
  }(x); S < C.length; S++) {
2470
- var L = C[S];
2512
+ var j = C[S];
2471
2513
  try {
2472
- if (L.top)
2473
- return L.top;
2474
- } catch (R) {
2514
+ if (j.top)
2515
+ return j.top;
2516
+ } catch (O) {
2475
2517
  }
2476
- if (B(L) === L)
2477
- return L;
2518
+ if (k(j) === j)
2519
+ return j;
2478
2520
  }
2479
2521
  }(m) === m)
2480
2522
  return !1;
2481
- for (var w = 0, b = He(v); w < b.length; w++)
2482
- if (b[w] === m)
2523
+ for (var g = 0, b = _e(w); g < b.length; g++)
2524
+ if (b[g] === m)
2483
2525
  return !0;
2484
2526
  return !1;
2485
2527
  }(window, s))
2486
- return function(v, m, p) {
2528
+ return function(w, m, p) {
2487
2529
  m === void 0 && (m = 5e3), p === void 0 && (p = "Window");
2488
- var w = function(b) {
2489
- return F("helloPromises").getOrSet(b, function() {
2530
+ var g = function(b) {
2531
+ return H("helloPromises").getOrSet(b, function() {
2490
2532
  return new P();
2491
2533
  });
2492
- }(v);
2493
- return m !== -1 && (w = w.timeout(m, new Error(p + " did not load after " + m + "ms"))), w;
2494
- }(s, d);
2495
- }).then(function(v) {
2496
- return function(m, p, w, b) {
2534
+ }(w);
2535
+ return m !== -1 && (g = g.timeout(m, new Error(p + " did not load after " + m + "ms"))), g;
2536
+ }(s, l);
2537
+ }).then(function(w) {
2538
+ return function(m, p, g, b) {
2497
2539
  var x = b.send;
2498
2540
  return P.try(function() {
2499
2541
  return typeof p == "string" ? p : P.try(function() {
2500
- return w || Re(m, {
2542
+ return g || Oe(m, {
2501
2543
  send: x
2502
2544
  }).then(function(S) {
2503
2545
  return S.domain;
2504
2546
  });
2505
2547
  }).then(function(S) {
2506
2548
  if (!re(p, p))
2507
- throw new Error("Domain " + Ze(p) + " does not match " + Ze(p));
2549
+ throw new Error("Domain " + Ke(p) + " does not match " + Ke(p));
2508
2550
  return S;
2509
2551
  });
2510
2552
  });
2511
- }(s, i, (v === void 0 ? {} : v).domain, {
2553
+ }(s, i, (w === void 0 ? {} : w).domain, {
2512
2554
  send: e
2513
2555
  });
2514
- }).then(function(v) {
2515
- var m = v, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new P(), b = t + "_" + Y();
2556
+ }).then(function(w) {
2557
+ var m = w, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, g = new P(), b = t + "_" + J();
2516
2558
  if (!u) {
2517
2559
  var x = {
2518
2560
  name: t,
2519
2561
  win: s,
2520
2562
  domain: m,
2521
- promise: w
2563
+ promise: g
2522
2564
  };
2523
- (function(I, O) {
2524
- z("responseListeners").set(I, O);
2565
+ (function(W, R) {
2566
+ z("responseListeners").set(W, R);
2525
2567
  })(b, x);
2526
- var S = F("requestPromises").getOrSet(s, function() {
2568
+ var S = H("requestPromises").getOrSet(s, function() {
2527
2569
  return [];
2528
2570
  });
2529
- S.push(w), w.catch(function() {
2530
- (function(I) {
2531
- z("erroredResponseListeners").set(I, !0);
2532
- })(b), lt(b);
2571
+ S.push(g), g.catch(function() {
2572
+ (function(W) {
2573
+ z("erroredResponseListeners").set(W, !0);
2574
+ })(b), ht(b);
2533
2575
  });
2534
- var C = function(I) {
2535
- return F("knownWindows").get(I, !1);
2536
- }(s) ? 1e4 : 2e3, L = a, R = C, T = L, j = function(I, O) {
2576
+ var C = function(W) {
2577
+ return H("knownWindows").get(W, !1);
2578
+ }(s) ? 1e4 : 2e3, j = a, O = C, T = j, L = function(W, R) {
2537
2579
  var V;
2538
- return function N() {
2580
+ return function M() {
2539
2581
  V = setTimeout(function() {
2540
2582
  (function() {
2541
2583
  if ($(s))
2542
- return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2584
+ return g.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2543
2585
  if (x.cancelled)
2544
- return w.reject(new Error("Response listener was cancelled for " + t));
2545
- R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && w.reject(new Error("No response for postMessage " + p + " in " + U() + " in " + L + "ms")) : w.reject(new Error("No ack for postMessage " + p + " in " + U() + " in " + C + "ms"));
2546
- })(), N();
2586
+ return g.reject(new Error("Response listener was cancelled for " + t));
2587
+ O = Math.max(O - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || O !== 0 ? T === 0 && g.reject(new Error("No response for postMessage " + p + " in " + F() + " in " + j + "ms")) : g.reject(new Error("No ack for postMessage " + p + " in " + F() + " in " + C + "ms"));
2588
+ })(), M();
2547
2589
  }, 500);
2548
2590
  }(), {
2549
2591
  cancel: function() {
@@ -2551,123 +2593,123 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2551
2593
  }
2552
2594
  };
2553
2595
  }();
2554
- w.finally(function() {
2555
- j.cancel(), S.splice(S.indexOf(w, 1));
2596
+ g.finally(function() {
2597
+ L.cancel(), S.splice(S.indexOf(g, 1));
2556
2598
  }).catch(te);
2557
2599
  }
2558
- return Le(s, m, {
2559
- id: Y(),
2560
- origin: U(window),
2600
+ return Me(s, m, {
2601
+ id: J(),
2602
+ origin: F(window),
2561
2603
  type: "postrobot_message_request",
2562
2604
  hash: b,
2563
2605
  name: t,
2564
2606
  data: r,
2565
2607
  fireAndForget: u
2566
2608
  }, {
2567
- on: X,
2609
+ on: K,
2568
2610
  send: e
2569
2611
  }).then(function() {
2570
- return u ? w.resolve() : w;
2571
- }, function(I) {
2572
- throw new Error("Send request message failed for " + p + " in " + U() + `
2612
+ return u ? g.resolve() : g;
2613
+ }, function(W) {
2614
+ throw new Error("Send request message failed for " + p + " in " + F() + `
2573
2615
 
2574
- ` + de(I));
2616
+ ` + de(W));
2575
2617
  });
2576
2618
  });
2577
2619
  });
2578
2620
  };
2579
- function Xt(e, n, t) {
2580
- return ct(e, n, t, {
2581
- on: X,
2582
- send: K
2621
+ function Qt(e, n, t) {
2622
+ return dt(e, n, t, {
2623
+ on: K,
2624
+ send: X
2583
2625
  });
2584
2626
  }
2585
- function Kt(e, n, t) {
2586
- return dt(e, n, t, {
2587
- on: X,
2588
- send: K
2627
+ function en(e, n, t) {
2628
+ return ft(e, n, t, {
2629
+ on: K,
2630
+ send: X
2589
2631
  });
2590
2632
  }
2591
- function Qt(e) {
2633
+ function tn(e) {
2592
2634
  return new G({
2593
- send: K,
2635
+ send: X,
2594
2636
  win: e
2595
2637
  });
2596
2638
  }
2597
- function en(e) {
2639
+ function nn(e) {
2598
2640
  return G.toProxyWindow(e, {
2599
- send: K
2641
+ send: X
2600
2642
  });
2601
2643
  }
2602
- function vt() {
2644
+ function wt() {
2603
2645
  le().initialized || (le().initialized = !0, n = (e = {
2604
- on: X,
2605
- send: K
2646
+ on: K,
2647
+ send: X
2606
2648
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2607
- return pt(o, {
2649
+ return vt(o, {
2608
2650
  on: n,
2609
2651
  send: t
2610
2652
  });
2611
2653
  }, function(o) {
2612
2654
  var i = o.on, a = o.send;
2613
2655
  z().getOrSet("postMessageListener", function() {
2614
- return function(d, u, s) {
2615
- return d.addEventListener("message", s), {
2656
+ return function(l, u, s) {
2657
+ return l.addEventListener("message", s), {
2616
2658
  cancel: function() {
2617
- d.removeEventListener("message", s);
2659
+ l.removeEventListener("message", s);
2618
2660
  }
2619
2661
  };
2620
- }(window, 0, function(d) {
2662
+ }(window, 0, function(l) {
2621
2663
  (function(u, s) {
2622
- var v = s.on, m = s.send;
2664
+ var w = s.on, m = s.send;
2623
2665
  P.try(function() {
2624
- var p = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2625
- if (w === "null" && (w = "file://"), p) {
2626
- if (!w)
2666
+ var p = u.source || u.sourceElement, g = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2667
+ if (g === "null" && (g = "file://"), p) {
2668
+ if (!g)
2627
2669
  throw new Error("Post message did not have origin domain");
2628
- pt({
2670
+ vt({
2629
2671
  source: p,
2630
- origin: w,
2672
+ origin: g,
2631
2673
  data: b
2632
2674
  }, {
2633
- on: v,
2675
+ on: w,
2634
2676
  send: m
2635
2677
  });
2636
2678
  }
2637
2679
  });
2638
- })(d, {
2680
+ })(l, {
2639
2681
  on: i,
2640
2682
  send: a
2641
2683
  });
2642
2684
  });
2643
2685
  });
2644
2686
  }({
2645
- on: X,
2646
- send: K
2687
+ on: K,
2688
+ send: X
2647
2689
  }), function(o) {
2648
2690
  var i = o.on, a = o.send;
2649
2691
  z("builtinListeners").getOrSet("helloListener", function() {
2650
- var d = i("postrobot_hello", {
2692
+ var l = i("postrobot_hello", {
2651
2693
  domain: "*"
2652
2694
  }, function(s) {
2653
- return nt(s.source, {
2695
+ return rt(s.source, {
2654
2696
  domain: s.origin
2655
2697
  }), {
2656
- instanceID: tt()
2698
+ instanceID: nt()
2657
2699
  };
2658
- }), u = _e();
2659
- return u && Re(u, {
2700
+ }), u = qe();
2701
+ return u && Oe(u, {
2660
2702
  send: a
2661
2703
  }).catch(function(s) {
2662
- }), d;
2704
+ }), l;
2663
2705
  });
2664
2706
  }({
2665
- on: X,
2666
- send: K
2707
+ on: K,
2708
+ send: X
2667
2709
  }));
2668
2710
  var e, n, t, r;
2669
2711
  }
2670
- function tn() {
2712
+ function rn() {
2671
2713
  (function() {
2672
2714
  for (var n = z("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2673
2715
  var o = r[t], i = n.get(o);
@@ -2677,29 +2719,29 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2677
2719
  var e;
2678
2720
  delete window.__post_robot_10_0_46__;
2679
2721
  }
2680
- var nn = !0;
2681
- function rn(e) {
2682
- for (var n = 0, t = F("requestPromises").get(e, []); n < t.length; n++)
2722
+ var on = !0;
2723
+ function an(e) {
2724
+ for (var n = 0, t = H("requestPromises").get(e, []); n < t.length; n++)
2683
2725
  t[n].reject(new Error("Window " + ($(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2684
2726
  }
2685
- vt();
2727
+ wt();
2686
2728
  }]);
2687
2729
  });
2688
- })(Dt);
2689
- var Zn = Dt.exports;
2690
- (function(c) {
2691
- c.exports = Zn, c.exports.default = c.exports;
2692
- })(Nt);
2693
- var Lt = Nt.exports;
2694
- const Xn = /* @__PURE__ */ Jn(Lt), Ue = /* @__PURE__ */ ln({
2730
+ })(jt);
2731
+ var Kn = jt.exports;
2732
+ (function(d) {
2733
+ d.exports = Kn, d.exports.default = d.exports;
2734
+ })(Mt);
2735
+ var zt = Mt.exports;
2736
+ const Xn = /* @__PURE__ */ Zn(zt), Fe = /* @__PURE__ */ mn({
2695
2737
  __proto__: null,
2696
2738
  default: Xn
2697
- }, [Lt]);
2739
+ }, [zt]);
2698
2740
  export {
2699
- Ot as ConsentBox,
2700
- Qn as PrivacyCenterBox,
2701
- er as SoyioTypes,
2702
- tr as SoyioWidget,
2703
- hn as _TooltipManager,
2704
- tr as default
2741
+ Nt as ConsentBox,
2742
+ er as PrivacyCenterBox,
2743
+ tr as SoyioTypes,
2744
+ nr as SoyioWidget,
2745
+ ke as _TooltipManager,
2746
+ nr as default
2705
2747
  };