@sprig-technologies/sprig-bundled 2.39.0 → 2.39.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.
@@ -129,7 +129,7 @@ var Te = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
129
129
  } catch {
130
130
  }
131
131
  }
132
- }, Rd = new ct("W01", "Unable to initialize event under dispatching."), Ld = new ct("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Od = new ct("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Ad = new ct("W04", "Unable to preventDefault on non-cancelable events."), Md = new ct("W05", "Unable to preventDefault inside passive event listener invocation."), Ud = new ct("W06", "An event listener wasn't added because it has been added already: %o, %o"), Xn = new ct("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), co = new ct("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), qe = class {
132
+ }, Rd = new ct("W01", "Unable to initialize event under dispatching."), Ld = new ct("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Od = new ct("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Ad = new ct("W04", "Unable to preventDefault on non-cancelable events."), Md = new ct("W05", "Unable to preventDefault inside passive event listener invocation."), Ud = new ct("W06", "An event listener wasn't added because it has been added already: %o, %o"), Kn = new ct("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), co = new ct("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), Je = class {
133
133
  static get NONE() {
134
134
  return uo;
135
135
  }
@@ -230,10 +230,10 @@ function he(e, t = "this") {
230
230
  function fo(e) {
231
231
  e.inPassiveListenerFlag ? Md.warn() : e.cancelable ? e.canceledFlag = !0 : Ad.warn();
232
232
  }
233
- Object.defineProperty(qe, "NONE", { enumerable: !0 }), Object.defineProperty(qe, "CAPTURING_PHASE", { enumerable: !0 }), Object.defineProperty(qe, "AT_TARGET", { enumerable: !0 }), Object.defineProperty(qe, "BUBBLING_PHASE", { enumerable: !0 });
234
- var Kn = Object.getOwnPropertyNames(qe.prototype);
235
- for (let e = 0; e < Kn.length; ++e) Kn[e] !== "constructor" && Object.defineProperty(qe.prototype, Kn[e], { enumerable: !0 });
236
- Te !== void 0 && Te.Event !== void 0 && Object.setPrototypeOf(qe.prototype, Te.Event.prototype);
233
+ Object.defineProperty(Je, "NONE", { enumerable: !0 }), Object.defineProperty(Je, "CAPTURING_PHASE", { enumerable: !0 }), Object.defineProperty(Je, "AT_TARGET", { enumerable: !0 }), Object.defineProperty(Je, "BUBBLING_PHASE", { enumerable: !0 });
234
+ var Xn = Object.getOwnPropertyNames(Je.prototype);
235
+ for (let e = 0; e < Xn.length; ++e) Xn[e] !== "constructor" && Object.defineProperty(Je.prototype, Xn[e], { enumerable: !0 });
236
+ Te !== void 0 && Te.Event !== void 0 && Object.setPrototypeOf(Je.prototype, Te.Event.prototype);
237
237
  var wt, go = { INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25 };
238
238
  function yo(e) {
239
239
  let t = Object.keys(go);
@@ -242,7 +242,7 @@ function yo(e) {
242
242
  Object.defineProperty(e, n, { get: () => s, configurable: !0, enumerable: !0 });
243
243
  }
244
244
  }
245
- var fn = class extends qe {
245
+ var fn = class extends Je {
246
246
  static wrap(e) {
247
247
  return new (dl(e))(e);
248
248
  }
@@ -380,7 +380,7 @@ var Dn = class {
380
380
  }(f, y, h, I, m, g);
381
381
  d.cow ? (d.cow = !1, d.listeners = [...d.listeners, v]) : d.listeners.push(v);
382
382
  }(u, s, i, o, a, l) : function(d, f, y, h) {
383
- Ud.warn(hl(d) ? "capture" : "bubble", d.callback), wo(d) !== f && Xn.warn("passive"), vo(d) !== y && Xn.warn("once"), d.signal !== h && Xn.warn("signal");
383
+ Ud.warn(hl(d) ? "capture" : "bubble", d.callback), wo(d) !== f && Kn.warn("passive"), vo(d) !== y && Kn.warn("once"), d.signal !== h && Kn.warn("signal");
384
384
  }(u.listeners[p], o, a, l);
385
385
  }
386
386
  removeEventListener(e, t, r) {
@@ -392,7 +392,7 @@ var Dn = class {
392
392
  dispatchEvent(e) {
393
393
  let t = Zn(this)[String(e.type)];
394
394
  if (t == null) return !0;
395
- let r = e instanceof qe ? e : fn.wrap(e), n = he(r, "event");
395
+ let r = e instanceof Je ? e : fn.wrap(e), n = he(r, "event");
396
396
  if (n.dispatchFlag) throw s = "This event has been in dispatching.", Te.DOMException ? new Te.DOMException(s, "InvalidStateError") : (wt == null && (wt = class gl extends Error {
397
397
  constructor(a) {
398
398
  super(a), Error.captureStackTrace && Error.captureStackTrace(this, gl);
@@ -675,14 +675,14 @@ const ye = { childNodes: function(e) {
675
675
  function Sl(e) {
676
676
  return e.nodeType === e.ELEMENT_NODE;
677
677
  }
678
- function Xt(e) {
678
+ function Kt(e) {
679
679
  const t = e && "host" in e && "mode" in e && ye.host(e) || null;
680
680
  return !!(t && "shadowRoot" in t && ye.shadowRoot(t) === e);
681
681
  }
682
- function Kt(e) {
682
+ function Xt(e) {
683
683
  return Object.prototype.toString.call(e) === "[object ShadowRoot]";
684
684
  }
685
- function Jr(e) {
685
+ function qr(e) {
686
686
  try {
687
687
  const r = e.rules || e.cssRules;
688
688
  return r ? ((t = Array.from(r, (s) => Il(s, e.href)).join("")).includes(" background-clip: text;") && !t.includes(" -webkit-background-clip: text;") && (t = t.replace(/\sbackground-clip:\s*text;/g, " -webkit-background-clip: text; background-clip: text;")), t) : null;
@@ -697,7 +697,7 @@ function Il(e, t) {
697
697
  }(e)) {
698
698
  let r;
699
699
  try {
700
- r = Jr(e.styleSheet) || function(n) {
700
+ r = qr(e.styleSheet) || function(n) {
701
701
  const { cssText: s } = n;
702
702
  if (s.split('"').length < 3) return s;
703
703
  const i = ["@import", `url(${JSON.stringify(n.href)})`];
@@ -807,11 +807,11 @@ function kl() {
807
807
  return $d++;
808
808
  }
809
809
  let vt, Oo;
810
- const Jd = /^[^ \t\n\r\u000c]+/, qd = /^[, \t\n\r\u000c]+/, Ao = /* @__PURE__ */ new WeakMap();
810
+ const qd = /^[^ \t\n\r\u000c]+/, Jd = /^[, \t\n\r\u000c]+/, Ao = /* @__PURE__ */ new WeakMap();
811
811
  function Nt(e, t) {
812
812
  return t && t.trim() !== "" ? Di(e, t) : t;
813
813
  }
814
- function Xd(e) {
814
+ function Kd(e) {
815
815
  return !!(e.tagName === "svg" || e.ownerSVGElement);
816
816
  }
817
817
  function Di(e, t) {
@@ -831,8 +831,8 @@ function El(e, t, r, n) {
831
831
  return p ? (u = p[0], a += u.length, u) : "";
832
832
  }
833
833
  const l = [];
834
- for (; o(qd), !(a >= i.length); ) {
835
- let c = o(Jd);
834
+ for (; o(Jd), !(a >= i.length); ) {
835
+ let c = o(qd);
836
836
  if (c.slice(-1) === ",") c = Nt(s, c.substring(0, c.length - 1)), l.push(c);
837
837
  else {
838
838
  let u = "";
@@ -894,7 +894,7 @@ function Rl(e, t, r, n) {
894
894
  }
895
895
  return !1;
896
896
  }
897
- function Kd(e, t) {
897
+ function Xd(e, t) {
898
898
  const { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: a, inlineStylesheet: o, maskInputOptions: l = {}, maskTextFn: c, maskInputFn: u, dataURLOptions: p = {}, inlineImages: d, recordCanvas: f, keepIframeSrcFn: y, newlyAddedElement: h = !1 } = t, I = function(m, g) {
899
899
  if (!g.hasNode(m)) return;
900
900
  const v = g.getId(m);
@@ -911,8 +911,8 @@ function Kd(e, t) {
911
911
  try {
912
912
  if (typeof _ == "string") {
913
913
  if (O.classList.contains(_)) return !0;
914
- } else for (let J = O.classList.length; J--; ) {
915
- const W = O.classList[J];
914
+ } else for (let q = O.classList.length; q--; ) {
915
+ const W = O.classList[q];
916
916
  if (_.test(W)) return !0;
917
917
  }
918
918
  if (ee) return O.matches(ee);
@@ -933,10 +933,10 @@ function Kd(e, t) {
933
933
  if (w === "link" && x) {
934
934
  const O = Array.from(v.styleSheets).find((ee) => ee.href === m.href);
935
935
  let _ = null;
936
- O && (_ = Jr(O)), _ && (delete T.rel, delete T.href, T._cssText = _);
936
+ O && (_ = qr(O)), _ && (delete T.rel, delete T.href, T._cssText = _);
937
937
  }
938
938
  if (w === "style" && m.sheet && !(m.innerText || ye.textContent(m) || "").trim().length) {
939
- const O = Jr(m.sheet);
939
+ const O = qr(m.sheet);
940
940
  O && (T._cssText = O);
941
941
  }
942
942
  if (w === "input" || w === "textarea" || w === "select") {
@@ -947,9 +947,9 @@ function Kd(e, t) {
947
947
  if (m.__context === "2d") (function(O) {
948
948
  const _ = O.getContext("2d");
949
949
  if (!_) return !0;
950
- for (let ee = 0; ee < O.width; ee += 50) for (let J = 0; J < O.height; J += 50) {
950
+ for (let ee = 0; ee < O.width; ee += 50) for (let q = 0; q < O.height; q += 50) {
951
951
  const W = _.getImageData, we = Ro in W ? W[Ro] : W;
952
- if (new Uint32Array(we.call(_, ee, J, Math.min(50, O.width - ee), Math.min(50, O.height - J)).data.buffer).some((fe) => fe !== 0)) return !1;
952
+ if (new Uint32Array(we.call(_, ee, q, Math.min(50, O.width - ee), Math.min(50, O.height - q)).data.buffer).some((fe) => fe !== 0)) return !1;
953
953
  }
954
954
  return !0;
955
955
  })(m) || (T.rr_dataURL = m.toDataURL(k.type, k.quality));
@@ -960,17 +960,17 @@ function Kd(e, t) {
960
960
  }
961
961
  if (w === "img" && E) {
962
962
  vt || (vt = v.createElement("canvas"), Oo = vt.getContext("2d"));
963
- const O = m, _ = O.currentSrc || O.getAttribute("src") || "<unknown-src>", ee = O.crossOrigin, J = () => {
964
- O.removeEventListener("load", J);
963
+ const O = m, _ = O.currentSrc || O.getAttribute("src") || "<unknown-src>", ee = O.crossOrigin, q = () => {
964
+ O.removeEventListener("load", q);
965
965
  try {
966
966
  vt.width = O.naturalWidth, vt.height = O.naturalHeight, Oo.drawImage(O, 0, 0), T.rr_dataURL = vt.toDataURL(k.type, k.quality);
967
967
  } catch (W) {
968
- if (O.crossOrigin !== "anonymous") return O.crossOrigin = "anonymous", void (O.complete && O.naturalWidth !== 0 ? J() : O.addEventListener("load", J));
968
+ if (O.crossOrigin !== "anonymous") return O.crossOrigin = "anonymous", void (O.complete && O.naturalWidth !== 0 ? q() : O.addEventListener("load", q));
969
969
  console.warn(`Cannot inline img src=${_}! Error: ${W}`);
970
970
  }
971
971
  O.crossOrigin === "anonymous" && (ee ? T.crossOrigin = ee : O.removeAttribute("crossorigin"));
972
972
  };
973
- O.complete && O.naturalWidth !== 0 ? J() : O.addEventListener("load", J);
973
+ O.complete && O.naturalWidth !== 0 ? q() : O.addEventListener("load", q);
974
974
  }
975
975
  if (w === "audio" || w === "video") {
976
976
  const O = T;
@@ -986,7 +986,7 @@ function Kd(e, t) {
986
986
  customElements.get(w) && (j = !0);
987
987
  } catch {
988
988
  }
989
- return { type: me.Element, tagName: w, attributes: T, childNodes: [], isSVG: Xd(m) || void 0, needBlock: b, rootId: D, isCustom: j };
989
+ return { type: me.Element, tagName: w, attributes: T, childNodes: [], isSVG: Kd(m) || void 0, needBlock: b, rootId: D, isCustom: j };
990
990
  }(e, { doc: r, blockClass: s, blockSelector: i, inlineStylesheet: o, maskInputOptions: l, maskInputFn: u, dataURLOptions: p, inlineImages: d, recordCanvas: f, keepIframeSrcFn: y, newlyAddedElement: h, rootId: I });
991
991
  case e.TEXT_NODE:
992
992
  return function(m, g) {
@@ -996,7 +996,7 @@ function Kd(e, t) {
996
996
  const E = M === "STYLE" || void 0, L = M === "SCRIPT" || void 0;
997
997
  if (E && k) {
998
998
  try {
999
- m.nextSibling || m.previousSibling || (v = U.sheet) != null && v.cssRules && (k = Jr(U.sheet));
999
+ m.nextSibling || m.previousSibling || (v = U.sheet) != null && v.cssRules && (k = qr(U.sheet));
1000
1000
  } catch (S) {
1001
1001
  console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`, m);
1002
1002
  }
@@ -1019,7 +1019,7 @@ function kt(e, t) {
1019
1019
  const { doc: r, mirror: n, blockClass: s, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: p, maskInputFn: d, slimDOMOptions: f, dataURLOptions: y = {}, inlineImages: h = !1, recordCanvas: I = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: C, stylesheetLoadTimeout: A = 5e3, keepIframeSrcFn: x = () => !1, newlyAddedElement: U = !1 } = t;
1020
1020
  let { needsMask: M } = t, { preserveWhiteSpace: k = !0 } = t;
1021
1021
  M || (M = Rl(e, a, o, M === void 0));
1022
- const E = Kd(e, { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: M, inlineStylesheet: c, maskInputOptions: u, maskTextFn: p, maskInputFn: d, dataURLOptions: y, inlineImages: h, recordCanvas: I, keepIframeSrcFn: x, newlyAddedElement: U });
1022
+ const E = Xd(e, { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: M, inlineStylesheet: c, maskInputOptions: u, maskTextFn: p, maskInputFn: d, dataURLOptions: y, inlineImages: h, recordCanvas: I, keepIframeSrcFn: x, newlyAddedElement: U });
1023
1023
  if (!E) return console.warn(e, "not serialized"), null;
1024
1024
  let L;
1025
1025
  L = n.hasNode(e) ? n.getId(e) : !function(b, w) {
@@ -1032,7 +1032,7 @@ function kt(e, t) {
1032
1032
  if (S.type === me.Element) {
1033
1033
  P = P && !S.needBlock, delete S.needBlock;
1034
1034
  const b = ye.shadowRoot(e);
1035
- b && Kt(b) && (S.isShadowHost = !0);
1035
+ b && Xt(b) && (S.isShadowHost = !0);
1036
1036
  }
1037
1037
  if ((S.type === me.Document || S.type === me.Element) && P) {
1038
1038
  f.headWhitespace && S.type === me.Element && S.tagName === "head" && (k = !1);
@@ -1044,11 +1044,11 @@ function kt(e, t) {
1044
1044
  let w = null;
1045
1045
  if (Sl(e) && (w = ye.shadowRoot(e))) for (const T of Array.from(ye.childNodes(w))) {
1046
1046
  const F = kt(T, b);
1047
- F && (Kt(w) && (F.isShadow = !0), S.childNodes.push(F));
1047
+ F && (Xt(w) && (F.isShadow = !0), S.childNodes.push(F));
1048
1048
  }
1049
1049
  }
1050
1050
  const D = ye.parentNode(e);
1051
- return D && Xt(D) && Kt(D) && (S.isShadow = !0), S.type === me.Element && S.tagName === "iframe" && function(b, w, T) {
1051
+ return D && Kt(D) && Xt(D) && (S.isShadow = !0), S.type === me.Element && S.tagName === "iframe" && function(b, w, T) {
1052
1052
  const F = b.contentWindow;
1053
1053
  if (!F) return;
1054
1054
  let j, O = !1;
@@ -1558,7 +1558,7 @@ let { SourceMapConsumer: Po, SourceMapGenerator: _o } = Pe, { existsSync: lp, re
1558
1558
  };
1559
1559
  var Al = Ts;
1560
1560
  Ts.default = Ts;
1561
- let { SourceMapConsumer: dp, SourceMapGenerator: pp } = Pe, { fileURLToPath: No, pathToFileURL: Cr } = Pe, { isAbsolute: Ds, resolve: Ps } = Pe, { nanoid: hp } = ap, ns = Pe, Fo = Pi, mp = Al, ss = Symbol("fromOffsetCache"), fp = !!(dp && pp), Bo = !!(Ps && Ds), qr = class {
1561
+ let { SourceMapConsumer: dp, SourceMapGenerator: pp } = Pe, { fileURLToPath: No, pathToFileURL: Cr } = Pe, { isAbsolute: Ds, resolve: Ps } = Pe, { nanoid: hp } = ap, ns = Pe, Fo = Pi, mp = Al, ss = Symbol("fromOffsetCache"), fp = !!(dp && pp), Bo = !!(Ps && Ds), Jr = class {
1562
1562
  constructor(e, t = {}) {
1563
1563
  if (e == null || typeof e == "object" && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
1564
1564
  if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Bo || /^\w+:\/\//.test(t.from) || Ds(t.from) ? this.file = t.from : this.file = Ps(t.from)), Bo && fp) {
@@ -1642,9 +1642,9 @@ let { SourceMapConsumer: dp, SourceMapGenerator: pp } = Pe, { fileURLToPath: No,
1642
1642
  return this.file || this.id;
1643
1643
  }
1644
1644
  };
1645
- var zn = qr;
1646
- qr.default = qr, ns && ns.registerInput && ns.registerInput(qr);
1647
- let { SourceMapConsumer: Ml, SourceMapGenerator: Xr } = Pe, { dirname: Kr, relative: Ul, resolve: Tl, sep: Dl } = Pe, { pathToFileURL: zo } = Pe, gp = zn, yp = !!(Ml && Xr), wp = !!(Kr && Tl && Ul && Dl);
1645
+ var zn = Jr;
1646
+ Jr.default = Jr, ns && ns.registerInput && ns.registerInput(Jr);
1647
+ let { SourceMapConsumer: Ml, SourceMapGenerator: Kr } = Pe, { dirname: Xr, relative: Ul, resolve: Tl, sep: Dl } = Pe, { pathToFileURL: zo } = Pe, gp = zn, yp = !!(Ml && Kr), wp = !!(Xr && Tl && Ul && Dl);
1648
1648
  var Pl = class {
1649
1649
  constructor(e, t, r, n) {
1650
1650
  this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
@@ -1660,7 +1660,7 @@ var Pl = class {
1660
1660
  }
1661
1661
  applyPrevMaps() {
1662
1662
  for (let e of this.previous()) {
1663
- let t, r = this.toUrl(this.path(e.file)), n = e.root || Kr(e.file);
1663
+ let t, r = this.toUrl(this.path(e.file)), n = e.root || Xr(e.file);
1664
1664
  this.mapOpts.sourcesContent === !1 ? (t = new Ml(e.text), t.sourcesContent && (t.sourcesContent = null)) : t = e.consumer(), this.map.applySourceMap(t, r, this.toUrl(this.path(n)));
1665
1665
  }
1666
1666
  }
@@ -1683,12 +1683,12 @@ var Pl = class {
1683
1683
  if (this.root) this.generateString();
1684
1684
  else if (this.previous().length === 1) {
1685
1685
  let e = this.previous()[0].consumer();
1686
- e.file = this.outputFile(), this.map = Xr.fromSourceMap(e, { ignoreInvalidMapping: !0 });
1687
- } else this.map = new Xr({ file: this.outputFile(), ignoreInvalidMapping: !0 }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
1686
+ e.file = this.outputFile(), this.map = Kr.fromSourceMap(e, { ignoreInvalidMapping: !0 });
1687
+ } else this.map = new Kr({ file: this.outputFile(), ignoreInvalidMapping: !0 }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
1688
1688
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
1689
1689
  }
1690
1690
  generateString() {
1691
- this.css = "", this.map = new Xr({ file: this.outputFile(), ignoreInvalidMapping: !0 });
1691
+ this.css = "", this.map = new Kr({ file: this.outputFile(), ignoreInvalidMapping: !0 });
1692
1692
  let e, t, r = 1, n = 1, s = "<no source>", i = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
1693
1693
  this.stringify(this.root, (a, o, l) => {
1694
1694
  if (this.css += a, o && l !== "end" && (i.generated.line = r, i.generated.column = n - 1, o.source && o.source.start ? (i.source = this.sourcePath(o), i.original.line = o.source.start.line, i.original.column = o.source.start.column - 1, this.map.addMapping(i)) : (i.source = s, i.original.line = 1, i.original.column = 0, this.map.addMapping(i))), e = a.match(/\n/g), e ? (r += e.length, t = a.lastIndexOf(`
@@ -1719,8 +1719,8 @@ var Pl = class {
1719
1719
  if (this.mapOpts.absolute || e.charCodeAt(0) === 60 || /^\w+:\/\//.test(e)) return e;
1720
1720
  let t = this.memoizedPaths.get(e);
1721
1721
  if (t) return t;
1722
- let r = this.opts.to ? Kr(this.opts.to) : ".";
1723
- typeof this.mapOpts.annotation == "string" && (r = Kr(Tl(r, this.mapOpts.annotation)));
1722
+ let r = this.opts.to ? Xr(this.opts.to) : ".";
1723
+ typeof this.mapOpts.annotation == "string" && (r = Xr(Tl(r, this.mapOpts.annotation)));
1724
1724
  let n = Ul(r, e);
1725
1725
  return this.memoizedPaths.set(e, n), n;
1726
1726
  }
@@ -1791,7 +1791,7 @@ function Wl(e) {
1791
1791
  function Vl(e) {
1792
1792
  if (e[Fl] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) Vl(t);
1793
1793
  }
1794
- let Xe = class Gl extends bp {
1794
+ let Ke = class Gl extends bp {
1795
1795
  append(...t) {
1796
1796
  for (let r of t) {
1797
1797
  let n = this.normalize(r, this.last);
@@ -1937,19 +1937,19 @@ let Xe = class Gl extends bp {
1937
1937
  if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
1938
1938
  }
1939
1939
  };
1940
- Xe.registerParse = (e) => {
1940
+ Ke.registerParse = (e) => {
1941
1941
  _l = e;
1942
- }, Xe.registerRule = (e) => {
1942
+ }, Ke.registerRule = (e) => {
1943
1943
  _i = e;
1944
- }, Xe.registerAtRule = (e) => {
1944
+ }, Ke.registerAtRule = (e) => {
1945
1945
  Ni = e;
1946
- }, Xe.registerRoot = (e) => {
1946
+ }, Ke.registerRoot = (e) => {
1947
1947
  Nl = e;
1948
1948
  };
1949
- var ft = Xe;
1950
- Xe.default = Xe, Xe.rebuild = (e) => {
1949
+ var ft = Ke;
1950
+ Ke.default = Ke, Ke.rebuild = (e) => {
1951
1951
  e.type === "atrule" ? Object.setPrototypeOf(e, Ni.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, _i.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, zl.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, jl.prototype) : e.type === "root" && Object.setPrototypeOf(e, Nl.prototype), e[Bl] = !0, e.nodes && e.nodes.forEach((t) => {
1952
- Xe.rebuild(t);
1952
+ Ke.rebuild(t);
1953
1953
  });
1954
1954
  };
1955
1955
  let Hl, $l, Sp = ft, ir = class extends Sp {
@@ -2003,7 +2003,7 @@ let Ip = Yl, Fs = class {
2003
2003
  var Bi = Fs;
2004
2004
  Fs.default = Fs;
2005
2005
  const is = 39, jo = 34, kr = 92, Wo = 47, Er = 10, Ft = 32, xr = 12, Rr = 9, Lr = 13, Cp = 91, kp = 93, Ep = 40, xp = 41, Rp = 123, Lp = 125, Op = 59, Ap = 42, Mp = 58, Up = 64, Or = /[\t\n\f\r "#'()/;[\\\]{}]/g, Ar = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Tp = /.[\r\n"'(/\\]/, Vo = /[\da-f]/i;
2006
- let Jl = ft, Zr = class extends Jl {
2006
+ let ql = ft, Zr = class extends ql {
2007
2007
  constructor(e) {
2008
2008
  super(e), this.type = "atrule";
2009
2009
  }
@@ -2015,8 +2015,8 @@ let Jl = ft, Zr = class extends Jl {
2015
2015
  }
2016
2016
  };
2017
2017
  var zi = Zr;
2018
- Zr.default = Zr, Jl.registerAtRule(Zr);
2019
- let ql, Xl, Kl = ft, Lt = class extends Kl {
2018
+ Zr.default = Zr, ql.registerAtRule(Zr);
2019
+ let Jl, Kl, Xl = ft, Lt = class extends Xl {
2020
2020
  constructor(e) {
2021
2021
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2022
2022
  }
@@ -2033,16 +2033,16 @@ let ql, Xl, Kl = ft, Lt = class extends Kl {
2033
2033
  return !t && r === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[r].raws.before), super.removeChild(e);
2034
2034
  }
2035
2035
  toResult(e = {}) {
2036
- return new ql(new Xl(), this, e).stringify();
2036
+ return new Jl(new Kl(), this, e).stringify();
2037
2037
  }
2038
2038
  };
2039
2039
  Lt.registerLazyResult = (e) => {
2040
- ql = e;
2040
+ Jl = e;
2041
2041
  }, Lt.registerProcessor = (e) => {
2042
- Xl = e;
2042
+ Kl = e;
2043
2043
  };
2044
2044
  var fr = Lt;
2045
- Lt.default = Lt, Kl.registerRoot(Lt);
2045
+ Lt.default = Lt, Xl.registerRoot(Lt);
2046
2046
  let or = { comma: (e) => or.split(e, [","], !0), space: (e) => or.split(e, [" ", `
2047
2047
  `, " "]), split(e, t, r) {
2048
2048
  let n = [], s = "", i = !1, a = 0, o = !1, l = "", c = !1;
@@ -2408,13 +2408,13 @@ function en(e, t) {
2408
2408
  }
2409
2409
  var Wi = en;
2410
2410
  en.default = en, jp.registerParse(en);
2411
- let { isClean: Ne, my: Gp } = sr, Hp = Pl, $p = Nn, Yp = ft, Jp = Fi, $o = Bi, qp = Wi, Xp = fr;
2412
- const Kp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Zp = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, Qp = { Once: !0, postcssPlugin: !0, prepare: !0 };
2411
+ let { isClean: Ne, my: Gp } = sr, Hp = Pl, $p = Nn, Yp = ft, qp = Fi, $o = Bi, Jp = Wi, Kp = fr;
2412
+ const Xp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Zp = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, Qp = { Once: !0, postcssPlugin: !0, prepare: !0 };
2413
2413
  function Bt(e) {
2414
2414
  return typeof e == "object" && typeof e.then == "function";
2415
2415
  }
2416
2416
  function ec(e) {
2417
- let t = !1, r = Kp[e.type];
2417
+ let t = !1, r = Xp[e.type];
2418
2418
  return e.type === "decl" ? t = e.prop.toLowerCase() : e.type === "atrule" && (t = e.name.toLowerCase()), t && e.append ? [r, r + "-" + t, 0, r + "Exit", r + "Exit-" + t] : t ? [r, r + "-" + t, r + "Exit", r + "Exit-" + t] : e.append ? [r, 0, r + "Exit"] : [r, r + "Exit"];
2419
2419
  }
2420
2420
  function Yo(e) {
@@ -2429,7 +2429,7 @@ let zs = {}, Et = class tc {
2429
2429
  let s;
2430
2430
  if (this.stringified = !1, this.processed = !1, typeof r != "object" || r === null || r.type !== "root" && r.type !== "document") if (r instanceof tc || r instanceof $o) s = Bs(r.root), r.map && (n.map === void 0 && (n.map = {}), n.map.inline || (n.map.inline = !1), n.map.prev = r.map);
2431
2431
  else {
2432
- let i = qp;
2432
+ let i = Jp;
2433
2433
  n.syntax && (i = n.syntax.parse), n.parser && (i = n.parser), i.parse && (i = i.parse);
2434
2434
  try {
2435
2435
  s = i(r, n);
@@ -2638,7 +2638,7 @@ Et.registerPostcss = (e) => {
2638
2638
  zs = e;
2639
2639
  };
2640
2640
  var rc = Et;
2641
- Et.default = Et, Xp.registerLazyResult(Et), Jp.registerLazyResult(Et);
2641
+ Et.default = Et, Kp.registerLazyResult(Et), qp.registerLazyResult(Et);
2642
2642
  let eh = Pl, th = Nn, rh = Wi;
2643
2643
  const nh = Bi;
2644
2644
  let js = class {
@@ -2757,11 +2757,11 @@ function ar(e, t) {
2757
2757
  }
2758
2758
  var yh = ar;
2759
2759
  ar.default = ar;
2760
- let wh = Pi, Jo = Bn, vh = rc, bh = ft, Ws = ch, Sh = Nn, Ih = yh, qo = Fi, Ch = Yl, Xo = jn, Ko = zi, kh = Bi, Eh = zn, xh = Wi, Rh = Zl, Zo = ji, Qo = fr, Lh = Fn;
2761
- function X(...e) {
2760
+ let wh = Pi, qo = Bn, vh = rc, bh = ft, Ws = ch, Sh = Nn, Ih = yh, Jo = Fi, Ch = Yl, Ko = jn, Xo = zi, kh = Bi, Eh = zn, xh = Wi, Rh = Zl, Zo = ji, Qo = fr, Lh = Fn;
2761
+ function K(...e) {
2762
2762
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new Ws(e);
2763
2763
  }
2764
- X.plugin = function(e, t) {
2764
+ K.plugin = function(e, t) {
2765
2765
  let r, n = !1;
2766
2766
  function s(...i) {
2767
2767
  console && console.warn && !n && (n = !0, console.warn(e + `: postcss.plugin was deprecated. Migration guide:
@@ -2771,11 +2771,11 @@ https://www.w3ctech.com/topic/2226`));
2771
2771
  return a.postcssPlugin = e, a.postcssVersion = new Ws().version, a;
2772
2772
  }
2773
2773
  return Object.defineProperty(s, "postcss", { get: () => (r || (r = s()), r) }), s.process = function(i, a, o) {
2774
- return X([s(o)]).process(i, a);
2774
+ return K([s(o)]).process(i, a);
2775
2775
  }, s;
2776
- }, X.stringify = Sh, X.parse = xh, X.fromJSON = Ih, X.list = Rh, X.comment = (e) => new Xo(e), X.atRule = (e) => new Ko(e), X.decl = (e) => new Jo(e), X.rule = (e) => new Zo(e), X.root = (e) => new Qo(e), X.document = (e) => new qo(e), X.CssSyntaxError = wh, X.Declaration = Jo, X.Container = bh, X.Processor = Ws, X.Document = qo, X.Comment = Xo, X.Warning = Ch, X.AtRule = Ko, X.Result = kh, X.Input = Eh, X.Rule = Zo, X.Root = Qo, X.Node = Lh, vh.registerPostcss(X);
2777
- var Oh = X;
2778
- X.default = X;
2776
+ }, K.stringify = Sh, K.parse = xh, K.fromJSON = Ih, K.list = Rh, K.comment = (e) => new Ko(e), K.atRule = (e) => new Xo(e), K.decl = (e) => new qo(e), K.rule = (e) => new Zo(e), K.root = (e) => new Qo(e), K.document = (e) => new Jo(e), K.CssSyntaxError = wh, K.Declaration = qo, K.Container = bh, K.Processor = Ws, K.Document = Jo, K.Comment = Ko, K.Warning = Ch, K.AtRule = Xo, K.Result = kh, K.Input = Eh, K.Rule = Zo, K.Root = Qo, K.Node = Lh, vh.registerPostcss(K);
2777
+ var Oh = K;
2778
+ K.default = K;
2779
2779
  const ae = Zd(Oh);
2780
2780
  ae.stringify, ae.fromJSON, ae.plugin, ae.parse, ae.list, ae.document, ae.comment, ae.atRule, ae.rule, ae.decl, ae.root, ae.CssSyntaxError, ae.Declaration, ae.Container, ae.Processor, ae.Document, ae.Comment, ae.Warning, ae.AtRule, ae.Result, ae.Input, ae.Rule, ae.Root, ae.Node;
2781
2781
  var Ah = Object.defineProperty, Oe = (e, t, r) => ((n, s, i) => s in n ? Ah(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i)(e, typeof t != "symbol" ? t + "" : t, r);
@@ -3013,7 +3013,7 @@ function Ys(e, t) {
3013
3013
  }
3014
3014
  return r;
3015
3015
  }
3016
- let Js = class {
3016
+ let qs = class {
3017
3017
  constructor(e = {}) {
3018
3018
  this.raws = {}, this[Mr] = !1, this[Ph] = !0;
3019
3019
  for (let t in e) if (t === "nodes") {
@@ -3158,9 +3158,9 @@ let Js = class {
3158
3158
  return this;
3159
3159
  }
3160
3160
  };
3161
- var Vn = Js;
3162
- Js.default = Js;
3163
- let Bh = Vn, qs = class extends Bh {
3161
+ var Vn = qs;
3162
+ qs.default = qs;
3163
+ let Bh = Vn, Js = class extends Bh {
3164
3164
  constructor(e) {
3165
3165
  e && e.value !== void 0 && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
3166
3166
  }
@@ -3168,14 +3168,14 @@ let Bh = Vn, qs = class extends Bh {
3168
3168
  return this.prop.startsWith("--") || this.prop[0] === "$";
3169
3169
  }
3170
3170
  };
3171
- var Gn = qs;
3172
- qs.default = qs;
3171
+ var Gn = Js;
3172
+ Js.default = Js;
3173
3173
  var zh = { nanoid: (e = 21) => {
3174
3174
  let t = "", r = e;
3175
3175
  for (; r--; ) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
3176
3176
  return t;
3177
3177
  } };
3178
- let { SourceMapConsumer: sa, SourceMapGenerator: ia } = _e, { existsSync: jh, readFileSync: Wh } = _e, { dirname: os, join: Vh } = _e, Xs = class {
3178
+ let { SourceMapConsumer: sa, SourceMapGenerator: ia } = _e, { existsSync: jh, readFileSync: Wh } = _e, { dirname: os, join: Vh } = _e, Ks = class {
3179
3179
  constructor(e, t) {
3180
3180
  if (t.map === !1) return;
3181
3181
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
@@ -3240,12 +3240,12 @@ let { SourceMapConsumer: sa, SourceMapGenerator: ia } = _e, { existsSync: jh, re
3240
3240
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
3241
3241
  }
3242
3242
  };
3243
- var ic = Xs;
3244
- Xs.default = Xs;
3245
- let { SourceMapConsumer: Gh, SourceMapGenerator: Hh } = _e, { fileURLToPath: oa, pathToFileURL: Ur } = _e, { isAbsolute: Ks, resolve: Zs } = _e, { nanoid: $h } = zh, as = _e, aa = Vi, Yh = ic, ls = Symbol("fromOffsetCache"), Jh = !!(Gh && Hh), la = !!(Zs && Ks), tn = class {
3243
+ var ic = Ks;
3244
+ Ks.default = Ks;
3245
+ let { SourceMapConsumer: Gh, SourceMapGenerator: Hh } = _e, { fileURLToPath: oa, pathToFileURL: Ur } = _e, { isAbsolute: Xs, resolve: Zs } = _e, { nanoid: $h } = zh, as = _e, aa = Vi, Yh = ic, ls = Symbol("fromOffsetCache"), qh = !!(Gh && Hh), la = !!(Zs && Xs), tn = class {
3246
3246
  constructor(e, t = {}) {
3247
3247
  if (e == null || typeof e == "object" && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
3248
- if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!la || /^\w+:\/\//.test(t.from) || Ks(t.from) ? this.file = t.from : this.file = Zs(t.from)), la && Jh) {
3248
+ if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!la || /^\w+:\/\//.test(t.from) || Xs(t.from) ? this.file = t.from : this.file = Zs(t.from)), la && qh) {
3249
3249
  let r = new Yh(this.css, t);
3250
3250
  if (r.text) {
3251
3251
  this.map = r;
@@ -3308,7 +3308,7 @@ let { SourceMapConsumer: Gh, SourceMapGenerator: Hh } = _e, { fileURLToPath: oa,
3308
3308
  if (!this.map) return !1;
3309
3309
  let s, i, a = this.map.consumer(), o = a.originalPositionFor({ column: t, line: e });
3310
3310
  if (!o.source) return !1;
3311
- typeof r == "number" && (s = a.originalPositionFor({ column: n, line: r })), i = Ks(o.source) ? Ur(o.source) : new URL(o.source, this.map.consumer().sourceRoot || Ur(this.map.mapFile));
3311
+ typeof r == "number" && (s = a.originalPositionFor({ column: n, line: r })), i = Xs(o.source) ? Ur(o.source) : new URL(o.source, this.map.consumer().sourceRoot || Ur(this.map.mapFile));
3312
3312
  let l = { column: o.column, endColumn: s && s.column, endLine: s && s.line, line: o.line, url: i.toString() };
3313
3313
  if (i.protocol === "file:") {
3314
3314
  if (!oa) throw new Error("file: protocol is not available in this PostCSS build");
@@ -3328,7 +3328,7 @@ let { SourceMapConsumer: Gh, SourceMapGenerator: Hh } = _e, { fileURLToPath: oa,
3328
3328
  };
3329
3329
  var Hn = tn;
3330
3330
  tn.default = tn, as && as.registerInput && as.registerInput(tn);
3331
- let { SourceMapConsumer: oc, SourceMapGenerator: rn } = _e, { dirname: nn, relative: ac, resolve: lc, sep: cc } = _e, { pathToFileURL: ca } = _e, qh = Hn, Xh = !!(oc && rn), Kh = !!(nn && lc && ac && cc);
3331
+ let { SourceMapConsumer: oc, SourceMapGenerator: rn } = _e, { dirname: nn, relative: ac, resolve: lc, sep: cc } = _e, { pathToFileURL: ca } = _e, Jh = Hn, Kh = !!(oc && rn), Xh = !!(nn && lc && ac && cc);
3332
3332
  var uc = class {
3333
3333
  constructor(e, t, r, n) {
3334
3334
  this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
@@ -3355,7 +3355,7 @@ var uc = class {
3355
3355
  } else this.css && (this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, ""));
3356
3356
  }
3357
3357
  generate() {
3358
- if (this.clearAnnotation(), Kh && Xh && this.isMap()) return this.generateMap();
3358
+ if (this.clearAnnotation(), Xh && Kh && this.isMap()) return this.generateMap();
3359
3359
  {
3360
3360
  let e = "";
3361
3361
  return this.stringify(this.root, (t) => {
@@ -3416,7 +3416,7 @@ var uc = class {
3416
3416
  }
3417
3417
  });
3418
3418
  else {
3419
- let e = new qh(this.originalCSS, this.opts);
3419
+ let e = new Jh(this.originalCSS, this.opts);
3420
3420
  e.map && this.previousMaps.push(e.map);
3421
3421
  }
3422
3422
  return this.previousMaps;
@@ -3475,7 +3475,7 @@ function yc(e) {
3475
3475
  function wc(e) {
3476
3476
  if (e[hc] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) wc(t);
3477
3477
  }
3478
- let Ke = class vc extends Qh {
3478
+ let Xe = class vc extends Qh {
3479
3479
  append(...t) {
3480
3480
  for (let r of t) {
3481
3481
  let n = this.normalize(r, this.last);
@@ -3621,19 +3621,19 @@ let Ke = class vc extends Qh {
3621
3621
  if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
3622
3622
  }
3623
3623
  };
3624
- Ke.registerParse = (e) => {
3624
+ Xe.registerParse = (e) => {
3625
3625
  dc = e;
3626
- }, Ke.registerRule = (e) => {
3626
+ }, Xe.registerRule = (e) => {
3627
3627
  Gi = e;
3628
- }, Ke.registerAtRule = (e) => {
3628
+ }, Xe.registerAtRule = (e) => {
3629
3629
  Hi = e;
3630
- }, Ke.registerRoot = (e) => {
3630
+ }, Xe.registerRoot = (e) => {
3631
3631
  pc = e;
3632
3632
  };
3633
- var gt = Ke;
3634
- Ke.default = Ke, Ke.rebuild = (e) => {
3633
+ var gt = Xe;
3634
+ Xe.default = Xe, Xe.rebuild = (e) => {
3635
3635
  e.type === "atrule" ? Object.setPrototypeOf(e, Hi.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Gi.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, fc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, gc.prototype) : e.type === "root" && Object.setPrototypeOf(e, pc.prototype), e[mc] = !0, e.nodes && e.nodes.forEach((t) => {
3636
- Ke.rebuild(t);
3636
+ Xe.rebuild(t);
3637
3637
  });
3638
3638
  };
3639
3639
  let bc, Sc, em = gt, cr = class extends em {
@@ -3698,7 +3698,7 @@ let Cc = gt, sn = class extends Cc {
3698
3698
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
3699
3699
  }
3700
3700
  };
3701
- var Ji = sn;
3701
+ var qi = sn;
3702
3702
  sn.default = sn, Cc.registerAtRule(sn);
3703
3703
  let kc, Ec, xc = gt, Ot = class extends xc {
3704
3704
  constructor(e) {
@@ -3747,7 +3747,7 @@ let Lc = gt, hm = Rc, on = class extends Lc {
3747
3747
  this.selector = e.join(r);
3748
3748
  }
3749
3749
  };
3750
- var qi = on;
3750
+ var Ji = on;
3751
3751
  on.default = on, Lc.registerRule(on);
3752
3752
  let mm = Gn, fm = function(e, t = {}) {
3753
3753
  let r, n, s, i, a, o, l, c, u, p, d = e.css.valueOf(), f = t.ignoreErrors, y = d.length, h = 0, I = [], m = [];
@@ -3834,7 +3834,7 @@ let mm = Gn, fm = function(e, t = {}) {
3834
3834
  }, position: function() {
3835
3835
  return h;
3836
3836
  } };
3837
- }, gm = $n, ym = Ji, wm = gr, ha = qi;
3837
+ }, gm = $n, ym = qi, wm = gr, ha = Ji;
3838
3838
  const ma = { empty: !0, space: !0 };
3839
3839
  var vm = class {
3840
3840
  constructor(e) {
@@ -4090,9 +4090,9 @@ function an(e, t) {
4090
4090
  }
4091
4091
  return n.root;
4092
4092
  }
4093
- var Xi = an;
4093
+ var Ki = an;
4094
4094
  an.default = an, bm.registerParse(an);
4095
- let { isClean: Fe, my: Cm } = lr, km = uc, Em = Wn, xm = gt, Rm = $i, fa = Yi, Lm = Xi, Om = gr;
4095
+ let { isClean: Fe, my: Cm } = lr, km = uc, Em = Wn, xm = gt, Rm = $i, fa = Yi, Lm = Ki, Om = gr;
4096
4096
  const Am = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Mm = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, Um = { Once: !0, postcssPlugin: !0, prepare: !0 };
4097
4097
  function jt(e) {
4098
4098
  return typeof e == "object" && typeof e.then == "function";
@@ -4323,7 +4323,7 @@ xt.registerPostcss = (e) => {
4323
4323
  };
4324
4324
  var Mc = xt;
4325
4325
  xt.default = xt, Om.registerLazyResult(xt), Rm.registerLazyResult(xt);
4326
- let Tm = uc, Dm = Wn, Pm = Xi;
4326
+ let Tm = uc, Dm = Wn, Pm = Ki;
4327
4327
  const _m = Yi;
4328
4328
  let si = class {
4329
4329
  constructor(e, t, r) {
@@ -4417,7 +4417,7 @@ let Fm = Nm, Bm = Mc, zm = $i, jm = gr, Gt = class {
4417
4417
  };
4418
4418
  var Wm = Gt;
4419
4419
  Gt.default = Gt, jm.registerProcessor(Gt), zm.registerProcessor(Gt);
4420
- let Vm = Gn, Gm = ic, Hm = $n, $m = Ji, Ym = Hn, Jm = gr, qm = qi;
4420
+ let Vm = Gn, Gm = ic, Hm = $n, $m = qi, Ym = Hn, qm = gr, Jm = Ji;
4421
4421
  function dr(e, t) {
4422
4422
  if (Array.isArray(e)) return e.map((s) => dr(s));
4423
4423
  let { inputs: r, ...n } = e;
@@ -4432,20 +4432,20 @@ function dr(e, t) {
4432
4432
  let { inputId: s, ...i } = n.source;
4433
4433
  n.source = i, s != null && (n.source.input = t[s]);
4434
4434
  }
4435
- if (n.type === "root") return new Jm(n);
4435
+ if (n.type === "root") return new qm(n);
4436
4436
  if (n.type === "decl") return new Vm(n);
4437
- if (n.type === "rule") return new qm(n);
4437
+ if (n.type === "rule") return new Jm(n);
4438
4438
  if (n.type === "comment") return new Hm(n);
4439
4439
  if (n.type === "atrule") return new $m(n);
4440
4440
  throw new Error("Unknown node type: " + e.type);
4441
4441
  }
4442
- var Xm = dr;
4442
+ var Km = dr;
4443
4443
  dr.default = dr;
4444
- let Km = Vi, ya = Gn, Zm = Mc, Qm = gt, ii = Wm, ef = Wn, tf = Xm, wa = $i, rf = Ic, va = $n, ba = Ji, nf = Yi, sf = Hn, of = Xi, af = Rc, Sa = qi, Ia = gr, lf = Vn;
4445
- function K(...e) {
4444
+ let Xm = Vi, ya = Gn, Zm = Mc, Qm = gt, ii = Wm, ef = Wn, tf = Km, wa = $i, rf = Ic, va = $n, ba = qi, nf = Yi, sf = Hn, of = Ki, af = Rc, Sa = Ji, Ia = gr, lf = Vn;
4445
+ function X(...e) {
4446
4446
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new ii(e);
4447
4447
  }
4448
- K.plugin = function(e, t) {
4448
+ X.plugin = function(e, t) {
4449
4449
  let r, n = !1;
4450
4450
  function s(...i) {
4451
4451
  console && console.warn && !n && (n = !0, console.warn(e + `: postcss.plugin was deprecated. Migration guide:
@@ -4455,14 +4455,14 @@ https://www.w3ctech.com/topic/2226`));
4455
4455
  return a.postcssPlugin = e, a.postcssVersion = new ii().version, a;
4456
4456
  }
4457
4457
  return Object.defineProperty(s, "postcss", { get: () => (r || (r = s()), r) }), s.process = function(i, a, o) {
4458
- return K([s(o)]).process(i, a);
4458
+ return X([s(o)]).process(i, a);
4459
4459
  }, s;
4460
- }, K.stringify = ef, K.parse = of, K.fromJSON = tf, K.list = af, K.comment = (e) => new va(e), K.atRule = (e) => new ba(e), K.decl = (e) => new ya(e), K.rule = (e) => new Sa(e), K.root = (e) => new Ia(e), K.document = (e) => new wa(e), K.CssSyntaxError = Km, K.Declaration = ya, K.Container = Qm, K.Processor = ii, K.Document = wa, K.Comment = va, K.Warning = rf, K.AtRule = ba, K.Result = nf, K.Input = sf, K.Rule = Sa, K.Root = Ia, K.Node = lf, Zm.registerPostcss(K);
4461
- var cf = K;
4462
- K.default = K;
4460
+ }, X.stringify = ef, X.parse = of, X.fromJSON = tf, X.list = af, X.comment = (e) => new va(e), X.atRule = (e) => new ba(e), X.decl = (e) => new ya(e), X.rule = (e) => new Sa(e), X.root = (e) => new Ia(e), X.document = (e) => new wa(e), X.CssSyntaxError = Xm, X.Declaration = ya, X.Container = Qm, X.Processor = ii, X.Document = wa, X.Comment = va, X.Warning = rf, X.AtRule = ba, X.Result = nf, X.Input = sf, X.Rule = Sa, X.Root = Ia, X.Node = lf, Zm.registerPostcss(X);
4461
+ var cf = X;
4462
+ X.default = X;
4463
4463
  const le = Mh(cf);
4464
4464
  le.stringify, le.fromJSON, le.plugin, le.parse, le.list, le.document, le.comment, le.atRule, le.rule, le.decl, le.root, le.CssSyntaxError, le.Declaration, le.Container, le.Processor, le.Document, le.Comment, le.Warning, le.AtRule, le.Result, le.Input, le.Rule, le.Root, le.Node;
4465
- class Ki {
4465
+ class Xi {
4466
4466
  constructor(...t) {
4467
4467
  Oe(this, "parentElement", null), Oe(this, "parentNode", null), Oe(this, "ownerDocument"), Oe(this, "firstChild", null), Oe(this, "lastChild", null), Oe(this, "previousSibling", null), Oe(this, "nextSibling", null), Oe(this, "ELEMENT_NODE", 1), Oe(this, "TEXT_NODE", 3), Oe(this, "nodeType"), Oe(this, "nodeName"), Oe(this, "RRNodeType");
4468
4468
  }
@@ -4473,7 +4473,7 @@ class Ki {
4473
4473
  return t;
4474
4474
  }
4475
4475
  contains(t) {
4476
- if (!(t instanceof Ki) || t.ownerDocument !== this.ownerDocument) return !1;
4476
+ if (!(t instanceof Xi) || t.ownerDocument !== this.ownerDocument) return !1;
4477
4477
  if (t === this) return !0;
4478
4478
  for (; t.parentNode; ) {
4479
4479
  if (t.parentNode === this) return !0;
@@ -4633,7 +4633,7 @@ function ps(e, t, r) {
4633
4633
  return !(e.tagName !== "TITLE" || !r.headTitleMutations) || t.getId(e) === -2;
4634
4634
  }
4635
4635
  function Nc(e, t) {
4636
- if (Xt(e)) return !1;
4636
+ if (Kt(e)) return !1;
4637
4637
  const r = t.getId(e);
4638
4638
  if (!t.has(r)) return !0;
4639
4639
  const n = G.parentNode(e);
@@ -4649,7 +4649,7 @@ function Bc(e, t) {
4649
4649
  return !!(e.nodeName === "LINK" && e.nodeType === e.ELEMENT_NODE && e.getAttribute && e.getAttribute("rel") === "stylesheet" && t.getMeta(e));
4650
4650
  }
4651
4651
  function ai(e) {
4652
- return !!e && (e instanceof Ki && "shadowRoot" in e ? !!e.shadowRoot : !!G.shadowRoot(e));
4652
+ return !!e && (e instanceof Xi && "shadowRoot" in e ? !!e.shadowRoot : !!G.shadowRoot(e));
4653
4653
  }
4654
4654
  /[1-9][0-9]{12}/.test(Date.now().toString()) || (vn = () => (/* @__PURE__ */ new Date()).getTime());
4655
4655
  class uf {
@@ -4740,7 +4740,7 @@ class hf {
4740
4740
  }, i = (l) => {
4741
4741
  const c = G.parentNode(l);
4742
4742
  if (!c || !jc(l) || c.tagName === "TEXTAREA") return;
4743
- const u = Xt(c) ? this.mirror.getId(zc(l)) : this.mirror.getId(c), p = s(l);
4743
+ const u = Kt(c) ? this.mirror.getId(zc(l)) : this.mirror.getId(c), p = s(l);
4744
4744
  if (u === -1 || p === -1) return n.addNode(l);
4745
4745
  const d = kt(l, { doc: this.doc, mirror: this.mirror, blockClass: this.blockClass, blockSelector: this.blockSelector, maskTextClass: this.maskTextClass, maskTextSelector: this.maskTextSelector, skipChild: !0, newlyAddedElement: !0, inlineStylesheet: this.inlineStylesheet, maskInputOptions: this.maskInputOptions, maskTextFn: this.maskTextFn, maskInputFn: this.maskInputFn, slimDOMOptions: this.slimDOMOptions, dataURLOptions: this.dataURLOptions, recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: (f) => {
4746
4746
  Fc(f, this.mirror) && this.iframeManager.addIframe(f), Bc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(G.shadowRoot(l), this.doc);
@@ -4846,10 +4846,10 @@ class hf {
4846
4846
  if (Se(t.target, this.blockClass, this.blockSelector, !0)) return;
4847
4847
  if (t.target.tagName === "TEXTAREA") return void this.genTextAreaValueMutation(t.target);
4848
4848
  t.addedNodes.forEach((r) => this.genAdds(r, t.target)), t.removedNodes.forEach((r) => {
4849
- const n = this.mirror.getId(r), s = Xt(t.target) ? this.mirror.getId(G.host(t.target)) : this.mirror.getId(t.target);
4849
+ const n = this.mirror.getId(r), s = Kt(t.target) ? this.mirror.getId(G.host(t.target)) : this.mirror.getId(t.target);
4850
4850
  Se(t.target, this.blockClass, this.blockSelector, !1) || ps(r, this.mirror, this.slimDOMOptions) || !function(i, a) {
4851
4851
  return a.getId(i) !== -1;
4852
- }(r, this.mirror) || (this.addedSet.has(r) ? (li(this.addedSet, r), this.droppedSet.add(r)) : this.addedSet.has(t.target) && n === -1 || Nc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[La(n, s)] ? li(this.movedSet, r) : this.removes.push({ parentId: s, id: n, isShadow: !(!Xt(t.target) || !Kt(t.target)) || void 0 })), this.mapRemoves.push(r));
4852
+ }(r, this.mirror) || (this.addedSet.has(r) ? (li(this.addedSet, r), this.droppedSet.add(r)) : this.addedSet.has(t.target) && n === -1 || Nc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[La(n, s)] ? li(this.movedSet, r) : this.removes.push({ parentId: s, id: n, isShadow: !(!Kt(t.target) || !Xt(t.target)) || void 0 })), this.mapRemoves.push(r));
4853
4853
  });
4854
4854
  }
4855
4855
  }), R(this, "genAdds", (t, r) => {
@@ -5090,14 +5090,14 @@ function gf(e, t = {}) {
5090
5090
  let j = Qt(F);
5091
5091
  const O = F.isTrusted, _ = j && j.tagName;
5092
5092
  if (j && _ === "OPTION" && (j = G.parentElement(j)), !j || !_ || ff.indexOf(_) < 0 || Se(j, C, A, !0) || j.classList.contains(x) || U && j.matches(U)) return;
5093
- let ee = j.value, J = !1;
5093
+ let ee = j.value, q = !1;
5094
5094
  const W = Ti(j) || "";
5095
- W === "radio" || W === "checkbox" ? J = j.checked : (M[_.toLowerCase()] || M[W]) && (ee = Ui({ element: j, maskInputOptions: M, tagName: _, type: W, value: ee, maskInputFn: k })), P(j, L ? { text: ee, isChecked: J, userTriggered: O } : { text: ee, isChecked: J });
5095
+ W === "radio" || W === "checkbox" ? q = j.checked : (M[_.toLowerCase()] || M[W]) && (ee = Ui({ element: j, maskInputOptions: M, tagName: _, type: W, value: ee, maskInputFn: k })), P(j, L ? { text: ee, isChecked: q, userTriggered: O } : { text: ee, isChecked: q });
5096
5096
  const we = j.name;
5097
- W === "radio" && we && J && g.querySelectorAll(`input[type="radio"][name="${we}"]`).forEach((fe) => {
5097
+ W === "radio" && we && q && g.querySelectorAll(`input[type="radio"][name="${we}"]`).forEach((fe) => {
5098
5098
  if (fe !== j) {
5099
5099
  const Ie = fe.value;
5100
- P(fe, L ? { text: Ie, isChecked: !J, userTriggered: !1 } : { text: Ie, isChecked: !J });
5100
+ P(fe, L ? { text: Ie, isChecked: !q, userTriggered: !1 } : { text: Ie, isChecked: !q });
5101
5101
  }
5102
5102
  });
5103
5103
  }
@@ -5404,7 +5404,7 @@ class wf {
5404
5404
  this.reset(), this.patchAttachShadow(Element, document);
5405
5405
  }
5406
5406
  addShadowRoot(t, r) {
5407
- if (!Kt(t) || this.shadowDoms.has(t)) return;
5407
+ if (!Xt(t) || this.shadowDoms.has(t)) return;
5408
5408
  this.shadowDoms.add(t);
5409
5409
  const n = Vc({ ...this.bypassOptions, doc: r, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, t);
5410
5410
  this.restoreHandlers.push(() => n.disconnect()), this.restoreHandlers.push(Gc({ ...this.bypassOptions, scrollCb: this.scrollCb, doc: t, mirror: this.mirror })), setTimeout(() => {
@@ -5434,7 +5434,7 @@ class wf {
5434
5434
  }
5435
5435
  for (var $t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", vf = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Gr = 0; Gr < 64; Gr++) vf[$t.charCodeAt(Gr)] = Gr;
5436
5436
  const Ta = /* @__PURE__ */ new Map(), $c = (e, t, r) => {
5437
- if (!e || !Jc(e, t) && typeof e != "object") return;
5437
+ if (!e || !qc(e, t) && typeof e != "object") return;
5438
5438
  const n = function(i, a) {
5439
5439
  let o = Ta.get(i);
5440
5440
  return o || (o = /* @__PURE__ */ new Map(), Ta.set(i, o)), o.has(a) || o.set(a, []), o.get(a);
@@ -5459,9 +5459,9 @@ function ln(e, t, r) {
5459
5459
  const n = e.constructor.name, { src: s } = e;
5460
5460
  return { rr_type: n, src: s };
5461
5461
  }
5462
- return e instanceof HTMLCanvasElement ? { rr_type: "HTMLImageElement", src: e.toDataURL() } : e instanceof ImageData ? { rr_type: e.constructor.name, args: [ln(e.data, t, r), e.width, e.height] } : Jc(e, t) || typeof e == "object" ? { rr_type: e.constructor.name, index: $c(e, t, r) } : e;
5462
+ return e instanceof HTMLCanvasElement ? { rr_type: "HTMLImageElement", src: e.toDataURL() } : e instanceof ImageData ? { rr_type: e.constructor.name, args: [ln(e.data, t, r), e.width, e.height] } : qc(e, t) || typeof e == "object" ? { rr_type: e.constructor.name, index: $c(e, t, r) } : e;
5463
5463
  }
5464
- const Yc = (e, t, r) => e.map((n) => ln(n, t, r)), Jc = (e, t) => !!["WebGLActiveInfo", "WebGLBuffer", "WebGLFramebuffer", "WebGLProgram", "WebGLRenderbuffer", "WebGLShader", "WebGLShaderPrecisionFormat", "WebGLTexture", "WebGLUniformLocation", "WebGLVertexArrayObject", "WebGLVertexArrayObjectOES"].filter((n) => typeof t[n] == "function").find((n) => e instanceof t[n]);
5464
+ const Yc = (e, t, r) => e.map((n) => ln(n, t, r)), qc = (e, t) => !!["WebGLActiveInfo", "WebGLBuffer", "WebGLFramebuffer", "WebGLProgram", "WebGLRenderbuffer", "WebGLShader", "WebGLShaderPrecisionFormat", "WebGLTexture", "WebGLUniformLocation", "WebGLVertexArrayObject", "WebGLVertexArrayObjectOES"].filter((n) => typeof t[n] == "function").find((n) => e instanceof t[n]);
5465
5465
  function Da(e, t, r, n) {
5466
5466
  const s = [];
5467
5467
  try {
@@ -5510,7 +5510,7 @@ function Pa(e, t, r, n, s, i) {
5510
5510
  }
5511
5511
  return a;
5512
5512
  }
5513
- const qc = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=", _a = typeof window < "u" && window.Blob && new Blob([(Na = qc, Uint8Array.from(atob(Na), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
5513
+ const Jc = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=", _a = typeof window < "u" && window.Blob && new Blob([(Na = Jc, Uint8Array.from(atob(Na), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
5514
5514
  var Na;
5515
5515
  function bf(e) {
5516
5516
  let t;
@@ -5521,7 +5521,7 @@ function bf(e) {
5521
5521
  (window.URL || window.webkitURL).revokeObjectURL(t);
5522
5522
  }), r;
5523
5523
  } catch {
5524
- return new Worker("data:text/javascript;base64," + qc, { name: e == null ? void 0 : e.name });
5524
+ return new Worker("data:text/javascript;base64," + Jc, { name: e == null ? void 0 : e.name });
5525
5525
  } finally {
5526
5526
  t && (window.URL || window.webkitURL).revokeObjectURL(t);
5527
5527
  }
@@ -5728,23 +5728,23 @@ function Yt(e = {}) {
5728
5728
  else if (oe.type === Y.IncrementalSnapshot) {
5729
5729
  if (oe.data.source === H.Mutation && oe.data.isAttachIframe) return;
5730
5730
  _++;
5731
- const Le = n && _ >= n, q = r && oe.timestamp - O.timestamp > r;
5732
- (Le || q) && cn(!0);
5731
+ const Le = n && _ >= n, J = r && oe.timestamp - O.timestamp > r;
5732
+ (Le || J) && cn(!0);
5733
5733
  }
5734
5734
  };
5735
- const J = (V) => {
5735
+ const q = (V) => {
5736
5736
  ce({ type: Y.IncrementalSnapshot, data: { source: H.Mutation, ...V } });
5737
- }, W = (V) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Scroll, ...V } }), we = (V) => ce({ type: Y.IncrementalSnapshot, data: { source: H.CanvasMutation, ...V } }), fe = new If({ mutationCb: J, adoptedStyleSheetCb: (V) => ce({ type: Y.IncrementalSnapshot, data: { source: H.AdoptedStyleSheet, ...V } }) }), Ie = new yf({ mirror: Me, mutationCb: J, stylesheetManager: fe, recordCrossOriginIframes: U, wrappedEmit: ce });
5737
+ }, W = (V) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Scroll, ...V } }), we = (V) => ce({ type: Y.IncrementalSnapshot, data: { source: H.CanvasMutation, ...V } }), fe = new If({ mutationCb: q, adoptedStyleSheetCb: (V) => ce({ type: Y.IncrementalSnapshot, data: { source: H.AdoptedStyleSheet, ...V } }) }), Ie = new yf({ mirror: Me, mutationCb: q, stylesheetManager: fe, recordCrossOriginIframes: U, wrappedEmit: ce });
5738
5738
  for (const V of S || []) V.getMirror && V.getMirror({ nodeMirror: Me, crossOriginIframeMirror: Ie.crossOriginIframeMirror, crossOriginIframeStyleMirror: Ie.crossOriginIframeStyleMirror });
5739
5739
  const yt = new Cf();
5740
5740
  hs = new Sf({ recordCanvas: x, mutationCb: we, win: window, blockClass: s, blockSelector: i, mirror: Me, sampling: g.canvas, dataURLOptions: v });
5741
- const br = new wf({ mutationCb: J, scrollCb: W, bypassOptions: { blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: v, maskTextFn: h, maskInputFn: y, recordCanvas: x, inlineImages: L, sampling: g, slimDOMOptions: j, iframeManager: Ie, stylesheetManager: fe, canvasManager: hs, keepIframeSrcFn: P, processedNodeManager: yt }, mirror: Me });
5741
+ const br = new wf({ mutationCb: q, scrollCb: W, bypassOptions: { blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: v, maskTextFn: h, maskInputFn: y, recordCanvas: x, inlineImages: L, sampling: g, slimDOMOptions: j, iframeManager: Ie, stylesheetManager: fe, canvasManager: hs, keepIframeSrcFn: P, processedNodeManager: yt }, mirror: Me });
5742
5742
  cn = (V = !1) => {
5743
5743
  if (!A) return;
5744
5744
  ce({ type: Y.Meta, data: { href: window.location.href, width: Pc(), height: Dc() } }, V), fe.reset(), br.init(), pt.forEach((ne) => ne.lock());
5745
5745
  const Ae = function(ne, oe) {
5746
- const { mirror: Le = new Cl(), blockClass: q = "rr-block", blockSelector: Pt = null, maskTextClass: ed = "rr-mask", maskTextSelector: td = null, inlineStylesheet: rd = !0, inlineImages: nd = !1, recordCanvas: sd = !1, maskAllInputs: qn = !1, maskTextFn: id, maskInputFn: od, slimDOM: _t = !1, dataURLOptions: ad, preserveWhiteSpace: ld, onSerialize: cd, onIframeLoad: ud, iframeLoadTimeout: dd, onStylesheetLoad: pd, stylesheetLoadTimeout: hd, keepIframeSrcFn: md = () => !1 } = oe || {};
5747
- return kt(ne, { doc: ne, mirror: Le, blockClass: q, blockSelector: Pt, maskTextClass: ed, maskTextSelector: td, skipChild: !1, inlineStylesheet: rd, maskInputOptions: qn === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : qn === !1 ? { password: !0 } : qn, maskTextFn: id, maskInputFn: od, slimDOMOptions: _t === !0 || _t === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: _t === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : _t === !1 ? {} : _t, dataURLOptions: ad, inlineImages: nd, recordCanvas: sd, preserveWhiteSpace: ld, onSerialize: cd, onIframeLoad: ud, iframeLoadTimeout: dd, onStylesheetLoad: pd, stylesheetLoadTimeout: hd, keepIframeSrcFn: md, newlyAddedElement: !1 });
5746
+ const { mirror: Le = new Cl(), blockClass: J = "rr-block", blockSelector: Pt = null, maskTextClass: ed = "rr-mask", maskTextSelector: td = null, inlineStylesheet: rd = !0, inlineImages: nd = !1, recordCanvas: sd = !1, maskAllInputs: Jn = !1, maskTextFn: id, maskInputFn: od, slimDOM: _t = !1, dataURLOptions: ad, preserveWhiteSpace: ld, onSerialize: cd, onIframeLoad: ud, iframeLoadTimeout: dd, onStylesheetLoad: pd, stylesheetLoadTimeout: hd, keepIframeSrcFn: md = () => !1 } = oe || {};
5747
+ return kt(ne, { doc: ne, mirror: Le, blockClass: J, blockSelector: Pt, maskTextClass: ed, maskTextSelector: td, skipChild: !1, inlineStylesheet: rd, maskInputOptions: Jn === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : Jn === !1 ? { password: !0 } : Jn, maskTextFn: id, maskInputFn: od, slimDOMOptions: _t === !0 || _t === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: _t === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : _t === !1 ? {} : _t, dataURLOptions: ad, inlineImages: nd, recordCanvas: sd, preserveWhiteSpace: ld, onSerialize: cd, onIframeLoad: ud, iframeLoadTimeout: dd, onStylesheetLoad: pd, stylesheetLoadTimeout: hd, keepIframeSrcFn: md, newlyAddedElement: !1 });
5748
5748
  }(document, { mirror: Me, blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: F, maskTextFn: h, maskInputFn: y, slimDOM: j, dataURLOptions: v, recordCanvas: x, inlineImages: L, onSerialize: (ne) => {
5749
5749
  Fc(ne, Me) && Ie.addIframe(ne), Bc(ne, Me) && fe.trackLinkElement(ne), ai(ne) && br.addShadowRoot(G.shadowRoot(ne), document);
5750
5750
  }, onIframeLoad: (ne, oe) => {
@@ -5758,11 +5758,11 @@ function Yt(e = {}) {
5758
5758
  try {
5759
5759
  const V = [], Ae = (oe) => {
5760
5760
  var Le;
5761
- return $(gf)({ mutationCb: J, mousemoveCb: (q, Pt) => ce({ type: Y.IncrementalSnapshot, data: { source: Pt, positions: q } }), mouseInteractionCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.MouseInteraction, ...q } }), scrollCb: W, viewportResizeCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.ViewportResize, ...q } }), inputCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Input, ...q } }), mediaInteractionCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.MediaInteraction, ...q } }), styleSheetRuleCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.StyleSheetRule, ...q } }), styleDeclarationCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.StyleDeclaration, ...q } }), canvasMutationCb: we, fontCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Font, ...q } }), selectionCb: (q) => {
5762
- ce({ type: Y.IncrementalSnapshot, data: { source: H.Selection, ...q } });
5763
- }, customElementCb: (q) => {
5764
- ce({ type: Y.IncrementalSnapshot, data: { source: H.CustomElement, ...q } });
5765
- }, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: x, inlineImages: L, userTriggeredOnInput: k, collectFonts: E, doc: oe, maskInputFn: y, maskTextFn: h, keepIframeSrcFn: P, blockSelector: i, slimDOMOptions: j, dataURLOptions: v, mirror: Me, iframeManager: Ie, stylesheetManager: fe, shadowDomManager: br, processedNodeManager: yt, canvasManager: hs, ignoreCSSAttributes: D, plugins: ((Le = S == null ? void 0 : S.filter((q) => q.observer)) == null ? void 0 : Le.map((q) => ({ observer: q.observer, options: q.options, callback: (Pt) => ce({ type: Y.Plugin, data: { plugin: q.name, payload: Pt } }) }))) || [] }, I);
5761
+ return $(gf)({ mutationCb: q, mousemoveCb: (J, Pt) => ce({ type: Y.IncrementalSnapshot, data: { source: Pt, positions: J } }), mouseInteractionCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.MouseInteraction, ...J } }), scrollCb: W, viewportResizeCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.ViewportResize, ...J } }), inputCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Input, ...J } }), mediaInteractionCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.MediaInteraction, ...J } }), styleSheetRuleCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.StyleSheetRule, ...J } }), styleDeclarationCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.StyleDeclaration, ...J } }), canvasMutationCb: we, fontCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Font, ...J } }), selectionCb: (J) => {
5762
+ ce({ type: Y.IncrementalSnapshot, data: { source: H.Selection, ...J } });
5763
+ }, customElementCb: (J) => {
5764
+ ce({ type: Y.IncrementalSnapshot, data: { source: H.CustomElement, ...J } });
5765
+ }, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: x, inlineImages: L, userTriggeredOnInput: k, collectFonts: E, doc: oe, maskInputFn: y, maskTextFn: h, keepIframeSrcFn: P, blockSelector: i, slimDOMOptions: j, dataURLOptions: v, mirror: Me, iframeManager: Ie, stylesheetManager: fe, shadowDomManager: br, processedNodeManager: yt, canvasManager: hs, ignoreCSSAttributes: D, plugins: ((Le = S == null ? void 0 : S.filter((J) => J.observer)) == null ? void 0 : Le.map((J) => ({ observer: J.observer, options: J.options, callback: (Pt) => ce({ type: Y.Plugin, data: { plugin: J.name, payload: Pt } }) }))) || [] }, I);
5766
5766
  };
5767
5767
  Ie.addLoadListener((oe) => {
5768
5768
  try {
@@ -5863,12 +5863,12 @@ var Rf = class extends Error {
5863
5863
  constructor(e, t, r) {
5864
5864
  super(`Possible EventEmitter memory leak detected. ${r} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`), this.emitter = e, this.type = t, this.count = r, this.name = "MaxListenersExceededWarning";
5865
5865
  }
5866
- }, Xc = class {
5866
+ }, Kc = class {
5867
5867
  static listenerCount(e, t) {
5868
5868
  return e.listenerCount(t);
5869
5869
  }
5870
5870
  constructor() {
5871
- this.events = /* @__PURE__ */ new Map(), this.maxListeners = Xc.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
5871
+ this.events = /* @__PURE__ */ new Map(), this.maxListeners = Kc.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
5872
5872
  }
5873
5873
  _emitInternalEvent(e, t, r) {
5874
5874
  this.emit(e, t, r);
@@ -5945,9 +5945,9 @@ var Rf = class extends Error {
5945
5945
  rawListeners(e) {
5946
5946
  return this.listeners(e);
5947
5947
  }
5948
- }, Kc = Xc;
5949
- Kc.defaultMaxListeners = 10;
5950
- const z = new Kc(), Sn = async (e) => {
5948
+ }, Xc = Kc;
5949
+ Xc.defaultMaxListeners = 10;
5950
+ const z = new Xc(), Sn = async (e) => {
5951
5951
  await new Promise((t) => {
5952
5952
  setTimeout(t, e);
5953
5953
  });
@@ -5997,10 +5997,10 @@ class Qc {
5997
5997
  this.isStorageAvailable && this.storage ? this.storage.clear() : this.tempStorage = {};
5998
5998
  }
5999
5999
  }
6000
- const Jg = (e, t) => {
6000
+ const qg = (e, t) => {
6001
6001
  const r = [e[t]], n = e[t].groupId;
6002
6002
  return n ? e.slice(t).reduce((s, i) => (i.groupId === n && s.push(i), s), []) : r;
6003
- }, qg = (e) => e === "longFormSurvey", ue = new Qc("sessionStorage"), Ee = new Qc("localStorage");
6003
+ }, Jg = (e) => e === "longFormSurvey", ue = new Qc("sessionStorage"), Ee = new Qc("localStorage");
6004
6004
  class Lf {
6005
6005
  constructor(t) {
6006
6006
  de(this, "payload");
@@ -6029,7 +6029,7 @@ const Mf = (e) => e._config && e._config.installationMethod ? e._config.installa
6029
6029
  eu = !0, tu = e;
6030
6030
  };
6031
6031
  function De(e = {}) {
6032
- const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.39.0", "x-ul-installation-method": Mf(e), "sprig-modules": Of(), "x-ul-package-version": "2.39.0" };
6032
+ const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.39.2", "x-ul-installation-method": Mf(e), "sprig-modules": Of(), "x-ul-package-version": "2.39.2" };
6033
6033
  if (e.envId && (t["x-ul-environment-id"] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t["x-ul-user-id"] = e.userId), e.visitorId && (t["x-ul-visitor-id"] = e.visitorId), e.partnerAnonymousId && (t["x-ul-anonymous-id"] = e.partnerAnonymousId), e.mobileHeadersJSON) {
6034
6034
  const r = JSON.parse(e.mobileHeadersJSON);
6035
6035
  Object.assign(t, r);
@@ -6107,8 +6107,8 @@ function Ue(e, t, r) {
6107
6107
  }), r && n.push(r), n.join("/");
6108
6108
  }
6109
6109
  const er = async (e, t, r) => {
6110
- var _, ee, J;
6111
- const { context: n, delay: s, avatars: i, forceBrandedLogo: a, endCard: o, isFeedback: l = !1, heatmap: c, locale: u, layout: p, previewMode: d, productConfig: f, questions: y, responseGroupUid: h, surveyId: I, uuid: m, vid: g, sessionReplay: v, studyType: C } = e, A = De(window.UserLeap), x = hr(A), U = Jn(A);
6110
+ var _, ee, q;
6111
+ const { context: n, delay: s, avatars: i, forceBrandedLogo: a, endCard: o, isFeedback: l = !1, heatmap: c, locale: u, layout: p, previewMode: d, productConfig: f, questions: y, responseGroupUid: h, surveyId: I, uuid: m, vid: g, sessionReplay: v, studyType: C } = e, A = De(window.UserLeap), x = hr(A), U = qn(A);
6112
6112
  if (v) if (x) z.emit(B.ReplayCapture, { responseGroupUid: h, hasQuestions: !!(y != null && y.length), surveyId: I, uploadId: v.uploadId, replayType: v.replayDurationType ?? "before", seconds: v.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Ut(), mediaType: "screen", questionId: 1, responseGroupUid: h, surveyId: I, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
6113
6113
  else {
6114
6114
  if (!re.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
@@ -6133,7 +6133,7 @@ const er = async (e, t, r) => {
6133
6133
  const W = "Attempted to display survey to a different visitor";
6134
6134
  return window.UserLeap.reportError("DisplaySurvey", new Error(W)), { success: !1, message: W, surveyState: "no survey" };
6135
6135
  }
6136
- N.info("ShowingSurvey", { surveyId: I }), (_ = re.replay) == null || _.RecordSurveyShown({ id: I, userAgent: window.navigator.userAgent }), xf.disable(), z.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": I });
6136
+ N.info("ShowingSurvey", { surveyId: I }), (_ = re.replay) == null || _.RecordSurveyShown({ id: I, userAgent: window.navigator.userAgent }), xf.disable(), z.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": I, layout: p });
6137
6137
  let M, k, E, L, S = document.createElement("div");
6138
6138
  const P = (W) => {
6139
6139
  const { "view.version": we } = W;
@@ -6146,7 +6146,7 @@ const er = async (e, t, r) => {
6146
6146
  const D = { apiURL: window.UserLeap._API_URL, avatars: i, cards: y, configureExitOnOverlayClick: (W) => {
6147
6147
  z.once(B.CloseSurveyOnOverlayClick, W);
6148
6148
  }, context: n, endCard: o, envId: window.UserLeap.envId, eventEmitFn: z.emit.bind(z), fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: a, frame: S, headers: A, layout: p, locale: u, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: Ee.getItem("sprig.previewKey"), previewMode: d, productConfig: { framePosition: f == null ? void 0 : f.framePosition, desktopDisplay: f == null ? void 0 : f.desktopDisplay, placement: f == null ? void 0 : f.placement }, responseGroupUid: h, startingQuestionIdx: (ee = window.UserLeap.config) == null ? void 0 : ee.startingQuestionIdx, studyType: C, styleNonce: window.UserLeap.styleNonce, surveyId: I, tabTitle: document.title, trackPageViewUrl: t, ulEvents: pr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: U, userId: m, viewDocument: E == null ? void 0 : E.document, viewWindow: E, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, ...window.UserLeap._config };
6149
- (J = window.UserLeap._config) != null && J.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6149
+ (q = window.UserLeap._config) != null && q.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6150
6150
  const b = (l ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? f.customStyles;
6151
6151
  D.customStyles = b, E && (E.__cfg = D);
6152
6152
  const w = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : D.path, T = document.getElementById(Ga);
@@ -6158,7 +6158,7 @@ const er = async (e, t, r) => {
6158
6158
  window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
6159
6159
  };
6160
6160
  if (D.installationMethod === "web-npm" || D.installationMethod === "web-npm-bundled") {
6161
- const { default: W } = await import("./view-YQ2Evaey.js").then((we) => we.v);
6161
+ const { default: W } = await import("./view-o74xU_bQ.js").then((we) => we.v);
6162
6162
  W.configure(D), L && window.UserLeap.container && j();
6163
6163
  } else w && (F.src = w, L && F.addEventListener("load", () => {
6164
6164
  window.UserLeap.container && j();
@@ -6169,7 +6169,7 @@ const er = async (e, t, r) => {
6169
6169
  const O = { success: !0, surveyState: "ready", surveyId: I, responseGroupUid: h };
6170
6170
  return window.UserLeap.isMobileSDK && s && (O.delay = s), O;
6171
6171
  };
6172
- function Jn(e) {
6172
+ function qn(e) {
6173
6173
  var r;
6174
6174
  if (window.UserLeap.useMobileStyling !== void 0) return window.UserLeap.useMobileStyling;
6175
6175
  const t = ((r = window.UserLeap.windowDimensions) == null ? void 0 : r.width) ?? document.body.clientWidth;
@@ -6178,7 +6178,7 @@ function Jn(e) {
6178
6178
  function hr(e) {
6179
6179
  return Uf.has(e["userleap-platform"]);
6180
6180
  }
6181
- const Xg = (e) => e["userleap-platform"] === "ios", Tf = (e) => e.some((t) => t.type === "videovoice"), eo = "ul-frame";
6181
+ const Tf = (e) => e.some((t) => t.type === "videovoice"), eo = "ul-frame";
6182
6182
  window.UserLeap && window.Sprig && (window.Sprig._gtm ? window.Sprig = window.UserLeap : window.UserLeap = window.Sprig), window.UserLeap || (window.UserLeap = window.Sprig), window.Sprig || (window.Sprig = window.UserLeap);
6183
6183
  const ms = "0px", nu = (e, t, r) => {
6184
6184
  window.UserLeap.container = document.createElement("div"), window.UserLeap.container.className = "ul-container" + (t ? " ul-container-feedback" : ""), e && (window.UserLeap.container.dataset.studyId = e.toString());
@@ -6317,7 +6317,7 @@ const au = (e) => {
6317
6317
  const t = e.querySelector(".ul-card__container");
6318
6318
  t && (t.scrollTop = 0);
6319
6319
  }, lu = () => Z, Rt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), cu = () => !!document.getElementById(eo);
6320
- let Ja = !1, Z = null, je = null, ro = !1, tr = null, ut = null;
6320
+ let qa = !1, Z = null, je = null, ro = !1, tr = null, ut = null;
6321
6321
  const zf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn = () => {
6322
6322
  var t;
6323
6323
  const e = window.UserLeap.container;
@@ -6331,12 +6331,12 @@ const zf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6331
6331
  t && (ut != null && ut.endsWith("right") ? t.style.right = `${e}px` : ut != null && ut.endsWith("left") && (t.style.left = `${e}px`));
6332
6332
  }, fs = () => {
6333
6333
  if (Z && (Cn() || uu())) {
6334
- z.off(B.SurveyAppeared, Jt), di();
6334
+ z.off(B.SurveyAppeared, qt), di();
6335
6335
  const e = du();
6336
6336
  return kn(-e), !0;
6337
6337
  }
6338
6338
  return !1;
6339
- }, Jt = () => {
6339
+ }, qt = () => {
6340
6340
  if (!Z || !je) return;
6341
6341
  const e = ui();
6342
6342
  e && e.remove(), Z.style.height = "auto", Z.style.width = "auto", je.disabled = !1, ro = !1;
@@ -6356,7 +6356,7 @@ const zf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6356
6356
  })();
6357
6357
  e && (Z.style.height = "300px", Z.style.width = "360px", Z.appendChild(e));
6358
6358
  }
6359
- }, qa = () => {
6359
+ }, Ja = () => {
6360
6360
  Z && je && (kn(0), je.disabled = !0, ro = !0);
6361
6361
  }, pu = async (e, t, r) => {
6362
6362
  const { buttonTheme: n, customStyles: s, eventId: i, placement: a, desktopDisplay: o, feedbackLabel: l, surveyUuid: c, surveyId: u } = e;
@@ -6366,7 +6366,7 @@ const zf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6366
6366
  if (!t && i === tr) return;
6367
6367
  p.remove(), z.off(pr.SURVEY_FADING_OUT, fs);
6368
6368
  }
6369
- tr = i, In({ document, elementId: "sprig-feedback-style", styleString: '.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#sprig-feedback-button{border-left:0;border-radius:0 8px 8px 0;display:grid;padding:8px;text-align:center;transition:all ease-in-out 1s;z-index:inherit}#sprig-feedback-button:hover{cursor:pointer}.sprig-feedback-button-label{writing-mode:vertical-lr;text-orientation:sideways}.sprig-feedback-button-right{transform:rotate(180deg)}.sprig-feedback-button-bottom{align-self:flex-end;margin-bottom:20px}.sprig-feedback-button-light{background:#efefee;color:#000;border:1px solid #e2e3e1}.sprig-feedback-button-dark{background:#000;color:#fff;border:1px solid #000000}#sprig-feedback-container{display:flex;align-items:center;position:fixed;transition:right .2s linear,left .2s linear;z-index:2147483646}.sprig-feedback-container-left{flex-flow:row-reverse}.sprig-feedback-container-center{top:50%;transform:translateY(-50%)}.sprig-feedback-container-bottom{bottom:0%;margin-bottom:15px}.sprig-feedback-loading-container{align-items:center;background-color:#fff;border:2px solid var(--feedback-border);display:flex;max-height:90vh;max-width:90vw;min-width:0px}.sprig-feedback-loading-container-left{border-left:none;border-radius:0 8px 8px 0}.sprig-feedback-loading-container-right{border-right:none;border-radius:8px 0 0 8px}#sprig-feedback-error-container{margin:auto;text-align:center;width:360px}.sprig-feedback-error-text{font-weight:400;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#sprig-feedback-loading-container .ul-container{position:relative;max-height:inherit}#sprig-feedback-loading-animation{position:absolute}.sprig-feedback-loading-container-previews iframe{max-height:inherit!important}', nonce: window.UserLeap.styleNonce }), In({ document, elementId: "ul-custom-style", styleString: s ?? "", nonce: window.UserLeap.styleNonce }), Ja = o === "center-modal", ut = a;
6369
+ tr = i, In({ document, elementId: "sprig-feedback-style", styleString: '.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#sprig-feedback-button{border-left:0;border-radius:0 8px 8px 0;display:grid;padding:8px;text-align:center;transition:all ease-in-out 1s;z-index:inherit}#sprig-feedback-button:hover{cursor:pointer}.sprig-feedback-button-label{writing-mode:vertical-lr;text-orientation:sideways}.sprig-feedback-button-right{transform:rotate(180deg)}.sprig-feedback-button-bottom{align-self:flex-end;margin-bottom:20px}.sprig-feedback-button-light{background:#efefee;color:#000;border:1px solid #e2e3e1}.sprig-feedback-button-dark{background:#000;color:#fff;border:1px solid #000000}#sprig-feedback-container{display:flex;align-items:center;position:fixed;transition:right .2s linear,left .2s linear;z-index:2147483646}.sprig-feedback-container-left{flex-flow:row-reverse}.sprig-feedback-container-center{top:50%;transform:translateY(-50%)}.sprig-feedback-container-bottom{bottom:0%;margin-bottom:15px}.sprig-feedback-loading-container{align-items:center;background-color:#fff;border:2px solid var(--feedback-border);display:flex;max-height:90vh;max-width:90vw;min-width:0px}.sprig-feedback-loading-container-left{border-left:none;border-radius:0 8px 8px 0}.sprig-feedback-loading-container-right{border-right:none;border-radius:8px 0 0 8px}#sprig-feedback-error-container{margin:auto;text-align:center;width:360px}.sprig-feedback-error-text{font-weight:400;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#sprig-feedback-loading-container .ul-container{position:relative;max-height:inherit}#sprig-feedback-loading-animation{position:absolute}.sprig-feedback-loading-container-previews iframe{max-height:inherit!important}', nonce: window.UserLeap.styleNonce }), In({ document, elementId: "ul-custom-style", styleString: s ?? "", nonce: window.UserLeap.styleNonce }), qa = o === "center-modal", ut = a;
6370
6370
  const [d, f] = a.split("-");
6371
6371
  ((m) => {
6372
6372
  if (Rt() || !zf.includes(m)) return;
@@ -6384,26 +6384,26 @@ const zf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6384
6384
  }
6385
6385
  return;
6386
6386
  }
6387
- if (Jn(De(window.UserLeap)) || ro || qa(), t) return Z && Z.classList.add("sprig-feedback-loading-container-previews"), await er(t), void Jt();
6387
+ if (qn(De(window.UserLeap)) || ro || Ja(), t) return Z && Z.classList.add("sprig-feedback-loading-container-previews"), await er(t), void qt();
6388
6388
  const g = await (async (v) => {
6389
6389
  const C = await ze(Ue("1", [st], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: v }), method: "POST" });
6390
6390
  return C.ok ? C.json : null;
6391
6391
  })(c);
6392
- if (g) z.once(B.SurveyAppeared, Jt), er({ ...g, studyType: "feedbackButton" }, r);
6392
+ if (g) z.once(B.SurveyAppeared, qt), er({ ...g, studyType: "feedbackButton" }, r);
6393
6393
  else if (Z) {
6394
6394
  const v = jf();
6395
- Z.appendChild(v), Jt(), Z.style.height = "300px", Z.style.width = "360px";
6395
+ Z.appendChild(v), qt(), Z.style.height = "300px", Z.style.width = "360px";
6396
6396
  }
6397
6397
  }), p == null || p.appendChild(je), z.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
6398
6398
  const { useMobileStyling: h, _config: { border: I } } = window.UserLeap;
6399
- if (Ja || h) kn(0);
6399
+ if (qa || h) kn(0);
6400
6400
  else {
6401
6401
  const m = document.createElement("div");
6402
6402
  m.id = "sprig-feedback-loading-container", m.className = `sprig-feedback-loading-container sprig-feedback-loading-container-${f}`, m.style.setProperty("--feedback-border", I), Z = m, di(), p == null || p.appendChild(m);
6403
6403
  const g = du();
6404
6404
  kn(-g);
6405
6405
  }
6406
- window.UserLeap._config.isOnQuestionsTab && t && !Cn() && Z && (qa(), di(), Z && Z.classList.add("sprig-feedback-loading-container-previews"), er(t), Jt());
6406
+ window.UserLeap._config.isOnQuestionsTab && t && !Cn() && Z && (Ja(), di(), Z && Z.classList.add("sprig-feedback-loading-container-previews"), er(t), qt());
6407
6407
  }, jf = () => {
6408
6408
  const e = document.createElement("div");
6409
6409
  e.id = "sprig-feedback-error-container", e.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">
@@ -6528,7 +6528,7 @@ class Wf {
6528
6528
  }
6529
6529
  let hu = !0, hi = !1;
6530
6530
  const Vf = ["sdk_event_queue_latency_seconds", "sdk_replay_add_event_batch_seconds", "sdk_replay_cleanup_seconds", "sdk_replay_compression_seconds", "sdk_replay_get_events_between_seconds", "sdk_replay_snapshot_seconds", "sdk_mutations_nodes_added", "sdk_mutations_nodes_removed", "sdk_mutations_attributes_changed", "sdk_mutations_character_data", "sdk_dom_nodes_count", "sdk_page_html_characters"];
6531
- let mi, qt = {};
6531
+ let mi, Jt = {};
6532
6532
  class Gf {
6533
6533
  constructor(t) {
6534
6534
  de(this, "_values", []);
@@ -6545,7 +6545,7 @@ class Gf {
6545
6545
  return this._values = [], t;
6546
6546
  }
6547
6547
  findExceededThreshold(t) {
6548
- const r = qt[this.name];
6548
+ const r = Jt[this.name];
6549
6549
  if (r) return r.find((n) => this.valueExceedsThreshold(t, n));
6550
6550
  }
6551
6551
  valueExceedsThreshold(t, r) {
@@ -6575,7 +6575,7 @@ const fi = (e) => {
6575
6575
  let t = 0, r = e.firstElementChild;
6576
6576
  for (; r; ) t += fi(r), r.shadowRoot && (t += fi(r.shadowRoot)), r = r.nextElementSibling, t++;
6577
6577
  return t;
6578
- }, Xa = () => {
6578
+ }, Ka = () => {
6579
6579
  fu.report(fi(document.body)), gu.report(document.documentElement.innerHTML.length);
6580
6580
  }, gi = (e, t) => {
6581
6581
  const r = performance.now();
@@ -6584,7 +6584,7 @@ const fi = (e) => {
6584
6584
  t.report(n / 1e3), setTimeout(() => gi(e, t), e);
6585
6585
  }, 0);
6586
6586
  };
6587
- let En, xn, Rn, Ln, Ka, dt = {};
6587
+ let En, xn, Rn, Ln, Xa, dt = {};
6588
6588
  const Yr = (e, t = 1) => {
6589
6589
  const { name: r } = e;
6590
6590
  dt[r] = (dt[r] || 0) + t;
@@ -6607,15 +6607,15 @@ const Yr = (e, t = 1) => {
6607
6607
  case "characterData":
6608
6608
  return void Yr(Ln);
6609
6609
  }
6610
- }, Yf = (e) => e.forEach($f), Jf = () => {
6610
+ }, Yf = (e) => e.forEach($f), qf = () => {
6611
6611
  En.report(dt[En.name] || 0), xn.report(dt[xn.name] || 0), Rn.report(dt[Rn.name] || 0), Ln.report(dt[Ln.name] || 0), dt = {};
6612
- }, qf = (e = 1e3) => {
6613
- En = Ve("sdk_mutations_nodes_added"), xn = Ve("sdk_mutations_nodes_removed"), Rn = Ve("sdk_mutations_attributes_changed"), Ln = Ve("sdk_mutations_character_data"), Ka = new MutationObserver(Yf), Ka.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Jf, e);
6614
- }, Xf = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
6612
+ }, Jf = (e = 1e3) => {
6613
+ En = Ve("sdk_mutations_nodes_added"), xn = Ve("sdk_mutations_nodes_removed"), Rn = Ve("sdk_mutations_attributes_changed"), Ln = Ve("sdk_mutations_character_data"), Xa = new MutationObserver(Yf), Xa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(qf, e);
6614
+ }, Kf = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
6615
6615
  ((s, i) => {
6616
- qt = {}, hi = !1, s == null || s.forEach((a) => {
6616
+ Jt = {}, hi = !1, s == null || s.forEach((a) => {
6617
6617
  var o;
6618
- a.metric in qt || (qt[a.metric] = []), (o = qt[a.metric]) == null || o.push(a);
6618
+ a.metric in Jt || (Jt[a.metric] = []), (o = Jt[a.metric]) == null || o.push(a);
6619
6619
  }), mi = i;
6620
6620
  })(r, (s, i) => {
6621
6621
  var a, o;
@@ -6627,9 +6627,9 @@ const Yr = (e, t = 1) => {
6627
6627
  const i = Ve("sdk_event_queue_latency_seconds");
6628
6628
  gi(s, i);
6629
6629
  })(), ((s = 1e4) => {
6630
- fu = Ve("sdk_dom_nodes_count"), gu = Ve("sdk_page_html_characters"), Xa(), setInterval(Xa, s);
6631
- })(), qf());
6632
- }, Kf = "test", Zf = ["popState", "pushState", "replaceState"];
6630
+ fu = Ve("sdk_dom_nodes_count"), gu = Ve("sdk_page_html_characters"), Ka(), setInterval(Ka, s);
6631
+ })(), Jf());
6632
+ }, Xf = "test", Zf = ["popState", "pushState", "replaceState"];
6633
6633
  let no, rr;
6634
6634
  const On = {}, Wt = "!email", wu = "pageUrl";
6635
6635
  let gs = window.location.href;
@@ -6702,8 +6702,8 @@ function eg() {
6702
6702
  }
6703
6703
  async function ys(e, t) {
6704
6704
  const r = Qi();
6705
- e && !t && (window.UserLeap._config.mode = Kf);
6706
- const n = Jn(De(window.UserLeap)), s = await ze(function(i) {
6705
+ e && !t && (window.UserLeap._config.mode = Xf);
6706
+ const n = qn(De(window.UserLeap)), s = await ze(function(i) {
6707
6707
  const a = new URL(Ue("1", [it], "questions"));
6708
6708
  return Object.entries(i || {}).forEach(([o, l]) => {
6709
6709
  l && a.searchParams.append(o, String(l));
@@ -6869,7 +6869,7 @@ const rg = function(e) {
6869
6869
  var d, f;
6870
6870
  const a = typeof s == "string" ? parseInt(s, 10) : s, o = typeof i == "string" ? parseInt(i, 10) : i;
6871
6871
  isNaN(a) || isNaN(o) || (window.UserLeap.windowDimensions = { width: a, height: o });
6872
- const l = De(window.UserLeap), c = Jn(l), u = l["userleap-platform"] === "web";
6872
+ const l = De(window.UserLeap), c = qn(l), u = l["userleap-platform"] === "web";
6873
6873
  if (!window.UserLeap.frameId) return;
6874
6874
  const p = document.getElementById(window.UserLeap.frameId);
6875
6875
  p && (window.UserLeap.useMobileStyling && ((d = window.UserLeap.windowDimensions) != null && d.width && (p.style.width = `${window.UserLeap.windowDimensions.width}px`), (f = window.UserLeap.windowDimensions) != null && f.height && (p.style.maxHeight = window.UserLeap.windowDimensions.height - 20 + "px"), p.contentDocument && (p.style.height = String(Bf(p.contentDocument, u && !c, Zc(l))[0]) + "px")), z.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: p.clientWidth, contentFrameHeight: p.clientHeight, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }));
@@ -6964,11 +6964,11 @@ function sg(e = {}) {
6964
6964
  const v = g.json;
6965
6965
  return v != null && v.disabled ? ((A = window.SprigLoggerCallback) == null || A.call(window, "Sprig config fetch disabled"), ci(`Disabled: ${v.disabled}`), { disabled: v.disabled }) : Object.assign({}, v, I);
6966
6966
  }(e);
6967
- if ((f = window.SprigLoggerCallback) == null || f.call(window, "Sprig fetched config"), Xf({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (I) => {
6967
+ if ((f = window.SprigLoggerCallback) == null || f.call(window, "Sprig fetched config"), Kf({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (I) => {
6968
6968
  var m;
6969
6969
  await ze(Ue("1", [it], "metrics"), { body: I, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6970
6970
  } }), !c) {
6971
- const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.39.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6971
+ const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.39.2", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6972
6972
  await ((y = re.replay) == null ? void 0 : y.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: window.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: window.UserLeap._API_URL, alwaysOnConfig: I })), no = u.replaySettings;
6973
6973
  }
6974
6974
  rg(u), await tg(u), window.UserLeap._queue.unpause(), (h = window.SprigLoggerCallback) == null || h.call(window, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {
@@ -7053,7 +7053,7 @@ class Qa {
7053
7053
  window.Sprig("resumeReplayRecording");
7054
7054
  }
7055
7055
  }
7056
- const Zg = { configure: (e) => {
7056
+ const Xg = { configure: (e) => {
7057
7057
  if (!e.envId && !e.environmentId) throw new Error("Initialization Error: Sprig configure requires an environmentId");
7058
7058
  if (e.envId || (e.envId = e.environmentId ?? ""), e.installationMethod = "web-npm-bundled", window.Sprig) return window.Sprig;
7059
7059
  window.Sprig = function() {
@@ -7274,7 +7274,7 @@ const Tu = (e) => {
7274
7274
  window.addEventListener("beforeunload", () => {
7275
7275
  N.info("BeforeUnload", { sessionId: be }), ue.setItem("sprig.sessionId", be);
7276
7276
  });
7277
- const Je = (e, t) => {
7277
+ const qe = (e, t) => {
7278
7278
  var r, n;
7279
7279
  if (!Ge() && pe.isRecording && !Un()) try {
7280
7280
  (n = (r = window.rrwebRecord) == null ? void 0 : r.addCustomEvent) == null || n.call(r, e, t);
@@ -7290,9 +7290,9 @@ const Je = (e, t) => {
7290
7290
  const p = JSON.parse(a.event), d = t > ((l = (o = p.data) == null ? void 0 : o.payload) == null ? void 0 : l.x), f = n > ((u = (c = p.data) == null ? void 0 : c.payload) == null ? void 0 : u.y);
7291
7291
  if (!d && !f) return null;
7292
7292
  d && (p.data.payload.x = t), f && (p.data.payload.y = n), p.data.payload.elementAttributes = e.elementAttributes, a.event = JSON.stringify(p), await i.put("events", a);
7293
- } else Je("Sprig_Scroll", e);
7293
+ } else qe("Sprig_Scroll", e);
7294
7294
  }, "Error updating scroll event");
7295
- Je("Sprig_Scroll", e);
7295
+ qe("Sprig_Scroll", e);
7296
7296
  }, _u = () => {
7297
7297
  pe.stopRecording && (pe.stopRecording(), pe.stopRecording = void 0), pe.isRecording = !1, ["cleanupInterval", "inactivityInterval", "pendingCheckInterval"].forEach((e) => {
7298
7298
  pe[e] && (clearInterval(pe[e]), pe[e] = void 0);
@@ -7541,7 +7541,7 @@ const $u = async (e, t) => {
7541
7541
  s || (s = Ve(t)), s.report(n / 1e3);
7542
7542
  }
7543
7543
  };
7544
- let Ju = 5e3, Ei = 6e4, xi = 0, lt, Ri = !1, Li = [];
7544
+ let qu = 5e3, Ei = 6e4, xi = 0, lt, Ri = !1, Li = [];
7545
7545
  const Tg = (e) => {
7546
7546
  var t, r, n, s;
7547
7547
  if ((t = e.event) != null && t.includes("Sprig_Scroll")) {
@@ -7582,7 +7582,7 @@ const Oi = async (e = !1) => {
7582
7582
  const t = parseInt(lt ?? "0");
7583
7583
  if (t === 0) return;
7584
7584
  const r = await Q.getPendingCaptures({ beforePresent: !0, isBeforeType: e }), n = await Q.openDB();
7585
- await Promise.all(r.map(async (s) => (await n.delete("pendingCaptures", s.uuid), Ku(s.captureParams, s.canUpload)))), lt = (t - r.length).toString(), ue.setItem("sprig.pendingCount", lt);
7585
+ await Promise.all(r.map(async (s) => (await n.delete("pendingCaptures", s.uuid), Xu(s.captureParams, s.canUpload)))), lt = (t - r.length).toString(), ue.setItem("sprig.pendingCount", lt);
7586
7586
  } finally {
7587
7587
  Is = !1;
7588
7588
  }
@@ -7599,7 +7599,7 @@ const Oi = async (e = !1) => {
7599
7599
  }), o < 0 ? (N.debug("ValidStartNotFound"), { validStartFound: n, events: [] }) : { validStartFound: !0, events: a == null ? void 0 : a.slice(o) };
7600
7600
  }
7601
7601
  return { validStartFound: n, events: a };
7602
- }, qu = (e) => Promise.all(e.map(async (t) => {
7602
+ }, Ju = (e) => Promise.all(e.map(async (t) => {
7603
7603
  const r = await (async (n) => xu.execute(async () => {
7604
7604
  var a;
7605
7605
  N.info("UploadChunkStart", { chunkIndex: n.chunkIndex, surveyId: n.surveyId });
@@ -7610,7 +7610,7 @@ const Oi = async (e = !1) => {
7610
7610
  return i;
7611
7611
  }))(t);
7612
7612
  return await Q.updatePartial("chunkUploads", t.uuid, { data: null, etag: r, status: "UploadComplete" }), t.uploadId;
7613
- })), Xu = async (e) => {
7613
+ })), Ku = async (e) => {
7614
7614
  const t = await Q.getChunkUploadsByStatus({ status: "UploadComplete", uploadId: e });
7615
7615
  if (!(t != null && t.length)) return void N.info("NoChunksForUpload", { uploadId: e });
7616
7616
  const r = t.reduce((i, a) => (i.find((o) => o.chunkIndex === a.chunkIndex) || i.push(a), i), []);
@@ -7621,9 +7621,9 @@ const Oi = async (e = !1) => {
7621
7621
  xe(async () => {
7622
7622
  const e = await Q.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
7623
7623
  if (!(e != null && e.length)) return;
7624
- const t = await qu(e);
7624
+ const t = await Ju(e);
7625
7625
  t != null && t.length && await Promise.all(t.map((r) => {
7626
- if (r) return Xu(r);
7626
+ if (r) return Ku(r);
7627
7627
  }));
7628
7628
  }, "Error uploading unfinished chunks");
7629
7629
  }, Bg = async (e, t) => {
@@ -7646,7 +7646,7 @@ const Oi = async (e = !1) => {
7646
7646
  l.write(g);
7647
7647
  }, "sdk_replay_compression_seconds"), c = !0;
7648
7648
  }
7649
- if (d - p < Ju) return N.debug("ReplayTooShort"), null;
7649
+ if (d - p < qu) return N.debug("ReplayTooShort"), null;
7650
7650
  const y = i.encode("]");
7651
7651
  return l.write(y), l.close(), a = new Uint8Array(await new Response(o.readable).arrayBuffer()), a;
7652
7652
  })(r - e, r);
@@ -7663,9 +7663,9 @@ const Oi = async (e = !1) => {
7663
7663
  return await (await Q.openDB()).add("chunkUploads", { ...y, sessionId: y.sessionId ?? be }), y;
7664
7664
  }));
7665
7665
  await (async (p, d) => {
7666
- await qu(d), await Promise.all(p.map((f) => Xu(f)));
7666
+ await Ju(d), await Promise.all(p.map((f) => Ku(f)));
7667
7667
  })([a.uploadId], u);
7668
- }, Ku = async (e, t) => {
7668
+ }, Xu = async (e, t) => {
7669
7669
  if (Ge()) return N.debug("ReplayDisabled-ScheduleOrCapture");
7670
7670
  const { isHeatmap: r, isStandalone: n, replayParams: s, triggerTimestamp: i, responseGroupId: a } = e, o = async () => {
7671
7671
  setTimeout(() => z.removeListener(B.QuestionAnswered, o), 0), xe(async () => {
@@ -7698,11 +7698,11 @@ const Oi = async (e = !1) => {
7698
7698
  const a = e.triggerTimestamp + 1e3 * e.replayParams.replayDurationSeconds;
7699
7699
  i.triggerTimestamp = a, lt = (parseInt(lt ?? "0") + 1).toString(), ue.setItem("sprig.pendingCount", lt), await (await Q.openDB()).add("pendingCaptures", { canUpload: !1, captureParams: i, sessionId: be, targetTimestamp: a, timestamp: Date.now(), uuid: Ut() });
7700
7700
  }, jg = Object.freeze(Object.defineProperty({ __proto__: null, RecordEvent: (e) => {
7701
- Je("Sprig_TrackEvent", e);
7701
+ qe("Sprig_TrackEvent", e);
7702
7702
  }, RecordPageView: (e) => {
7703
- e.description && (e.description = io(e.description)), Je("Sprig_PageView", e);
7703
+ e.description && (e.description = io(e.description)), qe("Sprig_PageView", e);
7704
7704
  }, RecordSurveyShown: (e) => {
7705
- Je("Sprig_ShowSurvey", e);
7705
+ qe("Sprig_ShowSurvey", e);
7706
7706
  }, _completeSessionReplay: async ({ surveyId: e, responseGroupUuid: t, eventDigest: r, headers: n }) => {
7707
7707
  if (!e || !t) return !1;
7708
7708
  const s = window.UserLeap._API_URL, i = await Ru({ surveyId: e, responseGroupUuid: t, eventDigest: r, apiUrl: s, headers: n }, !0);
@@ -7739,7 +7739,7 @@ const Oi = async (e = !1) => {
7739
7739
  if (!o) return N.debug("MissingDuration");
7740
7740
  N.debug("ReplayInit"), await xe(async () => {
7741
7741
  var l;
7742
- r != null && r.minDuration && (Ju = r.minDuration), r != null && r.batchDuration && (Ei = r.batchDuration), l = t, xu.setLimit(l), Fg(), Pg(o + 35, 1800, o + 35), _g();
7742
+ r != null && r.minDuration && (qu = r.minDuration), r != null && r.batchDuration && (Ei = r.batchDuration), l = t, xu.setLimit(l), Fg(), Pg(o + 35, 1800, o + 35), _g();
7743
7743
  const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record.min.js", u = window.rrwebRecord;
7744
7744
  if (!u) return N.error("RecordScriptFailed");
7745
7745
  let p = !0, d = 0;
@@ -7761,14 +7761,14 @@ const Oi = async (e = !1) => {
7761
7761
  });
7762
7762
  })(f, c), z.on("survey.complete", (I) => {
7763
7763
  var m;
7764
- m = { id: I, userAgent: window.navigator.userAgent }, Je("Sprig_SubmitSurvey", m);
7765
- }), y = Je, h = Ig, Mn || (Re = y, pn = h, window.addEventListener("click", Uu, We), window.addEventListener("pointerdown", Du, We), window.addEventListener("mousedown", Tu, We), window.addEventListener("keydown", Au, We), window.addEventListener("scroll", Mu, We), Mn = !0, bg(), Sg()));
7764
+ m = { id: I, userAgent: window.navigator.userAgent }, qe("Sprig_SubmitSurvey", m);
7765
+ }), y = qe, h = Ig, Mn || (Re = y, pn = h, window.addEventListener("click", Uu, We), window.addEventListener("pointerdown", Du, We), window.addEventListener("mousedown", Tu, We), window.addEventListener("keydown", Au, We), window.addEventListener("scroll", Mu, We), Mn = !0, bg(), Sg()));
7766
7766
  }, "Error initializing replay");
7767
7767
  }, isReplayPaused: Un, isReplayRecording: () => pe.isRecording, recordFullSnapshot: ki, recordReplayPaused: () => {
7768
- Je("Sprig_ReplayPaused", { timestamp: Date.now() }), ue.setItem("sprig.isReplayPaused", "true");
7768
+ qe("Sprig_ReplayPaused", { timestamp: Date.now() }), ue.setItem("sprig.isReplayPaused", "true");
7769
7769
  }, recordReplayResumed: () => {
7770
- ue.removeItem("sprig.isReplayPaused"), Je("Sprig_ReplayResumed", { timestamp: Date.now() });
7771
- }, scheduleCapture: Qu, scheduleOrCaptureReplay: Ku, tryReplayAction: xe, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
7770
+ ue.removeItem("sprig.isReplayPaused"), qe("Sprig_ReplayResumed", { timestamp: Date.now() });
7771
+ }, scheduleCapture: Qu, scheduleOrCaptureReplay: Xu, tryReplayAction: xe, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
7772
7772
  ((e) => {
7773
7773
  re.replay = e;
7774
7774
  })(jg), window.UpChunk = { createUpload: Bd }, window.rrwebRecord = Yt;
@@ -7784,14 +7784,13 @@ export {
7784
7784
  N as d,
7785
7785
  z as e,
7786
7786
  In as f,
7787
- Jg as g,
7787
+ qg as g,
7788
7788
  Hg as h,
7789
- qg as i,
7790
- Xg as j,
7791
- Ye as k,
7792
- Yg as l,
7793
- Qa as m,
7794
- Zg as n,
7789
+ Jg as i,
7790
+ Ye as j,
7791
+ Yg as k,
7792
+ Qa as l,
7793
+ Xg as m,
7795
7794
  Kg as r,
7796
7795
  Zc as s,
7797
7796
  Ut as v