@soyio/soyio-widget 2.10.1 → 2.10.2

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,36 +1,36 @@
1
1
  var en = Object.defineProperty;
2
2
  var tn = Object.getPrototypeOf;
3
3
  var nn = Reflect.get;
4
- var rn = (f, d, m) => d in f ? en(f, d, { enumerable: !0, configurable: !0, writable: !0, value: m }) : f[d] = m;
5
- var O = (f, d, m) => (rn(f, typeof d != "symbol" ? d + "" : d, m), m), on = (f, d, m) => {
4
+ var rn = (f, d, h) => d in f ? en(f, d, { enumerable: !0, configurable: !0, writable: !0, value: h }) : f[d] = h;
5
+ var O = (f, d, h) => (rn(f, typeof d != "symbol" ? d + "" : d, h), h), on = (f, d, h) => {
6
6
  if (!d.has(f))
7
- throw TypeError("Cannot " + m);
7
+ throw TypeError("Cannot " + h);
8
8
  };
9
- var gt = (f, d, m) => {
9
+ var vt = (f, d, h) => {
10
10
  if (d.has(f))
11
11
  throw TypeError("Cannot add the same private member more than once");
12
- d instanceof WeakSet ? d.add(f) : d.set(f, m);
12
+ d instanceof WeakSet ? d.add(f) : d.set(f, h);
13
13
  };
14
- var yt = (f, d, m) => (on(f, d, "access private method"), m), Et = (f, d, m) => nn(tn(f), m, d);
15
- var $ = (f, d, m) => new Promise((p, g) => {
14
+ var wt = (f, d, h) => (on(f, d, "access private method"), h), gt = (f, d, h) => nn(tn(f), h, d);
15
+ var $ = (f, d, h) => new Promise((p, g) => {
16
16
  var y = (N) => {
17
17
  try {
18
- I(m.next(N));
18
+ I(h.next(N));
19
19
  } catch (j) {
20
20
  g(j);
21
21
  }
22
22
  }, E = (N) => {
23
23
  try {
24
- I(m.throw(N));
24
+ I(h.throw(N));
25
25
  } catch (j) {
26
26
  g(j);
27
27
  }
28
28
  }, I = (N) => N.done ? p(N.value) : Promise.resolve(N.value).then(y, E);
29
- I((m = m.apply(f, d)).next());
29
+ I((h = h.apply(f, d)).next());
30
30
  });
31
31
  function an(f, d) {
32
- for (var m = 0; m < d.length; m++) {
33
- const p = d[m];
32
+ for (var h = 0; h < d.length; h++) {
33
+ const p = d[h];
34
34
  if (typeof p != "string" && !Array.isArray(p)) {
35
35
  for (const g in p)
36
36
  if (g !== "default" && !(g in f)) {
@@ -71,8 +71,8 @@ class sn {
71
71
  transform: translateX(-50%) translateY(-100%);
72
72
  margin-top: -8px;
73
73
  `, this.tooltipContent = document.createElement("div"), this.tooltipContent.style.cssText = "text-align: center;", this.tooltipElement.appendChild(this.tooltipContent);
74
- const m = document.createElement("div");
75
- m.style.cssText = `
74
+ const h = document.createElement("div");
75
+ h.style.cssText = `
76
76
  position: absolute;
77
77
  bottom: -4px;
78
78
  left: 50%;
@@ -81,13 +81,13 @@ class sn {
81
81
  height: 8px;
82
82
  background: white;
83
83
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
84
- `, this.tooltipElement.appendChild(m), document.body.appendChild(this.tooltipElement);
84
+ `, this.tooltipElement.appendChild(h), document.body.appendChild(this.tooltipElement);
85
85
  }
86
86
  setupGlobalListeners() {
87
87
  window.addEventListener("scroll", () => this.hide(), !0), window.addEventListener("resize", () => this.hide()), window.addEventListener("orientationchange", () => this.hide());
88
88
  }
89
- show(d, m, p) {
90
- !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${m}px`, this.tooltipElement.style.top = `${p}px`, this.tooltipElement.style.opacity = "1");
89
+ show(d, h, p) {
90
+ !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${h}px`, this.tooltipElement.style.top = `${p}px`, this.tooltipElement.style.opacity = "1");
91
91
  }
92
92
  hide() {
93
93
  this.tooltipElement && (this.tooltipElement.style.opacity = "0");
@@ -97,36 +97,36 @@ class sn {
97
97
  (d = this.tooltipElement) == null || d.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
98
98
  }
99
99
  }
100
- const je = "https://app.soyio.id", ke = "https://sandbox.soyio.id", un = [
100
+ const bt = "https://app.soyio.id", It = "https://sandbox.soyio.id", un = "https://privacy.soyio.id", cn = "https://privacy-sandbox.soyio.id", dn = [
101
101
  "DISCLOSURE_REQUEST_SUCCESSFUL",
102
102
  "IDENTITY_REGISTERED",
103
103
  "IDENTITY_SIGNATURE",
104
104
  "UNEXPECTED_ERROR",
105
105
  "DENIED_CAMERA_PERMISSION",
106
106
  "REJECTED_SIGNATURE"
107
- ], cn = "WIDGET_CLOSED", dn = 420, fn = 720, ln = 500, hn = {
107
+ ], fn = "WIDGET_CLOSED", ln = 420, hn = 720, mn = 500, pn = {
108
108
  minWidth: "375px",
109
109
  maxWidth: "50rem"
110
- }, mn = {
110
+ }, vn = {
111
111
  minWidth: "375px",
112
112
  maxWidth: "36rem"
113
- }, pn = {
113
+ }, wn = {
114
114
  minWidth: "375px",
115
115
  maxWidth: "50rem"
116
116
  };
117
- function vn(f, d, m) {
117
+ function gn(f, d, h) {
118
118
  return $(this, null, function* () {
119
119
  if (!f.contentWindow)
120
120
  throw new Error("Invalid iframe: contentWindow is null");
121
- const p = yield Promise.resolve().then(() => Fe);
121
+ const p = yield Promise.resolve().then(() => ke);
122
122
  try {
123
- yield p.send(f.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: m });
123
+ yield p.send(f.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: h });
124
124
  } catch (g) {
125
125
  console.error("Failed to send appearance config:", g);
126
126
  }
127
127
  });
128
128
  }
129
- const wn = "IFRAME_READY", gn = "IFRAME_HEIGHT_CHANGE", yn = "TOOLTIP_STATE_CHANGE", En = "CONSENT_STATE_CHANGE", J = {
129
+ const yn = "IFRAME_READY", En = "IFRAME_HEIGHT_CHANGE", xn = "TOOLTIP_STATE_CHANGE", Sn = "CONSENT_STATE_CHANGE", Y = {
130
130
  // BASE
131
131
  onHeightChange: {},
132
132
  onIframeReady: {},
@@ -134,49 +134,49 @@ const wn = "IFRAME_READY", gn = "IFRAME_HEIGHT_CHANGE", yn = "TOOLTIP_STATE_CHAN
134
134
  // CONSENT
135
135
  onStateChange: {}
136
136
  };
137
- let xt, St, bt, Wt;
138
- function xn() {
137
+ let yt, Et, xt, St;
138
+ function bn() {
139
139
  return $(this, null, function* () {
140
- const f = yield Promise.resolve().then(() => Fe);
141
- xt || St || bt || Wt || (xt = f.on(gn, (d) => $(this, null, function* () {
142
- const m = d.data, p = J.onHeightChange[m.identifier];
143
- p && p(m.height);
144
- })), St = f.on(wn, (d) => $(this, null, function* () {
145
- const m = d.data, p = J.onIframeReady[m.identifier];
140
+ const f = yield Promise.resolve().then(() => ke);
141
+ yt || Et || xt || St || (yt = f.on(En, (d) => $(this, null, function* () {
142
+ const h = d.data, p = Y.onHeightChange[h.identifier];
143
+ p && p(h.height);
144
+ })), Et = f.on(yn, (d) => $(this, null, function* () {
145
+ const h = d.data, p = Y.onIframeReady[h.identifier];
146
146
  p && p();
147
- })), bt = f.on(yn, (d) => $(this, null, function* () {
148
- const m = d.data, p = J.onTooltipChange[m.identifier];
149
- p && p(m);
150
- })), Wt = f.on(En, (d) => $(this, null, function* () {
151
- const m = d.data, p = J.onStateChange[m.identifier];
152
- p && p(m);
147
+ })), xt = f.on(xn, (d) => $(this, null, function* () {
148
+ const h = d.data, p = Y.onTooltipChange[h.identifier];
149
+ p && p(h);
150
+ })), St = f.on(Sn, (d) => $(this, null, function* () {
151
+ const h = d.data, p = Y.onStateChange[h.identifier];
152
+ p && p(h);
153
153
  })));
154
154
  });
155
155
  }
156
- function It(f, d) {
156
+ function Wt(f, d) {
157
157
  const {
158
- onHeightChange: m,
158
+ onHeightChange: h,
159
159
  onIframeReady: p,
160
160
  onTooltipChange: g,
161
161
  onStateChange: y
162
162
  } = d;
163
- m && (J.onHeightChange[f] = m), p && (J.onIframeReady[f] = p), g && (J.onTooltipChange[f] = g), y && (J.onStateChange[f] = y);
163
+ h && (Y.onHeightChange[f] = h), p && (Y.onIframeReady[f] = p), g && (Y.onTooltipChange[f] = g), y && (Y.onStateChange[f] = y);
164
164
  }
165
- function Sn(f) {
166
- delete J.onHeightChange[f], delete J.onIframeReady[f], delete J.onTooltipChange[f], delete J.onStateChange[f];
165
+ function In(f) {
166
+ delete Y.onHeightChange[f], delete Y.onIframeReady[f], delete Y.onTooltipChange[f], delete Y.onStateChange[f];
167
167
  }
168
- function bn(f) {
168
+ function Wn(f) {
169
169
  const d = document.getElementById(f);
170
170
  d && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), d.remove());
171
171
  }
172
- function Wn(f) {
172
+ function Cn(f) {
173
173
  const d = document.querySelector(f);
174
174
  if (!d)
175
175
  throw new Error(`Iframe div container with id '${f}' not found`);
176
176
  if (d.tagName.toLowerCase() !== "div")
177
177
  throw new Error(`Iframe container with id '${f}' must be a <div> element`);
178
- const m = d;
179
- return m.style.position = "relative", m.style.cssText += `
178
+ const h = d;
179
+ return h.style.position = "relative", h.style.cssText += `
180
180
  padding: 0 !important;
181
181
  margin: 0 !important;
182
182
  display: flex !important;
@@ -185,14 +185,14 @@ function Wn(f) {
185
185
  border: none !important;
186
186
  transition: height 0.35s !important;
187
187
  opacity: 1 !important;
188
- `, m;
188
+ `, h;
189
189
  }
190
- function In(f, d, m) {
190
+ function Pn(f, d, h) {
191
191
  const p = document.createElement("iframe");
192
192
  return p.id = d, p.src = f, p.style.cssText += `
193
193
  width: 100% !important;
194
- min-width: ${m.minWidth} !important;
195
- max-width: ${m.maxWidth} !important;
194
+ min-width: ${h.minWidth} !important;
195
+ max-width: ${h.maxWidth} !important;
196
196
  border: none !important;
197
197
  overflow: hidden !important;
198
198
  opacity: 1;
@@ -200,7 +200,7 @@ function In(f, d, m) {
200
200
  opacity 0.4s 0.1s;
201
201
  `, p;
202
202
  }
203
- function Cn() {
203
+ function Tn() {
204
204
  return Math.random().toString(36).substring(2, 10);
205
205
  }
206
206
  class be {
@@ -210,13 +210,13 @@ class be {
210
210
  O(this, "options");
211
211
  O(this, "appearance");
212
212
  O(this, "tooltipManager");
213
- O(this, "defaultIframeCSSConfig", hn);
213
+ O(this, "defaultIframeCSSConfig", pn);
214
214
  O(this, "Skeleton", null);
215
215
  O(this, "defaultUniqueId");
216
216
  this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new sn(), this.defaultUniqueId = be.generateUniqueId();
217
217
  }
218
218
  static generateUniqueId() {
219
- return Cn();
219
+ return Tn();
220
220
  }
221
221
  get uniqueIdentifier() {
222
222
  return this.defaultUniqueId;
@@ -227,41 +227,41 @@ class be {
227
227
  handleHeightChange(d) {
228
228
  if (!this.iframe || (this.iframe.style.height = `${d}px`, d > 0))
229
229
  return;
230
- const { parentElement: m } = this.iframe;
231
- m && (m.style.display = "none");
230
+ const { parentElement: h } = this.iframe;
231
+ h && (h.style.display = "none");
232
232
  }
233
233
  handleIframeReady() {
234
- this.iframe && (this.options.onReady && this.options.onReady(), vn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
234
+ this.iframe && (this.options.onReady && this.options.onReady(), gn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
235
235
  }
236
236
  handleTooltipChange(d) {
237
237
  if (!this.iframe)
238
238
  return;
239
- const m = this.iframe.getBoundingClientRect(), { text: p, coordinates: g, isVisible: y } = d, E = g.x + m.left, I = g.y + m.top;
239
+ const h = this.iframe.getBoundingClientRect(), { text: p, coordinates: g, isVisible: y } = d, E = g.x + h.left, I = g.y + h.top;
240
240
  y ? this.tooltipManager.show(p, E, I) : this.tooltipManager.hide();
241
241
  }
242
242
  setupListeners() {
243
243
  return $(this, null, function* () {
244
- yield xn();
244
+ yield bn();
245
245
  const d = {
246
246
  onHeightChange: this.handleHeightChange.bind(this),
247
247
  onIframeReady: this.handleIframeReady.bind(this),
248
248
  onTooltipChange: this.handleTooltipChange.bind(this)
249
249
  };
250
- It(this.uniqueIdentifier, d);
250
+ Wt(this.uniqueIdentifier, d);
251
251
  });
252
252
  }
253
253
  mount(d) {
254
254
  return $(this, null, function* () {
255
- yield this.setupListeners(), bn(this.iframeIdentifier);
256
- const m = Wn(d), p = this.iframeUrl();
257
- return this.iframe = In(p, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(m)), m.appendChild(this.iframe), this;
255
+ yield this.setupListeners(), Wn(this.iframeIdentifier);
256
+ const h = Cn(d), p = this.iframeUrl();
257
+ return this.iframe = Pn(p, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(h)), h.appendChild(this.iframe), this;
258
258
  });
259
259
  }
260
260
  unmount() {
261
- Sn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
261
+ In(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
262
262
  }
263
263
  }
264
- class Pn {
264
+ class Rn {
265
265
  constructor(d) {
266
266
  O(this, "element");
267
267
  O(this, "identifier");
@@ -283,8 +283,8 @@ class Pn {
283
283
  flex-direction: column;
284
284
  gap: 1rem;
285
285
  `;
286
- const m = document.createElement("div");
287
- m.style.cssText = `
286
+ const h = document.createElement("div");
287
+ h.style.cssText = `
288
288
  padding: 1rem;
289
289
  height: 100%;
290
290
  max-width: 100%;
@@ -370,15 +370,15 @@ class Pn {
370
370
  animation: shimmer 1.5s infinite;
371
371
  border-radius: 0.125rem;
372
372
  `, !document.getElementById("skeleton-animation")) {
373
- const Z = document.createElement("style");
374
- Z.id = "skeleton-animation", Z.textContent = `
373
+ const X = document.createElement("style");
374
+ X.id = "skeleton-animation", X.textContent = `
375
375
  @keyframes shimmer {
376
376
  0% { background-position: 200% 0; }
377
377
  100% { background-position: -200% 0; }
378
378
  }
379
- `, document.head.appendChild(Z);
379
+ `, document.head.appendChild(X);
380
380
  }
381
- p.appendChild(g), p.appendChild(y), p.appendChild(E), j.appendChild(q), j.appendChild(oe), I.appendChild(N), I.appendChild(j), m.appendChild(p), m.appendChild(I), this.element.appendChild(m);
381
+ p.appendChild(g), p.appendChild(y), p.appendChild(E), j.appendChild(q), j.appendChild(oe), I.appendChild(N), I.appendChild(j), h.appendChild(p), h.appendChild(I), this.element.appendChild(h);
382
382
  }
383
383
  cleanupExistingSkeleton() {
384
384
  const d = document.getElementById(this.identifier);
@@ -391,7 +391,7 @@ class Pn {
391
391
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
392
392
  }
393
393
  }
394
- function Tn(f) {
394
+ function An(f) {
395
395
  var E;
396
396
  const d = [
397
397
  "actionToken",
@@ -399,7 +399,7 @@ function Tn(f) {
399
399
  "context",
400
400
  "optionalReconsentBehavior",
401
401
  "mandatoryReconsentBehavior"
402
- ], m = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (m ? ke : je), g = new URLSearchParams();
402
+ ], h = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (h ? It : bt), g = new URLSearchParams();
403
403
  d.forEach((I) => {
404
404
  f[I] && g.set(I, f[I]);
405
405
  });
@@ -407,24 +407,24 @@ function Tn(f) {
407
407
  return `${p}/embed/consents/${f.consentTemplateId}${y ? `?${y}` : ""}`;
408
408
  }
409
409
  class Ct extends be {
410
- constructor(m) {
411
- super(m);
410
+ constructor(h) {
411
+ super(h);
412
412
  O(this, "defaultIframePrefix", "consent-box");
413
- O(this, "defaultIframeCSSConfig", mn);
413
+ O(this, "defaultIframeCSSConfig", vn);
414
414
  O(this, "state", {
415
415
  isSelected: !1,
416
416
  actionToken: null
417
417
  });
418
- this.Skeleton = Pn;
418
+ this.Skeleton = Rn;
419
419
  }
420
420
  get uniqueIdentifier() {
421
421
  return this.options.consentTemplateId;
422
422
  }
423
423
  iframeUrl() {
424
- return Tn(this.options);
424
+ return An(this.options);
425
425
  }
426
- handleStateChange(m) {
427
- const { isSelected: p, actionToken: g } = m;
426
+ handleStateChange(h) {
427
+ const { isSelected: p, actionToken: g } = h;
428
428
  this.state = { isSelected: p, actionToken: g }, this.options.onEvent({
429
429
  eventName: "CONSENT_CHECKBOX_CHANGE",
430
430
  isSelected: p,
@@ -433,7 +433,7 @@ class Ct extends be {
433
433
  }
434
434
  setupListeners() {
435
435
  return $(this, null, function* () {
436
- yield Et(Ct.prototype, this, "setupListeners").call(this), It(this.uniqueIdentifier, {
436
+ yield gt(Ct.prototype, this, "setupListeners").call(this), Wt(this.uniqueIdentifier, {
437
437
  onStateChange: this.handleStateChange.bind(this)
438
438
  });
439
439
  });
@@ -442,103 +442,111 @@ class Ct extends be {
442
442
  return this.state;
443
443
  }
444
444
  }
445
- function Rn(f) {
446
- var p;
447
- return f.developmentUrl ? f.developmentUrl : `${((p = f.isSandbox) != null ? p : !1) ? ke : je}/embed/privacy-center`;
445
+ function On(f) {
446
+ var E;
447
+ const d = [
448
+ "subjectId",
449
+ "companyId"
450
+ ], h = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (h ? cn : un), g = new URLSearchParams();
451
+ d.forEach((I) => {
452
+ f[I] && g.set(I, f[I]);
453
+ });
454
+ const y = g.toString();
455
+ return `${p}/${y ? `?${y}` : ""}`;
448
456
  }
449
- class Bn extends be {
457
+ class Yn extends be {
450
458
  constructor() {
451
459
  super(...arguments);
452
460
  O(this, "defaultIframePrefix", "privacy-center");
453
461
  O(this, "_uniqueIdentifier", "privacy-center");
454
- O(this, "defaultIframeCSSConfig", pn);
462
+ O(this, "defaultIframeCSSConfig", wn);
455
463
  }
456
464
  get uniqueIdentifier() {
457
465
  return this._uniqueIdentifier;
458
466
  }
459
467
  iframeUrl() {
460
- return Rn(this.options);
468
+ return On(this.options);
461
469
  }
462
470
  }
463
- const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
+ const Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
464
472
  __proto__: null
465
473
  }, Symbol.toStringTag, { value: "Module" }));
466
- function An(f) {
474
+ function Dn(f) {
467
475
  let d = "widget/";
468
476
  return "disclosureRequestId" in f.configProps ? d += ["disclosures", f.configProps.disclosureRequestId].join("/") : d += f.request, d;
469
477
  }
470
- function On(f) {
478
+ function Nn(f) {
471
479
  var y;
472
- const d = (y = f.isSandbox) != null ? y : !1, m = f.developmentUrl || (d ? ke : je), p = Object.entries(f.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = An(f);
473
- return `${m}/${g}?sdk=web&${p}`;
480
+ const d = (y = f.isSandbox) != null ? y : !1, h = f.developmentUrl || (d ? It : bt), p = Object.entries(f.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = Dn(f);
481
+ return `${h}/${g}?sdk=web&${p}`;
474
482
  }
475
- const Dn = !!(typeof window != "undefined" && window.document && window.document.createElement);
476
- let V = null, Le = null;
483
+ const Ln = !!(typeof window != "undefined" && window.document && window.document.createElement);
484
+ let V = null, ze = null;
477
485
  function Me(f = null) {
478
486
  V && !V.closed && V.focus(), f == null || f.preventDefault();
479
487
  }
480
- function Ue() {
488
+ function je() {
481
489
  document.body.style.filter = "", document.body.removeEventListener("click", Me);
482
490
  }
483
- function Nn() {
484
- Le = setInterval(() => {
485
- (!V || V.closed) && (Le && clearInterval(Le), Ue());
486
- }, ln);
491
+ function zn() {
492
+ ze = setInterval(() => {
493
+ (!V || V.closed) && (ze && clearInterval(ze), je());
494
+ }, mn);
487
495
  }
488
- function zn(f) {
489
- const d = On(f), m = dn, p = fn, 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, I = window.innerHeight || document.documentElement.clientHeight || window.screen.height, N = E / window.screen.availWidth, j = (E - m) / 2 / N + g, q = (I - p) / 2 / N + y;
496
+ function Mn(f) {
497
+ const d = Nn(f), h = ln, p = hn, 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, I = window.innerHeight || document.documentElement.clientHeight || window.screen.height, N = E / window.screen.availWidth, j = (E - h) / 2 / N + g, q = (I - p) / 2 / N + y;
490
498
  document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), V = window.open(
491
499
  d,
492
500
  "Soyio",
493
501
  `scrollbars=yes,
494
- width=${m},
502
+ width=${h},
495
503
  height=${p},
496
504
  top=${q},
497
505
  left=${j}`
498
- ), Me(), Nn();
506
+ ), Me(), zn();
499
507
  }
500
- function Ln() {
501
- V && (V.close(), V = null), Ue();
508
+ function jn() {
509
+ V && (V.close(), V = null), je();
502
510
  }
503
- const Mn = "WIDGET_EVENT";
511
+ const kn = "WIDGET_EVENT";
504
512
  let me = null;
505
- function jn() {
513
+ function Un() {
506
514
  me && (me.cancel(), me = null);
507
515
  }
508
- function kn(f) {
516
+ function Fn(f) {
509
517
  return $(this, null, function* () {
510
- const { onEvent: d } = f, m = yield Promise.resolve().then(() => Fe);
511
- me && jn(), me = m.on(Mn, (p) => $(this, null, function* () {
512
- d(p.data), un.includes(p.data.eventName) ? Ln() : p.data.eventName === cn && Ue();
518
+ const { onEvent: d } = f, h = yield Promise.resolve().then(() => ke);
519
+ me && Un(), me = h.on(kn, (p) => $(this, null, function* () {
520
+ d(p.data), dn.includes(p.data.eventName) ? jn() : p.data.eventName === fn && je();
513
521
  }));
514
522
  });
515
523
  }
516
- function Un(f) {
517
- kn(f);
524
+ function Hn(f) {
525
+ Fn(f);
518
526
  }
519
527
  var Se, Pt;
520
- class Jn {
528
+ class Vn {
521
529
  constructor(d) {
522
- gt(this, Se);
530
+ vt(this, Se);
523
531
  O(this, "onEvent");
524
- this.onEvent = d.onEvent, Dn && (zn(d), Un({
525
- onEvent: yt(this, Se, Pt).bind(this)
532
+ this.onEvent = d.onEvent, Ln && (Mn(d), Hn({
533
+ onEvent: wt(this, Se, Pt).bind(this)
526
534
  }));
527
535
  }
528
536
  }
529
537
  Se = new WeakSet(), Pt = function(d) {
530
538
  this.onEvent(d);
531
539
  };
532
- var Fn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
533
- function Hn(f) {
540
+ var _n = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
541
+ function qn(f) {
534
542
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
535
543
  }
536
544
  var Tt = { exports: {} }, Rt = { exports: {} };
537
545
  (function(f, d) {
538
- (function(m, p) {
546
+ (function(h, p) {
539
547
  f.exports = p();
540
- })(typeof self != "undefined" ? self : Fn, function() {
541
- return function(m) {
548
+ })(typeof self != "undefined" ? self : _n, function() {
549
+ return function(h) {
542
550
  var p = {};
543
551
  function g(y) {
544
552
  if (p[y])
@@ -548,9 +556,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
548
556
  l: !1,
549
557
  exports: {}
550
558
  };
551
- return m[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
559
+ return h[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
552
560
  }
553
- return g.m = m, g.c = p, g.d = function(y, E, I) {
561
+ return g.m = h, g.c = p, g.d = function(y, E, I) {
554
562
  g.o(y, E) || Object.defineProperty(y, E, {
555
563
  enumerable: !0,
556
564
  get: I
@@ -584,7 +592,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
584
592
  }, g.o = function(y, E) {
585
593
  return {}.hasOwnProperty.call(y, E);
586
594
  }, g.p = "", g(g.s = 0);
587
- }([function(m, p, g) {
595
+ }([function(h, p, g) {
588
596
  g.r(p), g.d(p, "Promise", function() {
589
597
  return C;
590
598
  }), g.d(p, "TYPES", function() {
@@ -592,25 +600,25 @@ var Tt = { exports: {} }, Rt = { exports: {} };
592
600
  }), g.d(p, "ProxyWindow", function() {
593
601
  return _;
594
602
  }), g.d(p, "setup", function() {
595
- return wt;
603
+ return pt;
596
604
  }), g.d(p, "destroy", function() {
597
- return Xt;
605
+ return Zt;
598
606
  }), g.d(p, "serializeMessage", function() {
599
- return Jt;
600
- }), g.d(p, "deserializeMessage", function() {
601
607
  return Yt;
608
+ }), g.d(p, "deserializeMessage", function() {
609
+ return Jt;
602
610
  }), g.d(p, "createProxyWindow", function() {
603
611
  return Vt;
604
612
  }), g.d(p, "toProxyWindow", function() {
605
- return Zt;
613
+ return Xt;
606
614
  }), g.d(p, "on", function() {
607
- return X;
615
+ return Z;
608
616
  }), g.d(p, "once", function() {
609
617
  return $t;
610
618
  }), g.d(p, "send", function() {
611
619
  return K;
612
620
  }), g.d(p, "markWindowKnown", function() {
613
- return it;
621
+ return rt;
614
622
  }), g.d(p, "cleanUpWindow", function() {
615
623
  return Qt;
616
624
  }), g.d(p, "bridge", function() {
@@ -649,7 +657,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
649
657
  } catch (n) {
650
658
  }
651
659
  }
652
- function Z(e) {
660
+ function X(e) {
653
661
  try {
654
662
  return !0;
655
663
  } catch (n) {
@@ -668,7 +676,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
668
676
  return "file://";
669
677
  if (t === "about:") {
670
678
  var r = q(e);
671
- return r && Z() ? pe(r) : "about://";
679
+ return r && X() ? pe(r) : "about://";
672
680
  }
673
681
  var o = n.host;
674
682
  if (!o)
@@ -694,14 +702,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
694
702
  } catch (r) {
695
703
  }
696
704
  try {
697
- if (j(n) && Z())
705
+ if (j(n) && X())
698
706
  return !0;
699
707
  } catch (r) {
700
708
  }
701
709
  try {
702
710
  if (function(r) {
703
711
  return r === void 0 && (r = window), N(r) === "mock:";
704
- }(n) && Z())
712
+ }(n) && X())
705
713
  return !0;
706
714
  } catch (r) {
707
715
  }
@@ -714,7 +722,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
714
722
  }(e))
715
723
  return !1;
716
724
  try {
717
- if (e === window || j(e) && Z() || k(window) === k(e))
725
+ if (e === window || j(e) && X() || k(window) === k(e))
718
726
  return !0;
719
727
  } catch (n) {
720
728
  }
@@ -725,7 +733,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
725
733
  throw new Error("Expected window to be same domain");
726
734
  return e;
727
735
  }
728
- function He(e, n) {
736
+ function Ue(e, n) {
729
737
  if (!e || !n)
730
738
  return !1;
731
739
  var t = q(n);
@@ -739,7 +747,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
739
747
  return o;
740
748
  }(n).indexOf(e) !== -1;
741
749
  }
742
- function _e(e) {
750
+ function Fe(e) {
743
751
  var n = [], t;
744
752
  try {
745
753
  t = e.frames;
@@ -837,7 +845,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
837
845
  }
838
846
  return !1;
839
847
  }
840
- function qe(e) {
848
+ function He(e) {
841
849
  return e === void 0 && (e = window), oe(e = e || window) || q(e) || void 0;
842
850
  }
843
851
  function re(e, n) {
@@ -907,7 +915,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
907
915
  }
908
916
  return !1;
909
917
  }
910
- function Ge(e) {
918
+ function _e(e) {
911
919
  if (Q(e))
912
920
  return ve(e).frameElement;
913
921
  for (var n = 0, t = document.querySelectorAll("iframe"); n < t.length; n++) {
@@ -920,7 +928,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
920
928
  if (function(t) {
921
929
  return t === void 0 && (t = window), !!q(t);
922
930
  }(e)) {
923
- var n = Ge(e);
931
+ var n = _e(e);
924
932
  if (n && n.parentElement) {
925
933
  n.parentElement.removeChild(n);
926
934
  return;
@@ -952,25 +960,25 @@ var Tt = { exports: {} }, Rt = { exports: {} };
952
960
  }
953
961
  return !1;
954
962
  }
955
- var Be = [], ie = [], We = 0, ae;
956
- function $e() {
957
- if (!We && ae) {
963
+ var qe = [], ie = [], Ie = 0, ae;
964
+ function Ge() {
965
+ if (!Ie && ae) {
958
966
  var e = ae;
959
967
  ae = null, e.resolve();
960
968
  }
961
969
  }
962
- function Ie() {
963
- We += 1;
970
+ function We() {
971
+ Ie += 1;
964
972
  }
965
973
  function se() {
966
- We -= 1, $e();
974
+ Ie -= 1, Ge();
967
975
  }
968
976
  var C = function() {
969
977
  function e(t) {
970
978
  var r = this;
971
979
  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) {
972
980
  var o, i, a = !1, c = !1, u = !1;
973
- Ie();
981
+ We();
974
982
  try {
975
983
  t(function(s) {
976
984
  u ? r.resolve(s) : (a = !0, o = s);
@@ -1003,8 +1011,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1003
1011
  }
1004
1012
  return this.rejected = !0, this.error = t, this.errorHandled || setTimeout(function() {
1005
1013
  r.errorHandled || function(i, a) {
1006
- if (Be.indexOf(i) === -1) {
1007
- Be.push(i), setTimeout(function() {
1014
+ if (qe.indexOf(i) === -1) {
1015
+ qe.push(i), setTimeout(function() {
1008
1016
  throw i;
1009
1017
  }, 1);
1010
1018
  for (var c = 0; c < ie.length; c++)
@@ -1017,7 +1025,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1017
1025
  }, n.dispatch = function() {
1018
1026
  var t = this.resolved, r = this.rejected, o = this.handlers;
1019
1027
  if (!this.dispatching && (t || r)) {
1020
- this.dispatching = !0, Ie();
1028
+ this.dispatching = !0, We();
1021
1029
  for (var i = function(w, b) {
1022
1030
  return w.then(function(x) {
1023
1031
  b.resolve(x);
@@ -1046,8 +1054,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1046
1054
  }
1047
1055
  }
1048
1056
  if (l instanceof e && (l.resolved || l.rejected)) {
1049
- var h = l;
1050
- h.resolved ? v.resolve(h.value) : v.reject(h.error), h.errorHandled = !0;
1057
+ var m = l;
1058
+ m.resolved ? v.resolve(m.value) : v.reject(m.error), m.errorHandled = !0;
1051
1059
  } else
1052
1060
  ee(l) ? l instanceof e && (l.resolved || l.rejected) ? l.resolved ? v.resolve(l.value) : v.reject(l.error) : i(l, v) : v.resolve(l);
1053
1061
  }
@@ -1107,10 +1115,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1107
1115
  if (!o)
1108
1116
  return r.resolve(i), r;
1109
1117
  for (var a = function(s, v, l) {
1110
- return v.then(function(h) {
1111
- i[s] = h, (o -= 1) == 0 && r.resolve(i);
1112
- }, function(h) {
1113
- l.reject(h);
1118
+ return v.then(function(m) {
1119
+ i[s] = m, (o -= 1) == 0 && r.resolve(i);
1120
+ }, function(m) {
1121
+ l.reject(m);
1114
1122
  });
1115
1123
  }, c = 0; c < t.length; c++) {
1116
1124
  var u = t[c];
@@ -1154,7 +1162,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1154
1162
  if (t && typeof t != "function" && !t.call)
1155
1163
  throw new Error("Promise.try expected a function");
1156
1164
  var i;
1157
- Ie();
1165
+ We();
1158
1166
  try {
1159
1167
  i = t.apply(r, o || []);
1160
1168
  } catch (a) {
@@ -1170,7 +1178,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1170
1178
  }, e.flush = function() {
1171
1179
  return function(t) {
1172
1180
  var r = ae = ae || new t();
1173
- return $e(), r;
1181
+ return Ge(), r;
1174
1182
  }(e);
1175
1183
  }, e;
1176
1184
  }();
@@ -1304,17 +1312,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1304
1312
  return this.set(t, o), o;
1305
1313
  }, e;
1306
1314
  }();
1307
- function Je(e) {
1315
+ function Be(e) {
1308
1316
  return e.name || e.__name__ || e.displayName || "anonymous";
1309
1317
  }
1310
- function Ye(e, n) {
1318
+ function $e(e, n) {
1311
1319
  try {
1312
1320
  delete e.name, e.name = n;
1313
1321
  } catch (t) {
1314
1322
  }
1315
1323
  return e.__name__ = e.displayName = n, e;
1316
1324
  }
1317
- function Y() {
1325
+ function J() {
1318
1326
  var e = "0123456789abcdef";
1319
1327
  return "uid_" + "xxxxxxxxxx".replace(/./g, function() {
1320
1328
  return e.charAt(Math.floor(Math.random() * e.length));
@@ -1329,24 +1337,24 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1329
1337
  }((/* @__PURE__ */ new Date()).toISOString().slice(11, 19).replace("T", ".")).replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
1330
1338
  }
1331
1339
  var ye;
1332
- function Ve(e) {
1340
+ function Ye(e) {
1333
1341
  try {
1334
1342
  return JSON.stringify([].slice.call(e), function(n, t) {
1335
1343
  return typeof t == "function" ? "memoize[" + function(r) {
1336
1344
  if (ye = ye || new Ce(), r == null || typeof r != "object" && typeof r != "function")
1337
1345
  throw new Error("Invalid object");
1338
1346
  var o = ye.get(r);
1339
- return o || (o = typeof r + ":" + Y(), ye.set(r, o)), o;
1347
+ return o || (o = typeof r + ":" + J(), ye.set(r, o)), o;
1340
1348
  }(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;
1341
1349
  });
1342
1350
  } catch (n) {
1343
1351
  throw new Error("Arguments not serializable -- can not be used to memoize");
1344
1352
  }
1345
1353
  }
1346
- function zt() {
1354
+ function Lt() {
1347
1355
  return {};
1348
1356
  }
1349
- var ue = 0, Ze = 0;
1357
+ var ue = 0, Je = 0;
1350
1358
  function ce(e, n) {
1351
1359
  n === void 0 && (n = {});
1352
1360
  var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, c = ue;
@@ -1354,37 +1362,37 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1354
1362
  var u = function() {
1355
1363
  for (var s = arguments.length, v = new Array(s), l = 0; l < s; l++)
1356
1364
  v[l] = arguments[l];
1357
- c < Ze && (i = null, a = null, c = ue, ue += 1);
1358
- var h;
1359
- h = r ? (a = a || new Ce()).getOrSet(this, zt) : i = i || {};
1365
+ c < Je && (i = null, a = null, c = ue, ue += 1);
1366
+ var m;
1367
+ m = r ? (a = a || new Ce()).getOrSet(this, Lt) : i = i || {};
1360
1368
  var w;
1361
1369
  try {
1362
- w = Ve(v);
1370
+ w = Ye(v);
1363
1371
  } catch (P) {
1364
1372
  return e.apply(this, arguments);
1365
1373
  }
1366
- var b = h[w];
1367
- if (b && o && Date.now() - b.time < o && (delete h[w], b = null), b)
1374
+ var b = m[w];
1375
+ if (b && o && Date.now() - b.time < o && (delete m[w], b = null), b)
1368
1376
  return b.value;
1369
1377
  var x = Date.now(), S = e.apply(this, arguments);
1370
- return h[w] = {
1378
+ return m[w] = {
1371
1379
  time: x,
1372
1380
  value: S
1373
1381
  }, S;
1374
1382
  };
1375
1383
  return u.reset = function() {
1376
1384
  i = null, a = null;
1377
- }, Ye(u, (n.name || Je(e)) + "::memoized");
1385
+ }, $e(u, (n.name || Be(e)) + "::memoized");
1378
1386
  }
1379
1387
  ce.clear = function() {
1380
- Ze = ue;
1388
+ Je = ue;
1381
1389
  };
1382
- function Lt(e) {
1390
+ function zt(e) {
1383
1391
  var n = {};
1384
1392
  function t() {
1385
1393
  for (var r = arguments, o = this, i = arguments.length, a = new Array(i), c = 0; c < i; c++)
1386
1394
  a[c] = arguments[c];
1387
- var u = Ve(a);
1395
+ var u = Ye(a);
1388
1396
  return n.hasOwnProperty(u) || (n[u] = C.try(function() {
1389
1397
  return e.apply(o, r);
1390
1398
  }).finally(function() {
@@ -1393,7 +1401,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1393
1401
  }
1394
1402
  return t.reset = function() {
1395
1403
  n = {};
1396
- }, Ye(t, Je(e) + "::promiseMemoized");
1404
+ }, $e(t, Be(e) + "::promiseMemoized");
1397
1405
  }
1398
1406
  function te() {
1399
1407
  }
@@ -1420,7 +1428,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1420
1428
  return "Error while stringifying error: " + de(o, n + 1);
1421
1429
  }
1422
1430
  }
1423
- function Xe(e) {
1431
+ function Ve(e) {
1424
1432
  return typeof e == "string" ? e : e && e.toString && typeof e.toString == "function" ? e.toString() : {}.toString.call(e);
1425
1433
  }
1426
1434
  ce(function(e) {
@@ -1440,24 +1448,24 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1440
1448
  var r = t();
1441
1449
  return e[n] = r, r;
1442
1450
  }
1443
- function Ke() {
1451
+ function Xe() {
1444
1452
  var e = document.body;
1445
1453
  if (!e)
1446
1454
  throw new Error("Body element not found");
1447
1455
  return e;
1448
1456
  }
1449
- function Qe() {
1457
+ function Ze() {
1450
1458
  return !!document.body && document.readyState === "complete";
1451
1459
  }
1452
- function et() {
1460
+ function Ke() {
1453
1461
  return !!document.body && document.readyState === "interactive";
1454
1462
  }
1455
1463
  ce(function() {
1456
1464
  return new C(function(e) {
1457
- if (Qe() || et())
1465
+ if (Ze() || Ke())
1458
1466
  return e();
1459
1467
  var n = setInterval(function() {
1460
- if (Qe() || et())
1468
+ if (Ze() || Ke())
1461
1469
  return clearInterval(n), e();
1462
1470
  }, 10);
1463
1471
  });
@@ -1484,7 +1492,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1484
1492
  }()))
1485
1493
  return Ee;
1486
1494
  throw new Error("Can not determine current script");
1487
- }), jt = Y();
1495
+ }), jt = J();
1488
1496
  ce(function() {
1489
1497
  var e;
1490
1498
  try {
@@ -1508,7 +1516,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1508
1516
  }));
1509
1517
  n = "uid_" + t.slice(t.length - 30);
1510
1518
  } else
1511
- n = Y();
1519
+ n = J();
1512
1520
  return e.setAttribute("data-uid-auto", n), n;
1513
1521
  });
1514
1522
  function le(e) {
@@ -1516,11 +1524,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1516
1524
  var n = "__post_robot_10_0_46__";
1517
1525
  return e !== window ? e[n] : e[n] = e[n] || {};
1518
1526
  }
1519
- var tt = function() {
1527
+ var Qe = function() {
1520
1528
  return {};
1521
1529
  };
1522
- function L(e, n) {
1523
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), fe(le(), e, function() {
1530
+ function z(e, n) {
1531
+ return e === void 0 && (e = "store"), n === void 0 && (n = Qe), fe(le(), e, function() {
1524
1532
  var t = n();
1525
1533
  return {
1526
1534
  has: function(r) {
@@ -1554,7 +1562,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1554
1562
  return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new kt(), e.WINDOW_WILDCARD;
1555
1563
  }
1556
1564
  function U(e, n) {
1557
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), L("windowStore").getOrSet(e, function() {
1565
+ return e === void 0 && (e = "store"), n === void 0 && (n = Qe), z("windowStore").getOrSet(e, function() {
1558
1566
  var t = new Ce(), r = function(o) {
1559
1567
  return t.getOrSet(o, n);
1560
1568
  };
@@ -1578,10 +1586,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1578
1586
  };
1579
1587
  });
1580
1588
  }
1581
- function nt() {
1582
- return L("instance").getOrSet("instanceID", Y);
1589
+ function et() {
1590
+ return z("instance").getOrSet("instanceID", J);
1583
1591
  }
1584
- function rt(e, n) {
1592
+ function tt(e, n) {
1585
1593
  var t = n.domain, r = U("helloPromises"), o = r.get(e);
1586
1594
  o && o.resolve({
1587
1595
  domain: t
@@ -1593,13 +1601,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1593
1601
  }
1594
1602
  function Te(e, n) {
1595
1603
  return (0, n.send)(e, "postrobot_hello", {
1596
- instanceID: nt()
1604
+ instanceID: et()
1597
1605
  }, {
1598
1606
  domain: "*",
1599
1607
  timeout: -1
1600
1608
  }).then(function(t) {
1601
1609
  var r = t.origin, o = t.data.instanceID;
1602
- return rt(e, {
1610
+ return tt(e, {
1603
1611
  domain: r
1604
1612
  }), {
1605
1613
  win: e,
@@ -1608,7 +1616,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1608
1616
  };
1609
1617
  });
1610
1618
  }
1611
- function ot(e, n) {
1619
+ function nt(e, n) {
1612
1620
  var t = n.send;
1613
1621
  return U("windowInstanceIDPromises").getOrSet(e, function() {
1614
1622
  return Te(e, {
@@ -1618,13 +1626,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1618
1626
  });
1619
1627
  });
1620
1628
  }
1621
- function it(e) {
1629
+ function rt(e) {
1622
1630
  U("knownWindows").set(e, !0);
1623
1631
  }
1624
1632
  function Re(e) {
1625
1633
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1626
1634
  }
1627
- function at(e) {
1635
+ function ot(e) {
1628
1636
  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;
1629
1637
  }
1630
1638
  function ne(e, n) {
@@ -1696,13 +1704,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1696
1704
  }, 10);
1697
1705
  });
1698
1706
  function Ae() {
1699
- for (var e = L("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1707
+ for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1700
1708
  var r = t[n];
1701
1709
  e.get(r).shouldClean() && e.del(r);
1702
1710
  }
1703
1711
  }
1704
- function st(e, n) {
1705
- var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1712
+ function it(e, n) {
1713
+ var t = n.send, r = n.id, o = r === void 0 ? J() : r, i = e.then(function(u) {
1706
1714
  if (Q(u))
1707
1715
  return ve(u).name;
1708
1716
  }), a = e.then(function(u) {
@@ -1722,9 +1730,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1722
1730
  getType: function() {
1723
1731
  return a;
1724
1732
  },
1725
- getInstanceID: Lt(function() {
1733
+ getInstanceID: zt(function() {
1726
1734
  return e.then(function(u) {
1727
- return ot(u, {
1735
+ return nt(u, {
1728
1736
  send: t
1729
1737
  });
1730
1738
  });
@@ -1745,7 +1753,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1745
1753
  },
1746
1754
  setLocation: function(u, s) {
1747
1755
  return s === void 0 && (s = {}), e.then(function(v) {
1748
- var l = window.location.protocol + "//" + window.location.host, h = s.method, w = h === void 0 ? "get" : h, b = s.body;
1756
+ var l = window.location.protocol + "//" + window.location.host, m = s.method, w = m === void 0 ? "get" : m, b = s.body;
1749
1757
  if (u.indexOf("/") === 0)
1750
1758
  u = "" + l + u;
1751
1759
  else if (!u.match(/^https?:\/\//) && u.indexOf(l) !== 0)
@@ -1755,13 +1763,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1755
1763
  if (!x)
1756
1764
  throw new Error("Can not post to window without target name");
1757
1765
  (function(S) {
1758
- var P = S.url, z = S.target, R = S.body, T = S.method, M = T === void 0 ? "post" : T, W = document.createElement("form");
1759
- if (W.setAttribute("target", z), W.setAttribute("method", M), W.setAttribute("action", P), W.style.display = "none", R)
1766
+ var P = S.url, L = S.target, R = S.body, T = S.method, M = T === void 0 ? "post" : T, W = document.createElement("form");
1767
+ if (W.setAttribute("target", L), W.setAttribute("method", M), W.setAttribute("action", P), W.style.display = "none", R)
1760
1768
  for (var A = 0, B = Object.keys(R); A < B.length; A++) {
1761
- var D, he = B[A], ze = document.createElement("input");
1762
- ze.setAttribute("name", he), ze.setAttribute("value", (D = R[he]) == null ? void 0 : D.toString()), W.appendChild(ze);
1769
+ var D, he = B[A], Le = document.createElement("input");
1770
+ Le.setAttribute("name", he), Le.setAttribute("value", (D = R[he]) == null ? void 0 : D.toString()), W.appendChild(Le);
1763
1771
  }
1764
- Ke().appendChild(W), W.submit(), Ke().removeChild(W);
1772
+ Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1765
1773
  })({
1766
1774
  url: u,
1767
1775
  target: x,
@@ -1784,7 +1792,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1784
1792
  },
1785
1793
  setName: function(u) {
1786
1794
  return e.then(function(s) {
1787
- var v = Q(s), l = Ge(s);
1795
+ var v = Q(s), l = _e(s);
1788
1796
  if (!v)
1789
1797
  throw new Error("Can not set name for cross-domain window: " + u);
1790
1798
  ve(s).name = u, l && l.setAttribute("name", u), i = C.resolve(u);
@@ -1795,9 +1803,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1795
1803
  var _ = function() {
1796
1804
  function e(t) {
1797
1805
  var r = t.send, o = t.win, i = t.serializedWindow;
1798
- 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 C(), this.serializedWindow = i || st(this.actualWindowPromise, {
1806
+ 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 C(), this.serializedWindow = i || it(this.actualWindowPromise, {
1799
1807
  send: r
1800
- }), L("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1808
+ }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1801
1809
  send: r
1802
1810
  });
1803
1811
  }
@@ -1844,7 +1852,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1844
1852
  return this.actualWindow;
1845
1853
  }, n.setWindow = function(t, r) {
1846
1854
  var o = r.send;
1847
- this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = st(this.actualWindowPromise, {
1855
+ this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = it(this.actualWindowPromise, {
1848
1856
  send: o,
1849
1857
  id: this.getID()
1850
1858
  }), U("winToProxyWindow").set(t, this);
@@ -1855,7 +1863,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1855
1863
  return C.try(function() {
1856
1864
  return o.actualWindow ? t === o.actualWindow : C.hash({
1857
1865
  proxyInstanceID: o.getInstanceID(),
1858
- knownWindowInstanceID: ot(t, {
1866
+ knownWindowInstanceID: nt(t, {
1859
1867
  send: i
1860
1868
  })
1861
1869
  }).then(function(a) {
@@ -1882,7 +1890,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1882
1890
  }).serialize();
1883
1891
  }, e.deserialize = function(t, r) {
1884
1892
  var o = r.send;
1885
- return Ae(), L("idToProxyWindow").get(t.id) || new e({
1893
+ return Ae(), z("idToProxyWindow").get(t.id) || new e({
1886
1894
  serializedWindow: t,
1887
1895
  send: o
1888
1896
  });
@@ -1900,7 +1908,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1900
1908
  }, e;
1901
1909
  }();
1902
1910
  function Oe(e, n, t, r, o) {
1903
- var i = U("methodStore"), a = L("proxyWindowMethods");
1911
+ var i = U("methodStore"), a = z("proxyWindowMethods");
1904
1912
  _.isProxyWindow(r) ? a.set(e, {
1905
1913
  val: n,
1906
1914
  name: t,
@@ -1915,27 +1923,27 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1915
1923
  source: r
1916
1924
  });
1917
1925
  }
1918
- function ut(e, n) {
1919
- var t = U("methodStore"), r = L("proxyWindowMethods");
1926
+ function at(e, n) {
1927
+ var t = U("methodStore"), r = z("proxyWindowMethods");
1920
1928
  return t.getOrSet(e, function() {
1921
1929
  return {};
1922
1930
  })[n] || r.get(n);
1923
1931
  }
1924
- function ct(e, n, t, r, o) {
1932
+ function st(e, n, t, r, o) {
1925
1933
  a = (i = {
1926
1934
  on: o.on,
1927
1935
  send: o.send
1928
- }).on, c = i.send, L("builtinListeners").getOrSet("functionCalls", function() {
1936
+ }).on, c = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1929
1937
  return a("postrobot_method", {
1930
1938
  domain: "*"
1931
1939
  }, function(v) {
1932
- var l = v.source, h = v.origin, w = v.data, b = w.id, x = w.name, S = ut(l, b);
1940
+ var l = v.source, m = v.origin, w = v.data, b = w.id, x = w.name, S = at(l, b);
1933
1941
  if (!S)
1934
1942
  throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + k(window));
1935
- var P = S.source, z = S.domain, R = S.val;
1943
+ var P = S.source, L = S.domain, R = S.val;
1936
1944
  return C.try(function() {
1937
- if (!re(z, h))
1938
- throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(S.domain) ? S.domain.source : S.domain) + " does not match origin " + h + " in " + k(window));
1945
+ if (!re(L, m))
1946
+ throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(S.domain) ? S.domain.source : S.domain) + " does not match origin " + m + " in " + k(window));
1939
1947
  if (_.isProxyWindow(P))
1940
1948
  return P.matchWindow(l, {
1941
1949
  send: c
@@ -1946,7 +1954,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1946
1954
  }).then(function() {
1947
1955
  return R.apply({
1948
1956
  source: l,
1949
- origin: h
1957
+ origin: m
1950
1958
  }, w.args);
1951
1959
  }, function(T) {
1952
1960
  return C.try(function() {
@@ -1971,7 +1979,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1971
1979
  });
1972
1980
  });
1973
1981
  });
1974
- var i, a, c, u = t.__id__ || Y();
1982
+ var i, a, c, u = t.__id__ || J();
1975
1983
  e = _.unwrap(e);
1976
1984
  var s = t.__name__ || t.name || r;
1977
1985
  return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), _.isProxyWindow(e) ? (Oe(u, t, s, e, n), e.awaitWindow().then(function(v) {
@@ -1981,7 +1989,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1981
1989
  name: s
1982
1990
  });
1983
1991
  }
1984
- function dt(e, n, t, r) {
1992
+ function ut(e, n, t, r) {
1985
1993
  var o, i = r.on, a = r.send;
1986
1994
  return function(c, u) {
1987
1995
  u === void 0 && (u = Ft);
@@ -1989,19 +1997,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1989
1997
  var l = this[v];
1990
1998
  if (Re(this))
1991
1999
  return l;
1992
- var h = at(l);
1993
- if (!h)
2000
+ var m = ot(l);
2001
+ if (!m)
1994
2002
  return l;
1995
- var w = u[h] || Ut[h];
2003
+ var w = u[m] || Ut[m];
1996
2004
  return w ? w(l, v) : l;
1997
2005
  });
1998
2006
  return s === void 0 ? "undefined" : s;
1999
2007
  }(t, ((o = {}).promise = function(c, u) {
2000
- return function(s, v, l, h, w) {
2008
+ return function(s, v, l, m, w) {
2001
2009
  return ne("cross_domain_zalgo_promise", {
2002
- then: ct(s, v, function(b, x) {
2010
+ then: st(s, v, function(b, x) {
2003
2011
  return l.then(b, x);
2004
- }, h, {
2012
+ }, m, {
2005
2013
  on: w.on,
2006
2014
  send: w.send
2007
2015
  })
@@ -2011,7 +2019,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2011
2019
  send: a
2012
2020
  });
2013
2021
  }, o.function = function(c, u) {
2014
- return ct(e, n, c, u, {
2022
+ return st(e, n, c, u, {
2015
2023
  on: i,
2016
2024
  send: a
2017
2025
  });
@@ -2021,7 +2029,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2021
2029
  })) : c;
2022
2030
  }, o));
2023
2031
  }
2024
- function ft(e, n, t, r) {
2032
+ function ct(e, n, t, r) {
2025
2033
  var o, i = r.send;
2026
2034
  return function(a, c) {
2027
2035
  if (c === void 0 && (c = _t), a !== "undefined")
@@ -2029,10 +2037,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2029
2037
  if (Re(this))
2030
2038
  return s;
2031
2039
  var v, l;
2032
- if (Re(s) ? (v = s.__type__, l = s.__val__) : (v = at(s), l = s), !v)
2040
+ if (Re(s) ? (v = s.__type__, l = s.__val__) : (v = ot(s), l = s), !v)
2033
2041
  return l;
2034
- var h = c[v] || Ht[v];
2035
- return h ? h(l, u) : l;
2042
+ var m = c[v] || Ht[v];
2043
+ return m ? m(l, u) : l;
2036
2044
  });
2037
2045
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
2038
2046
  return function(c, u, s) {
@@ -2040,30 +2048,30 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2040
2048
  }(0, 0, a);
2041
2049
  }, o.cross_domain_function = function(a) {
2042
2050
  return function(c, u, s, v) {
2043
- var l = s.id, h = s.name, w = v.send, b = function(S) {
2051
+ var l = s.id, m = s.name, w = v.send, b = function(S) {
2044
2052
  S === void 0 && (S = {});
2045
2053
  function P() {
2046
- var z = arguments;
2054
+ var L = arguments;
2047
2055
  return _.toProxyWindow(c, {
2048
2056
  send: w
2049
2057
  }).awaitWindow().then(function(R) {
2050
- var T = ut(R, l);
2058
+ var T = at(R, l);
2051
2059
  if (T && T.val !== P)
2052
2060
  return T.val.apply({
2053
2061
  source: window,
2054
2062
  origin: k()
2055
- }, z);
2056
- var M = [].slice.call(z);
2063
+ }, L);
2064
+ var M = [].slice.call(L);
2057
2065
  return S.fireAndForget ? w(R, "postrobot_method", {
2058
2066
  id: l,
2059
- name: h,
2067
+ name: m,
2060
2068
  args: M
2061
2069
  }, {
2062
2070
  domain: u,
2063
2071
  fireAndForget: !0
2064
2072
  }) : w(R, "postrobot_method", {
2065
2073
  id: l,
2066
- name: h,
2074
+ name: m,
2067
2075
  args: M
2068
2076
  }, {
2069
2077
  domain: u,
@@ -2075,7 +2083,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2075
2083
  throw R;
2076
2084
  });
2077
2085
  }
2078
- return P.__name__ = h, P.__origin__ = u, P.__source__ = c, P.__id__ = l, P.origin = u, P;
2086
+ return P.__name__ = m, P.__origin__ = u, P.__source__ = c, P.__id__ = l, P.origin = u, P;
2079
2087
  }, x = b();
2080
2088
  return x.fireAndForget = b({
2081
2089
  fireAndForget: !0
@@ -2102,15 +2110,15 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2102
2110
  return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || C.flush().then(function() {
2103
2111
  if (G(e))
2104
2112
  throw new Error("Window is closed");
2105
- var c = dt(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2113
+ var c = ut(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2106
2114
  on: o,
2107
2115
  send: i
2108
2116
  }), u;
2109
2117
  delete a.buffer;
2110
2118
  for (var s = Object.keys(De), v = [], l = 0; l < s.length; l++) {
2111
- var h = s[l];
2119
+ var m = s[l];
2112
2120
  try {
2113
- De[h](e, c, n);
2121
+ De[m](e, c, n);
2114
2122
  } catch (w) {
2115
2123
  v.push(w);
2116
2124
  }
@@ -2128,16 +2136,16 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2128
2136
  });
2129
2137
  }).then(te);
2130
2138
  }
2131
- function lt(e) {
2132
- return L("responseListeners").get(e);
2139
+ function dt(e) {
2140
+ return z("responseListeners").get(e);
2133
2141
  }
2134
- function ht(e) {
2135
- L("responseListeners").del(e);
2142
+ function ft(e) {
2143
+ z("responseListeners").del(e);
2136
2144
  }
2137
- function mt(e) {
2138
- return L("erroredResponseListeners").has(e);
2145
+ function lt(e) {
2146
+ return z("erroredResponseListeners").has(e);
2139
2147
  }
2140
- function pt(e) {
2148
+ function ht(e) {
2141
2149
  var n = e.name, t = e.win, r = e.domain, o = U("requestListeners");
2142
2150
  if (t === "*" && (t = null), r === "*" && (r = null), !n)
2143
2151
  throw new Error("Name required to get request listener");
@@ -2153,8 +2161,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2153
2161
  return s[r];
2154
2162
  if (s.__domain_regex__)
2155
2163
  for (var v = 0, l = s.__domain_regex__; v < l.length; v++) {
2156
- var h = l[v], w = h.listener;
2157
- if (re(h.regex, r))
2164
+ var m = l[v], w = m.listener;
2165
+ if (re(m.regex, r))
2158
2166
  return w;
2159
2167
  }
2160
2168
  }
@@ -2166,7 +2174,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2166
2174
  }
2167
2175
  }
2168
2176
  function qt(e, n, t, r) {
2169
- var o = r.on, i = r.send, a = pt({
2177
+ var o = r.on, i = r.send, a = ht({
2170
2178
  name: t.name,
2171
2179
  win: e,
2172
2180
  domain: n
@@ -2176,7 +2184,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2176
2184
  if (!t.fireAndForget && !G(e))
2177
2185
  try {
2178
2186
  return Ne(e, n, {
2179
- id: Y(),
2187
+ id: J(),
2180
2188
  origin: k(window),
2181
2189
  type: "postrobot_message_response",
2182
2190
  hash: t.hash,
@@ -2188,10 +2196,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2188
2196
  on: o,
2189
2197
  send: i
2190
2198
  });
2191
- } catch (h) {
2199
+ } catch (m) {
2192
2200
  throw new Error("Send response message failed for " + c + " in " + k() + `
2193
2201
 
2194
- ` + de(h));
2202
+ ` + de(m));
2195
2203
  }
2196
2204
  });
2197
2205
  }
@@ -2199,7 +2207,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2199
2207
  if (!t.fireAndForget && !G(e))
2200
2208
  try {
2201
2209
  return Ne(e, n, {
2202
- id: Y(),
2210
+ id: J(),
2203
2211
  origin: k(window),
2204
2212
  type: "postrobot_message_ack",
2205
2213
  hash: t.hash,
@@ -2232,8 +2240,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2232
2240
  });
2233
2241
  }
2234
2242
  function Gt(e, n, t) {
2235
- if (!mt(t.hash)) {
2236
- var r = lt(t.hash);
2243
+ if (!lt(t.hash)) {
2244
+ var r = dt(t.hash);
2237
2245
  if (!r)
2238
2246
  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);
2239
2247
  try {
@@ -2248,8 +2256,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2248
2256
  }
2249
2257
  }
2250
2258
  function Bt(e, n, t) {
2251
- if (!mt(t.hash)) {
2252
- var r = lt(t.hash);
2259
+ if (!lt(t.hash)) {
2260
+ var r = dt(t.hash);
2253
2261
  if (!r)
2254
2262
  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);
2255
2263
  if (!re(r.domain, n))
@@ -2257,29 +2265,29 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2257
2265
  var o;
2258
2266
  if (e !== r.win)
2259
2267
  throw new Error("Response source does not match registered window");
2260
- ht(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2268
+ ft(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2261
2269
  source: e,
2262
2270
  origin: n,
2263
2271
  data: t.data
2264
2272
  });
2265
2273
  }
2266
2274
  }
2267
- function vt(e, n) {
2268
- var t = n.on, r = n.send, o = L("receivedMessages");
2275
+ function mt(e, n) {
2276
+ var t = n.on, r = n.send, o = z("receivedMessages");
2269
2277
  try {
2270
2278
  if (!window || window.closed || !e.source)
2271
2279
  return;
2272
2280
  } catch (v) {
2273
2281
  return;
2274
2282
  }
2275
- var i = e.source, a = e.origin, c = function(v, l, h, w) {
2283
+ var i = e.source, a = e.origin, c = function(v, l, m, w) {
2276
2284
  var b = w.on, x = w.send, S;
2277
2285
  try {
2278
- S = ft(l, h, v, {
2286
+ S = ct(l, m, v, {
2279
2287
  on: b,
2280
2288
  send: x
2281
2289
  });
2282
- } catch (z) {
2290
+ } catch (L) {
2283
2291
  return;
2284
2292
  }
2285
2293
  if (S && typeof S == "object" && S !== null) {
@@ -2292,7 +2300,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2292
2300
  send: r
2293
2301
  });
2294
2302
  if (c) {
2295
- it(i);
2303
+ rt(i);
2296
2304
  for (var u = 0; u < c.length; u++) {
2297
2305
  var s = c[u];
2298
2306
  if (o.has(s.id) || (o.set(s.id, !0), G(i) && !s.fireAndForget))
@@ -2311,7 +2319,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2311
2319
  }
2312
2320
  }
2313
2321
  }
2314
- function X(e, n, t) {
2322
+ function Z(e, n, t) {
2315
2323
  if (!e)
2316
2324
  throw new Error("Expected name");
2317
2325
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
@@ -2336,9 +2344,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2336
2344
  }
2337
2345
  };
2338
2346
  }
2339
- var h = u;
2340
- if (Array.isArray(h)) {
2341
- for (var w = [], b = 0, x = h; b < x.length; b++)
2347
+ var m = u;
2348
+ if (Array.isArray(m)) {
2349
+ for (var w = [], b = 0, x = m; b < x.length; b++)
2342
2350
  w.push(o({
2343
2351
  name: c,
2344
2352
  domain: s,
@@ -2352,11 +2360,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2352
2360
  };
2353
2361
  }
2354
2362
  if (Array.isArray(s)) {
2355
- for (var S = [], P = 0, z = s; P < z.length; P++)
2363
+ for (var S = [], P = 0, L = s; P < L.length; P++)
2356
2364
  S.push(o({
2357
2365
  name: c,
2358
- win: h,
2359
- domain: z[P]
2366
+ win: m,
2367
+ domain: L[P]
2360
2368
  }, a));
2361
2369
  return {
2362
2370
  cancel: function() {
@@ -2365,16 +2373,16 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2365
2373
  }
2366
2374
  };
2367
2375
  }
2368
- var R = pt({
2376
+ var R = ht({
2369
2377
  name: c,
2370
- win: h,
2378
+ win: m,
2371
2379
  domain: s
2372
2380
  });
2373
- h && h !== "*" || (h = xe());
2381
+ m && m !== "*" || (m = xe());
2374
2382
  var T = (s = s || "*").toString();
2375
2383
  if (R)
2376
- throw h && s ? new Error("Request listener already exists for " + c + " on domain " + s.toString() + " for " + (h === xe() ? "wildcard" : "specified") + " window") : h ? new Error("Request listener already exists for " + c + " for " + (h === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + c + " on domain " + s.toString()) : new Error("Request listener already exists for " + c);
2377
- var M = v.getOrSet(h, function() {
2384
+ throw m && s ? new Error("Request listener already exists for " + c + " on domain " + s.toString() + " for " + (m === xe() ? "wildcard" : "specified") + " window") : m ? new Error("Request listener already exists for " + c + " for " + (m === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + c + " on domain " + s.toString()) : new Error("Request listener already exists for " + c);
2385
+ var M = v.getOrSet(m, function() {
2378
2386
  return {};
2379
2387
  }), W = fe(M, c, function() {
2380
2388
  return {};
@@ -2386,7 +2394,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2386
2394
  listener: a
2387
2395
  }) : W[T] = a, {
2388
2396
  cancel: function() {
2389
- delete W[T], B && (A.splice(A.indexOf(B, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete M[c], h && !Object.keys(M).length && v.del(h);
2397
+ delete W[T], B && (A.splice(A.indexOf(B, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete M[c], m && !Object.keys(M).length && v.del(m);
2390
2398
  }
2391
2399
  };
2392
2400
  }({
@@ -2410,7 +2418,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2410
2418
  var r = new C(), o;
2411
2419
  return n.errorHandler = function(i) {
2412
2420
  o.cancel(), r.reject(i);
2413
- }, o = X(e, n, function(i) {
2421
+ }, o = Z(e, n, function(i) {
2414
2422
  if (o.cancel(), r.resolve(i), t)
2415
2423
  return t(i);
2416
2424
  }), r.cancel = o.cancel, r;
@@ -2421,17 +2429,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2421
2429
  send: e
2422
2430
  }).awaitWindow().then(function(s) {
2423
2431
  return C.try(function() {
2424
- if (function(v, l, h) {
2432
+ if (function(v, l, m) {
2425
2433
  if (!v)
2426
2434
  throw new Error("Expected name");
2427
- if (h && typeof h != "string" && !Array.isArray(h) && !Pe(h))
2428
- throw new TypeError("Can not send " + v + ". Expected domain " + JSON.stringify(h) + " to be a string, array, or regex");
2435
+ if (m && typeof m != "string" && !Array.isArray(m) && !Pe(m))
2436
+ throw new TypeError("Can not send " + v + ". Expected domain " + JSON.stringify(m) + " to be a string, array, or regex");
2429
2437
  if (G(l))
2430
2438
  throw new Error("Can not send " + v + ". Target window is closed");
2431
2439
  }(t, s, i), function(v, l) {
2432
- var h = qe(l);
2433
- if (h)
2434
- return h === v;
2440
+ var m = He(l);
2441
+ if (m)
2442
+ return m === v;
2435
2443
  if (l === v || function(x) {
2436
2444
  x === void 0 && (x = window);
2437
2445
  try {
@@ -2442,17 +2450,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2442
2450
  if (q(x) === x)
2443
2451
  return x;
2444
2452
  try {
2445
- if (He(window, x) && window.top)
2453
+ if (Ue(window, x) && window.top)
2446
2454
  return window.top;
2447
2455
  } catch (R) {
2448
2456
  }
2449
2457
  try {
2450
- if (He(x, window) && window.top)
2458
+ if (Ue(x, window) && window.top)
2451
2459
  return window.top;
2452
2460
  } catch (R) {
2453
2461
  }
2454
2462
  for (var S = 0, P = function R(T) {
2455
- for (var M = [], W = 0, A = _e(T); W < A.length; W++) {
2463
+ for (var M = [], W = 0, A = Fe(T); W < A.length; W++) {
2456
2464
  var B = A[W];
2457
2465
  M.push(B);
2458
2466
  for (var D = 0, he = R(B); D < he.length; D++)
@@ -2460,44 +2468,44 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2460
2468
  }
2461
2469
  return M;
2462
2470
  }(x); S < P.length; S++) {
2463
- var z = P[S];
2471
+ var L = P[S];
2464
2472
  try {
2465
- if (z.top)
2466
- return z.top;
2473
+ if (L.top)
2474
+ return L.top;
2467
2475
  } catch (R) {
2468
2476
  }
2469
- if (q(z) === z)
2470
- return z;
2477
+ if (q(L) === L)
2478
+ return L;
2471
2479
  }
2472
2480
  }(l) === l)
2473
2481
  return !1;
2474
- for (var w = 0, b = _e(v); w < b.length; w++)
2482
+ for (var w = 0, b = Fe(v); w < b.length; w++)
2475
2483
  if (b[w] === l)
2476
2484
  return !0;
2477
2485
  return !1;
2478
2486
  }(window, s))
2479
- return function(v, l, h) {
2480
- l === void 0 && (l = 5e3), h === void 0 && (h = "Window");
2487
+ return function(v, l, m) {
2488
+ l === void 0 && (l = 5e3), m === void 0 && (m = "Window");
2481
2489
  var w = function(b) {
2482
2490
  return U("helloPromises").getOrSet(b, function() {
2483
2491
  return new C();
2484
2492
  });
2485
2493
  }(v);
2486
- return l !== -1 && (w = w.timeout(l, new Error(h + " did not load after " + l + "ms"))), w;
2494
+ return l !== -1 && (w = w.timeout(l, new Error(m + " did not load after " + l + "ms"))), w;
2487
2495
  }(s, c);
2488
2496
  }).then(function(v) {
2489
- return function(l, h, w, b) {
2497
+ return function(l, m, w, b) {
2490
2498
  var x = b.send;
2491
2499
  return C.try(function() {
2492
- return typeof h == "string" ? h : C.try(function() {
2500
+ return typeof m == "string" ? m : C.try(function() {
2493
2501
  return w || Te(l, {
2494
2502
  send: x
2495
2503
  }).then(function(S) {
2496
2504
  return S.domain;
2497
2505
  });
2498
2506
  }).then(function(S) {
2499
- if (!re(h, h))
2500
- throw new Error("Domain " + Xe(h) + " does not match " + Xe(h));
2507
+ if (!re(m, m))
2508
+ throw new Error("Domain " + Ve(m) + " does not match " + Ve(m));
2501
2509
  return S;
2502
2510
  });
2503
2511
  });
@@ -2505,7 +2513,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2505
2513
  send: e
2506
2514
  });
2507
2515
  }).then(function(v) {
2508
- var l = v, h = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), b = t + "_" + Y();
2516
+ var l = v, m = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), b = t + "_" + J();
2509
2517
  if (!u) {
2510
2518
  var x = {
2511
2519
  name: t,
@@ -2514,19 +2522,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2514
2522
  promise: w
2515
2523
  };
2516
2524
  (function(W, A) {
2517
- L("responseListeners").set(W, A);
2525
+ z("responseListeners").set(W, A);
2518
2526
  })(b, x);
2519
2527
  var S = U("requestPromises").getOrSet(s, function() {
2520
2528
  return [];
2521
2529
  });
2522
2530
  S.push(w), w.catch(function() {
2523
2531
  (function(W) {
2524
- L("erroredResponseListeners").set(W, !0);
2525
- })(b), ht(b);
2532
+ z("erroredResponseListeners").set(W, !0);
2533
+ })(b), ft(b);
2526
2534
  });
2527
2535
  var P = function(W) {
2528
2536
  return U("knownWindows").get(W, !1);
2529
- }(s) ? 1e4 : 2e3, z = a, R = P, T = z, M = function(W, A) {
2537
+ }(s) ? 1e4 : 2e3, L = a, R = P, T = L, M = function(W, A) {
2530
2538
  var B;
2531
2539
  return function D() {
2532
2540
  B = setTimeout(function() {
@@ -2535,7 +2543,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2535
2543
  return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2536
2544
  if (x.cancelled)
2537
2545
  return w.reject(new Error("Response listener was cancelled for " + t));
2538
- 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 " + h + " in " + k() + " in " + z + "ms")) : w.reject(new Error("No ack for postMessage " + h + " in " + k() + " in " + P + "ms"));
2546
+ 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 " + m + " in " + k() + " in " + L + "ms")) : w.reject(new Error("No ack for postMessage " + m + " in " + k() + " in " + P + "ms"));
2539
2547
  })(), D();
2540
2548
  }, 500);
2541
2549
  }(), {
@@ -2549,7 +2557,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2549
2557
  }).catch(te);
2550
2558
  }
2551
2559
  return Ne(s, l, {
2552
- id: Y(),
2560
+ id: J(),
2553
2561
  origin: k(window),
2554
2562
  type: "postrobot_message_request",
2555
2563
  hash: b,
@@ -2557,27 +2565,27 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2557
2565
  data: r,
2558
2566
  fireAndForget: u
2559
2567
  }, {
2560
- on: X,
2568
+ on: Z,
2561
2569
  send: e
2562
2570
  }).then(function() {
2563
2571
  return u ? w.resolve() : w;
2564
2572
  }, function(W) {
2565
- throw new Error("Send request message failed for " + h + " in " + k() + `
2573
+ throw new Error("Send request message failed for " + m + " in " + k() + `
2566
2574
 
2567
2575
  ` + de(W));
2568
2576
  });
2569
2577
  });
2570
2578
  });
2571
2579
  };
2572
- function Jt(e, n, t) {
2573
- return dt(e, n, t, {
2574
- on: X,
2580
+ function Yt(e, n, t) {
2581
+ return ut(e, n, t, {
2582
+ on: Z,
2575
2583
  send: K
2576
2584
  });
2577
2585
  }
2578
- function Yt(e, n, t) {
2579
- return ft(e, n, t, {
2580
- on: X,
2586
+ function Jt(e, n, t) {
2587
+ return ct(e, n, t, {
2588
+ on: Z,
2581
2589
  send: K
2582
2590
  });
2583
2591
  }
@@ -2587,23 +2595,23 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2587
2595
  win: e
2588
2596
  });
2589
2597
  }
2590
- function Zt(e) {
2598
+ function Xt(e) {
2591
2599
  return _.toProxyWindow(e, {
2592
2600
  send: K
2593
2601
  });
2594
2602
  }
2595
- function wt() {
2603
+ function pt() {
2596
2604
  le().initialized || (le().initialized = !0, n = (e = {
2597
- on: X,
2605
+ on: Z,
2598
2606
  send: K
2599
2607
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2600
- return vt(o, {
2608
+ return mt(o, {
2601
2609
  on: n,
2602
2610
  send: t
2603
2611
  });
2604
2612
  }, function(o) {
2605
2613
  var i = o.on, a = o.send;
2606
- L().getOrSet("postMessageListener", function() {
2614
+ z().getOrSet("postMessageListener", function() {
2607
2615
  return function(c, u, s) {
2608
2616
  return c.addEventListener("message", s), {
2609
2617
  cancel: function() {
@@ -2614,12 +2622,12 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2614
2622
  (function(u, s) {
2615
2623
  var v = s.on, l = s.send;
2616
2624
  C.try(function() {
2617
- var h = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2618
- if (w === "null" && (w = "file://"), h) {
2625
+ var m = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2626
+ if (w === "null" && (w = "file://"), m) {
2619
2627
  if (!w)
2620
2628
  throw new Error("Post message did not have origin domain");
2621
- vt({
2622
- source: h,
2629
+ mt({
2630
+ source: m,
2623
2631
  origin: w,
2624
2632
  data: b
2625
2633
  }, {
@@ -2635,38 +2643,38 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2635
2643
  });
2636
2644
  });
2637
2645
  }({
2638
- on: X,
2646
+ on: Z,
2639
2647
  send: K
2640
2648
  }), function(o) {
2641
2649
  var i = o.on, a = o.send;
2642
- L("builtinListeners").getOrSet("helloListener", function() {
2650
+ z("builtinListeners").getOrSet("helloListener", function() {
2643
2651
  var c = i("postrobot_hello", {
2644
2652
  domain: "*"
2645
2653
  }, function(s) {
2646
- return rt(s.source, {
2654
+ return tt(s.source, {
2647
2655
  domain: s.origin
2648
2656
  }), {
2649
- instanceID: nt()
2657
+ instanceID: et()
2650
2658
  };
2651
- }), u = qe();
2659
+ }), u = He();
2652
2660
  return u && Te(u, {
2653
2661
  send: a
2654
2662
  }).catch(function(s) {
2655
2663
  }), c;
2656
2664
  });
2657
2665
  }({
2658
- on: X,
2666
+ on: Z,
2659
2667
  send: K
2660
2668
  }));
2661
2669
  var e, n, t, r;
2662
2670
  }
2663
- function Xt() {
2671
+ function Zt() {
2664
2672
  (function() {
2665
- for (var n = L("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2673
+ for (var n = z("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2666
2674
  var o = r[t], i = n.get(o);
2667
2675
  i && (i.cancelled = !0), n.del(o);
2668
2676
  }
2669
- })(), (e = L().get("postMessageListener")) && e.cancel();
2677
+ })(), (e = z().get("postMessageListener")) && e.cancel();
2670
2678
  var e;
2671
2679
  delete window.__post_robot_10_0_46__;
2672
2680
  }
@@ -2675,24 +2683,24 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2675
2683
  for (var n = 0, t = U("requestPromises").get(e, []); n < t.length; n++)
2676
2684
  t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2677
2685
  }
2678
- wt();
2686
+ pt();
2679
2687
  }]);
2680
2688
  });
2681
2689
  })(Rt);
2682
- var _n = Rt.exports;
2690
+ var Gn = Rt.exports;
2683
2691
  (function(f) {
2684
- f.exports = _n, f.exports.default = f.exports;
2692
+ f.exports = Gn, f.exports.default = f.exports;
2685
2693
  })(Tt);
2686
2694
  var At = Tt.exports;
2687
- const qn = /* @__PURE__ */ Hn(At), Fe = /* @__PURE__ */ an({
2695
+ const Bn = /* @__PURE__ */ qn(At), ke = /* @__PURE__ */ an({
2688
2696
  __proto__: null,
2689
- default: qn
2697
+ default: Bn
2690
2698
  }, [At]);
2691
2699
  export {
2692
2700
  Ct as ConsentBox,
2693
- Bn as PrivacyCenterBox,
2694
- $n as SoyioTypes,
2695
- Jn as SoyioWidget,
2701
+ Yn as PrivacyCenterBox,
2702
+ Jn as SoyioTypes,
2703
+ Vn as SoyioWidget,
2696
2704
  sn as _TooltipManager,
2697
- Jn as default
2705
+ Vn as default
2698
2706
  };