@spot-flow/checkout-inline-js 0.1.32-dev.6 → 0.1.32

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.
@@ -319,7 +319,7 @@ const pr = async (n, e, i, t) => {
319
319
  }
320
320
  };
321
321
  be.card.label, be.card.icon, be.card.key, be.bank_transfer.label, be.bank_transfer.icon, be.bank_transfer.key, be.ussd.label, be.ussd.icon, be.ussd.key, be.mobile_money.label, be.mobile_money.icon, be.mobile_money.key, be.eft.label, be.eft.icon, be.eft.key;
322
- const qt = [
322
+ const zt = [
323
323
  {
324
324
  name: "MasterCard",
325
325
  icon: `<svg width="24" height="14" viewBox="0 0 24 14" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -528,14 +528,14 @@ h(an, "removeToast", (e) => {
528
528
  });
529
529
  });
530
530
  let pi = an;
531
- class zt {
531
+ class Wt {
532
532
  constructor(e) {
533
533
  h(this, "container");
534
534
  h(this, "onAction");
535
535
  h(this, "cardDetailsValues");
536
536
  h(this, "creditCardTypes");
537
537
  h(this, "merchantName");
538
- this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...qt], this.cardDetailsValues = {
538
+ this.container = e.container, this.onAction = e.onAction, this.creditCardTypes = [...zt], this.cardDetailsValues = {
539
539
  number: "",
540
540
  expiry: "",
541
541
  cvv: ""
@@ -649,7 +649,7 @@ class zt {
649
649
  });
650
650
  }
651
651
  filterCreditCardType(e) {
652
- e ? (this.creditCardTypes = qt.filter(
652
+ e ? (this.creditCardTypes = zt.filter(
653
653
  (i) => i.name === Ar(e)
654
654
  ), this.displayCardTypes()) : (this.creditCardTypes = [], this.displayCardTypes());
655
655
  }
@@ -782,10 +782,10 @@ const ks = `<div id="paymentWarning">
782
782
  <!-- <div class="mt-8">
783
783
  <button class="button-outline w-60" id="try-again">I have made the payment</button>
784
784
  </div> -->
785
-
785
+ <!--
786
786
  <div class="mt-10 text-center" id="report">
787
787
  <button id="report-issue" class="text-error-dark font-semibold hover:underline">Report transaction</button>
788
- </div>
788
+ </div> -->
789
789
  </div>
790
790
  </div>
791
791
  </div>`;
@@ -23796,7 +23796,7 @@ class ws {
23796
23796
  function zr() {
23797
23797
  return new ws();
23798
23798
  }
23799
- function at({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
23799
+ function rt({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, maskInputFn: o }) {
23800
23800
  let r = s || "";
23801
23801
  const l = t && kn(t);
23802
23802
  return (e[i.toLowerCase()] || l && e[l]) && (o ? r = o(r, n) : r = "*".repeat(r.length)), r;
@@ -23804,7 +23804,7 @@ function at({ element: n, maskInputOptions: e, tagName: i, type: t, value: s, ma
23804
23804
  function kn(n) {
23805
23805
  return n.toLowerCase();
23806
23806
  }
23807
- const Wt = "__rrweb_original__";
23807
+ const Zt = "__rrweb_original__";
23808
23808
  function Wr(n) {
23809
23809
  const e = n.getContext("2d");
23810
23810
  if (!e)
@@ -23812,13 +23812,13 @@ function Wr(n) {
23812
23812
  const i = 50;
23813
23813
  for (let t = 0; t < n.width; t += i)
23814
23814
  for (let s = 0; s < n.height; s += i) {
23815
- const o = e.getImageData, r = Wt in o ? o[Wt] : o;
23815
+ const o = e.getImageData, r = Zt in o ? o[Zt] : o;
23816
23816
  if (new Uint32Array(r.call(e, t, s, Math.min(i, n.width - t), Math.min(i, n.height - s)).data.buffer).some((u) => u !== 0))
23817
23817
  return !1;
23818
23818
  }
23819
23819
  return !0;
23820
23820
  }
23821
- function rt(n) {
23821
+ function lt(n) {
23822
23822
  const e = n.type;
23823
23823
  return n.hasAttribute("data-rr-is-password") ? "password" : e ? kn(e) : null;
23824
23824
  }
@@ -23848,7 +23848,7 @@ function Yr(n) {
23848
23848
  let e = "";
23849
23849
  return n.indexOf("//") > -1 ? e = n.split("/").slice(0, 3).join("/") : e = n.split("/")[0], e = e.split("?")[0], e;
23850
23850
  }
23851
- let Ln, Zt;
23851
+ let Ln, Jt;
23852
23852
  const Qr = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Xr = /^(?:[a-z+]+:)?\/\//i, el = /^www\..*/i, nl = /^(data:)([^,]*),(.*)/i;
23853
23853
  function gi(n, e) {
23854
23854
  return (n || "").replace(Qr, (i, t, s, o, r, l) => {
@@ -23913,12 +23913,12 @@ function En(n, e) {
23913
23913
  function ol(n) {
23914
23914
  return !!(n.tagName === "svg" || n.ownerSVGElement);
23915
23915
  }
23916
- function lt() {
23916
+ function dt() {
23917
23917
  const n = document.createElement("a");
23918
23918
  return n.href = "", n.href;
23919
23919
  }
23920
23920
  function Ls(n, e, i, t) {
23921
- return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? En(n, t) : i === "srcset" ? sl(n, t) : i === "style" ? gi(t, lt()) : e === "object" && i === "data" ? En(n, t) : t);
23921
+ return t && (i === "src" || i === "href" && !(e === "use" && t[0] === "#") || i === "xlink:href" && t[0] !== "#" || i === "background" && (e === "table" || e === "td" || e === "th") ? En(n, t) : i === "srcset" ? sl(n, t) : i === "style" ? gi(t, dt()) : e === "object" && i === "data" ? En(n, t) : t);
23922
23922
  }
23923
23923
  function Ts(n, e, i) {
23924
23924
  return (n === "video" || n === "audio") && e === "autoplay";
@@ -24090,7 +24090,7 @@ function cl(n, e) {
24090
24090
  } catch (v) {
24091
24091
  console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, n);
24092
24092
  }
24093
- l = gi(l, lt());
24093
+ l = gi(l, dt());
24094
24094
  }
24095
24095
  return b && (l = "SCRIPT_PLACEHOLDER"), !u && !b && l && t && (l = s ? s(l, n.parentElement) : l.replace(/[\S]/g, "*")), {
24096
24096
  type: me.Text,
@@ -24114,13 +24114,13 @@ function hl(n, e) {
24114
24114
  }
24115
24115
  if (C === "style" && n.sheet && !(n.innerText || n.textContent || "").trim().length) {
24116
24116
  const w = fi(n.sheet);
24117
- w && (_._cssText = gi(w, lt()));
24117
+ w && (_._cssText = gi(w, dt()));
24118
24118
  }
24119
24119
  if (C === "input" || C === "textarea" || C === "select") {
24120
24120
  const w = n.value, x = n.checked;
24121
- _.type !== "radio" && _.type !== "checkbox" && _.type !== "submit" && _.type !== "button" && w ? _.value = at({
24121
+ _.type !== "radio" && _.type !== "checkbox" && _.type !== "submit" && _.type !== "button" && w ? _.value = rt({
24122
24122
  element: n,
24123
- type: rt(n),
24123
+ type: lt(n),
24124
24124
  tagName: C,
24125
24125
  value: w,
24126
24126
  maskInputOptions: r,
@@ -24138,13 +24138,13 @@ function hl(n, e) {
24138
24138
  }
24139
24139
  }
24140
24140
  if (C === "img" && b) {
24141
- Ln || (Ln = i.createElement("canvas"), Zt = Ln.getContext("2d"));
24141
+ Ln || (Ln = i.createElement("canvas"), Jt = Ln.getContext("2d"));
24142
24142
  const w = n, x = w.crossOrigin;
24143
24143
  w.crossOrigin = "anonymous";
24144
24144
  const N = () => {
24145
24145
  w.removeEventListener("load", N);
24146
24146
  try {
24147
- Ln.width = w.naturalWidth, Ln.height = w.naturalHeight, Zt.drawImage(w, 0, 0), _.rr_dataURL = Ln.toDataURL(u.type, u.quality);
24147
+ Ln.width = w.naturalWidth, Ln.height = w.naturalHeight, Jt.drawImage(w, 0, 0), _.rr_dataURL = Ln.toDataURL(u.type, u.quality);
24148
24148
  } catch (V) {
24149
24149
  console.warn(`Cannot inline img src=${w.currentSrc}! Error: ${V}`);
24150
24150
  }
@@ -24406,7 +24406,7 @@ function Ae(n, e, i = document) {
24406
24406
  const Tn = `Please stop import mirror directly. Instead of that,\r
24407
24407
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
24408
24408
  or you can use record.mirror to access the mirror instance during recording.`;
24409
- let Jt = {
24409
+ let $t = {
24410
24410
  map: {},
24411
24411
  getId() {
24412
24412
  return console.error(Tn), -1;
@@ -24424,7 +24424,7 @@ let Jt = {
24424
24424
  console.error(Tn);
24425
24425
  }
24426
24426
  };
24427
- typeof window < "u" && window.Proxy && window.Reflect && (Jt = new Proxy(Jt, {
24427
+ typeof window < "u" && window.Proxy && window.Reflect && ($t = new Proxy($t, {
24428
24428
  get(n, e, i) {
24429
24429
  return e === "map" && console.error(Tn), Reflect.get(n, e, i);
24430
24430
  }
@@ -24516,7 +24516,7 @@ function Bs(n, e) {
24516
24516
  const i = e.getId(n);
24517
24517
  return e.has(i) ? n.parentNode && n.parentNode.nodeType === n.DOCUMENT_NODE ? !1 : n.parentNode ? Bs(n.parentNode, e) : !0 : !0;
24518
24518
  }
24519
- function nt(n) {
24519
+ function it(n) {
24520
24520
  return !!n.changedTouches;
24521
24521
  }
24522
24522
  function pl(n = window) {
@@ -24537,7 +24537,7 @@ function Rs(n, e) {
24537
24537
  function Ds(n, e) {
24538
24538
  return !!(n.nodeName === "LINK" && n.nodeType === n.ELEMENT_NODE && n.getAttribute && n.getAttribute("rel") === "stylesheet" && e.getMeta(n));
24539
24539
  }
24540
- function it(n) {
24540
+ function tt(n) {
24541
24541
  return !!(n != null && n.shadowRoot);
24542
24542
  }
24543
24543
  class fl {
@@ -24590,7 +24590,7 @@ function Hs(n) {
24590
24590
  return e ? e.contains(n) || yl(n) : !1;
24591
24591
  }
24592
24592
  var W = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(W || {}), q = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(q || {}), Le = /* @__PURE__ */ ((n) => (n[n.MouseUp = 0] = "MouseUp", n[n.MouseDown = 1] = "MouseDown", n[n.Click = 2] = "Click", n[n.ContextMenu = 3] = "ContextMenu", n[n.DblClick = 4] = "DblClick", n[n.Focus = 5] = "Focus", n[n.Blur = 6] = "Blur", n[n.TouchStart = 7] = "TouchStart", n[n.TouchMove_Departed = 8] = "TouchMove_Departed", n[n.TouchEnd = 9] = "TouchEnd", n[n.TouchCancel = 10] = "TouchCancel", n))(Le || {}), Ye = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(Ye || {}), Bn = /* @__PURE__ */ ((n) => (n[n["2D"] = 0] = "2D", n[n.WebGL = 1] = "WebGL", n[n.WebGL2 = 2] = "WebGL2", n))(Bn || {});
24593
- function $t(n) {
24593
+ function Yt(n) {
24594
24594
  return "__ln" in n;
24595
24595
  }
24596
24596
  class Cl {
@@ -24611,10 +24611,10 @@ class Cl {
24611
24611
  previous: null,
24612
24612
  next: null
24613
24613
  };
24614
- if (e.__ln = i, e.previousSibling && $t(e.previousSibling)) {
24614
+ if (e.__ln = i, e.previousSibling && Yt(e.previousSibling)) {
24615
24615
  const t = e.previousSibling.__ln.next;
24616
24616
  i.next = t, i.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = i, t && (t.previous = i);
24617
- } else if (e.nextSibling && $t(e.nextSibling) && e.nextSibling.__ln.previous) {
24617
+ } else if (e.nextSibling && Yt(e.nextSibling) && e.nextSibling.__ln.previous) {
24618
24618
  const t = e.nextSibling.__ln.previous;
24619
24619
  i.previous = t, i.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = i, t && (t.next = i);
24620
24620
  } else
@@ -24626,7 +24626,7 @@ class Cl {
24626
24626
  this.head && (i.previous ? (i.previous.next = i.next, i.next ? i.next.previous = i.previous : this.tail = i.previous) : (this.head = i.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--);
24627
24627
  }
24628
24628
  }
24629
- const Yt = (n, e) => `${n}@${e}`;
24629
+ const Qt = (n, e) => `${n}@${e}`;
24630
24630
  class Sl {
24631
24631
  constructor() {
24632
24632
  this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = /* @__PURE__ */ new WeakMap(), this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = /* @__PURE__ */ new Set(), this.movedSet = /* @__PURE__ */ new Set(), this.droppedSet = /* @__PURE__ */ new Set(), this.processMutations = (e) => {
@@ -24663,7 +24663,7 @@ class Sl {
24663
24663
  recordCanvas: this.recordCanvas,
24664
24664
  inlineImages: this.inlineImages,
24665
24665
  onSerialize: (f) => {
24666
- Rs(f, this.mirror) && this.iframeManager.addIframe(f), Ds(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), it(u) && this.shadowDomManager.addShadowRoot(u.shadowRoot, this.doc);
24666
+ Rs(f, this.mirror) && this.iframeManager.addIframe(f), Ds(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), tt(u) && this.shadowDomManager.addShadowRoot(u.shadowRoot, this.doc);
24667
24667
  },
24668
24668
  onIframeLoad: (f, y) => {
24669
24669
  this.iframeManager.attachIframe(f, y), this.shadowDomManager.observeAttachShadow(f);
@@ -24681,9 +24681,9 @@ class Sl {
24681
24681
  for (; this.mapRemoves.length; )
24682
24682
  this.mirror.removeNodeFromMap(this.mapRemoves.shift());
24683
24683
  for (const u of this.movedSet)
24684
- Qt(this.removes, u, this.mirror) && !this.movedSet.has(u.parentNode) || o(u);
24684
+ Xt(this.removes, u, this.mirror) && !this.movedSet.has(u.parentNode) || o(u);
24685
24685
  for (const u of this.addedSet)
24686
- !Xt(this.droppedSet, u) && !Qt(this.removes, u, this.mirror) || Xt(this.movedSet, u) ? o(u) : this.droppedSet.add(u);
24686
+ !es(this.droppedSet, u) && !Xt(this.removes, u, this.mirror) || es(this.movedSet, u) ? o(u) : this.droppedSet.add(u);
24687
24687
  let r = null;
24688
24688
  for (; t.length; ) {
24689
24689
  let u = null;
@@ -24768,8 +24768,8 @@ class Sl {
24768
24768
  const i = e.target;
24769
24769
  let t = e.attributeName, s = e.target.getAttribute(t);
24770
24770
  if (t === "value") {
24771
- const r = rt(i);
24772
- s = at({
24771
+ const r = lt(i);
24772
+ s = rt({
24773
24773
  element: i,
24774
24774
  maskInputOptions: this.maskInputOptions,
24775
24775
  tagName: i.tagName,
@@ -24818,7 +24818,7 @@ class Sl {
24818
24818
  }
24819
24819
  e.addedNodes.forEach((i) => this.genAdds(i, e.target)), e.removedNodes.forEach((i) => {
24820
24820
  const t = this.mirror.getId(i), s = Gn(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
24821
- Me(e.target, this.blockClass, this.blockSelector, !1) || Ji(i, this.mirror) || !bl(i, this.mirror) || (this.addedSet.has(i) ? (tt(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || Bs(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[Yt(t, s)] ? tt(this.movedSet, i) : this.removes.push({
24821
+ Me(e.target, this.blockClass, this.blockSelector, !1) || Ji(i, this.mirror) || !bl(i, this.mirror) || (this.addedSet.has(i) ? (st(this.addedSet, i), this.droppedSet.add(i)) : this.addedSet.has(e.target) && t === -1 || Bs(e.target, this.mirror) || (this.movedSet.has(i) && this.movedMap[Qt(t, s)] ? st(this.movedSet, i) : this.removes.push({
24822
24822
  parentId: s,
24823
24823
  id: t,
24824
24824
  isShadow: Gn(e.target) && Vn(e.target) ? !0 : void 0
@@ -24834,10 +24834,10 @@ class Sl {
24834
24834
  return;
24835
24835
  this.movedSet.add(e);
24836
24836
  let t = null;
24837
- i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[Yt(this.mirror.getId(e), t)] = !0);
24837
+ i && this.mirror.hasNode(i) && (t = this.mirror.getId(i)), t && t !== -1 && (this.movedMap[Qt(this.mirror.getId(e), t)] = !0);
24838
24838
  } else
24839
24839
  this.addedSet.add(e), this.droppedSet.delete(e);
24840
- Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)), it(e) && e.shadowRoot.childNodes.forEach((t) => {
24840
+ Me(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((t) => this.genAdds(t)), tt(e) && e.shadowRoot.childNodes.forEach((t) => {
24841
24841
  this.processedNodeManager.add(t, this), this.genAdds(t, e);
24842
24842
  }));
24843
24843
  }
@@ -24889,10 +24889,10 @@ class Sl {
24889
24889
  this.shadowDomManager.reset(), this.canvasManager.reset();
24890
24890
  }
24891
24891
  }
24892
- function tt(n, e) {
24893
- n.delete(e), e.childNodes.forEach((i) => tt(n, i));
24892
+ function st(n, e) {
24893
+ n.delete(e), e.childNodes.forEach((i) => st(n, i));
24894
24894
  }
24895
- function Qt(n, e, i) {
24895
+ function Xt(n, e, i) {
24896
24896
  return n.length === 0 ? !1 : Us(n, e, i);
24897
24897
  }
24898
24898
  function Us(n, e, i) {
@@ -24902,7 +24902,7 @@ function Us(n, e, i) {
24902
24902
  const s = i.getId(t);
24903
24903
  return n.some((o) => o.id === s) ? !0 : Us(n, t, i);
24904
24904
  }
24905
- function Xt(n, e) {
24905
+ function es(n, e) {
24906
24906
  return n.size === 0 ? !1 : Ks(n, e);
24907
24907
  }
24908
24908
  function Ks(n, e) {
@@ -24964,7 +24964,7 @@ function wl({ mousemoveCb: n, sampling: e, doc: i, mirror: t }) {
24964
24964
  const f = Date.now() - l;
24965
24965
  n(r.map((y) => (y.timeOffset -= f, y)), g), r = [], l = null;
24966
24966
  }), o), b = z(Zn(z((g) => {
24967
- const f = Qn(g), { clientX: y, clientY: k } = nt(g) ? g.changedTouches[0] : g;
24967
+ const f = Qn(g), { clientX: y, clientY: k } = it(g) ? g.changedTouches[0] : g;
24968
24968
  l || (l = Ci()), r.push({
24969
24969
  x: y,
24970
24970
  y: k,
@@ -25006,9 +25006,9 @@ function Al({ mouseInteractionCb: n, doc: e, mirror: i, blockClass: t, blockSele
25006
25006
  break;
25007
25007
  }
25008
25008
  y === Ye.Touch ? Le[v] === Le.MouseDown ? k = "TouchStart" : Le[v] === Le.MouseUp && (k = "TouchEnd") : Ye.Pen;
25009
- } else nt(g) && (y = Ye.Touch);
25009
+ } else it(g) && (y = Ye.Touch);
25010
25010
  y !== null ? (u = y, (k.startsWith("Touch") && y === Ye.Touch || k.startsWith("Mouse") && y === Ye.Mouse) && (y = null)) : Le[v] === Le.Click && (y = u, u = null);
25011
- const C = nt(g) ? g.changedTouches[0] : g;
25011
+ const C = it(g) ? g.changedTouches[0] : g;
25012
25012
  if (!C)
25013
25013
  return;
25014
25014
  const _ = i.getId(f), { clientX: A, clientY: M } = C;
@@ -25065,7 +25065,7 @@ function Ml({ viewportResizeCb: n }, { win: e }) {
25065
25065
  }), 200));
25066
25066
  return Ae("resize", s, e);
25067
25067
  }
25068
- const Ll = ["INPUT", "TEXTAREA", "SELECT"], es = /* @__PURE__ */ new WeakMap();
25068
+ const Ll = ["INPUT", "TEXTAREA", "SELECT"], ns = /* @__PURE__ */ new WeakMap();
25069
25069
  function Tl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ignoreClass: o, ignoreSelector: r, maskInputOptions: l, maskInputFn: u, sampling: b, userTriggeredOnInput: v }) {
25070
25070
  function g(M) {
25071
25071
  let w = Qn(M);
@@ -25073,8 +25073,8 @@ function Tl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
25073
25073
  if (w && N === "OPTION" && (w = w.parentElement), !w || !N || Ll.indexOf(N) < 0 || Me(w, t, s, !0) || w.classList.contains(o) || r && w.matches(r))
25074
25074
  return;
25075
25075
  let V = w.value, F = !1;
25076
- const U = rt(w) || "";
25077
- U === "radio" || U === "checkbox" ? F = w.checked : (l[N.toLowerCase()] || l[U]) && (V = at({
25076
+ const U = lt(w) || "";
25077
+ U === "radio" || U === "checkbox" ? F = w.checked : (l[N.toLowerCase()] || l[U]) && (V = rt({
25078
25078
  element: w,
25079
25079
  maskInputOptions: l,
25080
25080
  tagName: N,
@@ -25091,9 +25091,9 @@ function Tl({ inputCb: n, doc: e, mirror: i, blockClass: t, blockSelector: s, ig
25091
25091
  });
25092
25092
  }
25093
25093
  function f(M, w) {
25094
- const x = es.get(M);
25094
+ const x = ns.get(M);
25095
25095
  if (!x || x.text !== w.text || x.isChecked !== w.isChecked) {
25096
- es.set(M, w);
25096
+ ns.set(M, w);
25097
25097
  const N = i.getId(M);
25098
25098
  z(n)(Object.assign(Object.assign({}, w), { id: N }));
25099
25099
  }
@@ -25464,7 +25464,7 @@ function ai(n) {
25464
25464
  function ri(n) {
25465
25465
  return !!(typeof window[n] < "u" && window[n].prototype && "insertRule" in window[n].prototype && "deleteRule" in window[n].prototype);
25466
25466
  }
25467
- class ns {
25467
+ class is {
25468
25468
  constructor(e) {
25469
25469
  this.generateIdFn = e, this.iframeIdToRemoteIdMap = /* @__PURE__ */ new WeakMap(), this.iframeRemoteIdToIdMap = /* @__PURE__ */ new WeakMap();
25470
25470
  }
@@ -25506,7 +25506,7 @@ class ns {
25506
25506
  }
25507
25507
  class Ol {
25508
25508
  constructor(e) {
25509
- this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new ns(Ms), this.crossOriginIframeRootIdMap = /* @__PURE__ */ new WeakMap(), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new ns(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
25509
+ this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new is(Ms), this.crossOriginIframeRootIdMap = /* @__PURE__ */ new WeakMap(), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new is(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
25510
25510
  }
25511
25511
  addIframe(e) {
25512
25512
  this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e);
@@ -25742,10 +25742,10 @@ var Gl = function(n) {
25742
25742
  s += Pn[e[i] >> 2], s += Pn[(e[i] & 3) << 4 | e[i + 1] >> 4], s += Pn[(e[i + 1] & 15) << 2 | e[i + 2] >> 6], s += Pn[e[i + 2] & 63];
25743
25743
  return t % 3 === 2 ? s = s.substring(0, s.length - 1) + "=" : t % 3 === 1 && (s = s.substring(0, s.length - 2) + "=="), s;
25744
25744
  };
25745
- const is = /* @__PURE__ */ new Map();
25745
+ const ts = /* @__PURE__ */ new Map();
25746
25746
  function Vl(n, e) {
25747
- let i = is.get(n);
25748
- return i || (i = /* @__PURE__ */ new Map(), is.set(n, i)), i.has(e) || i.set(e, []), i.get(e);
25747
+ let i = ts.get(n);
25748
+ return i || (i = /* @__PURE__ */ new Map(), ts.set(n, i)), i.has(e) || i.set(e, []), i.get(e);
25749
25749
  }
25750
25750
  const Fs = (n, e, i) => {
25751
25751
  if (!n || !(zs(n, e) || typeof n == "object"))
@@ -25861,7 +25861,7 @@ function Fl(n, e, i, t) {
25861
25861
  function ql(n) {
25862
25862
  return n === "experimental-webgl" ? "webgl" : n;
25863
25863
  }
25864
- function ts(n, e, i, t) {
25864
+ function ss(n, e, i, t) {
25865
25865
  const s = [];
25866
25866
  try {
25867
25867
  const o = On(n.HTMLCanvasElement.prototype, "getContext", function(r) {
@@ -25888,7 +25888,7 @@ function ts(n, e, i, t) {
25888
25888
  s.forEach((o) => o());
25889
25889
  };
25890
25890
  }
25891
- function ss(n, e, i, t, s, o, r) {
25891
+ function os(n, e, i, t, s, o, r) {
25892
25892
  const l = [], u = Object.getOwnPropertyNames(n);
25893
25893
  for (const b of u)
25894
25894
  if (![
@@ -25932,7 +25932,7 @@ function ss(n, e, i, t, s, o, r) {
25932
25932
  }
25933
25933
  function zl(n, e, i, t, s) {
25934
25934
  const o = [];
25935
- return o.push(...ss(e.WebGLRenderingContext.prototype, Bn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...ss(e.WebGL2RenderingContext.prototype, Bn.WebGL2, n, i, t, s, e)), () => {
25935
+ return o.push(...os(e.WebGLRenderingContext.prototype, Bn.WebGL, n, i, t, s, e)), typeof e.WebGL2RenderingContext < "u" && o.push(...os(e.WebGL2RenderingContext.prototype, Bn.WebGL2, n, i, t, s, e)), () => {
25936
25936
  o.forEach((r) => r());
25937
25937
  };
25938
25938
  }
@@ -26075,7 +26075,7 @@ class Yl {
26075
26075
  });
26076
26076
  }
26077
26077
  initCanvasFPSObserver(e, i, t, s, o) {
26078
- const r = ts(i, t, s, !0), l = /* @__PURE__ */ new Map(), u = new $l();
26078
+ const r = ss(i, t, s, !0), l = /* @__PURE__ */ new Map(), u = new $l();
26079
26079
  u.onmessage = (k) => {
26080
26080
  const { id: C } = k.data;
26081
26081
  if (l.set(C, !1), !("base64" in k.data))
@@ -26146,7 +26146,7 @@ class Yl {
26146
26146
  }
26147
26147
  initCanvasMutationObserver(e, i, t) {
26148
26148
  this.startRAFTimestamping(), this.startPendingCanvasMutationFlusher();
26149
- const s = ts(e, i, t, !1), o = Fl(this.processMutation.bind(this), e, i, t), r = zl(this.processMutation.bind(this), e, i, t, this.mirror);
26149
+ const s = ss(e, i, t, !1), o = Fl(this.processMutation.bind(this), e, i, t), r = zl(this.processMutation.bind(this), e, i, t, this.mirror);
26150
26150
  this.resetObservers = () => {
26151
26151
  s(), o(), r();
26152
26152
  };
@@ -26413,7 +26413,7 @@ function Xn(n = {}) {
26413
26413
  recordCanvas: V,
26414
26414
  inlineImages: fe,
26415
26415
  onSerialize: ($) => {
26416
- Rs($, Be) && xe.addIframe($), Ds($, Be) && Pe.trackLinkElement($), it($) && Ue.addShadowRoot($.shadowRoot, document);
26416
+ Rs($, Be) && xe.addIframe($), Ds($, Be) && Pe.trackLinkElement($), tt($) && Ue.addShadowRoot($.shadowRoot, document);
26417
26417
  },
26418
26418
  onIframeLoad: ($, ge) => {
26419
26419
  xe.attachIframe($, ge), Ue.observeAttachShadow($);
@@ -26579,21 +26579,21 @@ var Ws = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded"
26579
26579
  LIB_VERSION: "2.55.1"
26580
26580
  }, D;
26581
26581
  if (typeof window > "u") {
26582
- var os = {
26582
+ var as = {
26583
26583
  hostname: ""
26584
26584
  };
26585
26585
  D = {
26586
26586
  navigator: { userAgent: "", onLine: !0 },
26587
26587
  document: {
26588
- location: os,
26588
+ location: as,
26589
26589
  referrer: ""
26590
26590
  },
26591
26591
  screen: { width: 0, height: 0 },
26592
- location: os
26592
+ location: as
26593
26593
  };
26594
26594
  } else
26595
26595
  D = window;
26596
- var qn = 24 * 60 * 60 * 1e3, Yi = 8 * 1e3, Ni = Array.prototype, ed = Function.prototype, Zs = Object.prototype, rn = Ni.slice, ei = Zs.toString, Ii = Zs.hasOwnProperty, ce = D.console, ln = D.navigator, X = D.document, di = D.opera, _i = D.screen, Ge = ln.userAgent, Qi = ed.bind, as = Ni.forEach, rs = Ni.indexOf, ls = Ni.map, nd = Array.isArray, st = {}, m = {
26596
+ var qn = 24 * 60 * 60 * 1e3, Yi = 8 * 1e3, Ni = Array.prototype, ed = Function.prototype, Zs = Object.prototype, rn = Ni.slice, ei = Zs.toString, Ii = Zs.hasOwnProperty, ce = D.console, ln = D.navigator, X = D.document, di = D.opera, _i = D.screen, Ge = ln.userAgent, Qi = ed.bind, rs = Ni.forEach, ls = Ni.indexOf, ds = Ni.map, nd = Array.isArray, ot = {}, m = {
26597
26597
  trim: function(n) {
26598
26598
  return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
26599
26599
  }
@@ -26678,15 +26678,15 @@ m.bind = function(n, e) {
26678
26678
  };
26679
26679
  m.each = function(n, e, i) {
26680
26680
  if (n != null) {
26681
- if (as && n.forEach === as)
26681
+ if (rs && n.forEach === rs)
26682
26682
  n.forEach(e, i);
26683
26683
  else if (n.length === +n.length) {
26684
26684
  for (var t = 0, s = n.length; t < s; t++)
26685
- if (t in n && e.call(i, n[t], t, n) === st)
26685
+ if (t in n && e.call(i, n[t], t, n) === ot)
26686
26686
  return;
26687
26687
  } else
26688
26688
  for (var o in n)
26689
- if (Ii.call(n, o) && e.call(i, n[o], o, n) === st)
26689
+ if (Ii.call(n, o) && e.call(i, n[o], o, n) === ot)
26690
26690
  return;
26691
26691
  }
26692
26692
  };
@@ -26713,7 +26713,7 @@ m.toArray = function(n) {
26713
26713
  return n ? n.toArray ? n.toArray() : m.isArray(n) || m.isArguments(n) ? rn.call(n) : m.values(n) : [];
26714
26714
  };
26715
26715
  m.map = function(n, e, i) {
26716
- if (ls && n.map === ls)
26716
+ if (ds && n.map === ds)
26717
26717
  return n.map(e, i);
26718
26718
  var t = [];
26719
26719
  return m.each(n, function(s) {
@@ -26734,9 +26734,9 @@ m.values = function(n) {
26734
26734
  };
26735
26735
  m.include = function(n, e) {
26736
26736
  var i = !1;
26737
- return n === null ? i : rs && n.indexOf === rs ? n.indexOf(e) != -1 : (m.each(n, function(t) {
26737
+ return n === null ? i : ls && n.indexOf === ls ? n.indexOf(e) != -1 : (m.each(n, function(t) {
26738
26738
  if (i || (i = t === e))
26739
- return st;
26739
+ return ot;
26740
26740
  }), i);
26741
26741
  };
26742
26742
  m.includes = function(n, e) {
@@ -27012,7 +27012,7 @@ m.UUID = /* @__PURE__ */ function() {
27012
27012
  return n() + "-" + e() + "-" + i() + "-" + t + "-" + n();
27013
27013
  };
27014
27014
  }();
27015
- var ds = [
27015
+ var us = [
27016
27016
  "ahrefsbot",
27017
27017
  "ahrefssiteaudit",
27018
27018
  "baiduspider",
@@ -27041,8 +27041,8 @@ var ds = [
27041
27041
  ];
27042
27042
  m.isBlockedUA = function(n) {
27043
27043
  var e;
27044
- for (n = n.toLowerCase(), e = 0; e < ds.length; e++)
27045
- if (n.indexOf(ds[e]) !== -1)
27044
+ for (n = n.toLowerCase(), e = 0; e < us.length; e++)
27045
+ if (n.indexOf(us[e]) !== -1)
27046
27046
  return !0;
27047
27047
  return !1;
27048
27048
  };
@@ -27088,7 +27088,7 @@ m.cookie = {
27088
27088
  if (r)
27089
27089
  l = "; domain=" + r;
27090
27090
  else if (t) {
27091
- var v = us(X.location.hostname);
27091
+ var v = cs(X.location.hostname);
27092
27092
  l = v ? "; domain=." + v : "";
27093
27093
  }
27094
27094
  if (i) {
@@ -27102,7 +27102,7 @@ m.cookie = {
27102
27102
  if (r)
27103
27103
  l = "; domain=" + r;
27104
27104
  else if (t) {
27105
- var v = us(X.location.hostname);
27105
+ var v = cs(X.location.hostname);
27106
27106
  l = v ? "; domain=." + v : "";
27107
27107
  }
27108
27108
  if (i) {
@@ -27123,7 +27123,7 @@ var et = null, wi = function(n, e) {
27123
27123
  var i = !0;
27124
27124
  try {
27125
27125
  n = n || window.localStorage;
27126
- var t = "__mplss_" + dt(8), s = "xyz";
27126
+ var t = "__mplss_" + ut(8), s = "xyz";
27127
27127
  n.setItem(t, s), n.getItem(t) !== s && (i = !1), n.removeItem(t);
27128
27128
  } catch {
27129
27129
  i = !1;
@@ -27387,7 +27387,7 @@ m.info = {
27387
27387
  $screen_width: _i.width,
27388
27388
  mp_lib: "web",
27389
27389
  $lib_version: Xe.LIB_VERSION,
27390
- $insert_id: dt(),
27390
+ $insert_id: ut(),
27391
27391
  time: m.timestamp() / 1e3
27392
27392
  // epoch time in seconds
27393
27393
  }, m.strip_empty_properties(n));
@@ -27410,10 +27410,10 @@ m.info = {
27410
27410
  });
27411
27411
  }
27412
27412
  };
27413
- var dt = function(n) {
27413
+ var ut = function(n) {
27414
27414
  var e = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
27415
27415
  return n ? e.substring(0, n) : e;
27416
- }, od = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, ad = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i, us = function(n) {
27416
+ }, od = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i, ad = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i, cs = function(n) {
27417
27417
  var e = ad, i = n.split("."), t = i[i.length - 1];
27418
27418
  (t.length > 4 || t === "com" || t === "org") && (e = od);
27419
27419
  var s = n.match(e);
@@ -27453,35 +27453,35 @@ function Js(n, e) {
27453
27453
  return i && J.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."), i;
27454
27454
  }
27455
27455
  function cn(n) {
27456
- return ht(n, function(e) {
27456
+ return mt(n, function(e) {
27457
27457
  return this.get_config(e);
27458
27458
  });
27459
27459
  }
27460
27460
  function hn(n) {
27461
- return ht(n, function(e) {
27461
+ return mt(n, function(e) {
27462
27462
  return this._get_config(e);
27463
27463
  });
27464
27464
  }
27465
27465
  function Hn(n) {
27466
- return ht(n, function(e) {
27466
+ return mt(n, function(e) {
27467
27467
  return this._get_config(e);
27468
27468
  });
27469
27469
  }
27470
27470
  function hd(n, e) {
27471
- e = e || {}, ut(e).remove(
27472
- ct(n, e),
27471
+ e = e || {}, ct(e).remove(
27472
+ ht(n, e),
27473
27473
  !!e.crossSubdomainCookie,
27474
27474
  e.cookieDomain
27475
27475
  );
27476
27476
  }
27477
- function ut(n) {
27477
+ function ct(n) {
27478
27478
  return n = n || {}, n.persistenceType === "localStorage" ? m.localStorage : m.cookie;
27479
27479
  }
27480
- function ct(n, e) {
27480
+ function ht(n, e) {
27481
27481
  return e = e || {}, (e.persistencePrefix || ld) + n;
27482
27482
  }
27483
27483
  function $s(n, e) {
27484
- return ut(e).get(ct(n, e));
27484
+ return ct(e).get(ht(n, e));
27485
27485
  }
27486
27486
  function md(n) {
27487
27487
  if (n && n.ignoreDnt)
@@ -27501,8 +27501,8 @@ function Ys(n, e, i) {
27501
27501
  J.error("gdpr." + (n ? "optIn" : "optOut") + " called with an invalid token");
27502
27502
  return;
27503
27503
  }
27504
- i = i || {}, ut(i).set(
27505
- ct(e, i),
27504
+ i = i || {}, ct(i).set(
27505
+ ht(e, i),
27506
27506
  n ? 1 : 0,
27507
27507
  m.isNumber(i.cookieExpiration) ? i.cookieExpiration : null,
27508
27508
  !!i.crossSubdomainCookie,
@@ -27513,7 +27513,7 @@ function Ys(n, e, i) {
27513
27513
  send_immediately: !0
27514
27514
  });
27515
27515
  }
27516
- function ht(n, e) {
27516
+ function mt(n, e) {
27517
27517
  return function() {
27518
27518
  var i = !1;
27519
27519
  try {
@@ -27598,12 +27598,12 @@ Qs.prototype.withLock = function(n, e, i) {
27598
27598
  f(M);
27599
27599
  }
27600
27600
  };
27601
- var cs = Bi("batch"), mn = function(n, e) {
27602
- e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(cs.error, cs), this.lock = new Qs(n, { storage: this.storage }), this.usePersistence = e.usePersistence, this.pid = e.pid || null, this.memQueue = [];
27601
+ var hs = Bi("batch"), mn = function(n, e) {
27602
+ e = e || {}, this.storageKey = n, this.storage = e.storage || window.localStorage, this.reportError = e.errorReporter || m.bind(hs.error, hs), this.lock = new Qs(n, { storage: this.storage }), this.usePersistence = e.usePersistence, this.pid = e.pid || null, this.memQueue = [];
27603
27603
  };
27604
27604
  mn.prototype.enqueue = function(n, e, i) {
27605
27605
  var t = {
27606
- id: dt(),
27606
+ id: ut(),
27607
27607
  flushAfter: (/* @__PURE__ */ new Date()).getTime() + e * 2,
27608
27608
  payload: n
27609
27609
  };
@@ -27638,7 +27638,7 @@ mn.prototype.fillBatch = function(n) {
27638
27638
  }
27639
27639
  return e;
27640
27640
  };
27641
- var hs = function(n, e) {
27641
+ var ms = function(n, e) {
27642
27642
  var i = [];
27643
27643
  return m.each(n, function(t) {
27644
27644
  t.id && !e[t.id] && i.push(t);
@@ -27648,14 +27648,14 @@ mn.prototype.removeItemsByID = function(n, e) {
27648
27648
  var i = {};
27649
27649
  if (m.each(n, function(s) {
27650
27650
  i[s] = !0;
27651
- }), this.memQueue = hs(this.memQueue, i), !this.usePersistence)
27651
+ }), this.memQueue = ms(this.memQueue, i), !this.usePersistence)
27652
27652
  e && e(!0);
27653
27653
  else {
27654
27654
  var t = m.bind(function() {
27655
27655
  var s;
27656
27656
  try {
27657
27657
  var o = this.readFromStorage();
27658
- if (o = hs(o, i), s = this.saveToStorage(o), s) {
27658
+ if (o = ms(o, i), s = this.saveToStorage(o), s) {
27659
27659
  o = this.readFromStorage();
27660
27660
  for (var r = 0; r < o.length; r++) {
27661
27661
  var l = o[r];
@@ -27683,7 +27683,7 @@ mn.prototype.removeItemsByID = function(n, e) {
27683
27683
  }, this), this.pid);
27684
27684
  }
27685
27685
  };
27686
- var ms = function(n, e) {
27686
+ var vs = function(n, e) {
27687
27687
  var i = [];
27688
27688
  return m.each(n, function(t) {
27689
27689
  var s = t.id;
@@ -27695,11 +27695,11 @@ var ms = function(n, e) {
27695
27695
  }), i;
27696
27696
  };
27697
27697
  mn.prototype.updatePayloads = function(n, e) {
27698
- this.memQueue = ms(this.memQueue, n), this.usePersistence ? this.lock.withLock(m.bind(function() {
27698
+ this.memQueue = vs(this.memQueue, n), this.usePersistence ? this.lock.withLock(m.bind(function() {
27699
27699
  var t;
27700
27700
  try {
27701
27701
  var s = this.readFromStorage();
27702
- s = ms(s, n), t = this.saveToStorage(s);
27702
+ s = vs(s, n), t = this.saveToStorage(s);
27703
27703
  } catch {
27704
27704
  this.reportError("Error updating items", n), t = !1;
27705
27705
  }
@@ -27844,7 +27844,7 @@ Oe.prototype.reportError = function(n, e) {
27844
27844
  zn.error(i);
27845
27845
  }
27846
27846
  };
27847
- var Cn = Bi("recorder"), vs = D.CompressionStream, pd = {
27847
+ var Cn = Bi("recorder"), bs = D.CompressionStream, pd = {
27848
27848
  batch_size: 1e3,
27849
27849
  batch_flush_interval_ms: 10 * 1e3,
27850
27850
  batch_request_timeout_ms: 90 * 1e3,
@@ -27955,8 +27955,8 @@ He.prototype._flushEvents = cn(function(n, e, i) {
27955
27955
  }, u = m.JSONEncode(n), b = this._mixpanel.get_property("$device_id");
27956
27956
  b && (l.$device_id = b);
27957
27957
  var v = this._mixpanel.get_property("$user_id");
27958
- if (v && (l.$user_id = v), vs) {
27959
- var g = new Blob([u], { type: "application/json" }).stream(), f = g.pipeThrough(new vs("gzip"));
27958
+ if (v && (l.$user_id = v), bs) {
27959
+ var g = new Blob([u], { type: "application/json" }).stream(), f = g.pipeThrough(new bs("gzip"));
27960
27960
  new Response(f).blob().then(m.bind(function(y) {
27961
27961
  l.format = "gzip", this._sendRequest(s, l, y, i);
27962
27962
  }, this));
@@ -28263,14 +28263,14 @@ O.prototype.track_charge = O.prototype.track_charge;
28263
28263
  O.prototype.clear_charges = O.prototype.clear_charges;
28264
28264
  O.prototype.delete_user = O.prototype.delete_user;
28265
28265
  O.prototype.toString = O.prototype.toString;
28266
- var mt = "__mps", vt = "__mpso", bt = "__mpus", pt = "__mpa", ft = "__mpap", gt = "__mpr", yt = "__mpu", eo = "$people_distinct_id", Li = "__alias", Jn = "__timers", Cd = [
28267
- mt,
28266
+ var vt = "__mps", bt = "__mpso", pt = "__mpus", ft = "__mpa", gt = "__mpap", yt = "__mpr", Ct = "__mpu", eo = "$people_distinct_id", Li = "__alias", Jn = "__timers", Cd = [
28268
28267
  vt,
28269
28268
  bt,
28270
28269
  pt,
28271
28270
  ft,
28272
28271
  gt,
28273
28272
  yt,
28273
+ Ct,
28274
28274
  eo,
28275
28275
  Li,
28276
28276
  Jn
@@ -28364,19 +28364,19 @@ G.prototype.set_secure = function(n) {
28364
28364
  };
28365
28365
  G.prototype._add_to_people_queue = function(n, e) {
28366
28366
  var i = this._get_queue_key(n), t = e[n], s = this._get_or_create_queue(un), o = this._get_or_create_queue(Dn), r = this._get_or_create_queue(Re), l = this._get_or_create_queue(_n), u = this._get_or_create_queue(wn), b = this._get_or_create_queue(en, []), v = this._get_or_create_queue(Ve, []);
28367
- i === mt ? (m.extend(s, t), this._pop_from_people_queue(_n, t), this._pop_from_people_queue(wn, t), this._pop_from_people_queue(Re, t)) : i === vt ? (m.each(t, function(g, f) {
28367
+ i === vt ? (m.extend(s, t), this._pop_from_people_queue(_n, t), this._pop_from_people_queue(wn, t), this._pop_from_people_queue(Re, t)) : i === bt ? (m.each(t, function(g, f) {
28368
28368
  f in o || (o[f] = g);
28369
- }), this._pop_from_people_queue(Re, t)) : i === bt ? m.each(t, function(g) {
28369
+ }), this._pop_from_people_queue(Re, t)) : i === pt ? m.each(t, function(g) {
28370
28370
  m.each([s, o, l, u], function(f) {
28371
28371
  g in f && delete f[g];
28372
28372
  }), m.each(v, function(f) {
28373
28373
  g in f && delete f[g];
28374
28374
  }), r[g] = !0;
28375
- }) : i === pt ? (m.each(t, function(g, f) {
28375
+ }) : i === ft ? (m.each(t, function(g, f) {
28376
28376
  f in s ? s[f] += g : (f in l || (l[f] = 0), l[f] += g);
28377
- }, this), this._pop_from_people_queue(Re, t)) : i === yt ? (m.each(t, function(g, f) {
28377
+ }, this), this._pop_from_people_queue(Re, t)) : i === Ct ? (m.each(t, function(g, f) {
28378
28378
  m.isArray(g) && (f in u || (u[f] = []), u[f] = u[f].concat(g));
28379
- }), this._pop_from_people_queue(Re, t)) : i === gt ? (b.push(t), this._pop_from_people_queue(Ve, t)) : i === ft && (v.push(t), this._pop_from_people_queue(Re, t)), J.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), J.log(e), this.save();
28379
+ }), this._pop_from_people_queue(Re, t)) : i === yt ? (b.push(t), this._pop_from_people_queue(Ve, t)) : i === gt && (v.push(t), this._pop_from_people_queue(Re, t)), J.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), J.log(e), this.save();
28380
28380
  };
28381
28381
  G.prototype._pop_from_people_queue = function(n, e) {
28382
28382
  var i = this.props[this._get_queue_key(n)];
@@ -28391,19 +28391,19 @@ G.prototype.load_queue = function(n) {
28391
28391
  };
28392
28392
  G.prototype._get_queue_key = function(n) {
28393
28393
  if (n === un)
28394
- return mt;
28395
- if (n === Dn)
28396
28394
  return vt;
28397
- if (n === Re)
28395
+ if (n === Dn)
28398
28396
  return bt;
28399
- if (n === _n)
28397
+ if (n === Re)
28400
28398
  return pt;
28401
- if (n === Ve)
28399
+ if (n === _n)
28402
28400
  return ft;
28403
- if (n === en)
28401
+ if (n === Ve)
28404
28402
  return gt;
28405
- if (n === wn)
28403
+ if (n === en)
28406
28404
  return yt;
28405
+ if (n === wn)
28406
+ return Ct;
28407
28407
  J.error("Invalid queue:", n);
28408
28408
  };
28409
28409
  G.prototype._get_or_create_queue = function(n, e) {
@@ -28418,12 +28418,12 @@ G.prototype.remove_event_timer = function(n) {
28418
28418
  var e = this.load_prop(Jn) || {}, i = e[n];
28419
28419
  return m.isUndefined(i) || (delete this.props[Jn][n], this.save()), i;
28420
28420
  };
28421
- var Ct, no = function(n, e) {
28421
+ var St, no = function(n, e) {
28422
28422
  throw new Error(n + " not available in this build.");
28423
28423
  }, Se, io = 0, Sd = 1, kd = function(n) {
28424
28424
  return n;
28425
28425
  }, $n = function() {
28426
- }, Ne = "mixpanel", to = "base64", _d = "json", St = "$device:", In = D.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), so = !In && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Ti = null;
28426
+ }, Ne = "mixpanel", to = "base64", _d = "json", kt = "$device:", In = D.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), so = !In && Ge.indexOf("MSIE") === -1 && Ge.indexOf("Mozilla") === -1, Ti = null;
28427
28427
  ln.sendBeacon && (Ti = function() {
28428
28428
  return ln.sendBeacon.apply(ln, arguments);
28429
28429
  });
@@ -28432,7 +28432,7 @@ var oo = {
28432
28432
  engage: "engage/",
28433
28433
  groups: "groups/",
28434
28434
  record: "record/"
28435
- }, bs = {
28435
+ }, ps = {
28436
28436
  api_host: "https://api-js.mixpanel.com",
28437
28437
  api_routes: oo,
28438
28438
  api_method: "POST",
@@ -28493,9 +28493,9 @@ var oo = {
28493
28493
  record_sessions_percent: 0,
28494
28494
  recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
28495
28495
  }, ao = !1, L = function() {
28496
- }, ot = function(n, e, i) {
28496
+ }, at = function(n, e, i) {
28497
28497
  var t, s = i === Ne ? Se : Se[i];
28498
- if (s && Ct === io)
28498
+ if (s && St === io)
28499
28499
  t = s;
28500
28500
  else {
28501
28501
  if (s && !m.isArray(s)) {
@@ -28521,17 +28521,17 @@ L.prototype.init = function(n, e, i) {
28521
28521
  this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
28522
28522
  return;
28523
28523
  }
28524
- var t = ot(n, e, i);
28524
+ var t = at(n, e, i);
28525
28525
  return Se[i] = t, t._loaded(), t;
28526
28526
  };
28527
28527
  L.prototype._init = function(n, e, i) {
28528
28528
  e = e || {}, this.__loaded = !0, this.config = {};
28529
28529
  var t = {};
28530
28530
  if (!("api_payload_format" in e)) {
28531
- var s = e.api_host || bs.api_host;
28531
+ var s = e.api_host || ps.api_host;
28532
28532
  s.match(/\.mixpanel\.com/) && (t.api_payload_format = _d);
28533
28533
  }
28534
- if (this.set_config(m.extend({}, bs, t, e, {
28534
+ if (this.set_config(m.extend({}, ps, t, e, {
28535
28535
  name: i,
28536
28536
  token: n,
28537
28537
  callback_fn: (i === Ne ? i : Ne + "." + i) + "._jsc"
@@ -28557,7 +28557,7 @@ L.prototype._init = function(n, e, i) {
28557
28557
  this.persistence = this.cookie = new G(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
28558
28558
  var r = m.UUID();
28559
28559
  this.get_distinct_id() || this.register_once({
28560
- distinct_id: St + r,
28560
+ distinct_id: kt + r,
28561
28561
  $device_id: r
28562
28562
  }, "");
28563
28563
  var l = this.get_config("track_pageview");
@@ -28929,22 +28929,22 @@ L.prototype.time_event = function(n) {
28929
28929
  };
28930
28930
  var wd = {
28931
28931
  persistent: !0
28932
- }, kt = function(n) {
28932
+ }, _t = function(n) {
28933
28933
  var e;
28934
28934
  return m.isObject(n) ? e = n : m.isUndefined(n) ? e = {} : e = { days: n }, m.extend({}, wd, e);
28935
28935
  };
28936
28936
  L.prototype.register = function(n, e) {
28937
- var i = kt(e);
28937
+ var i = _t(e);
28938
28938
  i.persistent ? this.persistence.register(n, i.days) : m.extend(this.unpersisted_superprops, n);
28939
28939
  };
28940
28940
  L.prototype.register_once = function(n, e, i) {
28941
- var t = kt(i);
28941
+ var t = _t(i);
28942
28942
  t.persistent ? this.persistence.register_once(n, e, t.days) : (typeof e > "u" && (e = "None"), m.each(n, function(s, o) {
28943
28943
  (!this.unpersisted_superprops.hasOwnProperty(o) || this.unpersisted_superprops[o] === e) && (this.unpersisted_superprops[o] = s);
28944
28944
  }, this));
28945
28945
  };
28946
28946
  L.prototype.unregister = function(n, e) {
28947
- e = kt(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
28947
+ e = _t(e), e.persistent ? this.persistence.unregister(n) : delete this.unpersisted_superprops[n];
28948
28948
  };
28949
28949
  L.prototype._register_single = function(n, e) {
28950
28950
  var i = {};
@@ -28953,7 +28953,7 @@ L.prototype._register_single = function(n, e) {
28953
28953
  L.prototype.identify = function(n, e, i, t, s, o, r, l) {
28954
28954
  var u = this.get_distinct_id();
28955
28955
  if (n && u !== n) {
28956
- if (typeof n == "string" && n.indexOf(St) === 0)
28956
+ if (typeof n == "string" && n.indexOf(kt) === 0)
28957
28957
  return this.report_error("distinct_id cannot have $device: prefix"), -1;
28958
28958
  this.register({ $user_id: n });
28959
28959
  }
@@ -28973,7 +28973,7 @@ L.prototype.reset = function() {
28973
28973
  this.persistence.clear(), this._flags.identify_called = !1;
28974
28974
  var n = m.UUID();
28975
28975
  this.register_once({
28976
- distinct_id: St + n,
28976
+ distinct_id: kt + n,
28977
28977
  $device_id: n
28978
28978
  }, "");
28979
28979
  };
@@ -29143,9 +29143,9 @@ var Nn = {}, Ad = function() {
29143
29143
  }, Md = function() {
29144
29144
  Se.init = function(n, e, i) {
29145
29145
  if (i)
29146
- return Se[i] || (Se[i] = Nn[i] = ot(n, e, i), Se[i]._loaded()), Se[i];
29146
+ return Se[i] || (Se[i] = Nn[i] = at(n, e, i), Se[i]._loaded()), Se[i];
29147
29147
  var t = Se;
29148
- Nn[Ne] ? t = Nn[Ne] : n && (t = ot(n, e, Ne), t._loaded(), Nn[Ne] = t), Se = t, Ct === Sd && (D[Ne] = Se), Ad();
29148
+ Nn[Ne] ? t = Nn[Ne] : n && (t = at(n, e, Ne), t._loaded(), Nn[Ne] = t), Se = t, St === Sd && (D[Ne] = Se), Ad();
29149
29149
  };
29150
29150
  }, Ld = function() {
29151
29151
  function n() {
@@ -29176,7 +29176,7 @@ var Nn = {}, Ad = function() {
29176
29176
  m.register_event(D, "load", n, !0);
29177
29177
  };
29178
29178
  function Td(n) {
29179
- return no = n, Ct = io, Se = new L(), Md(), Se.init(), Ld(), Se;
29179
+ return no = n, St = io, Se = new L(), Md(), Se.init(), Ld(), Se;
29180
29180
  }
29181
29181
  function Ed(n, e) {
29182
29182
  e();
@@ -29685,7 +29685,7 @@ class xd {
29685
29685
  if (this.currentStep !== 1 ? (this.hidePaymentMethods(), i == null || i.classList.add("hidden")) : this.showPaymentMethods(), this.isMobile && this.hidePaymentMethods(), this.contents) {
29686
29686
  switch (this.currentStep) {
29687
29687
  case 1:
29688
- this.cardDetailForm = new zt({
29688
+ this.cardDetailForm = new Wt({
29689
29689
  container: this.contents,
29690
29690
  onAction: (r) => (l) => this.submitCardDetails.bind(this)(r, l),
29691
29691
  merchantName: this.merchantPlanDetail.merchantName
@@ -29765,7 +29765,7 @@ class xd {
29765
29765
  }), this.confirmationEnd.renderComponent();
29766
29766
  break;
29767
29767
  default:
29768
- this.cardDetailForm = new zt({
29768
+ this.cardDetailForm = new Wt({
29769
29769
  container: this.contents,
29770
29770
  onAction: (r) => (l) => this.submitCardDetails.bind(this)(r, l),
29771
29771
  merchantName: this.merchantPlanDetail.merchantName
@@ -30478,7 +30478,7 @@ var uo = { exports: {} };
30478
30478
  a.push([p, d]);
30479
30479
  }), a;
30480
30480
  }
30481
- function wt(c, a) {
30481
+ function At(c, a) {
30482
30482
  for (var d = 0; d < c.length; d++)
30483
30483
  if (a(c[d], d, c))
30484
30484
  return !0;
@@ -30816,26 +30816,26 @@ var uo = { exports: {} };
30816
30816
  getSocket: function(c) {
30817
30817
  return H.createWebSocket(c);
30818
30818
  }
30819
- }), At = {
30819
+ }), Mt = {
30820
30820
  urls: Mo,
30821
30821
  handlesActivityChecks: !1,
30822
30822
  supportsPing: !0,
30823
30823
  isInitialized: function() {
30824
30824
  return !0;
30825
30825
  }
30826
- }, Mt = ve({
30826
+ }, Lt = ve({
30827
30827
  getSocket: function(c) {
30828
30828
  return H.HTTPFactory.createStreamingSocket(c);
30829
30829
  }
30830
- }, At), Lt = ve({
30830
+ }, Mt), Tt = ve({
30831
30831
  getSocket: function(c) {
30832
30832
  return H.HTTPFactory.createPollingSocket(c);
30833
30833
  }
30834
- }, At), Tt = {
30834
+ }, Mt), Et = {
30835
30835
  isSupported: function() {
30836
30836
  return H.isXHRSupported();
30837
30837
  }
30838
- }, Po = new Mn(ve({}, Mt, Tt)), No = new Mn(ve({}, Lt, Tt)), Io = {
30838
+ }, Po = new Mn(ve({}, Lt, Et)), No = new Mn(ve({}, Tt, Et)), Io = {
30839
30839
  ws: xo,
30840
30840
  xhr_streaming: Po,
30841
30841
  xhr_polling: No
@@ -30863,12 +30863,12 @@ var uo = { exports: {} };
30863
30863
  path: a
30864
30864
  }));
30865
30865
  }
30866
- }), Et = {
30866
+ }), xt = {
30867
30867
  isSupported: function(c) {
30868
30868
  var a = H.isXDRSupported(c.useTLS);
30869
30869
  return a;
30870
30870
  }
30871
- }, Ro = new Mn(ve({}, Mt, Et)), Do = new Mn(ve({}, Lt, Et));
30871
+ }, Ro = new Mn(ve({}, Lt, xt)), Do = new Mn(ve({}, Tt, xt));
30872
30872
  ii.xdr_streaming = Ro, ii.xdr_polling = Do, ii.sockjs = Bo;
30873
30873
  var Oo = ii;
30874
30874
  class Ho extends Je {
@@ -30910,7 +30910,7 @@ var uo = { exports: {} };
30910
30910
  return this.manager.isAlive() && this.transport.isSupported(a);
30911
30911
  }
30912
30912
  }
30913
- const xt = {
30913
+ const Pt = {
30914
30914
  decodeMessage: function(c) {
30915
30915
  try {
30916
30916
  var a = JSON.parse(c.data), d = a.data;
@@ -30933,7 +30933,7 @@ var uo = { exports: {} };
30933
30933
  return JSON.stringify(c);
30934
30934
  },
30935
30935
  processHandshake: function(c) {
30936
- var a = xt.decodeMessage(c);
30936
+ var a = Pt.decodeMessage(c);
30937
30937
  if (a.event === "pusher:connection_established") {
30938
30938
  if (!a.data.activity_timeout)
30939
30939
  throw "No activity timeout specified in handshake";
@@ -30964,7 +30964,7 @@ var uo = { exports: {} };
30964
30964
  } : null;
30965
30965
  }
30966
30966
  };
30967
- var pn = xt;
30967
+ var pn = Pt;
30968
30968
  class jo extends Je {
30969
30969
  constructor(a, d) {
30970
30970
  super(), this.id = a, this.transport = d, this.activityTimeout = d.activityTimeout, this.bindListeners();
@@ -31564,7 +31564,7 @@ var uo = { exports: {} };
31564
31564
  return new Ko(c, a, d);
31565
31565
  }
31566
31566
  }, $e = Qo;
31567
- class Pt {
31567
+ class Nt {
31568
31568
  constructor(a) {
31569
31569
  this.options = a || {}, this.livesLeft = this.options.lives || 1 / 0;
31570
31570
  }
@@ -31586,7 +31586,7 @@ var uo = { exports: {} };
31586
31586
  this.strategies = a, this.loop = !!d.loop, this.failFast = !!d.failFast, this.timeout = d.timeout, this.timeoutLimit = d.timeoutLimit;
31587
31587
  }
31588
31588
  isSupported() {
31589
- return wt(this.strategies, ae.method("isSupported"));
31589
+ return At(this.strategies, ae.method("isSupported"));
31590
31590
  }
31591
31591
  connect(a, d) {
31592
31592
  var p = this.strategies, S = 0, T = this.timeout, E = null, I = (R, Z) => {
@@ -31622,7 +31622,7 @@ var uo = { exports: {} };
31622
31622
  this.strategies = a;
31623
31623
  }
31624
31624
  isSupported() {
31625
- return wt(this.strategies, ae.method("isSupported"));
31625
+ return At(this.strategies, ae.method("isSupported"));
31626
31626
  }
31627
31627
  connect(a, d) {
31628
31628
  return Xo(this.strategies, a, function(p, S) {
@@ -31682,7 +31682,7 @@ var uo = { exports: {} };
31682
31682
  }))) : T++);
31683
31683
  }
31684
31684
  var R = ae.now(), Z = E.pop().connect(a, function Y(ue, oi) {
31685
- ue ? (Nt(p), E.length > 0 ? (R = ae.now(), Z = E.pop().connect(a, Y)) : d(ue)) : (sa(p, oi.transport.name, ae.now() - R, T), d(null, oi));
31685
+ ue ? (It(p), E.length > 0 ? (R = ae.now(), Z = E.pop().connect(a, Y)) : d(ue)) : (sa(p, oi.transport.name, ae.now() - R, T), d(null, oi));
31686
31686
  });
31687
31687
  return {
31688
31688
  abort: function() {
@@ -31705,7 +31705,7 @@ var uo = { exports: {} };
31705
31705
  if (d)
31706
31706
  return JSON.parse(d);
31707
31707
  } catch {
31708
- Nt(c);
31708
+ It(c);
31709
31709
  }
31710
31710
  return null;
31711
31711
  }
@@ -31722,7 +31722,7 @@ var uo = { exports: {} };
31722
31722
  } catch {
31723
31723
  }
31724
31724
  }
31725
- function Nt(c) {
31725
+ function It(c) {
31726
31726
  var a = H.getLocalStorage();
31727
31727
  if (a)
31728
31728
  try {
@@ -31785,9 +31785,9 @@ var uo = { exports: {} };
31785
31785
  }
31786
31786
  var aa = function(c, a, d) {
31787
31787
  var p = {};
31788
- function S(Vt, or, ar, rr, lr) {
31789
- var Ft = d(c, Vt, or, ar, rr, lr);
31790
- return p[Vt] = Ft, Ft;
31788
+ function S(Ft, or, ar, rr, lr) {
31789
+ var qt = d(c, Ft, or, ar, rr, lr);
31790
+ return p[Ft] = qt, qt;
31791
31791
  }
31792
31792
  var T = Object.assign({}, a, {
31793
31793
  hostNonTLS: c.wsHost + ":" + c.wsPort,
@@ -31803,28 +31803,28 @@ var uo = { exports: {} };
31803
31803
  loop: !0,
31804
31804
  timeout: 15e3,
31805
31805
  timeoutLimit: 6e4
31806
- }, Z = new Pt({
31806
+ }, Z = new Nt({
31807
31807
  minPingDelay: 1e4,
31808
31808
  maxPingDelay: c.activityTimeout
31809
- }), Y = new Pt({
31809
+ }), Y = new Nt({
31810
31810
  lives: 2,
31811
31811
  minPingDelay: 1e4,
31812
31812
  maxPingDelay: c.activityTimeout
31813
- }), ue = S("ws", "ws", 3, T, Z), oi = S("wss", "ws", 3, E, Z), er = S("sockjs", "sockjs", 1, I), Ot = S("xhr_streaming", "xhr_streaming", 1, I, Y), nr = S("xdr_streaming", "xdr_streaming", 1, I, Y), Ht = S("xhr_polling", "xhr_polling", 1, I), ir = S("xdr_polling", "xdr_polling", 1, I), Ut = new fn([ue], R), tr = new fn([oi], R), sr = new fn([er], R), Kt = new fn([
31814
- new Kn(jn(Ot), Ot, nr)
31815
- ], R), jt = new fn([
31816
- new Kn(jn(Ht), Ht, ir)
31813
+ }), ue = S("ws", "ws", 3, T, Z), oi = S("wss", "ws", 3, E, Z), er = S("sockjs", "sockjs", 1, I), Ht = S("xhr_streaming", "xhr_streaming", 1, I, Y), nr = S("xdr_streaming", "xdr_streaming", 1, I, Y), Ut = S("xhr_polling", "xhr_polling", 1, I), ir = S("xdr_polling", "xdr_polling", 1, I), Kt = new fn([ue], R), tr = new fn([oi], R), sr = new fn([er], R), jt = new fn([
31814
+ new Kn(jn(Ht), Ht, nr)
31817
31815
  ], R), Gt = new fn([
31818
- new Kn(jn(Kt), new Gi([
31819
- Kt,
31820
- new ti(jt, { delay: 4e3 })
31821
- ]), jt)
31822
- ], R), Wi = new Kn(jn(Gt), Gt, sr), Zi;
31816
+ new Kn(jn(Ut), Ut, ir)
31817
+ ], R), Vt = new fn([
31818
+ new Kn(jn(jt), new Gi([
31819
+ jt,
31820
+ new ti(Gt, { delay: 4e3 })
31821
+ ]), Gt)
31822
+ ], R), Wi = new Kn(jn(Vt), Vt, sr), Zi;
31823
31823
  return a.useTLS ? Zi = new Gi([
31824
- Ut,
31824
+ Kt,
31825
31825
  new ti(Wi, { delay: 2e3 })
31826
31826
  ]) : Zi = new Gi([
31827
- Ut,
31827
+ Kt,
31828
31828
  new ti(tr, { delay: 2e3 }),
31829
31829
  new ti(Wi, { delay: 5e3 })
31830
31830
  ]), new ia(new oa(new Kn(jn(ue), Zi, Wi)), p, {
@@ -31895,7 +31895,7 @@ var uo = { exports: {} };
31895
31895
  var gn = Fi, ma = 1;
31896
31896
  class va {
31897
31897
  constructor(a, d) {
31898
- this.hooks = a, this.session = Bt(1e3) + "/" + ga(8), this.location = ba(d), this.readyState = gn.CONNECTING, this.openStream();
31898
+ this.hooks = a, this.session = Rt(1e3) + "/" + ga(8), this.location = ba(d), this.readyState = gn.CONNECTING, this.openStream();
31899
31899
  }
31900
31900
  send(a) {
31901
31901
  return this.sendRaw(JSON.stringify([a]));
@@ -31909,7 +31909,7 @@ var uo = { exports: {} };
31909
31909
  sendRaw(a) {
31910
31910
  if (this.readyState === gn.OPEN)
31911
31911
  try {
31912
- return H.createSocketRequest("POST", It(pa(this.location, this.session))).start(a), !0;
31912
+ return H.createSocketRequest("POST", Bt(pa(this.location, this.session))).start(a), !0;
31913
31913
  } catch {
31914
31914
  return !1;
31915
31915
  }
@@ -31964,7 +31964,7 @@ var uo = { exports: {} };
31964
31964
  this.onerror && this.onerror(a);
31965
31965
  }
31966
31966
  openStream() {
31967
- this.stream = H.createSocketRequest("POST", It(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", (a) => {
31967
+ this.stream = H.createSocketRequest("POST", Bt(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", (a) => {
31968
31968
  this.onChunk(a);
31969
31969
  }), this.stream.bind("finished", (a) => {
31970
31970
  this.hooks.onFinished(this, a);
@@ -31993,7 +31993,7 @@ var uo = { exports: {} };
31993
31993
  function pa(c, a) {
31994
31994
  return c.base + "/" + a + "/xhr_send";
31995
31995
  }
31996
- function It(c) {
31996
+ function Bt(c) {
31997
31997
  var a = c.indexOf("?") === -1 ? "?" : "&";
31998
31998
  return c + a + "t=" + +/* @__PURE__ */ new Date() + "&n=" + ma++;
31999
31999
  }
@@ -32001,12 +32001,12 @@ var uo = { exports: {} };
32001
32001
  var d = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(c);
32002
32002
  return d[1] + a + d[3];
32003
32003
  }
32004
- function Bt(c) {
32004
+ function Rt(c) {
32005
32005
  return H.randomInt(c);
32006
32006
  }
32007
32007
  function ga(c) {
32008
32008
  for (var a = [], d = 0; d < c; d++)
32009
- a.push(Bt(32).toString(32));
32009
+ a.push(Rt(32).toString(32));
32010
32010
  return a.join("");
32011
32011
  }
32012
32012
  var ya = va, Ca = {
@@ -32067,11 +32067,11 @@ var uo = { exports: {} };
32067
32067
  createRequest(c, a, d) {
32068
32068
  return new ha(c, a, d);
32069
32069
  }
32070
- }, Rt = Ma;
32071
- Rt.createXDR = function(c, a) {
32070
+ }, Dt = Ma;
32071
+ Dt.createXDR = function(c, a) {
32072
32072
  return this.createRequest(ua, c, a);
32073
32073
  };
32074
- var La = Rt, Ta = {
32074
+ var La = Dt, Ta = {
32075
32075
  nextAuthCallbackID: 1,
32076
32076
  auth_callbacks: {},
32077
32077
  ScriptReceivers: r,
@@ -32219,8 +32219,8 @@ var uo = { exports: {} };
32219
32219
  connect(a, d) {
32220
32220
  if (this.isSupported()) {
32221
32221
  if (this.priority < a)
32222
- return Dt(new w(), d);
32223
- } else return Dt(new F(), d);
32222
+ return Ot(new w(), d);
32223
+ } else return Ot(new F(), d);
32224
32224
  var p = !1, S = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), T = null, E = function() {
32225
32225
  S.unbind("initialized", E), S.connect();
32226
32226
  }, I = function() {
@@ -32246,7 +32246,7 @@ var uo = { exports: {} };
32246
32246
  };
32247
32247
  }
32248
32248
  }
32249
- function Dt(c, a) {
32249
+ function Ot(c, a) {
32250
32250
  return ae.defer(function() {
32251
32251
  a(c);
32252
32252
  }), {
@@ -32598,7 +32598,7 @@ var uo = { exports: {} };
32598
32598
  })(uo);
32599
32599
  var Id = uo.exports;
32600
32600
  const Bd = /* @__PURE__ */ Nd(Id);
32601
- class ps {
32601
+ class fs {
32602
32602
  constructor(e) {
32603
32603
  h(this, "container");
32604
32604
  h(this, "onAction");
@@ -33044,7 +33044,7 @@ class Ud {
33044
33044
  this.paymentResponse = s, this.paymentResponseHeaders = o, s.status === "failed" ? (this.currentStep = 7, s.providerMessage ? this.warningScreen.setPaymentError(s.providerMessage) : this.warningScreen.setPaymentError("Payment failed"), P.track("stop_transferProcess", {
33045
33045
  payment_method: "Transfer",
33046
33046
  verification_status: "Failed"
33047
- })) : (e && i && (e.classList.add("hidden"), i.classList.remove("hidden")), this.activeRef = s.reference, this.paymentResponse = s, s.bankDetails && s.bankDetails.accountNumber ? (this.transferDetails = new ps({
33047
+ })) : (e && i && (e.classList.add("hidden"), i.classList.remove("hidden")), this.activeRef = s.reference, this.paymentResponse = s, s.bankDetails && s.bankDetails.accountNumber ? (this.transferDetails = new fs({
33048
33048
  container: this.contents,
33049
33049
  onAction: (r) => {
33050
33050
  this.onSentVerify.bind(this)(r);
@@ -33085,7 +33085,7 @@ class Ud {
33085
33085
  }), this.contents) {
33086
33086
  switch (this.currentStep) {
33087
33087
  case 1:
33088
- this.transferDetails = new ps({
33088
+ this.transferDetails = new fs({
33089
33089
  container: this.contents,
33090
33090
  onAction: (s) => {
33091
33091
  this.onSentVerify.bind(this)(s);
@@ -33194,7 +33194,7 @@ class Ud {
33194
33194
  this.abortController && this.abortController.abort();
33195
33195
  }
33196
33196
  }
33197
- function fs() {
33197
+ function gs() {
33198
33198
  return function(n, e) {
33199
33199
  let i = n[e];
33200
33200
  Object.defineProperty(n, e, {
@@ -33217,7 +33217,7 @@ class Qe extends Error {
33217
33217
  super(e), this.name = "AuthorizationError";
33218
33218
  }
33219
33219
  }
33220
- class _t {
33220
+ class wt {
33221
33221
  constructor(e) {
33222
33222
  h(this, "token");
33223
33223
  h(this, "baseurl", "https://api.spotflow.co/api/v1");
@@ -33233,7 +33233,7 @@ class _t {
33233
33233
  this.token = e.token, this.rdtCode = e.rdtCode, this.url = e.url, this.headers = this.getHeaders(this.token, this.rdtCode);
33234
33234
  }
33235
33235
  }
33236
- class co extends _t {
33236
+ class co extends wt {
33237
33237
  constructor(e) {
33238
33238
  super(e);
33239
33239
  }
@@ -33358,7 +33358,7 @@ class co extends _t {
33358
33358
  }
33359
33359
  }
33360
33360
  }
33361
- class Kd extends _t {
33361
+ class Kd extends wt {
33362
33362
  constructor(e) {
33363
33363
  super(e);
33364
33364
  }
@@ -33386,7 +33386,7 @@ class Kd extends _t {
33386
33386
  }
33387
33387
  }
33388
33388
  }
33389
- class jd extends _t {
33389
+ class jd extends wt {
33390
33390
  constructor(e) {
33391
33391
  super(e);
33392
33392
  }
@@ -33445,7 +33445,7 @@ const Gd = `<form id="ussdBanks">
33445
33445
  </div>
33446
33446
  </div>
33447
33447
  </form>`;
33448
- class gs {
33448
+ class ys {
33449
33449
  constructor(e) {
33450
33450
  h(this, "container");
33451
33451
  h(this, "bank_service");
@@ -33791,7 +33791,7 @@ class ho {
33791
33791
  }
33792
33792
  switch (this.currentStep) {
33793
33793
  case 1:
33794
- this.bankDetail = new gs({
33794
+ this.bankDetail = new ys({
33795
33795
  container: this.contents,
33796
33796
  merchantKey: this.secret,
33797
33797
  onAction: this.onCodeSelect.bind(this),
@@ -33849,7 +33849,7 @@ class ho {
33849
33849
  }), this.successScreen.renderComponent();
33850
33850
  break;
33851
33851
  default:
33852
- this.bankDetail = new gs({
33852
+ this.bankDetail = new ys({
33853
33853
  container: this.contents,
33854
33854
  merchantKey: this.secret,
33855
33855
  onAction: this.onCodeSelect.bind(this),
@@ -33870,8 +33870,8 @@ class ho {
33870
33870
  }
33871
33871
  }
33872
33872
  zd([
33873
- fs(),
33874
- fs()
33873
+ gs(),
33874
+ gs()
33875
33875
  ], ho.prototype, "selectedCode");
33876
33876
  const Wd = {
33877
33877
  NGN: "Nigerian Naira",
@@ -34958,7 +34958,7 @@ const lu = `<div id="eft-authenticate-container">
34958
34958
  </div>
34959
34959
 
34960
34960
  </div>`;
34961
- class ys {
34961
+ class Cs {
34962
34962
  constructor(e) {
34963
34963
  h(this, "container");
34964
34964
  h(this, "payment");
@@ -35178,7 +35178,7 @@ class du {
35178
35178
  if (this.currentStep !== 1 ? (this.hidePaymentMethods(), i == null || i.classList.add("hidden")) : this.showPaymentMethods(), this.isMobile && this.hidePaymentMethods(), this.contents) {
35179
35179
  switch (this.currentStep) {
35180
35180
  case 1:
35181
- this.eftAuthenticate = new ys({
35181
+ this.eftAuthenticate = new Cs({
35182
35182
  container: this.contents,
35183
35183
  merchantKey: this.token,
35184
35184
  url: this.url,
@@ -35230,7 +35230,7 @@ class du {
35230
35230
  }), this.transactionIssuesScreen.renderTransactionIssuesComponent();
35231
35231
  break;
35232
35232
  default:
35233
- this.eftAuthenticate = new ys({
35233
+ this.eftAuthenticate = new Cs({
35234
35234
  container: this.contents,
35235
35235
  merchantKey: this.token,
35236
35236
  url: this.url,
@@ -35595,7 +35595,7 @@ class uu {
35595
35595
  return hr;
35596
35596
  }
35597
35597
  }
35598
- class Cs {
35598
+ class nt {
35599
35599
  constructor(e) {
35600
35600
  h(this, "container");
35601
35601
  this.container = e;
@@ -35744,7 +35744,9 @@ class gu {
35744
35744
  localCurrency: y
35745
35745
  } = e;
35746
35746
  if (this.merchantKey = s || "", this.email = i || "", this.amount = r || 0, this.encryption = t || "", this.planId = o || "", this.rdtCode = l || "", this.reference = u || Cr(), this.url = v || "", this.callBackUrl = g || "", this.metadata = f || {}, !s || !i)
35747
- throw this.mainError = new Cs(this.mainLayout), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Merchant key or email is required");
35747
+ throw this.mainError = new nt(this.mainLayout), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("Merchant key or email is required");
35748
+ if (b === "ZAR" || y === "ZAR")
35749
+ throw this.mainError = new nt(this.mainLayout), this.mainError.renderContent(this.callBackUrl), this.showErrorIcon(), new Error("ZAR payments are not supported yet");
35748
35750
  this.currency = b || "", this.merchantConfigService = new Kd({
35749
35751
  token: this.merchantKey,
35750
35752
  rdtCode: this.rdtCode,
@@ -35766,7 +35768,7 @@ class gu {
35766
35768
  metadata: this.metadata,
35767
35769
  localCurrency: this.localCurrency,
35768
35770
  closePayment: this.closePayment.bind(this)
35769
- }), this.mainLoader = new Ie(this.mainLayout), this.mainError = new Cs(this.mainLayout), this.mainLoader.mountLoader(), this.getPlanDetails();
35771
+ }), this.mainLoader = new Ie(this.mainLayout), this.mainError = new nt(this.mainLayout), this.mainLoader.mountLoader(), this.getPlanDetails();
35770
35772
  }
35771
35773
  getAvailableChannels() {
35772
35774
  var o, r;
@@ -35788,7 +35790,7 @@ class gu {
35788
35790
  merchant: this.merchantPlanDetail.merchantName
35789
35791
  }), P.track("checkout_opens");
35790
35792
  const { validChannels: t, disabledChannels: s } = this.getAvailableChannels();
35791
- if (t.length === 0) {
35793
+ if (t.length === 0 || t[0] === "ussd" && t.length === 1) {
35792
35794
  const r = new hu(this.mainLayout);
35793
35795
  this.mainError = r;
35794
35796
  let l = 0;