deep-chat-dev 9.0.131 → 9.0.132
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/custom-elements.json +1555 -1632
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +0 -1
- package/dist/deepChat.d.ts.map +1 -1
- package/dist/deepChat.js +201 -202
- package/dist/views/chat/chatView.d.ts +1 -1
- package/dist/views/chat/chatView.d.ts.map +1 -1
- package/dist/views/chat/input/textInput/pasteUtils.d.ts.map +1 -1
- package/dist/views/chat/messages/messages.d.ts +1 -1
- package/dist/views/chat/messages/messages.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/deepChat.js
CHANGED
@@ -1451,8 +1451,8 @@ function Ks(s) {
|
|
1451
1451
|
d = 0,
|
1452
1452
|
u = !1,
|
1453
1453
|
h = {};
|
1454
|
-
if (s.env.footnotes && (s.tokens = s.tokens.filter(function (
|
1455
|
-
return
|
1454
|
+
if (s.env.footnotes && (s.tokens = s.tokens.filter(function (f) {
|
1455
|
+
return f.type === "footnote_reference_open" ? (u = !0, l = [], c = f.label, !1) : f.type === "footnote_reference_close" ? (u = !1, h[":" + c] = l, !1) : (u && l.push(f), !u);
|
1456
1456
|
}), !!s.env.footnotes.list)) {
|
1457
1457
|
for (o = s.env.footnotes.list, s.tokens.push({
|
1458
1458
|
type: "footnote_block_open",
|
@@ -1509,14 +1509,14 @@ function Ys(s) {
|
|
1509
1509
|
d,
|
1510
1510
|
u,
|
1511
1511
|
h,
|
1512
|
-
|
1512
|
+
f = s.tokens;
|
1513
1513
|
if (s.env.abbreviations) {
|
1514
1514
|
for (s.env.abbrRegExp || (h = "(^|[" + hn.split("").map(Mi).join("") + "])(" + Object.keys(s.env.abbreviations).map(function (m) {
|
1515
1515
|
return m.substr(1);
|
1516
|
-
}).sort(function (m,
|
1517
|
-
return
|
1518
|
-
}).map(Mi).join("|") + ")($|[" + hn.split("").map(Mi).join("") + "])", s.env.abbrRegExp = new RegExp(h, "g")), d = s.env.abbrRegExp, t = 0, i =
|
1519
|
-
for (n =
|
1516
|
+
}).sort(function (m, p) {
|
1517
|
+
return p.length - m.length;
|
1518
|
+
}).map(Mi).join("|") + ")($|[" + hn.split("").map(Mi).join("") + "])", s.env.abbrRegExp = new RegExp(h, "g")), d = s.env.abbrRegExp, t = 0, i = f.length; t < i; t++) if (f[t].type === "inline") {
|
1519
|
+
for (n = f[t].children, e = n.length - 1; e >= 0; e--) if (r = n[e], r.type === "text") {
|
1520
1520
|
for (l = 0, o = r.content, d.lastIndex = 0, c = r.level, a = []; u = d.exec(o);) d.lastIndex > l && a.push({
|
1521
1521
|
type: "text",
|
1522
1522
|
content: o.slice(l, u.index + u[1].length),
|
@@ -1537,7 +1537,7 @@ function Ys(s) {
|
|
1537
1537
|
type: "text",
|
1538
1538
|
content: o.slice(l),
|
1539
1539
|
level: c
|
1540
|
-
}),
|
1540
|
+
}), f[t].children = n = [].concat(n.slice(0, e), a, n.slice(e + 1)));
|
1541
1541
|
}
|
1542
1542
|
}
|
1543
1543
|
}
|
@@ -1562,9 +1562,9 @@ function tr(s) {
|
|
1562
1562
|
}
|
1563
1563
|
}
|
1564
1564
|
var ir = /['"]/,
|
1565
|
-
|
1565
|
+
fn = /['"]/g,
|
1566
1566
|
nr = /[-\s()\[\]]/,
|
1567
|
-
|
1567
|
+
pn = "’";
|
1568
1568
|
function mn(s, e) {
|
1569
1569
|
return e < 0 || e >= s.length ? !1 : !nr.test(s[e]);
|
1570
1570
|
}
|
@@ -1572,20 +1572,20 @@ function He(s, e, t) {
|
|
1572
1572
|
return s.substr(0, e) + t + s.substr(e + 1);
|
1573
1573
|
}
|
1574
1574
|
function sr(s) {
|
1575
|
-
var e, t, i, n, r, o, a, l, c, d, u, h,
|
1575
|
+
var e, t, i, n, r, o, a, l, c, d, u, h, f, m, p, _, S;
|
1576
1576
|
if (s.options.typographer) {
|
1577
|
-
for (S = [],
|
1578
|
-
for (_ = s.tokens[
|
1579
|
-
for (a = _[e].level,
|
1580
|
-
S.length =
|
1581
|
-
e: for (; r < o && (
|
1577
|
+
for (S = [], p = s.tokens.length - 1; p >= 0; p--) if (s.tokens[p].type === "inline") {
|
1578
|
+
for (_ = s.tokens[p].children, S.length = 0, e = 0; e < _.length; e++) if (t = _[e], !(t.type !== "text" || ir.test(t.text))) {
|
1579
|
+
for (a = _[e].level, f = S.length - 1; f >= 0 && !(S[f].level <= a); f--);
|
1580
|
+
S.length = f + 1, i = t.content, r = 0, o = i.length;
|
1581
|
+
e: for (; r < o && (fn.lastIndex = r, n = fn.exec(i), !!n);) {
|
1582
1582
|
if (l = !mn(i, n.index - 1), r = n.index + 1, m = n[0] === "'", c = !mn(i, r), !c && !l) {
|
1583
|
-
m && (t.content = He(t.content, n.index,
|
1583
|
+
m && (t.content = He(t.content, n.index, pn));
|
1584
1584
|
continue;
|
1585
1585
|
}
|
1586
1586
|
if (u = !c, h = !l, h) {
|
1587
|
-
for (
|
1588
|
-
d = S[
|
1587
|
+
for (f = S.length - 1; f >= 0 && (d = S[f], !(S[f].level < a)); f--) if (d.single === m && S[f].level === a) {
|
1588
|
+
d = S[f], m ? (_[d.token].content = He(_[d.token].content, d.pos, s.options.quotes[2]), t.content = He(t.content, n.index, s.options.quotes[3])) : (_[d.token].content = He(_[d.token].content, d.pos, s.options.quotes[0]), t.content = He(t.content, n.index, s.options.quotes[1])), S.length = f;
|
1589
1589
|
continue e;
|
1590
1590
|
}
|
1591
1591
|
}
|
@@ -1594,7 +1594,7 @@ function sr(s) {
|
|
1594
1594
|
pos: n.index,
|
1595
1595
|
single: m,
|
1596
1596
|
level: a
|
1597
|
-
}) : h && m && (t.content = He(t.content, n.index,
|
1597
|
+
}) : h && m && (t.content = He(t.content, n.index, pn));
|
1598
1598
|
}
|
1599
1599
|
}
|
1600
1600
|
}
|
@@ -1707,19 +1707,19 @@ function ar(s, e, t, i) {
|
|
1707
1707
|
d,
|
1708
1708
|
u,
|
1709
1709
|
h,
|
1710
|
-
|
1710
|
+
f,
|
1711
1711
|
m,
|
1712
|
-
|
1712
|
+
p = s.bMarks[e] + s.tShift[e],
|
1713
1713
|
_ = s.eMarks[e];
|
1714
|
-
if (
|
1714
|
+
if (p > _ || s.src.charCodeAt(p++) !== 62 || s.level >= s.options.maxNesting) return !1;
|
1715
1715
|
if (i) return !0;
|
1716
|
-
for (s.src.charCodeAt(
|
1717
|
-
if (s.src.charCodeAt(
|
1718
|
-
s.src.charCodeAt(
|
1716
|
+
for (s.src.charCodeAt(p) === 32 && p++, l = s.blkIndent, s.blkIndent = 0, a = [s.bMarks[e]], s.bMarks[e] = p, p = p < _ ? s.skipSpaces(p) : p, r = p >= _, o = [s.tShift[e]], s.tShift[e] = p - s.bMarks[e], u = s.parser.ruler.getRules("blockquote"), n = e + 1; n < t && (p = s.bMarks[n] + s.tShift[n], _ = s.eMarks[n], !(p >= _)); n++) {
|
1717
|
+
if (s.src.charCodeAt(p++) === 62) {
|
1718
|
+
s.src.charCodeAt(p) === 32 && p++, a.push(s.bMarks[n]), s.bMarks[n] = p, p = p < _ ? s.skipSpaces(p) : p, r = p >= _, o.push(s.tShift[n]), s.tShift[n] = p - s.bMarks[n];
|
1719
1719
|
continue;
|
1720
1720
|
}
|
1721
1721
|
if (r) break;
|
1722
|
-
for (m = !1, h = 0,
|
1722
|
+
for (m = !1, h = 0, f = u.length; h < f; h++) if (u[h](s, n, t, !0)) {
|
1723
1723
|
m = !0;
|
1724
1724
|
break;
|
1725
1725
|
}
|
@@ -1787,9 +1787,9 @@ function dr(s, e, t, i) {
|
|
1787
1787
|
d,
|
1788
1788
|
u,
|
1789
1789
|
h,
|
1790
|
-
p,
|
1791
|
-
m,
|
1792
1790
|
f,
|
1791
|
+
m,
|
1792
|
+
p,
|
1793
1793
|
_,
|
1794
1794
|
S,
|
1795
1795
|
J,
|
@@ -1803,7 +1803,7 @@ function dr(s, e, t, i) {
|
|
1803
1803
|
te;
|
1804
1804
|
if ((u = bn(s, e)) >= 0) _ = !0;else if ((u = gn(s, e)) >= 0) _ = !1;else return !1;
|
1805
1805
|
if (s.level >= s.options.maxNesting) return !1;
|
1806
|
-
if (
|
1806
|
+
if (p = s.src.charCodeAt(u - 1), i) return !0;
|
1807
1807
|
for (J = s.tokens.length, _ ? (d = s.bMarks[e] + s.tShift[e], m = Number(s.src.substr(d, u - d - 1)), s.tokens.push({
|
1808
1808
|
type: "ordered_list_open",
|
1809
1809
|
order: m,
|
@@ -1813,7 +1813,7 @@ function dr(s, e, t, i) {
|
|
1813
1813
|
type: "bullet_list_open",
|
1814
1814
|
lines: O = [e, 0],
|
1815
1815
|
level: s.level++
|
1816
|
-
}), n = e, X = !1, ee = s.parser.ruler.getRules("list"); n < t && (S = s.skipSpaces(u), h = s.eMarks[n], S >= h ?
|
1816
|
+
}), n = e, X = !1, ee = s.parser.ruler.getRules("list"); n < t && (S = s.skipSpaces(u), h = s.eMarks[n], S >= h ? f = 1 : f = S - u, f > 4 && (f = 1), f < 1 && (f = 1), r = u - s.bMarks[n] + f, s.tokens.push({
|
1817
1817
|
type: "list_item_open",
|
1818
1818
|
lines: H = [e, 0],
|
1819
1819
|
level: s.level++
|
@@ -1829,7 +1829,7 @@ function dr(s, e, t, i) {
|
|
1829
1829
|
if (_) {
|
1830
1830
|
if (u = bn(s, n), u < 0) break;
|
1831
1831
|
} else if (u = gn(s, n), u < 0) break;
|
1832
|
-
if (
|
1832
|
+
if (p !== s.src.charCodeAt(u - 1)) break;
|
1833
1833
|
}
|
1834
1834
|
return s.tokens.push({
|
1835
1835
|
type: _ ? "ordered_list_close" : "bullet_list_close",
|
@@ -1883,7 +1883,7 @@ function hr(s, e, t, i) {
|
|
1883
1883
|
level: s.level
|
1884
1884
|
})), !0);
|
1885
1885
|
}
|
1886
|
-
function
|
1886
|
+
function fr(s, e, t) {
|
1887
1887
|
var i,
|
1888
1888
|
n,
|
1889
1889
|
r,
|
@@ -1909,7 +1909,7 @@ var rs = {};
|
|
1909
1909
|
["article", "aside", "button", "blockquote", "body", "canvas", "caption", "col", "colgroup", "dd", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "iframe", "li", "map", "object", "ol", "output", "p", "pre", "progress", "script", "section", "style", "table", "tbody", "td", "textarea", "tfoot", "th", "tr", "thead", "ul", "video"].forEach(function (s) {
|
1910
1910
|
rs[s] = !0;
|
1911
1911
|
});
|
1912
|
-
var
|
1912
|
+
var pr = /^<([a-zA-Z]{1,15})[\s\/>]/,
|
1913
1913
|
mr = /^<\/([a-zA-Z]{1,15})[\s>]/;
|
1914
1914
|
function gr(s) {
|
1915
1915
|
var e = s | 32;
|
@@ -1928,7 +1928,7 @@ function br(s, e, t, i) {
|
|
1928
1928
|
} else if (n === 47 || gr(n)) {
|
1929
1929
|
if (n === 47) {
|
1930
1930
|
if (r = s.src.slice(a, l).match(mr), !r) return !1;
|
1931
|
-
} else if (r = s.src.slice(a, l).match(
|
1931
|
+
} else if (r = s.src.slice(a, l).match(pr), !r) return !1;
|
1932
1932
|
if (rs[r[1].toLowerCase()] !== !0) return !1;
|
1933
1933
|
if (i) return !0;
|
1934
1934
|
} else return !1;
|
@@ -1946,7 +1946,7 @@ function Ci(s, e) {
|
|
1946
1946
|
return s.src.substr(t, i - t);
|
1947
1947
|
}
|
1948
1948
|
function vr(s, e, t, i) {
|
1949
|
-
var n, r, o, a, l, c, d, u, h,
|
1949
|
+
var n, r, o, a, l, c, d, u, h, f, m;
|
1950
1950
|
if (e + 2 > t || (l = e + 1, s.tShift[l] < s.blkIndent) || (o = s.bMarks[l] + s.tShift[l], o >= s.eMarks[l]) || (n = s.src.charCodeAt(o), n !== 124 && n !== 45 && n !== 58) || (r = Ci(s, e + 1), !/^[-:| ]+$/.test(r)) || (c = r.split("|"), c <= 2)) return !1;
|
1951
1951
|
for (u = [], a = 0; a < c.length; a++) {
|
1952
1952
|
if (h = c[a].trim(), !h) {
|
@@ -1960,7 +1960,7 @@ function vr(s, e, t, i) {
|
|
1960
1960
|
if (i) return !0;
|
1961
1961
|
for (s.tokens.push({
|
1962
1962
|
type: "table_open",
|
1963
|
-
lines:
|
1963
|
+
lines: f = [e, 0],
|
1964
1964
|
level: s.level++
|
1965
1965
|
}), s.tokens.push({
|
1966
1966
|
type: "thead_open",
|
@@ -2023,7 +2023,7 @@ function vr(s, e, t, i) {
|
|
2023
2023
|
}), s.tokens.push({
|
2024
2024
|
type: "table_close",
|
2025
2025
|
level: --s.level
|
2026
|
-
}),
|
2026
|
+
}), f[1] = m[1] = l, s.line = l, !0;
|
2027
2027
|
}
|
2028
2028
|
function Ot(s, e) {
|
2029
2029
|
var t,
|
@@ -2039,7 +2039,7 @@ function yr(s, e) {
|
|
2039
2039
|
for (t = e + 2, i = s.tokens.length - 2; t < i; t++) s.tokens[t].level === n && s.tokens[t].type === "paragraph_open" && (s.tokens[t + 2].tight = !0, s.tokens[t].tight = !0, t += 2);
|
2040
2040
|
}
|
2041
2041
|
function xr(s, e, t, i) {
|
2042
|
-
var n, r, o, a, l, c, d, u, h,
|
2042
|
+
var n, r, o, a, l, c, d, u, h, f, m, p, _, S;
|
2043
2043
|
if (i) return s.ddIndent < 0 ? !1 : Ot(s, e) >= 0;
|
2044
2044
|
if (d = e + 1, s.isEmpty(d) && ++d > t || s.tShift[d] < s.blkIndent || (n = Ot(s, d), n < 0) || s.level >= s.options.maxNesting) return !1;
|
2045
2045
|
c = s.tokens.length, s.tokens.push({
|
@@ -2066,7 +2066,7 @@ function xr(s, e, t, i) {
|
|
2066
2066
|
type: "dd_open",
|
2067
2067
|
lines: a = [d, 0],
|
2068
2068
|
level: s.level++
|
2069
|
-
}),
|
2069
|
+
}), p = s.tight, h = s.ddIndent, u = s.blkIndent, m = s.tShift[r], f = s.parentType, s.blkIndent = s.ddIndent = s.tShift[r] + 2, s.tShift[r] = n - s.bMarks[r], s.tight = !0, s.parentType = "deflist", s.parser.tokenize(s, r, t, !0), (!s.tight || _) && (S = !1), _ = s.line - r > 1 && s.isEmpty(s.line - 1), s.tShift[r] = m, s.tight = p, s.parentType = f, s.blkIndent = u, s.ddIndent = h, s.tokens.push({
|
2070
2070
|
type: "dd_close",
|
2071
2071
|
level: --s.level
|
2072
2072
|
}), a[1] = d = s.line, d >= t || s.tShift[d] < s.blkIndent) break e;
|
@@ -2114,7 +2114,7 @@ function Er(s, e) {
|
|
2114
2114
|
level: s.level
|
2115
2115
|
})), !0;
|
2116
2116
|
}
|
2117
|
-
var Pt = [["code", rr], ["fences", or, ["paragraph", "blockquote", "list"]], ["blockquote", ar, ["paragraph", "blockquote", "list"]], ["hr", lr, ["paragraph", "blockquote", "list"]], ["list", dr, ["paragraph", "blockquote"]], ["footnote", ur, ["paragraph"]], ["heading", hr, ["paragraph", "blockquote"]], ["lheading",
|
2117
|
+
var Pt = [["code", rr], ["fences", or, ["paragraph", "blockquote", "list"]], ["blockquote", ar, ["paragraph", "blockquote", "list"]], ["hr", lr, ["paragraph", "blockquote", "list"]], ["list", dr, ["paragraph", "blockquote"]], ["footnote", ur, ["paragraph"]], ["heading", hr, ["paragraph", "blockquote"]], ["lheading", fr], ["htmlblock", br, ["paragraph", "blockquote"]], ["table", vr, ["paragraph"]], ["deflist", xr, ["paragraph"]], ["paragraph", Er]];
|
2118
2118
|
function Ji() {
|
2119
2119
|
this.ruler = new W();
|
2120
2120
|
for (var s = 0; s < Pt.length; s++) this.ruler.push(Pt[s][0], Pt[s][1], {
|
@@ -2444,20 +2444,20 @@ function Fr(s, e) {
|
|
2444
2444
|
d = !1,
|
2445
2445
|
u = s.pos,
|
2446
2446
|
h = s.posMax,
|
2447
|
-
|
2448
|
-
m = s.src.charCodeAt(
|
2449
|
-
if (m === 33 && (d = !0, m = s.src.charCodeAt(++
|
2447
|
+
f = s.pos,
|
2448
|
+
m = s.src.charCodeAt(f);
|
2449
|
+
if (m === 33 && (d = !0, m = s.src.charCodeAt(++f)), m !== 91 || s.level >= s.options.maxNesting || (t = f + 1, i = bt(s, f), i < 0)) return !1;
|
2450
2450
|
if (a = i + 1, a < h && s.src.charCodeAt(a) === 40) {
|
2451
2451
|
for (a++; a < h && (c = s.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
|
2452
2452
|
if (a >= h) return !1;
|
2453
|
-
for (
|
2454
|
-
if (a < h &&
|
2453
|
+
for (f = a, ts(s, a) ? (r = s.linkContent, a = s.pos) : r = "", f = a; a < h && (c = s.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
|
2454
|
+
if (a < h && f !== a && is(s, a)) for (o = s.linkContent, a = s.pos; a < h && (c = s.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
|
2455
2455
|
if (a >= h || s.src.charCodeAt(a) !== 41) return s.pos = u, !1;
|
2456
2456
|
a++;
|
2457
2457
|
} else {
|
2458
2458
|
if (s.linkLevel > 0) return !1;
|
2459
2459
|
for (; a < h && (c = s.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
|
2460
|
-
if (a < h && s.src.charCodeAt(a) === 91 && (
|
2460
|
+
if (a < h && s.src.charCodeAt(a) === 91 && (f = a + 1, a = bt(s, a), a >= 0 ? n = s.src.slice(f, a++) : a = f - 1), n || (_typeof(n) > "u" && (a = i + 1), n = s.src.slice(t, i)), l = s.env.references[ns(n)], !l) return s.pos = u, !1;
|
2461
2461
|
r = l.href, o = l.title;
|
2462
2462
|
}
|
2463
2463
|
return e || (s.pos = t, s.posMax = i, d ? s.push({
|
@@ -2712,7 +2712,7 @@ var uo = {
|
|
2712
2712
|
inline: {}
|
2713
2713
|
}
|
2714
2714
|
},
|
2715
|
-
|
2715
|
+
fo = {
|
2716
2716
|
options: {
|
2717
2717
|
html: !0,
|
2718
2718
|
// Enable HTML tags in source
|
@@ -2750,42 +2750,42 @@ var uo = {
|
|
2750
2750
|
}
|
2751
2751
|
}
|
2752
2752
|
},
|
2753
|
-
|
2753
|
+
po = {
|
2754
2754
|
"default": uo,
|
2755
2755
|
full: ho,
|
2756
|
-
commonmark:
|
2756
|
+
commonmark: fo
|
2757
2757
|
};
|
2758
2758
|
function os(s, e, t) {
|
2759
2759
|
this.src = e, this.env = t, this.options = s.options, this.tokens = [], this.inlineMode = !1, this.inline = s.inline, this.block = s.block, this.renderer = s.renderer, this.typographer = s.typographer;
|
2760
2760
|
}
|
2761
|
-
function
|
2762
|
-
typeof s != "string" && (e = s, s = "default"), e && e.linkify != null && console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"), this.inline = new ri(), this.block = new Ji(), this.core = new ss(), this.renderer = new Wi(), this.ruler = new W(), this.options = {}, this.configure(
|
2761
|
+
function pe(s, e) {
|
2762
|
+
typeof s != "string" && (e = s, s = "default"), e && e.linkify != null && console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"), this.inline = new ri(), this.block = new Ji(), this.core = new ss(), this.renderer = new Wi(), this.ruler = new W(), this.options = {}, this.configure(po[s]), this.set(e || {});
|
2763
2763
|
}
|
2764
|
-
|
2764
|
+
pe.prototype.set = function (s) {
|
2765
2765
|
Xn(this.options, s);
|
2766
2766
|
};
|
2767
|
-
|
2767
|
+
pe.prototype.configure = function (s) {
|
2768
2768
|
var e = this;
|
2769
2769
|
if (!s) throw new Error("Wrong `remarkable` preset, check name/content");
|
2770
2770
|
s.options && e.set(s.options), s.components && Object.keys(s.components).forEach(function (t) {
|
2771
2771
|
s.components[t].rules && e[t].ruler.enable(s.components[t].rules, !0);
|
2772
2772
|
});
|
2773
2773
|
};
|
2774
|
-
|
2774
|
+
pe.prototype.use = function (s, e) {
|
2775
2775
|
return s(this, e), this;
|
2776
2776
|
};
|
2777
|
-
|
2777
|
+
pe.prototype.parse = function (s, e) {
|
2778
2778
|
var t = new os(this, s, e);
|
2779
2779
|
return this.core.process(t), t.tokens;
|
2780
2780
|
};
|
2781
|
-
|
2781
|
+
pe.prototype.render = function (s, e) {
|
2782
2782
|
return e = e || {}, this.renderer.render(this.parse(s, e), this.options, e);
|
2783
2783
|
};
|
2784
|
-
|
2784
|
+
pe.prototype.parseInline = function (s, e) {
|
2785
2785
|
var t = new os(this, s, e);
|
2786
2786
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
2787
2787
|
};
|
2788
|
-
|
2788
|
+
pe.prototype.renderInline = function (s, e) {
|
2789
2789
|
return e = e || {}, this.renderer.render(this.parseInline(s, e), this.options, e);
|
2790
2790
|
};
|
2791
2791
|
var vt = /*#__PURE__*/function () {
|
@@ -2796,7 +2796,7 @@ var vt = /*#__PURE__*/function () {
|
|
2796
2796
|
key: "instantiate",
|
2797
2797
|
value: function instantiate() {
|
2798
2798
|
var e = window.hljs;
|
2799
|
-
return e ? new
|
2799
|
+
return e ? new pe({
|
2800
2800
|
highlight: function highlight(t, i) {
|
2801
2801
|
if (i && e.getLanguage(i)) try {
|
2802
2802
|
return e.highlight(i, t).value;
|
@@ -2822,7 +2822,7 @@ var vt = /*#__PURE__*/function () {
|
|
2822
2822
|
// set target to open in a new tab
|
2823
2823
|
typographer: !0
|
2824
2824
|
// Enable smartypants and other sweet transforms
|
2825
|
-
}) : new
|
2825
|
+
}) : new pe({
|
2826
2826
|
linkTarget: "_blank"
|
2827
2827
|
// set target to open in a new tab
|
2828
2828
|
});
|
@@ -3458,17 +3458,17 @@ function Eo(s, e) {
|
|
3458
3458
|
c = e.fetch,
|
3459
3459
|
d = yo(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
3460
3460
|
return new Promise(function (u, h) {
|
3461
|
-
var
|
3462
|
-
|
3461
|
+
var f = Object.assign({}, i);
|
3462
|
+
f.accept || (f.accept = Fi);
|
3463
3463
|
var m;
|
3464
|
-
function
|
3464
|
+
function p() {
|
3465
3465
|
m.abort(), document.hidden || H();
|
3466
3466
|
}
|
3467
|
-
l || document.addEventListener("visibilitychange",
|
3467
|
+
l || document.addEventListener("visibilitychange", p);
|
3468
3468
|
var _ = xo,
|
3469
3469
|
S = 0;
|
3470
3470
|
function J() {
|
3471
|
-
document.removeEventListener("visibilitychange",
|
3471
|
+
document.removeEventListener("visibilitychange", p), window.clearTimeout(S), m.abort();
|
3472
3472
|
}
|
3473
3473
|
t == null || t.addEventListener("abort", function () {
|
3474
3474
|
J(), u();
|
@@ -3488,7 +3488,7 @@ function Eo(s, e) {
|
|
3488
3488
|
_context3.prev = 1;
|
3489
3489
|
_context3.next = 4;
|
3490
3490
|
return X(s, Object.assign(Object.assign({}, d), {
|
3491
|
-
headers:
|
3491
|
+
headers: f,
|
3492
3492
|
signal: m.signal
|
3493
3493
|
}));
|
3494
3494
|
case 4:
|
@@ -3498,7 +3498,7 @@ function Eo(s, e) {
|
|
3498
3498
|
case 7:
|
3499
3499
|
_context3.next = 9;
|
3500
3500
|
return mo(ee.body, go(bo(function (I) {
|
3501
|
-
I ?
|
3501
|
+
I ? f[_n] = I : delete f[_n];
|
3502
3502
|
}, function (I) {
|
3503
3503
|
_ = I;
|
3504
3504
|
}, r)));
|
@@ -3543,7 +3543,7 @@ var T = /*#__PURE__*/function () {
|
|
3543
3543
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e, t, i) {
|
3544
3544
|
var n,
|
3545
3545
|
m,
|
3546
|
-
|
3546
|
+
p,
|
3547
3547
|
_,
|
3548
3548
|
S,
|
3549
3549
|
J,
|
@@ -3558,7 +3558,7 @@ var T = /*#__PURE__*/function () {
|
|
3558
3558
|
d,
|
3559
3559
|
u,
|
3560
3560
|
h,
|
3561
|
-
|
3561
|
+
f,
|
3562
3562
|
_args6 = arguments;
|
3563
3563
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
3564
3564
|
while (1) switch (_context6.prev = _context6.next) {
|
@@ -3585,7 +3585,7 @@ var T = /*#__PURE__*/function () {
|
|
3585
3585
|
}
|
3586
3586
|
return _context6.abrupt("return", v.onInterceptorError(i, l, d));
|
3587
3587
|
case 14:
|
3588
|
-
if (!((
|
3588
|
+
if (!((p = e.requestSettings) != null && p.handler)) {
|
3589
3589
|
_context6.next = 16;
|
3590
3590
|
break;
|
3591
3591
|
}
|
@@ -3597,7 +3597,7 @@ var T = /*#__PURE__*/function () {
|
|
3597
3597
|
}
|
3598
3598
|
return _context6.abrupt("return", Ee.requestStream(i, e.streamHandlers));
|
3599
3599
|
case 18:
|
3600
|
-
h = new Oe(i),
|
3600
|
+
h = new Oe(i), f = v.fetch.bind(this, e, a, n);
|
3601
3601
|
Eo(((S = e.requestSettings) == null ? void 0 : S.url) || e.url || "", {
|
3602
3602
|
method: ((J = e.requestSettings) == null ? void 0 : J.method) || "POST",
|
3603
3603
|
headers: a,
|
@@ -3653,7 +3653,7 @@ var T = /*#__PURE__*/function () {
|
|
3653
3653
|
_context5.t0 = I;
|
3654
3654
|
case 7:
|
3655
3655
|
Rt = _context5.t0;
|
3656
|
-
(ee = e.extractResultData) == null || ee.call(e, Rt,
|
3656
|
+
(ee = e.extractResultData) == null || ee.call(e, Rt, f, o).then(function (te) {
|
3657
3657
|
e.asyncCallInProgress && te && te.text !== "" ? (T.simulate(i, e.streamHandlers, te), d(), e.asyncCallInProgress = !1) : T.upsertWFiles(i, h.upsertStreamedMessage.bind(h), h, te);
|
3658
3658
|
})["catch"](function (te) {
|
3659
3659
|
return v.displayError(i, te);
|
@@ -4102,8 +4102,8 @@ var he = /*#__PURE__*/function () {
|
|
4102
4102
|
n && (he.attemptToFinaliseStream(o, i), e.streamHandlers.onClose(), n = !1);
|
4103
4103
|
},
|
4104
4104
|
c = /*#__PURE__*/function () {
|
4105
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(
|
4106
|
-
var
|
4105
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(f) {
|
4106
|
+
var p, _, m;
|
4107
4107
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
4108
4108
|
while (1) switch (_context12.prev = _context12.next) {
|
4109
4109
|
case 0:
|
@@ -4114,17 +4114,17 @@ var he = /*#__PURE__*/function () {
|
|
4114
4114
|
return _context12.abrupt("return");
|
4115
4115
|
case 2:
|
4116
4116
|
_context12.next = 4;
|
4117
|
-
return (_ = (
|
4117
|
+
return (_ = (p = e.deepChat).responseInterceptor) == null ? void 0 : _.call(p, f);
|
4118
4118
|
case 4:
|
4119
4119
|
_context12.t0 = _context12.sent;
|
4120
4120
|
if (_context12.t0) {
|
4121
4121
|
_context12.next = 7;
|
4122
4122
|
break;
|
4123
4123
|
}
|
4124
|
-
_context12.t0 =
|
4124
|
+
_context12.t0 = f;
|
4125
4125
|
case 7:
|
4126
4126
|
m = _context12.t0;
|
4127
|
-
v.validateResponseFormat(m) ? m.error ? (console.error(m.error), o.finaliseStreamedMessage(), i.addNewErrorMessage("service", m.error), e.streamHandlers.onClose(), n = !1) : T.upsertWFiles(i, o.upsertStreamedMessage.bind(o), o, m) : console.error(A.INVALID_RESPONSE(
|
4127
|
+
v.validateResponseFormat(m) ? m.error ? (console.error(m.error), o.finaliseStreamedMessage(), i.addNewErrorMessage("service", m.error), e.streamHandlers.onClose(), n = !1) : T.upsertWFiles(i, o.upsertStreamedMessage.bind(o), o, m) : console.error(A.INVALID_RESPONSE(f, "server", !!e.deepChat.responseInterceptor, m));
|
4128
4128
|
case 9:
|
4129
4129
|
case "end":
|
4130
4130
|
return _context12.stop();
|
@@ -4168,7 +4168,7 @@ var he = /*#__PURE__*/function () {
|
|
4168
4168
|
},
|
4169
4169
|
o = /*#__PURE__*/function () {
|
4170
4170
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(d) {
|
4171
|
-
var h,
|
4171
|
+
var h, f, u, m, p;
|
4172
4172
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
4173
4173
|
while (1) switch (_context13.prev = _context13.next) {
|
4174
4174
|
case 0:
|
@@ -4179,7 +4179,7 @@ var he = /*#__PURE__*/function () {
|
|
4179
4179
|
return _context13.abrupt("return");
|
4180
4180
|
case 2:
|
4181
4181
|
_context13.next = 4;
|
4182
|
-
return (
|
4182
|
+
return (f = (h = e.deepChat).responseInterceptor) == null ? void 0 : f.call(h, d);
|
4183
4183
|
case 4:
|
4184
4184
|
_context13.t0 = _context13.sent;
|
4185
4185
|
if (_context13.t0) {
|
@@ -4190,8 +4190,8 @@ var he = /*#__PURE__*/function () {
|
|
4190
4190
|
case 7:
|
4191
4191
|
u = _context13.t0;
|
4192
4192
|
if (!v.validateResponseFormat(u)) console.error(A.INVALID_RESPONSE(d, "server", !!e.deepChat.responseInterceptor, u)), t.addNewErrorMessage("service", "Error in server message");else if (typeof u.error == "string") console.error(u.error), t.isLastMessageError() || t.addNewErrorMessage("service", u.error);else if (T.isSimulation(e.deepChat.stream)) {
|
4193
|
-
m = B.stream.bind(_this7, e, t, i.roleToStream),
|
4194
|
-
T.upsertWFiles(t, m,
|
4193
|
+
m = B.stream.bind(_this7, e, t, i.roleToStream), p = i.roleToStream[d.role || b.AI_ROLE];
|
4194
|
+
T.upsertWFiles(t, m, p, d);
|
4195
4195
|
} else t.addNewMessage(u);
|
4196
4196
|
case 9:
|
4197
4197
|
case "end":
|
@@ -4239,7 +4239,7 @@ var w = /*#__PURE__*/function () {
|
|
4239
4239
|
var _request3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(e, t, i) {
|
4240
4240
|
var n,
|
4241
4241
|
h,
|
4242
|
-
|
4242
|
+
f,
|
4243
4243
|
m,
|
4244
4244
|
r,
|
4245
4245
|
_yield$v$processReque3,
|
@@ -4272,7 +4272,7 @@ var w = /*#__PURE__*/function () {
|
|
4272
4272
|
}
|
4273
4273
|
return _context15.abrupt("return", v.onInterceptorError(i, l, c));
|
4274
4274
|
case 11:
|
4275
|
-
if (!((
|
4275
|
+
if (!((f = e.requestSettings) != null && f.handler)) {
|
4276
4276
|
_context15.next = 13;
|
4277
4277
|
break;
|
4278
4278
|
}
|
@@ -4286,12 +4286,12 @@ var w = /*#__PURE__*/function () {
|
|
4286
4286
|
case 15:
|
4287
4287
|
d = !0;
|
4288
4288
|
u = v.fetch.bind(this, e, a, n);
|
4289
|
-
u(o).then(function (
|
4290
|
-
return d = !!
|
4291
|
-
}).then(function (
|
4292
|
-
return v.processResponseByType(
|
4289
|
+
u(o).then(function (p) {
|
4290
|
+
return d = !!p.ok, p;
|
4291
|
+
}).then(function (p) {
|
4292
|
+
return v.processResponseByType(p);
|
4293
4293
|
}).then( /*#__PURE__*/function () {
|
4294
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(
|
4294
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(p) {
|
4295
4295
|
var J, X, _, S;
|
4296
4296
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
4297
4297
|
while (1) switch (_context14.prev = _context14.next) {
|
@@ -4303,14 +4303,14 @@ var w = /*#__PURE__*/function () {
|
|
4303
4303
|
return _context14.abrupt("return");
|
4304
4304
|
case 2:
|
4305
4305
|
_context14.next = 4;
|
4306
|
-
return (X = (J = e.deepChat).responseInterceptor) == null ? void 0 : X.call(J,
|
4306
|
+
return (X = (J = e.deepChat).responseInterceptor) == null ? void 0 : X.call(J, p);
|
4307
4307
|
case 4:
|
4308
4308
|
_context14.t0 = _context14.sent;
|
4309
4309
|
if (_context14.t0) {
|
4310
4310
|
_context14.next = 7;
|
4311
4311
|
break;
|
4312
4312
|
}
|
4313
|
-
_context14.t0 =
|
4313
|
+
_context14.t0 = p;
|
4314
4314
|
case 7:
|
4315
4315
|
_ = _context14.t0;
|
4316
4316
|
_context14.next = 10;
|
@@ -4321,13 +4321,13 @@ var w = /*#__PURE__*/function () {
|
|
4321
4321
|
_context14.next = 13;
|
4322
4322
|
break;
|
4323
4323
|
}
|
4324
|
-
throw
|
4324
|
+
throw p;
|
4325
4325
|
case 13:
|
4326
4326
|
if (!(!S || _typeof(S) != "object")) {
|
4327
4327
|
_context14.next = 15;
|
4328
4328
|
break;
|
4329
4329
|
}
|
4330
|
-
throw Error(A.INVALID_RESPONSE(
|
4330
|
+
throw Error(A.INVALID_RESPONSE(p, "response", !!e.deepChat.responseInterceptor, _));
|
4331
4331
|
case 15:
|
4332
4332
|
S.makingAnotherRequest || (T.isSimulatable(e.deepChat.stream, S) ? T.simulate(i, e.streamHandlers, S) : (i.addNewMessage(S), c()));
|
4333
4333
|
case 16:
|
@@ -4339,8 +4339,8 @@ var w = /*#__PURE__*/function () {
|
|
4339
4339
|
return function (_x28) {
|
4340
4340
|
return _ref6.apply(this, arguments);
|
4341
4341
|
};
|
4342
|
-
}())["catch"](function (
|
4343
|
-
v.displayError(i,
|
4342
|
+
}())["catch"](function (p) {
|
4343
|
+
v.displayError(i, p), c();
|
4344
4344
|
});
|
4345
4345
|
case 18:
|
4346
4346
|
case "end":
|
@@ -4409,9 +4409,9 @@ var w = /*#__PURE__*/function () {
|
|
4409
4409
|
value: function () {
|
4410
4410
|
var _poll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(e, t, i) {
|
4411
4411
|
var n,
|
4412
|
-
p,
|
4413
|
-
m,
|
4414
4412
|
f,
|
4413
|
+
m,
|
4414
|
+
p,
|
4415
4415
|
r,
|
4416
4416
|
_yield$v$processReque4,
|
4417
4417
|
o,
|
@@ -4428,7 +4428,7 @@ var w = /*#__PURE__*/function () {
|
|
4428
4428
|
n = _args17.length > 3 && _args17[3] !== undefined ? _args17[3] : !0;
|
4429
4429
|
r = {
|
4430
4430
|
body: t,
|
4431
|
-
headers: (
|
4431
|
+
headers: (f = e.requestSettings) == null ? void 0 : f.headers
|
4432
4432
|
};
|
4433
4433
|
_context17.next = 4;
|
4434
4434
|
return v.processRequestInterceptor(e.deepChat, r);
|
@@ -4443,7 +4443,7 @@ var w = /*#__PURE__*/function () {
|
|
4443
4443
|
}
|
4444
4444
|
return _context17.abrupt("return", v.onInterceptorError(i, l));
|
4445
4445
|
case 10:
|
4446
|
-
c = ((m = e.requestSettings) == null ? void 0 : m.url) || e.url || "", d = ((
|
4446
|
+
c = ((m = e.requestSettings) == null ? void 0 : m.url) || e.url || "", d = ((p = e.requestSettings) == null ? void 0 : p.method) || "POST", u = n ? JSON.stringify(o) : o, h = {
|
4447
4447
|
method: d,
|
4448
4448
|
body: u,
|
4449
4449
|
headers: a
|
@@ -5489,32 +5489,32 @@ var wn = {
|
|
5489
5489
|
value: function () {
|
5490
5490
|
var _loadModel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(e, t) {
|
5491
5491
|
var _this14 = this;
|
5492
|
-
var o, a, l, c, d, u, h, i, n, r, _this$getConfig,
|
5492
|
+
var o, a, l, c, d, u, h, i, n, r, _this$getConfig, f, m, p, _f;
|
5493
5493
|
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
5494
5494
|
while (1) switch (_context26.prev = _context26.next) {
|
5495
5495
|
case 0:
|
5496
5496
|
this.scrollToTop(), M.chat = e, this._isModelLoading = !0;
|
5497
5497
|
i = ((o = this._webModel.introMessage) == null ? void 0 : o.displayed) === !1;
|
5498
|
-
n = function n(
|
5498
|
+
n = function n(f) {
|
5499
5499
|
var m;
|
5500
5500
|
(m = _this14._messages) == null || m.addNewMessage({
|
5501
|
-
html: "<div>".concat(
|
5501
|
+
html: "<div>".concat(f.text, "</div>"),
|
5502
5502
|
overwrite: !0,
|
5503
5503
|
sendUpdate: !1
|
5504
5504
|
}), i && (setTimeout(function () {
|
5505
|
-
var
|
5506
|
-
return G.scrollToBottom((
|
5505
|
+
var p;
|
5506
|
+
return G.scrollToBottom((p = _this14._messages) == null ? void 0 : p.elementRef);
|
5507
5507
|
}), i = !1);
|
5508
5508
|
};
|
5509
5509
|
M.chat.setInitProgressCallback(n);
|
5510
5510
|
_context26.prev = 4;
|
5511
|
-
_this$getConfig = this.getConfig(),
|
5512
|
-
this._webModel.instruction && (
|
5511
|
+
_this$getConfig = this.getConfig(), f = _this$getConfig.model, m = _this$getConfig.appConfig, p = {};
|
5512
|
+
this._webModel.instruction && (p.conv_config = {
|
5513
5513
|
system: this._webModel.instruction
|
5514
5514
|
});
|
5515
|
-
this._conversationHistory.length > 0 && (
|
5515
|
+
this._conversationHistory.length > 0 && (p.conversation_history = this._conversationHistory);
|
5516
5516
|
_context26.next = 10;
|
5517
|
-
return M.chat.reload(
|
5517
|
+
return M.chat.reload(f, p, m, t);
|
5518
5518
|
case 10:
|
5519
5519
|
r = _context26.sent;
|
5520
5520
|
_context26.next = 16;
|
@@ -5525,9 +5525,9 @@ var wn = {
|
|
5525
5525
|
return _context26.abrupt("return", this.unloadChat(_context26.t0));
|
5526
5526
|
case 16:
|
5527
5527
|
if ((l = (a = this.deepChat)._validationHandler) == null || l.call(a), (c = this._webModel.introMessage) != null && c.removeAfterLoad) this._webModel.introMessage.displayed === !1 ? (u = this._messages) == null || u.removeLastMessage() : (h = this._removeIntro) == null || h.call(this);else {
|
5528
|
-
|
5528
|
+
_f = Sn.setUpAfterLoad(r, this._webModel.introMessage, this._chatEl, !!this._webModel.worker);
|
5529
5529
|
(d = this._messages) == null || d.addNewMessage({
|
5530
|
-
html:
|
5530
|
+
html: _f,
|
5531
5531
|
overwrite: !0,
|
5532
5532
|
sendUpdate: !1
|
5533
5533
|
});
|
@@ -7866,20 +7866,20 @@ var hs = /*#__PURE__*/function (_q8) {
|
|
7866
7866
|
}
|
7867
7867
|
return _createClass(hs);
|
7868
7868
|
}(q);
|
7869
|
-
var
|
7870
|
-
_inherits(
|
7869
|
+
var fs = /*#__PURE__*/function (_hs) {
|
7870
|
+
_inherits(ps, _hs);
|
7871
7871
|
// prettier-ignore
|
7872
|
-
function
|
7872
|
+
function ps(e) {
|
7873
7873
|
var _a$lang, _l$name, _c$gender;
|
7874
7874
|
var _this33;
|
7875
|
-
_classCallCheck(this,
|
7875
|
+
_classCallCheck(this, ps);
|
7876
7876
|
var n, r, o, a, l, c;
|
7877
7877
|
var t = (r = (n = e.directConnection) == null ? void 0 : n.azure) == null ? void 0 : r.textToSpeech,
|
7878
7878
|
i = (o = e.directConnection) == null ? void 0 : o.azure;
|
7879
|
-
_this33 = _callSuper(this,
|
7879
|
+
_this33 = _callSuper(this, ps, [e, Z.buildTextToSpeechHeaders.bind({}, (t == null ? void 0 : t.outputFormat) || "audio-16khz-128kbitrate-mono-mp3"), t.region, i]), _this33.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Azure Text To Speech</b></div>\n <p>Insert text to synthesize it to audio.\n <p>\n Click <a href=\"".concat(ps.HELP_LINK, "\">here</a> for more info.\n </p>"), _this33.url = "", Object.assign(_this33.rawBody, t), (_a$lang = (a = _this33.rawBody).lang) !== null && _a$lang !== void 0 ? _a$lang : a.lang = "en-US", (_l$name = (l = _this33.rawBody).name) !== null && _l$name !== void 0 ? _l$name : l.name = "en-US-JennyNeural", (_c$gender = (c = _this33.rawBody).gender) !== null && _c$gender !== void 0 ? _c$gender : c.gender = "Female", _this33.url = "https://".concat(t.region, ".tts.speech.microsoft.com/cognitiveservices/v1");
|
7880
7880
|
return _this33;
|
7881
7881
|
}
|
7882
|
-
_createClass(
|
7882
|
+
_createClass(ps, [{
|
7883
7883
|
key: "preprocessBody",
|
7884
7884
|
value: function preprocessBody(e, t) {
|
7885
7885
|
var i = t[t.length - 1].text;
|
@@ -7942,12 +7942,12 @@ var ps = /*#__PURE__*/function (_hs) {
|
|
7942
7942
|
return extractResultData;
|
7943
7943
|
}()
|
7944
7944
|
}]);
|
7945
|
-
return
|
7945
|
+
return ps;
|
7946
7946
|
}(hs);
|
7947
|
-
|
7947
|
+
fs.HELP_LINK =
|
7948
7948
|
// eslint-disable-next-line max-len
|
7949
7949
|
"https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest";
|
7950
|
-
var qo =
|
7950
|
+
var qo = fs;
|
7951
7951
|
var ms = /*#__PURE__*/function (_hs2) {
|
7952
7952
|
_inherits(Ui, _hs2);
|
7953
7953
|
function Ui(e) {
|
@@ -8345,8 +8345,8 @@ var li = /*#__PURE__*/function (_q10) {
|
|
8345
8345
|
var _this36$config = _this36.config,
|
8346
8346
|
u = _this36$config.new_assistant,
|
8347
8347
|
h = _this36$config.thread_id,
|
8348
|
-
|
8349
|
-
Object.assign(_this36.newAssistantDetails, u), h && (_this36.sessionId = h),
|
8348
|
+
f = _this36$config.load_thread_history;
|
8349
|
+
Object.assign(_this36.newAssistantDetails, u), h && (_this36.sessionId = h), f && (_this36.shouldFetchHistory = !0);
|
8350
8350
|
var _ref11 = (a = (o = e.directConnection) == null ? void 0 : o.openAI) == null ? void 0 : a.assistant,
|
8351
8351
|
m = _ref11.function_handler;
|
8352
8352
|
m && (_this36._functionHandler = m);
|
@@ -9133,9 +9133,9 @@ var ht = /*#__PURE__*/function (_q12) {
|
|
9133
9133
|
_context94.next = 35;
|
9134
9134
|
break;
|
9135
9135
|
}
|
9136
|
-
o.forEach(function (h,
|
9137
|
-
var
|
9138
|
-
var m = (
|
9136
|
+
o.forEach(function (h, f) {
|
9137
|
+
var p;
|
9138
|
+
var m = (p = e.tool_calls) == null ? void 0 : p[f];
|
9139
9139
|
n == null || n.messages.push({
|
9140
9140
|
role: "tool",
|
9141
9141
|
tool_call_id: m == null ? void 0 : m.id,
|
@@ -9145,8 +9145,8 @@ var ht = /*#__PURE__*/function (_q12) {
|
|
9145
9145
|
}), delete n.tools, delete n.tool_choice, delete n.stream;
|
9146
9146
|
_context94.prev = 17;
|
9147
9147
|
_context94.next = 20;
|
9148
|
-
return t == null ? void 0 : t(n).then(function (
|
9149
|
-
return v.processResponseByType(
|
9148
|
+
return t == null ? void 0 : t(n).then(function (f) {
|
9149
|
+
return v.processResponseByType(f);
|
9150
9150
|
});
|
9151
9151
|
case 20:
|
9152
9152
|
_h = _context94.sent;
|
@@ -9542,22 +9542,22 @@ var ge = /*#__PURE__*/function () {
|
|
9542
9542
|
}();
|
9543
9543
|
var be = /*#__PURE__*/function (_Ye) {
|
9544
9544
|
_inherits(be, _Ye);
|
9545
|
-
function be(e, t
|
9545
|
+
function be(e, t) {
|
9546
9546
|
var _this43;
|
9547
9547
|
_classCallCheck(this, be);
|
9548
|
-
var
|
9548
|
+
var o, a;
|
9549
9549
|
_this43 = _callSuper(this, be, [e]);
|
9550
|
-
var
|
9551
|
-
|
9552
|
-
|
9553
|
-
_this43._errorMessageOverrides = (
|
9550
|
+
var i = t.permittedErrorPrefixes,
|
9551
|
+
n = t.introPanelMarkUp,
|
9552
|
+
r = t.demo;
|
9553
|
+
_this43._errorMessageOverrides = (o = e.errorMessages) == null ? void 0 : o.overrides, _this43._onClearMessages = zt.onClearMessages.bind(_assertThisInitialized(_this43), e), _this43._onError = zt.onError.bind(_assertThisInitialized(_this43), e), _this43._displayLoadingMessage = be.getDisplayLoadingMessage(e, t), _this43._permittedErrorPrefixes = i, _this43.addSetupMessageIfNeeded(e, t) || _this43.populateIntroPanel(e.children[0], n, e.introPanelStyle), _this43.addIntroductoryMessage(e, t), e.initialMessages && _this43.populateInitialMessages(e.initialMessages), _this43._displayServiceErrorMessages = (a = e.errorMessages) == null ? void 0 : a.displayServiceErrorMessages, e.getMessages = function () {
|
9554
9554
|
return JSON.parse(JSON.stringify(_this43.messages));
|
9555
|
-
}, e.clearMessages = _this43.clearMessages.bind(_assertThisInitialized(_this43), t), e.refreshMessages = _this43.refreshTextMessages.bind(_assertThisInitialized(_this43)), e.scrollToBottom = G.scrollToBottom.bind(_assertThisInitialized(_this43), _this43.elementRef), e._addMessage = function (
|
9556
|
-
_this43.addNewMessage(_objectSpread(_objectSpread({},
|
9557
|
-
sendUpdate: !!
|
9558
|
-
}), !
|
9559
|
-
}, t.isWebModel() && t.setUpMessages(_assertThisInitialized(_this43)),
|
9560
|
-
_this43.textToSpeech =
|
9555
|
+
}, e.clearMessages = _this43.clearMessages.bind(_assertThisInitialized(_this43), t), e.refreshMessages = _this43.refreshTextMessages.bind(_assertThisInitialized(_this43)), e.scrollToBottom = G.scrollToBottom.bind(_assertThisInitialized(_this43), _this43.elementRef), e._addMessage = function (l, c) {
|
9556
|
+
_this43.addNewMessage(_objectSpread(_objectSpread({}, l), {}, {
|
9557
|
+
sendUpdate: !!c
|
9558
|
+
}), !c);
|
9559
|
+
}, t.isWebModel() && t.setUpMessages(_assertThisInitialized(_this43)), r && _this43.prepareDemo(r), e.textToSpeech && Ft.processConfig(e.textToSpeech, function (l) {
|
9560
|
+
_this43.textToSpeech = l;
|
9561
9561
|
}), t.fetchHistory && _this43.fetchHistory(t.fetchHistory);
|
9562
9562
|
return _this43;
|
9563
9563
|
}
|
@@ -10301,32 +10301,32 @@ var ea = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\"
|
|
10301
10301
|
dropupText: "File"
|
10302
10302
|
}
|
10303
10303
|
};
|
10304
|
-
var
|
10304
|
+
var fe = /*#__PURE__*/function () {
|
10305
10305
|
// prettier-ignore
|
10306
|
-
function
|
10306
|
+
function fe(e, t, i, n) {
|
10307
10307
|
var _this49 = this;
|
10308
|
-
_classCallCheck(this,
|
10308
|
+
_classCallCheck(this, fe);
|
10309
10309
|
this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", t.maxNumberOfFiles && (this._fileCountLimit = t.maxNumberOfFiles), this._toggleContainerDisplay = i, this._fileAttachmentsContainerRef = n, t.acceptedFormats && (this._acceptedFormat = t.acceptedFormats), setTimeout(function () {
|
10310
10310
|
_this49._validationHandler = e._validationHandler;
|
10311
10311
|
});
|
10312
10312
|
}
|
10313
|
-
_createClass(
|
10313
|
+
_createClass(fe, [{
|
10314
10314
|
key: "attemptAddFile",
|
10315
10315
|
value: function attemptAddFile(e, t) {
|
10316
|
-
return
|
10316
|
+
return fe.isFileTypeValid(e, this._acceptedFormat) ? (this.addAttachmentBasedOnType(e, t, !0), !0) : !1;
|
10317
10317
|
}
|
10318
10318
|
}, {
|
10319
10319
|
key: "addAttachmentBasedOnType",
|
10320
10320
|
value: function addAttachmentBasedOnType(e, t, i) {
|
10321
|
-
var n =
|
10321
|
+
var n = fe.getTypeFromBlob(e);
|
10322
10322
|
if (n === "image") {
|
10323
|
-
var r =
|
10323
|
+
var r = fe.createImageAttachment(t);
|
10324
10324
|
this.addFileAttachment(e, "image", r, i);
|
10325
10325
|
} else if (n === "audio") {
|
10326
10326
|
var _r2 = Hi.createAudioAttachment(t);
|
10327
10327
|
this.addFileAttachment(e, "audio", _r2, i);
|
10328
10328
|
} else {
|
10329
|
-
var _r3 =
|
10329
|
+
var _r3 = fe.createAnyFileAttachment(e.name);
|
10330
10330
|
this.addFileAttachment(e, "any", _r3, i);
|
10331
10331
|
}
|
10332
10332
|
}
|
@@ -10334,7 +10334,7 @@ var pe = /*#__PURE__*/function () {
|
|
10334
10334
|
key: "addFileAttachment",
|
10335
10335
|
value: function addFileAttachment(e, t, i, n) {
|
10336
10336
|
var a;
|
10337
|
-
var r =
|
10337
|
+
var r = fe.createContainer(i);
|
10338
10338
|
if (this._attachments.length >= this._fileCountLimit) {
|
10339
10339
|
var l = this._attachments[this._attachments.length - 1].removeButton;
|
10340
10340
|
l == null || l.click();
|
@@ -10433,12 +10433,12 @@ var pe = /*#__PURE__*/function () {
|
|
10433
10433
|
return t.classList.add("file-attachment"), t.appendChild(e), t;
|
10434
10434
|
}
|
10435
10435
|
}]);
|
10436
|
-
return
|
10436
|
+
return fe;
|
10437
10437
|
}();
|
10438
10438
|
var ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>play</title>\n <path d=\"M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z\"></path>\n</svg>",
|
10439
10439
|
Tn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>stop</title>\n<path d=\"M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z\"></path>\n</svg>",
|
10440
|
-
vs = /*#__PURE__*/function (
|
10441
|
-
_inherits(Ce,
|
10440
|
+
vs = /*#__PURE__*/function (_fe) {
|
10441
|
+
_inherits(Ce, _fe);
|
10442
10442
|
// prettier-ignore
|
10443
10443
|
function Ce(e, t, i, n) {
|
10444
10444
|
_classCallCheck(this, Ce);
|
@@ -10549,7 +10549,7 @@ var ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
10549
10549
|
}
|
10550
10550
|
}]);
|
10551
10551
|
return Ce;
|
10552
|
-
}(
|
10552
|
+
}(fe);
|
10553
10553
|
vs.TIMER_LIMIT_S = 5999;
|
10554
10554
|
var Hi = vs;
|
10555
10555
|
var oa = /*#__PURE__*/function () {
|
@@ -10561,7 +10561,7 @@ var oa = /*#__PURE__*/function () {
|
|
10561
10561
|
value:
|
10562
10562
|
// prettier-ignore
|
10563
10563
|
function create(e, t, i, n, r) {
|
10564
|
-
return r === "audio" ? new Hi(e, t, i, n) : new
|
10564
|
+
return r === "audio" ? new Hi(e, t, i, n) : new fe(e, t, i, n);
|
10565
10565
|
}
|
10566
10566
|
}]);
|
10567
10567
|
return oa;
|
@@ -10779,22 +10779,22 @@ var ys = /*#__PURE__*/function () {
|
|
10779
10779
|
}();
|
10780
10780
|
ys.MODAL_CLOSE_TIMEOUT_MS = 190;
|
10781
10781
|
var ct = ys;
|
10782
|
-
var
|
10783
|
-
_inherits(
|
10782
|
+
var ft = /*#__PURE__*/function (_Tt2) {
|
10783
|
+
_inherits(ft, _Tt2);
|
10784
10784
|
// prettier-ignore
|
10785
|
-
function
|
10785
|
+
function ft(e, t, i, n, r, o) {
|
10786
10786
|
var _this55;
|
10787
|
-
_classCallCheck(this,
|
10788
|
-
var l, c, d, u, h,
|
10789
|
-
_this55 = _callSuper(this,
|
10787
|
+
_classCallCheck(this, ft);
|
10788
|
+
var l, c, d, u, h, f;
|
10789
|
+
_this55 = _callSuper(this, ft, [ft.createButtonElement(), (l = i.button) == null ? void 0 : l.position, i.button, o]);
|
10790
10790
|
var a = _this55.createInnerElements(n, r, _this55._customStyles);
|
10791
|
-
_this55._inputElement =
|
10791
|
+
_this55._inputElement = ft.createInputElement((c = i == null ? void 0 : i.files) == null ? void 0 : c.acceptedFormats), _this55.addClickEvent(e, i), _this55.elementRef.replaceChildren(a.styles), _this55.reapplyStateStyle("styles"), _this55._fileAttachmentsType = t, _this55._openModalOnce = ((u = (d = i.files) == null ? void 0 : d.infoModal) == null ? void 0 : u.openModalOnce) === !1 || (f = (h = i.files) == null ? void 0 : h.infoModal) == null ? void 0 : f.openModalOnce;
|
10792
10792
|
return _this55;
|
10793
10793
|
}
|
10794
|
-
_createClass(
|
10794
|
+
_createClass(ft, [{
|
10795
10795
|
key: "createInnerElements",
|
10796
10796
|
value: function createInnerElements(e, t, i) {
|
10797
|
-
var n =
|
10797
|
+
var n = ft.createSVGIconElement(e, t);
|
10798
10798
|
return {
|
10799
10799
|
styles: this.createInnerElement(n, "styles", i)
|
10800
10800
|
};
|
@@ -10845,7 +10845,7 @@ var pt = /*#__PURE__*/function (_Tt2) {
|
|
10845
10845
|
return i.id = e, i;
|
10846
10846
|
}
|
10847
10847
|
}]);
|
10848
|
-
return
|
10848
|
+
return ft;
|
10849
10849
|
}(Tt);
|
10850
10850
|
var ue = /*#__PURE__*/function () {
|
10851
10851
|
function ue() {
|
@@ -11247,11 +11247,11 @@ var Y = /*#__PURE__*/function () {
|
|
11247
11247
|
}();
|
11248
11248
|
hi.EventListeners = Y;
|
11249
11249
|
Y.KEY_DOWN_TIMEOUT = null;
|
11250
|
-
var
|
11251
|
-
Object.defineProperty(
|
11250
|
+
var fi = {};
|
11251
|
+
Object.defineProperty(fi, "__esModule", {
|
11252
11252
|
value: !0
|
11253
11253
|
});
|
11254
|
-
|
11254
|
+
fi.PreResultUtils = void 0;
|
11255
11255
|
var ua = /*#__PURE__*/function () {
|
11256
11256
|
function ua() {
|
11257
11257
|
_classCallCheck(this, ua);
|
@@ -11267,7 +11267,7 @@ var ua = /*#__PURE__*/function () {
|
|
11267
11267
|
}]);
|
11268
11268
|
return ua;
|
11269
11269
|
}();
|
11270
|
-
|
11270
|
+
fi.PreResultUtils = ua;
|
11271
11271
|
var It = {},
|
11272
11272
|
Lt = {};
|
11273
11273
|
Object.defineProperty(Lt, "__esModule", {
|
@@ -11369,11 +11369,11 @@ Object.defineProperty(qe, "__esModule", {
|
|
11369
11369
|
value: !0
|
11370
11370
|
});
|
11371
11371
|
qe.Cursor = void 0;
|
11372
|
-
var
|
11373
|
-
function
|
11374
|
-
_classCallCheck(this,
|
11372
|
+
var pt = /*#__PURE__*/function () {
|
11373
|
+
function pt() {
|
11374
|
+
_classCallCheck(this, pt);
|
11375
11375
|
}
|
11376
|
-
_createClass(
|
11376
|
+
_createClass(pt, null, [{
|
11377
11377
|
key: "setOffsetForGeneric",
|
11378
11378
|
value: function setOffsetForGeneric(e, t) {
|
11379
11379
|
var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
@@ -11381,7 +11381,7 @@ var ft = /*#__PURE__*/function () {
|
|
11381
11381
|
for (var r = 0; r < e.childNodes.length; r += 1) {
|
11382
11382
|
var o = e.childNodes[r];
|
11383
11383
|
if (o.childNodes.length > 0) {
|
11384
|
-
var a =
|
11384
|
+
var a = pt.setOffsetForGeneric(o, t, i);
|
11385
11385
|
if (a === -1) return -1;
|
11386
11386
|
i += a;
|
11387
11387
|
} else if (o.textContent !== null) {
|
@@ -11409,8 +11409,8 @@ var ft = /*#__PURE__*/function () {
|
|
11409
11409
|
value: function setOffsetForSafariGeneric(e, t) {
|
11410
11410
|
var i = window.getSelection();
|
11411
11411
|
if (i) {
|
11412
|
-
var n =
|
11413
|
-
console.log(n), setTimeout(function () {}, 100),
|
11412
|
+
var n = pt.getGenericElementCursorOffset(e, i, !0);
|
11413
|
+
console.log(n), setTimeout(function () {}, 100), pt.setOffsetForGeneric(e, n + t);
|
11414
11414
|
}
|
11415
11415
|
}
|
11416
11416
|
// set to automatically scroll to cursor (scroll does not work in Safari)
|
@@ -11448,16 +11448,16 @@ var ft = /*#__PURE__*/function () {
|
|
11448
11448
|
return n;
|
11449
11449
|
}
|
11450
11450
|
}]);
|
11451
|
-
return
|
11451
|
+
return pt;
|
11452
11452
|
}();
|
11453
|
-
qe.Cursor =
|
11453
|
+
qe.Cursor = pt;
|
11454
11454
|
Object.defineProperty(It, "__esModule", {
|
11455
11455
|
value: !0
|
11456
11456
|
});
|
11457
11457
|
It.CommandUtils = void 0;
|
11458
11458
|
var An = Lt,
|
11459
|
-
|
11460
|
-
|
11459
|
+
fa = Ue,
|
11460
|
+
pa = nt,
|
11461
11461
|
kn = qe,
|
11462
11462
|
In = ze;
|
11463
11463
|
var K = /*#__PURE__*/function () {
|
@@ -11493,7 +11493,7 @@ var K = /*#__PURE__*/function () {
|
|
11493
11493
|
}, {
|
11494
11494
|
key: "setText",
|
11495
11495
|
value: function setText(e, t, i, n) {
|
11496
|
-
K.toggleCommandModeOff(e),
|
11496
|
+
K.toggleCommandModeOff(e), fa.Elements.isPrimitiveElement(n) ? (n.value = i, e.isTargetInShadow || kn.Cursor.setOffsetForPrimitive(n, i.length, !0), pa.Browser.IS_SAFARI() && e.autoScroll && An.AutoScroll.scrollSafariPrimitiveToEnd(n)) : (n.textContent = i, e.isTargetInShadow || kn.Cursor.focusEndOfGeneric(n), setTimeout(function () {
|
11497
11497
|
return An.AutoScroll.scrollGeneric(e, n);
|
11498
11498
|
})), e.resetRecording(t);
|
11499
11499
|
}
|
@@ -11536,8 +11536,8 @@ var K = /*#__PURE__*/function () {
|
|
11536
11536
|
doNotProcessTranscription: !1
|
11537
11537
|
};
|
11538
11538
|
if (c.pause && h(c.pause, d, u)) return K.toggleCommandModeOff(e), e.setInterimColorToFinal(), setTimeout(function () {
|
11539
|
-
var
|
11540
|
-
e.isPaused = !0, (
|
11539
|
+
var f;
|
11540
|
+
e.isPaused = !0, (f = e.onPauseTrigger) === null || f === void 0 || f.call(e, !0);
|
11541
11541
|
}), {
|
11542
11542
|
doNotProcessTranscription: !1
|
11543
11543
|
};
|
@@ -11556,11 +11556,11 @@ var K = /*#__PURE__*/function () {
|
|
11556
11556
|
return K;
|
11557
11557
|
}();
|
11558
11558
|
It.CommandUtils = K;
|
11559
|
-
var
|
11560
|
-
Object.defineProperty(
|
11559
|
+
var pi = {};
|
11560
|
+
Object.defineProperty(pi, "__esModule", {
|
11561
11561
|
value: !0
|
11562
11562
|
});
|
11563
|
-
|
11563
|
+
pi.Highlight = void 0;
|
11564
11564
|
var ma = Ue,
|
11565
11565
|
st = qe;
|
11566
11566
|
var Kt = /*#__PURE__*/function () {
|
@@ -11612,7 +11612,7 @@ var Kt = /*#__PURE__*/function () {
|
|
11612
11612
|
}]);
|
11613
11613
|
return Kt;
|
11614
11614
|
}();
|
11615
|
-
|
11615
|
+
pi.Highlight = Kt;
|
11616
11616
|
var mi = {};
|
11617
11617
|
Object.defineProperty(mi, "__esModule", {
|
11618
11618
|
value: !0
|
@@ -11685,10 +11685,10 @@ Object.defineProperty(kt, "__esModule", {
|
|
11685
11685
|
});
|
11686
11686
|
kt.Speech = void 0;
|
11687
11687
|
var Rn = hi,
|
11688
|
-
ba =
|
11688
|
+
ba = fi,
|
11689
11689
|
Nn = It,
|
11690
11690
|
Dt = Lt,
|
11691
|
-
ki =
|
11691
|
+
ki = pi,
|
11692
11692
|
se = Ue,
|
11693
11693
|
Ii = mi,
|
11694
11694
|
On = nt,
|
@@ -12625,7 +12625,7 @@ var Si = /*#__PURE__*/function (_Tt4) {
|
|
12625
12625
|
e.files && (t.files = Array.from(e.files).map(function (i) {
|
12626
12626
|
return {
|
12627
12627
|
file: i,
|
12628
|
-
type:
|
12628
|
+
type: fe.getTypeFromBlob(i)
|
12629
12629
|
};
|
12630
12630
|
})), setTimeout(function () {
|
12631
12631
|
return _this67.attemptSubmit(t, !0);
|
@@ -13017,9 +13017,9 @@ var mt = /*#__PURE__*/function () {
|
|
13017
13017
|
d = _sa$a.id,
|
13018
13018
|
u = _sa$a.svgString,
|
13019
13019
|
h = _sa$a.dropupText,
|
13020
|
-
|
13020
|
+
f = new ft(n, c, l, d, u, h);
|
13021
13021
|
r[a] = {
|
13022
|
-
button:
|
13022
|
+
button: f,
|
13023
13023
|
fileType: c
|
13024
13024
|
};
|
13025
13025
|
}
|
@@ -13043,24 +13043,24 @@ var on = /*#__PURE__*/function () {
|
|
13043
13043
|
}
|
13044
13044
|
_createClass(on, null, [{
|
13045
13045
|
key: "createElements",
|
13046
|
-
value: function createElements(e, t
|
13047
|
-
var
|
13048
|
-
|
13049
|
-
var
|
13050
|
-
t.websocket && B.createConnection(t,
|
13051
|
-
var
|
13052
|
-
return G.addElements(
|
13046
|
+
value: function createElements(e, t) {
|
13047
|
+
var i = document.createElement("div");
|
13048
|
+
i.id = "chat-view";
|
13049
|
+
var n = new be(e, t);
|
13050
|
+
t.websocket && B.createConnection(t, n);
|
13051
|
+
var r = new mt(e, n, t, i);
|
13052
|
+
return G.addElements(i, n.elementRef, r.elementRef), i;
|
13053
13053
|
}
|
13054
13054
|
}, {
|
13055
13055
|
key: "render",
|
13056
|
-
value: function render(e, t, i
|
13057
|
-
var
|
13058
|
-
t.replaceChildren(
|
13056
|
+
value: function render(e, t, i) {
|
13057
|
+
var n = on.createElements(e, i);
|
13058
|
+
t.replaceChildren(n);
|
13059
13059
|
}
|
13060
13060
|
}]);
|
13061
13061
|
return on;
|
13062
13062
|
}();
|
13063
|
-
var Oa = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.7em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}\n";
|
13063
|
+
var Oa = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.75em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}\n";
|
13064
13064
|
var Pa = Object.defineProperty,
|
13065
13065
|
Da = Object.getOwnPropertyDescriptor,
|
13066
13066
|
E = function E(s, e, t, i) {
|
@@ -13096,8 +13096,7 @@ var y = /*#__PURE__*/function (_So) {
|
|
13096
13096
|
}, {
|
13097
13097
|
key: "onRender",
|
13098
13098
|
value: function onRender() {
|
13099
|
-
|
13100
|
-
(!this._activeService || this._activeService.demo) && (this._activeService = $o.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (wi.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), wi.applyDefaultStyleToComponent(this.style, this.chatStyle), Re.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateConfigKey ? Bt.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof q) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], on.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof q && P.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, zt.onRender(this);
|
13099
|
+
(!this._activeService || this._activeService.demo) && (this._activeService = $o.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (wi.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), wi.applyDefaultStyleToComponent(this.style, this.chatStyle), Re.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateConfigKey ? Bt.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof q) || this._activeService.key ? on.render(this, this._elementRef, this._activeService) : this._activeService instanceof q && P.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, zt.onRender(this);
|
13101
13100
|
}
|
13102
13101
|
}, {
|
13103
13102
|
key: "disconnectedCallback",
|