@eloquentai/chat-sdk 0.21.17-dev → 0.21.18-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +485 -484
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { z as ye } from "zod";
|
|
|
15
15
|
import Rm from "react-dom/client";
|
|
16
16
|
try {
|
|
17
17
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
18
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
18
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e58291fb-731b-44b3-a9ef-6a4d959c64d0", e._sentryDebugIdIdentifier = "sentry-dbid-e58291fb-731b-44b3-a9ef-6a4d959c64d0");
|
|
19
19
|
} catch {
|
|
20
20
|
}
|
|
21
21
|
const ee = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Xt = "9.30.0", oe = globalThis;
|
|
@@ -1713,18 +1713,18 @@ function Rf(e, t, n, r, i, o) {
|
|
|
1713
1713
|
...t,
|
|
1714
1714
|
event_id: t.event_id || n.event_id || Xe(),
|
|
1715
1715
|
timestamp: t.timestamp || Ir()
|
|
1716
|
-
}, c = n.integrations || e.integrations.map((
|
|
1716
|
+
}, c = n.integrations || e.integrations.map((S) => S.name);
|
|
1717
1717
|
ay(l, e), uy(l, c), i && i.emit("applyFrameMetadata", t), t.type === void 0 && ly(l, e.stackParser);
|
|
1718
1718
|
const u = dy(r, n.captureContext);
|
|
1719
1719
|
n.mechanism && In(l, n.mechanism);
|
|
1720
1720
|
const f = i ? i.getEventProcessors() : [], h = rg().getScopeData();
|
|
1721
1721
|
if (o) {
|
|
1722
|
-
const
|
|
1723
|
-
Dl(h,
|
|
1722
|
+
const S = o.getScopeData();
|
|
1723
|
+
Dl(h, S);
|
|
1724
1724
|
}
|
|
1725
1725
|
if (u) {
|
|
1726
|
-
const
|
|
1727
|
-
Dl(h,
|
|
1726
|
+
const S = u.getScopeData();
|
|
1727
|
+
Dl(h, S);
|
|
1728
1728
|
}
|
|
1729
1729
|
const d = [...n.attachments || [], ...h.attachments];
|
|
1730
1730
|
d.length && (n.attachments = d), ty(l, h);
|
|
@@ -1733,7 +1733,7 @@ function Rf(e, t, n, r, i, o) {
|
|
|
1733
1733
|
// Run scope event processors _after_ all other processors
|
|
1734
1734
|
...h.eventProcessors
|
|
1735
1735
|
];
|
|
1736
|
-
return ds(p, l, n).then((
|
|
1736
|
+
return ds(p, l, n).then((S) => (S && cy(S), typeof s == "number" && s > 0 ? fy(S, s, a) : S));
|
|
1737
1737
|
}
|
|
1738
1738
|
function ay(e, t) {
|
|
1739
1739
|
const { environment: n, release: r, dist: i, maxValueLength: o = 250 } = t;
|
|
@@ -2374,15 +2374,15 @@ class Ey {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
const p = r.getSession() || i.getSession();
|
|
2376
2376
|
if (l && p && this._updateSessionFromEvent(p, d), a) {
|
|
2377
|
-
const
|
|
2377
|
+
const S = d.sdkProcessingMetadata?.spanCountBeforeProcessing || 0, g = d.spans ? d.spans.length : 0, v = S - g;
|
|
2378
2378
|
v > 0 && this.recordDroppedEvent("before_send", "span", v);
|
|
2379
2379
|
}
|
|
2380
2380
|
const m = d.transaction_info;
|
|
2381
2381
|
if (a && m && d.transaction !== t.transaction) {
|
|
2382
|
-
const
|
|
2382
|
+
const S = "custom";
|
|
2383
2383
|
d.transaction_info = {
|
|
2384
2384
|
...m,
|
|
2385
|
-
source:
|
|
2385
|
+
source: S
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
2388
|
return this.sendEvent(d, n), d;
|
|
@@ -5007,13 +5007,13 @@ function c_(e, t) {
|
|
|
5007
5007
|
inlineStylesheet: d,
|
|
5008
5008
|
maskInputOptions: p = {},
|
|
5009
5009
|
maskTextFn: m,
|
|
5010
|
-
maskInputFn:
|
|
5010
|
+
maskInputFn: S,
|
|
5011
5011
|
dataURLOptions: g = {},
|
|
5012
5012
|
inlineImages: v,
|
|
5013
5013
|
recordCanvas: k,
|
|
5014
5014
|
keepIframeSrcFn: O,
|
|
5015
5015
|
newlyAddedElement: I = !1
|
|
5016
|
-
} = t,
|
|
5016
|
+
} = t, _ = u_(n, r);
|
|
5017
5017
|
switch (e.nodeType) {
|
|
5018
5018
|
case e.DOCUMENT_NODE:
|
|
5019
5019
|
return e.compatMode !== "CSS1Compat" ? {
|
|
@@ -5031,7 +5031,7 @@ function c_(e, t) {
|
|
|
5031
5031
|
name: e.name,
|
|
5032
5032
|
publicId: e.publicId,
|
|
5033
5033
|
systemId: e.systemId,
|
|
5034
|
-
rootId:
|
|
5034
|
+
rootId: _
|
|
5035
5035
|
};
|
|
5036
5036
|
case e.ELEMENT_NODE:
|
|
5037
5037
|
return d_(e, {
|
|
@@ -5042,13 +5042,13 @@ function c_(e, t) {
|
|
|
5042
5042
|
inlineStylesheet: d,
|
|
5043
5043
|
maskAttributeFn: l,
|
|
5044
5044
|
maskInputOptions: p,
|
|
5045
|
-
maskInputFn:
|
|
5045
|
+
maskInputFn: S,
|
|
5046
5046
|
dataURLOptions: g,
|
|
5047
5047
|
inlineImages: v,
|
|
5048
5048
|
recordCanvas: k,
|
|
5049
5049
|
keepIframeSrcFn: O,
|
|
5050
5050
|
newlyAddedElement: I,
|
|
5051
|
-
rootId:
|
|
5051
|
+
rootId: _,
|
|
5052
5052
|
maskTextClass: c,
|
|
5053
5053
|
unmaskTextClass: u,
|
|
5054
5054
|
maskTextSelector: f,
|
|
@@ -5064,20 +5064,20 @@ function c_(e, t) {
|
|
|
5064
5064
|
unmaskTextSelector: h,
|
|
5065
5065
|
maskTextFn: m,
|
|
5066
5066
|
maskInputOptions: p,
|
|
5067
|
-
maskInputFn:
|
|
5068
|
-
rootId:
|
|
5067
|
+
maskInputFn: S,
|
|
5068
|
+
rootId: _
|
|
5069
5069
|
});
|
|
5070
5070
|
case e.CDATA_SECTION_NODE:
|
|
5071
5071
|
return {
|
|
5072
5072
|
type: Ce.CDATA,
|
|
5073
5073
|
textContent: "",
|
|
5074
|
-
rootId:
|
|
5074
|
+
rootId: _
|
|
5075
5075
|
};
|
|
5076
5076
|
case e.COMMENT_NODE:
|
|
5077
5077
|
return {
|
|
5078
5078
|
type: Ce.Comment,
|
|
5079
5079
|
textContent: e.textContent || "",
|
|
5080
|
-
rootId:
|
|
5080
|
+
rootId: _
|
|
5081
5081
|
};
|
|
5082
5082
|
default:
|
|
5083
5083
|
return !1;
|
|
@@ -5116,7 +5116,7 @@ function f_(e, t) {
|
|
|
5116
5116
|
h = Ai(h, to(t.doc));
|
|
5117
5117
|
}
|
|
5118
5118
|
p && (h = "SCRIPT_PLACEHOLDER");
|
|
5119
|
-
const
|
|
5119
|
+
const S = Mn(
|
|
5120
5120
|
e,
|
|
5121
5121
|
r,
|
|
5122
5122
|
o,
|
|
@@ -5124,7 +5124,7 @@ function f_(e, t) {
|
|
|
5124
5124
|
s,
|
|
5125
5125
|
n
|
|
5126
5126
|
);
|
|
5127
|
-
if (!d && !p && !m && h &&
|
|
5127
|
+
if (!d && !p && !m && h && S && (h = a ? a(h, e.parentElement) : h.replace(/[\S]/g, "*")), m && h && (l.textarea || S) && (h = c ? c(h, e.parentNode) : h.replace(/[\S]/g, "*")), f === "OPTION" && h) {
|
|
5128
5128
|
const g = eo({
|
|
5129
5129
|
type: null,
|
|
5130
5130
|
tagName: f,
|
|
@@ -5167,7 +5167,7 @@ function d_(e, t) {
|
|
|
5167
5167
|
keepIframeSrcFn: d,
|
|
5168
5168
|
newlyAddedElement: p = !1,
|
|
5169
5169
|
rootId: m,
|
|
5170
|
-
maskTextClass:
|
|
5170
|
+
maskTextClass: S,
|
|
5171
5171
|
unmaskTextClass: g,
|
|
5172
5172
|
maskTextSelector: v,
|
|
5173
5173
|
unmaskTextSelector: k
|
|
@@ -5177,11 +5177,11 @@ function d_(e, t) {
|
|
|
5177
5177
|
i,
|
|
5178
5178
|
o
|
|
5179
5179
|
), I = XS(e);
|
|
5180
|
-
let
|
|
5180
|
+
let _ = {};
|
|
5181
5181
|
const D = e.attributes.length;
|
|
5182
5182
|
for (let E = 0; E < D; E++) {
|
|
5183
5183
|
const b = e.attributes[E];
|
|
5184
|
-
b.name && !_d(I, b.name, b.value) && (
|
|
5184
|
+
b.name && !_d(I, b.name, b.value) && (_[b.name] = Sd(
|
|
5185
5185
|
n,
|
|
5186
5186
|
I,
|
|
5187
5187
|
On(b.name),
|
|
@@ -5191,23 +5191,23 @@ function d_(e, t) {
|
|
|
5191
5191
|
));
|
|
5192
5192
|
}
|
|
5193
5193
|
if (I === "link" && s) {
|
|
5194
|
-
const E = Array.from(n.styleSheets).find((
|
|
5194
|
+
const E = Array.from(n.styleSheets).find((R) => R.href === e.href);
|
|
5195
5195
|
let b = null;
|
|
5196
|
-
E && (b = Ti(E)), b && (
|
|
5196
|
+
E && (b = Ti(E)), b && (_.rel = null, _.href = null, _.crossorigin = null, _._cssText = Ai(b, E.href));
|
|
5197
5197
|
}
|
|
5198
5198
|
if (I === "style" && e.sheet && // TODO: Currently we only try to get dynamic stylesheet when it is an empty style element
|
|
5199
5199
|
!(e.innerText || e.textContent || "").trim().length) {
|
|
5200
5200
|
const E = Ti(
|
|
5201
5201
|
e.sheet
|
|
5202
5202
|
);
|
|
5203
|
-
E && (
|
|
5203
|
+
E && (_._cssText = Ai(E, to(n)));
|
|
5204
5204
|
}
|
|
5205
5205
|
if (I === "input" || I === "textarea" || I === "select" || I === "option") {
|
|
5206
|
-
const E = e, b = wa(E),
|
|
5207
|
-
if (b !== "submit" && b !== "button" &&
|
|
5206
|
+
const E = e, b = wa(E), R = Ri(E, xs(I), b), N = E.checked;
|
|
5207
|
+
if (b !== "submit" && b !== "button" && R) {
|
|
5208
5208
|
const T = Mn(
|
|
5209
5209
|
E,
|
|
5210
|
-
|
|
5210
|
+
S,
|
|
5211
5211
|
v,
|
|
5212
5212
|
g,
|
|
5213
5213
|
k,
|
|
@@ -5217,18 +5217,18 @@ function d_(e, t) {
|
|
|
5217
5217
|
maskInputOptions: a
|
|
5218
5218
|
})
|
|
5219
5219
|
);
|
|
5220
|
-
|
|
5220
|
+
_.value = pr({
|
|
5221
5221
|
isMasked: T,
|
|
5222
5222
|
element: E,
|
|
5223
|
-
value:
|
|
5223
|
+
value: R,
|
|
5224
5224
|
maskInputFn: c
|
|
5225
5225
|
});
|
|
5226
5226
|
}
|
|
5227
|
-
|
|
5227
|
+
N && (_.checked = N);
|
|
5228
5228
|
}
|
|
5229
|
-
if (I === "option" && (e.selected && !a.select ?
|
|
5229
|
+
if (I === "option" && (e.selected && !a.select ? _.selected = !0 : delete _.selected), I === "canvas" && h) {
|
|
5230
5230
|
if (e.__context === "2d")
|
|
5231
|
-
GS(e) || (
|
|
5231
|
+
GS(e) || (_.rr_dataURL = e.toDataURL(
|
|
5232
5232
|
u.type,
|
|
5233
5233
|
u.quality
|
|
5234
5234
|
));
|
|
@@ -5238,44 +5238,44 @@ function d_(e, t) {
|
|
|
5238
5238
|
u.quality
|
|
5239
5239
|
), b = n.createElement("canvas");
|
|
5240
5240
|
b.width = e.width, b.height = e.height;
|
|
5241
|
-
const
|
|
5241
|
+
const R = b.toDataURL(
|
|
5242
5242
|
u.type,
|
|
5243
5243
|
u.quality
|
|
5244
5244
|
);
|
|
5245
|
-
E !==
|
|
5245
|
+
E !== R && (_.rr_dataURL = E);
|
|
5246
5246
|
}
|
|
5247
5247
|
}
|
|
5248
5248
|
if (I === "img" && f) {
|
|
5249
5249
|
dn || (dn = n.createElement("canvas"), lc = dn.getContext("2d"));
|
|
5250
|
-
const E = e, b = E.currentSrc || E.getAttribute("src") || "<unknown-src>",
|
|
5251
|
-
E.removeEventListener("load",
|
|
5250
|
+
const E = e, b = E.currentSrc || E.getAttribute("src") || "<unknown-src>", R = E.crossOrigin, N = () => {
|
|
5251
|
+
E.removeEventListener("load", N);
|
|
5252
5252
|
try {
|
|
5253
|
-
dn.width = E.naturalWidth, dn.height = E.naturalHeight, lc.drawImage(E, 0, 0),
|
|
5253
|
+
dn.width = E.naturalWidth, dn.height = E.naturalHeight, lc.drawImage(E, 0, 0), _.rr_dataURL = dn.toDataURL(
|
|
5254
5254
|
u.type,
|
|
5255
5255
|
u.quality
|
|
5256
5256
|
);
|
|
5257
5257
|
} catch (T) {
|
|
5258
5258
|
if (E.crossOrigin !== "anonymous") {
|
|
5259
|
-
E.crossOrigin = "anonymous", E.complete && E.naturalWidth !== 0 ?
|
|
5259
|
+
E.crossOrigin = "anonymous", E.complete && E.naturalWidth !== 0 ? N() : E.addEventListener("load", N);
|
|
5260
5260
|
return;
|
|
5261
5261
|
} else
|
|
5262
5262
|
console.warn(
|
|
5263
5263
|
`Cannot inline img src=${b}! Error: ${T}`
|
|
5264
5264
|
);
|
|
5265
5265
|
}
|
|
5266
|
-
E.crossOrigin === "anonymous" && (
|
|
5266
|
+
E.crossOrigin === "anonymous" && (R ? _.crossOrigin = R : E.removeAttribute("crossorigin"));
|
|
5267
5267
|
};
|
|
5268
|
-
E.complete && E.naturalWidth !== 0 ?
|
|
5268
|
+
E.complete && E.naturalWidth !== 0 ? N() : E.addEventListener("load", N);
|
|
5269
5269
|
}
|
|
5270
|
-
if ((I === "audio" || I === "video") && (
|
|
5270
|
+
if ((I === "audio" || I === "video") && (_.rr_mediaState = e.paused ? "paused" : "played", _.rr_mediaCurrentTime = e.currentTime), p || (e.scrollLeft && (_.rr_scrollLeft = e.scrollLeft), e.scrollTop && (_.rr_scrollTop = e.scrollTop)), O) {
|
|
5271
5271
|
const { width: E, height: b } = e.getBoundingClientRect();
|
|
5272
|
-
|
|
5273
|
-
class:
|
|
5272
|
+
_ = {
|
|
5273
|
+
class: _.class,
|
|
5274
5274
|
rr_width: `${E}px`,
|
|
5275
5275
|
rr_height: `${b}px`
|
|
5276
5276
|
};
|
|
5277
5277
|
}
|
|
5278
|
-
I === "iframe" && !d(
|
|
5278
|
+
I === "iframe" && !d(_.src) && (!O && !wd(e) && (_.rr_src = _.src), delete _.src);
|
|
5279
5279
|
let C;
|
|
5280
5280
|
try {
|
|
5281
5281
|
customElements.get(I) && (C = !0);
|
|
@@ -5284,7 +5284,7 @@ function d_(e, t) {
|
|
|
5284
5284
|
return {
|
|
5285
5285
|
type: Ce.Element,
|
|
5286
5286
|
tagName: I,
|
|
5287
|
-
attributes:
|
|
5287
|
+
attributes: _,
|
|
5288
5288
|
childNodes: [],
|
|
5289
5289
|
isSVG: o_(e) || void 0,
|
|
5290
5290
|
needBlock: O,
|
|
@@ -5342,19 +5342,19 @@ function _n(e, t) {
|
|
|
5342
5342
|
inlineStylesheet: d = !0,
|
|
5343
5343
|
maskInputOptions: p = {},
|
|
5344
5344
|
maskAttributeFn: m,
|
|
5345
|
-
maskTextFn:
|
|
5345
|
+
maskTextFn: S,
|
|
5346
5346
|
maskInputFn: g,
|
|
5347
5347
|
slimDOMOptions: v,
|
|
5348
5348
|
dataURLOptions: k = {},
|
|
5349
5349
|
inlineImages: O = !1,
|
|
5350
5350
|
recordCanvas: I = !1,
|
|
5351
|
-
onSerialize:
|
|
5351
|
+
onSerialize: _,
|
|
5352
5352
|
onIframeLoad: D,
|
|
5353
5353
|
iframeLoadTimeout: C = 5e3,
|
|
5354
5354
|
onStylesheetLoad: E,
|
|
5355
5355
|
stylesheetLoadTimeout: b = 5e3,
|
|
5356
|
-
keepIframeSrcFn:
|
|
5357
|
-
newlyAddedElement:
|
|
5356
|
+
keepIframeSrcFn: R = () => !1,
|
|
5357
|
+
newlyAddedElement: N = !1
|
|
5358
5358
|
} = t;
|
|
5359
5359
|
let { preserveWhiteSpace: T = !0 } = t;
|
|
5360
5360
|
const M = c_(e, {
|
|
@@ -5371,13 +5371,13 @@ function _n(e, t) {
|
|
|
5371
5371
|
inlineStylesheet: d,
|
|
5372
5372
|
maskInputOptions: p,
|
|
5373
5373
|
maskAttributeFn: m,
|
|
5374
|
-
maskTextFn:
|
|
5374
|
+
maskTextFn: S,
|
|
5375
5375
|
maskInputFn: g,
|
|
5376
5376
|
dataURLOptions: k,
|
|
5377
5377
|
inlineImages: O,
|
|
5378
5378
|
recordCanvas: I,
|
|
5379
|
-
keepIframeSrcFn:
|
|
5380
|
-
newlyAddedElement:
|
|
5379
|
+
keepIframeSrcFn: R,
|
|
5380
|
+
newlyAddedElement: N
|
|
5381
5381
|
});
|
|
5382
5382
|
if (!M)
|
|
5383
5383
|
return console.warn(e, "not serialized"), null;
|
|
@@ -5386,7 +5386,7 @@ function _n(e, t) {
|
|
|
5386
5386
|
const z = Object.assign(M, { id: F });
|
|
5387
5387
|
if (r.add(e, z), F === mr)
|
|
5388
5388
|
return null;
|
|
5389
|
-
|
|
5389
|
+
_ && _(e);
|
|
5390
5390
|
let se = !h;
|
|
5391
5391
|
if (z.type === Ce.Element) {
|
|
5392
5392
|
se = se && !z.needBlock, delete z.needBlock;
|
|
@@ -5410,19 +5410,19 @@ function _n(e, t) {
|
|
|
5410
5410
|
inlineStylesheet: d,
|
|
5411
5411
|
maskInputOptions: p,
|
|
5412
5412
|
maskAttributeFn: m,
|
|
5413
|
-
maskTextFn:
|
|
5413
|
+
maskTextFn: S,
|
|
5414
5414
|
maskInputFn: g,
|
|
5415
5415
|
slimDOMOptions: v,
|
|
5416
5416
|
dataURLOptions: k,
|
|
5417
5417
|
inlineImages: O,
|
|
5418
5418
|
recordCanvas: I,
|
|
5419
5419
|
preserveWhiteSpace: T,
|
|
5420
|
-
onSerialize:
|
|
5420
|
+
onSerialize: _,
|
|
5421
5421
|
onIframeLoad: D,
|
|
5422
5422
|
iframeLoadTimeout: C,
|
|
5423
5423
|
onStylesheetLoad: E,
|
|
5424
5424
|
stylesheetLoadTimeout: b,
|
|
5425
|
-
keepIframeSrcFn:
|
|
5425
|
+
keepIframeSrcFn: R
|
|
5426
5426
|
};
|
|
5427
5427
|
for (const pe of Array.from(e.childNodes)) {
|
|
5428
5428
|
const y = _n(pe, J);
|
|
@@ -5459,19 +5459,19 @@ function _n(e, t) {
|
|
|
5459
5459
|
inlineStylesheet: d,
|
|
5460
5460
|
maskInputOptions: p,
|
|
5461
5461
|
maskAttributeFn: m,
|
|
5462
|
-
maskTextFn:
|
|
5462
|
+
maskTextFn: S,
|
|
5463
5463
|
maskInputFn: g,
|
|
5464
5464
|
slimDOMOptions: v,
|
|
5465
5465
|
dataURLOptions: k,
|
|
5466
5466
|
inlineImages: O,
|
|
5467
5467
|
recordCanvas: I,
|
|
5468
5468
|
preserveWhiteSpace: T,
|
|
5469
|
-
onSerialize:
|
|
5469
|
+
onSerialize: _,
|
|
5470
5470
|
onIframeLoad: D,
|
|
5471
5471
|
iframeLoadTimeout: C,
|
|
5472
5472
|
onStylesheetLoad: E,
|
|
5473
5473
|
stylesheetLoadTimeout: b,
|
|
5474
|
-
keepIframeSrcFn:
|
|
5474
|
+
keepIframeSrcFn: R
|
|
5475
5475
|
});
|
|
5476
5476
|
pe && D(
|
|
5477
5477
|
e,
|
|
@@ -5499,19 +5499,19 @@ function _n(e, t) {
|
|
|
5499
5499
|
inlineStylesheet: d,
|
|
5500
5500
|
maskInputOptions: p,
|
|
5501
5501
|
maskAttributeFn: m,
|
|
5502
|
-
maskTextFn:
|
|
5502
|
+
maskTextFn: S,
|
|
5503
5503
|
maskInputFn: g,
|
|
5504
5504
|
slimDOMOptions: v,
|
|
5505
5505
|
dataURLOptions: k,
|
|
5506
5506
|
inlineImages: O,
|
|
5507
5507
|
recordCanvas: I,
|
|
5508
5508
|
preserveWhiteSpace: T,
|
|
5509
|
-
onSerialize:
|
|
5509
|
+
onSerialize: _,
|
|
5510
5510
|
onIframeLoad: D,
|
|
5511
5511
|
iframeLoadTimeout: C,
|
|
5512
5512
|
onStylesheetLoad: E,
|
|
5513
5513
|
stylesheetLoadTimeout: b,
|
|
5514
|
-
keepIframeSrcFn:
|
|
5514
|
+
keepIframeSrcFn: R
|
|
5515
5515
|
});
|
|
5516
5516
|
J && E(
|
|
5517
5517
|
e,
|
|
@@ -5538,13 +5538,13 @@ function p_(e, t) {
|
|
|
5538
5538
|
recordCanvas: d = !1,
|
|
5539
5539
|
maskAllInputs: p = !1,
|
|
5540
5540
|
maskAttributeFn: m,
|
|
5541
|
-
maskTextFn:
|
|
5541
|
+
maskTextFn: S,
|
|
5542
5542
|
maskInputFn: g,
|
|
5543
5543
|
slimDOM: v = !1,
|
|
5544
5544
|
dataURLOptions: k,
|
|
5545
5545
|
preserveWhiteSpace: O,
|
|
5546
5546
|
onSerialize: I,
|
|
5547
|
-
onIframeLoad:
|
|
5547
|
+
onIframeLoad: _,
|
|
5548
5548
|
iframeLoadTimeout: D,
|
|
5549
5549
|
onStylesheetLoad: C,
|
|
5550
5550
|
stylesheetLoadTimeout: E,
|
|
@@ -5581,7 +5581,7 @@ function p_(e, t) {
|
|
|
5581
5581
|
select: !0
|
|
5582
5582
|
} : p === !1 ? {} : p,
|
|
5583
5583
|
maskAttributeFn: m,
|
|
5584
|
-
maskTextFn:
|
|
5584
|
+
maskTextFn: S,
|
|
5585
5585
|
maskInputFn: g,
|
|
5586
5586
|
slimDOMOptions: v === !0 || v === "all" ? (
|
|
5587
5587
|
// if true: set of sensible options that should not throw away any information
|
|
@@ -5604,7 +5604,7 @@ function p_(e, t) {
|
|
|
5604
5604
|
recordCanvas: d,
|
|
5605
5605
|
preserveWhiteSpace: O,
|
|
5606
5606
|
onSerialize: I,
|
|
5607
|
-
onIframeLoad:
|
|
5607
|
+
onIframeLoad: _,
|
|
5608
5608
|
iframeLoadTimeout: D,
|
|
5609
5609
|
onStylesheetLoad: C,
|
|
5610
5610
|
stylesheetLoadTimeout: E,
|
|
@@ -6381,10 +6381,10 @@ function R_({
|
|
|
6381
6381
|
p === vt.Touch ? Pe[f] === Pe.MouseDown ? m = "TouchStart" : Pe[f] === Pe.MouseUp && (m = "TouchEnd") : vt.Pen;
|
|
6382
6382
|
} else Es(h) && (p = vt.Touch);
|
|
6383
6383
|
p !== null ? (c = p, (m.startsWith("Touch") && p === vt.Touch || m.startsWith("Mouse") && p === vt.Mouse) && (p = null)) : Pe[f] === Pe.Click && (p = c, c = null);
|
|
6384
|
-
const
|
|
6385
|
-
if (!
|
|
6384
|
+
const S = Es(h) ? h.changedTouches[0] : h;
|
|
6385
|
+
if (!S)
|
|
6386
6386
|
return;
|
|
6387
|
-
const g = n.getId(d), { clientX: v, clientY: k } =
|
|
6387
|
+
const g = n.getId(d), { clientX: v, clientY: k } = S;
|
|
6388
6388
|
ne(e)({
|
|
6389
6389
|
type: Pe[m],
|
|
6390
6390
|
id: g,
|
|
@@ -6492,7 +6492,7 @@ function O_({
|
|
|
6492
6492
|
maskTextSelector: p,
|
|
6493
6493
|
unmaskTextSelector: m
|
|
6494
6494
|
}) {
|
|
6495
|
-
function
|
|
6495
|
+
function S(D) {
|
|
6496
6496
|
let C = Or(D);
|
|
6497
6497
|
const E = D.isTrusted, b = C && xs(C.tagName);
|
|
6498
6498
|
if (b === "OPTION" && (C = C.parentElement), !C || !b || N_.indexOf(b) < 0 || Ke(
|
|
@@ -6503,15 +6503,15 @@ function O_({
|
|
|
6503
6503
|
!0
|
|
6504
6504
|
))
|
|
6505
6505
|
return;
|
|
6506
|
-
const
|
|
6507
|
-
if (
|
|
6506
|
+
const R = C;
|
|
6507
|
+
if (R.classList.contains(s) || a && R.matches(a))
|
|
6508
6508
|
return;
|
|
6509
|
-
const
|
|
6510
|
-
let T = Ri(
|
|
6509
|
+
const N = wa(C);
|
|
6510
|
+
let T = Ri(R, b, N), M = !1;
|
|
6511
6511
|
const F = eo({
|
|
6512
6512
|
maskInputOptions: l,
|
|
6513
6513
|
tagName: b,
|
|
6514
|
-
type:
|
|
6514
|
+
type: N
|
|
6515
6515
|
}), z = Mn(
|
|
6516
6516
|
C,
|
|
6517
6517
|
h,
|
|
@@ -6520,7 +6520,7 @@ function O_({
|
|
|
6520
6520
|
m,
|
|
6521
6521
|
F
|
|
6522
6522
|
);
|
|
6523
|
-
(
|
|
6523
|
+
(N === "radio" || N === "checkbox") && (M = C.checked), T = pr({
|
|
6524
6524
|
isMasked: z,
|
|
6525
6525
|
element: C,
|
|
6526
6526
|
value: T,
|
|
@@ -6530,13 +6530,13 @@ function O_({
|
|
|
6530
6530
|
f ? { text: T, isChecked: M, userTriggered: E } : { text: T, isChecked: M }
|
|
6531
6531
|
);
|
|
6532
6532
|
const se = C.name;
|
|
6533
|
-
|
|
6533
|
+
N === "radio" && se && M && t.querySelectorAll(`input[type="radio"][name="${se}"]`).forEach((J) => {
|
|
6534
6534
|
if (J !== C) {
|
|
6535
6535
|
const pe = pr({
|
|
6536
6536
|
// share mask behavior of `target`
|
|
6537
6537
|
isMasked: z,
|
|
6538
6538
|
element: J,
|
|
6539
|
-
value: Ri(J, b,
|
|
6539
|
+
value: Ri(J, b, N),
|
|
6540
6540
|
maskInputFn: c
|
|
6541
6541
|
});
|
|
6542
6542
|
g(
|
|
@@ -6558,7 +6558,7 @@ function O_({
|
|
|
6558
6558
|
}
|
|
6559
6559
|
}
|
|
6560
6560
|
const k = (u.input === "last" ? ["change"] : ["input", "change"]).map(
|
|
6561
|
-
(D) => ze(D, ne(
|
|
6561
|
+
(D) => ze(D, ne(S), t)
|
|
6562
6562
|
), O = t.defaultView;
|
|
6563
6563
|
if (!O)
|
|
6564
6564
|
return () => {
|
|
@@ -6567,7 +6567,7 @@ function O_({
|
|
|
6567
6567
|
const I = O.Object.getOwnPropertyDescriptor(
|
|
6568
6568
|
O.HTMLInputElement.prototype,
|
|
6569
6569
|
"value"
|
|
6570
|
-
),
|
|
6570
|
+
), _ = [
|
|
6571
6571
|
[O.HTMLInputElement.prototype, "value"],
|
|
6572
6572
|
[O.HTMLInputElement.prototype, "checked"],
|
|
6573
6573
|
[O.HTMLSelectElement.prototype, "value"],
|
|
@@ -6577,13 +6577,13 @@ function O_({
|
|
|
6577
6577
|
[O.HTMLOptionElement.prototype, "selected"]
|
|
6578
6578
|
];
|
|
6579
6579
|
return I && I.set && k.push(
|
|
6580
|
-
...
|
|
6580
|
+
..._.map(
|
|
6581
6581
|
(D) => xd(
|
|
6582
6582
|
D[0],
|
|
6583
6583
|
D[1],
|
|
6584
6584
|
{
|
|
6585
6585
|
set() {
|
|
6586
|
-
ne(
|
|
6586
|
+
ne(S)({
|
|
6587
6587
|
target: this,
|
|
6588
6588
|
isTrusted: !1
|
|
6589
6589
|
// userTriggered to false as this could well be programmatic
|
|
@@ -6629,14 +6629,14 @@ function M_({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6629
6629
|
r.CSSStyleSheet.prototype.insertRule = new Proxy(i, {
|
|
6630
6630
|
apply: ne(
|
|
6631
6631
|
(u, f, h) => {
|
|
6632
|
-
const [d, p] = h, { id: m, styleId:
|
|
6632
|
+
const [d, p] = h, { id: m, styleId: S } = Mt(
|
|
6633
6633
|
f,
|
|
6634
6634
|
t,
|
|
6635
6635
|
n.styleMirror
|
|
6636
6636
|
);
|
|
6637
|
-
return (m && m !== -1 ||
|
|
6637
|
+
return (m && m !== -1 || S && S !== -1) && e({
|
|
6638
6638
|
id: m,
|
|
6639
|
-
styleId:
|
|
6639
|
+
styleId: S,
|
|
6640
6640
|
adds: [{ rule: d, index: p }]
|
|
6641
6641
|
}), u.apply(f, h);
|
|
6642
6642
|
}
|
|
@@ -6707,7 +6707,7 @@ function M_({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6707
6707
|
{
|
|
6708
6708
|
apply: ne(
|
|
6709
6709
|
(h, d, p) => {
|
|
6710
|
-
const [m,
|
|
6710
|
+
const [m, S] = p, { id: g, styleId: v } = Mt(
|
|
6711
6711
|
d.parentStyleSheet,
|
|
6712
6712
|
t,
|
|
6713
6713
|
n.styleMirror
|
|
@@ -6720,7 +6720,7 @@ function M_({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6720
6720
|
rule: m,
|
|
6721
6721
|
index: [
|
|
6722
6722
|
...Oi(d),
|
|
6723
|
-
|
|
6723
|
+
S || 0
|
|
6724
6724
|
// defaults to 0
|
|
6725
6725
|
]
|
|
6726
6726
|
}
|
|
@@ -6734,13 +6734,13 @@ function M_({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6734
6734
|
{
|
|
6735
6735
|
apply: ne(
|
|
6736
6736
|
(h, d, p) => {
|
|
6737
|
-
const [m] = p, { id:
|
|
6737
|
+
const [m] = p, { id: S, styleId: g } = Mt(
|
|
6738
6738
|
d.parentStyleSheet,
|
|
6739
6739
|
t,
|
|
6740
6740
|
n.styleMirror
|
|
6741
6741
|
);
|
|
6742
|
-
return (
|
|
6743
|
-
id:
|
|
6742
|
+
return (S && S !== -1 || g && g !== -1) && e({
|
|
6743
|
+
id: S,
|
|
6744
6744
|
styleId: g,
|
|
6745
6745
|
removes: [
|
|
6746
6746
|
{ index: [...Oi(d), m] }
|
|
@@ -6948,7 +6948,7 @@ function F_(e) {
|
|
|
6948
6948
|
a = c.isCollapsed || !1;
|
|
6949
6949
|
const u = [], f = c.rangeCount || 0;
|
|
6950
6950
|
for (let h = 0; h < f; h++) {
|
|
6951
|
-
const d = c.getRangeAt(h), { startContainer: p, startOffset: m, endContainer:
|
|
6951
|
+
const d = c.getRangeAt(h), { startContainer: p, startOffset: m, endContainer: S, endOffset: g } = d;
|
|
6952
6952
|
Ke(
|
|
6953
6953
|
p,
|
|
6954
6954
|
r,
|
|
@@ -6956,7 +6956,7 @@ function F_(e) {
|
|
|
6956
6956
|
o,
|
|
6957
6957
|
!0
|
|
6958
6958
|
) || Ke(
|
|
6959
|
-
|
|
6959
|
+
S,
|
|
6960
6960
|
r,
|
|
6961
6961
|
i,
|
|
6962
6962
|
o,
|
|
@@ -6964,7 +6964,7 @@ function F_(e) {
|
|
|
6964
6964
|
) || u.push({
|
|
6965
6965
|
start: n.getId(p),
|
|
6966
6966
|
startOffset: m,
|
|
6967
|
-
end: n.getId(
|
|
6967
|
+
end: n.getId(S),
|
|
6968
6968
|
endOffset: g
|
|
6969
6969
|
});
|
|
6970
6970
|
}
|
|
@@ -7014,13 +7014,13 @@ function B_(e, t = {}) {
|
|
|
7014
7014
|
e.recordDOM && (u = M_(e, { win: n }), f = Pd(e, e.doc), h = D_(e, {
|
|
7015
7015
|
win: n
|
|
7016
7016
|
}), e.collectFonts && (d = P_(e)));
|
|
7017
|
-
const p = F_(e), m = z_(e),
|
|
7017
|
+
const p = F_(e), m = z_(e), S = [];
|
|
7018
7018
|
for (const g of e.plugins)
|
|
7019
|
-
|
|
7019
|
+
S.push(
|
|
7020
7020
|
g.observer(g.callback, n, g.options)
|
|
7021
7021
|
);
|
|
7022
7022
|
return ne(() => {
|
|
7023
|
-
vn.forEach((g) => g.reset()), r?.disconnect(), i(), o(), s(), a(), l(), c(), u(), f(), h(), d(), p(), m(),
|
|
7023
|
+
vn.forEach((g) => g.reset()), r?.disconnect(), i(), o(), s(), a(), l(), c(), u(), f(), h(), d(), p(), m(), S.forEach((g) => g());
|
|
7024
7024
|
});
|
|
7025
7025
|
}
|
|
7026
7026
|
function Vr(e) {
|
|
@@ -7447,19 +7447,19 @@ function It(e = {}) {
|
|
|
7447
7447
|
unmaskTextSelector: d = null,
|
|
7448
7448
|
inlineStylesheet: p = !0,
|
|
7449
7449
|
maskAllInputs: m,
|
|
7450
|
-
maskInputOptions:
|
|
7450
|
+
maskInputOptions: S,
|
|
7451
7451
|
slimDOMOptions: g,
|
|
7452
7452
|
maskAttributeFn: v,
|
|
7453
7453
|
maskInputFn: k,
|
|
7454
7454
|
maskTextFn: O,
|
|
7455
7455
|
maxCanvasSize: I = null,
|
|
7456
|
-
packFn:
|
|
7456
|
+
packFn: _,
|
|
7457
7457
|
sampling: D = {},
|
|
7458
7458
|
dataURLOptions: C = {},
|
|
7459
7459
|
mousemoveWait: E,
|
|
7460
7460
|
recordDOM: b = !0,
|
|
7461
|
-
recordCanvas:
|
|
7462
|
-
recordCrossOriginIframes:
|
|
7461
|
+
recordCanvas: R = !1,
|
|
7462
|
+
recordCrossOriginIframes: N = !1,
|
|
7463
7463
|
recordAfter: T = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load",
|
|
7464
7464
|
userTriggeredOnInput: M = !1,
|
|
7465
7465
|
collectFonts: F = !1,
|
|
@@ -7472,7 +7472,7 @@ function It(e = {}) {
|
|
|
7472
7472
|
getCanvasManager: je
|
|
7473
7473
|
} = e;
|
|
7474
7474
|
C_(y);
|
|
7475
|
-
const w =
|
|
7475
|
+
const w = N ? window.parent === window : !0;
|
|
7476
7476
|
let K = !1;
|
|
7477
7477
|
if (!w)
|
|
7478
7478
|
try {
|
|
@@ -7504,7 +7504,7 @@ function It(e = {}) {
|
|
|
7504
7504
|
select: !0,
|
|
7505
7505
|
radio: !0,
|
|
7506
7506
|
checkbox: !0
|
|
7507
|
-
} :
|
|
7507
|
+
} : S !== void 0 ? S : {}, me = g === !0 || g === "all" ? {
|
|
7508
7508
|
script: !0,
|
|
7509
7509
|
comment: !0,
|
|
7510
7510
|
headFavicon: !0,
|
|
@@ -7523,8 +7523,8 @@ function It(e = {}) {
|
|
|
7523
7523
|
const Ze = (te) => {
|
|
7524
7524
|
for (const We of se || [])
|
|
7525
7525
|
We.eventProcessor && (te = We.eventProcessor(te));
|
|
7526
|
-
return
|
|
7527
|
-
!K && (te =
|
|
7526
|
+
return _ && // Disable packing events which will be emitted to parent frames.
|
|
7527
|
+
!K && (te = _(te)), te;
|
|
7528
7528
|
};
|
|
7529
7529
|
be = (te, We) => {
|
|
7530
7530
|
const Q = te;
|
|
@@ -7582,7 +7582,7 @@ function It(e = {}) {
|
|
|
7582
7582
|
mirror: at,
|
|
7583
7583
|
mutationCb: ot,
|
|
7584
7584
|
stylesheetManager: wt,
|
|
7585
|
-
recordCrossOriginIframes:
|
|
7585
|
+
recordCrossOriginIframes: N,
|
|
7586
7586
|
wrappedEmit: be
|
|
7587
7587
|
});
|
|
7588
7588
|
for (const te of se || [])
|
|
@@ -7603,7 +7603,7 @@ function It(e = {}) {
|
|
|
7603
7603
|
...te
|
|
7604
7604
|
}
|
|
7605
7605
|
}),
|
|
7606
|
-
recordCanvas:
|
|
7606
|
+
recordCanvas: R,
|
|
7607
7607
|
blockClass: i,
|
|
7608
7608
|
blockSelector: o,
|
|
7609
7609
|
unblockSelector: s,
|
|
@@ -7631,7 +7631,7 @@ function It(e = {}) {
|
|
|
7631
7631
|
maskAttributeFn: v,
|
|
7632
7632
|
maskTextFn: O,
|
|
7633
7633
|
maskInputFn: k,
|
|
7634
|
-
recordCanvas:
|
|
7634
|
+
recordCanvas: R,
|
|
7635
7635
|
inlineImages: z,
|
|
7636
7636
|
sampling: D,
|
|
7637
7637
|
slimDOMOptions: me,
|
|
@@ -7673,7 +7673,7 @@ function It(e = {}) {
|
|
|
7673
7673
|
maskTextFn: O,
|
|
7674
7674
|
slimDOM: me,
|
|
7675
7675
|
dataURLOptions: C,
|
|
7676
|
-
recordCanvas:
|
|
7676
|
+
recordCanvas: R,
|
|
7677
7677
|
inlineImages: z,
|
|
7678
7678
|
onSerialize: (Q) => {
|
|
7679
7679
|
Rd(Q, at) && pt.addIframe(Q), Ad(Q, at) && wt.trackLinkElement(Q), Cs(Q) && cn.addShadowRoot(Q.shadowRoot, document);
|
|
@@ -7793,7 +7793,7 @@ function It(e = {}) {
|
|
|
7793
7793
|
inlineStylesheet: p,
|
|
7794
7794
|
sampling: D,
|
|
7795
7795
|
recordDOM: b,
|
|
7796
|
-
recordCanvas:
|
|
7796
|
+
recordCanvas: R,
|
|
7797
7797
|
inlineImages: z,
|
|
7798
7798
|
userTriggeredOnInput: M,
|
|
7799
7799
|
collectFonts: F,
|
|
@@ -9277,18 +9277,18 @@ function Cv(e, t, n) {
|
|
|
9277
9277
|
if (!l)
|
|
9278
9278
|
return null;
|
|
9279
9279
|
if (!a || !Li(l, n.networkDetailAllowUrls) || Li(l, n.networkDetailDenyUrls)) {
|
|
9280
|
-
const
|
|
9280
|
+
const _ = yr(f), D = yr(h);
|
|
9281
9281
|
return {
|
|
9282
9282
|
startTimestamp: i,
|
|
9283
9283
|
endTimestamp: o,
|
|
9284
9284
|
url: l,
|
|
9285
9285
|
method: c,
|
|
9286
9286
|
statusCode: u,
|
|
9287
|
-
request:
|
|
9287
|
+
request: _,
|
|
9288
9288
|
response: D
|
|
9289
9289
|
};
|
|
9290
9290
|
}
|
|
9291
|
-
const d = a[bn], p = d ? Ns(d.request_headers, n.networkRequestHeaders) : {}, m = Ns(Iv(a), n.networkResponseHeaders), [
|
|
9291
|
+
const d = a[bn], p = d ? Ns(d.request_headers, n.networkRequestHeaders) : {}, m = Ns(Iv(a), n.networkResponseHeaders), [S, g] = n.networkCaptureBodies ? ud(s, H) : [void 0], [v, k] = n.networkCaptureBodies ? Tv(a) : [void 0], O = Pt(p, f, S), I = Pt(m, h, v);
|
|
9292
9292
|
return {
|
|
9293
9293
|
startTimestamp: i,
|
|
9294
9294
|
endTimestamp: o,
|
|
@@ -9590,11 +9590,11 @@ async function Kv({
|
|
|
9590
9590
|
replay_id: t,
|
|
9591
9591
|
segment_id: n,
|
|
9592
9592
|
replay_type: o.sampled
|
|
9593
|
-
},
|
|
9594
|
-
if (!
|
|
9593
|
+
}, S = await Gv({ scope: h, client: f, replayId: t, event: m });
|
|
9594
|
+
if (!S)
|
|
9595
9595
|
return f.recordDroppedEvent("event_processor", "replay"), $ && H.info("An event processor returned `null`, will not send event."), At({});
|
|
9596
|
-
delete
|
|
9597
|
-
const g = qv(
|
|
9596
|
+
delete S.sdkProcessingMetadata;
|
|
9597
|
+
const g = qv(S, s, p, f.getOptions().tunnel);
|
|
9598
9598
|
let v;
|
|
9599
9599
|
try {
|
|
9600
9600
|
v = await d.send(g);
|
|
@@ -10411,19 +10411,19 @@ class nx {
|
|
|
10411
10411
|
mutationLimit: d = 1e4,
|
|
10412
10412
|
slowClickTimeout: p = 7e3,
|
|
10413
10413
|
slowClickIgnoreSelectors: m = [],
|
|
10414
|
-
networkDetailAllowUrls:
|
|
10414
|
+
networkDetailAllowUrls: S = [],
|
|
10415
10415
|
networkDetailDenyUrls: g = [],
|
|
10416
10416
|
networkCaptureBodies: v = !0,
|
|
10417
10417
|
networkRequestHeaders: k = [],
|
|
10418
10418
|
networkResponseHeaders: O = [],
|
|
10419
10419
|
mask: I = [],
|
|
10420
|
-
maskAttributes:
|
|
10420
|
+
maskAttributes: _ = ["title", "placeholder", "aria-label"],
|
|
10421
10421
|
unmask: D = [],
|
|
10422
10422
|
block: C = [],
|
|
10423
10423
|
unblock: E = [],
|
|
10424
10424
|
ignore: b = [],
|
|
10425
|
-
maskFn:
|
|
10426
|
-
beforeAddRecordingEvent:
|
|
10425
|
+
maskFn: R,
|
|
10426
|
+
beforeAddRecordingEvent: N,
|
|
10427
10427
|
beforeErrorSampling: T,
|
|
10428
10428
|
onError: M
|
|
10429
10429
|
} = {}) {
|
|
@@ -10439,10 +10439,10 @@ class nx {
|
|
|
10439
10439
|
maskAllInputs: u,
|
|
10440
10440
|
maskAllText: c,
|
|
10441
10441
|
maskInputOptions: { password: !0 },
|
|
10442
|
-
maskTextFn:
|
|
10443
|
-
maskInputFn:
|
|
10442
|
+
maskTextFn: R,
|
|
10443
|
+
maskInputFn: R,
|
|
10444
10444
|
maskAttributeFn: (z, se, J) => Zv({
|
|
10445
|
-
maskAttributes:
|
|
10445
|
+
maskAttributes: _,
|
|
10446
10446
|
maskAllText: c,
|
|
10447
10447
|
privacyOptions: F,
|
|
10448
10448
|
key: z,
|
|
@@ -10481,12 +10481,12 @@ class nx {
|
|
|
10481
10481
|
mutationLimit: d,
|
|
10482
10482
|
slowClickTimeout: p,
|
|
10483
10483
|
slowClickIgnoreSelectors: m,
|
|
10484
|
-
networkDetailAllowUrls:
|
|
10484
|
+
networkDetailAllowUrls: S,
|
|
10485
10485
|
networkDetailDenyUrls: g,
|
|
10486
10486
|
networkCaptureBodies: v,
|
|
10487
10487
|
networkRequestHeaders: Ic(k),
|
|
10488
10488
|
networkResponseHeaders: Ic(O),
|
|
10489
|
-
beforeAddRecordingEvent:
|
|
10489
|
+
beforeAddRecordingEvent: N,
|
|
10490
10490
|
beforeErrorSampling: T,
|
|
10491
10491
|
onError: M,
|
|
10492
10492
|
_experiments: l
|
|
@@ -10610,7 +10610,7 @@ function ix(e) {
|
|
|
10610
10610
|
}
|
|
10611
10611
|
{
|
|
10612
10612
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
10613
|
-
e.SENTRY_RELEASE = { id: "
|
|
10613
|
+
e.SENTRY_RELEASE = { id: "b502bcab921acbedeeef32c35389f0e0fa220b51" };
|
|
10614
10614
|
}
|
|
10615
10615
|
function rh(e) {
|
|
10616
10616
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -12135,11 +12135,11 @@ function zx() {
|
|
|
12135
12135
|
Oc = 1;
|
|
12136
12136
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, a = /^\s+|\s+$/g, l = `
|
|
12137
12137
|
`, c = "/", u = "*", f = "", h = "comment", d = "declaration";
|
|
12138
|
-
Po = function(m,
|
|
12138
|
+
Po = function(m, S) {
|
|
12139
12139
|
if (typeof m != "string")
|
|
12140
12140
|
throw new TypeError("First argument must be a string");
|
|
12141
12141
|
if (!m) return [];
|
|
12142
|
-
|
|
12142
|
+
S = S || {};
|
|
12143
12143
|
var g = 1, v = 1;
|
|
12144
12144
|
function k(T) {
|
|
12145
12145
|
var M = T.match(t);
|
|
@@ -12154,14 +12154,14 @@ function zx() {
|
|
|
12154
12154
|
};
|
|
12155
12155
|
}
|
|
12156
12156
|
function I(T) {
|
|
12157
|
-
this.start = T, this.end = { line: g, column: v }, this.source =
|
|
12157
|
+
this.start = T, this.end = { line: g, column: v }, this.source = S.source;
|
|
12158
12158
|
}
|
|
12159
12159
|
I.prototype.content = m;
|
|
12160
|
-
function
|
|
12160
|
+
function _(T) {
|
|
12161
12161
|
var M = new Error(
|
|
12162
|
-
|
|
12162
|
+
S.source + ":" + g + ":" + v + ": " + T
|
|
12163
12163
|
);
|
|
12164
|
-
if (M.reason = T, M.filename =
|
|
12164
|
+
if (M.reason = T, M.filename = S.source, M.line = g, M.column = v, M.source = m, !S.silent) throw M;
|
|
12165
12165
|
}
|
|
12166
12166
|
function D(T) {
|
|
12167
12167
|
var M = T.exec(m);
|
|
@@ -12185,7 +12185,7 @@ function zx() {
|
|
|
12185
12185
|
for (var M = 2; f != m.charAt(M) && (u != m.charAt(M) || c != m.charAt(M + 1)); )
|
|
12186
12186
|
++M;
|
|
12187
12187
|
if (M += 2, f === m.charAt(M - 1))
|
|
12188
|
-
return
|
|
12188
|
+
return _("End of comment missing");
|
|
12189
12189
|
var F = m.slice(2, M - 2);
|
|
12190
12190
|
return v += 2, k(F), m = m.slice(M), v += 2, T({
|
|
12191
12191
|
type: h,
|
|
@@ -12193,10 +12193,10 @@ function zx() {
|
|
|
12193
12193
|
});
|
|
12194
12194
|
}
|
|
12195
12195
|
}
|
|
12196
|
-
function
|
|
12196
|
+
function R() {
|
|
12197
12197
|
var T = O(), M = D(r);
|
|
12198
12198
|
if (M) {
|
|
12199
|
-
if (b(), !D(i)) return
|
|
12199
|
+
if (b(), !D(i)) return _("property missing ':'");
|
|
12200
12200
|
var F = D(o), z = T({
|
|
12201
12201
|
type: d,
|
|
12202
12202
|
property: p(M[0].replace(e, f)),
|
|
@@ -12205,14 +12205,14 @@ function zx() {
|
|
|
12205
12205
|
return D(s), z;
|
|
12206
12206
|
}
|
|
12207
12207
|
}
|
|
12208
|
-
function
|
|
12208
|
+
function N() {
|
|
12209
12209
|
var T = [];
|
|
12210
12210
|
E(T);
|
|
12211
|
-
for (var M; M =
|
|
12211
|
+
for (var M; M = R(); )
|
|
12212
12212
|
M !== !1 && (T.push(M), E(T));
|
|
12213
12213
|
return T;
|
|
12214
12214
|
}
|
|
12215
|
-
return C(),
|
|
12215
|
+
return C(), N();
|
|
12216
12216
|
};
|
|
12217
12217
|
function p(m) {
|
|
12218
12218
|
return m ? m.replace(a, f) : f;
|
|
@@ -12904,17 +12904,17 @@ function Sk(e) {
|
|
|
12904
12904
|
if (r++, t.containerState._closeFlow) {
|
|
12905
12905
|
t.containerState._closeFlow = void 0, i && v();
|
|
12906
12906
|
const O = t.events.length;
|
|
12907
|
-
let I = O,
|
|
12907
|
+
let I = O, _;
|
|
12908
12908
|
for (; I--; )
|
|
12909
12909
|
if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
|
|
12910
|
-
|
|
12910
|
+
_ = t.events[I][1].end;
|
|
12911
12911
|
break;
|
|
12912
12912
|
}
|
|
12913
12913
|
g(r);
|
|
12914
12914
|
let D = O;
|
|
12915
12915
|
for (; D < t.events.length; )
|
|
12916
12916
|
t.events[D][1].end = {
|
|
12917
|
-
...
|
|
12917
|
+
..._
|
|
12918
12918
|
}, D++;
|
|
12919
12919
|
return Je(t.events, I + 1, 0, t.events.slice(O)), t.events.length = D, c(k);
|
|
12920
12920
|
}
|
|
@@ -12955,21 +12955,21 @@ function Sk(e) {
|
|
|
12955
12955
|
}
|
|
12956
12956
|
function m(k) {
|
|
12957
12957
|
if (k === null) {
|
|
12958
|
-
|
|
12958
|
+
S(e.exit("chunkFlow"), !0), g(0), e.consume(k);
|
|
12959
12959
|
return;
|
|
12960
12960
|
}
|
|
12961
|
-
return B(k) ? (e.consume(k),
|
|
12961
|
+
return B(k) ? (e.consume(k), S(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(k), m);
|
|
12962
12962
|
}
|
|
12963
|
-
function
|
|
12963
|
+
function S(k, O) {
|
|
12964
12964
|
const I = t.sliceStream(k);
|
|
12965
12965
|
if (O && I.push(null), k.previous = o, o && (o.next = k), o = k, i.defineSkip(k.start), i.write(I), t.parser.lazy[k.start.line]) {
|
|
12966
|
-
let
|
|
12967
|
-
for (;
|
|
12966
|
+
let _ = i.events.length;
|
|
12967
|
+
for (; _--; )
|
|
12968
12968
|
if (
|
|
12969
12969
|
// The token starts before the line ending…
|
|
12970
|
-
i.events[
|
|
12971
|
-
(!i.events[
|
|
12972
|
-
i.events[
|
|
12970
|
+
i.events[_][1].start.offset < s && // …and either is not ended yet…
|
|
12971
|
+
(!i.events[_][1].end || // …or ends after it.
|
|
12972
|
+
i.events[_][1].end.offset > s)
|
|
12973
12973
|
)
|
|
12974
12974
|
return;
|
|
12975
12975
|
const D = t.events.length;
|
|
@@ -12982,11 +12982,11 @@ function Sk(e) {
|
|
|
12982
12982
|
}
|
|
12983
12983
|
E = !0;
|
|
12984
12984
|
}
|
|
12985
|
-
for (g(r),
|
|
12986
|
-
t.events[
|
|
12985
|
+
for (g(r), _ = D; _ < t.events.length; )
|
|
12986
|
+
t.events[_][1].end = {
|
|
12987
12987
|
...b
|
|
12988
|
-
},
|
|
12989
|
-
Je(t.events, C + 1, 0, t.events.slice(D)), t.events.length =
|
|
12988
|
+
}, _++;
|
|
12989
|
+
Je(t.events, C + 1, 0, t.events.slice(D)), t.events.length = _;
|
|
12990
12990
|
}
|
|
12991
12991
|
}
|
|
12992
12992
|
function g(k) {
|
|
@@ -13238,67 +13238,67 @@ function Ok(e, t, n) {
|
|
|
13238
13238
|
};
|
|
13239
13239
|
let o = 0, s = 0, a;
|
|
13240
13240
|
return l;
|
|
13241
|
-
function l(
|
|
13242
|
-
return c(
|
|
13241
|
+
function l(_) {
|
|
13242
|
+
return c(_);
|
|
13243
13243
|
}
|
|
13244
|
-
function c(
|
|
13244
|
+
function c(_) {
|
|
13245
13245
|
const D = r.events[r.events.length - 1];
|
|
13246
|
-
return o = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, a =
|
|
13246
|
+
return o = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, a = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(_);
|
|
13247
13247
|
}
|
|
13248
|
-
function u(
|
|
13249
|
-
return
|
|
13248
|
+
function u(_) {
|
|
13249
|
+
return _ === a ? (s++, e.consume(_), u) : s < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), X(_) ? ie(e, f, "whitespace")(_) : f(_));
|
|
13250
13250
|
}
|
|
13251
|
-
function f(
|
|
13252
|
-
return
|
|
13251
|
+
function f(_) {
|
|
13252
|
+
return _ === null || B(_) ? (e.exit("codeFencedFence"), r.interrupt ? t(_) : e.check(jc, m, O)(_)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
13253
13253
|
contentType: "string"
|
|
13254
|
-
}), h(
|
|
13254
|
+
}), h(_));
|
|
13255
13255
|
}
|
|
13256
|
-
function h(
|
|
13257
|
-
return
|
|
13256
|
+
function h(_) {
|
|
13257
|
+
return _ === null || B(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) : X(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ie(e, d, "whitespace")(_)) : _ === 96 && _ === a ? n(_) : (e.consume(_), h);
|
|
13258
13258
|
}
|
|
13259
|
-
function d(
|
|
13260
|
-
return
|
|
13259
|
+
function d(_) {
|
|
13260
|
+
return _ === null || B(_) ? f(_) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
13261
13261
|
contentType: "string"
|
|
13262
|
-
}), p(
|
|
13262
|
+
}), p(_));
|
|
13263
13263
|
}
|
|
13264
|
-
function p(
|
|
13265
|
-
return
|
|
13264
|
+
function p(_) {
|
|
13265
|
+
return _ === null || B(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(_)) : _ === 96 && _ === a ? n(_) : (e.consume(_), p);
|
|
13266
13266
|
}
|
|
13267
|
-
function m(
|
|
13268
|
-
return e.attempt(i, O,
|
|
13267
|
+
function m(_) {
|
|
13268
|
+
return e.attempt(i, O, S)(_);
|
|
13269
13269
|
}
|
|
13270
|
-
function _
|
|
13271
|
-
return e.enter("lineEnding"), e.consume(
|
|
13270
|
+
function S(_) {
|
|
13271
|
+
return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), g;
|
|
13272
13272
|
}
|
|
13273
|
-
function g(
|
|
13274
|
-
return o > 0 && X(
|
|
13273
|
+
function g(_) {
|
|
13274
|
+
return o > 0 && X(_) ? ie(e, v, "linePrefix", o + 1)(_) : v(_);
|
|
13275
13275
|
}
|
|
13276
|
-
function v(
|
|
13277
|
-
return
|
|
13276
|
+
function v(_) {
|
|
13277
|
+
return _ === null || B(_) ? e.check(jc, m, O)(_) : (e.enter("codeFlowValue"), k(_));
|
|
13278
13278
|
}
|
|
13279
|
-
function k(
|
|
13280
|
-
return
|
|
13279
|
+
function k(_) {
|
|
13280
|
+
return _ === null || B(_) ? (e.exit("codeFlowValue"), v(_)) : (e.consume(_), k);
|
|
13281
13281
|
}
|
|
13282
|
-
function O(
|
|
13283
|
-
return e.exit("codeFenced"), t(
|
|
13282
|
+
function O(_) {
|
|
13283
|
+
return e.exit("codeFenced"), t(_);
|
|
13284
13284
|
}
|
|
13285
|
-
function I(
|
|
13285
|
+
function I(_, D, C) {
|
|
13286
13286
|
let E = 0;
|
|
13287
13287
|
return b;
|
|
13288
13288
|
function b(F) {
|
|
13289
|
-
return
|
|
13290
|
-
}
|
|
13291
|
-
function N(F) {
|
|
13292
|
-
return S.enter("codeFencedFence"), X(F) ? ie(S, R, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : R(F);
|
|
13289
|
+
return _.enter("lineEnding"), _.consume(F), _.exit("lineEnding"), R;
|
|
13293
13290
|
}
|
|
13294
13291
|
function R(F) {
|
|
13295
|
-
return F
|
|
13292
|
+
return _.enter("codeFencedFence"), X(F) ? ie(_, N, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : N(F);
|
|
13293
|
+
}
|
|
13294
|
+
function N(F) {
|
|
13295
|
+
return F === a ? (_.enter("codeFencedFenceSequence"), T(F)) : C(F);
|
|
13296
13296
|
}
|
|
13297
13297
|
function T(F) {
|
|
13298
|
-
return F === a ? (E++,
|
|
13298
|
+
return F === a ? (E++, _.consume(F), T) : E >= s ? (_.exit("codeFencedFenceSequence"), X(F) ? ie(_, M, "whitespace")(F) : M(F)) : C(F);
|
|
13299
13299
|
}
|
|
13300
13300
|
function M(F) {
|
|
13301
|
-
return F === null || B(F) ? (
|
|
13301
|
+
return F === null || B(F) ? (_.exit("codeFencedFence"), D(F)) : C(F);
|
|
13302
13302
|
}
|
|
13303
13303
|
}
|
|
13304
13304
|
}
|
|
@@ -13595,7 +13595,7 @@ function Hk(e, t) {
|
|
|
13595
13595
|
s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
|
|
13596
13596
|
const a = s.events, l = [], c = {};
|
|
13597
13597
|
let u, f, h = -1, d = n, p = 0, m = 0;
|
|
13598
|
-
const
|
|
13598
|
+
const S = [m];
|
|
13599
13599
|
for (; d; ) {
|
|
13600
13600
|
for (; e.get(++i)[1] !== d; )
|
|
13601
13601
|
;
|
|
@@ -13603,9 +13603,9 @@ function Hk(e, t) {
|
|
|
13603
13603
|
}
|
|
13604
13604
|
for (d = n; ++h < a.length; )
|
|
13605
13605
|
// Find a void token that includes a break.
|
|
13606
|
-
a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (m = h + 1,
|
|
13607
|
-
for (s.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) :
|
|
13608
|
-
const g = a.slice(
|
|
13606
|
+
a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (m = h + 1, S.push(m), d._tokenizer = void 0, d.previous = void 0, d = d.next);
|
|
13607
|
+
for (s.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) : S.pop(), h = S.length; h--; ) {
|
|
13608
|
+
const g = a.slice(S[h], S[h + 1]), v = o.pop();
|
|
13609
13609
|
l.push([v, v + g.length - 1]), e.splice(v, 2, g);
|
|
13610
13610
|
}
|
|
13611
13611
|
for (l.reverse(), h = -1; ++h < l.length; )
|
|
@@ -13677,9 +13677,9 @@ function Lh(e, t, n, r, i, o, s, a, l) {
|
|
|
13677
13677
|
return g === 60 || g === 62 || g === 92 ? (e.consume(g), d) : d(g);
|
|
13678
13678
|
}
|
|
13679
13679
|
function m(g) {
|
|
13680
|
-
return !u && (g === null || g === 41 || ue(g)) ? (e.exit("chunkString"), e.exit(a), e.exit(s), e.exit(r), t(g)) : u < c && g === 40 ? (e.consume(g), u++, m) : g === 41 ? (e.consume(g), u--, m) : g === null || g === 32 || g === 40 || Pi(g) ? n(g) : (e.consume(g), g === 92 ?
|
|
13680
|
+
return !u && (g === null || g === 41 || ue(g)) ? (e.exit("chunkString"), e.exit(a), e.exit(s), e.exit(r), t(g)) : u < c && g === 40 ? (e.consume(g), u++, m) : g === 41 ? (e.consume(g), u--, m) : g === null || g === 32 || g === 40 || Pi(g) ? n(g) : (e.consume(g), g === 92 ? S : m);
|
|
13681
13681
|
}
|
|
13682
|
-
function
|
|
13682
|
+
function S(g) {
|
|
13683
13683
|
return g === 40 || g === 41 || g === 92 ? (e.consume(g), m) : m(g);
|
|
13684
13684
|
}
|
|
13685
13685
|
}
|
|
@@ -13950,7 +13950,7 @@ function lE(e, t, n) {
|
|
|
13950
13950
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(w), f;
|
|
13951
13951
|
}
|
|
13952
13952
|
function f(w) {
|
|
13953
|
-
return w === 33 ? (e.consume(w), h) : w === 47 ? (e.consume(w), o = !0, m) : w === 63 ? (e.consume(w), i = 3, r.interrupt ? t : y) : Be(w) ? (e.consume(w), s = String.fromCharCode(w),
|
|
13953
|
+
return w === 33 ? (e.consume(w), h) : w === 47 ? (e.consume(w), o = !0, m) : w === 63 ? (e.consume(w), i = 3, r.interrupt ? t : y) : Be(w) ? (e.consume(w), s = String.fromCharCode(w), S) : n(w);
|
|
13954
13954
|
}
|
|
13955
13955
|
function h(w) {
|
|
13956
13956
|
return w === 45 ? (e.consume(w), i = 2, d) : w === 91 ? (e.consume(w), i = 5, a = 0, p) : Be(w) ? (e.consume(w), i = 4, r.interrupt ? t : y) : n(w);
|
|
@@ -13960,20 +13960,20 @@ function lE(e, t, n) {
|
|
|
13960
13960
|
}
|
|
13961
13961
|
function p(w) {
|
|
13962
13962
|
const K = "CDATA[";
|
|
13963
|
-
return w === K.charCodeAt(a++) ? (e.consume(w), a === K.length ? r.interrupt ? t :
|
|
13963
|
+
return w === K.charCodeAt(a++) ? (e.consume(w), a === K.length ? r.interrupt ? t : N : p) : n(w);
|
|
13964
13964
|
}
|
|
13965
13965
|
function m(w) {
|
|
13966
|
-
return Be(w) ? (e.consume(w), s = String.fromCharCode(w),
|
|
13966
|
+
return Be(w) ? (e.consume(w), s = String.fromCharCode(w), S) : n(w);
|
|
13967
13967
|
}
|
|
13968
|
-
function
|
|
13968
|
+
function S(w) {
|
|
13969
13969
|
if (w === null || w === 47 || w === 62 || ue(w)) {
|
|
13970
13970
|
const K = w === 47, xe = s.toLowerCase();
|
|
13971
|
-
return !K && !o && qc.includes(xe) ? (i = 1, r.interrupt ? t(w) :
|
|
13971
|
+
return !K && !o && qc.includes(xe) ? (i = 1, r.interrupt ? t(w) : N(w)) : rE.includes(s.toLowerCase()) ? (i = 6, K ? (e.consume(w), g) : r.interrupt ? t(w) : N(w)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : o ? v(w) : k(w));
|
|
13972
13972
|
}
|
|
13973
|
-
return w === 45 || Oe(w) ? (e.consume(w), s += String.fromCharCode(w),
|
|
13973
|
+
return w === 45 || Oe(w) ? (e.consume(w), s += String.fromCharCode(w), S) : n(w);
|
|
13974
13974
|
}
|
|
13975
13975
|
function g(w) {
|
|
13976
|
-
return w === 62 ? (e.consume(w), r.interrupt ? t :
|
|
13976
|
+
return w === 62 ? (e.consume(w), r.interrupt ? t : N) : n(w);
|
|
13977
13977
|
}
|
|
13978
13978
|
function v(w) {
|
|
13979
13979
|
return X(w) ? (e.consume(w), v) : b(w);
|
|
@@ -13985,10 +13985,10 @@ function lE(e, t, n) {
|
|
|
13985
13985
|
return w === 45 || w === 46 || w === 58 || w === 95 || Oe(w) ? (e.consume(w), O) : I(w);
|
|
13986
13986
|
}
|
|
13987
13987
|
function I(w) {
|
|
13988
|
-
return w === 61 ? (e.consume(w),
|
|
13988
|
+
return w === 61 ? (e.consume(w), _) : X(w) ? (e.consume(w), I) : k(w);
|
|
13989
13989
|
}
|
|
13990
|
-
function
|
|
13991
|
-
return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), l = w, D) : X(w) ? (e.consume(w),
|
|
13990
|
+
function _(w) {
|
|
13991
|
+
return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), l = w, D) : X(w) ? (e.consume(w), _) : C(w);
|
|
13992
13992
|
}
|
|
13993
13993
|
function D(w) {
|
|
13994
13994
|
return w === l ? (e.consume(w), l = null, E) : w === null || B(w) ? n(w) : (e.consume(w), D);
|
|
@@ -14000,13 +14000,13 @@ function lE(e, t, n) {
|
|
|
14000
14000
|
return w === 47 || w === 62 || X(w) ? k(w) : n(w);
|
|
14001
14001
|
}
|
|
14002
14002
|
function b(w) {
|
|
14003
|
-
return w === 62 ? (e.consume(w),
|
|
14004
|
-
}
|
|
14005
|
-
function N(w) {
|
|
14006
|
-
return w === null || B(w) ? R(w) : X(w) ? (e.consume(w), N) : n(w);
|
|
14003
|
+
return w === 62 ? (e.consume(w), R) : n(w);
|
|
14007
14004
|
}
|
|
14008
14005
|
function R(w) {
|
|
14009
|
-
return w ===
|
|
14006
|
+
return w === null || B(w) ? N(w) : X(w) ? (e.consume(w), R) : n(w);
|
|
14007
|
+
}
|
|
14008
|
+
function N(w) {
|
|
14009
|
+
return w === 45 && i === 2 ? (e.consume(w), z) : w === 60 && i === 1 ? (e.consume(w), se) : w === 62 && i === 4 ? (e.consume(w), Ie) : w === 63 && i === 3 ? (e.consume(w), y) : w === 93 && i === 5 ? (e.consume(w), pe) : B(w) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(oE, je, T)(w)) : w === null || B(w) ? (e.exit("htmlFlowData"), T(w)) : (e.consume(w), N);
|
|
14010
14010
|
}
|
|
14011
14011
|
function T(w) {
|
|
14012
14012
|
return e.check(sE, M, je)(w);
|
|
@@ -14015,26 +14015,26 @@ function lE(e, t, n) {
|
|
|
14015
14015
|
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), F;
|
|
14016
14016
|
}
|
|
14017
14017
|
function F(w) {
|
|
14018
|
-
return w === null || B(w) ? T(w) : (e.enter("htmlFlowData"),
|
|
14018
|
+
return w === null || B(w) ? T(w) : (e.enter("htmlFlowData"), N(w));
|
|
14019
14019
|
}
|
|
14020
14020
|
function z(w) {
|
|
14021
|
-
return w === 45 ? (e.consume(w), y) :
|
|
14021
|
+
return w === 45 ? (e.consume(w), y) : N(w);
|
|
14022
14022
|
}
|
|
14023
14023
|
function se(w) {
|
|
14024
|
-
return w === 47 ? (e.consume(w), s = "", J) :
|
|
14024
|
+
return w === 47 ? (e.consume(w), s = "", J) : N(w);
|
|
14025
14025
|
}
|
|
14026
14026
|
function J(w) {
|
|
14027
14027
|
if (w === 62) {
|
|
14028
14028
|
const K = s.toLowerCase();
|
|
14029
|
-
return qc.includes(K) ? (e.consume(w), Ie) :
|
|
14029
|
+
return qc.includes(K) ? (e.consume(w), Ie) : N(w);
|
|
14030
14030
|
}
|
|
14031
|
-
return Be(w) && s.length < 8 ? (e.consume(w), s += String.fromCharCode(w), J) :
|
|
14031
|
+
return Be(w) && s.length < 8 ? (e.consume(w), s += String.fromCharCode(w), J) : N(w);
|
|
14032
14032
|
}
|
|
14033
14033
|
function pe(w) {
|
|
14034
|
-
return w === 93 ? (e.consume(w), y) :
|
|
14034
|
+
return w === 93 ? (e.consume(w), y) : N(w);
|
|
14035
14035
|
}
|
|
14036
14036
|
function y(w) {
|
|
14037
|
-
return w === 62 ? (e.consume(w), Ie) : w === 45 && i === 2 ? (e.consume(w), y) :
|
|
14037
|
+
return w === 62 ? (e.consume(w), Ie) : w === 45 && i === 2 ? (e.consume(w), y) : N(w);
|
|
14038
14038
|
}
|
|
14039
14039
|
function Ie(w) {
|
|
14040
14040
|
return w === null || B(w) ? (e.exit("htmlFlowData"), je(w)) : (e.consume(w), Ie);
|
|
@@ -14093,9 +14093,9 @@ function dE(e, t, n) {
|
|
|
14093
14093
|
return y === Ie.charCodeAt(o++) ? (e.consume(y), o === Ie.length ? m : p) : n(y);
|
|
14094
14094
|
}
|
|
14095
14095
|
function m(y) {
|
|
14096
|
-
return y === null ? n(y) : y === 93 ? (e.consume(y),
|
|
14096
|
+
return y === null ? n(y) : y === 93 ? (e.consume(y), S) : B(y) ? (s = m, se(y)) : (e.consume(y), m);
|
|
14097
14097
|
}
|
|
14098
|
-
function
|
|
14098
|
+
function S(y) {
|
|
14099
14099
|
return y === 93 ? (e.consume(y), g) : m(y);
|
|
14100
14100
|
}
|
|
14101
14101
|
function g(y) {
|
|
@@ -14111,10 +14111,10 @@ function dE(e, t, n) {
|
|
|
14111
14111
|
return y === 62 ? z(y) : k(y);
|
|
14112
14112
|
}
|
|
14113
14113
|
function I(y) {
|
|
14114
|
-
return Be(y) ? (e.consume(y),
|
|
14114
|
+
return Be(y) ? (e.consume(y), _) : n(y);
|
|
14115
14115
|
}
|
|
14116
|
-
function
|
|
14117
|
-
return y === 45 || Oe(y) ? (e.consume(y),
|
|
14116
|
+
function _(y) {
|
|
14117
|
+
return y === 45 || Oe(y) ? (e.consume(y), _) : D(y);
|
|
14118
14118
|
}
|
|
14119
14119
|
function D(y) {
|
|
14120
14120
|
return B(y) ? (s = D, se(y)) : X(y) ? (e.consume(y), D) : z(y);
|
|
@@ -14126,13 +14126,13 @@ function dE(e, t, n) {
|
|
|
14126
14126
|
return y === 47 ? (e.consume(y), z) : y === 58 || y === 95 || Be(y) ? (e.consume(y), b) : B(y) ? (s = E, se(y)) : X(y) ? (e.consume(y), E) : z(y);
|
|
14127
14127
|
}
|
|
14128
14128
|
function b(y) {
|
|
14129
|
-
return y === 45 || y === 46 || y === 58 || y === 95 || Oe(y) ? (e.consume(y), b) :
|
|
14130
|
-
}
|
|
14131
|
-
function N(y) {
|
|
14132
|
-
return y === 61 ? (e.consume(y), R) : B(y) ? (s = N, se(y)) : X(y) ? (e.consume(y), N) : E(y);
|
|
14129
|
+
return y === 45 || y === 46 || y === 58 || y === 95 || Oe(y) ? (e.consume(y), b) : R(y);
|
|
14133
14130
|
}
|
|
14134
14131
|
function R(y) {
|
|
14135
|
-
return y ===
|
|
14132
|
+
return y === 61 ? (e.consume(y), N) : B(y) ? (s = R, se(y)) : X(y) ? (e.consume(y), R) : E(y);
|
|
14133
|
+
}
|
|
14134
|
+
function N(y) {
|
|
14135
|
+
return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), i = y, T) : B(y) ? (s = N, se(y)) : X(y) ? (e.consume(y), N) : (e.consume(y), M);
|
|
14136
14136
|
}
|
|
14137
14137
|
function T(y) {
|
|
14138
14138
|
return y === i ? (e.consume(y), i = void 0, F) : y === null ? n(y) : B(y) ? (s = T, se(y)) : (e.consume(y), T);
|
|
@@ -14688,11 +14688,11 @@ function ZE(e, t, n) {
|
|
|
14688
14688
|
let s = [], a = [];
|
|
14689
14689
|
const l = {
|
|
14690
14690
|
attempt: D(I),
|
|
14691
|
-
check: D(
|
|
14691
|
+
check: D(_),
|
|
14692
14692
|
consume: v,
|
|
14693
14693
|
enter: k,
|
|
14694
14694
|
exit: O,
|
|
14695
|
-
interrupt: D(
|
|
14695
|
+
interrupt: D(_, {
|
|
14696
14696
|
interrupt: !0
|
|
14697
14697
|
})
|
|
14698
14698
|
}, c = {
|
|
@@ -14709,69 +14709,69 @@ function ZE(e, t, n) {
|
|
|
14709
14709
|
};
|
|
14710
14710
|
let u = t.tokenize.call(c, l);
|
|
14711
14711
|
return t.resolveAll && o.push(t), c;
|
|
14712
|
-
function f(
|
|
14713
|
-
return s = nt(s,
|
|
14712
|
+
function f(R) {
|
|
14713
|
+
return s = nt(s, R), S(), s[s.length - 1] !== null ? [] : (C(t, 0), c.events = co(o, c.events, c), c.events);
|
|
14714
14714
|
}
|
|
14715
|
-
function h(
|
|
14716
|
-
return t1(d(
|
|
14715
|
+
function h(R, N) {
|
|
14716
|
+
return t1(d(R), N);
|
|
14717
14717
|
}
|
|
14718
|
-
function d(
|
|
14719
|
-
return e1(s,
|
|
14718
|
+
function d(R) {
|
|
14719
|
+
return e1(s, R);
|
|
14720
14720
|
}
|
|
14721
14721
|
function p() {
|
|
14722
14722
|
const {
|
|
14723
|
-
_bufferIndex:
|
|
14724
|
-
_index:
|
|
14723
|
+
_bufferIndex: R,
|
|
14724
|
+
_index: N,
|
|
14725
14725
|
line: T,
|
|
14726
14726
|
column: M,
|
|
14727
14727
|
offset: F
|
|
14728
14728
|
} = r;
|
|
14729
14729
|
return {
|
|
14730
|
-
_bufferIndex:
|
|
14731
|
-
_index:
|
|
14730
|
+
_bufferIndex: R,
|
|
14731
|
+
_index: N,
|
|
14732
14732
|
line: T,
|
|
14733
14733
|
column: M,
|
|
14734
14734
|
offset: F
|
|
14735
14735
|
};
|
|
14736
14736
|
}
|
|
14737
|
-
function m(
|
|
14738
|
-
i[
|
|
14737
|
+
function m(R) {
|
|
14738
|
+
i[R.line] = R.column, b();
|
|
14739
14739
|
}
|
|
14740
|
-
function
|
|
14741
|
-
let
|
|
14740
|
+
function S() {
|
|
14741
|
+
let R;
|
|
14742
14742
|
for (; r._index < s.length; ) {
|
|
14743
|
-
const
|
|
14744
|
-
if (typeof
|
|
14745
|
-
for (
|
|
14746
|
-
g(
|
|
14743
|
+
const N = s[r._index];
|
|
14744
|
+
if (typeof N == "string")
|
|
14745
|
+
for (R = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === R && r._bufferIndex < N.length; )
|
|
14746
|
+
g(N.charCodeAt(r._bufferIndex));
|
|
14747
14747
|
else
|
|
14748
|
-
g(
|
|
14748
|
+
g(N);
|
|
14749
14749
|
}
|
|
14750
14750
|
}
|
|
14751
|
-
function g(
|
|
14752
|
-
u = u(
|
|
14751
|
+
function g(R) {
|
|
14752
|
+
u = u(R);
|
|
14753
14753
|
}
|
|
14754
|
-
function v(
|
|
14755
|
-
B(
|
|
14754
|
+
function v(R) {
|
|
14755
|
+
B(R) ? (r.line++, r.column = 1, r.offset += R === -3 ? 2 : 1, b()) : R !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
14756
14756
|
// strings.
|
|
14757
14757
|
/** @type {string} */
|
|
14758
|
-
s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous =
|
|
14758
|
+
s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = R;
|
|
14759
14759
|
}
|
|
14760
|
-
function k(
|
|
14761
|
-
const T =
|
|
14762
|
-
return T.type =
|
|
14760
|
+
function k(R, N) {
|
|
14761
|
+
const T = N || {};
|
|
14762
|
+
return T.type = R, T.start = p(), c.events.push(["enter", T, c]), a.push(T), T;
|
|
14763
14763
|
}
|
|
14764
|
-
function O(
|
|
14765
|
-
const
|
|
14766
|
-
return
|
|
14764
|
+
function O(R) {
|
|
14765
|
+
const N = a.pop();
|
|
14766
|
+
return N.end = p(), c.events.push(["exit", N, c]), N;
|
|
14767
14767
|
}
|
|
14768
|
-
function I(
|
|
14769
|
-
C(
|
|
14768
|
+
function I(R, N) {
|
|
14769
|
+
C(R, N.from);
|
|
14770
14770
|
}
|
|
14771
|
-
function
|
|
14772
|
-
|
|
14771
|
+
function _(R, N) {
|
|
14772
|
+
N.restore();
|
|
14773
14773
|
}
|
|
14774
|
-
function D(
|
|
14774
|
+
function D(R, N) {
|
|
14775
14775
|
return T;
|
|
14776
14776
|
function T(M, F, z) {
|
|
14777
14777
|
let se, J, pe, y;
|
|
@@ -14807,7 +14807,7 @@ function ZE(e, t, n) {
|
|
|
14807
14807
|
// If we do have fields, create an object w/ `context` as its
|
|
14808
14808
|
// prototype.
|
|
14809
14809
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
14810
|
-
|
|
14810
|
+
N ? Object.assign(Object.create(c), N) : c,
|
|
14811
14811
|
l,
|
|
14812
14812
|
K,
|
|
14813
14813
|
xe
|
|
@@ -14815,24 +14815,24 @@ function ZE(e, t, n) {
|
|
|
14815
14815
|
}
|
|
14816
14816
|
}
|
|
14817
14817
|
function K(me) {
|
|
14818
|
-
return
|
|
14818
|
+
return R(pe, y), F;
|
|
14819
14819
|
}
|
|
14820
14820
|
function xe(me) {
|
|
14821
14821
|
return y.restore(), ++J < se.length ? w(se[J]) : z;
|
|
14822
14822
|
}
|
|
14823
14823
|
}
|
|
14824
14824
|
}
|
|
14825
|
-
function C(
|
|
14826
|
-
|
|
14825
|
+
function C(R, N) {
|
|
14826
|
+
R.resolveAll && !o.includes(R) && o.push(R), R.resolve && Je(c.events, N, c.events.length - N, R.resolve(c.events.slice(N), c)), R.resolveTo && (c.events = R.resolveTo(c.events, c));
|
|
14827
14827
|
}
|
|
14828
14828
|
function E() {
|
|
14829
|
-
const
|
|
14829
|
+
const R = p(), N = c.previous, T = c.currentConstruct, M = c.events.length, F = Array.from(a);
|
|
14830
14830
|
return {
|
|
14831
14831
|
from: M,
|
|
14832
14832
|
restore: z
|
|
14833
14833
|
};
|
|
14834
14834
|
function z() {
|
|
14835
|
-
r =
|
|
14835
|
+
r = R, c.previous = N, c.currentConstruct = T, c.events.length = M, a = F, b();
|
|
14836
14836
|
}
|
|
14837
14837
|
}
|
|
14838
14838
|
function b() {
|
|
@@ -15032,7 +15032,7 @@ function c1(e) {
|
|
|
15032
15032
|
characterReferenceMarkerNumeric: xe,
|
|
15033
15033
|
characterReferenceValue: me,
|
|
15034
15034
|
characterReference: it,
|
|
15035
|
-
codeFenced: l(
|
|
15035
|
+
codeFenced: l(S),
|
|
15036
15036
|
codeFencedFence: m,
|
|
15037
15037
|
codeFencedFenceInfo: d,
|
|
15038
15038
|
codeFencedFenceMeta: p,
|
|
@@ -15046,8 +15046,8 @@ function c1(e) {
|
|
|
15046
15046
|
definitionLabelString: v,
|
|
15047
15047
|
definitionTitleString: k,
|
|
15048
15048
|
emphasis: l(),
|
|
15049
|
-
hardBreakEscape: l(
|
|
15050
|
-
hardBreakTrailing: l(
|
|
15049
|
+
hardBreakEscape: l(N),
|
|
15050
|
+
hardBreakTrailing: l(N),
|
|
15051
15051
|
htmlFlow: l(T),
|
|
15052
15052
|
htmlFlowData: b,
|
|
15053
15053
|
htmlText: l(M),
|
|
@@ -15055,7 +15055,7 @@ function c1(e) {
|
|
|
15055
15055
|
image: l(se),
|
|
15056
15056
|
label: pe,
|
|
15057
15057
|
labelText: J,
|
|
15058
|
-
lineEnding:
|
|
15058
|
+
lineEnding: R,
|
|
15059
15059
|
link: l(z),
|
|
15060
15060
|
listItem: l(),
|
|
15061
15061
|
listOrdered: l(),
|
|
@@ -15067,7 +15067,7 @@ function c1(e) {
|
|
|
15067
15067
|
resource: je,
|
|
15068
15068
|
setextHeading: l(C),
|
|
15069
15069
|
setextHeadingLineSequence: D,
|
|
15070
|
-
setextHeadingText:
|
|
15070
|
+
setextHeadingText: _,
|
|
15071
15071
|
strong: l(),
|
|
15072
15072
|
thematicBreak: l()
|
|
15073
15073
|
}
|
|
@@ -15232,7 +15232,7 @@ function c1(e) {
|
|
|
15232
15232
|
function m() {
|
|
15233
15233
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
15234
15234
|
}
|
|
15235
|
-
function
|
|
15235
|
+
function S() {
|
|
15236
15236
|
const A = this.resume(), P = this.stack[this.stack.length - 1];
|
|
15237
15237
|
P.value = A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
15238
15238
|
}
|
|
@@ -15259,7 +15259,7 @@ function c1(e) {
|
|
|
15259
15259
|
P.depth = q;
|
|
15260
15260
|
}
|
|
15261
15261
|
}
|
|
15262
|
-
function
|
|
15262
|
+
function _() {
|
|
15263
15263
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
15264
15264
|
}
|
|
15265
15265
|
function D(A) {
|
|
@@ -15282,7 +15282,7 @@ function c1(e) {
|
|
|
15282
15282
|
const P = this.stack.pop();
|
|
15283
15283
|
P.value += this.sliceSerialize(A), P.position.end = Ot(A.end);
|
|
15284
15284
|
}
|
|
15285
|
-
function
|
|
15285
|
+
function R(A) {
|
|
15286
15286
|
const P = this.stack[this.stack.length - 1];
|
|
15287
15287
|
if (this.data.atHardBreak) {
|
|
15288
15288
|
const q = P.children[P.children.length - 1];
|
|
@@ -15291,7 +15291,7 @@ function c1(e) {
|
|
|
15291
15291
|
}
|
|
15292
15292
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(P.type) && (E.call(this, A), b.call(this, A));
|
|
15293
15293
|
}
|
|
15294
|
-
function
|
|
15294
|
+
function N() {
|
|
15295
15295
|
this.data.atHardBreak = !0;
|
|
15296
15296
|
}
|
|
15297
15297
|
function T() {
|
|
@@ -16106,10 +16106,10 @@ function W1(e) {
|
|
|
16106
16106
|
children: Array.isArray(v) ? v : [v]
|
|
16107
16107
|
});
|
|
16108
16108
|
}
|
|
16109
|
-
const
|
|
16110
|
-
if (
|
|
16111
|
-
const v =
|
|
16112
|
-
v && v.type === "text" ? v.value += " " :
|
|
16109
|
+
const S = u[u.length - 1];
|
|
16110
|
+
if (S && S.type === "element" && S.tagName === "p") {
|
|
16111
|
+
const v = S.children[S.children.length - 1];
|
|
16112
|
+
v && v.type === "text" ? v.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...p);
|
|
16113
16113
|
} else
|
|
16114
16114
|
u.push(...p);
|
|
16115
16115
|
const g = {
|
|
@@ -16254,7 +16254,7 @@ function Kh(e, t, n, r) {
|
|
|
16254
16254
|
}
|
|
16255
16255
|
return h;
|
|
16256
16256
|
function h() {
|
|
16257
|
-
let d = Gh, p, m,
|
|
16257
|
+
let d = Gh, p, m, S;
|
|
16258
16258
|
if ((!t || o(l, c, u[u.length - 1] || void 0)) && (d = Q1(n(l, u)), d[0] === zs))
|
|
16259
16259
|
return d;
|
|
16260
16260
|
if ("children" in l && l.children) {
|
|
@@ -16263,9 +16263,9 @@ function Kh(e, t, n, r) {
|
|
|
16263
16263
|
l
|
|
16264
16264
|
);
|
|
16265
16265
|
if (g.children && d[0] !== J1)
|
|
16266
|
-
for (m = (r ? g.children.length : -1) + s,
|
|
16266
|
+
for (m = (r ? g.children.length : -1) + s, S = u.concat(g); m > -1 && m < g.children.length; ) {
|
|
16267
16267
|
const v = g.children[m];
|
|
16268
|
-
if (p = a(v, m,
|
|
16268
|
+
if (p = a(v, m, S)(), p[0] === zs)
|
|
16269
16269
|
return p;
|
|
16270
16270
|
m = typeof p[1] == "number" ? p[1] : m + s;
|
|
16271
16271
|
}
|
|
@@ -16312,7 +16312,7 @@ function eC(e, t) {
|
|
|
16312
16312
|
return d(a, u, f);
|
|
16313
16313
|
if (a.options.passThrough && a.options.passThrough.includes(h)) {
|
|
16314
16314
|
if ("children" in u) {
|
|
16315
|
-
const { children: m, ...
|
|
16315
|
+
const { children: m, ...S } = u, g = wr(S);
|
|
16316
16316
|
return g.children = a.all(u), g;
|
|
16317
16317
|
}
|
|
16318
16318
|
return wr(u);
|
|
@@ -16436,9 +16436,9 @@ function sC() {
|
|
|
16436
16436
|
return c[u];
|
|
16437
16437
|
};
|
|
16438
16438
|
return Uo = function l() {
|
|
16439
|
-
var c, u, f, h, d, p, m = arguments[0],
|
|
16440
|
-
for (typeof m == "boolean" && (v = m, m = arguments[1] || {},
|
|
16441
|
-
if (c = arguments[
|
|
16439
|
+
var c, u, f, h, d, p, m = arguments[0], S = 1, g = arguments.length, v = !1;
|
|
16440
|
+
for (typeof m == "boolean" && (v = m, m = arguments[1] || {}, S = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); S < g; ++S)
|
|
16441
|
+
if (c = arguments[S], c != null)
|
|
16442
16442
|
for (u in c)
|
|
16443
16443
|
f = a(m, u), h = a(c, u), m !== h && (v && h && (o(h) || (d = i(h))) ? (d ? (d = !1, p = f && i(f) ? f : []) : p = f && o(f) ? f : {}, s(m, { name: u, newValue: l(v, p, h) })) : typeof h < "u" && s(m, { name: u, newValue: h }));
|
|
16444
16444
|
return m;
|
|
@@ -18108,7 +18108,7 @@ function VC(e, t, n) {
|
|
|
18108
18108
|
function l(c, u) {
|
|
18109
18109
|
const f = u[u.length - 1], h = o[s][0], d = o[s][1];
|
|
18110
18110
|
let p = 0;
|
|
18111
|
-
const
|
|
18111
|
+
const S = f.children.indexOf(c);
|
|
18112
18112
|
let g = !1, v = [];
|
|
18113
18113
|
h.lastIndex = 0;
|
|
18114
18114
|
let k = h.exec(c.value);
|
|
@@ -18118,15 +18118,15 @@ function VC(e, t, n) {
|
|
|
18118
18118
|
input: k.input,
|
|
18119
18119
|
stack: [...u, c]
|
|
18120
18120
|
};
|
|
18121
|
-
let
|
|
18122
|
-
if (typeof
|
|
18121
|
+
let _ = d(...k, I);
|
|
18122
|
+
if (typeof _ == "string" && (_ = _.length > 0 ? { type: "text", value: _ } : void 0), _ === !1 ? h.lastIndex = O + 1 : (p !== O && v.push({
|
|
18123
18123
|
type: "text",
|
|
18124
18124
|
value: c.value.slice(p, O)
|
|
18125
|
-
}), Array.isArray(
|
|
18125
|
+
}), Array.isArray(_) ? v.push(..._) : _ && v.push(_), p = O + k[0].length, g = !0), !h.global)
|
|
18126
18126
|
break;
|
|
18127
18127
|
k = h.exec(c.value);
|
|
18128
18128
|
}
|
|
18129
|
-
return g ? (p < c.value.length && v.push({ type: "text", value: c.value.slice(p) }), f.children.splice(
|
|
18129
|
+
return g ? (p < c.value.length && v.push({ type: "text", value: c.value.slice(p) }), f.children.splice(S, 1, ...v)) : v = [c], S + v.length;
|
|
18130
18130
|
}
|
|
18131
18131
|
}
|
|
18132
18132
|
function GC(e) {
|
|
@@ -18413,17 +18413,17 @@ function II(e, t) {
|
|
|
18413
18413
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || CI, o = [], s = [], a = [], l = [];
|
|
18414
18414
|
let c = 0, u = -1;
|
|
18415
18415
|
for (; ++u < e.length; ) {
|
|
18416
|
-
const m = [],
|
|
18416
|
+
const m = [], S = [];
|
|
18417
18417
|
let g = -1;
|
|
18418
18418
|
for (e[u].length > c && (c = e[u].length); ++g < e[u].length; ) {
|
|
18419
18419
|
const v = TI(e[u][g]);
|
|
18420
18420
|
if (n.alignDelimiters !== !1) {
|
|
18421
18421
|
const k = i(v);
|
|
18422
|
-
|
|
18422
|
+
S[g] = k, (l[g] === void 0 || k > l[g]) && (l[g] = k);
|
|
18423
18423
|
}
|
|
18424
18424
|
m.push(v);
|
|
18425
18425
|
}
|
|
18426
|
-
s[u] = m, a[u] =
|
|
18426
|
+
s[u] = m, a[u] = S;
|
|
18427
18427
|
}
|
|
18428
18428
|
let f = -1;
|
|
18429
18429
|
if (typeof r == "object" && "length" in r)
|
|
@@ -18438,27 +18438,27 @@ function II(e, t) {
|
|
|
18438
18438
|
const h = [], d = [];
|
|
18439
18439
|
for (; ++f < c; ) {
|
|
18440
18440
|
const m = o[f];
|
|
18441
|
-
let
|
|
18442
|
-
m === 99 ? (
|
|
18441
|
+
let S = "", g = "";
|
|
18442
|
+
m === 99 ? (S = ":", g = ":") : m === 108 ? S = ":" : m === 114 && (g = ":");
|
|
18443
18443
|
let v = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
18444
18444
|
1,
|
|
18445
|
-
l[f] -
|
|
18445
|
+
l[f] - S.length - g.length
|
|
18446
18446
|
);
|
|
18447
|
-
const k =
|
|
18448
|
-
n.alignDelimiters !== !1 && (v =
|
|
18447
|
+
const k = S + "-".repeat(v) + g;
|
|
18448
|
+
n.alignDelimiters !== !1 && (v = S.length + v + g.length, v > l[f] && (l[f] = v), d[f] = v), h[f] = k;
|
|
18449
18449
|
}
|
|
18450
18450
|
s.splice(1, 0, h), a.splice(1, 0, d), u = -1;
|
|
18451
18451
|
const p = [];
|
|
18452
18452
|
for (; ++u < s.length; ) {
|
|
18453
|
-
const m = s[u],
|
|
18453
|
+
const m = s[u], S = a[u];
|
|
18454
18454
|
f = -1;
|
|
18455
18455
|
const g = [];
|
|
18456
18456
|
for (; ++f < c; ) {
|
|
18457
18457
|
const v = m[f] || "";
|
|
18458
18458
|
let k = "", O = "";
|
|
18459
18459
|
if (n.alignDelimiters !== !1) {
|
|
18460
|
-
const I = l[f] - (
|
|
18461
|
-
|
|
18460
|
+
const I = l[f] - (S[f] || 0), _ = o[f];
|
|
18461
|
+
_ === 114 ? k = " ".repeat(I) : _ === 99 ? I % 2 ? (k = " ".repeat(I / 2 + 0.5), O = " ".repeat(I / 2 - 0.5)) : (k = " ".repeat(I / 2), O = k) : O = " ".repeat(I);
|
|
18462
18462
|
}
|
|
18463
18463
|
n.delimiterStart !== !1 && !f && g.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
18464
18464
|
// empty: there will be a closing space.
|
|
@@ -19154,17 +19154,17 @@ function hT(e) {
|
|
|
19154
19154
|
tableRow: a
|
|
19155
19155
|
}
|
|
19156
19156
|
};
|
|
19157
|
-
function s(d, p, m,
|
|
19158
|
-
return c(u(d, m,
|
|
19157
|
+
function s(d, p, m, S) {
|
|
19158
|
+
return c(u(d, m, S), d.align);
|
|
19159
19159
|
}
|
|
19160
|
-
function a(d, p, m,
|
|
19161
|
-
const g = f(d, m,
|
|
19160
|
+
function a(d, p, m, S) {
|
|
19161
|
+
const g = f(d, m, S), v = c([g]);
|
|
19162
19162
|
return v.slice(0, v.indexOf(`
|
|
19163
19163
|
`));
|
|
19164
19164
|
}
|
|
19165
|
-
function l(d, p, m,
|
|
19165
|
+
function l(d, p, m, S) {
|
|
19166
19166
|
const g = m.enter("tableCell"), v = m.enter("phrasing"), k = m.containerPhrasing(d, {
|
|
19167
|
-
...
|
|
19167
|
+
...S,
|
|
19168
19168
|
before: o,
|
|
19169
19169
|
after: o
|
|
19170
19170
|
});
|
|
@@ -19182,24 +19182,24 @@ function hT(e) {
|
|
|
19182
19182
|
});
|
|
19183
19183
|
}
|
|
19184
19184
|
function u(d, p, m) {
|
|
19185
|
-
const
|
|
19185
|
+
const S = d.children;
|
|
19186
19186
|
let g = -1;
|
|
19187
19187
|
const v = [], k = p.enter("table");
|
|
19188
|
-
for (; ++g <
|
|
19189
|
-
v[g] = f(
|
|
19188
|
+
for (; ++g < S.length; )
|
|
19189
|
+
v[g] = f(S[g], p, m);
|
|
19190
19190
|
return k(), v;
|
|
19191
19191
|
}
|
|
19192
19192
|
function f(d, p, m) {
|
|
19193
|
-
const
|
|
19193
|
+
const S = d.children;
|
|
19194
19194
|
let g = -1;
|
|
19195
19195
|
const v = [], k = p.enter("tableRow");
|
|
19196
|
-
for (; ++g <
|
|
19197
|
-
v[g] = l(
|
|
19196
|
+
for (; ++g < S.length; )
|
|
19197
|
+
v[g] = l(S[g], d, p, m);
|
|
19198
19198
|
return k(), v;
|
|
19199
19199
|
}
|
|
19200
19200
|
function h(d, p, m) {
|
|
19201
|
-
let
|
|
19202
|
-
return m.stack.includes("tableCell") && (
|
|
19201
|
+
let S = hp.inlineCode(d, p, m);
|
|
19202
|
+
return m.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
19203
19203
|
}
|
|
19204
19204
|
}
|
|
19205
19205
|
function pT() {
|
|
@@ -19704,8 +19704,8 @@ function UT(e) {
|
|
|
19704
19704
|
if (p === 126)
|
|
19705
19705
|
return f > 1 ? l(p) : (s.consume(p), f++, d);
|
|
19706
19706
|
if (f < 2 && !n) return l(p);
|
|
19707
|
-
const
|
|
19708
|
-
return
|
|
19707
|
+
const S = s.exit("strikethroughSequenceTemporary"), g = Ln(p);
|
|
19708
|
+
return S._open = !g || g === 2 && !!m, S._close = !m || m === 2 && !!g, a(p);
|
|
19709
19709
|
}
|
|
19710
19710
|
}
|
|
19711
19711
|
}
|
|
@@ -19813,15 +19813,15 @@ function qT(e, t, n) {
|
|
|
19813
19813
|
let i = 0, o = 0, s;
|
|
19814
19814
|
return a;
|
|
19815
19815
|
function a(b) {
|
|
19816
|
-
let
|
|
19817
|
-
for (;
|
|
19818
|
-
const M = r.events[
|
|
19816
|
+
let R = r.events.length - 1;
|
|
19817
|
+
for (; R > -1; ) {
|
|
19818
|
+
const M = r.events[R][1].type;
|
|
19819
19819
|
if (M === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
19820
|
-
M === "linePrefix")
|
|
19820
|
+
M === "linePrefix") R--;
|
|
19821
19821
|
else break;
|
|
19822
19822
|
}
|
|
19823
|
-
const
|
|
19824
|
-
return T ===
|
|
19823
|
+
const N = R > -1 ? r.events[R][1].type : null, T = N === "tableHead" || N === "tableRow" ? _ : l;
|
|
19824
|
+
return T === _ && r.parser.lazy[r.now().line] ? n(b) : T(b);
|
|
19825
19825
|
}
|
|
19826
19826
|
function l(b) {
|
|
19827
19827
|
return e.enter("tableHead"), e.enter("tableRow"), c(b);
|
|
@@ -19842,12 +19842,12 @@ function qT(e, t, n) {
|
|
|
19842
19842
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(b) : (e.enter("tableDelimiterRow"), s = !1, X(b) ? ie(e, p, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : p(b));
|
|
19843
19843
|
}
|
|
19844
19844
|
function p(b) {
|
|
19845
|
-
return b === 45 || b === 58 ?
|
|
19845
|
+
return b === 45 || b === 58 ? S(b) : b === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), m) : I(b);
|
|
19846
19846
|
}
|
|
19847
19847
|
function m(b) {
|
|
19848
|
-
return X(b) ? ie(e,
|
|
19848
|
+
return X(b) ? ie(e, S, "whitespace")(b) : S(b);
|
|
19849
19849
|
}
|
|
19850
|
-
function
|
|
19850
|
+
function S(b) {
|
|
19851
19851
|
return b === 58 ? (o += 1, s = !0, e.enter("tableDelimiterMarker"), e.consume(b), e.exit("tableDelimiterMarker"), g) : b === 45 ? (o += 1, g(b)) : b === null || B(b) ? O(b) : I(b);
|
|
19852
19852
|
}
|
|
19853
19853
|
function g(b) {
|
|
@@ -19865,7 +19865,7 @@ function qT(e, t, n) {
|
|
|
19865
19865
|
function I(b) {
|
|
19866
19866
|
return n(b);
|
|
19867
19867
|
}
|
|
19868
|
-
function
|
|
19868
|
+
function _(b) {
|
|
19869
19869
|
return e.enter("tableRow"), D(b);
|
|
19870
19870
|
}
|
|
19871
19871
|
function D(b) {
|
|
@@ -20027,14 +20027,14 @@ function Su({
|
|
|
20027
20027
|
}) {
|
|
20028
20028
|
const a = !t, [l, c] = re(!1), [u, f] = re(
|
|
20029
20029
|
null
|
|
20030
|
-
), [h, d] = re(!1), [p, m] = re(!1),
|
|
20030
|
+
), [h, d] = re(!1), [p, m] = re(!1), S = Pa(), { collectUserFeedback: g, onMessageClick: v } = ao(), k = !e.isWelcomeMessage && typeof v == "function", O = Sx(
|
|
20031
20031
|
e.content,
|
|
20032
20032
|
15,
|
|
20033
20033
|
n && a
|
|
20034
20034
|
), I = W({
|
|
20035
|
-
[
|
|
20036
|
-
[
|
|
20037
|
-
}),
|
|
20035
|
+
[S.botBubbleColor]: e.sender === "assistant",
|
|
20036
|
+
[S.userBubbleColor]: e.sender === "user"
|
|
20037
|
+
}), _ = W(
|
|
20038
20038
|
"text-gray-400 hover:text-primary transition-colors"
|
|
20039
20039
|
), D = () => n && e.isThinking ? /* @__PURE__ */ x("div", { className: "flex flex-col justify-center flex-1", children: /* @__PURE__ */ x(
|
|
20040
20040
|
"p",
|
|
@@ -20137,7 +20137,7 @@ function Su({
|
|
|
20137
20137
|
await navigator.clipboard.writeText(e.content), d(!0), setTimeout(() => d(!1), 2e3);
|
|
20138
20138
|
},
|
|
20139
20139
|
className: W(
|
|
20140
|
-
|
|
20140
|
+
_,
|
|
20141
20141
|
h && "text-primary"
|
|
20142
20142
|
),
|
|
20143
20143
|
title: "Copy message",
|
|
@@ -20150,7 +20150,7 @@ function Su({
|
|
|
20150
20150
|
{
|
|
20151
20151
|
onClick: () => f(u === "up" ? null : "up"),
|
|
20152
20152
|
className: W(
|
|
20153
|
-
|
|
20153
|
+
_,
|
|
20154
20154
|
u === "up" && "text-primary"
|
|
20155
20155
|
),
|
|
20156
20156
|
children: /* @__PURE__ */ x(dm, { size: 16 })
|
|
@@ -20163,7 +20163,7 @@ function Su({
|
|
|
20163
20163
|
u === "down" ? null : "down"
|
|
20164
20164
|
),
|
|
20165
20165
|
className: W(
|
|
20166
|
-
|
|
20166
|
+
_,
|
|
20167
20167
|
u === "down" && "text-primary"
|
|
20168
20168
|
),
|
|
20169
20169
|
children: /* @__PURE__ */ x(hm, { size: 16 })
|
|
@@ -20176,7 +20176,7 @@ function Su({
|
|
|
20176
20176
|
onClick: () => {
|
|
20177
20177
|
v(e), m(!0), setTimeout(() => m(!1), 2e3);
|
|
20178
20178
|
},
|
|
20179
|
-
className: W(
|
|
20179
|
+
className: W(_, {
|
|
20180
20180
|
"text-primary": p
|
|
20181
20181
|
}),
|
|
20182
20182
|
children: /* @__PURE__ */ x(pm, { size: 16 })
|
|
@@ -20355,7 +20355,7 @@ function iR() {
|
|
|
20355
20355
|
] })
|
|
20356
20356
|
] }),
|
|
20357
20357
|
/* @__PURE__ */ x("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: f.map((h, d, p) => {
|
|
20358
|
-
const m = Array.isArray(h) ? h.map((
|
|
20358
|
+
const m = Array.isArray(h) ? h.map((S) => S.id).join("-") : h.id;
|
|
20359
20359
|
return /* @__PURE__ */ x(
|
|
20360
20360
|
tR,
|
|
20361
20361
|
{
|
|
@@ -20928,9 +20928,9 @@ function yR({
|
|
|
20928
20928
|
response: C.response
|
|
20929
20929
|
}), d = ge(
|
|
20930
20930
|
(C, E) => {
|
|
20931
|
-
const b = E.map(f),
|
|
20932
|
-
for (let
|
|
20933
|
-
if (C[
|
|
20931
|
+
const b = E.map(f), R = Math.min(C.length, b.length);
|
|
20932
|
+
for (let N = 0; N < R; N++)
|
|
20933
|
+
if (C[N].id !== b[N].id)
|
|
20934
20934
|
return !1;
|
|
20935
20935
|
return !0;
|
|
20936
20936
|
},
|
|
@@ -20944,15 +20944,15 @@ function yR({
|
|
|
20944
20944
|
[o, t]
|
|
20945
20945
|
), m = ge(
|
|
20946
20946
|
(C, E = !1) => {
|
|
20947
|
-
const b = n.filter((
|
|
20948
|
-
if (E &&
|
|
20949
|
-
const
|
|
20950
|
-
r([...b, ...
|
|
20947
|
+
const b = n.filter((N) => N.isWelcomeMessage), R = C.map(f);
|
|
20948
|
+
if (E && R.length > 0) {
|
|
20949
|
+
const N = C[C.length - 1];
|
|
20950
|
+
r([...b, ...R.slice(0, -1)]), p(N);
|
|
20951
20951
|
} else
|
|
20952
|
-
r([...b, ...
|
|
20952
|
+
r([...b, ...R]);
|
|
20953
20953
|
},
|
|
20954
20954
|
[n, r, p]
|
|
20955
|
-
),
|
|
20955
|
+
), S = ge(
|
|
20956
20956
|
(C) => {
|
|
20957
20957
|
if (C.role === "assistant")
|
|
20958
20958
|
o(
|
|
@@ -20960,10 +20960,10 @@ function yR({
|
|
|
20960
20960
|
t
|
|
20961
20961
|
);
|
|
20962
20962
|
else {
|
|
20963
|
-
const E = n.filter((
|
|
20964
|
-
(
|
|
20965
|
-
),
|
|
20966
|
-
r([...E, ...b,
|
|
20963
|
+
const E = n.filter((N) => N.isWelcomeMessage), b = n.filter(
|
|
20964
|
+
(N) => !N.isThinking && !N.isWelcomeMessage
|
|
20965
|
+
), R = f(C);
|
|
20966
|
+
r([...E, ...b, R]);
|
|
20967
20967
|
}
|
|
20968
20968
|
l.current = Math.max(
|
|
20969
20969
|
0,
|
|
@@ -20973,8 +20973,8 @@ function yR({
|
|
|
20973
20973
|
[o, t, n, r]
|
|
20974
20974
|
), g = ge(
|
|
20975
20975
|
(C, E) => {
|
|
20976
|
-
const
|
|
20977
|
-
m(C,
|
|
20976
|
+
const R = E[E.length - 1].role === "assistant";
|
|
20977
|
+
m(C, R), l.current = Math.max(
|
|
20978
20978
|
0,
|
|
20979
20979
|
l.current - E.length
|
|
20980
20980
|
);
|
|
@@ -20983,16 +20983,16 @@ function yR({
|
|
|
20983
20983
|
), v = ge(
|
|
20984
20984
|
(C, E, b) => {
|
|
20985
20985
|
if (E.length > 0) {
|
|
20986
|
-
const
|
|
20987
|
-
m(C,
|
|
20986
|
+
const N = E[E.length - 1].role === "assistant";
|
|
20987
|
+
m(C, N), l.current = Math.max(
|
|
20988
20988
|
0,
|
|
20989
20989
|
l.current - E.length
|
|
20990
20990
|
);
|
|
20991
20991
|
} else {
|
|
20992
|
-
const
|
|
20992
|
+
const R = n.filter((T) => T.isWelcomeMessage), N = C.map(f);
|
|
20993
20993
|
r([
|
|
20994
|
-
...N,
|
|
20995
20994
|
...R,
|
|
20995
|
+
...N,
|
|
20996
20996
|
...b
|
|
20997
20997
|
]);
|
|
20998
20998
|
}
|
|
@@ -21003,16 +21003,16 @@ function yR({
|
|
|
21003
21003
|
try {
|
|
21004
21004
|
const C = await e.getChatHistory(t), E = n.filter(
|
|
21005
21005
|
(M) => !M.isThinking && !M.isWelcomeMessage
|
|
21006
|
-
), b = new Set(E.map((M) => M.id)),
|
|
21006
|
+
), b = new Set(E.map((M) => M.id)), R = new Set(C.map((M) => M.message_id)), N = C.filter(
|
|
21007
21007
|
(M) => !b.has(M.message_id)
|
|
21008
21008
|
), T = E.filter(
|
|
21009
|
-
(M) => !
|
|
21009
|
+
(M) => !R.has(M.id)
|
|
21010
21010
|
);
|
|
21011
|
-
if (!(
|
|
21012
|
-
const M = d(E, C), F =
|
|
21013
|
-
M && F ?
|
|
21011
|
+
if (!(N.length === 0 && T.length === 0)) {
|
|
21012
|
+
const M = d(E, C), F = N.length === 1 && T.length === 0, z = N.length > 1 && T.length === 0;
|
|
21013
|
+
M && F ? S(N[0]) : M && z ? g(C, N) : v(
|
|
21014
21014
|
C,
|
|
21015
|
-
|
|
21015
|
+
N,
|
|
21016
21016
|
T
|
|
21017
21017
|
);
|
|
21018
21018
|
}
|
|
@@ -21031,7 +21031,7 @@ function yR({
|
|
|
21031
21031
|
t,
|
|
21032
21032
|
n,
|
|
21033
21033
|
d,
|
|
21034
|
-
|
|
21034
|
+
S,
|
|
21035
21035
|
g,
|
|
21036
21036
|
v
|
|
21037
21037
|
]), O = ge(() => {
|
|
@@ -21042,7 +21042,7 @@ function yR({
|
|
|
21042
21042
|
s.current = setTimeout(k, C);
|
|
21043
21043
|
}, [t, k]), I = ge(() => {
|
|
21044
21044
|
c.current = !1, u(), l.current = 0;
|
|
21045
|
-
}, []),
|
|
21045
|
+
}, []), _ = ge(
|
|
21046
21046
|
(C) => {
|
|
21047
21047
|
const E = a.current;
|
|
21048
21048
|
if (a.current = C, E !== C && c.current) {
|
|
@@ -21053,13 +21053,13 @@ function yR({
|
|
|
21053
21053
|
},
|
|
21054
21054
|
[k]
|
|
21055
21055
|
), D = () => {
|
|
21056
|
-
l.current += 1,
|
|
21056
|
+
l.current += 1, _("high");
|
|
21057
21057
|
};
|
|
21058
21058
|
return ke(() => {
|
|
21059
21059
|
const C = l.current > 0 ? "high" : i ? "medium" : "low";
|
|
21060
|
-
|
|
21061
|
-
}, [i,
|
|
21062
|
-
setPollingMode:
|
|
21060
|
+
_(C);
|
|
21061
|
+
}, [i, _]), ke(() => (t && e ? O() : I(), I), [t, e, O, I]), ke(() => I, [I]), {
|
|
21062
|
+
setPollingMode: _,
|
|
21063
21063
|
expectMessage: D,
|
|
21064
21064
|
startPolling: O,
|
|
21065
21065
|
stopPolling: I
|
|
@@ -21425,14 +21425,14 @@ const Np = (e) => {
|
|
|
21425
21425
|
message: "Invalid config parameter.",
|
|
21426
21426
|
recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
|
|
21427
21427
|
});
|
|
21428
|
-
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: s, aws_cognito_sign_up_verification_method: a, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: c, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: f, aws_cognito_signup_attributes: h, aws_cognito_social_providers: d, aws_cognito_username_attributes: p, aws_mandatory_sign_in: m, aws_mobile_analytics_app_id:
|
|
21429
|
-
|
|
21428
|
+
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: s, aws_cognito_sign_up_verification_method: a, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: c, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: f, aws_cognito_signup_attributes: h, aws_cognito_social_providers: d, aws_cognito_username_attributes: p, aws_mandatory_sign_in: m, aws_mobile_analytics_app_id: S, aws_mobile_analytics_app_region: g, aws_user_files_s3_bucket: v, aws_user_files_s3_bucket_region: k, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: O, aws_user_pools_id: I, aws_user_pools_web_client_id: _, geo: D, oauth: C, predictions: E, aws_cloud_logic_custom: b, Notifications: R, modelIntrospection: N } = e, T = {};
|
|
21429
|
+
S && (T.Analytics = {
|
|
21430
21430
|
Pinpoint: {
|
|
21431
|
-
appId:
|
|
21431
|
+
appId: S,
|
|
21432
21432
|
region: g
|
|
21433
21433
|
}
|
|
21434
21434
|
});
|
|
21435
|
-
const { InAppMessaging: M, Push: F } =
|
|
21435
|
+
const { InAppMessaging: M, Push: F } = R ?? {};
|
|
21436
21436
|
if (M?.AWSPinpoint || F?.AWSPinpoint) {
|
|
21437
21437
|
if (M?.AWSPinpoint) {
|
|
21438
21438
|
const { appId: K, region: xe } = M.AWSPinpoint;
|
|
@@ -21469,7 +21469,7 @@ const Np = (e) => {
|
|
|
21469
21469
|
region: i,
|
|
21470
21470
|
defaultAuthMode: K ?? "iam"
|
|
21471
21471
|
}
|
|
21472
|
-
},
|
|
21472
|
+
}, N && (T.API.GraphQL.modelIntrospection = N);
|
|
21473
21473
|
}
|
|
21474
21474
|
const z = l ? {
|
|
21475
21475
|
status: l && l.toLowerCase(),
|
|
@@ -21495,7 +21495,7 @@ const Np = (e) => {
|
|
|
21495
21495
|
allowGuestAccess: m !== "enable",
|
|
21496
21496
|
signUpVerificationMethod: a,
|
|
21497
21497
|
userAttributes: pe,
|
|
21498
|
-
userPoolClientId:
|
|
21498
|
+
userPoolClientId: _,
|
|
21499
21499
|
userPoolId: I,
|
|
21500
21500
|
mfa: z,
|
|
21501
21501
|
passwordFormat: se,
|
|
@@ -21919,8 +21919,8 @@ function JR(e, t, n) {
|
|
|
21919
21919
|
}
|
|
21920
21920
|
function a(d, p) {
|
|
21921
21921
|
r[d] && (i[d] = function(m) {
|
|
21922
|
-
return new Promise(function(
|
|
21923
|
-
o.push([d, m,
|
|
21922
|
+
return new Promise(function(S, g) {
|
|
21923
|
+
o.push([d, m, S, g]) > 1 || l(d, m);
|
|
21924
21924
|
});
|
|
21925
21925
|
}, p && (i[d] = p(i[d])));
|
|
21926
21926
|
}
|
|
@@ -22076,8 +22076,8 @@ var et = 64, ZR = 32, eA = new Uint32Array([
|
|
|
22076
22076
|
var m = (d >>> 7 | d << 25) ^ (d >>> 18 | d << 14) ^ d >>> 3;
|
|
22077
22077
|
this.temp[h] = (p + this.temp[h - 7] | 0) + (m + this.temp[h - 16] | 0);
|
|
22078
22078
|
}
|
|
22079
|
-
var
|
|
22080
|
-
f = u, u = c, c = l, l = a +
|
|
22079
|
+
var S = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & c ^ ~l & u) | 0) + (f + (eA[h] + this.temp[h] | 0) | 0) | 0, g = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & s ^ o & s) | 0;
|
|
22080
|
+
f = u, u = c, c = l, l = a + S | 0, a = s, s = o, o = i, i = S + g | 0;
|
|
22081
22081
|
}
|
|
22082
22082
|
r[0] += i, r[1] += o, r[2] += s, r[3] += a, r[4] += l, r[5] += c, r[6] += u, r[7] += f;
|
|
22083
22083
|
}, e;
|
|
@@ -23174,8 +23174,8 @@ function om(e, t) {
|
|
|
23174
23174
|
if (f.length > 120) {
|
|
23175
23175
|
for (var h = Math.floor(l / 80), d = l % 80, p = [], m = 0; m < f.length; m += 80)
|
|
23176
23176
|
p.push(f.slice(m, m + 80));
|
|
23177
|
-
return c + Ku([["".concat(s), p[0]]].concat(p.slice(1, h + 1).map(function(
|
|
23178
|
-
return ["",
|
|
23177
|
+
return c + Ku([["".concat(s), p[0]]].concat(p.slice(1, h + 1).map(function(S) {
|
|
23178
|
+
return ["", S];
|
|
23179
23179
|
}), [[" ", mi(d - 1) + "^"], ["", p[h + 1]]]));
|
|
23180
23180
|
}
|
|
23181
23181
|
return c + Ku([
|
|
@@ -23330,8 +23330,8 @@ var ts = /* @__PURE__ */ function(e) {
|
|
|
23330
23330
|
function n(r, i, o, s, a, l, c) {
|
|
23331
23331
|
var u, f, h, d;
|
|
23332
23332
|
GN(this, n), d = t.call(this, r), d.name = "GraphQLError", d.originalError = l ?? void 0, d.nodes = Xu(Array.isArray(i) ? i : i ? [i] : void 0);
|
|
23333
|
-
for (var p = [], m = 0,
|
|
23334
|
-
var g, v =
|
|
23333
|
+
for (var p = [], m = 0, S = (g = d.nodes) !== null && g !== void 0 ? g : []; m < S.length; m++) {
|
|
23334
|
+
var g, v = S[m], k = v.loc;
|
|
23335
23335
|
k != null && p.push(k);
|
|
23336
23336
|
}
|
|
23337
23337
|
p = Xu(p), d.source = o ?? ((u = p) === null || u === void 0 ? void 0 : u[0].source), d.positions = s ?? ((f = p) === null || f === void 0 ? void 0 : f.map(function(I) {
|
|
@@ -23771,7 +23771,7 @@ class CO {
|
|
|
23771
23771
|
const c = (d) => {
|
|
23772
23772
|
const p = JSON.parse(d.data);
|
|
23773
23773
|
if (p.id === r && p.type === "publish_success" && (this.awsRealTimeSocket && this.awsRealTimeSocket.removeEventListener("message", c), h(), a()), p.errors && p.errors.length > 0) {
|
|
23774
|
-
const m = p.errors.map((
|
|
23774
|
+
const m = p.errors.map((S) => S.errorType);
|
|
23775
23775
|
h(), l(new Error(`Publish errors: ${m.join(", ")}`));
|
|
23776
23776
|
}
|
|
23777
23777
|
}, u = (d) => {
|
|
@@ -24158,7 +24158,7 @@ class AO extends CO {
|
|
|
24158
24158
|
...o,
|
|
24159
24159
|
...i,
|
|
24160
24160
|
[_R]: PA(r)
|
|
24161
|
-
},
|
|
24161
|
+
}, S = {
|
|
24162
24162
|
id: n,
|
|
24163
24163
|
channel: c,
|
|
24164
24164
|
events: h !== void 0 ? rs(h) : void 0,
|
|
@@ -24176,7 +24176,7 @@ class AO extends CO {
|
|
|
24176
24176
|
},
|
|
24177
24177
|
type: s ? Ye.EVENT_PUBLISH : Ye.EVENT_SUBSCRIBE
|
|
24178
24178
|
};
|
|
24179
|
-
return JSON.stringify(
|
|
24179
|
+
return JSON.stringify(S);
|
|
24180
24180
|
}
|
|
24181
24181
|
_handleSubscriptionData(t) {
|
|
24182
24182
|
this.logger.debug(`subscription message from AWS AppSync Events: ${t.data}`);
|
|
@@ -24284,21 +24284,21 @@ function BO({
|
|
|
24284
24284
|
throw new Error(
|
|
24285
24285
|
"Cannot connect: Amplify not ready or missing conversationId"
|
|
24286
24286
|
);
|
|
24287
|
-
|
|
24287
|
+
S();
|
|
24288
24288
|
const k = `/default/chat/${v}`, O = await NO(k);
|
|
24289
24289
|
a.current = O, O.subscribe({
|
|
24290
24290
|
next: (I) => {
|
|
24291
24291
|
if (console.log("Received event:", I), I.type !== "data")
|
|
24292
24292
|
return console.warn("Unexpected event type:", I.type);
|
|
24293
|
-
const
|
|
24293
|
+
const _ = zO.safeParse(
|
|
24294
24294
|
I.event
|
|
24295
24295
|
);
|
|
24296
|
-
if (!
|
|
24296
|
+
if (!_.success)
|
|
24297
24297
|
return console.error(
|
|
24298
24298
|
"Invalid conversation response:",
|
|
24299
|
-
|
|
24299
|
+
_.error
|
|
24300
24300
|
);
|
|
24301
|
-
const D =
|
|
24301
|
+
const D = _.data, C = D.data.type;
|
|
24302
24302
|
switch (C) {
|
|
24303
24303
|
case "utterance":
|
|
24304
24304
|
return d(
|
|
@@ -24334,7 +24334,7 @@ function BO({
|
|
|
24334
24334
|
n?.(), l({ code: k, message: O });
|
|
24335
24335
|
}, m = (v) => {
|
|
24336
24336
|
t(v.data.content);
|
|
24337
|
-
},
|
|
24337
|
+
}, S = () => {
|
|
24338
24338
|
a.current && (a.current.close(), a.current = null);
|
|
24339
24339
|
}, g = async (v = 1e4) => s.current ? Promise.resolve() : new Promise((k, O) => {
|
|
24340
24340
|
const I = setTimeout(() => {
|
|
@@ -24343,10 +24343,10 @@ function BO({
|
|
|
24343
24343
|
`AppSync connection timeout: Failed to connect within ${v}ms`
|
|
24344
24344
|
)
|
|
24345
24345
|
);
|
|
24346
|
-
}, v),
|
|
24347
|
-
s.current ? (clearTimeout(I), k()) : setTimeout(
|
|
24346
|
+
}, v), _ = () => {
|
|
24347
|
+
s.current ? (clearTimeout(I), k()) : setTimeout(_, 100);
|
|
24348
24348
|
};
|
|
24349
|
-
|
|
24349
|
+
_();
|
|
24350
24350
|
});
|
|
24351
24351
|
return rl.listen(
|
|
24352
24352
|
"api",
|
|
@@ -24354,7 +24354,7 @@ function BO({
|
|
|
24354
24354
|
const { payload: k } = v;
|
|
24355
24355
|
k.event === lm && (k.data?.connectionState === "Connected" ? s.current = !0 : s.current = !1);
|
|
24356
24356
|
}
|
|
24357
|
-
), { connect: h, disconnect:
|
|
24357
|
+
), { connect: h, disconnect: S };
|
|
24358
24358
|
}
|
|
24359
24359
|
function UO({
|
|
24360
24360
|
appId: e,
|
|
@@ -24370,10 +24370,10 @@ function UO({
|
|
|
24370
24370
|
setCurrentConversation: u,
|
|
24371
24371
|
chatOpen: f
|
|
24372
24372
|
}) {
|
|
24373
|
-
const { saveConversationData: h, clearConversationData: d, updateLastActivity: p } = tl({ appId: e }), { publishApiError: m } = po(), { showCognition:
|
|
24374
|
-
(b,
|
|
24375
|
-
g(), l((
|
|
24376
|
-
const T =
|
|
24373
|
+
const { saveConversationData: h, clearConversationData: d, updateLastActivity: p } = tl({ appId: e }), { publishApiError: m } = po(), { showCognition: S, hideCognition: g } = xp(), v = ge(
|
|
24374
|
+
(b, R) => {
|
|
24375
|
+
g(), l((N) => {
|
|
24376
|
+
const T = N.filter((z) => !z.isThinking);
|
|
24377
24377
|
if (!b.response.content || T.some(
|
|
24378
24378
|
(z) => z.id === b.message_id
|
|
24379
24379
|
))
|
|
@@ -24388,7 +24388,7 @@ function UO({
|
|
|
24388
24388
|
}
|
|
24389
24389
|
];
|
|
24390
24390
|
return h(
|
|
24391
|
-
|
|
24391
|
+
R,
|
|
24392
24392
|
t,
|
|
24393
24393
|
F,
|
|
24394
24394
|
i
|
|
@@ -24397,13 +24397,13 @@ function UO({
|
|
|
24397
24397
|
},
|
|
24398
24398
|
[i, g, h, l, t]
|
|
24399
24399
|
), k = ge(() => {
|
|
24400
|
-
g(), l((b) => b.filter((
|
|
24400
|
+
g(), l((b) => b.filter((R) => !R.isThinking));
|
|
24401
24401
|
}, [l, g]), { connect: O, disconnect: I } = BO({
|
|
24402
24402
|
onReceiveMessage: v,
|
|
24403
|
-
onReceiveCognition:
|
|
24403
|
+
onReceiveCognition: S,
|
|
24404
24404
|
onError: k,
|
|
24405
24405
|
chatSettings: s
|
|
24406
|
-
}), { expectMessage:
|
|
24406
|
+
}), { expectMessage: _, stopPolling: D } = yR({
|
|
24407
24407
|
apiClient: o,
|
|
24408
24408
|
conversationId: c?.id || null,
|
|
24409
24409
|
messages: a,
|
|
@@ -24412,7 +24412,7 @@ function UO({
|
|
|
24412
24412
|
onReceiveMessage: v
|
|
24413
24413
|
}), C = ge(() => {
|
|
24414
24414
|
I(), D(), l(
|
|
24415
|
-
(b) => b.filter((
|
|
24415
|
+
(b) => b.filter((R) => Array.isArray(R) ? !1 : R.isWelcomeMessage)
|
|
24416
24416
|
), d(), u(null);
|
|
24417
24417
|
}, [
|
|
24418
24418
|
I,
|
|
@@ -24423,14 +24423,14 @@ function UO({
|
|
|
24423
24423
|
]), E = ge(
|
|
24424
24424
|
async (b) => {
|
|
24425
24425
|
if (!o) return;
|
|
24426
|
-
const
|
|
24426
|
+
const R = {
|
|
24427
24427
|
...b,
|
|
24428
24428
|
// Temporary ID
|
|
24429
24429
|
id: crypto.randomUUID()
|
|
24430
24430
|
};
|
|
24431
|
-
|
|
24432
|
-
const
|
|
24433
|
-
l(
|
|
24431
|
+
S();
|
|
24432
|
+
const N = [...a, R];
|
|
24433
|
+
l(N), p();
|
|
24434
24434
|
try {
|
|
24435
24435
|
let T = c?.id;
|
|
24436
24436
|
T || (T = (await o.createConversation({
|
|
@@ -24447,9 +24447,9 @@ function UO({
|
|
|
24447
24447
|
});
|
|
24448
24448
|
l(
|
|
24449
24449
|
(F) => F.map(
|
|
24450
|
-
(z) => z.id ===
|
|
24450
|
+
(z) => z.id === R.id ? { ...z, id: M.message_id } : z
|
|
24451
24451
|
)
|
|
24452
|
-
),
|
|
24452
|
+
), _();
|
|
24453
24453
|
} catch (T) {
|
|
24454
24454
|
throw g(), l(
|
|
24455
24455
|
(M) => M.filter((F) => !F.isThinking)
|
|
@@ -24458,7 +24458,7 @@ function UO({
|
|
|
24458
24458
|
},
|
|
24459
24459
|
[
|
|
24460
24460
|
o,
|
|
24461
|
-
|
|
24461
|
+
S,
|
|
24462
24462
|
a,
|
|
24463
24463
|
l,
|
|
24464
24464
|
p,
|
|
@@ -24466,7 +24466,7 @@ function UO({
|
|
|
24466
24466
|
r,
|
|
24467
24467
|
t,
|
|
24468
24468
|
i,
|
|
24469
|
-
|
|
24469
|
+
_,
|
|
24470
24470
|
u,
|
|
24471
24471
|
O,
|
|
24472
24472
|
g,
|
|
@@ -24601,18 +24601,18 @@ function WO({
|
|
|
24601
24601
|
baseURL: u,
|
|
24602
24602
|
appId: e
|
|
24603
24603
|
})
|
|
24604
|
-
), [h, d] = re(null), [p, m] = re(null), [
|
|
24604
|
+
), [h, d] = re(null), [p, m] = re(null), [S, g] = re([]), [v, k] = re(!1), I = HO(`sdk-boot-${e}`, () => f.boot()).fetch;
|
|
24605
24605
|
return ke(() => {
|
|
24606
24606
|
if (a())
|
|
24607
24607
|
l();
|
|
24608
24608
|
else {
|
|
24609
24609
|
const {
|
|
24610
|
-
conversationId:
|
|
24610
|
+
conversationId: _,
|
|
24611
24611
|
userId: D,
|
|
24612
24612
|
messages: C
|
|
24613
24613
|
} = c();
|
|
24614
|
-
|
|
24615
|
-
id:
|
|
24614
|
+
_ && D && (m({
|
|
24615
|
+
id: _
|
|
24616
24616
|
}), C && C.length > 0 && g(C));
|
|
24617
24617
|
}
|
|
24618
24618
|
}, [c, a, l]), ke(() => {
|
|
@@ -24624,7 +24624,7 @@ function WO({
|
|
|
24624
24624
|
return;
|
|
24625
24625
|
}
|
|
24626
24626
|
const E = D.chat_settings.welcome_message;
|
|
24627
|
-
d(D.chat_settings), E &&
|
|
24627
|
+
d(D.chat_settings), E && S.length === 0 && g([
|
|
24628
24628
|
{
|
|
24629
24629
|
id: crypto.randomUUID(),
|
|
24630
24630
|
content: E,
|
|
@@ -24634,7 +24634,7 @@ function WO({
|
|
|
24634
24634
|
}
|
|
24635
24635
|
]), k(!0);
|
|
24636
24636
|
})();
|
|
24637
|
-
}, [s,
|
|
24637
|
+
}, [s, S.length]), {
|
|
24638
24638
|
userId: r,
|
|
24639
24639
|
userName: n,
|
|
24640
24640
|
externalId: i,
|
|
@@ -24642,7 +24642,7 @@ function WO({
|
|
|
24642
24642
|
apiClient: f,
|
|
24643
24643
|
chatSettings: h,
|
|
24644
24644
|
currentConversation: p,
|
|
24645
|
-
messages:
|
|
24645
|
+
messages: S,
|
|
24646
24646
|
isReady: v
|
|
24647
24647
|
};
|
|
24648
24648
|
}
|
|
@@ -24685,16 +24685,16 @@ function VO({
|
|
|
24685
24685
|
deviceId: d,
|
|
24686
24686
|
apiClient: p,
|
|
24687
24687
|
chatSettings: m,
|
|
24688
|
-
currentConversation:
|
|
24688
|
+
currentConversation: S,
|
|
24689
24689
|
messages: g,
|
|
24690
24690
|
isReady: v
|
|
24691
24691
|
} = WO({
|
|
24692
24692
|
appId: t,
|
|
24693
24693
|
initialUserId: n,
|
|
24694
24694
|
initialUserName: r
|
|
24695
|
-
}), k = mR({ chatProps: i, chatSettings: m }), [O, I] = re(s ?? l),
|
|
24695
|
+
}), k = mR({ chatProps: i, chatSettings: m }), [O, I] = re(s ?? l), _ = ea(O, 200), [D, C] = re(
|
|
24696
24696
|
i?.messages ?? []
|
|
24697
|
-
), [E, b] = re(
|
|
24697
|
+
), [E, b] = re(S), [R, N] = re({
|
|
24698
24698
|
text: "",
|
|
24699
24699
|
isVisible: !1,
|
|
24700
24700
|
autoHideDelay: a
|
|
@@ -24715,8 +24715,8 @@ function VO({
|
|
|
24715
24715
|
ke(() => {
|
|
24716
24716
|
g.length > 0 && C(g);
|
|
24717
24717
|
}, [g]), ke(() => {
|
|
24718
|
-
|
|
24719
|
-
}, [
|
|
24718
|
+
S && b(S);
|
|
24719
|
+
}, [S]), ke(() => {
|
|
24720
24720
|
E && h && p?.identifyUser({
|
|
24721
24721
|
userId: u,
|
|
24722
24722
|
userName: f,
|
|
@@ -24726,13 +24726,13 @@ function VO({
|
|
|
24726
24726
|
});
|
|
24727
24727
|
}, [h, u, f, d, E, p]);
|
|
24728
24728
|
const F = ge(() => {
|
|
24729
|
-
|
|
24729
|
+
N((z) => ({
|
|
24730
24730
|
...z,
|
|
24731
24731
|
isVisible: !1
|
|
24732
24732
|
}));
|
|
24733
24733
|
}, []);
|
|
24734
24734
|
return ke(() => {
|
|
24735
|
-
m?.auto_display_welcome_message && m?.welcome_message && v &&
|
|
24735
|
+
m?.auto_display_welcome_message && m?.welcome_message && v && N((z) => ({
|
|
24736
24736
|
...z,
|
|
24737
24737
|
text: m.welcome_message || z.text,
|
|
24738
24738
|
isVisible: !0
|
|
@@ -24742,13 +24742,13 @@ function VO({
|
|
|
24742
24742
|
isMobile: l,
|
|
24743
24743
|
chatInterfaceProps: k,
|
|
24744
24744
|
chatOpen: O,
|
|
24745
|
-
chatOpenDebounced:
|
|
24745
|
+
chatOpenDebounced: _,
|
|
24746
24746
|
messages: D,
|
|
24747
24747
|
portalContainer: c,
|
|
24748
24748
|
onSendMessage: T,
|
|
24749
24749
|
setChatOpen: I,
|
|
24750
24750
|
onCleanMessages: M,
|
|
24751
|
-
proactiveMessage:
|
|
24751
|
+
proactiveMessage: R,
|
|
24752
24752
|
hideProactiveMessage: F
|
|
24753
24753
|
};
|
|
24754
24754
|
}
|
|
@@ -24798,26 +24798,27 @@ function XO({
|
|
|
24798
24798
|
cleanChatButton: a = !0,
|
|
24799
24799
|
initialOpen: l = !1,
|
|
24800
24800
|
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: c = !1,
|
|
24801
|
-
|
|
24802
|
-
|
|
24803
|
-
|
|
24804
|
-
|
|
24801
|
+
INTERNAL_ONLY_FEATURE_HIDE_PROACTIVE_MESSAGE: u = !1,
|
|
24802
|
+
INTERNAL_ONLY_BLOCK_STYLE: f = !1,
|
|
24803
|
+
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: h = void 0,
|
|
24804
|
+
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: d = void 0,
|
|
24805
|
+
INTERNAL_ONLY_ENVIRONMENT: p = "live"
|
|
24805
24806
|
}) {
|
|
24806
24807
|
const {
|
|
24807
|
-
isReady:
|
|
24808
|
-
isMobile:
|
|
24809
|
-
chatOpen:
|
|
24810
|
-
chatInterfaceProps:
|
|
24811
|
-
chatOpenDebounced:
|
|
24812
|
-
messages:
|
|
24813
|
-
portalContainer:
|
|
24814
|
-
onSendMessage:
|
|
24815
|
-
setChatOpen:
|
|
24816
|
-
onCleanMessages:
|
|
24817
|
-
proactiveMessage:
|
|
24818
|
-
hideProactiveMessage:
|
|
24808
|
+
isReady: m,
|
|
24809
|
+
isMobile: S,
|
|
24810
|
+
chatOpen: g,
|
|
24811
|
+
chatInterfaceProps: v,
|
|
24812
|
+
chatOpenDebounced: k,
|
|
24813
|
+
messages: O,
|
|
24814
|
+
portalContainer: I,
|
|
24815
|
+
onSendMessage: _,
|
|
24816
|
+
setChatOpen: D,
|
|
24817
|
+
onCleanMessages: C,
|
|
24818
|
+
proactiveMessage: E,
|
|
24819
|
+
hideProactiveMessage: b
|
|
24819
24820
|
} = VO({
|
|
24820
|
-
environment:
|
|
24821
|
+
environment: p,
|
|
24821
24822
|
appId: e,
|
|
24822
24823
|
userId: t,
|
|
24823
24824
|
userName: n,
|
|
@@ -24825,7 +24826,7 @@ function XO({
|
|
|
24825
24826
|
isMobile: o,
|
|
24826
24827
|
initialOpen: l,
|
|
24827
24828
|
proactiveMessageHideDelay: i
|
|
24828
|
-
}),
|
|
24829
|
+
}), R = () => /* @__PURE__ */ V(
|
|
24829
24830
|
"div",
|
|
24830
24831
|
{
|
|
24831
24832
|
style: {
|
|
@@ -24838,7 +24839,7 @@ function XO({
|
|
|
24838
24839
|
position: "fixed",
|
|
24839
24840
|
right: 12,
|
|
24840
24841
|
bottom: 4,
|
|
24841
|
-
...
|
|
24842
|
+
...f ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
|
|
24842
24843
|
},
|
|
24843
24844
|
children: [
|
|
24844
24845
|
/* @__PURE__ */ x("style", { children: sx }),
|
|
@@ -24859,17 +24860,17 @@ function XO({
|
|
|
24859
24860
|
/* @__PURE__ */ x("style", { children: Do })
|
|
24860
24861
|
] }),
|
|
24861
24862
|
style: {
|
|
24862
|
-
display:
|
|
24863
|
-
width:
|
|
24864
|
-
height:
|
|
24863
|
+
display: g || k ? "block" : "none",
|
|
24864
|
+
width: S ? "100vw" : "400px",
|
|
24865
|
+
height: S ? "100vh" : "700px",
|
|
24865
24866
|
border: "none",
|
|
24866
24867
|
zIndex: 2147483e3,
|
|
24867
24868
|
position: "fixed",
|
|
24868
|
-
top:
|
|
24869
|
-
left:
|
|
24870
|
-
right:
|
|
24871
|
-
bottom:
|
|
24872
|
-
...
|
|
24869
|
+
top: S ? 0 : void 0,
|
|
24870
|
+
left: S ? 0 : void 0,
|
|
24871
|
+
right: S ? 0 : 17,
|
|
24872
|
+
bottom: S ? 0 : 84,
|
|
24873
|
+
...f ? {
|
|
24873
24874
|
position: "relative",
|
|
24874
24875
|
top: 0,
|
|
24875
24876
|
left: 0,
|
|
@@ -24880,23 +24881,23 @@ function XO({
|
|
|
24880
24881
|
zIndex: 0
|
|
24881
24882
|
} : {}
|
|
24882
24883
|
},
|
|
24883
|
-
children:
|
|
24884
|
+
children: m ? /* @__PURE__ */ x(
|
|
24884
24885
|
dR,
|
|
24885
24886
|
{
|
|
24886
|
-
...
|
|
24887
|
-
isOpen:
|
|
24888
|
-
messages:
|
|
24889
|
-
onSendMessage:
|
|
24890
|
-
onMessageClick:
|
|
24891
|
-
isMobile:
|
|
24887
|
+
...v,
|
|
24888
|
+
isOpen: g,
|
|
24889
|
+
messages: O,
|
|
24890
|
+
onSendMessage: _,
|
|
24891
|
+
onMessageClick: h,
|
|
24892
|
+
isMobile: S,
|
|
24892
24893
|
closeButton: s,
|
|
24893
24894
|
cleanChatButton: a,
|
|
24894
|
-
onClose: () =>
|
|
24895
|
+
onClose: () => D(!1),
|
|
24895
24896
|
onCleanChat: () => {
|
|
24896
|
-
|
|
24897
|
+
C(), d?.();
|
|
24897
24898
|
}
|
|
24898
24899
|
}
|
|
24899
|
-
) : /* @__PURE__ */ x(Rp, { isOpen:
|
|
24900
|
+
) : /* @__PURE__ */ x(Rp, { isOpen: g, isMobile: S })
|
|
24900
24901
|
}
|
|
24901
24902
|
),
|
|
24902
24903
|
!c && /* @__PURE__ */ x(
|
|
@@ -24912,18 +24913,18 @@ function XO({
|
|
|
24912
24913
|
width: 48,
|
|
24913
24914
|
height: 48,
|
|
24914
24915
|
border: "none",
|
|
24915
|
-
zIndex:
|
|
24916
|
+
zIndex: S ? 2147482999 : 2147483e3
|
|
24916
24917
|
},
|
|
24917
24918
|
children: /* @__PURE__ */ x(
|
|
24918
24919
|
lx,
|
|
24919
24920
|
{
|
|
24920
|
-
isOpen:
|
|
24921
|
-
toggleBubble: () =>
|
|
24921
|
+
isOpen: g,
|
|
24922
|
+
toggleBubble: () => D((T) => !T)
|
|
24922
24923
|
}
|
|
24923
24924
|
)
|
|
24924
24925
|
}
|
|
24925
24926
|
),
|
|
24926
|
-
|
|
24927
|
+
v?.displayWelcomeMessages ? /* @__PURE__ */ x(
|
|
24927
24928
|
Qo,
|
|
24928
24929
|
{
|
|
24929
24930
|
className: "eloquentai-chat-proactive-message",
|
|
@@ -24933,24 +24934,24 @@ function XO({
|
|
|
24933
24934
|
bottom: 30,
|
|
24934
24935
|
right: 17
|
|
24935
24936
|
},
|
|
24936
|
-
children: /* @__PURE__ */ x(oh, { ...
|
|
24937
|
+
children: /* @__PURE__ */ x(oh, { ...v?.theme ?? {}, children: !u && E && !l && /* @__PURE__ */ x(
|
|
24937
24938
|
pR,
|
|
24938
24939
|
{
|
|
24939
|
-
message:
|
|
24940
|
-
isVisible:
|
|
24941
|
-
onDismiss:
|
|
24940
|
+
message: E.text,
|
|
24941
|
+
isVisible: E.isVisible,
|
|
24942
|
+
onDismiss: b,
|
|
24942
24943
|
onMessageClick: () => {
|
|
24943
|
-
|
|
24944
|
+
D(!0), b();
|
|
24944
24945
|
},
|
|
24945
|
-
autoHideDelay:
|
|
24946
|
+
autoHideDelay: E.autoHideDelay
|
|
24946
24947
|
}
|
|
24947
|
-
)
|
|
24948
|
+
) })
|
|
24948
24949
|
}
|
|
24949
24950
|
) : null
|
|
24950
24951
|
]
|
|
24951
24952
|
}
|
|
24952
24953
|
);
|
|
24953
|
-
return /* @__PURE__ */ x(Kt, { children:
|
|
24954
|
+
return /* @__PURE__ */ x(Kt, { children: f ? R() : I ? /* @__PURE__ */ x(hR, { container: I, children: R() }) : null });
|
|
24954
24955
|
}
|
|
24955
24956
|
function JO(e) {
|
|
24956
24957
|
return /* @__PURE__ */ x(YO, { children: /* @__PURE__ */ x(KO, { children: /* @__PURE__ */ x(XO, { ...e }) }) });
|