@eloquentai/chat-sdk 0.21.7-dev → 0.21.9-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/components/chat/chat.hook.d.ts +2 -1
- package/dist/components/chat/message-events.hook.d.ts +2 -1
- package/dist/components/chat/sdk-initialization.hook.d.ts +3 -1
- package/dist/index.mjs +854 -835
- package/dist/index.mjs.map +1 -1
- package/dist/lib/eloquent-ai-api-client.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -15,7 +15,7 @@ import { z as ge } from "zod";
|
|
15
15
|
import Tm 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] = "d67504a9-c57b-4242-9357-441f88bd7ef8", e._sentryDebugIdIdentifier = "sentry-dbid-d67504a9-c57b-4242-9357-441f88bd7ef8");
|
19
19
|
} catch {
|
20
20
|
}
|
21
21
|
const ee = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Xt = "9.30.0", ie = globalThis;
|
@@ -5011,7 +5011,7 @@ function l_(e, t) {
|
|
5011
5011
|
dataURLOptions: g = {},
|
5012
5012
|
inlineImages: v,
|
5013
5013
|
recordCanvas: x,
|
5014
|
-
keepIframeSrcFn:
|
5014
|
+
keepIframeSrcFn: O,
|
5015
5015
|
newlyAddedElement: I = !1
|
5016
5016
|
} = t, S = c_(n, r);
|
5017
5017
|
switch (e.nodeType) {
|
@@ -5046,7 +5046,7 @@ function l_(e, t) {
|
|
5046
5046
|
dataURLOptions: g,
|
5047
5047
|
inlineImages: v,
|
5048
5048
|
recordCanvas: x,
|
5049
|
-
keepIframeSrcFn:
|
5049
|
+
keepIframeSrcFn: O,
|
5050
5050
|
newlyAddedElement: I,
|
5051
5051
|
rootId: S,
|
5052
5052
|
maskTextClass: c,
|
@@ -5171,7 +5171,7 @@ function f_(e, t) {
|
|
5171
5171
|
unmaskTextClass: g,
|
5172
5172
|
maskTextSelector: v,
|
5173
5173
|
unmaskTextSelector: x
|
5174
|
-
} = t,
|
5174
|
+
} = t, O = _d(
|
5175
5175
|
e,
|
5176
5176
|
r,
|
5177
5177
|
i,
|
@@ -5180,20 +5180,20 @@ function f_(e, t) {
|
|
5180
5180
|
let S = {};
|
5181
5181
|
const D = e.attributes.length;
|
5182
5182
|
for (let E = 0; E < D; E++) {
|
5183
|
-
const
|
5184
|
-
|
5183
|
+
const b = e.attributes[E];
|
5184
|
+
b.name && !Sd(I, b.name, b.value) && (S[b.name] = wd(
|
5185
5185
|
n,
|
5186
5186
|
I,
|
5187
|
-
On(
|
5188
|
-
|
5187
|
+
On(b.name),
|
5188
|
+
b.value,
|
5189
5189
|
e,
|
5190
5190
|
l
|
5191
5191
|
));
|
5192
5192
|
}
|
5193
5193
|
if (I === "link" && s) {
|
5194
|
-
const E = Array.from(n.styleSheets).find((
|
5195
|
-
let
|
5196
|
-
E && (
|
5194
|
+
const E = Array.from(n.styleSheets).find((A) => A.href === e.href);
|
5195
|
+
let b = null;
|
5196
|
+
E && (b = Ti(E)), b && (S.rel = null, S.href = null, S.crossorigin = null, S._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) {
|
@@ -5203,28 +5203,28 @@ function f_(e, t) {
|
|
5203
5203
|
E && (S._cssText = Ai(E, to(n)));
|
5204
5204
|
}
|
5205
5205
|
if (I === "input" || I === "textarea" || I === "select" || I === "option") {
|
5206
|
-
const E = e,
|
5207
|
-
if (
|
5208
|
-
const
|
5206
|
+
const E = e, b = ga(E), A = Ri(E, _s(I), b), N = E.checked;
|
5207
|
+
if (b !== "submit" && b !== "button" && A) {
|
5208
|
+
const R = Mn(
|
5209
5209
|
E,
|
5210
5210
|
_,
|
5211
5211
|
v,
|
5212
5212
|
g,
|
5213
5213
|
x,
|
5214
5214
|
eo({
|
5215
|
-
type:
|
5215
|
+
type: b,
|
5216
5216
|
tagName: _s(I),
|
5217
5217
|
maskInputOptions: a
|
5218
5218
|
})
|
5219
5219
|
);
|
5220
5220
|
S.value = pr({
|
5221
|
-
isMasked:
|
5221
|
+
isMasked: R,
|
5222
5222
|
element: E,
|
5223
|
-
value:
|
5223
|
+
value: A,
|
5224
5224
|
maskInputFn: c
|
5225
5225
|
});
|
5226
5226
|
}
|
5227
|
-
|
5227
|
+
N && (S.checked = N);
|
5228
5228
|
}
|
5229
5229
|
if (I === "option" && (e.selected && !a.select ? S.selected = !0 : delete S.selected), I === "canvas" && h) {
|
5230
5230
|
if (e.__context === "2d")
|
@@ -5236,49 +5236,49 @@ function f_(e, t) {
|
|
5236
5236
|
const E = e.toDataURL(
|
5237
5237
|
u.type,
|
5238
5238
|
u.quality
|
5239
|
-
),
|
5240
|
-
|
5241
|
-
const
|
5239
|
+
), b = n.createElement("canvas");
|
5240
|
+
b.width = e.width, b.height = e.height;
|
5241
|
+
const A = b.toDataURL(
|
5242
5242
|
u.type,
|
5243
5243
|
u.quality
|
5244
5244
|
);
|
5245
|
-
E !==
|
5245
|
+
E !== A && (S.rr_dataURL = E);
|
5246
5246
|
}
|
5247
5247
|
}
|
5248
5248
|
if (I === "img" && f) {
|
5249
5249
|
dn || (dn = n.createElement("canvas"), ic = dn.getContext("2d"));
|
5250
|
-
const E = e,
|
5251
|
-
E.removeEventListener("load",
|
5250
|
+
const E = e, b = E.currentSrc || E.getAttribute("src") || "<unknown-src>", A = E.crossOrigin, N = () => {
|
5251
|
+
E.removeEventListener("load", N);
|
5252
5252
|
try {
|
5253
5253
|
dn.width = E.naturalWidth, dn.height = E.naturalHeight, ic.drawImage(E, 0, 0), S.rr_dataURL = dn.toDataURL(
|
5254
5254
|
u.type,
|
5255
5255
|
u.quality
|
5256
5256
|
);
|
5257
|
-
} catch (
|
5257
|
+
} catch (R) {
|
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
|
-
`Cannot inline img src=${
|
5263
|
+
`Cannot inline img src=${b}! Error: ${R}`
|
5264
5264
|
);
|
5265
5265
|
}
|
5266
|
-
E.crossOrigin === "anonymous" && (
|
5266
|
+
E.crossOrigin === "anonymous" && (A ? S.crossOrigin = A : 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") && (S.rr_mediaState = e.paused ? "paused" : "played", S.rr_mediaCurrentTime = e.currentTime), p || (e.scrollLeft && (S.rr_scrollLeft = e.scrollLeft), e.scrollTop && (S.rr_scrollTop = e.scrollTop)),
|
5271
|
-
const { width: E, height:
|
5270
|
+
if ((I === "audio" || I === "video") && (S.rr_mediaState = e.paused ? "paused" : "played", S.rr_mediaCurrentTime = e.currentTime), p || (e.scrollLeft && (S.rr_scrollLeft = e.scrollLeft), e.scrollTop && (S.rr_scrollTop = e.scrollTop)), O) {
|
5271
|
+
const { width: E, height: b } = e.getBoundingClientRect();
|
5272
5272
|
S = {
|
5273
5273
|
class: S.class,
|
5274
5274
|
rr_width: `${E}px`,
|
5275
|
-
rr_height: `${
|
5275
|
+
rr_height: `${b}px`
|
5276
5276
|
};
|
5277
5277
|
}
|
5278
|
-
I === "iframe" && !d(S.src) && (!
|
5279
|
-
let
|
5278
|
+
I === "iframe" && !d(S.src) && (!O && !bd(e) && (S.rr_src = S.src), delete S.src);
|
5279
|
+
let C;
|
5280
5280
|
try {
|
5281
|
-
customElements.get(I) && (
|
5281
|
+
customElements.get(I) && (C = !0);
|
5282
5282
|
} catch {
|
5283
5283
|
}
|
5284
5284
|
return {
|
@@ -5287,9 +5287,9 @@ function f_(e, t) {
|
|
5287
5287
|
attributes: S,
|
5288
5288
|
childNodes: [],
|
5289
5289
|
isSVG: i_(e) || void 0,
|
5290
|
-
needBlock:
|
5290
|
+
needBlock: O,
|
5291
5291
|
rootId: m,
|
5292
|
-
isCustom:
|
5292
|
+
isCustom: C
|
5293
5293
|
};
|
5294
5294
|
}
|
5295
5295
|
function fe(e) {
|
@@ -5346,17 +5346,17 @@ function _n(e, t) {
|
|
5346
5346
|
maskInputFn: g,
|
5347
5347
|
slimDOMOptions: v,
|
5348
5348
|
dataURLOptions: x = {},
|
5349
|
-
inlineImages:
|
5349
|
+
inlineImages: O = !1,
|
5350
5350
|
recordCanvas: I = !1,
|
5351
5351
|
onSerialize: S,
|
5352
5352
|
onIframeLoad: D,
|
5353
|
-
iframeLoadTimeout:
|
5353
|
+
iframeLoadTimeout: C = 5e3,
|
5354
5354
|
onStylesheetLoad: E,
|
5355
|
-
stylesheetLoadTimeout:
|
5356
|
-
keepIframeSrcFn:
|
5357
|
-
newlyAddedElement:
|
5355
|
+
stylesheetLoadTimeout: b = 5e3,
|
5356
|
+
keepIframeSrcFn: A = () => !1,
|
5357
|
+
newlyAddedElement: N = !1
|
5358
5358
|
} = t;
|
5359
|
-
let { preserveWhiteSpace:
|
5359
|
+
let { preserveWhiteSpace: R = !0 } = t;
|
5360
5360
|
const M = l_(e, {
|
5361
5361
|
doc: n,
|
5362
5362
|
mirror: r,
|
@@ -5374,15 +5374,15 @@ function _n(e, t) {
|
|
5374
5374
|
maskTextFn: _,
|
5375
5375
|
maskInputFn: g,
|
5376
5376
|
dataURLOptions: x,
|
5377
|
-
inlineImages:
|
5377
|
+
inlineImages: O,
|
5378
5378
|
recordCanvas: I,
|
5379
|
-
keepIframeSrcFn:
|
5380
|
-
newlyAddedElement:
|
5379
|
+
keepIframeSrcFn: A,
|
5380
|
+
newlyAddedElement: N
|
5381
5381
|
});
|
5382
5382
|
if (!M)
|
5383
5383
|
return console.warn(e, "not serialized"), null;
|
5384
5384
|
let F;
|
5385
|
-
r.hasNode(e) ? F = r.getId(e) : d_(M, v) || !
|
5385
|
+
r.hasNode(e) ? F = r.getId(e) : d_(M, v) || !R && M.type === Ee.Text && !M.isStyle && !M.textContent.replace(/^\s+|\s+$/gm, "").length ? F = mr : F = ya();
|
5386
5386
|
const z = Object.assign(M, { id: F });
|
5387
5387
|
if (r.add(e, z), F === mr)
|
5388
5388
|
return null;
|
@@ -5394,7 +5394,7 @@ function _n(e, t) {
|
|
5394
5394
|
J && or(J) && (z.isShadowHost = !0);
|
5395
5395
|
}
|
5396
5396
|
if ((z.type === Ee.Document || z.type === Ee.Element) && oe) {
|
5397
|
-
v.headWhitespace && z.type === Ee.Element && z.tagName === "head" && (
|
5397
|
+
v.headWhitespace && z.type === Ee.Element && z.tagName === "head" && (R = !1);
|
5398
5398
|
const J = {
|
5399
5399
|
doc: n,
|
5400
5400
|
mirror: r,
|
@@ -5414,15 +5414,15 @@ function _n(e, t) {
|
|
5414
5414
|
maskInputFn: g,
|
5415
5415
|
slimDOMOptions: v,
|
5416
5416
|
dataURLOptions: x,
|
5417
|
-
inlineImages:
|
5417
|
+
inlineImages: O,
|
5418
5418
|
recordCanvas: I,
|
5419
|
-
preserveWhiteSpace:
|
5419
|
+
preserveWhiteSpace: R,
|
5420
5420
|
onSerialize: S,
|
5421
5421
|
onIframeLoad: D,
|
5422
|
-
iframeLoadTimeout:
|
5422
|
+
iframeLoadTimeout: C,
|
5423
5423
|
onStylesheetLoad: E,
|
5424
|
-
stylesheetLoadTimeout:
|
5425
|
-
keepIframeSrcFn:
|
5424
|
+
stylesheetLoadTimeout: b,
|
5425
|
+
keepIframeSrcFn: A
|
5426
5426
|
};
|
5427
5427
|
for (const pe of Array.from(e.childNodes)) {
|
5428
5428
|
const y = _n(pe, J);
|
@@ -5463,15 +5463,15 @@ function _n(e, t) {
|
|
5463
5463
|
maskInputFn: g,
|
5464
5464
|
slimDOMOptions: v,
|
5465
5465
|
dataURLOptions: x,
|
5466
|
-
inlineImages:
|
5466
|
+
inlineImages: O,
|
5467
5467
|
recordCanvas: I,
|
5468
|
-
preserveWhiteSpace:
|
5468
|
+
preserveWhiteSpace: R,
|
5469
5469
|
onSerialize: S,
|
5470
5470
|
onIframeLoad: D,
|
5471
|
-
iframeLoadTimeout:
|
5471
|
+
iframeLoadTimeout: C,
|
5472
5472
|
onStylesheetLoad: E,
|
5473
|
-
stylesheetLoadTimeout:
|
5474
|
-
keepIframeSrcFn:
|
5473
|
+
stylesheetLoadTimeout: b,
|
5474
|
+
keepIframeSrcFn: A
|
5475
5475
|
});
|
5476
5476
|
pe && D(
|
5477
5477
|
e,
|
@@ -5479,7 +5479,7 @@ function _n(e, t) {
|
|
5479
5479
|
);
|
5480
5480
|
}
|
5481
5481
|
},
|
5482
|
-
|
5482
|
+
C
|
5483
5483
|
), z.type === Ee.Element && z.tagName === "link" && typeof z.attributes.rel == "string" && (z.attributes.rel === "stylesheet" || z.attributes.rel === "preload" && typeof z.attributes.href == "string" && md(z.attributes.href) === "css") && a_(
|
5484
5484
|
e,
|
5485
5485
|
() => {
|
@@ -5503,15 +5503,15 @@ function _n(e, t) {
|
|
5503
5503
|
maskInputFn: g,
|
5504
5504
|
slimDOMOptions: v,
|
5505
5505
|
dataURLOptions: x,
|
5506
|
-
inlineImages:
|
5506
|
+
inlineImages: O,
|
5507
5507
|
recordCanvas: I,
|
5508
|
-
preserveWhiteSpace:
|
5508
|
+
preserveWhiteSpace: R,
|
5509
5509
|
onSerialize: S,
|
5510
5510
|
onIframeLoad: D,
|
5511
|
-
iframeLoadTimeout:
|
5511
|
+
iframeLoadTimeout: C,
|
5512
5512
|
onStylesheetLoad: E,
|
5513
|
-
stylesheetLoadTimeout:
|
5514
|
-
keepIframeSrcFn:
|
5513
|
+
stylesheetLoadTimeout: b,
|
5514
|
+
keepIframeSrcFn: A
|
5515
5515
|
});
|
5516
5516
|
J && E(
|
5517
5517
|
e,
|
@@ -5519,7 +5519,7 @@ function _n(e, t) {
|
|
5519
5519
|
);
|
5520
5520
|
}
|
5521
5521
|
},
|
5522
|
-
|
5522
|
+
b
|
5523
5523
|
), z;
|
5524
5524
|
}
|
5525
5525
|
function h_(e, t) {
|
@@ -5542,13 +5542,13 @@ function h_(e, t) {
|
|
5542
5542
|
maskInputFn: g,
|
5543
5543
|
slimDOM: v = !1,
|
5544
5544
|
dataURLOptions: x,
|
5545
|
-
preserveWhiteSpace:
|
5545
|
+
preserveWhiteSpace: O,
|
5546
5546
|
onSerialize: I,
|
5547
5547
|
onIframeLoad: S,
|
5548
5548
|
iframeLoadTimeout: D,
|
5549
|
-
onStylesheetLoad:
|
5549
|
+
onStylesheetLoad: C,
|
5550
5550
|
stylesheetLoadTimeout: E,
|
5551
|
-
keepIframeSrcFn:
|
5551
|
+
keepIframeSrcFn: b = () => !1
|
5552
5552
|
} = t || {};
|
5553
5553
|
return _n(e, {
|
5554
5554
|
doc: e,
|
@@ -5602,13 +5602,13 @@ function h_(e, t) {
|
|
5602
5602
|
dataURLOptions: x,
|
5603
5603
|
inlineImages: h,
|
5604
5604
|
recordCanvas: d,
|
5605
|
-
preserveWhiteSpace:
|
5605
|
+
preserveWhiteSpace: O,
|
5606
5606
|
onSerialize: I,
|
5607
5607
|
onIframeLoad: S,
|
5608
5608
|
iframeLoadTimeout: D,
|
5609
|
-
onStylesheetLoad:
|
5609
|
+
onStylesheetLoad: C,
|
5610
5610
|
stylesheetLoadTimeout: E,
|
5611
|
-
keepIframeSrcFn:
|
5611
|
+
keepIframeSrcFn: b,
|
5612
5612
|
newlyAddedElement: !1
|
5613
5613
|
});
|
5614
5614
|
}
|
@@ -6493,50 +6493,50 @@ function N_({
|
|
6493
6493
|
unmaskTextSelector: m
|
6494
6494
|
}) {
|
6495
6495
|
function _(D) {
|
6496
|
-
let
|
6497
|
-
const E = D.isTrusted,
|
6498
|
-
if (
|
6499
|
-
|
6496
|
+
let C = Or(D);
|
6497
|
+
const E = D.isTrusted, b = C && _s(C.tagName);
|
6498
|
+
if (b === "OPTION" && (C = C.parentElement), !C || !b || A_.indexOf(b) < 0 || Ke(
|
6499
|
+
C,
|
6500
6500
|
r,
|
6501
6501
|
i,
|
6502
6502
|
o,
|
6503
6503
|
!0
|
6504
6504
|
))
|
6505
6505
|
return;
|
6506
|
-
const
|
6507
|
-
if (
|
6506
|
+
const A = C;
|
6507
|
+
if (A.classList.contains(s) || a && A.matches(a))
|
6508
6508
|
return;
|
6509
|
-
const
|
6510
|
-
let
|
6509
|
+
const N = ga(C);
|
6510
|
+
let R = Ri(A, b, N), M = !1;
|
6511
6511
|
const F = eo({
|
6512
6512
|
maskInputOptions: l,
|
6513
|
-
tagName:
|
6514
|
-
type:
|
6513
|
+
tagName: b,
|
6514
|
+
type: N
|
6515
6515
|
}), z = Mn(
|
6516
|
-
|
6516
|
+
C,
|
6517
6517
|
h,
|
6518
6518
|
p,
|
6519
6519
|
d,
|
6520
6520
|
m,
|
6521
6521
|
F
|
6522
6522
|
);
|
6523
|
-
(
|
6523
|
+
(N === "radio" || N === "checkbox") && (M = C.checked), R = pr({
|
6524
6524
|
isMasked: z,
|
6525
|
-
element:
|
6526
|
-
value:
|
6525
|
+
element: C,
|
6526
|
+
value: R,
|
6527
6527
|
maskInputFn: c
|
6528
6528
|
}), g(
|
6529
|
-
|
6530
|
-
f ? { text:
|
6529
|
+
C,
|
6530
|
+
f ? { text: R, isChecked: M, userTriggered: E } : { text: R, isChecked: M }
|
6531
6531
|
);
|
6532
|
-
const oe =
|
6533
|
-
|
6534
|
-
if (J !==
|
6532
|
+
const oe = C.name;
|
6533
|
+
N === "radio" && oe && M && t.querySelectorAll(`input[type="radio"][name="${oe}"]`).forEach((J) => {
|
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,
|
6539
|
+
value: Ri(J, b, N),
|
6540
6540
|
maskInputFn: c
|
6541
6541
|
});
|
6542
6542
|
g(
|
@@ -6546,35 +6546,35 @@ function N_({
|
|
6546
6546
|
}
|
6547
6547
|
});
|
6548
6548
|
}
|
6549
|
-
function g(D,
|
6549
|
+
function g(D, C) {
|
6550
6550
|
const E = dc.get(D);
|
6551
|
-
if (!E || E.text !==
|
6552
|
-
dc.set(D,
|
6553
|
-
const
|
6551
|
+
if (!E || E.text !== C.text || E.isChecked !== C.isChecked) {
|
6552
|
+
dc.set(D, C);
|
6553
|
+
const b = n.getId(D);
|
6554
6554
|
ne(e)({
|
6555
|
-
...
|
6556
|
-
id:
|
6555
|
+
...C,
|
6556
|
+
id: b
|
6557
6557
|
});
|
6558
6558
|
}
|
6559
6559
|
}
|
6560
6560
|
const x = (u.input === "last" ? ["change"] : ["input", "change"]).map(
|
6561
6561
|
(D) => ze(D, ne(_), t)
|
6562
|
-
),
|
6563
|
-
if (!
|
6562
|
+
), O = t.defaultView;
|
6563
|
+
if (!O)
|
6564
6564
|
return () => {
|
6565
6565
|
x.forEach((D) => D());
|
6566
6566
|
};
|
6567
|
-
const I =
|
6568
|
-
|
6567
|
+
const I = O.Object.getOwnPropertyDescriptor(
|
6568
|
+
O.HTMLInputElement.prototype,
|
6569
6569
|
"value"
|
6570
6570
|
), S = [
|
6571
|
-
[
|
6572
|
-
[
|
6573
|
-
[
|
6574
|
-
[
|
6571
|
+
[O.HTMLInputElement.prototype, "value"],
|
6572
|
+
[O.HTMLInputElement.prototype, "checked"],
|
6573
|
+
[O.HTMLSelectElement.prototype, "value"],
|
6574
|
+
[O.HTMLTextAreaElement.prototype, "value"],
|
6575
6575
|
// Some UI library use selectedIndex to set select value
|
6576
|
-
[
|
6577
|
-
[
|
6576
|
+
[O.HTMLSelectElement.prototype, "selectedIndex"],
|
6577
|
+
[O.HTMLOptionElement.prototype, "selected"]
|
6578
6578
|
];
|
6579
6579
|
return I && I.set && x.push(
|
6580
6580
|
...S.map(
|
@@ -6591,7 +6591,7 @@ function N_({
|
|
6591
6591
|
}
|
6592
6592
|
},
|
6593
6593
|
!1,
|
6594
|
-
|
6594
|
+
O
|
6595
6595
|
)
|
6596
6596
|
)
|
6597
6597
|
), ne(() => {
|
@@ -7451,16 +7451,16 @@ function It(e = {}) {
|
|
7451
7451
|
slimDOMOptions: g,
|
7452
7452
|
maskAttributeFn: v,
|
7453
7453
|
maskInputFn: x,
|
7454
|
-
maskTextFn:
|
7454
|
+
maskTextFn: O,
|
7455
7455
|
maxCanvasSize: I = null,
|
7456
7456
|
packFn: S,
|
7457
7457
|
sampling: D = {},
|
7458
|
-
dataURLOptions:
|
7458
|
+
dataURLOptions: C = {},
|
7459
7459
|
mousemoveWait: E,
|
7460
|
-
recordDOM:
|
7461
|
-
recordCanvas:
|
7462
|
-
recordCrossOriginIframes:
|
7463
|
-
recordAfter:
|
7460
|
+
recordDOM: b = !0,
|
7461
|
+
recordCanvas: A = !1,
|
7462
|
+
recordCrossOriginIframes: N = !1,
|
7463
|
+
recordAfter: R = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load",
|
7464
7464
|
userTriggeredOnInput: M = !1,
|
7465
7465
|
collectFonts: F = !1,
|
7466
7466
|
inlineImages: z = !1,
|
@@ -7472,17 +7472,17 @@ function It(e = {}) {
|
|
7472
7472
|
getCanvasManager: je
|
7473
7473
|
} = e;
|
7474
7474
|
E_(y);
|
7475
|
-
const
|
7475
|
+
const w = N ? window.parent === window : !0;
|
7476
7476
|
let K = !1;
|
7477
|
-
if (!
|
7477
|
+
if (!w)
|
7478
7478
|
try {
|
7479
7479
|
window.parent.document && (K = !1);
|
7480
7480
|
} catch {
|
7481
7481
|
K = !0;
|
7482
7482
|
}
|
7483
|
-
if (
|
7483
|
+
if (w && !t)
|
7484
7484
|
throw new Error("emit function is required");
|
7485
|
-
if (!
|
7485
|
+
if (!w && !K)
|
7486
7486
|
return () => {
|
7487
7487
|
};
|
7488
7488
|
E !== void 0 && D.mousemove === void 0 && (D.mousemove = E), at.reset();
|
@@ -7528,7 +7528,7 @@ function It(e = {}) {
|
|
7528
7528
|
};
|
7529
7529
|
ye = (te, We) => {
|
7530
7530
|
const Q = te;
|
7531
|
-
if (Q.timestamp = Ni(), vn[0]?.isFrozen() && Q.type !== Y.FullSnapshot && !(Q.type === Y.IncrementalSnapshot && Q.data.source === j.Mutation) && vn.forEach((Ie) => Ie.unfreeze()),
|
7531
|
+
if (Q.timestamp = Ni(), vn[0]?.isFrozen() && Q.type !== Y.FullSnapshot && !(Q.type === Y.IncrementalSnapshot && Q.data.source === j.Mutation) && vn.forEach((Ie) => Ie.unfreeze()), w)
|
7532
7532
|
t?.(Ze(Q), We);
|
7533
7533
|
else if (K) {
|
7534
7534
|
const Ie = {
|
@@ -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: ye
|
7587
7587
|
});
|
7588
7588
|
for (const te of oe || [])
|
@@ -7603,13 +7603,13 @@ function It(e = {}) {
|
|
7603
7603
|
...te
|
7604
7604
|
}
|
7605
7605
|
}),
|
7606
|
-
recordCanvas:
|
7606
|
+
recordCanvas: A,
|
7607
7607
|
blockClass: i,
|
7608
7608
|
blockSelector: o,
|
7609
7609
|
unblockSelector: s,
|
7610
7610
|
maxCanvasSize: I,
|
7611
7611
|
sampling: D.canvas,
|
7612
|
-
dataURLOptions:
|
7612
|
+
dataURLOptions: C,
|
7613
7613
|
errorHandler: y
|
7614
7614
|
}
|
7615
7615
|
), cn = typeof __RRWEB_EXCLUDE_SHADOW_DOM__ == "boolean" && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new $_() : new H_({
|
@@ -7627,11 +7627,11 @@ function It(e = {}) {
|
|
7627
7627
|
unmaskTextSelector: d,
|
7628
7628
|
inlineStylesheet: p,
|
7629
7629
|
maskInputOptions: xe,
|
7630
|
-
dataURLOptions:
|
7630
|
+
dataURLOptions: C,
|
7631
7631
|
maskAttributeFn: v,
|
7632
|
-
maskTextFn:
|
7632
|
+
maskTextFn: O,
|
7633
7633
|
maskInputFn: x,
|
7634
|
-
recordCanvas:
|
7634
|
+
recordCanvas: A,
|
7635
7635
|
inlineImages: z,
|
7636
7636
|
sampling: D,
|
7637
7637
|
slimDOMOptions: me,
|
@@ -7643,7 +7643,7 @@ function It(e = {}) {
|
|
7643
7643
|
},
|
7644
7644
|
mirror: at
|
7645
7645
|
}), un = (te = !1) => {
|
7646
|
-
if (!
|
7646
|
+
if (!b)
|
7647
7647
|
return;
|
7648
7648
|
ye(
|
7649
7649
|
{
|
@@ -7670,10 +7670,10 @@ function It(e = {}) {
|
|
7670
7670
|
maskAllInputs: xe,
|
7671
7671
|
maskAttributeFn: v,
|
7672
7672
|
maskInputFn: x,
|
7673
|
-
maskTextFn:
|
7673
|
+
maskTextFn: O,
|
7674
7674
|
slimDOM: me,
|
7675
|
-
dataURLOptions:
|
7676
|
-
recordCanvas:
|
7675
|
+
dataURLOptions: C,
|
7676
|
+
recordCanvas: A,
|
7677
7677
|
inlineImages: z,
|
7678
7678
|
onSerialize: (Q) => {
|
7679
7679
|
Td(Q, at) && pt.addIframe(Q), Rd(Q, at) && wt.trackLinkElement(Q), ks(Q) && cn.addShadowRoot(Q.shadowRoot, document);
|
@@ -7792,20 +7792,20 @@ function It(e = {}) {
|
|
7792
7792
|
maskInputOptions: xe,
|
7793
7793
|
inlineStylesheet: p,
|
7794
7794
|
sampling: D,
|
7795
|
-
recordDOM:
|
7796
|
-
recordCanvas:
|
7795
|
+
recordDOM: b,
|
7796
|
+
recordCanvas: A,
|
7797
7797
|
inlineImages: z,
|
7798
7798
|
userTriggeredOnInput: M,
|
7799
7799
|
collectFonts: F,
|
7800
7800
|
doc: Ie,
|
7801
7801
|
maskAttributeFn: v,
|
7802
7802
|
maskInputFn: x,
|
7803
|
-
maskTextFn:
|
7803
|
+
maskTextFn: O,
|
7804
7804
|
keepIframeSrcFn: J,
|
7805
7805
|
blockSelector: o,
|
7806
7806
|
unblockSelector: s,
|
7807
7807
|
slimDOMOptions: me,
|
7808
|
-
dataURLOptions:
|
7808
|
+
dataURLOptions: C,
|
7809
7809
|
mirror: at,
|
7810
7810
|
iframeManager: pt,
|
7811
7811
|
stylesheetManager: wt,
|
@@ -7842,7 +7842,7 @@ function It(e = {}) {
|
|
7842
7842
|
ye({
|
7843
7843
|
type: Y.DomContentLoaded,
|
7844
7844
|
data: {}
|
7845
|
-
}),
|
7845
|
+
}), R === "DOMContentLoaded" && Q();
|
7846
7846
|
})
|
7847
7847
|
), te.push(
|
7848
7848
|
ze(
|
@@ -7851,7 +7851,7 @@ function It(e = {}) {
|
|
7851
7851
|
ye({
|
7852
7852
|
type: Y.Load,
|
7853
7853
|
data: {}
|
7854
|
-
}),
|
7854
|
+
}), R === "load" && Q();
|
7855
7855
|
},
|
7856
7856
|
window
|
7857
7857
|
)
|
@@ -9288,14 +9288,14 @@ function E0(e, t, n) {
|
|
9288
9288
|
response: D
|
9289
9289
|
};
|
9290
9290
|
}
|
9291
|
-
const d = a[bn], p = d ? Rs(d.request_headers, n.networkRequestHeaders) : {}, m = Rs(C0(a), n.networkResponseHeaders), [_, g] = n.networkCaptureBodies ? cd(s, H) : [void 0], [v, x] = n.networkCaptureBodies ? I0(a) : [void 0],
|
9291
|
+
const d = a[bn], p = d ? Rs(d.request_headers, n.networkRequestHeaders) : {}, m = Rs(C0(a), n.networkResponseHeaders), [_, g] = n.networkCaptureBodies ? cd(s, H) : [void 0], [v, x] = n.networkCaptureBodies ? I0(a) : [void 0], O = Pt(p, f, _), I = Pt(m, h, v);
|
9292
9292
|
return {
|
9293
9293
|
startTimestamp: i,
|
9294
9294
|
endTimestamp: o,
|
9295
9295
|
url: l,
|
9296
9296
|
method: c,
|
9297
9297
|
statusCode: u,
|
9298
|
-
request: g ? Di(
|
9298
|
+
request: g ? Di(O, g) : O,
|
9299
9299
|
response: x ? Di(I, x) : I
|
9300
9300
|
};
|
9301
9301
|
}
|
@@ -9598,10 +9598,10 @@ async function G0({
|
|
9598
9598
|
let v;
|
9599
9599
|
try {
|
9600
9600
|
v = await d.send(g);
|
9601
|
-
} catch (
|
9601
|
+
} catch (O) {
|
9602
9602
|
const I = new Error(pa);
|
9603
9603
|
try {
|
9604
|
-
I.cause =
|
9604
|
+
I.cause = O;
|
9605
9605
|
} catch {
|
9606
9606
|
}
|
9607
9607
|
throw I;
|
@@ -10415,32 +10415,32 @@ class tx {
|
|
10415
10415
|
networkDetailDenyUrls: g = [],
|
10416
10416
|
networkCaptureBodies: v = !0,
|
10417
10417
|
networkRequestHeaders: x = [],
|
10418
|
-
networkResponseHeaders:
|
10418
|
+
networkResponseHeaders: O = [],
|
10419
10419
|
mask: I = [],
|
10420
10420
|
maskAttributes: S = ["title", "placeholder", "aria-label"],
|
10421
10421
|
unmask: D = [],
|
10422
|
-
block:
|
10422
|
+
block: C = [],
|
10423
10423
|
unblock: E = [],
|
10424
|
-
ignore:
|
10425
|
-
maskFn:
|
10426
|
-
beforeAddRecordingEvent:
|
10427
|
-
beforeErrorSampling:
|
10424
|
+
ignore: b = [],
|
10425
|
+
maskFn: A,
|
10426
|
+
beforeAddRecordingEvent: N,
|
10427
|
+
beforeErrorSampling: R,
|
10428
10428
|
onError: M
|
10429
10429
|
} = {}) {
|
10430
10430
|
this.name = "Replay";
|
10431
10431
|
const F = J0({
|
10432
10432
|
mask: I,
|
10433
10433
|
unmask: D,
|
10434
|
-
block:
|
10434
|
+
block: C,
|
10435
10435
|
unblock: E,
|
10436
|
-
ignore:
|
10436
|
+
ignore: b
|
10437
10437
|
});
|
10438
10438
|
if (this._recordingOptions = {
|
10439
10439
|
maskAllInputs: u,
|
10440
10440
|
maskAllText: c,
|
10441
10441
|
maskInputOptions: { password: !0 },
|
10442
|
-
maskTextFn:
|
10443
|
-
maskInputFn:
|
10442
|
+
maskTextFn: A,
|
10443
|
+
maskInputFn: A,
|
10444
10444
|
maskAttributeFn: (z, oe, J) => Q0({
|
10445
10445
|
maskAttributes: S,
|
10446
10446
|
maskAllText: c,
|
@@ -10485,9 +10485,9 @@ class tx {
|
|
10485
10485
|
networkDetailDenyUrls: g,
|
10486
10486
|
networkCaptureBodies: v,
|
10487
10487
|
networkRequestHeaders: xc(x),
|
10488
|
-
networkResponseHeaders: xc(
|
10489
|
-
beforeAddRecordingEvent:
|
10490
|
-
beforeErrorSampling:
|
10488
|
+
networkResponseHeaders: xc(O),
|
10489
|
+
beforeAddRecordingEvent: N,
|
10490
|
+
beforeErrorSampling: R,
|
10491
10491
|
onError: M,
|
10492
10492
|
_experiments: l
|
10493
10493
|
}, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${_c}` : _c), this._isInitialized && Gl())
|
@@ -10610,7 +10610,7 @@ function rx(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: "0cb92fe7ef685752b9775b62a32cc20188255c97" };
|
10614
10614
|
}
|
10615
10615
|
function nh(e) {
|
10616
10616
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
@@ -12141,63 +12141,63 @@ function zx() {
|
|
12141
12141
|
if (!m) return [];
|
12142
12142
|
_ = _ || {};
|
12143
12143
|
var g = 1, v = 1;
|
12144
|
-
function x(
|
12145
|
-
var M =
|
12144
|
+
function x(R) {
|
12145
|
+
var M = R.match(t);
|
12146
12146
|
M && (g += M.length);
|
12147
|
-
var F =
|
12148
|
-
v = ~F ?
|
12147
|
+
var F = R.lastIndexOf(l);
|
12148
|
+
v = ~F ? R.length - F : v + R.length;
|
12149
12149
|
}
|
12150
|
-
function
|
12151
|
-
var
|
12150
|
+
function O() {
|
12151
|
+
var R = { line: g, column: v };
|
12152
12152
|
return function(M) {
|
12153
|
-
return M.position = new I(
|
12153
|
+
return M.position = new I(R), C(), M;
|
12154
12154
|
};
|
12155
12155
|
}
|
12156
|
-
function I(
|
12157
|
-
this.start =
|
12156
|
+
function I(R) {
|
12157
|
+
this.start = R, this.end = { line: g, column: v }, this.source = _.source;
|
12158
12158
|
}
|
12159
12159
|
I.prototype.content = m;
|
12160
|
-
function S(
|
12160
|
+
function S(R) {
|
12161
12161
|
var M = new Error(
|
12162
|
-
_.source + ":" + g + ":" + v + ": " +
|
12162
|
+
_.source + ":" + g + ":" + v + ": " + R
|
12163
12163
|
);
|
12164
|
-
if (M.reason =
|
12164
|
+
if (M.reason = R, M.filename = _.source, M.line = g, M.column = v, M.source = m, !_.silent) throw M;
|
12165
12165
|
}
|
12166
|
-
function D(
|
12167
|
-
var M =
|
12166
|
+
function D(R) {
|
12167
|
+
var M = R.exec(m);
|
12168
12168
|
if (M) {
|
12169
12169
|
var F = M[0];
|
12170
12170
|
return x(F), m = m.slice(F.length), M;
|
12171
12171
|
}
|
12172
12172
|
}
|
12173
|
-
function
|
12173
|
+
function C() {
|
12174
12174
|
D(n);
|
12175
12175
|
}
|
12176
|
-
function E(
|
12176
|
+
function E(R) {
|
12177
12177
|
var M;
|
12178
|
-
for (
|
12179
|
-
M !== !1 &&
|
12180
|
-
return
|
12178
|
+
for (R = R || []; M = b(); )
|
12179
|
+
M !== !1 && R.push(M);
|
12180
|
+
return R;
|
12181
12181
|
}
|
12182
|
-
function
|
12183
|
-
var
|
12182
|
+
function b() {
|
12183
|
+
var R = O();
|
12184
12184
|
if (!(c != m.charAt(0) || u != m.charAt(1))) {
|
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
12188
|
return S("End of comment missing");
|
12189
12189
|
var F = m.slice(2, M - 2);
|
12190
|
-
return v += 2, x(F), m = m.slice(M), v += 2,
|
12190
|
+
return v += 2, x(F), m = m.slice(M), v += 2, R({
|
12191
12191
|
type: h,
|
12192
12192
|
comment: F
|
12193
12193
|
});
|
12194
12194
|
}
|
12195
12195
|
}
|
12196
|
-
function
|
12197
|
-
var
|
12196
|
+
function A() {
|
12197
|
+
var R = O(), M = D(r);
|
12198
12198
|
if (M) {
|
12199
|
-
if (
|
12200
|
-
var F = D(o), z =
|
12199
|
+
if (b(), !D(i)) return S("property missing ':'");
|
12200
|
+
var F = D(o), z = R({
|
12201
12201
|
type: d,
|
12202
12202
|
property: p(M[0].replace(e, f)),
|
12203
12203
|
value: F ? p(F[0].replace(e, f)) : f
|
@@ -12205,14 +12205,14 @@ function zx() {
|
|
12205
12205
|
return D(s), z;
|
12206
12206
|
}
|
12207
12207
|
}
|
12208
|
-
function
|
12209
|
-
var
|
12210
|
-
E(
|
12211
|
-
for (var M; M =
|
12212
|
-
M !== !1 && (
|
12213
|
-
return
|
12208
|
+
function N() {
|
12209
|
+
var R = [];
|
12210
|
+
E(R);
|
12211
|
+
for (var M; M = A(); )
|
12212
|
+
M !== !1 && (R.push(M), E(R));
|
12213
|
+
return R;
|
12214
12214
|
}
|
12215
|
-
return
|
12215
|
+
return C(), N();
|
12216
12216
|
};
|
12217
12217
|
function p(m) {
|
12218
12218
|
return m ? m.replace(a, f) : f;
|
@@ -12895,28 +12895,28 @@ function Sk(e) {
|
|
12895
12895
|
return a;
|
12896
12896
|
function a(x) {
|
12897
12897
|
if (r < n.length) {
|
12898
|
-
const
|
12899
|
-
return t.containerState =
|
12898
|
+
const O = n[r];
|
12899
|
+
return t.containerState = O[1], e.attempt(O[0].continuation, l, c)(x);
|
12900
12900
|
}
|
12901
12901
|
return c(x);
|
12902
12902
|
}
|
12903
12903
|
function l(x) {
|
12904
12904
|
if (r++, t.containerState._closeFlow) {
|
12905
12905
|
t.containerState._closeFlow = void 0, i && v();
|
12906
|
-
const
|
12907
|
-
let I =
|
12906
|
+
const O = t.events.length;
|
12907
|
+
let I = O, S;
|
12908
12908
|
for (; I--; )
|
12909
12909
|
if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
|
12910
12910
|
S = t.events[I][1].end;
|
12911
12911
|
break;
|
12912
12912
|
}
|
12913
12913
|
g(r);
|
12914
|
-
let D =
|
12914
|
+
let D = O;
|
12915
12915
|
for (; D < t.events.length; )
|
12916
12916
|
t.events[D][1].end = {
|
12917
12917
|
...S
|
12918
12918
|
}, D++;
|
12919
|
-
return Je(t.events, I + 1, 0, t.events.slice(
|
12919
|
+
return Je(t.events, I + 1, 0, t.events.slice(O)), t.events.length = D, c(x);
|
12920
12920
|
}
|
12921
12921
|
return a(x);
|
12922
12922
|
}
|
@@ -12960,9 +12960,9 @@ function Sk(e) {
|
|
12960
12960
|
}
|
12961
12961
|
return B(x) ? (e.consume(x), _(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(x), m);
|
12962
12962
|
}
|
12963
|
-
function _(x,
|
12963
|
+
function _(x, O) {
|
12964
12964
|
const I = t.sliceStream(x);
|
12965
|
-
if (
|
12965
|
+
if (O && I.push(null), x.previous = o, o && (o.next = x), o = x, i.defineSkip(x.start), i.write(I), t.parser.lazy[x.start.line]) {
|
12966
12966
|
let S = i.events.length;
|
12967
12967
|
for (; S--; )
|
12968
12968
|
if (
|
@@ -12973,26 +12973,26 @@ function Sk(e) {
|
|
12973
12973
|
)
|
12974
12974
|
return;
|
12975
12975
|
const D = t.events.length;
|
12976
|
-
let
|
12977
|
-
for (;
|
12978
|
-
if (t.events[
|
12976
|
+
let C = D, E, b;
|
12977
|
+
for (; C--; )
|
12978
|
+
if (t.events[C][0] === "exit" && t.events[C][1].type === "chunkFlow") {
|
12979
12979
|
if (E) {
|
12980
|
-
|
12980
|
+
b = t.events[C][1].end;
|
12981
12981
|
break;
|
12982
12982
|
}
|
12983
12983
|
E = !0;
|
12984
12984
|
}
|
12985
12985
|
for (g(r), S = D; S < t.events.length; )
|
12986
12986
|
t.events[S][1].end = {
|
12987
|
-
...
|
12987
|
+
...b
|
12988
12988
|
}, S++;
|
12989
|
-
Je(t.events,
|
12989
|
+
Je(t.events, C + 1, 0, t.events.slice(D)), t.events.length = S;
|
12990
12990
|
}
|
12991
12991
|
}
|
12992
12992
|
function g(x) {
|
12993
|
-
let
|
12994
|
-
for (;
|
12995
|
-
const I = n[
|
12993
|
+
let O = n.length;
|
12994
|
+
for (; O-- > x; ) {
|
12995
|
+
const I = n[O];
|
12996
12996
|
t.containerState = I[1], I[0].exit.call(t, e);
|
12997
12997
|
}
|
12998
12998
|
n.length = x;
|
@@ -13249,7 +13249,7 @@ function Ok(e, t, n) {
|
|
13249
13249
|
return S === a ? (s++, e.consume(S), u) : s < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), X(S) ? re(e, f, "whitespace")(S) : f(S));
|
13250
13250
|
}
|
13251
13251
|
function f(S) {
|
13252
|
-
return S === null || B(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Uc, m,
|
13252
|
+
return S === null || B(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Uc, m, O)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
13253
13253
|
contentType: "string"
|
13254
13254
|
}), h(S));
|
13255
13255
|
}
|
@@ -13265,7 +13265,7 @@ function Ok(e, t, n) {
|
|
13265
13265
|
return S === null || B(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(S)) : S === 96 && S === a ? n(S) : (e.consume(S), p);
|
13266
13266
|
}
|
13267
13267
|
function m(S) {
|
13268
|
-
return e.attempt(i,
|
13268
|
+
return e.attempt(i, O, _)(S);
|
13269
13269
|
}
|
13270
13270
|
function _(S) {
|
13271
13271
|
return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), g;
|
@@ -13274,31 +13274,31 @@ function Ok(e, t, n) {
|
|
13274
13274
|
return o > 0 && X(S) ? re(e, v, "linePrefix", o + 1)(S) : v(S);
|
13275
13275
|
}
|
13276
13276
|
function v(S) {
|
13277
|
-
return S === null || B(S) ? e.check(Uc, m,
|
13277
|
+
return S === null || B(S) ? e.check(Uc, m, O)(S) : (e.enter("codeFlowValue"), x(S));
|
13278
13278
|
}
|
13279
13279
|
function x(S) {
|
13280
13280
|
return S === null || B(S) ? (e.exit("codeFlowValue"), v(S)) : (e.consume(S), x);
|
13281
13281
|
}
|
13282
|
-
function
|
13282
|
+
function O(S) {
|
13283
13283
|
return e.exit("codeFenced"), t(S);
|
13284
13284
|
}
|
13285
|
-
function I(S, D,
|
13285
|
+
function I(S, D, C) {
|
13286
13286
|
let E = 0;
|
13287
|
-
return
|
13288
|
-
function
|
13289
|
-
return S.enter("lineEnding"), S.consume(F), S.exit("lineEnding"),
|
13287
|
+
return b;
|
13288
|
+
function b(F) {
|
13289
|
+
return S.enter("lineEnding"), S.consume(F), S.exit("lineEnding"), A;
|
13290
13290
|
}
|
13291
|
-
function
|
13292
|
-
return S.enter("codeFencedFence"), X(F) ? re(S,
|
13293
|
-
}
|
13294
|
-
function C(F) {
|
13295
|
-
return F === a ? (S.enter("codeFencedFenceSequence"), N(F)) : T(F);
|
13291
|
+
function A(F) {
|
13292
|
+
return S.enter("codeFencedFence"), X(F) ? re(S, N, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : N(F);
|
13296
13293
|
}
|
13297
13294
|
function N(F) {
|
13298
|
-
return F === a ? (
|
13295
|
+
return F === a ? (S.enter("codeFencedFenceSequence"), R(F)) : C(F);
|
13296
|
+
}
|
13297
|
+
function R(F) {
|
13298
|
+
return F === a ? (E++, S.consume(F), R) : E >= s ? (S.exit("codeFencedFenceSequence"), X(F) ? re(S, M, "whitespace")(F) : M(F)) : C(F);
|
13299
13299
|
}
|
13300
13300
|
function M(F) {
|
13301
|
-
return F === null || B(F) ? (S.exit("codeFencedFence"), D(F)) :
|
13301
|
+
return F === null || B(F) ? (S.exit("codeFencedFence"), D(F)) : C(F);
|
13302
13302
|
}
|
13303
13303
|
}
|
13304
13304
|
}
|
@@ -13943,104 +13943,104 @@ function lE(e, t, n) {
|
|
13943
13943
|
const r = this;
|
13944
13944
|
let i, o, s, a, l;
|
13945
13945
|
return c;
|
13946
|
-
function c(
|
13947
|
-
return u(
|
13946
|
+
function c(w) {
|
13947
|
+
return u(w);
|
13948
13948
|
}
|
13949
|
-
function u(
|
13950
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
13949
|
+
function u(w) {
|
13950
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(w), f;
|
13951
13951
|
}
|
13952
|
-
function f(
|
13953
|
-
return
|
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), _) : n(w);
|
13954
13954
|
}
|
13955
|
-
function h(
|
13956
|
-
return
|
13955
|
+
function h(w) {
|
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);
|
13957
13957
|
}
|
13958
|
-
function d(
|
13959
|
-
return
|
13958
|
+
function d(w) {
|
13959
|
+
return w === 45 ? (e.consume(w), r.interrupt ? t : y) : n(w);
|
13960
13960
|
}
|
13961
|
-
function p(
|
13961
|
+
function p(w) {
|
13962
13962
|
const K = "CDATA[";
|
13963
|
-
return
|
13963
|
+
return w === K.charCodeAt(a++) ? (e.consume(w), a === K.length ? r.interrupt ? t : N : p) : n(w);
|
13964
13964
|
}
|
13965
|
-
function m(
|
13966
|
-
return Be(
|
13965
|
+
function m(w) {
|
13966
|
+
return Be(w) ? (e.consume(w), s = String.fromCharCode(w), _) : n(w);
|
13967
13967
|
}
|
13968
|
-
function _(
|
13969
|
-
if (
|
13970
|
-
const K =
|
13971
|
-
return !K && !o && Hc.includes(xe) ? (i = 1, r.interrupt ? t(
|
13968
|
+
function _(w) {
|
13969
|
+
if (w === null || w === 47 || w === 62 || ue(w)) {
|
13970
|
+
const K = w === 47, xe = s.toLowerCase();
|
13971
|
+
return !K && !o && Hc.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) : x(w));
|
13972
13972
|
}
|
13973
|
-
return
|
13973
|
+
return w === 45 || Oe(w) ? (e.consume(w), s += String.fromCharCode(w), _) : n(w);
|
13974
13974
|
}
|
13975
|
-
function g(
|
13976
|
-
return
|
13975
|
+
function g(w) {
|
13976
|
+
return w === 62 ? (e.consume(w), r.interrupt ? t : N) : n(w);
|
13977
13977
|
}
|
13978
|
-
function v(
|
13979
|
-
return X(
|
13978
|
+
function v(w) {
|
13979
|
+
return X(w) ? (e.consume(w), v) : b(w);
|
13980
13980
|
}
|
13981
|
-
function x(
|
13982
|
-
return
|
13981
|
+
function x(w) {
|
13982
|
+
return w === 47 ? (e.consume(w), b) : w === 58 || w === 95 || Be(w) ? (e.consume(w), O) : X(w) ? (e.consume(w), x) : b(w);
|
13983
13983
|
}
|
13984
|
-
function
|
13985
|
-
return
|
13984
|
+
function O(w) {
|
13985
|
+
return w === 45 || w === 46 || w === 58 || w === 95 || Oe(w) ? (e.consume(w), O) : I(w);
|
13986
13986
|
}
|
13987
|
-
function I(
|
13988
|
-
return
|
13987
|
+
function I(w) {
|
13988
|
+
return w === 61 ? (e.consume(w), S) : X(w) ? (e.consume(w), I) : x(w);
|
13989
13989
|
}
|
13990
|
-
function S(
|
13991
|
-
return
|
13990
|
+
function S(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), S) : C(w);
|
13992
13992
|
}
|
13993
|
-
function D(
|
13994
|
-
return
|
13993
|
+
function D(w) {
|
13994
|
+
return w === l ? (e.consume(w), l = null, E) : w === null || B(w) ? n(w) : (e.consume(w), D);
|
13995
13995
|
}
|
13996
|
-
function
|
13997
|
-
return
|
13996
|
+
function C(w) {
|
13997
|
+
return w === null || w === 34 || w === 39 || w === 47 || w === 60 || w === 61 || w === 62 || w === 96 || ue(w) ? I(w) : (e.consume(w), C);
|
13998
13998
|
}
|
13999
|
-
function E(
|
14000
|
-
return
|
13999
|
+
function E(w) {
|
14000
|
+
return w === 47 || w === 62 || X(w) ? x(w) : n(w);
|
14001
14001
|
}
|
14002
|
-
function w
|
14003
|
-
return
|
14002
|
+
function b(w) {
|
14003
|
+
return w === 62 ? (e.consume(w), A) : n(w);
|
14004
14004
|
}
|
14005
|
-
function
|
14006
|
-
return
|
14005
|
+
function A(w) {
|
14006
|
+
return w === null || B(w) ? N(w) : X(w) ? (e.consume(w), A) : n(w);
|
14007
14007
|
}
|
14008
|
-
function
|
14009
|
-
return
|
14008
|
+
function N(w) {
|
14009
|
+
return w === 45 && i === 2 ? (e.consume(w), z) : w === 60 && i === 1 ? (e.consume(w), oe) : w === 62 && i === 4 ? (e.consume(w), Ce) : 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, R)(w)) : w === null || B(w) ? (e.exit("htmlFlowData"), R(w)) : (e.consume(w), N);
|
14010
14010
|
}
|
14011
|
-
function
|
14012
|
-
return e.check(sE, M, je)(
|
14011
|
+
function R(w) {
|
14012
|
+
return e.check(sE, M, je)(w);
|
14013
14013
|
}
|
14014
|
-
function M(
|
14015
|
-
return e.enter("lineEnding"), e.consume(
|
14014
|
+
function M(w) {
|
14015
|
+
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), F;
|
14016
14016
|
}
|
14017
|
-
function F(
|
14018
|
-
return
|
14017
|
+
function F(w) {
|
14018
|
+
return w === null || B(w) ? R(w) : (e.enter("htmlFlowData"), N(w));
|
14019
14019
|
}
|
14020
|
-
function z(
|
14021
|
-
return
|
14020
|
+
function z(w) {
|
14021
|
+
return w === 45 ? (e.consume(w), y) : N(w);
|
14022
14022
|
}
|
14023
|
-
function oe(
|
14024
|
-
return
|
14023
|
+
function oe(w) {
|
14024
|
+
return w === 47 ? (e.consume(w), s = "", J) : N(w);
|
14025
14025
|
}
|
14026
|
-
function J(
|
14027
|
-
if (
|
14026
|
+
function J(w) {
|
14027
|
+
if (w === 62) {
|
14028
14028
|
const K = s.toLowerCase();
|
14029
|
-
return Hc.includes(K) ? (e.consume(
|
14029
|
+
return Hc.includes(K) ? (e.consume(w), Ce) : N(w);
|
14030
14030
|
}
|
14031
|
-
return Be(
|
14031
|
+
return Be(w) && s.length < 8 ? (e.consume(w), s += String.fromCharCode(w), J) : N(w);
|
14032
14032
|
}
|
14033
|
-
function pe(
|
14034
|
-
return
|
14033
|
+
function pe(w) {
|
14034
|
+
return w === 93 ? (e.consume(w), y) : N(w);
|
14035
14035
|
}
|
14036
|
-
function y(
|
14037
|
-
return
|
14036
|
+
function y(w) {
|
14037
|
+
return w === 62 ? (e.consume(w), Ce) : w === 45 && i === 2 ? (e.consume(w), y) : N(w);
|
14038
14038
|
}
|
14039
|
-
function Ce(
|
14040
|
-
return
|
14039
|
+
function Ce(w) {
|
14040
|
+
return w === null || B(w) ? (e.exit("htmlFlowData"), je(w)) : (e.consume(w), Ce);
|
14041
14041
|
}
|
14042
|
-
function je(
|
14043
|
-
return e.exit("htmlFlow"), t(
|
14042
|
+
function je(w) {
|
14043
|
+
return e.exit("htmlFlow"), t(w);
|
14044
14044
|
}
|
14045
14045
|
}
|
14046
14046
|
function cE(e, t, n) {
|
@@ -14071,7 +14071,7 @@ function dE(e, t, n) {
|
|
14071
14071
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(y), l;
|
14072
14072
|
}
|
14073
14073
|
function l(y) {
|
14074
|
-
return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), I) : y === 63 ? (e.consume(y), x) : Be(y) ? (e.consume(y),
|
14074
|
+
return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), I) : y === 63 ? (e.consume(y), x) : Be(y) ? (e.consume(y), C) : n(y);
|
14075
14075
|
}
|
14076
14076
|
function c(y) {
|
14077
14077
|
return y === 45 ? (e.consume(y), u) : y === 91 ? (e.consume(y), o = 0, p) : Be(y) ? (e.consume(y), v) : n(y);
|
@@ -14105,9 +14105,9 @@ function dE(e, t, n) {
|
|
14105
14105
|
return y === null || y === 62 ? z(y) : B(y) ? (s = v, oe(y)) : (e.consume(y), v);
|
14106
14106
|
}
|
14107
14107
|
function x(y) {
|
14108
|
-
return y === null ? n(y) : y === 63 ? (e.consume(y),
|
14108
|
+
return y === null ? n(y) : y === 63 ? (e.consume(y), O) : B(y) ? (s = x, oe(y)) : (e.consume(y), x);
|
14109
14109
|
}
|
14110
|
-
function
|
14110
|
+
function O(y) {
|
14111
14111
|
return y === 62 ? z(y) : x(y);
|
14112
14112
|
}
|
14113
14113
|
function I(y) {
|
@@ -14119,23 +14119,23 @@ function dE(e, t, n) {
|
|
14119
14119
|
function D(y) {
|
14120
14120
|
return B(y) ? (s = D, oe(y)) : X(y) ? (e.consume(y), D) : z(y);
|
14121
14121
|
}
|
14122
|
-
function
|
14123
|
-
return y === 45 || Oe(y) ? (e.consume(y),
|
14122
|
+
function C(y) {
|
14123
|
+
return y === 45 || Oe(y) ? (e.consume(y), C) : y === 47 || y === 62 || ue(y) ? E(y) : n(y);
|
14124
14124
|
}
|
14125
14125
|
function E(y) {
|
14126
|
-
return y === 47 ? (e.consume(y), z) : y === 58 || y === 95 || Be(y) ? (e.consume(y),
|
14127
|
-
}
|
14128
|
-
function w(y) {
|
14129
|
-
return y === 45 || y === 46 || y === 58 || y === 95 || Oe(y) ? (e.consume(y), w) : O(y);
|
14126
|
+
return y === 47 ? (e.consume(y), z) : y === 58 || y === 95 || Be(y) ? (e.consume(y), b) : B(y) ? (s = E, oe(y)) : X(y) ? (e.consume(y), E) : z(y);
|
14130
14127
|
}
|
14131
|
-
function
|
14132
|
-
return y ===
|
14128
|
+
function b(y) {
|
14129
|
+
return y === 45 || y === 46 || y === 58 || y === 95 || Oe(y) ? (e.consume(y), b) : A(y);
|
14133
14130
|
}
|
14134
|
-
function
|
14135
|
-
return y ===
|
14131
|
+
function A(y) {
|
14132
|
+
return y === 61 ? (e.consume(y), N) : B(y) ? (s = A, oe(y)) : X(y) ? (e.consume(y), A) : E(y);
|
14136
14133
|
}
|
14137
14134
|
function N(y) {
|
14138
|
-
return y ===
|
14135
|
+
return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), i = y, R) : B(y) ? (s = N, oe(y)) : X(y) ? (e.consume(y), N) : (e.consume(y), M);
|
14136
|
+
}
|
14137
|
+
function R(y) {
|
14138
|
+
return y === i ? (e.consume(y), i = void 0, F) : y === null ? n(y) : B(y) ? (s = R, oe(y)) : (e.consume(y), R);
|
14139
14139
|
}
|
14140
14140
|
function M(y) {
|
14141
14141
|
return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || ue(y) ? E(y) : (e.consume(y), M);
|
@@ -14691,7 +14691,7 @@ function ZE(e, t, n) {
|
|
14691
14691
|
check: D(S),
|
14692
14692
|
consume: v,
|
14693
14693
|
enter: x,
|
14694
|
-
exit:
|
14694
|
+
exit: O,
|
14695
14695
|
interrupt: D(S, {
|
14696
14696
|
interrupt: !0
|
14697
14697
|
})
|
@@ -14709,71 +14709,71 @@ 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(A) {
|
14713
|
+
return s = nt(s, A), _(), 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(A, N) {
|
14716
|
+
return t1(d(A), N);
|
14717
14717
|
}
|
14718
|
-
function d(
|
14719
|
-
return e1(s,
|
14718
|
+
function d(A) {
|
14719
|
+
return e1(s, A);
|
14720
14720
|
}
|
14721
14721
|
function p() {
|
14722
14722
|
const {
|
14723
|
-
_bufferIndex:
|
14724
|
-
_index:
|
14725
|
-
line:
|
14723
|
+
_bufferIndex: A,
|
14724
|
+
_index: N,
|
14725
|
+
line: R,
|
14726
14726
|
column: M,
|
14727
14727
|
offset: F
|
14728
14728
|
} = r;
|
14729
14729
|
return {
|
14730
|
-
_bufferIndex:
|
14731
|
-
_index:
|
14732
|
-
line:
|
14730
|
+
_bufferIndex: A,
|
14731
|
+
_index: N,
|
14732
|
+
line: R,
|
14733
14733
|
column: M,
|
14734
14734
|
offset: F
|
14735
14735
|
};
|
14736
14736
|
}
|
14737
|
-
function m(
|
14738
|
-
i[
|
14737
|
+
function m(A) {
|
14738
|
+
i[A.line] = A.column, b();
|
14739
14739
|
}
|
14740
14740
|
function _() {
|
14741
|
-
let
|
14741
|
+
let A;
|
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 (A = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === A && 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(A) {
|
14752
|
+
u = u(A);
|
14753
14753
|
}
|
14754
|
-
function v(
|
14755
|
-
B(
|
14754
|
+
function v(A) {
|
14755
|
+
B(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1, b()) : A !== -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 = A;
|
14759
14759
|
}
|
14760
|
-
function x(
|
14761
|
-
const
|
14762
|
-
return
|
14760
|
+
function x(A, N) {
|
14761
|
+
const R = N || {};
|
14762
|
+
return R.type = A, R.start = p(), c.events.push(["enter", R, c]), a.push(R), R;
|
14763
14763
|
}
|
14764
|
-
function A
|
14765
|
-
const
|
14766
|
-
return
|
14764
|
+
function O(A) {
|
14765
|
+
const N = a.pop();
|
14766
|
+
return N.end = p(), c.events.push(["exit", N, c]), N;
|
14767
14767
|
}
|
14768
|
-
function I(
|
14769
|
-
|
14768
|
+
function I(A, N) {
|
14769
|
+
C(A, N.from);
|
14770
14770
|
}
|
14771
|
-
function S(
|
14772
|
-
|
14771
|
+
function S(A, N) {
|
14772
|
+
N.restore();
|
14773
14773
|
}
|
14774
|
-
function D(
|
14775
|
-
return
|
14776
|
-
function
|
14774
|
+
function D(A, N) {
|
14775
|
+
return R;
|
14776
|
+
function R(M, F, z) {
|
14777
14777
|
let oe, J, pe, y;
|
14778
14778
|
return Array.isArray(M) ? (
|
14779
14779
|
/* c8 ignore next 1 */
|
@@ -14798,16 +14798,16 @@ function ZE(e, t, n) {
|
|
14798
14798
|
}
|
14799
14799
|
}
|
14800
14800
|
function je(me) {
|
14801
|
-
return oe = me, J = 0, me.length === 0 ? z :
|
14801
|
+
return oe = me, J = 0, me.length === 0 ? z : w(me[J]);
|
14802
14802
|
}
|
14803
|
-
function
|
14803
|
+
function w(me) {
|
14804
14804
|
return it;
|
14805
14805
|
function it(Le) {
|
14806
14806
|
return y = E(), pe = me, me.partial || (c.currentConstruct = me), me.name && c.parser.constructs.disable.null.includes(me.name) ? xe() : me.tokenize.call(
|
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,27 +14815,27 @@ function ZE(e, t, n) {
|
|
14815
14815
|
}
|
14816
14816
|
}
|
14817
14817
|
function K(me) {
|
14818
|
-
return
|
14818
|
+
return A(pe, y), F;
|
14819
14819
|
}
|
14820
14820
|
function xe(me) {
|
14821
|
-
return y.restore(), ++J < oe.length ?
|
14821
|
+
return y.restore(), ++J < oe.length ? w(oe[J]) : z;
|
14822
14822
|
}
|
14823
14823
|
}
|
14824
14824
|
}
|
14825
|
-
function
|
14826
|
-
|
14825
|
+
function C(A, N) {
|
14826
|
+
A.resolveAll && !o.includes(A) && o.push(A), A.resolve && Je(c.events, N, c.events.length - N, A.resolve(c.events.slice(N), c)), A.resolveTo && (c.events = A.resolveTo(c.events, c));
|
14827
14827
|
}
|
14828
14828
|
function E() {
|
14829
|
-
const
|
14829
|
+
const A = p(), N = c.previous, R = 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 = A, c.previous = N, c.currentConstruct = R, c.events.length = M, a = F, b();
|
14836
14836
|
}
|
14837
14837
|
}
|
14838
|
-
function
|
14838
|
+
function b() {
|
14839
14839
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
14840
14840
|
}
|
14841
14841
|
}
|
@@ -15012,7 +15012,7 @@ function c1(e) {
|
|
15012
15012
|
listOrdered: o(te, f),
|
15013
15013
|
listUnordered: o(te),
|
15014
15014
|
paragraph: o(Q),
|
15015
|
-
reference:
|
15015
|
+
reference: w,
|
15016
15016
|
referenceString: s,
|
15017
15017
|
resourceDestinationString: s,
|
15018
15018
|
resourceTitleString: s,
|
@@ -15027,7 +15027,7 @@ function c1(e) {
|
|
15027
15027
|
autolinkEmail: Ze,
|
15028
15028
|
autolinkProtocol: Le,
|
15029
15029
|
blockQuote: l(),
|
15030
|
-
characterEscapeValue:
|
15030
|
+
characterEscapeValue: b,
|
15031
15031
|
characterReferenceMarkerHexadecimal: xe,
|
15032
15032
|
characterReferenceMarkerNumeric: xe,
|
15033
15033
|
characterReferenceValue: me,
|
@@ -15036,26 +15036,26 @@ function c1(e) {
|
|
15036
15036
|
codeFencedFence: m,
|
15037
15037
|
codeFencedFenceInfo: d,
|
15038
15038
|
codeFencedFenceMeta: p,
|
15039
|
-
codeFlowValue:
|
15039
|
+
codeFlowValue: b,
|
15040
15040
|
codeIndented: l(g),
|
15041
15041
|
codeText: l(F),
|
15042
|
-
codeTextData:
|
15043
|
-
data:
|
15042
|
+
codeTextData: b,
|
15043
|
+
data: b,
|
15044
15044
|
definition: l(),
|
15045
|
-
definitionDestinationString:
|
15045
|
+
definitionDestinationString: O,
|
15046
15046
|
definitionLabelString: v,
|
15047
15047
|
definitionTitleString: x,
|
15048
15048
|
emphasis: l(),
|
15049
|
-
hardBreakEscape: l(
|
15050
|
-
hardBreakTrailing: l(
|
15051
|
-
htmlFlow: l(
|
15052
|
-
htmlFlowData:
|
15049
|
+
hardBreakEscape: l(N),
|
15050
|
+
hardBreakTrailing: l(N),
|
15051
|
+
htmlFlow: l(R),
|
15052
|
+
htmlFlowData: b,
|
15053
15053
|
htmlText: l(M),
|
15054
|
-
htmlTextData:
|
15054
|
+
htmlTextData: b,
|
15055
15055
|
image: l(oe),
|
15056
15056
|
label: pe,
|
15057
15057
|
labelText: J,
|
15058
|
-
lineEnding:
|
15058
|
+
lineEnding: A,
|
15059
15059
|
link: l(z),
|
15060
15060
|
listItem: l(),
|
15061
15061
|
listOrdered: l(),
|
@@ -15065,7 +15065,7 @@ function c1(e) {
|
|
15065
15065
|
resourceDestinationString: y,
|
15066
15066
|
resourceTitleString: Ce,
|
15067
15067
|
resource: je,
|
15068
|
-
setextHeading: l(
|
15068
|
+
setextHeading: l(C),
|
15069
15069
|
setextHeadingLineSequence: D,
|
15070
15070
|
setextHeadingText: S,
|
15071
15071
|
strong: l(),
|
@@ -15075,7 +15075,7 @@ function c1(e) {
|
|
15075
15075
|
Uh(t, (e || {}).mdastExtensions || []);
|
15076
15076
|
const n = {};
|
15077
15077
|
return r;
|
15078
|
-
function r(
|
15078
|
+
function r(T) {
|
15079
15079
|
let P = {
|
15080
15080
|
type: "root",
|
15081
15081
|
children: []
|
@@ -15091,31 +15091,31 @@ function c1(e) {
|
|
15091
15091
|
data: n
|
15092
15092
|
}, Z = [];
|
15093
15093
|
let ce = -1;
|
15094
|
-
for (; ++ce <
|
15095
|
-
if (
|
15096
|
-
if (
|
15094
|
+
for (; ++ce < T.length; )
|
15095
|
+
if (T[ce][1].type === "listOrdered" || T[ce][1].type === "listUnordered")
|
15096
|
+
if (T[ce][0] === "enter")
|
15097
15097
|
Z.push(ce);
|
15098
15098
|
else {
|
15099
15099
|
const st = Z.pop();
|
15100
|
-
ce = i(
|
15100
|
+
ce = i(T, st, ce);
|
15101
15101
|
}
|
15102
|
-
for (ce = -1; ++ce <
|
15103
|
-
const st = t[
|
15104
|
-
Bh.call(st,
|
15105
|
-
sliceSerialize:
|
15106
|
-
}, W),
|
15102
|
+
for (ce = -1; ++ce < T.length; ) {
|
15103
|
+
const st = t[T[ce][0]];
|
15104
|
+
Bh.call(st, T[ce][1].type) && st[T[ce][1].type].call(Object.assign({
|
15105
|
+
sliceSerialize: T[ce][2].sliceSerialize
|
15106
|
+
}, W), T[ce][1]);
|
15107
15107
|
}
|
15108
15108
|
if (W.tokenStack.length > 0) {
|
15109
15109
|
const st = W.tokenStack[W.tokenStack.length - 1];
|
15110
15110
|
(st[1] || qc).call(W, void 0, st[0]);
|
15111
15111
|
}
|
15112
15112
|
for (P.position = {
|
15113
|
-
start: Ot(
|
15113
|
+
start: Ot(T.length > 0 ? T[0][1].start : {
|
15114
15114
|
line: 1,
|
15115
15115
|
column: 1,
|
15116
15116
|
offset: 0
|
15117
15117
|
}),
|
15118
|
-
end: Ot(
|
15118
|
+
end: Ot(T.length > 0 ? T[T.length - 2][1].end : {
|
15119
15119
|
line: 1,
|
15120
15120
|
column: 1,
|
15121
15121
|
offset: 0
|
@@ -15124,10 +15124,10 @@ function c1(e) {
|
|
15124
15124
|
P = t.transforms[ce](P) || P;
|
15125
15125
|
return P;
|
15126
15126
|
}
|
15127
|
-
function i(
|
15127
|
+
function i(T, P, W) {
|
15128
15128
|
let Z = P - 1, ce = -1, st = !1, jt, St, qn, Vn;
|
15129
15129
|
for (; ++Z <= W; ) {
|
15130
|
-
const qe =
|
15130
|
+
const qe = T[Z];
|
15131
15131
|
switch (qe[1].type) {
|
15132
15132
|
case "listUnordered":
|
15133
15133
|
case "listOrdered":
|
@@ -15152,13 +15152,13 @@ function c1(e) {
|
|
15152
15152
|
if (jt) {
|
15153
15153
|
let fn = Z;
|
15154
15154
|
for (St = void 0; fn--; ) {
|
15155
|
-
const _t =
|
15155
|
+
const _t = T[fn];
|
15156
15156
|
if (_t[1].type === "lineEnding" || _t[1].type === "lineEndingBlank") {
|
15157
15157
|
if (_t[0] === "exit") continue;
|
15158
|
-
St && (
|
15158
|
+
St && (T[St][1].type = "lineEndingBlank", st = !0), _t[1].type = "lineEnding", St = fn;
|
15159
15159
|
} else if (!(_t[1].type === "linePrefix" || _t[1].type === "blockQuotePrefix" || _t[1].type === "blockQuotePrefixWhitespace" || _t[1].type === "blockQuoteMarker" || _t[1].type === "listItemIndent")) break;
|
15160
15160
|
}
|
15161
|
-
qn && (!St || qn < St) && (jt._spread = !0), jt.end = Object.assign({}, St ?
|
15161
|
+
qn && (!St || qn < St) && (jt._spread = !0), jt.end = Object.assign({}, St ? T[St][1].start : qe[1].end), T.splice(St || Z, 0, ["exit", jt, qe[2]]), Z++, W++;
|
15162
15162
|
}
|
15163
15163
|
if (qe[1].type === "listItemPrefix") {
|
15164
15164
|
const fn = {
|
@@ -15168,16 +15168,16 @@ function c1(e) {
|
|
15168
15168
|
// @ts-expect-error: we’ll add `end` in a second.
|
15169
15169
|
end: void 0
|
15170
15170
|
};
|
15171
|
-
jt = fn,
|
15171
|
+
jt = fn, T.splice(Z, 0, ["enter", fn, qe[2]]), Z++, W++, qn = void 0, Vn = !0;
|
15172
15172
|
}
|
15173
15173
|
}
|
15174
15174
|
}
|
15175
|
-
return
|
15175
|
+
return T[P][1]._spread = st, W;
|
15176
15176
|
}
|
15177
|
-
function o(
|
15177
|
+
function o(T, P) {
|
15178
15178
|
return W;
|
15179
15179
|
function W(Z) {
|
15180
|
-
a.call(this,
|
15180
|
+
a.call(this, T(Z), Z), P && P.call(this, Z);
|
15181
15181
|
}
|
15182
15182
|
}
|
15183
15183
|
function s() {
|
@@ -15186,28 +15186,28 @@ function c1(e) {
|
|
15186
15186
|
children: []
|
15187
15187
|
});
|
15188
15188
|
}
|
15189
|
-
function a(
|
15190
|
-
this.stack[this.stack.length - 1].children.push(
|
15189
|
+
function a(T, P, W) {
|
15190
|
+
this.stack[this.stack.length - 1].children.push(T), this.stack.push(T), this.tokenStack.push([P, W || void 0]), T.position = {
|
15191
15191
|
start: Ot(P.start),
|
15192
15192
|
// @ts-expect-error: `end` will be patched later.
|
15193
15193
|
end: void 0
|
15194
15194
|
};
|
15195
15195
|
}
|
15196
|
-
function l(
|
15196
|
+
function l(T) {
|
15197
15197
|
return P;
|
15198
15198
|
function P(W) {
|
15199
|
-
|
15199
|
+
T && T.call(this, W), c.call(this, W);
|
15200
15200
|
}
|
15201
15201
|
}
|
15202
|
-
function c(
|
15202
|
+
function c(T, P) {
|
15203
15203
|
const W = this.stack.pop(), Z = this.tokenStack.pop();
|
15204
15204
|
if (Z)
|
15205
|
-
Z[0].type !==
|
15206
|
-
else throw new Error("Cannot close `" +
|
15207
|
-
start:
|
15208
|
-
end:
|
15205
|
+
Z[0].type !== T.type && (P ? P.call(this, T, Z[0]) : (Z[1] || qc).call(this, T, Z[0]));
|
15206
|
+
else throw new Error("Cannot close `" + T.type + "` (" + ar({
|
15207
|
+
start: T.start,
|
15208
|
+
end: T.end
|
15209
15209
|
}) + "): it’s not open");
|
15210
|
-
W.position.end = Ot(
|
15210
|
+
W.position.end = Ot(T.end);
|
15211
15211
|
}
|
15212
15212
|
function u() {
|
15213
15213
|
return Ba(this.stack.pop());
|
@@ -15215,168 +15215,168 @@ function c1(e) {
|
|
15215
15215
|
function f() {
|
15216
15216
|
this.data.expectingFirstListItemValue = !0;
|
15217
15217
|
}
|
15218
|
-
function h(
|
15218
|
+
function h(T) {
|
15219
15219
|
if (this.data.expectingFirstListItemValue) {
|
15220
15220
|
const P = this.stack[this.stack.length - 2];
|
15221
|
-
P.start = Number.parseInt(this.sliceSerialize(
|
15221
|
+
P.start = Number.parseInt(this.sliceSerialize(T), 10), this.data.expectingFirstListItemValue = void 0;
|
15222
15222
|
}
|
15223
15223
|
}
|
15224
15224
|
function d() {
|
15225
|
-
const
|
15226
|
-
P.lang =
|
15225
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15226
|
+
P.lang = T;
|
15227
15227
|
}
|
15228
15228
|
function p() {
|
15229
|
-
const
|
15230
|
-
P.meta =
|
15229
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15230
|
+
P.meta = T;
|
15231
15231
|
}
|
15232
15232
|
function m() {
|
15233
15233
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
15234
15234
|
}
|
15235
15235
|
function _() {
|
15236
|
-
const
|
15237
|
-
P.value =
|
15236
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15237
|
+
P.value = T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
15238
15238
|
}
|
15239
15239
|
function g() {
|
15240
|
-
const
|
15241
|
-
P.value =
|
15240
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15241
|
+
P.value = T.replace(/(\r?\n|\r)$/g, "");
|
15242
15242
|
}
|
15243
|
-
function v(
|
15243
|
+
function v(T) {
|
15244
15244
|
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
15245
|
-
W.label = P, W.identifier = ft(this.sliceSerialize(
|
15245
|
+
W.label = P, W.identifier = ft(this.sliceSerialize(T)).toLowerCase();
|
15246
15246
|
}
|
15247
15247
|
function x() {
|
15248
|
-
const
|
15249
|
-
P.title =
|
15248
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15249
|
+
P.title = T;
|
15250
15250
|
}
|
15251
|
-
function
|
15252
|
-
const
|
15253
|
-
P.url =
|
15251
|
+
function O() {
|
15252
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15253
|
+
P.url = T;
|
15254
15254
|
}
|
15255
|
-
function I(
|
15255
|
+
function I(T) {
|
15256
15256
|
const P = this.stack[this.stack.length - 1];
|
15257
15257
|
if (!P.depth) {
|
15258
|
-
const W = this.sliceSerialize(
|
15258
|
+
const W = this.sliceSerialize(T).length;
|
15259
15259
|
P.depth = W;
|
15260
15260
|
}
|
15261
15261
|
}
|
15262
15262
|
function S() {
|
15263
15263
|
this.data.setextHeadingSlurpLineEnding = !0;
|
15264
15264
|
}
|
15265
|
-
function D(
|
15265
|
+
function D(T) {
|
15266
15266
|
const P = this.stack[this.stack.length - 1];
|
15267
|
-
P.depth = this.sliceSerialize(
|
15267
|
+
P.depth = this.sliceSerialize(T).codePointAt(0) === 61 ? 1 : 2;
|
15268
15268
|
}
|
15269
|
-
function
|
15269
|
+
function C() {
|
15270
15270
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
15271
15271
|
}
|
15272
|
-
function E(
|
15272
|
+
function E(T) {
|
15273
15273
|
const W = this.stack[this.stack.length - 1].children;
|
15274
15274
|
let Z = W[W.length - 1];
|
15275
15275
|
(!Z || Z.type !== "text") && (Z = ae(), Z.position = {
|
15276
|
-
start: Ot(
|
15276
|
+
start: Ot(T.start),
|
15277
15277
|
// @ts-expect-error: we’ll add `end` later.
|
15278
15278
|
end: void 0
|
15279
15279
|
}, W.push(Z)), this.stack.push(Z);
|
15280
15280
|
}
|
15281
|
-
function
|
15281
|
+
function b(T) {
|
15282
15282
|
const P = this.stack.pop();
|
15283
|
-
P.value += this.sliceSerialize(
|
15283
|
+
P.value += this.sliceSerialize(T), P.position.end = Ot(T.end);
|
15284
15284
|
}
|
15285
|
-
function
|
15285
|
+
function A(T) {
|
15286
15286
|
const P = this.stack[this.stack.length - 1];
|
15287
15287
|
if (this.data.atHardBreak) {
|
15288
15288
|
const W = P.children[P.children.length - 1];
|
15289
|
-
W.position.end = Ot(
|
15289
|
+
W.position.end = Ot(T.end), this.data.atHardBreak = void 0;
|
15290
15290
|
return;
|
15291
15291
|
}
|
15292
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(P.type) && (E.call(this,
|
15292
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(P.type) && (E.call(this, T), b.call(this, T));
|
15293
15293
|
}
|
15294
|
-
function
|
15294
|
+
function N() {
|
15295
15295
|
this.data.atHardBreak = !0;
|
15296
15296
|
}
|
15297
|
-
function
|
15298
|
-
const
|
15299
|
-
P.value =
|
15297
|
+
function R() {
|
15298
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15299
|
+
P.value = T;
|
15300
15300
|
}
|
15301
15301
|
function M() {
|
15302
|
-
const
|
15303
|
-
P.value =
|
15302
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15303
|
+
P.value = T;
|
15304
15304
|
}
|
15305
15305
|
function F() {
|
15306
|
-
const
|
15307
|
-
P.value =
|
15306
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15307
|
+
P.value = T;
|
15308
15308
|
}
|
15309
15309
|
function z() {
|
15310
|
-
const
|
15310
|
+
const T = this.stack[this.stack.length - 1];
|
15311
15311
|
if (this.data.inReference) {
|
15312
15312
|
const P = this.data.referenceType || "shortcut";
|
15313
|
-
|
15313
|
+
T.type += "Reference", T.referenceType = P, delete T.url, delete T.title;
|
15314
15314
|
} else
|
15315
|
-
delete
|
15315
|
+
delete T.identifier, delete T.label;
|
15316
15316
|
this.data.referenceType = void 0;
|
15317
15317
|
}
|
15318
15318
|
function oe() {
|
15319
|
-
const
|
15319
|
+
const T = this.stack[this.stack.length - 1];
|
15320
15320
|
if (this.data.inReference) {
|
15321
15321
|
const P = this.data.referenceType || "shortcut";
|
15322
|
-
|
15322
|
+
T.type += "Reference", T.referenceType = P, delete T.url, delete T.title;
|
15323
15323
|
} else
|
15324
|
-
delete
|
15324
|
+
delete T.identifier, delete T.label;
|
15325
15325
|
this.data.referenceType = void 0;
|
15326
15326
|
}
|
15327
|
-
function J(
|
15328
|
-
const P = this.sliceSerialize(
|
15327
|
+
function J(T) {
|
15328
|
+
const P = this.sliceSerialize(T), W = this.stack[this.stack.length - 2];
|
15329
15329
|
W.label = s1(P), W.identifier = ft(P).toLowerCase();
|
15330
15330
|
}
|
15331
15331
|
function pe() {
|
15332
|
-
const
|
15332
|
+
const T = this.stack[this.stack.length - 1], P = this.resume(), W = this.stack[this.stack.length - 1];
|
15333
15333
|
if (this.data.inReference = !0, W.type === "link") {
|
15334
|
-
const Z =
|
15334
|
+
const Z = T.children;
|
15335
15335
|
W.children = Z;
|
15336
15336
|
} else
|
15337
15337
|
W.alt = P;
|
15338
15338
|
}
|
15339
15339
|
function y() {
|
15340
|
-
const
|
15341
|
-
P.url =
|
15340
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15341
|
+
P.url = T;
|
15342
15342
|
}
|
15343
15343
|
function Ce() {
|
15344
|
-
const
|
15345
|
-
P.title =
|
15344
|
+
const T = this.resume(), P = this.stack[this.stack.length - 1];
|
15345
|
+
P.title = T;
|
15346
15346
|
}
|
15347
15347
|
function je() {
|
15348
15348
|
this.data.inReference = void 0;
|
15349
15349
|
}
|
15350
|
-
function
|
15350
|
+
function w() {
|
15351
15351
|
this.data.referenceType = "collapsed";
|
15352
15352
|
}
|
15353
|
-
function K(
|
15353
|
+
function K(T) {
|
15354
15354
|
const P = this.resume(), W = this.stack[this.stack.length - 1];
|
15355
|
-
W.label = P, W.identifier = ft(this.sliceSerialize(
|
15355
|
+
W.label = P, W.identifier = ft(this.sliceSerialize(T)).toLowerCase(), this.data.referenceType = "full";
|
15356
15356
|
}
|
15357
|
-
function xe(
|
15358
|
-
this.data.characterReferenceType =
|
15357
|
+
function xe(T) {
|
15358
|
+
this.data.characterReferenceType = T.type;
|
15359
15359
|
}
|
15360
|
-
function me(
|
15361
|
-
const P = this.sliceSerialize(
|
15360
|
+
function me(T) {
|
15361
|
+
const P = this.sliceSerialize(T), W = this.data.characterReferenceType;
|
15362
15362
|
let Z;
|
15363
15363
|
W ? (Z = Rh(P, W === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Z = Ua(P);
|
15364
15364
|
const ce = this.stack[this.stack.length - 1];
|
15365
15365
|
ce.value += Z;
|
15366
15366
|
}
|
15367
|
-
function it(
|
15367
|
+
function it(T) {
|
15368
15368
|
const P = this.stack.pop();
|
15369
|
-
P.position.end = Ot(
|
15369
|
+
P.position.end = Ot(T.end);
|
15370
15370
|
}
|
15371
|
-
function Le(
|
15372
|
-
|
15371
|
+
function Le(T) {
|
15372
|
+
b.call(this, T);
|
15373
15373
|
const P = this.stack[this.stack.length - 1];
|
15374
|
-
P.url = this.sliceSerialize(
|
15374
|
+
P.url = this.sliceSerialize(T);
|
15375
15375
|
}
|
15376
|
-
function Ze(
|
15377
|
-
|
15376
|
+
function Ze(T) {
|
15377
|
+
b.call(this, T);
|
15378
15378
|
const P = this.stack[this.stack.length - 1];
|
15379
|
-
P.url = "mailto:" + this.sliceSerialize(
|
15379
|
+
P.url = "mailto:" + this.sliceSerialize(T);
|
15380
15380
|
}
|
15381
15381
|
function ot() {
|
15382
15382
|
return {
|
@@ -15448,19 +15448,19 @@ function c1(e) {
|
|
15448
15448
|
children: []
|
15449
15449
|
};
|
15450
15450
|
}
|
15451
|
-
function te(
|
15451
|
+
function te(T) {
|
15452
15452
|
return {
|
15453
15453
|
type: "list",
|
15454
|
-
ordered:
|
15454
|
+
ordered: T.type === "listOrdered",
|
15455
15455
|
start: null,
|
15456
|
-
spread:
|
15456
|
+
spread: T._spread,
|
15457
15457
|
children: []
|
15458
15458
|
};
|
15459
15459
|
}
|
15460
|
-
function We(
|
15460
|
+
function We(T) {
|
15461
15461
|
return {
|
15462
15462
|
type: "listItem",
|
15463
|
-
spread:
|
15463
|
+
spread: T._spread,
|
15464
15464
|
checked: null,
|
15465
15465
|
children: []
|
15466
15466
|
};
|
@@ -18113,16 +18113,16 @@ function VC(e, t, n) {
|
|
18113
18113
|
h.lastIndex = 0;
|
18114
18114
|
let x = h.exec(c.value);
|
18115
18115
|
for (; x; ) {
|
18116
|
-
const
|
18116
|
+
const O = x.index, I = {
|
18117
18117
|
index: x.index,
|
18118
18118
|
input: x.input,
|
18119
18119
|
stack: [...u, c]
|
18120
18120
|
};
|
18121
18121
|
let S = d(...x, I);
|
18122
|
-
if (typeof S == "string" && (S = S.length > 0 ? { type: "text", value: S } : void 0), S === !1 ? h.lastIndex =
|
18122
|
+
if (typeof S == "string" && (S = S.length > 0 ? { type: "text", value: S } : void 0), S === !1 ? h.lastIndex = O + 1 : (p !== O && v.push({
|
18123
18123
|
type: "text",
|
18124
|
-
value: c.value.slice(p,
|
18125
|
-
}), Array.isArray(S) ? v.push(...S) : S && v.push(S), p =
|
18124
|
+
value: c.value.slice(p, O)
|
18125
|
+
}), Array.isArray(S) ? v.push(...S) : S && v.push(S), p = O + x[0].length, g = !0), !h.global)
|
18126
18126
|
break;
|
18127
18127
|
x = h.exec(c.value);
|
18128
18128
|
}
|
@@ -18455,14 +18455,14 @@ function II(e, t) {
|
|
18455
18455
|
const g = [];
|
18456
18456
|
for (; ++f < c; ) {
|
18457
18457
|
const v = m[f] || "";
|
18458
|
-
let x = "",
|
18458
|
+
let x = "", O = "";
|
18459
18459
|
if (n.alignDelimiters !== !1) {
|
18460
18460
|
const I = l[f] - (_[f] || 0), S = o[f];
|
18461
|
-
S === 114 ? x = " ".repeat(I) : S === 99 ? I % 2 ? (x = " ".repeat(I / 2 + 0.5),
|
18461
|
+
S === 114 ? x = " ".repeat(I) : S === 99 ? I % 2 ? (x = " ".repeat(I / 2 + 0.5), O = " ".repeat(I / 2 - 0.5)) : (x = " ".repeat(I / 2), O = x) : 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.
|
18465
|
-
!(n.alignDelimiters === !1 && v === "") && (n.delimiterStart !== !1 || f) && g.push(" "), n.alignDelimiters !== !1 && g.push(x), g.push(v), n.alignDelimiters !== !1 && g.push(
|
18465
|
+
!(n.alignDelimiters === !1 && v === "") && (n.delimiterStart !== !1 || f) && g.push(" "), n.alignDelimiters !== !1 && g.push(x), g.push(v), n.alignDelimiters !== !1 && g.push(O), n.padding !== !1 && g.push(" "), (n.delimiterEnd !== !1 || f !== c - 1) && g.push("|");
|
18466
18466
|
}
|
18467
18467
|
p.push(
|
18468
18468
|
n.delimiterEnd === !1 ? g.join("").replace(/ +$/, "") : g.join("")
|
@@ -19812,70 +19812,70 @@ function qT(e, t, n) {
|
|
19812
19812
|
const r = this;
|
19813
19813
|
let i = 0, o = 0, s;
|
19814
19814
|
return a;
|
19815
|
-
function a(
|
19816
|
-
let
|
19817
|
-
for (;
|
19818
|
-
const M = r.events[
|
19815
|
+
function a(b) {
|
19816
|
+
let A = r.events.length - 1;
|
19817
|
+
for (; A > -1; ) {
|
19818
|
+
const M = r.events[A][1].type;
|
19819
19819
|
if (M === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
19820
|
-
M === "linePrefix")
|
19820
|
+
M === "linePrefix") A--;
|
19821
19821
|
else break;
|
19822
19822
|
}
|
19823
|
-
const
|
19824
|
-
return
|
19823
|
+
const N = A > -1 ? r.events[A][1].type : null, R = N === "tableHead" || N === "tableRow" ? S : l;
|
19824
|
+
return R === S && r.parser.lazy[r.now().line] ? n(b) : R(b);
|
19825
19825
|
}
|
19826
|
-
function l(
|
19827
|
-
return e.enter("tableHead"), e.enter("tableRow"), c(
|
19826
|
+
function l(b) {
|
19827
|
+
return e.enter("tableHead"), e.enter("tableRow"), c(b);
|
19828
19828
|
}
|
19829
|
-
function c(
|
19830
|
-
return
|
19829
|
+
function c(b) {
|
19830
|
+
return b === 124 || (s = !0, o += 1), u(b);
|
19831
19831
|
}
|
19832
|
-
function u(
|
19833
|
-
return
|
19832
|
+
function u(b) {
|
19833
|
+
return b === null ? n(b) : B(b) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), d) : n(b) : X(b) ? re(e, u, "whitespace")(b) : (o += 1, s && (s = !1, i += 1), b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), s = !0, u) : (e.enter("data"), f(b)));
|
19834
19834
|
}
|
19835
|
-
function f(
|
19836
|
-
return
|
19835
|
+
function f(b) {
|
19836
|
+
return b === null || b === 124 || ue(b) ? (e.exit("data"), u(b)) : (e.consume(b), b === 92 ? h : f);
|
19837
19837
|
}
|
19838
|
-
function h(
|
19839
|
-
return
|
19838
|
+
function h(b) {
|
19839
|
+
return b === 92 || b === 124 ? (e.consume(b), f) : f(b);
|
19840
19840
|
}
|
19841
|
-
function d(
|
19842
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
19841
|
+
function d(b) {
|
19842
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(b) : (e.enter("tableDelimiterRow"), s = !1, X(b) ? re(e, p, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : p(b));
|
19843
19843
|
}
|
19844
|
-
function p(
|
19845
|
-
return
|
19844
|
+
function p(b) {
|
19845
|
+
return b === 45 || b === 58 ? _(b) : b === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), m) : I(b);
|
19846
19846
|
}
|
19847
|
-
function m(
|
19848
|
-
return X(
|
19847
|
+
function m(b) {
|
19848
|
+
return X(b) ? re(e, _, "whitespace")(b) : _(b);
|
19849
19849
|
}
|
19850
|
-
function _(
|
19851
|
-
return
|
19850
|
+
function _(b) {
|
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
|
-
function g(
|
19854
|
-
return
|
19853
|
+
function g(b) {
|
19854
|
+
return b === 45 ? (e.enter("tableDelimiterFiller"), v(b)) : I(b);
|
19855
19855
|
}
|
19856
|
-
function v(
|
19857
|
-
return
|
19856
|
+
function v(b) {
|
19857
|
+
return b === 45 ? (e.consume(b), v) : b === 58 ? (s = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(b), e.exit("tableDelimiterMarker"), x) : (e.exit("tableDelimiterFiller"), x(b));
|
19858
19858
|
}
|
19859
|
-
function x(
|
19860
|
-
return X(
|
19859
|
+
function x(b) {
|
19860
|
+
return X(b) ? re(e, O, "whitespace")(b) : O(b);
|
19861
19861
|
}
|
19862
|
-
function
|
19863
|
-
return
|
19862
|
+
function O(b) {
|
19863
|
+
return b === 124 ? p(b) : b === null || B(b) ? !s || i !== o ? I(b) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(b)) : I(b);
|
19864
19864
|
}
|
19865
|
-
function I(
|
19866
|
-
return n(
|
19865
|
+
function I(b) {
|
19866
|
+
return n(b);
|
19867
19867
|
}
|
19868
|
-
function S(
|
19869
|
-
return e.enter("tableRow"), D(
|
19868
|
+
function S(b) {
|
19869
|
+
return e.enter("tableRow"), D(b);
|
19870
19870
|
}
|
19871
|
-
function D(
|
19872
|
-
return
|
19871
|
+
function D(b) {
|
19872
|
+
return b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), D) : b === null || B(b) ? (e.exit("tableRow"), t(b)) : X(b) ? re(e, D, "whitespace")(b) : (e.enter("data"), C(b));
|
19873
19873
|
}
|
19874
|
-
function
|
19875
|
-
return
|
19874
|
+
function C(b) {
|
19875
|
+
return b === null || b === 124 || ue(b) ? (e.exit("data"), D(b)) : (e.consume(b), b === 92 ? E : C);
|
19876
19876
|
}
|
19877
|
-
function E(
|
19878
|
-
return
|
19877
|
+
function E(b) {
|
19878
|
+
return b === 92 || b === 124 ? (e.consume(b), C) : C(b);
|
19879
19879
|
}
|
19880
19880
|
}
|
19881
19881
|
function VT(e, t) {
|
@@ -20027,7 +20027,7 @@ function yu({
|
|
20027
20027
|
}) {
|
20028
20028
|
const a = !t, [l, c] = le(!1), [u, f] = le(
|
20029
20029
|
null
|
20030
|
-
), [h, d] = le(!1), [p, m] = le(!1), _ = ih(), { collectUserFeedback: g, onMessageClick: v } = ao(), x = !e.isWelcomeMessage && typeof v == "function",
|
20030
|
+
), [h, d] = le(!1), [p, m] = le(!1), _ = ih(), { collectUserFeedback: g, onMessageClick: v } = ao(), x = !e.isWelcomeMessage && typeof v == "function", O = Sx(
|
20031
20031
|
e.content,
|
20032
20032
|
15,
|
20033
20033
|
n && a
|
@@ -20043,7 +20043,7 @@ function yu({
|
|
20043
20043
|
"text-card-foreground ml-3": e.sender === "assistant",
|
20044
20044
|
"text-white mr-3": e.sender === "user"
|
20045
20045
|
}),
|
20046
|
-
children:
|
20046
|
+
children: O
|
20047
20047
|
}
|
20048
20048
|
) }) : /* @__PURE__ */ G(
|
20049
20049
|
"div",
|
@@ -20085,7 +20085,7 @@ function yu({
|
|
20085
20085
|
className: "max-w-full rounded-lg cursor-pointer hover:opacity-90 transition-opacity",
|
20086
20086
|
onClick: () => c(!0)
|
20087
20087
|
}
|
20088
|
-
) : /* @__PURE__ */ k("div", { className: "typewriter prose text-left", children: /* @__PURE__ */ k(eR, { text:
|
20088
|
+
) : /* @__PURE__ */ k("div", { className: "typewriter prose text-left", children: /* @__PURE__ */ k(eR, { text: O }) })
|
20089
20089
|
}
|
20090
20090
|
)
|
20091
20091
|
]
|
@@ -20840,53 +20840,53 @@ function gR({
|
|
20840
20840
|
}) {
|
20841
20841
|
const s = Re(null), a = Re("medium"), l = Re(0), c = Re(!1), u = () => {
|
20842
20842
|
s.current && (clearTimeout(s.current), s.current = null);
|
20843
|
-
}, f = (
|
20844
|
-
id:
|
20845
|
-
content:
|
20846
|
-
sender:
|
20847
|
-
timestamp:
|
20843
|
+
}, f = (C) => ({
|
20844
|
+
id: C.message_id,
|
20845
|
+
content: C.response.content,
|
20846
|
+
sender: C.role,
|
20847
|
+
timestamp: C.created_at,
|
20848
20848
|
type: "text"
|
20849
|
-
}), h = (
|
20850
|
-
message_id:
|
20851
|
-
response:
|
20849
|
+
}), h = (C) => ({
|
20850
|
+
message_id: C.message_id,
|
20851
|
+
response: C.response
|
20852
20852
|
}), d = be(
|
20853
|
-
(
|
20854
|
-
const
|
20855
|
-
for (let
|
20856
|
-
if (
|
20853
|
+
(C, E) => {
|
20854
|
+
const b = E.map(f), A = Math.min(C.length, b.length);
|
20855
|
+
for (let N = 0; N < A; N++)
|
20856
|
+
if (C[N].id !== b[N].id)
|
20857
20857
|
return !1;
|
20858
20858
|
return !0;
|
20859
20859
|
},
|
20860
20860
|
[]
|
20861
20861
|
), p = be(
|
20862
|
-
(
|
20862
|
+
(C) => {
|
20863
20863
|
setTimeout(() => {
|
20864
|
-
o(h(
|
20864
|
+
o(h(C), t);
|
20865
20865
|
}, 100);
|
20866
20866
|
},
|
20867
20867
|
[o, t]
|
20868
20868
|
), m = be(
|
20869
|
-
(
|
20870
|
-
const
|
20871
|
-
if (E &&
|
20872
|
-
const
|
20873
|
-
r([...
|
20869
|
+
(C, E = !1) => {
|
20870
|
+
const b = n.filter((N) => N.isWelcomeMessage), A = C.map(f);
|
20871
|
+
if (E && A.length > 0) {
|
20872
|
+
const N = C[C.length - 1];
|
20873
|
+
r([...b, ...A.slice(0, -1)]), p(N);
|
20874
20874
|
} else
|
20875
|
-
r([...
|
20875
|
+
r([...b, ...A]);
|
20876
20876
|
},
|
20877
20877
|
[n, r, p]
|
20878
20878
|
), _ = be(
|
20879
|
-
(
|
20880
|
-
if (
|
20879
|
+
(C) => {
|
20880
|
+
if (C.role === "assistant")
|
20881
20881
|
o(
|
20882
|
-
h(
|
20882
|
+
h(C),
|
20883
20883
|
t
|
20884
20884
|
);
|
20885
20885
|
else {
|
20886
|
-
const E = n.filter((
|
20887
|
-
(
|
20888
|
-
),
|
20889
|
-
r([...E, ...
|
20886
|
+
const E = n.filter((N) => N.isWelcomeMessage), b = n.filter(
|
20887
|
+
(N) => !N.isThinking && !N.isWelcomeMessage
|
20888
|
+
), A = f(C);
|
20889
|
+
r([...E, ...b, A]);
|
20890
20890
|
}
|
20891
20891
|
l.current = Math.max(
|
20892
20892
|
0,
|
@@ -20895,28 +20895,28 @@ function gR({
|
|
20895
20895
|
},
|
20896
20896
|
[o, t, n, r]
|
20897
20897
|
), g = be(
|
20898
|
-
(
|
20899
|
-
const
|
20900
|
-
m(
|
20898
|
+
(C, E) => {
|
20899
|
+
const A = E[E.length - 1].role === "assistant";
|
20900
|
+
m(C, A), l.current = Math.max(
|
20901
20901
|
0,
|
20902
20902
|
l.current - E.length
|
20903
20903
|
);
|
20904
20904
|
},
|
20905
20905
|
[m]
|
20906
20906
|
), v = be(
|
20907
|
-
(
|
20907
|
+
(C, E, b) => {
|
20908
20908
|
if (E.length > 0) {
|
20909
|
-
const
|
20910
|
-
m(
|
20909
|
+
const N = E[E.length - 1].role === "assistant";
|
20910
|
+
m(C, N), l.current = Math.max(
|
20911
20911
|
0,
|
20912
20912
|
l.current - E.length
|
20913
20913
|
);
|
20914
20914
|
} else {
|
20915
|
-
const
|
20915
|
+
const A = n.filter((R) => R.isWelcomeMessage), N = C.map(f);
|
20916
20916
|
r([
|
20917
|
-
...
|
20918
|
-
...
|
20919
|
-
...
|
20917
|
+
...A,
|
20918
|
+
...N,
|
20919
|
+
...b
|
20920
20920
|
]);
|
20921
20921
|
}
|
20922
20922
|
},
|
@@ -20924,27 +20924,27 @@ function gR({
|
|
20924
20924
|
), x = be(async () => {
|
20925
20925
|
if (!(!e || !t || !c.current))
|
20926
20926
|
try {
|
20927
|
-
const
|
20927
|
+
const C = await e.getChatHistory(t), E = n.filter(
|
20928
20928
|
(M) => !M.isThinking && !M.isWelcomeMessage
|
20929
|
-
),
|
20930
|
-
(M) => !
|
20931
|
-
),
|
20932
|
-
(M) => !
|
20929
|
+
), b = new Set(E.map((M) => M.id)), A = new Set(C.map((M) => M.message_id)), N = C.filter(
|
20930
|
+
(M) => !b.has(M.message_id)
|
20931
|
+
), R = E.filter(
|
20932
|
+
(M) => !A.has(M.id)
|
20933
20933
|
);
|
20934
|
-
if (!(
|
20935
|
-
const M = d(E,
|
20936
|
-
M && F ? _(
|
20937
|
-
T,
|
20934
|
+
if (!(N.length === 0 && R.length === 0)) {
|
20935
|
+
const M = d(E, C), F = N.length === 1 && R.length === 0, z = N.length > 1 && R.length === 0;
|
20936
|
+
M && F ? _(N[0]) : M && z ? g(C, N) : v(
|
20938
20937
|
C,
|
20939
|
-
N
|
20938
|
+
N,
|
20939
|
+
R
|
20940
20940
|
);
|
20941
20941
|
}
|
20942
20942
|
if (c.current) {
|
20943
20943
|
const M = ti[a.current];
|
20944
20944
|
s.current = setTimeout(x, M);
|
20945
20945
|
}
|
20946
|
-
} catch (
|
20947
|
-
if (console.warn("Background polling failed:",
|
20946
|
+
} catch (C) {
|
20947
|
+
if (console.warn("Background polling failed:", C), c.current) {
|
20948
20948
|
const E = ti[a.current];
|
20949
20949
|
s.current = setTimeout(x, E);
|
20950
20950
|
}
|
@@ -20957,21 +20957,21 @@ function gR({
|
|
20957
20957
|
_,
|
20958
20958
|
g,
|
20959
20959
|
v
|
20960
|
-
]),
|
20960
|
+
]), O = be(() => {
|
20961
20961
|
if (!t || c.current)
|
20962
20962
|
return;
|
20963
20963
|
c.current = !0;
|
20964
|
-
const
|
20965
|
-
s.current = setTimeout(x,
|
20964
|
+
const C = ti[a.current];
|
20965
|
+
s.current = setTimeout(x, C);
|
20966
20966
|
}, [t, x]), I = be(() => {
|
20967
20967
|
c.current = !1, u(), l.current = 0;
|
20968
20968
|
}, []), S = be(
|
20969
|
-
(
|
20969
|
+
(C) => {
|
20970
20970
|
const E = a.current;
|
20971
|
-
if (a.current =
|
20971
|
+
if (a.current = C, E !== C && c.current) {
|
20972
20972
|
u();
|
20973
|
-
const
|
20974
|
-
s.current = setTimeout(x,
|
20973
|
+
const b = ti[C];
|
20974
|
+
s.current = setTimeout(x, b);
|
20975
20975
|
}
|
20976
20976
|
},
|
20977
20977
|
[x]
|
@@ -20979,12 +20979,12 @@ function gR({
|
|
20979
20979
|
l.current += 1, S("high");
|
20980
20980
|
};
|
20981
20981
|
return Ae(() => {
|
20982
|
-
const
|
20983
|
-
S(
|
20984
|
-
}, [i, S]), Ae(() => (t && e ?
|
20982
|
+
const C = l.current > 0 ? "high" : i ? "medium" : "low";
|
20983
|
+
S(C);
|
20984
|
+
}, [i, S]), Ae(() => (t && e ? O() : I(), I), [t, e, O, I]), Ae(() => I, [I]), {
|
20985
20985
|
setPollingMode: S,
|
20986
20986
|
expectMessage: D,
|
20987
|
-
startPolling:
|
20987
|
+
startPolling: O,
|
20988
20988
|
stopPolling: I
|
20989
20989
|
};
|
20990
20990
|
}
|
@@ -21348,18 +21348,18 @@ const Ap = (e) => {
|
|
21348
21348
|
message: "Invalid config parameter.",
|
21349
21349
|
recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
|
21350
21350
|
});
|
21351
|
-
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: _, aws_mobile_analytics_app_region: g, aws_user_files_s3_bucket: v, aws_user_files_s3_bucket_region: x, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:
|
21352
|
-
_ && (
|
21351
|
+
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: _, aws_mobile_analytics_app_region: g, aws_user_files_s3_bucket: v, aws_user_files_s3_bucket_region: x, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: O, aws_user_pools_id: I, aws_user_pools_web_client_id: S, geo: D, oauth: C, predictions: E, aws_cloud_logic_custom: b, Notifications: A, modelIntrospection: N } = e, R = {};
|
21352
|
+
_ && (R.Analytics = {
|
21353
21353
|
Pinpoint: {
|
21354
21354
|
appId: _,
|
21355
21355
|
region: g
|
21356
21356
|
}
|
21357
21357
|
});
|
21358
|
-
const { InAppMessaging: M, Push: F } =
|
21358
|
+
const { InAppMessaging: M, Push: F } = A ?? {};
|
21359
21359
|
if (M?.AWSPinpoint || F?.AWSPinpoint) {
|
21360
21360
|
if (M?.AWSPinpoint) {
|
21361
21361
|
const { appId: K, region: xe } = M.AWSPinpoint;
|
21362
|
-
|
21362
|
+
R.Notifications = {
|
21363
21363
|
InAppMessaging: {
|
21364
21364
|
Pinpoint: {
|
21365
21365
|
appId: K,
|
@@ -21370,8 +21370,8 @@ const Ap = (e) => {
|
|
21370
21370
|
}
|
21371
21371
|
if (F?.AWSPinpoint) {
|
21372
21372
|
const { appId: K, region: xe } = F.AWSPinpoint;
|
21373
|
-
|
21374
|
-
...
|
21373
|
+
R.Notifications = {
|
21374
|
+
...R.Notifications,
|
21375
21375
|
PushNotification: {
|
21376
21376
|
Pinpoint: {
|
21377
21377
|
appId: K,
|
@@ -21381,18 +21381,18 @@ const Ap = (e) => {
|
|
21381
21381
|
};
|
21382
21382
|
}
|
21383
21383
|
}
|
21384
|
-
if (Array.isArray(o) && (
|
21384
|
+
if (Array.isArray(o) && (R.Interactions = {
|
21385
21385
|
LexV1: Object.fromEntries(o.map((K) => [K.name, K]))
|
21386
21386
|
}), r) {
|
21387
21387
|
const K = CR[n];
|
21388
|
-
K || ER.debug(`Invalid authentication type ${n}. Falling back to IAM.`),
|
21388
|
+
K || ER.debug(`Invalid authentication type ${n}. Falling back to IAM.`), R.API = {
|
21389
21389
|
GraphQL: {
|
21390
21390
|
endpoint: r,
|
21391
21391
|
apiKey: t,
|
21392
21392
|
region: i,
|
21393
21393
|
defaultAuthMode: K ?? "iam"
|
21394
21394
|
}
|
21395
|
-
},
|
21395
|
+
}, N && (R.API.GraphQL.modelIntrospection = N);
|
21396
21396
|
}
|
21397
21397
|
const z = l ? {
|
21398
21398
|
status: l && l.toLowerCase(),
|
@@ -21412,7 +21412,7 @@ const Ap = (e) => {
|
|
21412
21412
|
// All user attributes generated by the CLI are required
|
21413
21413
|
[xe.toLowerCase()]: { required: !0 }
|
21414
21414
|
}), {}), y = p?.includes("EMAIL") ?? !1, Ce = p?.includes("PHONE_NUMBER") ?? !1;
|
21415
|
-
(s || I) && (
|
21415
|
+
(s || I) && (R.Auth = {
|
21416
21416
|
Cognito: {
|
21417
21417
|
identityPoolId: s,
|
21418
21418
|
allowGuestAccess: m !== "enable",
|
@@ -21429,24 +21429,24 @@ const Ap = (e) => {
|
|
21429
21429
|
}
|
21430
21430
|
}
|
21431
21431
|
});
|
21432
|
-
const je =
|
21433
|
-
if (
|
21434
|
-
...
|
21432
|
+
const je = C ? Object.keys(C).length > 0 : !1, w = d ? d.length > 0 : !1;
|
21433
|
+
if (R.Auth && je && (R.Auth.Cognito.loginWith = {
|
21434
|
+
...R.Auth.Cognito.loginWith,
|
21435
21435
|
oauth: {
|
21436
|
-
...TR(
|
21437
|
-
...
|
21436
|
+
...TR(C),
|
21437
|
+
...w && {
|
21438
21438
|
providers: RR(d)
|
21439
21439
|
}
|
21440
21440
|
}
|
21441
|
-
}), v && (
|
21441
|
+
}), v && (R.Storage = {
|
21442
21442
|
S3: {
|
21443
21443
|
bucket: v,
|
21444
21444
|
region: x,
|
21445
|
-
dangerouslyConnectToHttpEndpointForTesting:
|
21445
|
+
dangerouslyConnectToHttpEndpointForTesting: O
|
21446
21446
|
}
|
21447
21447
|
}), D) {
|
21448
21448
|
const { amazon_location_service: K } = D;
|
21449
|
-
|
21449
|
+
R.Geo = {
|
21450
21450
|
LocationService: {
|
21451
21451
|
maps: K.maps,
|
21452
21452
|
geofenceCollections: K.geofenceCollections,
|
@@ -21455,9 +21455,9 @@ const Ap = (e) => {
|
|
21455
21455
|
}
|
21456
21456
|
};
|
21457
21457
|
}
|
21458
|
-
if (
|
21459
|
-
...
|
21460
|
-
REST:
|
21458
|
+
if (b && (R.API = {
|
21459
|
+
...R.API,
|
21460
|
+
REST: b.reduce((K, xe) => {
|
21461
21461
|
const { name: me, endpoint: it, region: Le, service: Ze } = xe;
|
21462
21462
|
return {
|
21463
21463
|
...K,
|
@@ -21470,7 +21470,7 @@ const Ap = (e) => {
|
|
21470
21470
|
}, {})
|
21471
21471
|
}), E) {
|
21472
21472
|
const { VoiceId: K } = E?.convert?.speechGenerator?.defaults ?? {};
|
21473
|
-
|
21473
|
+
R.Predictions = K ? {
|
21474
21474
|
...E,
|
21475
21475
|
convert: {
|
21476
21476
|
...E.convert,
|
@@ -21481,7 +21481,7 @@ const Ap = (e) => {
|
|
21481
21481
|
}
|
21482
21482
|
} : E;
|
21483
21483
|
}
|
21484
|
-
return
|
21484
|
+
return R;
|
21485
21485
|
}, vu = (e) => e?.split(",") ?? [], TR = ({ domain: e, scope: t, redirectSignIn: n, redirectSignOut: r, responseType: i }) => ({
|
21486
21486
|
domain: e,
|
21487
21487
|
scopes: t,
|
@@ -23264,8 +23264,8 @@ var Zo = /* @__PURE__ */ function(e) {
|
|
23264
23264
|
}) : (h = p) === null || h === void 0 ? void 0 : h.map(function(I) {
|
23265
23265
|
return Ys(I.source, I.start);
|
23266
23266
|
}), d.path = a ?? void 0;
|
23267
|
-
var
|
23268
|
-
return c == null && UN(
|
23267
|
+
var O = l?.extensions;
|
23268
|
+
return c == null && UN(O) ? d.extensions = WN({}, O) : d.extensions = c ?? {}, Object.defineProperties(tr(d), {
|
23269
23269
|
message: {
|
23270
23270
|
enumerable: !0
|
23271
23271
|
},
|
@@ -24208,8 +24208,8 @@ function zO({
|
|
24208
24208
|
"Cannot connect: Amplify not ready or missing conversationId"
|
24209
24209
|
);
|
24210
24210
|
_();
|
24211
|
-
const x = `/default/chat/${v}`,
|
24212
|
-
a.current =
|
24211
|
+
const x = `/default/chat/${v}`, O = await AO(x);
|
24212
|
+
a.current = O, O.subscribe({
|
24213
24213
|
next: (I) => {
|
24214
24214
|
if (console.log("Received event:", I), I.type !== "data")
|
24215
24215
|
return console.warn("Unexpected event type:", I.type);
|
@@ -24221,8 +24221,8 @@ function zO({
|
|
24221
24221
|
"Invalid conversation response:",
|
24222
24222
|
S.error
|
24223
24223
|
);
|
24224
|
-
const D = S.data,
|
24225
|
-
switch (
|
24224
|
+
const D = S.data, C = D.data.type;
|
24225
|
+
switch (C) {
|
24226
24226
|
case "utterance":
|
24227
24227
|
return d(
|
24228
24228
|
D,
|
@@ -24235,7 +24235,7 @@ function zO({
|
|
24235
24235
|
D
|
24236
24236
|
);
|
24237
24237
|
default:
|
24238
|
-
console.warn("Unknown notification type:",
|
24238
|
+
console.warn("Unknown notification type:", C);
|
24239
24239
|
}
|
24240
24240
|
},
|
24241
24241
|
error: (I) => {
|
@@ -24243,7 +24243,7 @@ function zO({
|
|
24243
24243
|
}
|
24244
24244
|
}), await g();
|
24245
24245
|
}, d = (v, x) => {
|
24246
|
-
const
|
24246
|
+
const O = {
|
24247
24247
|
message_id: v.message_id,
|
24248
24248
|
response: {
|
24249
24249
|
id: v.message_id,
|
@@ -24251,17 +24251,17 @@ function zO({
|
|
24251
24251
|
content: v.data.content
|
24252
24252
|
}
|
24253
24253
|
};
|
24254
|
-
e(
|
24254
|
+
e(O, x);
|
24255
24255
|
}, p = (v) => {
|
24256
|
-
const x = parseInt(v.data.code),
|
24257
|
-
n?.(), l({ code: x, message:
|
24256
|
+
const x = parseInt(v.data.code), O = kp(x);
|
24257
|
+
n?.(), l({ code: x, message: O });
|
24258
24258
|
}, m = (v) => {
|
24259
24259
|
t(v.data.content);
|
24260
24260
|
}, _ = () => {
|
24261
24261
|
a.current && (a.current.close(), a.current = null);
|
24262
|
-
}, g = async (v = 1e4) => s.current ? Promise.resolve() : new Promise((x,
|
24262
|
+
}, g = async (v = 1e4) => s.current ? Promise.resolve() : new Promise((x, O) => {
|
24263
24263
|
const I = setTimeout(() => {
|
24264
|
-
|
24264
|
+
O(
|
24265
24265
|
new Error(
|
24266
24266
|
`AppSync connection timeout: Failed to connect within ${v}ms`
|
24267
24267
|
)
|
@@ -24282,121 +24282,125 @@ function zO({
|
|
24282
24282
|
function BO({
|
24283
24283
|
appId: e,
|
24284
24284
|
userId: t,
|
24285
|
-
|
24286
|
-
|
24287
|
-
|
24288
|
-
|
24289
|
-
|
24290
|
-
|
24291
|
-
|
24292
|
-
|
24293
|
-
|
24285
|
+
userName: n,
|
24286
|
+
externalId: r,
|
24287
|
+
deviceId: i,
|
24288
|
+
apiClient: o,
|
24289
|
+
chatSettings: s,
|
24290
|
+
messages: a,
|
24291
|
+
setMessages: l,
|
24292
|
+
currentConversation: c,
|
24293
|
+
setCurrentConversation: u,
|
24294
|
+
chatOpen: f
|
24294
24295
|
}) {
|
24295
|
-
const { saveConversationData:
|
24296
|
-
(
|
24297
|
-
|
24298
|
-
const
|
24299
|
-
if (!
|
24300
|
-
(
|
24296
|
+
const { saveConversationData: h, clearConversationData: d, updateLastActivity: p } = Ja({ appId: e }), { publishApiError: m } = po(), { showCognition: _, hideCognition: g } = vp(), v = be(
|
24297
|
+
(b, A) => {
|
24298
|
+
g(), l((N) => {
|
24299
|
+
const R = N.filter((z) => !z.isThinking);
|
24300
|
+
if (!b.response.content || R.some(
|
24301
|
+
(z) => z.id === b.message_id
|
24301
24302
|
))
|
24302
|
-
return
|
24303
|
-
const
|
24304
|
-
...
|
24303
|
+
return R;
|
24304
|
+
const F = [
|
24305
|
+
...R,
|
24305
24306
|
{
|
24306
|
-
id:
|
24307
|
-
content:
|
24307
|
+
id: b.message_id,
|
24308
|
+
content: b.response.content ?? "",
|
24308
24309
|
sender: "assistant",
|
24309
24310
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
24310
24311
|
}
|
24311
24312
|
];
|
24312
|
-
return
|
24313
|
-
|
24313
|
+
return h(
|
24314
|
+
A,
|
24314
24315
|
t,
|
24315
|
-
|
24316
|
-
|
24317
|
-
),
|
24316
|
+
F,
|
24317
|
+
i
|
24318
|
+
), F;
|
24318
24319
|
});
|
24319
24320
|
},
|
24320
|
-
[
|
24321
|
-
),
|
24322
|
-
|
24323
|
-
}, [
|
24324
|
-
onReceiveMessage:
|
24325
|
-
onReceiveCognition:
|
24326
|
-
onError:
|
24327
|
-
chatSettings:
|
24328
|
-
}), { expectMessage:
|
24329
|
-
apiClient:
|
24330
|
-
conversationId:
|
24331
|
-
messages:
|
24332
|
-
setMessages:
|
24333
|
-
chatOpen:
|
24334
|
-
onReceiveMessage:
|
24335
|
-
}),
|
24336
|
-
|
24337
|
-
(
|
24338
|
-
),
|
24321
|
+
[i, g, h, l, t]
|
24322
|
+
), x = be(() => {
|
24323
|
+
g(), l((b) => b.filter((A) => !A.isThinking));
|
24324
|
+
}, [l, g]), { connect: O, disconnect: I } = zO({
|
24325
|
+
onReceiveMessage: v,
|
24326
|
+
onReceiveCognition: _,
|
24327
|
+
onError: x,
|
24328
|
+
chatSettings: s
|
24329
|
+
}), { expectMessage: S, stopPolling: D } = gR({
|
24330
|
+
apiClient: o,
|
24331
|
+
conversationId: c?.id || null,
|
24332
|
+
messages: a,
|
24333
|
+
setMessages: l,
|
24334
|
+
chatOpen: f,
|
24335
|
+
onReceiveMessage: v
|
24336
|
+
}), C = be(() => {
|
24337
|
+
I(), D(), l(
|
24338
|
+
(b) => b.filter((A) => Array.isArray(A) ? !1 : A.isWelcomeMessage)
|
24339
|
+
), d(), u(null);
|
24339
24340
|
}, [
|
24340
|
-
|
24341
|
-
|
24342
|
-
|
24343
|
-
|
24344
|
-
|
24345
|
-
]),
|
24346
|
-
async (
|
24347
|
-
if (!
|
24348
|
-
const
|
24349
|
-
...
|
24341
|
+
I,
|
24342
|
+
D,
|
24343
|
+
d,
|
24344
|
+
l,
|
24345
|
+
u
|
24346
|
+
]), E = be(
|
24347
|
+
async (b) => {
|
24348
|
+
if (!o) return;
|
24349
|
+
const A = {
|
24350
|
+
...b,
|
24350
24351
|
// Temporary ID
|
24351
24352
|
id: crypto.randomUUID()
|
24352
24353
|
};
|
24353
|
-
|
24354
|
-
const
|
24355
|
-
|
24354
|
+
_();
|
24355
|
+
const N = [...a, A];
|
24356
|
+
l(N), p();
|
24356
24357
|
try {
|
24357
|
-
let
|
24358
|
-
|
24359
|
-
userId:
|
24360
|
-
deviceId:
|
24361
|
-
|
24362
|
-
|
24363
|
-
|
24364
|
-
|
24365
|
-
|
24366
|
-
|
24358
|
+
let R = c?.id;
|
24359
|
+
R || (R = (await o.createConversation({
|
24360
|
+
userId: r || t,
|
24361
|
+
deviceId: i,
|
24362
|
+
userName: n
|
24363
|
+
})).chat_id, u({ id: R }), await O(R));
|
24364
|
+
const M = await o.replyToConversation({
|
24365
|
+
text: b.content,
|
24366
|
+
conversationId: R,
|
24367
|
+
userId: r || t,
|
24368
|
+
deviceId: i,
|
24369
|
+
userName: n
|
24367
24370
|
});
|
24368
|
-
|
24369
|
-
(
|
24370
|
-
(
|
24371
|
+
l(
|
24372
|
+
(F) => F.map(
|
24373
|
+
(z) => z.id === A.id ? { ...z, id: M.message_id } : z
|
24371
24374
|
)
|
24372
|
-
),
|
24373
|
-
} catch (
|
24374
|
-
throw
|
24375
|
-
(
|
24376
|
-
),
|
24375
|
+
), S();
|
24376
|
+
} catch (R) {
|
24377
|
+
throw g(), l(
|
24378
|
+
(M) => M.filter((F) => !F.isThinking)
|
24379
|
+
), m(R), R instanceof $s && R.status >= 500 && (u(null), d(), l((M) => M.slice(0, -1)), o.reset()), R;
|
24377
24380
|
}
|
24378
24381
|
},
|
24379
24382
|
[
|
24383
|
+
o,
|
24384
|
+
_,
|
24385
|
+
a,
|
24386
|
+
l,
|
24387
|
+
p,
|
24388
|
+
c?.id,
|
24389
|
+
r,
|
24390
|
+
t,
|
24380
24391
|
i,
|
24392
|
+
S,
|
24393
|
+
u,
|
24394
|
+
O,
|
24395
|
+
g,
|
24381
24396
|
m,
|
24382
|
-
s,
|
24383
|
-
a,
|
24384
24397
|
d,
|
24385
|
-
|
24386
|
-
n,
|
24387
|
-
t,
|
24388
|
-
r,
|
24389
|
-
I,
|
24390
|
-
c,
|
24391
|
-
x,
|
24392
|
-
_,
|
24393
|
-
p,
|
24394
|
-
h
|
24398
|
+
n
|
24395
24399
|
]
|
24396
24400
|
);
|
24397
24401
|
return {
|
24398
|
-
onCleanMessages:
|
24399
|
-
onSendMessage:
|
24402
|
+
onCleanMessages: C,
|
24403
|
+
onSendMessage: E
|
24400
24404
|
};
|
24401
24405
|
}
|
24402
24406
|
class UO {
|
@@ -24428,6 +24432,7 @@ class UO {
|
|
24428
24432
|
user_data: {
|
24429
24433
|
user_id: t.userId,
|
24430
24434
|
device_id: t.deviceId,
|
24435
|
+
user_name: t.userName,
|
24431
24436
|
external_id: t.externalId
|
24432
24437
|
}
|
24433
24438
|
}), { data: r } = n;
|
@@ -24438,7 +24443,8 @@ class UO {
|
|
24438
24443
|
text: t.text,
|
24439
24444
|
user_data: {
|
24440
24445
|
device_id: t.deviceId,
|
24441
|
-
user_id: t.userId
|
24446
|
+
user_id: t.userId,
|
24447
|
+
user_name: t.userName
|
24442
24448
|
}
|
24443
24449
|
}, { data: r } = await this.httpClient.post(`/v3/chat/${t.conversationId}`, n);
|
24444
24450
|
return r;
|
@@ -24447,6 +24453,7 @@ class UO {
|
|
24447
24453
|
const n = {
|
24448
24454
|
device_id: t.deviceId,
|
24449
24455
|
user_id: t.userId,
|
24456
|
+
user_name: t.userName,
|
24450
24457
|
external_id: t.externalId
|
24451
24458
|
}, { data: r } = await this.httpClient.post(`/v1/chat/${t.conversationId}/identify`, n);
|
24452
24459
|
return r;
|
@@ -24500,64 +24507,66 @@ function HO(e) {
|
|
24500
24507
|
}
|
24501
24508
|
function jO({
|
24502
24509
|
appId: e,
|
24503
|
-
initialUserId: t
|
24510
|
+
initialUserId: t,
|
24511
|
+
initialUserName: n
|
24504
24512
|
}) {
|
24505
24513
|
const {
|
24506
|
-
userId:
|
24507
|
-
externalId:
|
24508
|
-
deviceId:
|
24509
|
-
isReady:
|
24514
|
+
userId: r,
|
24515
|
+
externalId: i,
|
24516
|
+
deviceId: o,
|
24517
|
+
isReady: s
|
24510
24518
|
} = HO({ appId: e, initialUserId: t }), {
|
24511
|
-
isConversationExpired:
|
24512
|
-
clearConversationData:
|
24513
|
-
getSavedConversationData:
|
24514
|
-
} = Ja({ appId: e }), { current:
|
24519
|
+
isConversationExpired: a,
|
24520
|
+
clearConversationData: l,
|
24521
|
+
getSavedConversationData: c
|
24522
|
+
} = Ja({ appId: e }), { current: u } = Re(bx()), [f] = le(
|
24515
24523
|
new UO({
|
24516
|
-
baseURL:
|
24524
|
+
baseURL: u,
|
24517
24525
|
appId: e
|
24518
24526
|
})
|
24519
|
-
), [
|
24527
|
+
), [h, d] = le(null), [p, m] = le(null), [_, g] = le([]), [v, x] = le(!1), I = $O(`sdk-boot-${e}`, () => f.boot()).fetch;
|
24520
24528
|
return Ae(() => {
|
24521
|
-
if (
|
24522
|
-
|
24529
|
+
if (a())
|
24530
|
+
l();
|
24523
24531
|
else {
|
24524
24532
|
const {
|
24525
|
-
conversationId:
|
24526
|
-
userId:
|
24527
|
-
messages:
|
24528
|
-
} =
|
24529
|
-
|
24530
|
-
id:
|
24531
|
-
}),
|
24532
|
-
}
|
24533
|
-
}, [
|
24534
|
-
if (!
|
24533
|
+
conversationId: S,
|
24534
|
+
userId: D,
|
24535
|
+
messages: C
|
24536
|
+
} = c();
|
24537
|
+
S && D && (m({
|
24538
|
+
id: S
|
24539
|
+
}), C && C.length > 0 && g(C));
|
24540
|
+
}
|
24541
|
+
}, [c, a, l]), Ae(() => {
|
24542
|
+
if (!s) return;
|
24535
24543
|
(async () => {
|
24536
|
-
const [
|
24537
|
-
if (
|
24538
|
-
|
24544
|
+
const [D, C] = await sx(I());
|
24545
|
+
if (C) {
|
24546
|
+
x(!0);
|
24539
24547
|
return;
|
24540
24548
|
}
|
24541
|
-
const
|
24542
|
-
|
24549
|
+
const E = D.chat_settings.welcome_message;
|
24550
|
+
d(D.chat_settings), E && _.length === 0 && g([
|
24543
24551
|
{
|
24544
24552
|
id: crypto.randomUUID(),
|
24545
|
-
content:
|
24553
|
+
content: E,
|
24546
24554
|
sender: "assistant",
|
24547
24555
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
24548
24556
|
isWelcomeMessage: !0
|
24549
24557
|
}
|
24550
|
-
]),
|
24558
|
+
]), x(!0);
|
24551
24559
|
})();
|
24552
|
-
}, [
|
24553
|
-
userId:
|
24554
|
-
|
24555
|
-
|
24556
|
-
|
24557
|
-
|
24558
|
-
|
24559
|
-
|
24560
|
-
|
24560
|
+
}, [s, _.length]), {
|
24561
|
+
userId: r,
|
24562
|
+
userName: n,
|
24563
|
+
externalId: i,
|
24564
|
+
deviceId: o,
|
24565
|
+
apiClient: f,
|
24566
|
+
chatSettings: h,
|
24567
|
+
currentConversation: p,
|
24568
|
+
messages: _,
|
24569
|
+
isReady: v
|
24561
24570
|
};
|
24562
24571
|
}
|
24563
24572
|
function WO(e) {
|
@@ -24586,56 +24595,64 @@ function qO({
|
|
24586
24595
|
environment: e,
|
24587
24596
|
appId: t,
|
24588
24597
|
userId: n,
|
24589
|
-
|
24590
|
-
|
24591
|
-
|
24598
|
+
userName: r,
|
24599
|
+
chatProps: i,
|
24600
|
+
isMobile: o,
|
24601
|
+
initialOpen: s = !1
|
24592
24602
|
}) {
|
24593
|
-
const { isMobile:
|
24594
|
-
userId:
|
24595
|
-
|
24596
|
-
|
24597
|
-
|
24598
|
-
|
24599
|
-
|
24600
|
-
|
24601
|
-
|
24602
|
-
|
24603
|
-
|
24604
|
-
), [S, D] = le(d), { onSendMessage: T, onCleanMessages: E } = BO({
|
24603
|
+
const { isMobile: a, portalContainer: l } = WO(o), {
|
24604
|
+
userId: c,
|
24605
|
+
userName: u,
|
24606
|
+
externalId: f,
|
24607
|
+
deviceId: h,
|
24608
|
+
apiClient: d,
|
24609
|
+
chatSettings: p,
|
24610
|
+
currentConversation: m,
|
24611
|
+
messages: _,
|
24612
|
+
isReady: g
|
24613
|
+
} = jO({
|
24605
24614
|
appId: t,
|
24606
|
-
|
24607
|
-
|
24608
|
-
|
24609
|
-
|
24610
|
-
|
24611
|
-
|
24612
|
-
|
24613
|
-
|
24614
|
-
|
24615
|
-
|
24615
|
+
initialUserId: n,
|
24616
|
+
initialUserName: r
|
24617
|
+
}), v = pR({ chatProps: i, chatSettings: p }), [x, O] = le(s ?? a), I = Js(x, 200), [S, D] = le(
|
24618
|
+
i?.messages ?? []
|
24619
|
+
), [C, E] = le(m), { onSendMessage: b, onCleanMessages: A } = BO({
|
24620
|
+
appId: t,
|
24621
|
+
userId: c,
|
24622
|
+
userName: u,
|
24623
|
+
externalId: f,
|
24624
|
+
deviceId: h,
|
24625
|
+
apiClient: d,
|
24626
|
+
chatSettings: p,
|
24627
|
+
setMessages: D,
|
24628
|
+
messages: S,
|
24629
|
+
currentConversation: C,
|
24630
|
+
setCurrentConversation: E,
|
24631
|
+
chatOpen: x
|
24616
24632
|
});
|
24617
24633
|
return Ae(() => {
|
24618
|
-
|
24619
|
-
}, [
|
24620
|
-
|
24621
|
-
}, [
|
24622
|
-
|
24623
|
-
userId:
|
24624
|
-
|
24625
|
-
|
24626
|
-
|
24634
|
+
_.length > 0 && D(_);
|
24635
|
+
}, [_]), Ae(() => {
|
24636
|
+
m && E(m);
|
24637
|
+
}, [m]), Ae(() => {
|
24638
|
+
C && f && d?.identifyUser({
|
24639
|
+
userId: c,
|
24640
|
+
userName: u,
|
24641
|
+
externalId: f,
|
24642
|
+
deviceId: h,
|
24643
|
+
conversationId: C.id
|
24627
24644
|
});
|
24628
|
-
}, [
|
24629
|
-
isReady:
|
24630
|
-
isMobile:
|
24631
|
-
chatInterfaceProps:
|
24632
|
-
chatOpen:
|
24633
|
-
chatOpenDebounced:
|
24634
|
-
messages:
|
24635
|
-
portalContainer:
|
24636
|
-
onSendMessage:
|
24637
|
-
setChatOpen:
|
24638
|
-
onCleanMessages:
|
24645
|
+
}, [f, c, u, h, C, d]), {
|
24646
|
+
isReady: g,
|
24647
|
+
isMobile: a,
|
24648
|
+
chatInterfaceProps: v,
|
24649
|
+
chatOpen: x,
|
24650
|
+
chatOpenDebounced: I,
|
24651
|
+
messages: S,
|
24652
|
+
portalContainer: l,
|
24653
|
+
onSendMessage: b,
|
24654
|
+
setChatOpen: O,
|
24655
|
+
onCleanMessages: A
|
24639
24656
|
};
|
24640
24657
|
}
|
24641
24658
|
function VO() {
|
@@ -24676,36 +24693,38 @@ const KO = ({
|
|
24676
24693
|
function YO({
|
24677
24694
|
appId: e,
|
24678
24695
|
userId: t,
|
24679
|
-
|
24680
|
-
|
24681
|
-
|
24682
|
-
|
24683
|
-
|
24684
|
-
|
24685
|
-
|
24686
|
-
|
24687
|
-
|
24688
|
-
|
24696
|
+
userName: n,
|
24697
|
+
chatProps: r,
|
24698
|
+
isMobile: i,
|
24699
|
+
closeButton: o = !0,
|
24700
|
+
cleanChatButton: s = !0,
|
24701
|
+
initialOpen: a = !1,
|
24702
|
+
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: l = !1,
|
24703
|
+
INTERNAL_ONLY_BLOCK_STYLE: c = !1,
|
24704
|
+
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: u = void 0,
|
24705
|
+
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: f = void 0,
|
24706
|
+
INTERNAL_ONLY_ENVIRONMENT: h = "live"
|
24689
24707
|
}) {
|
24690
24708
|
const {
|
24691
|
-
isReady:
|
24692
|
-
isMobile:
|
24693
|
-
chatOpen:
|
24694
|
-
chatInterfaceProps:
|
24695
|
-
chatOpenDebounced:
|
24696
|
-
messages:
|
24697
|
-
portalContainer:
|
24698
|
-
onSendMessage:
|
24699
|
-
setChatOpen:
|
24700
|
-
onCleanMessages:
|
24709
|
+
isReady: d,
|
24710
|
+
isMobile: p,
|
24711
|
+
chatOpen: m,
|
24712
|
+
chatInterfaceProps: _,
|
24713
|
+
chatOpenDebounced: g,
|
24714
|
+
messages: v,
|
24715
|
+
portalContainer: x,
|
24716
|
+
onSendMessage: O,
|
24717
|
+
setChatOpen: I,
|
24718
|
+
onCleanMessages: S
|
24701
24719
|
} = qO({
|
24702
|
-
environment:
|
24720
|
+
environment: h,
|
24703
24721
|
appId: e,
|
24704
24722
|
userId: t,
|
24705
|
-
|
24706
|
-
|
24707
|
-
|
24708
|
-
|
24723
|
+
userName: n,
|
24724
|
+
chatProps: r,
|
24725
|
+
isMobile: i,
|
24726
|
+
initialOpen: a
|
24727
|
+
}), D = () => /* @__PURE__ */ G(
|
24709
24728
|
"div",
|
24710
24729
|
{
|
24711
24730
|
style: {
|
@@ -24718,7 +24737,7 @@ function YO({
|
|
24718
24737
|
position: "fixed",
|
24719
24738
|
right: 12,
|
24720
24739
|
bottom: 4,
|
24721
|
-
...
|
24740
|
+
...c ? { position: "relative", inset: 0, width: "100%", height: "100%" } : {}
|
24722
24741
|
},
|
24723
24742
|
children: [
|
24724
24743
|
/* @__PURE__ */ k("style", { children: ox }),
|
@@ -24739,17 +24758,17 @@ function YO({
|
|
24739
24758
|
/* @__PURE__ */ k("style", { children: kc })
|
24740
24759
|
] }),
|
24741
24760
|
style: {
|
24742
|
-
display:
|
24743
|
-
width:
|
24744
|
-
height:
|
24761
|
+
display: m || g ? "block" : "none",
|
24762
|
+
width: p ? "100vw" : "400px",
|
24763
|
+
height: p ? "100vh" : "700px",
|
24745
24764
|
border: "none",
|
24746
24765
|
zIndex: 2147483e3,
|
24747
24766
|
position: "fixed",
|
24748
|
-
top:
|
24749
|
-
left:
|
24750
|
-
right:
|
24751
|
-
bottom:
|
24752
|
-
...
|
24767
|
+
top: p ? 0 : void 0,
|
24768
|
+
left: p ? 0 : void 0,
|
24769
|
+
right: p ? 0 : 17,
|
24770
|
+
bottom: p ? 0 : 84,
|
24771
|
+
...c ? {
|
24753
24772
|
position: "relative",
|
24754
24773
|
top: 0,
|
24755
24774
|
left: 0,
|
@@ -24760,26 +24779,26 @@ function YO({
|
|
24760
24779
|
zIndex: 0
|
24761
24780
|
} : {}
|
24762
24781
|
},
|
24763
|
-
children:
|
24782
|
+
children: d ? /* @__PURE__ */ k(
|
24764
24783
|
dR,
|
24765
24784
|
{
|
24766
|
-
...
|
24767
|
-
isOpen:
|
24768
|
-
messages:
|
24769
|
-
onSendMessage:
|
24770
|
-
onMessageClick:
|
24771
|
-
isMobile:
|
24772
|
-
closeButton:
|
24773
|
-
cleanChatButton:
|
24774
|
-
onClose: () =>
|
24785
|
+
..._,
|
24786
|
+
isOpen: m,
|
24787
|
+
messages: v,
|
24788
|
+
onSendMessage: O,
|
24789
|
+
onMessageClick: u,
|
24790
|
+
isMobile: p,
|
24791
|
+
closeButton: o,
|
24792
|
+
cleanChatButton: s,
|
24793
|
+
onClose: () => I(!1),
|
24775
24794
|
onCleanChat: () => {
|
24776
|
-
|
24795
|
+
S(), f?.();
|
24777
24796
|
}
|
24778
24797
|
}
|
24779
|
-
) : /* @__PURE__ */ k(Tp, { isOpen:
|
24798
|
+
) : /* @__PURE__ */ k(Tp, { isOpen: m, isMobile: p })
|
24780
24799
|
}
|
24781
24800
|
),
|
24782
|
-
!
|
24801
|
+
!l && /* @__PURE__ */ k(
|
24783
24802
|
Su,
|
24784
24803
|
{
|
24785
24804
|
className: "eloquentai-chat-launcher",
|
@@ -24792,13 +24811,13 @@ function YO({
|
|
24792
24811
|
width: 48,
|
24793
24812
|
height: 48,
|
24794
24813
|
border: "none",
|
24795
|
-
zIndex:
|
24814
|
+
zIndex: p ? 2147482999 : 2147483e3
|
24796
24815
|
},
|
24797
24816
|
children: /* @__PURE__ */ k(
|
24798
24817
|
ax,
|
24799
24818
|
{
|
24800
|
-
isOpen:
|
24801
|
-
toggleBubble: () =>
|
24819
|
+
isOpen: m,
|
24820
|
+
toggleBubble: () => I((E) => !E)
|
24802
24821
|
}
|
24803
24822
|
)
|
24804
24823
|
}
|
@@ -24806,7 +24825,7 @@ function YO({
|
|
24806
24825
|
]
|
24807
24826
|
}
|
24808
24827
|
);
|
24809
|
-
return /* @__PURE__ */ k(Kt, { children:
|
24828
|
+
return /* @__PURE__ */ k(Kt, { children: c ? D() : x ? /* @__PURE__ */ k(hR, { container: x, children: D() }) : null });
|
24810
24829
|
}
|
24811
24830
|
function XO(e) {
|
24812
24831
|
return /* @__PURE__ */ k(KO, { children: /* @__PURE__ */ k(GO, { children: /* @__PURE__ */ k(YO, { ...e }) }) });
|