@sprig-technologies/sprig-bundled 2.40.1 → 2.40.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{conversational-ui-D-i49ps3.js → conversational-ui-BXidfSdu.js} +333 -333
- package/dist/conversational-ui-DUGOWcXj.cjs +658 -0
- package/dist/{getAttributedUrl-B0b2NdfZ.js → getAttributedUrl-B28r1ayG.js} +2 -2
- package/dist/{getAttributedUrl-B2AD3-f7.cjs → getAttributedUrl-C_nBQU9-.cjs} +1 -1
- package/dist/{index-BZjOqtTO.js → index-B-1ZVEfz.js} +109 -109
- package/dist/{index-D7xIZ9_C.cjs → index-B0SmBCWR.cjs} +15 -15
- package/dist/{index-BlwcV11_.js → index-BM-ZKnlM.js} +3 -3
- package/dist/{index-C3Nj6aLe.cjs → index-DuLz6-LB.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{view-JArMqSNr.js → view-CwyS6VJ8.js} +3 -3
- package/dist/{view-CRNTl40s.cjs → view-IVflCEcd.cjs} +1 -1
- package/package.json +1 -1
- package/dist/conversational-ui-COaQs_Nu.cjs +0 -658
|
@@ -129,7 +129,7 @@ var Ue = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
|
|
|
129
129
|
} catch {
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}, Od = new ut("W01", "Unable to initialize event under dispatching."), Ad = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Md = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Ud = new ut("W04", "Unable to preventDefault on non-cancelable events."), Td = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Dd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"),
|
|
132
|
+
}, Od = new ut("W01", "Unable to initialize event under dispatching."), Ad = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Md = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Ud = new ut("W04", "Unable to preventDefault on non-cancelable events."), Td = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Dd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"), Kn = new ut("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), uo = new ut("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), qe = class {
|
|
133
133
|
static get NONE() {
|
|
134
134
|
return po;
|
|
135
135
|
}
|
|
@@ -231,8 +231,8 @@ function go(e) {
|
|
|
231
231
|
e.inPassiveListenerFlag ? Td.warn() : e.cancelable ? e.canceledFlag = !0 : Ud.warn();
|
|
232
232
|
}
|
|
233
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
|
|
235
|
-
for (let e = 0; e <
|
|
234
|
+
var Zn = Object.getOwnPropertyNames(qe.prototype);
|
|
235
|
+
for (let e = 0; e < Zn.length; ++e) Zn[e] !== "constructor" && Object.defineProperty(qe.prototype, Zn[e], { enumerable: !0 });
|
|
236
236
|
Ue !== void 0 && Ue.Event !== void 0 && Object.setPrototypeOf(qe.prototype, Ue.Event.prototype);
|
|
237
237
|
var vt, yo = { 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 wo(e) {
|
|
@@ -380,7 +380,7 @@ var Dn = class {
|
|
|
380
380
|
}(f, v, p, I, m, g);
|
|
381
381
|
h.cow ? (h.cow = !1, h.listeners = [...h.listeners, b]) : h.listeners.push(b);
|
|
382
382
|
}(u, s, i, o, a, l) : function(h, f, v, p) {
|
|
383
|
-
Dd.warn(fl(h) ? "capture" : "bubble", h.callback), vo(h) !== f &&
|
|
383
|
+
Dd.warn(fl(h) ? "capture" : "bubble", h.callback), vo(h) !== f && Kn.warn("passive"), bo(h) !== v && Kn.warn("once"), h.signal !== p && Kn.warn("signal");
|
|
384
384
|
}(u.listeners[d], o, a, l);
|
|
385
385
|
}
|
|
386
386
|
removeEventListener(e, t, r) {
|
|
@@ -675,7 +675,7 @@ const we = { childNodes: function(e) {
|
|
|
675
675
|
function Cl(e) {
|
|
676
676
|
return e.nodeType === e.ELEMENT_NODE;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Zt(e) {
|
|
679
679
|
const t = e && "host" in e && "mode" in e && we.host(e) || null;
|
|
680
680
|
return !!(t && "shadowRoot" in t && we.shadowRoot(t) === e);
|
|
681
681
|
}
|
|
@@ -807,7 +807,7 @@ function xl() {
|
|
|
807
807
|
return qd++;
|
|
808
808
|
}
|
|
809
809
|
let bt, Ao;
|
|
810
|
-
const
|
|
810
|
+
const Kd = /^[^ \t\n\r\u000c]+/, Zd = /^[, \t\n\r\u000c]+/, Mo = /* @__PURE__ */ new WeakMap();
|
|
811
811
|
function Ft(e, t) {
|
|
812
812
|
return t && t.trim() !== "" ? Di(e, t) : t;
|
|
813
813
|
}
|
|
@@ -831,8 +831,8 @@ function Rl(e, t, r, n) {
|
|
|
831
831
|
return d ? (u = d[0], a += u.length, u) : "";
|
|
832
832
|
}
|
|
833
833
|
const l = [];
|
|
834
|
-
for (; o(
|
|
835
|
-
let c = o(
|
|
834
|
+
for (; o(Zd), !(a >= i.length); ) {
|
|
835
|
+
let c = o(Kd);
|
|
836
836
|
if (c.slice(-1) === ",") c = Ft(s, c.substring(0, c.length - 1)), l.push(c);
|
|
837
837
|
else {
|
|
838
838
|
let u = "";
|
|
@@ -1048,7 +1048,7 @@ function Et(e, t) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
const P = we.parentNode(e);
|
|
1051
|
-
return P &&
|
|
1051
|
+
return P && Zt(P) && Xt(P) && (S.isShadow = !0), S.type === fe.Element && S.tagName === "iframe" && function(w, y, U) {
|
|
1052
1052
|
const F = w.contentWindow;
|
|
1053
1053
|
if (!F) return;
|
|
1054
1054
|
let j, O = !1;
|
|
@@ -1644,7 +1644,7 @@ let { SourceMapConsumer: hp, SourceMapGenerator: mp } = De, { fileURLToPath: Fo,
|
|
|
1644
1644
|
};
|
|
1645
1645
|
var zn = Jr;
|
|
1646
1646
|
Jr.default = Jr, ns && ns.registerInput && ns.registerInput(Jr);
|
|
1647
|
-
let { SourceMapConsumer: Tl, SourceMapGenerator:
|
|
1647
|
+
let { SourceMapConsumer: Tl, SourceMapGenerator: Kr } = De, { dirname: Zr, relative: Dl, resolve: Pl, sep: _l } = De, { pathToFileURL: jo } = De, wp = zn, vp = !!(Tl && Kr), bp = !!(Zr && Pl && Dl && _l);
|
|
1648
1648
|
var Nl = 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 Nl = 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 ||
|
|
1663
|
+
let t, r = this.toUrl(this.path(e.file)), n = e.root || Zr(e.file);
|
|
1664
1664
|
this.mapOpts.sourcesContent === !1 ? (t = new Tl(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 Nl = 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 =
|
|
1687
|
-
} else this.map = new
|
|
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
|
|
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 Nl = 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 ?
|
|
1723
|
-
typeof this.mapOpts.annotation == "string" && (r =
|
|
1722
|
+
let r = this.opts.to ? Zr(this.opts.to) : ".";
|
|
1723
|
+
typeof this.mapOpts.annotation == "string" && (r = Zr(Pl(r, this.mapOpts.annotation)));
|
|
1724
1724
|
let n = Dl(r, e);
|
|
1725
1725
|
return this.memoizedPaths.set(e, n), n;
|
|
1726
1726
|
}
|
|
@@ -2003,7 +2003,7 @@ let kp = Jl, Fs = class {
|
|
|
2003
2003
|
var Bi = Fs;
|
|
2004
2004
|
Fs.default = Fs;
|
|
2005
2005
|
const is = 39, Wo = 34, kr = 92, Vo = 47, Er = 10, Bt = 32, xr = 12, Rr = 9, Lr = 13, Ep = 91, xp = 93, Rp = 40, Lp = 41, Op = 123, Ap = 125, Mp = 59, Up = 42, Tp = 58, Dp = 64, Or = /[\t\n\f\r "#'()/;[\\\]{}]/g, Ar = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Pp = /.[\r\n"'(/\\]/, Go = /[\da-f]/i;
|
|
2006
|
-
let
|
|
2006
|
+
let Kl = yt, Xr = class extends Kl {
|
|
2007
2007
|
constructor(e) {
|
|
2008
2008
|
super(e), this.type = "atrule";
|
|
2009
2009
|
}
|
|
@@ -2015,8 +2015,8 @@ let Zl = yt, Xr = class extends Zl {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
2017
|
var zi = Xr;
|
|
2018
|
-
Xr.default = Xr,
|
|
2019
|
-
let
|
|
2018
|
+
Xr.default = Xr, Kl.registerAtRule(Xr);
|
|
2019
|
+
let Zl, Xl, Ql = yt, Ot = class extends Ql {
|
|
2020
2020
|
constructor(e) {
|
|
2021
2021
|
super(e), this.type = "root", this.nodes || (this.nodes = []);
|
|
2022
2022
|
}
|
|
@@ -2033,11 +2033,11 @@ let Kl, Xl, Ql = yt, Ot = class extends Ql {
|
|
|
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
|
|
2036
|
+
return new Zl(new Xl(), this, e).stringify();
|
|
2037
2037
|
}
|
|
2038
2038
|
};
|
|
2039
2039
|
Ot.registerLazyResult = (e) => {
|
|
2040
|
-
|
|
2040
|
+
Zl = e;
|
|
2041
2041
|
}, Ot.registerProcessor = (e) => {
|
|
2042
2042
|
Xl = e;
|
|
2043
2043
|
};
|
|
@@ -2408,7 +2408,7 @@ function en(e, t) {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
var Wi = en;
|
|
2410
2410
|
en.default = en, Vp.registerParse(en);
|
|
2411
|
-
let { isClean: Ne, my: $p } = ir, Yp = Nl, qp = Nn, Jp = yt,
|
|
2411
|
+
let { isClean: Ne, my: $p } = ir, Yp = Nl, qp = Nn, Jp = yt, Kp = Fi, Yo = Bi, Zp = Wi, Xp = gr;
|
|
2412
2412
|
const Qp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, eh = { 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 }, th = { Once: !0, postcssPlugin: !0, prepare: !0 };
|
|
2413
2413
|
function zt(e) {
|
|
2414
2414
|
return typeof e == "object" && typeof e.then == "function";
|
|
@@ -2429,7 +2429,7 @@ let zs = {}, xt = class nc {
|
|
|
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 nc || r instanceof Yo) 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 =
|
|
2432
|
+
let i = Zp;
|
|
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 @@ xt.registerPostcss = (e) => {
|
|
|
2638
2638
|
zs = e;
|
|
2639
2639
|
};
|
|
2640
2640
|
var sc = xt;
|
|
2641
|
-
xt.default = xt, Xp.registerLazyResult(xt),
|
|
2641
|
+
xt.default = xt, Xp.registerLazyResult(xt), Kp.registerLazyResult(xt);
|
|
2642
2642
|
let rh = Nl, nh = Nn, sh = Wi;
|
|
2643
2643
|
const ih = Bi;
|
|
2644
2644
|
let js = class {
|
|
@@ -2757,11 +2757,11 @@ function lr(e, t) {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
var vh = lr;
|
|
2759
2759
|
lr.default = lr;
|
|
2760
|
-
let bh = Pi, Jo = Bn, Sh = sc, Ih = yt, Ws = dh, Ch = Nn, kh = vh,
|
|
2761
|
-
function
|
|
2760
|
+
let bh = Pi, Jo = Bn, Sh = sc, Ih = yt, Ws = dh, Ch = Nn, kh = vh, Ko = Fi, Eh = Jl, Zo = jn, Xo = zi, xh = Bi, Rh = zn, Lh = Wi, Oh = ec, Qo = ji, ea = gr, Ah = Fn;
|
|
2761
|
+
function K(...e) {
|
|
2762
2762
|
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new Ws(e);
|
|
2763
2763
|
}
|
|
2764
|
-
|
|
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
|
|
2774
|
+
return K([s(o)]).process(i, a);
|
|
2775
2775
|
}, s;
|
|
2776
|
-
},
|
|
2777
|
-
var Mh =
|
|
2778
|
-
|
|
2776
|
+
}, K.stringify = Ch, K.parse = Lh, K.fromJSON = kh, K.list = Oh, K.comment = (e) => new Zo(e), K.atRule = (e) => new Xo(e), K.decl = (e) => new Jo(e), K.rule = (e) => new Qo(e), K.root = (e) => new ea(e), K.document = (e) => new Ko(e), K.CssSyntaxError = bh, K.Declaration = Jo, K.Container = Ih, K.Processor = Ws, K.Document = Ko, K.Comment = Zo, K.Warning = Eh, K.AtRule = Xo, K.Result = xh, K.Input = Rh, K.Rule = Qo, K.Root = ea, K.Node = Ah, Sh.registerPostcss(K);
|
|
2777
|
+
var Mh = K;
|
|
2778
|
+
K.default = K;
|
|
2779
2779
|
const ae = ep(Mh);
|
|
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 Uh = Object.defineProperty, Le = (e, t, r) => ((n, s, i) => s in n ? Uh(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i)(e, typeof t != "symbol" ? t + "" : t, r);
|
|
@@ -3175,7 +3175,7 @@ var Wh = { nanoid: (e = 21) => {
|
|
|
3175
3175
|
for (; r--; ) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
|
|
3176
3176
|
return t;
|
|
3177
3177
|
} };
|
|
3178
|
-
let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, readFileSync: Gh } = Pe, { dirname: os, join: Hh } = Pe,
|
|
3178
|
+
let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, readFileSync: Gh } = Pe, { dirname: os, join: Hh } = Pe, 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: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, re
|
|
|
3240
3240
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
3241
3241
|
}
|
|
3242
3242
|
};
|
|
3243
|
-
var ac =
|
|
3244
|
-
|
|
3245
|
-
let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa, pathToFileURL: Ur } = Pe, { isAbsolute:
|
|
3243
|
+
var ac = Ks;
|
|
3244
|
+
Ks.default = Ks;
|
|
3245
|
+
let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa, pathToFileURL: Ur } = Pe, { isAbsolute: Zs, resolve: Xs } = Pe, { nanoid: qh } = Wh, as = Pe, la = Vi, Jh = ac, ls = Symbol("fromOffsetCache"), Kh = !!($h && Yh), ca = !!(Xs && Zs), 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 && (!ca || /^\w+:\/\//.test(t.from) ||
|
|
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 && (!ca || /^\w+:\/\//.test(t.from) || Zs(t.from) ? this.file = t.from : this.file = Xs(t.from)), ca && Kh) {
|
|
3249
3249
|
let r = new Jh(this.css, t);
|
|
3250
3250
|
if (r.text) {
|
|
3251
3251
|
this.map = r;
|
|
@@ -3308,7 +3308,7 @@ let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa,
|
|
|
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 =
|
|
3311
|
+
typeof r == "number" && (s = a.originalPositionFor({ column: n, line: r })), i = Zs(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 (!aa) throw new Error("file: protocol is not available in this PostCSS build");
|
|
@@ -3328,7 +3328,7 @@ let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa,
|
|
|
3328
3328
|
};
|
|
3329
3329
|
var Hn = tn;
|
|
3330
3330
|
tn.default = tn, as && as.registerInput && as.registerInput(tn);
|
|
3331
|
-
let { SourceMapConsumer: lc, SourceMapGenerator: rn } = Pe, { dirname: nn, relative: cc, resolve: uc, sep: dc } = Pe, { pathToFileURL: ua } = Pe,
|
|
3331
|
+
let { SourceMapConsumer: lc, SourceMapGenerator: rn } = Pe, { dirname: nn, relative: cc, resolve: uc, sep: dc } = Pe, { pathToFileURL: ua } = Pe, Zh = Hn, Xh = !!(lc && rn), Qh = !!(nn && uc && cc && dc);
|
|
3332
3332
|
var pc = 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();
|
|
@@ -3416,7 +3416,7 @@ var pc = class {
|
|
|
3416
3416
|
}
|
|
3417
3417
|
});
|
|
3418
3418
|
else {
|
|
3419
|
-
let e = new
|
|
3419
|
+
let e = new Zh(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 vc(e) {
|
|
|
3475
3475
|
function bc(e) {
|
|
3476
3476
|
if (e[fc] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) bc(t);
|
|
3477
3477
|
}
|
|
3478
|
-
let
|
|
3478
|
+
let Ke = class Sc extends tm {
|
|
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 Ze = class Sc extends tm {
|
|
|
3621
3621
|
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
3622
3622
|
}
|
|
3623
3623
|
};
|
|
3624
|
-
|
|
3624
|
+
Ke.registerParse = (e) => {
|
|
3625
3625
|
hc = e;
|
|
3626
|
-
},
|
|
3626
|
+
}, Ke.registerRule = (e) => {
|
|
3627
3627
|
Gi = e;
|
|
3628
|
-
},
|
|
3628
|
+
}, Ke.registerAtRule = (e) => {
|
|
3629
3629
|
Hi = e;
|
|
3630
|
-
},
|
|
3630
|
+
}, Ke.registerRoot = (e) => {
|
|
3631
3631
|
mc = e;
|
|
3632
3632
|
};
|
|
3633
|
-
var wt =
|
|
3634
|
-
|
|
3633
|
+
var wt = Ke;
|
|
3634
|
+
Ke.default = Ke, Ke.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, yc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, wc.prototype) : e.type === "root" && Object.setPrototypeOf(e, mc.prototype), e[gc] = !0, e.nodes && e.nodes.forEach((t) => {
|
|
3636
|
-
|
|
3636
|
+
Ke.rebuild(t);
|
|
3637
3637
|
});
|
|
3638
3638
|
};
|
|
3639
3639
|
let Ic, Cc, rm = wt, ur = class extends rm {
|
|
@@ -4090,9 +4090,9 @@ function an(e, t) {
|
|
|
4090
4090
|
}
|
|
4091
4091
|
return n.root;
|
|
4092
4092
|
}
|
|
4093
|
-
var
|
|
4093
|
+
var Ki = an;
|
|
4094
4094
|
an.default = an, Im.registerParse(an);
|
|
4095
|
-
let { isClean: Fe, my: Em } = cr, xm = pc, Rm = Wn, Lm = wt, Om = $i, ga = Yi, Am =
|
|
4095
|
+
let { isClean: Fe, my: Em } = cr, xm = pc, Rm = Wn, Lm = wt, Om = $i, ga = Yi, Am = Ki, Mm = yr;
|
|
4096
4096
|
const Um = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Tm = { 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 }, Dm = { Once: !0, postcssPlugin: !0, prepare: !0 };
|
|
4097
4097
|
function Wt(e) {
|
|
4098
4098
|
return typeof e == "object" && typeof e.then == "function";
|
|
@@ -4323,7 +4323,7 @@ Rt.registerPostcss = (e) => {
|
|
|
4323
4323
|
};
|
|
4324
4324
|
var Tc = Rt;
|
|
4325
4325
|
Rt.default = Rt, Mm.registerLazyResult(Rt), Om.registerLazyResult(Rt);
|
|
4326
|
-
let Pm = pc, _m = Wn, Nm =
|
|
4326
|
+
let Pm = pc, _m = Wn, Nm = Ki;
|
|
4327
4327
|
const Fm = Yi;
|
|
4328
4328
|
let si = class {
|
|
4329
4329
|
constructor(e, t, r) {
|
|
@@ -4417,7 +4417,7 @@ let zm = Bm, jm = Tc, Wm = $i, Vm = yr, Ht = class {
|
|
|
4417
4417
|
};
|
|
4418
4418
|
var Gm = Ht;
|
|
4419
4419
|
Ht.default = Ht, Vm.registerProcessor(Ht), Wm.registerProcessor(Ht);
|
|
4420
|
-
let Hm = Gn, $m = ac, Ym = $n, qm = qi, Jm = Hn,
|
|
4420
|
+
let Hm = Gn, $m = ac, Ym = $n, qm = qi, Jm = Hn, Km = yr, Zm = Ji;
|
|
4421
4421
|
function pr(e, t) {
|
|
4422
4422
|
if (Array.isArray(e)) return e.map((s) => pr(s));
|
|
4423
4423
|
let { inputs: r, ...n } = e;
|
|
@@ -4432,20 +4432,20 @@ function pr(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
|
|
4435
|
+
if (n.type === "root") return new Km(n);
|
|
4436
4436
|
if (n.type === "decl") return new Hm(n);
|
|
4437
|
-
if (n.type === "rule") return new
|
|
4437
|
+
if (n.type === "rule") return new Zm(n);
|
|
4438
4438
|
if (n.type === "comment") return new Ym(n);
|
|
4439
4439
|
if (n.type === "atrule") return new qm(n);
|
|
4440
4440
|
throw new Error("Unknown node type: " + e.type);
|
|
4441
4441
|
}
|
|
4442
4442
|
var Xm = pr;
|
|
4443
4443
|
pr.default = pr;
|
|
4444
|
-
let Qm = Vi, wa = Gn, ef = Tc, tf = wt, ii = Gm, rf = Wn, nf = Xm, va = $i, sf = kc, ba = $n, Sa = qi, of = Yi, af = Hn, lf =
|
|
4445
|
-
function
|
|
4444
|
+
let Qm = Vi, wa = Gn, ef = Tc, tf = wt, ii = Gm, rf = Wn, nf = Xm, va = $i, sf = kc, ba = $n, Sa = qi, of = Yi, af = Hn, lf = Ki, cf = Oc, Ia = Ji, Ca = yr, uf = Vn;
|
|
4445
|
+
function Z(...e) {
|
|
4446
4446
|
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new ii(e);
|
|
4447
4447
|
}
|
|
4448
|
-
|
|
4448
|
+
Z.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
|
|
4458
|
+
return Z([s(o)]).process(i, a);
|
|
4459
4459
|
}, s;
|
|
4460
|
-
},
|
|
4461
|
-
var df =
|
|
4462
|
-
|
|
4460
|
+
}, Z.stringify = rf, Z.parse = lf, Z.fromJSON = nf, Z.list = cf, Z.comment = (e) => new ba(e), Z.atRule = (e) => new Sa(e), Z.decl = (e) => new wa(e), Z.rule = (e) => new Ia(e), Z.root = (e) => new Ca(e), Z.document = (e) => new va(e), Z.CssSyntaxError = Qm, Z.Declaration = wa, Z.Container = tf, Z.Processor = ii, Z.Document = va, Z.Comment = ba, Z.Warning = sf, Z.AtRule = Sa, Z.Result = of, Z.Input = af, Z.Rule = Ia, Z.Root = Ca, Z.Node = uf, ef.registerPostcss(Z);
|
|
4461
|
+
var df = Z;
|
|
4462
|
+
Z.default = Z;
|
|
4463
4463
|
const le = Th(df);
|
|
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
|
|
4465
|
+
class Zi {
|
|
4466
4466
|
constructor(...t) {
|
|
4467
4467
|
Le(this, "parentElement", null), Le(this, "parentNode", null), Le(this, "ownerDocument"), Le(this, "firstChild", null), Le(this, "lastChild", null), Le(this, "previousSibling", null), Le(this, "nextSibling", null), Le(this, "ELEMENT_NODE", 1), Le(this, "TEXT_NODE", 3), Le(this, "nodeType"), Le(this, "nodeName"), Le(this, "RRNodeType");
|
|
4468
4468
|
}
|
|
@@ -4473,7 +4473,7 @@ class Ki {
|
|
|
4473
4473
|
return t;
|
|
4474
4474
|
}
|
|
4475
4475
|
contains(t) {
|
|
4476
|
-
if (!(t instanceof
|
|
4476
|
+
if (!(t instanceof Zi) || 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 Bc(e, t) {
|
|
4636
|
-
if (
|
|
4636
|
+
if (Zt(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 jc(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
|
|
4652
|
+
return !!e && (e instanceof Zi && "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 pf {
|
|
@@ -4740,7 +4740,7 @@ class ff {
|
|
|
4740
4740
|
}, i = (l) => {
|
|
4741
4741
|
const c = G.parentNode(l);
|
|
4742
4742
|
if (!c || !Vc(l) || c.tagName === "TEXTAREA") return;
|
|
4743
|
-
const u =
|
|
4743
|
+
const u = Zt(c) ? this.mirror.getId(Wc(l)) : this.mirror.getId(c), d = s(l);
|
|
4744
4744
|
if (u === -1 || d === -1) return n.addNode(l);
|
|
4745
4745
|
const h = Et(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
|
zc(f, this.mirror) && this.iframeManager.addIframe(f), jc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(G.shadowRoot(l), this.doc);
|
|
@@ -4846,10 +4846,10 @@ class ff {
|
|
|
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 =
|
|
4849
|
+
const n = this.mirror.getId(r), s = Zt(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 || Bc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[Oa(n, s)] ? li(this.movedSet, r) : this.removes.push({ parentId: s, id: n, isShadow: !(!
|
|
4852
|
+
}(r, this.mirror) || (this.addedSet.has(r) ? (li(this.addedSet, r), this.droppedSet.add(r)) : this.addedSet.has(t.target) && n === -1 || Bc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[Oa(n, s)] ? li(this.movedSet, r) : this.removes.push({ parentId: s, id: n, isShadow: !(!Zt(t.target) || !Xt(t.target)) || void 0 })), this.mapRemoves.push(r));
|
|
4853
4853
|
});
|
|
4854
4854
|
}
|
|
4855
4855
|
}), L(this, "genAdds", (t, r) => {
|
|
@@ -5434,7 +5434,7 @@ class bf {
|
|
|
5434
5434
|
}
|
|
5435
5435
|
for (var Yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Sf = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Gr = 0; Gr < 64; Gr++) Sf[Yt.charCodeAt(Gr)] = Gr;
|
|
5436
5436
|
const Da = /* @__PURE__ */ new Map(), qc = (e, t, r) => {
|
|
5437
|
-
if (!e || !
|
|
5437
|
+
if (!e || !Kc(e, t) && typeof e != "object") return;
|
|
5438
5438
|
const n = function(i, a) {
|
|
5439
5439
|
let o = Da.get(i);
|
|
5440
5440
|
return o || (o = /* @__PURE__ */ new Map(), Da.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] } :
|
|
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] } : Kc(e, t) || typeof e == "object" ? { rr_type: e.constructor.name, index: qc(e, t, r) } : e;
|
|
5463
5463
|
}
|
|
5464
|
-
const Jc = (e, t, r) => e.map((n) => ln(n, t, r)),
|
|
5464
|
+
const Jc = (e, t, r) => e.map((n) => ln(n, t, r)), Kc = (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 Pa(e, t, r, n) {
|
|
5466
5466
|
const s = [];
|
|
5467
5467
|
try {
|
|
@@ -5510,7 +5510,7 @@ function _a(e, t, r, n, s, i) {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
return a;
|
|
5512
5512
|
}
|
|
5513
|
-
const
|
|
5513
|
+
const Zc = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=", Na = typeof window < "u" && window.Blob && new Blob([(Fa = Zc, Uint8Array.from(atob(Fa), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
|
|
5514
5514
|
var Fa;
|
|
5515
5515
|
function If(e) {
|
|
5516
5516
|
let t;
|
|
@@ -5521,7 +5521,7 @@ function If(e) {
|
|
|
5521
5521
|
(window.URL || window.webkitURL).revokeObjectURL(t);
|
|
5522
5522
|
}), r;
|
|
5523
5523
|
} catch {
|
|
5524
|
-
return new Worker("data:text/javascript;base64," +
|
|
5524
|
+
return new Worker("data:text/javascript;base64," + Zc, { name: e == null ? void 0 : e.name });
|
|
5525
5525
|
} finally {
|
|
5526
5526
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
5527
5527
|
}
|
|
@@ -5813,7 +5813,7 @@ function Tt(e, t, r) {
|
|
|
5813
5813
|
return ye[s[i + 0]] + ye[s[i + 1]] + ye[s[i + 2]] + ye[s[i + 3]] + "-" + ye[s[i + 4]] + ye[s[i + 5]] + "-" + ye[s[i + 6]] + ye[s[i + 7]] + "-" + ye[s[i + 8]] + ye[s[i + 9]] + "-" + ye[s[i + 10]] + ye[s[i + 11]] + ye[s[i + 12]] + ye[s[i + 13]] + ye[s[i + 14]] + ye[s[i + 15]];
|
|
5814
5814
|
}(n);
|
|
5815
5815
|
}
|
|
5816
|
-
const $g = 360, Yg = "ul-app", qg = "#e6e6e6", Jg = "#bd282a",
|
|
5816
|
+
const $g = 360, Yg = "ul-app", qg = "#e6e6e6", Jg = "#bd282a", Kg = 1030, N = new class {
|
|
5817
5817
|
constructor() {
|
|
5818
5818
|
de(this, "breadcrumbs", []);
|
|
5819
5819
|
}
|
|
@@ -5997,7 +5997,7 @@ class tu {
|
|
|
5997
5997
|
this.isStorageAvailable && this.storage ? this.storage.clear() : this.tempStorage = {};
|
|
5998
5998
|
}
|
|
5999
5999
|
}
|
|
6000
|
-
const
|
|
6000
|
+
const Zg = (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
6003
|
}, Xg = (e) => e === "longFormSurvey", ue = new tu("sessionStorage"), ke = new tu("localStorage");
|
|
@@ -6029,7 +6029,7 @@ const Tf = (e) => e._config && e._config.installationMethod ? e._config.installa
|
|
|
6029
6029
|
ru = !0, nu = e;
|
|
6030
6030
|
};
|
|
6031
6031
|
function Te(e = {}) {
|
|
6032
|
-
const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.40.
|
|
6032
|
+
const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.40.3", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.40.3" };
|
|
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);
|
|
@@ -6153,14 +6153,14 @@ const tr = async (e, t, r) => {
|
|
|
6153
6153
|
F && F.remove();
|
|
6154
6154
|
const j = function() {
|
|
6155
6155
|
const V = document.createElement("script");
|
|
6156
|
-
return V.setAttribute("type", "module"), window.UserLeap.nonce && V.setAttribute("nonce", window.UserLeap.nonce), V.id = Ha, V;
|
|
6156
|
+
return window.UserLeap.isMobileSDK || V.setAttribute("type", "module"), window.UserLeap.nonce && V.setAttribute("nonce", window.UserLeap.nonce), V.id = Ha, V;
|
|
6157
6157
|
}(), O = () => {
|
|
6158
6158
|
window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
|
|
6159
6159
|
};
|
|
6160
6160
|
if (w.installationMethod === "web-npm" || w.installationMethod === "web-npm-bundled") {
|
|
6161
|
-
const { default: V } = await import("./view-
|
|
6161
|
+
const { default: V } = await import("./view-CwyS6VJ8.js").then((ge) => ge.v);
|
|
6162
6162
|
V.configure(w), S && window.UserLeap.container && O();
|
|
6163
|
-
} else U && (j.src = `${U}?t=${Date.now()}`, S && j.addEventListener("load", () => {
|
|
6163
|
+
} else U && (j.src = `${U}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, S && j.addEventListener("load", () => {
|
|
6164
6164
|
window.UserLeap.container && O();
|
|
6165
6165
|
}), x == null || x.addEventListener("error", (V) => {
|
|
6166
6166
|
V.target instanceof HTMLScriptElement && V.target.src === U && window.UserLeap.reportError("loadFrameScript", new Error("Frame script failed to load"));
|
|
@@ -6326,7 +6326,7 @@ const cu = (e) => {
|
|
|
6326
6326
|
const t = e.querySelector(".ul-card__container");
|
|
6327
6327
|
t && (t.scrollTop = 0);
|
|
6328
6328
|
}, uu = () => X, Lt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), du = () => !!document.getElementById(to);
|
|
6329
|
-
let
|
|
6329
|
+
let Ka = !1, X = null, je = null, no = !1, rr = null, pt = null;
|
|
6330
6330
|
const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn = () => {
|
|
6331
6331
|
var t;
|
|
6332
6332
|
const e = window.UserLeap.container;
|
|
@@ -6366,7 +6366,7 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6366
6366
|
})();
|
|
6367
6367
|
e && (X.style.height = "300px", X.style.width = "360px", X.appendChild(e));
|
|
6368
6368
|
}
|
|
6369
|
-
},
|
|
6369
|
+
}, Za = () => {
|
|
6370
6370
|
X && je && (kn(0), je.disabled = !0, no = !0);
|
|
6371
6371
|
}, mu = async (e, t, r) => {
|
|
6372
6372
|
const { buttonTheme: n, customStyles: s, eventId: i, placement: a, desktopDisplay: o, feedbackLabel: l, surveyUuid: c, surveyId: u } = e;
|
|
@@ -6376,7 +6376,7 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6376
6376
|
if (!t && i === rr) return;
|
|
6377
6377
|
d.remove(), z.off(hr.SURVEY_FADING_OUT, fs);
|
|
6378
6378
|
}
|
|
6379
|
-
rr = 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 }),
|
|
6379
|
+
rr = 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 }), Ka = o === "center-modal", pt = a;
|
|
6380
6380
|
const [h, f] = a.split("-");
|
|
6381
6381
|
((m) => {
|
|
6382
6382
|
if (Lt() || !Wf.includes(m)) return;
|
|
@@ -6394,7 +6394,7 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6394
6394
|
}
|
|
6395
6395
|
return;
|
|
6396
6396
|
}
|
|
6397
|
-
if (qn(Te(window.UserLeap)) || no ||
|
|
6397
|
+
if (qn(Te(window.UserLeap)) || no || Za(), t) return X && X.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void Jt();
|
|
6398
6398
|
const g = await (async (b) => {
|
|
6399
6399
|
const C = await ze(Me("1", [it], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: b }), method: "POST" });
|
|
6400
6400
|
return C.ok ? C.json : null;
|
|
@@ -6406,14 +6406,14 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6406
6406
|
}
|
|
6407
6407
|
}), d == null || d.appendChild(je), z.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
|
|
6408
6408
|
const { useMobileStyling: p, _config: { border: I } } = window.UserLeap;
|
|
6409
|
-
if (
|
|
6409
|
+
if (Ka || p) kn(0);
|
|
6410
6410
|
else {
|
|
6411
6411
|
const m = document.createElement("div");
|
|
6412
6412
|
m.id = "sprig-feedback-loading-container", m.className = `sprig-feedback-loading-container sprig-feedback-loading-container-${f}`, m.style.setProperty("--feedback-border", I), X = m, di(), d == null || d.appendChild(m);
|
|
6413
6413
|
const g = hu();
|
|
6414
6414
|
kn(-g);
|
|
6415
6415
|
}
|
|
6416
|
-
window.UserLeap._config.isOnQuestionsTab && t && !Cn() && X && (
|
|
6416
|
+
window.UserLeap._config.isOnQuestionsTab && t && !Cn() && X && (Za(), di(), X && X.classList.add("sprig-feedback-loading-container-previews"), tr(t), Jt());
|
|
6417
6417
|
}, Vf = () => {
|
|
6418
6418
|
var r;
|
|
6419
6419
|
const e = document.createElement("div");
|
|
@@ -6539,7 +6539,7 @@ class Gf {
|
|
|
6539
6539
|
}
|
|
6540
6540
|
let fu = !0, hi = !1;
|
|
6541
6541
|
const Hf = ["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"];
|
|
6542
|
-
let mi,
|
|
6542
|
+
let mi, Kt = {};
|
|
6543
6543
|
class $f {
|
|
6544
6544
|
constructor(t) {
|
|
6545
6545
|
de(this, "_values", []);
|
|
@@ -6556,7 +6556,7 @@ class $f {
|
|
|
6556
6556
|
return this._values = [], t;
|
|
6557
6557
|
}
|
|
6558
6558
|
findExceededThreshold(t) {
|
|
6559
|
-
const r =
|
|
6559
|
+
const r = Kt[this.name];
|
|
6560
6560
|
if (r) return r.find((n) => this.valueExceedsThreshold(t, n));
|
|
6561
6561
|
}
|
|
6562
6562
|
valueExceedsThreshold(t, r) {
|
|
@@ -6618,15 +6618,15 @@ const Yr = (e, t = 1) => {
|
|
|
6618
6618
|
case "characterData":
|
|
6619
6619
|
return void Yr(Ln);
|
|
6620
6620
|
}
|
|
6621
|
-
}, Jf = (e) => e.forEach(qf),
|
|
6621
|
+
}, Jf = (e) => e.forEach(qf), Kf = () => {
|
|
6622
6622
|
En.report(ht[En.name] || 0), xn.report(ht[xn.name] || 0), Rn.report(ht[Rn.name] || 0), Ln.report(ht[Ln.name] || 0), ht = {};
|
|
6623
|
-
},
|
|
6624
|
-
En = Ve("sdk_mutations_nodes_added"), xn = Ve("sdk_mutations_nodes_removed"), Rn = Ve("sdk_mutations_attributes_changed"), Ln = Ve("sdk_mutations_character_data"), Qa = new MutationObserver(Jf), Qa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(
|
|
6623
|
+
}, Zf = (e = 1e3) => {
|
|
6624
|
+
En = Ve("sdk_mutations_nodes_added"), xn = Ve("sdk_mutations_nodes_removed"), Rn = Ve("sdk_mutations_attributes_changed"), Ln = Ve("sdk_mutations_character_data"), Qa = new MutationObserver(Jf), Qa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Kf, e);
|
|
6625
6625
|
}, Xf = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
|
|
6626
6626
|
((s, i) => {
|
|
6627
|
-
|
|
6627
|
+
Kt = {}, hi = !1, s == null || s.forEach((a) => {
|
|
6628
6628
|
var o;
|
|
6629
|
-
a.metric in
|
|
6629
|
+
a.metric in Kt || (Kt[a.metric] = []), (o = Kt[a.metric]) == null || o.push(a);
|
|
6630
6630
|
}), mi = i;
|
|
6631
6631
|
})(r, (s, i) => {
|
|
6632
6632
|
var a, o;
|
|
@@ -6639,7 +6639,7 @@ const Yr = (e, t = 1) => {
|
|
|
6639
6639
|
gi(s, i);
|
|
6640
6640
|
})(), ((s = 1e4) => {
|
|
6641
6641
|
yu = Ve("sdk_dom_nodes_count"), wu = Ve("sdk_page_html_characters"), Xa(), setInterval(Xa, s);
|
|
6642
|
-
})(),
|
|
6642
|
+
})(), Zf());
|
|
6643
6643
|
}, Qf = "test", eg = ["popState", "pushState", "replaceState"];
|
|
6644
6644
|
let so, nr;
|
|
6645
6645
|
const On = {}, Vt = "!email", bu = "pageUrl";
|
|
@@ -6979,7 +6979,7 @@ function og(e = {}) {
|
|
|
6979
6979
|
var m;
|
|
6980
6980
|
await ze(Me("1", [ot], "metrics"), { body: I, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
|
|
6981
6981
|
} }), !c) {
|
|
6982
|
-
const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.40.
|
|
6982
|
+
const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.40.3", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
|
|
6983
6983
|
await ((v = re.replay) == null ? void 0 : v.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: window.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: window.UserLeap._API_URL, alwaysOnConfig: I })), so = u.replaySettings;
|
|
6984
6984
|
}
|
|
6985
6985
|
sg(u), await ng(u), window.UserLeap._queue.unpause(), (p = window.SprigLoggerCallback) == null || p.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, () => {
|
|
@@ -7451,16 +7451,16 @@ const Q = new class {
|
|
|
7451
7451
|
}
|
|
7452
7452
|
await r.done;
|
|
7453
7453
|
}
|
|
7454
|
-
}(),
|
|
7454
|
+
}(), Ze = [];
|
|
7455
7455
|
let br, Bu, gt = [], Dt = !1, Ut = 0, hn = !1, zu = !1;
|
|
7456
7456
|
const ao = [];
|
|
7457
7457
|
let Tn, ju, mn, Wu, Ss = !1;
|
|
7458
7458
|
const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: n = !1 }) => {
|
|
7459
|
-
hn && !n || (ue.isStorageAvailable ? (gt = [], ao.splice(0),
|
|
7459
|
+
hn && !n || (ue.isStorageAvailable ? (gt = [], ao.splice(0), Ze.splice(0), Ut = 0, mn = r, Bu = e, br = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, ju = t.maxDurationSeconds, Ug(), hn || (Wu = window.setInterval(Mg, 500)), hn = !0) : Dt = !0);
|
|
7460
7460
|
}, Og = [$e.Drag, $e.Input, $e.MediaInteraction, $e.MouseInteraction, $e.MouseMove, $e.Scroll, $e.Selection, $e.TouchMove], Ag = (e) => e.type === at.Custom || e.type === at.IncrementalSnapshot && Og.includes(e.data.source), lo = (e) => e.some(Ag), Mg = async () => {
|
|
7461
7461
|
if (!Pt()) return void window.clearInterval(Wu);
|
|
7462
|
-
if (Vu(), !lo(
|
|
7463
|
-
const e =
|
|
7462
|
+
if (Vu(), !lo(Ze)) return;
|
|
7463
|
+
const e = Ze[0].timestamp;
|
|
7464
7464
|
Date.now() - e > 35e3 && (mn == null || mn());
|
|
7465
7465
|
}, Vu = async () => {
|
|
7466
7466
|
if (gt.length || Ss) return;
|
|
@@ -7515,18 +7515,18 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
|
|
|
7515
7515
|
const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = Ut, n = ((i = (s = window.UserLeap) == null ? void 0 : s.config) == null ? void 0 : i.customMetadata) ?? ((a = window.__cfg) == null ? void 0 : a.customMetadata);
|
|
7516
7516
|
Ut++, e.push({ timestamp: t, type: at.Custom, data: { tag: "Sprig_Meta", payload: { ...br, index: r, visitorId: window.UserLeap.visitorId ?? "", timestamp: t, customMetadata: n } } });
|
|
7517
7517
|
}, Pg = (e, t) => {
|
|
7518
|
-
Pt() && !zu && (e ||
|
|
7519
|
-
const r =
|
|
7518
|
+
Pt() && !zu && (e || Ze.length) && (e && Ze.length && (async () => {
|
|
7519
|
+
const r = Ze.splice(0);
|
|
7520
7520
|
if (!lo(r)) return;
|
|
7521
7521
|
N.info("Capturing always-on event array to upload"), Yu(r);
|
|
7522
7522
|
const n = await $u();
|
|
7523
7523
|
n && await Hu(n, r);
|
|
7524
|
-
})(),
|
|
7524
|
+
})(), Ze.push(t));
|
|
7525
7525
|
};
|
|
7526
7526
|
window.addEventListener("beforeunload", async () => {
|
|
7527
7527
|
zu = !0, Pt() && (N.info("Always On handle page unload"), (() => {
|
|
7528
7528
|
let e;
|
|
7529
|
-
|
|
7529
|
+
Ze.length && (e = Ze[0].timestamp);
|
|
7530
7530
|
const t = { disabled: Dt, metadata: br, uploadUrls: gt, currentIndex: Ut, pendingEventTimestamp: e, expirationTimestamp: Tn };
|
|
7531
7531
|
N.info("Storing session state on unload", t), ue.setItem("sprig.alwayson.info", JSON.stringify(t));
|
|
7532
7532
|
})());
|
|
@@ -7552,7 +7552,7 @@ const qu = async (e, t) => {
|
|
|
7552
7552
|
s || (s = Ve(t)), s.report(n / 1e3);
|
|
7553
7553
|
}
|
|
7554
7554
|
};
|
|
7555
|
-
let
|
|
7555
|
+
let Ku = 5e3, Ei = 6e4, xi = 0, ct, Ri = !1, Li = [];
|
|
7556
7556
|
const _g = (e) => {
|
|
7557
7557
|
var t, r, n, s;
|
|
7558
7558
|
if ((t = e.event) != null && t.includes("Sprig_Scroll")) {
|
|
@@ -7610,7 +7610,7 @@ const Oi = async (e = !1) => {
|
|
|
7610
7610
|
}), o < 0 ? (N.debug("ValidStartNotFound"), { validStartFound: n, events: [] }) : { validStartFound: !0, events: a == null ? void 0 : a.slice(o) };
|
|
7611
7611
|
}
|
|
7612
7612
|
return { validStartFound: n, events: a };
|
|
7613
|
-
},
|
|
7613
|
+
}, Zu = (e) => Promise.all(e.map(async (t) => {
|
|
7614
7614
|
const r = await (async (n) => Lu.execute(async () => {
|
|
7615
7615
|
var a;
|
|
7616
7616
|
N.info("UploadChunkStart", { chunkIndex: n.chunkIndex, surveyId: n.surveyId });
|
|
@@ -7632,7 +7632,7 @@ const Oi = async (e = !1) => {
|
|
|
7632
7632
|
Ee(async () => {
|
|
7633
7633
|
const e = await Q.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
|
|
7634
7634
|
if (!(e != null && e.length)) return;
|
|
7635
|
-
const t = await
|
|
7635
|
+
const t = await Zu(e);
|
|
7636
7636
|
t != null && t.length && await Promise.all(t.map((r) => {
|
|
7637
7637
|
if (r) return Xu(r);
|
|
7638
7638
|
}));
|
|
@@ -7657,7 +7657,7 @@ const Oi = async (e = !1) => {
|
|
|
7657
7657
|
l.write(g);
|
|
7658
7658
|
}, "sdk_replay_compression_seconds"), c = !0;
|
|
7659
7659
|
}
|
|
7660
|
-
if (h - d <
|
|
7660
|
+
if (h - d < Ku) return N.debug("ReplayTooShort"), null;
|
|
7661
7661
|
const v = i.encode("]");
|
|
7662
7662
|
return l.write(v), l.close(), a = new Uint8Array(await new Response(o.readable).arrayBuffer()), a;
|
|
7663
7663
|
})(r - e, r);
|
|
@@ -7674,7 +7674,7 @@ const Oi = async (e = !1) => {
|
|
|
7674
7674
|
return await (await Q.openDB()).add("chunkUploads", { ...v, sessionId: v.sessionId ?? be }), v;
|
|
7675
7675
|
}));
|
|
7676
7676
|
await (async (d, h) => {
|
|
7677
|
-
await
|
|
7677
|
+
await Zu(h), await Promise.all(d.map((f) => Xu(f)));
|
|
7678
7678
|
})([a.uploadId], u);
|
|
7679
7679
|
}, Qu = async (e, t) => {
|
|
7680
7680
|
if (Ge()) return N.debug("ReplayDisabled-ScheduleOrCapture");
|
|
@@ -7750,7 +7750,7 @@ const Oi = async (e = !1) => {
|
|
|
7750
7750
|
if (!o) return N.debug("MissingDuration");
|
|
7751
7751
|
N.debug("ReplayInit"), await Ee(async () => {
|
|
7752
7752
|
var l;
|
|
7753
|
-
r != null && r.minDuration && (
|
|
7753
|
+
r != null && r.minDuration && (Ku = r.minDuration), r != null && r.batchDuration && (Ei = r.batchDuration), l = t, Lu.setLimit(l), jg(), Fg(o + 35, 1800, o + 35), Bg();
|
|
7754
7754
|
const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record.min.js", u = window.rrwebRecord;
|
|
7755
7755
|
if (!u) return N.error("RecordScriptFailed");
|
|
7756
7756
|
let d = !0, h = 0;
|
|
@@ -7795,13 +7795,13 @@ export {
|
|
|
7795
7795
|
Be as d,
|
|
7796
7796
|
z as e,
|
|
7797
7797
|
In as f,
|
|
7798
|
-
|
|
7798
|
+
Zg as g,
|
|
7799
7799
|
qg as h,
|
|
7800
7800
|
Xg as i,
|
|
7801
7801
|
eo as j,
|
|
7802
7802
|
nt as k,
|
|
7803
7803
|
vg as l,
|
|
7804
|
-
|
|
7804
|
+
Kg as m,
|
|
7805
7805
|
tl as n,
|
|
7806
7806
|
ey as o,
|
|
7807
7807
|
Qg as r,
|