deep-chat-dev 9.0.270 → 9.0.271
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 +10497 -10497
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +207 -200
- package/dist/types/textInput.d.ts +7 -4
- package/dist/types/textInput.d.ts.map +1 -1
- package/dist/utils/events/fireEvents.d.ts.map +1 -1
- package/dist/views/chat/messages/utils/fileMessageUtils.d.ts +3 -4
- package/dist/views/chat/messages/utils/fileMessageUtils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/deepChat.js
CHANGED
@@ -614,7 +614,7 @@ var ce = /*#__PURE__*/function () {
|
|
614
614
|
var i;
|
615
615
|
(i = e.files) == null || i.forEach(function (s, r) {
|
616
616
|
var o;
|
617
|
-
s.ref && (o = t.
|
617
|
+
s.ref && (o = t.files) != null && o[r] && (t.files[r].ref = s.ref);
|
618
618
|
});
|
619
619
|
}
|
620
620
|
// the chat does not use the actual file
|
@@ -647,7 +647,7 @@ var ce = /*#__PURE__*/function () {
|
|
647
647
|
}]);
|
648
648
|
}();
|
649
649
|
ce.DEFAULT_FILE_NAME = "file", ce.FILE_BUBBLE_CLASS = "file-message";
|
650
|
-
var
|
650
|
+
var H = ce;
|
651
651
|
var te = /*#__PURE__*/function () {
|
652
652
|
function te() {
|
653
653
|
_classCallCheck(this, te);
|
@@ -1021,7 +1021,7 @@ var Yn = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
|
|
1021
1021
|
function Qt(n) {
|
1022
1022
|
return n.indexOf("\\") < 0 ? n : n.replace(Yn, "$1");
|
1023
1023
|
}
|
1024
|
-
function
|
1024
|
+
function An(n) {
|
1025
1025
|
return !(n >= 55296 && n <= 57343 || n >= 64976 && n <= 65007 || (n & 65535) === 65535 || (n & 65535) === 65534 || n >= 0 && n <= 8 || n === 11 || n >= 14 && n <= 31 || n >= 127 && n <= 159 || n > 1114111);
|
1026
1026
|
}
|
1027
1027
|
function ts(n) {
|
@@ -1038,7 +1038,7 @@ var Zn = /&([a-z#][a-z0-9]{1,31});/gi,
|
|
1038
1038
|
function er(n, e) {
|
1039
1039
|
var t = 0,
|
1040
1040
|
i = _n(e);
|
1041
|
-
return e !== i ? i : e.charCodeAt(0) === 35 && Qn.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10),
|
1041
|
+
return e !== i ? i : e.charCodeAt(0) === 35 && Qn.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), An(t)) ? ts(t) : n;
|
1042
1042
|
}
|
1043
1043
|
function nt(n) {
|
1044
1044
|
return n.indexOf("&") < 0 ? n : n.replace(Zn, er);
|
@@ -1270,11 +1270,11 @@ v.dt_close = function () {
|
|
1270
1270
|
v.dd_close = function () {
|
1271
1271
|
return "</dd>\n";
|
1272
1272
|
};
|
1273
|
-
function
|
1274
|
-
return ++e >= n.length - 2 ? e : n[e].type === "paragraph_open" && n[e].tight && n[e + 1].type === "inline" && n[e + 1].content.length === 0 && n[e + 2].type === "paragraph_close" && n[e + 2].tight ?
|
1273
|
+
function wn(n, e) {
|
1274
|
+
return ++e >= n.length - 2 ? e : n[e].type === "paragraph_open" && n[e].tight && n[e + 1].type === "inline" && n[e + 1].content.length === 0 && n[e + 2].type === "paragraph_close" && n[e + 2].tight ? wn(n, e + 2) : e;
|
1275
1275
|
}
|
1276
1276
|
var ot = v.getBreak = function (e, t) {
|
1277
|
-
return t =
|
1277
|
+
return t = wn(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
|
1278
1278
|
};
|
1279
1279
|
function Es() {
|
1280
1280
|
this.rules = xn({}, v), this.getBreak = v.getBreak;
|
@@ -1814,7 +1814,7 @@ function xr(n, e, t, i) {
|
|
1814
1814
|
}), n.parentType = c, d[1] = n.line, h = 0; h < o.length; h++) n.bMarks[h + e] = a[h], n.tShift[h + e] = o[h];
|
1815
1815
|
return n.blkIndent = l, !0;
|
1816
1816
|
}
|
1817
|
-
function
|
1817
|
+
function Ar(n, e, t, i) {
|
1818
1818
|
var s,
|
1819
1819
|
r,
|
1820
1820
|
o,
|
@@ -1849,7 +1849,7 @@ function zs(n, e) {
|
|
1849
1849
|
}
|
1850
1850
|
return i < s && n.src.charCodeAt(i) !== 32 ? -1 : i;
|
1851
1851
|
}
|
1852
|
-
function
|
1852
|
+
function wr(n, e) {
|
1853
1853
|
var t,
|
1854
1854
|
i,
|
1855
1855
|
s = n.level + 2;
|
@@ -1912,7 +1912,7 @@ function Tr(n, e, t, i) {
|
|
1912
1912
|
return n.tokens.push({
|
1913
1913
|
type: g ? "ordered_list_close" : "bullet_list_close",
|
1914
1914
|
level: --n.level
|
1915
|
-
}), He[1] = s, n.line = s, Re &&
|
1915
|
+
}), He[1] = s, n.line = s, Re && wr(n, M), !0;
|
1916
1916
|
}
|
1917
1917
|
function Cr(n, e, t, i) {
|
1918
1918
|
var s,
|
@@ -2192,7 +2192,7 @@ function Br(n, e) {
|
|
2192
2192
|
level: n.level
|
2193
2193
|
})), !0;
|
2194
2194
|
}
|
2195
|
-
var pi = [["code", Sr], ["fences", _r, ["paragraph", "blockquote", "list"]], ["blockquote", xr, ["paragraph", "blockquote", "list"]], ["hr",
|
2195
|
+
var pi = [["code", Sr], ["fences", _r, ["paragraph", "blockquote", "list"]], ["blockquote", xr, ["paragraph", "blockquote", "list"]], ["hr", Ar, ["paragraph", "blockquote", "list"]], ["list", Tr, ["paragraph", "blockquote"]], ["footnote", Cr, ["paragraph"]], ["heading", Rr, ["paragraph", "blockquote"]], ["lheading", Mr], ["htmlblock", Or, ["paragraph", "blockquote"]], ["table", Pr, ["paragraph"]], ["deflist", Dr, ["paragraph"]], ["paragraph", Br]];
|
2196
2196
|
function Ss() {
|
2197
2197
|
this.ruler = new oe();
|
2198
2198
|
for (var n = 0; n < pi.length; n++) this.ruler.push(pi[n][0], pi[n][1], {
|
@@ -2659,8 +2659,8 @@ function _o(n, e) {
|
|
2659
2659
|
}), n.pos += i[0].length, !0);
|
2660
2660
|
}
|
2661
2661
|
var xo = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
|
2662
|
-
|
2663
|
-
function
|
2662
|
+
Ao = /^&([a-z][a-z0-9]{1,31});/i;
|
2663
|
+
function wo(n, e) {
|
2664
2664
|
var t,
|
2665
2665
|
i,
|
2666
2666
|
s,
|
@@ -2669,15 +2669,15 @@ function Ao(n, e) {
|
|
2669
2669
|
if (n.src.charCodeAt(r) !== 38) return !1;
|
2670
2670
|
if (r + 1 < o) {
|
2671
2671
|
if (t = n.src.charCodeAt(r + 1), t === 35) {
|
2672
|
-
if (s = n.src.slice(r).match(xo), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending +=
|
2673
|
-
} else if (s = n.src.slice(r).match(
|
2672
|
+
if (s = n.src.slice(r).match(xo), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += An(i) ? ts(i) : ts(65533)), n.pos += s[0].length, !0;
|
2673
|
+
} else if (s = n.src.slice(r).match(Ao), s) {
|
2674
2674
|
var a = _n(s[1]);
|
2675
2675
|
if (s[1] !== a) return e || (n.pending += a), n.pos += s[0].length, !0;
|
2676
2676
|
}
|
2677
2677
|
}
|
2678
2678
|
return e || (n.pending += "&"), n.pos++, !0;
|
2679
2679
|
}
|
2680
|
-
var Zi = [["text", qr], ["newline", zr], ["escape", Gr], ["backticks", Vr], ["del", Kr], ["ins", Wr], ["mark", $r], ["emphasis", Jr], ["sub", Yr], ["sup", Qr], ["links", eo], ["footnote_inline", to], ["footnote_ref", io], ["autolink", oo], ["htmltag", _o], ["entity",
|
2680
|
+
var Zi = [["text", qr], ["newline", zr], ["escape", Gr], ["backticks", Vr], ["del", Kr], ["ins", Wr], ["mark", $r], ["emphasis", Jr], ["sub", Yr], ["sup", Qr], ["links", eo], ["footnote_inline", to], ["footnote_ref", io], ["autolink", oo], ["htmltag", _o], ["entity", wo]];
|
2681
2681
|
function qi() {
|
2682
2682
|
this.ruler = new oe();
|
2683
2683
|
for (var n = 0; n < Zi.length; n++) this.ruler.push(Zi[n][0], Zi[n][1]);
|
@@ -2836,34 +2836,34 @@ var Co = {
|
|
2836
2836
|
function Ln(n, e, t) {
|
2837
2837
|
this.src = e, this.env = t, this.options = n.options, this.tokens = [], this.inlineMode = !1, this.inline = n.inline, this.block = n.block, this.renderer = n.renderer, this.typographer = n.typographer;
|
2838
2838
|
}
|
2839
|
-
function
|
2839
|
+
function Ae(n, e) {
|
2840
2840
|
typeof n != "string" && (e = n, n = "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 qi(), this.block = new Ss(), this.core = new Mn(), this.renderer = new Es(), this.ruler = new oe(), this.options = {}, this.configure(ko[n]), this.set(e || {});
|
2841
2841
|
}
|
2842
|
-
|
2842
|
+
Ae.prototype.set = function (n) {
|
2843
2843
|
xn(this.options, n);
|
2844
2844
|
};
|
2845
|
-
|
2845
|
+
Ae.prototype.configure = function (n) {
|
2846
2846
|
var e = this;
|
2847
2847
|
if (!n) throw new Error("Wrong `remarkable` preset, check name/content");
|
2848
2848
|
n.options && e.set(n.options), n.components && Object.keys(n.components).forEach(function (t) {
|
2849
2849
|
n.components[t].rules && e[t].ruler.enable(n.components[t].rules, !0);
|
2850
2850
|
});
|
2851
2851
|
};
|
2852
|
-
|
2852
|
+
Ae.prototype.use = function (n, e) {
|
2853
2853
|
return n(this, e), this;
|
2854
2854
|
};
|
2855
|
-
|
2855
|
+
Ae.prototype.parse = function (n, e) {
|
2856
2856
|
var t = new Ln(this, n, e);
|
2857
2857
|
return this.core.process(t), t.tokens;
|
2858
2858
|
};
|
2859
|
-
|
2859
|
+
Ae.prototype.render = function (n, e) {
|
2860
2860
|
return e = e || {}, this.renderer.render(this.parse(n, e), this.options, e);
|
2861
2861
|
};
|
2862
|
-
|
2862
|
+
Ae.prototype.parseInline = function (n, e) {
|
2863
2863
|
var t = new Ln(this, n, e);
|
2864
2864
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
2865
2865
|
};
|
2866
|
-
|
2866
|
+
Ae.prototype.renderInline = function (n, e) {
|
2867
2867
|
return e = e || {}, this.renderer.render(this.parseInline(n, e), this.options, e);
|
2868
2868
|
};
|
2869
2869
|
var pt = /*#__PURE__*/function () {
|
@@ -2873,10 +2873,10 @@ var pt = /*#__PURE__*/function () {
|
|
2873
2873
|
return _createClass(pt, null, [{
|
2874
2874
|
key: "instantiate",
|
2875
2875
|
value: function instantiate(e) {
|
2876
|
-
if (e) return new
|
2876
|
+
if (e) return new Ae(_objectSpread(_objectSpread({}, pt.DEFAULT_PROPERTIES), e));
|
2877
2877
|
if (window.hljs) {
|
2878
2878
|
var t = window.hljs;
|
2879
|
-
return new
|
2879
|
+
return new Ae({
|
2880
2880
|
highlight: function highlight(i, s) {
|
2881
2881
|
if (s && t.getLanguage(s)) try {
|
2882
2882
|
return t.highlight(i, {
|
@@ -2905,7 +2905,7 @@ var pt = /*#__PURE__*/function () {
|
|
2905
2905
|
typographer: !0
|
2906
2906
|
// Enable smartypants and other sweet transforms
|
2907
2907
|
});
|
2908
|
-
} else return new
|
2908
|
+
} else return new Ae(pt.DEFAULT_PROPERTIES);
|
2909
2909
|
}
|
2910
2910
|
}, {
|
2911
2911
|
key: "createNew",
|
@@ -2985,7 +2985,7 @@ var ii = /*#__PURE__*/function () {
|
|
2985
2985
|
isHistory: i,
|
2986
2986
|
isInitial: i
|
2987
2987
|
}));
|
2988
|
-
|
2988
|
+
H.reAddFileRefToObject(t, s.message), (r = e.onMessage) == null || r.call(e, s), e.dispatchEvent(new CustomEvent("message", {
|
2989
2989
|
detail: s
|
2990
2990
|
})), te.fireOnNewMessage(e, s);
|
2991
2991
|
}
|
@@ -3006,12 +3006,19 @@ var ii = /*#__PURE__*/function () {
|
|
3006
3006
|
}, {
|
3007
3007
|
key: "onInput",
|
3008
3008
|
value: function onInput(e, t, i) {
|
3009
|
-
var
|
3010
|
-
|
3011
|
-
|
3012
|
-
|
3013
|
-
|
3014
|
-
|
3009
|
+
var r, o;
|
3010
|
+
var s = JSON.parse(JSON.stringify({
|
3011
|
+
content: t,
|
3012
|
+
isUser: i
|
3013
|
+
}));
|
3014
|
+
t.files && H.reAddFileRefToObject({
|
3015
|
+
files: (r = t.files) == null ? void 0 : r.map(function (a) {
|
3016
|
+
return {
|
3017
|
+
ref: a
|
3018
|
+
};
|
3019
|
+
})
|
3020
|
+
}, s), (o = e.onInput) == null || o.call(e, s), e.dispatchEvent(new CustomEvent("input", {
|
3021
|
+
detail: s
|
3015
3022
|
}));
|
3016
3023
|
}
|
3017
3024
|
}, {
|
@@ -3622,7 +3629,7 @@ var S = /*#__PURE__*/function () {
|
|
3622
3629
|
key: "generateMessageBodyElements",
|
3623
3630
|
value: function generateMessageBodyElements(e, t) {
|
3624
3631
|
var i = {};
|
3625
|
-
return e.text && (i.text = S.findMessageElements(t, he.TEXT_BUBBLE_CLASS)), e.html && (i.html = S.findMessageElements(t, xe.HTML_BUBBLE_CLASS)), e.files && (i.files = S.filterdMessageElements(t,
|
3632
|
+
return e.text && (i.text = S.findMessageElements(t, he.TEXT_BUBBLE_CLASS)), e.html && (i.html = S.findMessageElements(t, xe.HTML_BUBBLE_CLASS)), e.files && (i.files = S.filterdMessageElements(t, H.FILE_BUBBLE_CLASS)), i;
|
3626
3633
|
}
|
3627
3634
|
}, {
|
3628
3635
|
key: "generateMessageBody",
|
@@ -3824,7 +3831,7 @@ var pe = /*#__PURE__*/function () {
|
|
3824
3831
|
}]);
|
3825
3832
|
}();
|
3826
3833
|
pe.MESSAGE_CLASS = "streamed-message", pe.PARTIAL_RENDER_TEXT_MARK = "\n\n", pe.TARGET_WRAPPER_CLASS = "stream-wrapper";
|
3827
|
-
var
|
3834
|
+
var we = pe;
|
3828
3835
|
var qe = /*#__PURE__*/function () {
|
3829
3836
|
function qe() {
|
3830
3837
|
_classCallCheck(this, qe);
|
@@ -4213,11 +4220,11 @@ function Fo(n) {
|
|
4213
4220
|
var e = n.headers.get("content-type");
|
4214
4221
|
if (!(e != null && e.startsWith(ns))) throw new Error("Expected content-type to be ".concat(ns, ", Actual: ").concat(e));
|
4215
4222
|
}
|
4216
|
-
var
|
4217
|
-
function
|
4218
|
-
_classCallCheck(this,
|
4223
|
+
var w = /*#__PURE__*/function () {
|
4224
|
+
function w() {
|
4225
|
+
_classCallCheck(this, w);
|
4219
4226
|
}
|
4220
|
-
return _createClass(
|
4227
|
+
return _createClass(w, null, [{
|
4221
4228
|
key: "request",
|
4222
4229
|
value: // prettier-ignore
|
4223
4230
|
function () {
|
@@ -4272,13 +4279,13 @@ var A = /*#__PURE__*/function () {
|
|
4272
4279
|
}
|
4273
4280
|
return _context7.abrupt("return", ye.requestStream(i, e));
|
4274
4281
|
case 15:
|
4275
|
-
d = new
|
4282
|
+
d = new we(i, e.stream), u = E.fetch.bind(this, e, l, s), h = {
|
4276
4283
|
method: ((g = e.connectSettings) == null ? void 0 : g.method) || "POST",
|
4277
4284
|
headers: l,
|
4278
4285
|
credentials: (b = e.connectSettings) == null ? void 0 : b.credentials,
|
4279
4286
|
body: s ? JSON.stringify(a) : a
|
4280
4287
|
};
|
4281
|
-
return _context7.abrupt("return", (_typeof(e.stream) == "object" && e.stream.readable ?
|
4288
|
+
return _context7.abrupt("return", (_typeof(e.stream) == "object" && e.stream.readable ? w.handleReadableStream(e, i, d, h, r, u, a) : w.handleEventStream(e, i, d, h, r, u, a), d));
|
4282
4289
|
case 17:
|
4283
4290
|
case "end":
|
4284
4291
|
return _context7.stop();
|
@@ -4329,7 +4336,7 @@ var A = /*#__PURE__*/function () {
|
|
4329
4336
|
_context8.next = 15;
|
4330
4337
|
break;
|
4331
4338
|
}
|
4332
|
-
|
4339
|
+
w.handleClose(e, i, c, r);
|
4333
4340
|
_context8.next = 24;
|
4334
4341
|
break;
|
4335
4342
|
case 15:
|
@@ -4350,7 +4357,7 @@ var A = /*#__PURE__*/function () {
|
|
4350
4357
|
Ee = _typeof(Re) == "object" ? Re : {
|
4351
4358
|
text: ae
|
4352
4359
|
};
|
4353
|
-
|
4360
|
+
w.handleMessage(e, t, i, c, Ee, o, a);
|
4354
4361
|
case 24:
|
4355
4362
|
_context8.next = 5;
|
4356
4363
|
break;
|
@@ -4364,7 +4371,7 @@ var A = /*#__PURE__*/function () {
|
|
4364
4371
|
return _ref5.apply(this, arguments);
|
4365
4372
|
};
|
4366
4373
|
}())["catch"](function (f) {
|
4367
|
-
|
4374
|
+
w.handleError(e, t, f);
|
4368
4375
|
}), d.abort = function () {
|
4369
4376
|
u = !0;
|
4370
4377
|
};
|
@@ -4429,7 +4436,7 @@ var A = /*#__PURE__*/function () {
|
|
4429
4436
|
_context0.t0 = p;
|
4430
4437
|
case 7:
|
4431
4438
|
g = _context0.t0;
|
4432
|
-
|
4439
|
+
w.handleMessage(e, t, i, c, g, o, a);
|
4433
4440
|
case 9:
|
4434
4441
|
case "end":
|
4435
4442
|
return _context0.stop();
|
@@ -4441,11 +4448,11 @@ var A = /*#__PURE__*/function () {
|
|
4441
4448
|
throw c(), h;
|
4442
4449
|
},
|
4443
4450
|
onclose: function onclose() {
|
4444
|
-
|
4451
|
+
w.handleClose(e, i, c, r);
|
4445
4452
|
},
|
4446
4453
|
signal: d.signal
|
4447
4454
|
}))["catch"](function (h) {
|
4448
|
-
|
4455
|
+
w.handleError(e, t, h);
|
4449
4456
|
});
|
4450
4457
|
}
|
4451
4458
|
//prettier-ignore
|
@@ -4454,7 +4461,7 @@ var A = /*#__PURE__*/function () {
|
|
4454
4461
|
value: function handleMessage(e, t, i, s, r, o, a) {
|
4455
4462
|
var l;
|
4456
4463
|
(l = e.extractResultData) == null || l.call(e, r, o, a).then(function (c) {
|
4457
|
-
e.asyncCallInProgress && c && c.text !== "" ? (
|
4464
|
+
e.asyncCallInProgress && c && c.text !== "" ? (w.simulate(t, e.streamHandlers, c), s(), e.asyncCallInProgress = !1) : w.upsertWFiles(t, i.upsertStreamedMessage.bind(i), i, c);
|
4458
4465
|
})["catch"](function (c) {
|
4459
4466
|
return E.displayError(t, c);
|
4460
4467
|
});
|
@@ -4520,15 +4527,15 @@ var A = /*#__PURE__*/function () {
|
|
4520
4527
|
case 10:
|
4521
4528
|
if (i.text) {
|
4522
4529
|
t.onOpen();
|
4523
|
-
_o2 = i.text.split(""), a = new
|
4524
|
-
|
4530
|
+
_o2 = i.text.split(""), a = new we(e, s == null ? void 0 : s.stream);
|
4531
|
+
w.populateMessages(e, _o2, a, r, "text", 0, s);
|
4525
4532
|
}
|
4526
4533
|
if (i.html) {
|
4527
4534
|
t.onOpen();
|
4528
4535
|
_o3 = G.splitHTML(i.html);
|
4529
4536
|
_o3.length === 0 && (_o3 = i.html.split(""));
|
4530
|
-
_a2 = new
|
4531
|
-
|
4537
|
+
_a2 = new we(e, s == null ? void 0 : s.stream);
|
4538
|
+
w.populateMessages(e, _o3, _a2, r, "html", 0, s);
|
4532
4539
|
}
|
4533
4540
|
i.error && (E.displayError(e, i.error), t.onClose());
|
4534
4541
|
case 13:
|
@@ -4562,12 +4569,12 @@ var A = /*#__PURE__*/function () {
|
|
4562
4569
|
});
|
4563
4570
|
case 4:
|
4564
4571
|
c = _context10.sent;
|
4565
|
-
|
4572
|
+
w.upsertWFiles(e, i.upsertStreamedMessage.bind(i), i, c);
|
4566
4573
|
d = setTimeout(function () {
|
4567
|
-
|
4574
|
+
w.populateMessages(e, t, i, s, r, o + 1, a);
|
4568
4575
|
}, s.simulationInterim || 6);
|
4569
4576
|
s.abortStream.abort = function () {
|
4570
|
-
|
4577
|
+
w.abort(d, i, s.onClose);
|
4571
4578
|
};
|
4572
4579
|
_context10.next = 11;
|
4573
4580
|
break;
|
@@ -4592,7 +4599,7 @@ var A = /*#__PURE__*/function () {
|
|
4592
4599
|
}, {
|
4593
4600
|
key: "isSimulatable",
|
4594
4601
|
value: function isSimulatable(e, t) {
|
4595
|
-
return
|
4602
|
+
return w.isSimulation(e) && t && (t.text || t.html);
|
4596
4603
|
}
|
4597
4604
|
}, {
|
4598
4605
|
key: "abort",
|
@@ -4670,7 +4677,7 @@ var Ze = /*#__PURE__*/function () {
|
|
4670
4677
|
r = Array.isArray(s) ? s : [s], o = r.find(function (a) {
|
4671
4678
|
return typeof a.error == "string";
|
4672
4679
|
});
|
4673
|
-
o ? (t.addNewErrorMessage("service", o.error), e.completionsHandlers.onFinish()) :
|
4680
|
+
o ? (t.addNewErrorMessage("service", o.error), e.completionsHandlers.onFinish()) : w.isSimulatable(e.stream, s) ? w.simulate(t, e.streamHandlers, s) : (r.forEach(function (a) {
|
4674
4681
|
return t.addNewMessage(a);
|
4675
4682
|
}), e.completionsHandlers.onFinish());
|
4676
4683
|
case 7:
|
@@ -4686,18 +4693,18 @@ var Ze = /*#__PURE__*/function () {
|
|
4686
4693
|
value: function requestStream(e, t) {
|
4687
4694
|
setTimeout(function () {
|
4688
4695
|
var i = Ze.getResponse(e);
|
4689
|
-
|
4696
|
+
w.simulate(e, t.streamHandlers, i, t);
|
4690
4697
|
}, 400);
|
4691
4698
|
}
|
4692
4699
|
}]);
|
4693
4700
|
}();
|
4694
4701
|
Ze.URL = "deep-chat-demo";
|
4695
4702
|
var ye = Ze;
|
4696
|
-
var
|
4697
|
-
function
|
4698
|
-
_classCallCheck(this,
|
4703
|
+
var q = /*#__PURE__*/function () {
|
4704
|
+
function q() {
|
4705
|
+
_classCallCheck(this, q);
|
4699
4706
|
}
|
4700
|
-
return _createClass(
|
4707
|
+
return _createClass(q, null, [{
|
4701
4708
|
key: "setup",
|
4702
4709
|
value: function setup(e) {
|
4703
4710
|
e.permittedErrorPrefixes = ["Connection error", "Error in server message"], e.websocket = "pending";
|
@@ -4712,7 +4719,7 @@ var H = /*#__PURE__*/function () {
|
|
4712
4719
|
}, {
|
4713
4720
|
key: "createConnection",
|
4714
4721
|
value: function createConnection(e, t) {
|
4715
|
-
if (!
|
4722
|
+
if (!q.isElementPresentInDOM(e.deepChat)) return;
|
4716
4723
|
var i = e.connectSettings.websocket;
|
4717
4724
|
if (i) {
|
4718
4725
|
if (e.connectSettings.handler) return ve.websocket(e, t);
|
@@ -4721,12 +4728,12 @@ var H = /*#__PURE__*/function () {
|
|
4721
4728
|
r = new WebSocket(e.connectSettings.url || "", s);
|
4722
4729
|
e.websocket = r, e.websocket.onopen = function () {
|
4723
4730
|
var o, a;
|
4724
|
-
t.removeError(), e.websocket && _typeof(e.websocket) == "object" &&
|
4731
|
+
t.removeError(), e.websocket && _typeof(e.websocket) == "object" && q.assignListeners(e, r, t), (a = (o = e.deepChat)._validationHandler) == null || a.call(o);
|
4725
4732
|
}, e.websocket.onerror = function (o) {
|
4726
|
-
console.error(o),
|
4733
|
+
console.error(o), q.retryConnection(e, t);
|
4727
4734
|
};
|
4728
4735
|
} catch (s) {
|
4729
|
-
console.error(s),
|
4736
|
+
console.error(s), q.retryConnection(e, t);
|
4730
4737
|
}
|
4731
4738
|
}
|
4732
4739
|
}
|
@@ -4734,8 +4741,8 @@ var H = /*#__PURE__*/function () {
|
|
4734
4741
|
key: "retryConnection",
|
4735
4742
|
value: function retryConnection(e, t) {
|
4736
4743
|
var i, s;
|
4737
|
-
(s = (i = e.deepChat)._validationHandler) == null || s.call(i),
|
4738
|
-
|
4744
|
+
(s = (i = e.deepChat)._validationHandler) == null || s.call(i), q.isElementPresentInDOM(e.deepChat) && (e.websocket = "pending", t.isLastMessageError() || t.addNewErrorMessage("service", "Connection error"), setTimeout(function () {
|
4745
|
+
q.createConnection(e, t);
|
4739
4746
|
}, 5e3));
|
4740
4747
|
}
|
4741
4748
|
}, {
|
@@ -4768,12 +4775,12 @@ var H = /*#__PURE__*/function () {
|
|
4768
4775
|
}
|
4769
4776
|
throw Error(k.INVALID_RESPONSE(o, "server", !!e.deepChat.responseInterceptor, a));
|
4770
4777
|
case 8:
|
4771
|
-
if (!
|
4778
|
+
if (!w.isSimulation(e.stream)) {
|
4772
4779
|
_context12.next = 13;
|
4773
4780
|
break;
|
4774
4781
|
}
|
4775
|
-
l =
|
4776
|
-
|
4782
|
+
l = q.stream.bind(_this8, e, i, s), c = s[o.role || y.AI_ROLE];
|
4783
|
+
w.upsertWFiles(i, l, c, a);
|
4777
4784
|
_context12.next = 17;
|
4778
4785
|
break;
|
4779
4786
|
case 13:
|
@@ -4806,7 +4813,7 @@ var H = /*#__PURE__*/function () {
|
|
4806
4813
|
return _ref8.apply(this, arguments);
|
4807
4814
|
};
|
4808
4815
|
}(), t.onclose = function () {
|
4809
|
-
console.error("Connection closed"), i.isLastMessageError() || i.addNewErrorMessage("service", "Connection error"), e.stream && e.streamHandlers.abortStream.abort(),
|
4816
|
+
console.error("Connection closed"), i.isLastMessageError() || i.addNewErrorMessage("service", "Connection error"), e.stream && e.streamHandlers.abortStream.abort(), q.createConnection(e, i);
|
4810
4817
|
};
|
4811
4818
|
}
|
4812
4819
|
}, {
|
@@ -4856,7 +4863,7 @@ var H = /*#__PURE__*/function () {
|
|
4856
4863
|
}
|
4857
4864
|
return _context13.abrupt("return", i.addNewErrorMessage("service", l));
|
4858
4865
|
case 14:
|
4859
|
-
if (
|
4866
|
+
if (q.isWebSocket(r)) {
|
4860
4867
|
_context13.next = 16;
|
4861
4868
|
break;
|
4862
4869
|
}
|
@@ -4878,7 +4885,7 @@ var H = /*#__PURE__*/function () {
|
|
4878
4885
|
}, {
|
4879
4886
|
key: "canSendMessage",
|
4880
4887
|
value: function canSendMessage(e) {
|
4881
|
-
return e ? e === "pending" ? !1 :
|
4888
|
+
return e ? e === "pending" ? !1 : q.isWebSocket(e) ? e.readyState !== void 0 && e.readyState === e.OPEN : e.isOpen : !0;
|
4882
4889
|
}
|
4883
4890
|
// if false then it is the internal websocket handler
|
4884
4891
|
}, {
|
@@ -4895,8 +4902,8 @@ var H = /*#__PURE__*/function () {
|
|
4895
4902
|
var _i$o;
|
4896
4903
|
var o = s.role || y.AI_ROLE,
|
4897
4904
|
a = i[o];
|
4898
|
-
s.text === r || s.html === r ? (a == null || a.finaliseStreamedMessage(), delete i[o]) : ((_i$o = i[o]) !== null && _i$o !== void 0 ? _i$o : i[o] = new
|
4899
|
-
} else
|
4905
|
+
s.text === r || s.html === r ? (a == null || a.finaliseStreamedMessage(), delete i[o]) : ((_i$o = i[o]) !== null && _i$o !== void 0 ? _i$o : i[o] = new we(t, e.stream), i[o].upsertStreamedMessage(s));
|
4906
|
+
} else w.simulate(t, e.streamHandlers, s);
|
4900
4907
|
}
|
4901
4908
|
}]);
|
4902
4909
|
}();
|
@@ -4937,7 +4944,7 @@ var ve = /*#__PURE__*/function () {
|
|
4937
4944
|
u = Array.isArray(d) ? d : [d], h = u.find(function (f) {
|
4938
4945
|
return typeof f.error == "string";
|
4939
4946
|
});
|
4940
|
-
h ? (console.error(h.error), i.addNewErrorMessage("service", h.error), e.completionsHandlers.onFinish()) :
|
4947
|
+
h ? (console.error(h.error), i.addNewErrorMessage("service", h.error), e.completionsHandlers.onFinish()) : w.isSimulatable(e.stream, d) ? w.simulate(i, e.streamHandlers, d) : (u.forEach(function (f) {
|
4941
4948
|
return i.addNewMessage(f);
|
4942
4949
|
}), e.completionsHandlers.onFinish());
|
4943
4950
|
}
|
@@ -4982,7 +4989,7 @@ var ve = /*#__PURE__*/function () {
|
|
4982
4989
|
var u, h;
|
4983
4990
|
var s = !0,
|
4984
4991
|
r = !1;
|
4985
|
-
var o = new
|
4992
|
+
var o = new we(i, e.stream),
|
4986
4993
|
a = function a() {
|
4987
4994
|
r || !s || (e.streamHandlers.onOpen(), r = !0);
|
4988
4995
|
},
|
@@ -5008,7 +5015,7 @@ var ve = /*#__PURE__*/function () {
|
|
5008
5015
|
});
|
5009
5016
|
case 4:
|
5010
5017
|
m = _context16.sent;
|
5011
|
-
if (m) m.error ? (ve.streamError(m.error, o, e, i), s = !1) :
|
5018
|
+
if (m) m.error ? (ve.streamError(m.error, o, e, i), s = !1) : w.upsertWFiles(i, o.upsertStreamedMessage.bind(o), o, m);else {
|
5012
5019
|
p = k.INVALID_RESPONSE(f, "server", !!e.deepChat.responseInterceptor, m);
|
5013
5020
|
ve.streamError(p, o, e, i), s = !1;
|
5014
5021
|
}
|
@@ -5081,9 +5088,9 @@ var ve = /*#__PURE__*/function () {
|
|
5081
5088
|
h = Array.isArray(u) ? u : [u], f = h.find(function (m) {
|
5082
5089
|
return typeof m.error == "string";
|
5083
5090
|
});
|
5084
|
-
if (f) console.error(f.error), t.isLastMessageError() || t.addNewErrorMessage("service", f.error);else if (
|
5085
|
-
m = u, p =
|
5086
|
-
|
5091
|
+
if (f) console.error(f.error), t.isLastMessageError() || t.addNewErrorMessage("service", f.error);else if (w.isSimulation(e.stream)) {
|
5092
|
+
m = u, p = q.stream.bind(_this9, e, t, i.roleToStream), g = i.roleToStream[m.role || y.AI_ROLE];
|
5093
|
+
w.upsertWFiles(t, p, g, m);
|
5087
5094
|
} else h.forEach(function (m) {
|
5088
5095
|
return t.addNewMessage(m);
|
5089
5096
|
});
|
@@ -5223,7 +5230,7 @@ var R = /*#__PURE__*/function () {
|
|
5223
5230
|
}
|
5224
5231
|
throw Error(k.INVALID_RESPONSE(p, "response", !!e.deepChat.responseInterceptor, g));
|
5225
5232
|
case 15:
|
5226
|
-
b.makingAnotherRequest || (
|
5233
|
+
b.makingAnotherRequest || (w.isSimulatable(e.stream, b) ? w.simulate(i, e.streamHandlers, b) : ((Array.isArray(b) ? b : [b]).forEach(function (ae) {
|
5227
5234
|
return i.addNewMessage(ae);
|
5228
5235
|
}), c()));
|
5229
5236
|
case 16:
|
@@ -5285,7 +5292,7 @@ var R = /*#__PURE__*/function () {
|
|
5285
5292
|
a = _context20.sent;
|
5286
5293
|
a.timeoutMS ? setTimeout(function () {
|
5287
5294
|
R.executePollRequest(e, t, i, s);
|
5288
|
-
}, a.timeoutMS) :
|
5295
|
+
}, a.timeoutMS) : w.isSimulatable(e.stream, a) ? w.simulate(s, e.streamHandlers, a) : (s.addNewMessage(a), r());
|
5289
5296
|
case 13:
|
5290
5297
|
case "end":
|
5291
5298
|
return _context20.stop();
|
@@ -5736,7 +5743,7 @@ var rt = /*#__PURE__*/function () {
|
|
5736
5743
|
var _a$url;
|
5737
5744
|
_classCallCheck(this, rt);
|
5738
5745
|
var s, r, o, a, l;
|
5739
|
-
this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = rt.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = e, this.demo = i, Object.assign(this.rawBody, (s = e.connect) == null ? void 0 : s.additionalBodyProps), this.totalMessagesMaxCharLength = (r = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : r.totalMessagesMaxCharLength, this.maxMessages = (o = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : o.maxMessages, B.set(e, this, t), e.connect && (this.connectSettings = e.connect), this.demo && ((_a$url = (a = this.connectSettings).url) !== null && _a$url !== void 0 ? _a$url : a.url = ye.URL), this.connectSettings.websocket &&
|
5746
|
+
this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = rt.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = e, this.demo = i, Object.assign(this.rawBody, (s = e.connect) == null ? void 0 : s.additionalBodyProps), this.totalMessagesMaxCharLength = (r = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : r.totalMessagesMaxCharLength, this.maxMessages = (o = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : o.maxMessages, B.set(e, this, t), e.connect && (this.connectSettings = e.connect), this.demo && ((_a$url = (a = this.connectSettings).url) !== null && _a$url !== void 0 ? _a$url : a.url = ye.URL), this.connectSettings.websocket && q.setup(this), this.stream = ((l = this.deepChat.connect) == null ? void 0 : l.stream) || te.checkForStream(this.deepChat), e.loadHistory && si.addErrorPrefix(this);
|
5740
5747
|
}
|
5741
5748
|
return _createClass(rt, [{
|
5742
5749
|
key: "verifyKey",
|
@@ -5762,7 +5769,7 @@ var rt = /*#__PURE__*/function () {
|
|
5762
5769
|
while (1) switch (_context27.prev = _context27.next) {
|
5763
5770
|
case 0:
|
5764
5771
|
i = _args27.length > 2 && _args27[2] !== undefined ? _args27[2] : !0;
|
5765
|
-
return _context27.abrupt("return", this.stream && !
|
5772
|
+
return _context27.abrupt("return", this.stream && !w.isSimulation(this.stream) ? w.request(this, e, t, i) : R.request(this, e, t, i));
|
5766
5773
|
case 2:
|
5767
5774
|
case "end":
|
5768
5775
|
return _context27.stop();
|
@@ -5870,7 +5877,7 @@ var rt = /*#__PURE__*/function () {
|
|
5870
5877
|
s = _objectSpread({
|
5871
5878
|
messages: i
|
5872
5879
|
}, this.rawBody);
|
5873
|
-
|
5880
|
+
q.sendWebsocket(this, s, t, !1);
|
5874
5881
|
} else this.callServiceAPI(t, i, e.files);
|
5875
5882
|
case 4:
|
5876
5883
|
case "end":
|
@@ -6717,7 +6724,7 @@ var Xs = {
|
|
6717
6724
|
this.streamHandlers.abortStream.abort = function () {
|
6718
6725
|
i.interruptGenerate();
|
6719
6726
|
}, this.streamHandlers.onOpen();
|
6720
|
-
s = new
|
6727
|
+
s = new we(e);
|
6721
6728
|
_context39.next = 4;
|
6722
6729
|
return i.generate(t, /*#__PURE__*/function () {
|
6723
6730
|
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee38(r, o) {
|
@@ -7250,10 +7257,10 @@ var zi = /*#__PURE__*/function (_K2) {
|
|
7250
7257
|
_inherits(zi, _K2);
|
7251
7258
|
return _createClass(zi);
|
7252
7259
|
}(K);
|
7253
|
-
var
|
7254
|
-
function
|
7260
|
+
var Ai = /*#__PURE__*/function (_zi) {
|
7261
|
+
function Ai(e) {
|
7255
7262
|
var _this24;
|
7256
|
-
_classCallCheck(this,
|
7263
|
+
_classCallCheck(this, Ai);
|
7257
7264
|
var o;
|
7258
7265
|
var t = JSON.parse(JSON.stringify(e.directConnection)),
|
7259
7266
|
i = t == null ? void 0 : t.stabilityAI,
|
@@ -7265,13 +7272,13 @@ var wi = /*#__PURE__*/function (_zi) {
|
|
7265
7272
|
}
|
7266
7273
|
}
|
7267
7274
|
};
|
7268
|
-
_this24 = _callSuper(this,
|
7275
|
+
_this24 = _callSuper(this, Ai, [e, Ce.buildKeyVerificationDetails(), Ce.buildHeaders, i, s]), _this24.url = "https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale", _this24.textInputPlaceholderText = "Describe image changes", _this24.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Upscale</b></div>\n <p>Upload an image to generate a new one with higher resolution.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
|
7269
7276
|
var r = (o = t == null ? void 0 : t.stabilityAI) == null ? void 0 : o.imageToImageUpscale;
|
7270
|
-
_typeof(r) == "object" && (r.engine_id && (_this24.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/upscale")),
|
7277
|
+
_typeof(r) == "object" && (r.engine_id && (_this24.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/upscale")), Ai.cleanConfig(r), Object.assign(_this24.rawBody, r)), _this24.canSendMessage = Ai.canSendFileMessage;
|
7271
7278
|
return _this24;
|
7272
7279
|
}
|
7273
|
-
_inherits(
|
7274
|
-
return _createClass(
|
7280
|
+
_inherits(Ai, _zi);
|
7281
|
+
return _createClass(Ai, [{
|
7275
7282
|
key: "createFormDataBody",
|
7276
7283
|
value: function createFormDataBody(e, t) {
|
7277
7284
|
var i = new FormData();
|
@@ -7357,10 +7364,10 @@ var wi = /*#__PURE__*/function (_zi) {
|
|
7357
7364
|
}
|
7358
7365
|
}]);
|
7359
7366
|
}(zi);
|
7360
|
-
var
|
7361
|
-
function
|
7367
|
+
var wi = /*#__PURE__*/function (_zi2) {
|
7368
|
+
function wi(e) {
|
7362
7369
|
var _this25;
|
7363
|
-
_classCallCheck(this,
|
7370
|
+
_classCallCheck(this, wi);
|
7364
7371
|
var o;
|
7365
7372
|
var t = JSON.parse(JSON.stringify(e.directConnection)),
|
7366
7373
|
i = t == null ? void 0 : t.stabilityAI,
|
@@ -7372,13 +7379,13 @@ var Ai = /*#__PURE__*/function (_zi2) {
|
|
7372
7379
|
}
|
7373
7380
|
}
|
7374
7381
|
};
|
7375
|
-
_this25 = _callSuper(this,
|
7382
|
+
_this25 = _callSuper(this, wi, [e, Ce.buildKeyVerificationDetails(), Ce.buildHeaders, i, s]), _this25.url = "https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking", _this25._maskSource = "MASK_IMAGE_WHITE", _this25.textInputPlaceholderText = "Describe image changes", _this25.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Masking</b></div>\n <p>Upload an image, its mask image to create a new one based on the changes you have described for the mask area.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
|
7376
7383
|
var r = (o = t == null ? void 0 : t.stabilityAI) == null ? void 0 : o.imageToImageMasking;
|
7377
|
-
_typeof(r) == "object" && (r.engine_id && (_this25.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/masking")), r.weight !== void 0 && r.weight !== null && (_this25._imageWeight = r.weight), r.mask_source !== void 0 && r.mask_source !== null && (_this25._maskSource = r.mask_source),
|
7384
|
+
_typeof(r) == "object" && (r.engine_id && (_this25.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/masking")), r.weight !== void 0 && r.weight !== null && (_this25._imageWeight = r.weight), r.mask_source !== void 0 && r.mask_source !== null && (_this25._maskSource = r.mask_source), wi.cleanConfig(r), Object.assign(_this25.rawBody, r)), _this25.canSendMessage = wi.canSendFileTextMessage;
|
7378
7385
|
return _this25;
|
7379
7386
|
}
|
7380
|
-
_inherits(
|
7381
|
-
return _createClass(
|
7387
|
+
_inherits(wi, _zi2);
|
7388
|
+
return _createClass(wi, [{
|
7382
7389
|
key: "createFormDataBody",
|
7383
7390
|
value: function createFormDataBody(e, t, i, s) {
|
7384
7391
|
var r = new FormData();
|
@@ -8462,7 +8469,7 @@ var Ve = /*#__PURE__*/function (_K3) {
|
|
8462
8469
|
if (r === "code_interpreter") return Ve.processAttachmentsMessage(s, t, "code_interpreter");
|
8463
8470
|
if (t.find(function (_ref21) {
|
8464
8471
|
var a = _ref21.name;
|
8465
|
-
return !
|
8472
|
+
return !H.isImageFileExtension(a);
|
8466
8473
|
})) console.error("The uploaded files contained a non-image file"), console.error('Make sure only images can be uploaded or define a "code_interpreter" or "file_search" value in the "files_tool_type" property'), console.warn('Make sure your existing assistant supports these "tools" or specify them in the "new_assistant" property');else {
|
8467
8474
|
var _a3 = Ve.processImageMessage(s, t);
|
8468
8475
|
if (_a3) return _a3;
|
@@ -8982,7 +8989,7 @@ var Ve = /*#__PURE__*/function (_K3) {
|
|
8982
8989
|
e.stream = !0;
|
8983
8990
|
this._waitingForStreamResponse = !0;
|
8984
8991
|
_context83.next = 4;
|
8985
|
-
return
|
8992
|
+
return w.request(this, e, this._messages, !0, !0);
|
8986
8993
|
case 4:
|
8987
8994
|
this._messageStream = _context83.sent;
|
8988
8995
|
case 5:
|
@@ -9000,7 +9007,7 @@ var Ve = /*#__PURE__*/function (_K3) {
|
|
9000
9007
|
key: "processImageMessage",
|
9001
9008
|
value: function processImageMessage(e, t) {
|
9002
9009
|
var i = t == null ? void 0 : t.filter(function (s) {
|
9003
|
-
return
|
9010
|
+
return H.isImageFileExtension(s.name);
|
9004
9011
|
}).map(function (s) {
|
9005
9012
|
return {
|
9006
9013
|
type: "image_file",
|
@@ -9110,17 +9117,17 @@ var Mi = /*#__PURE__*/function () {
|
|
9110
9117
|
}
|
9111
9118
|
}]);
|
9112
9119
|
}();
|
9113
|
-
var
|
9114
|
-
function
|
9120
|
+
var As = /*#__PURE__*/function (_K4) {
|
9121
|
+
function As(e, t, i, s, r) {
|
9115
9122
|
var _this35;
|
9116
|
-
_classCallCheck(this,
|
9117
|
-
_this35 = _callSuper(this,
|
9123
|
+
_classCallCheck(this, As);
|
9124
|
+
_this35 = _callSuper(this, As, [e, Mi.buildKeyVerificationDetails(), Mi.buildHeaders, r]), _this35.insertKeyPlaceholderText = "Cohere API Key", _this35.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", _this35.permittedErrorPrefixes = ["invalid"], _this35.url = t, _this35.textInputPlaceholderText = i, s && _typeof(s) == "object" && Object.assign(_this35.rawBody, s);
|
9118
9125
|
return _this35;
|
9119
9126
|
}
|
9120
|
-
_inherits(
|
9121
|
-
return _createClass(
|
9127
|
+
_inherits(As, _K4);
|
9128
|
+
return _createClass(As);
|
9122
9129
|
}(K);
|
9123
|
-
var Xo = /*#__PURE__*/function (
|
9130
|
+
var Xo = /*#__PURE__*/function (_As) {
|
9124
9131
|
function Xo(e) {
|
9125
9132
|
_classCallCheck(this, Xo);
|
9126
9133
|
var s, r, o;
|
@@ -9128,7 +9135,7 @@ var Xo = /*#__PURE__*/function (_ws) {
|
|
9128
9135
|
i = (o = e.directConnection) == null ? void 0 : o.cohere;
|
9129
9136
|
return _callSuper(this, Xo, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
|
9130
9137
|
}
|
9131
|
-
_inherits(Xo,
|
9138
|
+
_inherits(Xo, _As);
|
9132
9139
|
return _createClass(Xo, [{
|
9133
9140
|
key: "preprocessBody",
|
9134
9141
|
value: function preprocessBody(e, t) {
|
@@ -9194,7 +9201,7 @@ var Xo = /*#__PURE__*/function (_ws) {
|
|
9194
9201
|
return extractResultData;
|
9195
9202
|
}()
|
9196
9203
|
}]);
|
9197
|
-
}(
|
9204
|
+
}(As);
|
9198
9205
|
var Is = /*#__PURE__*/function () {
|
9199
9206
|
function Is() {
|
9200
9207
|
_classCallCheck(this, Is);
|
@@ -9270,7 +9277,7 @@ var mt = /*#__PURE__*/function (_Ri2) {
|
|
9270
9277
|
}(Ri);
|
9271
9278
|
mt.THREAD_RESOURCE = "threads", mt.NEW_ASSISTANT_RESOURCE = "assistants";
|
9272
9279
|
var as = mt;
|
9273
|
-
var Yo = /*#__PURE__*/function (
|
9280
|
+
var Yo = /*#__PURE__*/function (_As2) {
|
9274
9281
|
function Yo(e) {
|
9275
9282
|
_classCallCheck(this, Yo);
|
9276
9283
|
var s, r, o;
|
@@ -9278,7 +9285,7 @@ var Yo = /*#__PURE__*/function (_ws2) {
|
|
9278
9285
|
i = (o = e.directConnection) == null ? void 0 : o.cohere;
|
9279
9286
|
return _callSuper(this, Yo, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
|
9280
9287
|
}
|
9281
|
-
_inherits(Yo,
|
9288
|
+
_inherits(Yo, _As2);
|
9282
9289
|
return _createClass(Yo, [{
|
9283
9290
|
key: "preprocessBody",
|
9284
9291
|
value: function preprocessBody(e, t) {
|
@@ -9343,7 +9350,7 @@ var Yo = /*#__PURE__*/function (_ws2) {
|
|
9343
9350
|
return extractResultData;
|
9344
9351
|
}()
|
9345
9352
|
}]);
|
9346
|
-
}(
|
9353
|
+
}(As);
|
9347
9354
|
var N = /*#__PURE__*/function () {
|
9348
9355
|
function N() {
|
9349
9356
|
_classCallCheck(this, N);
|
@@ -10969,19 +10976,19 @@ var Kt = /*#__PURE__*/function () {
|
|
10969
10976
|
}
|
10970
10977
|
}]);
|
10971
10978
|
}();
|
10972
|
-
var
|
10973
|
-
function
|
10979
|
+
var ws = /*#__PURE__*/function (_K9) {
|
10980
|
+
function ws(e) {
|
10974
10981
|
var _this48;
|
10975
|
-
_classCallCheck(this,
|
10982
|
+
_classCallCheck(this, ws);
|
10976
10983
|
var i;
|
10977
10984
|
var t = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
|
10978
|
-
_this48 = _callSuper(this,
|
10985
|
+
_this48 = _callSuper(this, ws, [e, Kt.buildKeyVerificationDetails(), Kt.buildHeaders, t, {
|
10979
10986
|
audio: {}
|
10980
|
-
}]), _this48.insertKeyPlaceholderText = "AssemblyAI API Key", _this48.keyHelpUrl = "https://www.assemblyai.com/app/account", _this48.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>AssemblyAI Audio</b></div>\n <p><b>Upload an audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started\">here</a> for more info.\n </p>", _this48.url = "https://api.assemblyai.com/v2/upload", _this48.isTextInputDisabled = !0, _this48.textInputPlaceholderText = "Upload an audio file", _this48.permittedErrorPrefixes = ["Authentication", "Invalid"], _this48.canSendMessage =
|
10987
|
+
}]), _this48.insertKeyPlaceholderText = "AssemblyAI API Key", _this48.keyHelpUrl = "https://www.assemblyai.com/app/account", _this48.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>AssemblyAI Audio</b></div>\n <p><b>Upload an audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started\">here</a> for more info.\n </p>", _this48.url = "https://api.assemblyai.com/v2/upload", _this48.isTextInputDisabled = !0, _this48.textInputPlaceholderText = "Upload an audio file", _this48.permittedErrorPrefixes = ["Authentication", "Invalid"], _this48.canSendMessage = ws.canFileSendMessage;
|
10981
10988
|
return _this48;
|
10982
10989
|
}
|
10983
|
-
_inherits(
|
10984
|
-
return _createClass(
|
10990
|
+
_inherits(ws, _K9);
|
10991
|
+
return _createClass(ws, [{
|
10985
10992
|
key: "callServiceAPI",
|
10986
10993
|
value: function () {
|
10987
10994
|
var _callServiceAPI13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee104(e, t, i) {
|
@@ -11393,7 +11400,7 @@ var vt = /*#__PURE__*/function (_K10) {
|
|
11393
11400
|
throw new Error("Request settings have not been set up");
|
11394
11401
|
case 2:
|
11395
11402
|
i = this.preprocessBody(this.rawBody, t), s = this.stream;
|
11396
|
-
s && (_typeof(s) != "object" || !s.simulation) || i.stream ? (i.stream = !0,
|
11403
|
+
s && (_typeof(s) != "object" || !s.simulation) || i.stream ? (i.stream = !0, w.request(this, i, e)) : R.request(this, i, e);
|
11397
11404
|
case 4:
|
11398
11405
|
case "end":
|
11399
11406
|
return _context112.stop();
|
@@ -11814,7 +11821,7 @@ var ge = /*#__PURE__*/function (_K11) {
|
|
11814
11821
|
}(K);
|
11815
11822
|
ge.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", ge.IMAGE_VARIATIONS_URL = "https://api.openai.com/v1/images/variations", ge.IMAGE_EDIT_URL = "https://api.openai.com/v1/images/edits";
|
11816
11823
|
var ms = ge;
|
11817
|
-
var ea = /*#__PURE__*/function (
|
11824
|
+
var ea = /*#__PURE__*/function (_As3) {
|
11818
11825
|
function ea(e) {
|
11819
11826
|
var _this57$maxMessages;
|
11820
11827
|
var _this57;
|
@@ -11826,7 +11833,7 @@ var ea = /*#__PURE__*/function (_ws3) {
|
|
11826
11833
|
_this57 = _callSuper(this, ea, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", i, s]), _typeof(i) == "object" && Object.assign(_this57.rawBody, i), (_this57$maxMessages = _this57.maxMessages) !== null && _this57$maxMessages !== void 0 ? _this57$maxMessages : _this57.maxMessages = -1;
|
11827
11834
|
return _this57;
|
11828
11835
|
}
|
11829
|
-
_inherits(ea,
|
11836
|
+
_inherits(ea, _As3);
|
11830
11837
|
return _createClass(ea, [{
|
11831
11838
|
key: "preprocessBody",
|
11832
11839
|
value: function preprocessBody(e, t) {
|
@@ -11896,7 +11903,7 @@ var ea = /*#__PURE__*/function (_ws3) {
|
|
11896
11903
|
return extractResultData;
|
11897
11904
|
}()
|
11898
11905
|
}]);
|
11899
|
-
}(
|
11906
|
+
}(As);
|
11900
11907
|
var Ii = /*#__PURE__*/function () {
|
11901
11908
|
function Ii() {
|
11902
11909
|
_classCallCheck(this, Ii);
|
@@ -12031,7 +12038,7 @@ var ia = /*#__PURE__*/function () {
|
|
12031
12038
|
if (r) return new ni(e);
|
12032
12039
|
if (t) {
|
12033
12040
|
if (t.openAI) return t.openAI.images ? new ms(e) : t.openAI.speechToText ? new hs(e) : t.openAI.textToSpeech ? new ds(e) : t.openAI.assistant ? new xs(e) : t.openAI.realtime ? new cs(e) : new vt(e);
|
12034
|
-
if (t.assemblyAI) return new
|
12041
|
+
if (t.assemblyAI) return new ws(e);
|
12035
12042
|
if (t.cohere) return t.cohere.textGeneration ? new Xo(e) : t.cohere.summarization ? new Yo(e) : new ea(e);
|
12036
12043
|
if (t.huggingFace) return t.huggingFace.textGeneration ? new Go(e) : t.huggingFace.summarization ? new Ko(e) : t.huggingFace.translation ? new $o(e) : t.huggingFace.fillMask ? new Jo(e) : t.huggingFace.questionAnswer ? new Vo(e) : t.huggingFace.audioSpeechRecognition ? new zo(e) : t.huggingFace.audioClassification ? new Ho(e) : t.huggingFace.imageClassification ? new qo(e) : new Wo(e);
|
12037
12044
|
if (t.azure) {
|
@@ -12044,7 +12051,7 @@ var ia = /*#__PURE__*/function () {
|
|
12044
12051
|
if (t.azure.summarization) return new us(e);
|
12045
12052
|
if (t.azure.translation) return new Qo(e);
|
12046
12053
|
}
|
12047
|
-
if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Ti(e) : t.stabilityAI.imageToImageUpscale ? new
|
12054
|
+
if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Ti(e) : t.stabilityAI.imageToImageUpscale ? new Ai(e) : t.stabilityAI.imageToImageMasking ? new wi(e) : new Ci(e);
|
12048
12055
|
if (t.mistral) return new ta(e);
|
12049
12056
|
}
|
12050
12057
|
return i && Object.keys(i).length > 0 && !s ? new rt(e) : new rt(e, void 0, s || !0);
|
@@ -12127,7 +12134,7 @@ var sa = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
|
|
12127
12134
|
key: "createImage",
|
12128
12135
|
value: function createImage(e, t, i) {
|
12129
12136
|
var s = new Image();
|
12130
|
-
return s.src = e.src, i &&
|
12137
|
+
return s.src = e.src, i && H.scrollDownOnImageLoad(s.src, t), H.processContent("image", s, s.src, e.name);
|
12131
12138
|
}
|
12132
12139
|
// WORK - image still does not scroll down when loaded
|
12133
12140
|
}, {
|
@@ -12166,7 +12173,7 @@ var sa = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
|
|
12166
12173
|
var s = Ue.createSVGElement(sa);
|
12167
12174
|
s.classList.add("any-file-message-icon"), i.appendChild(s);
|
12168
12175
|
var r = document.createElement("div");
|
12169
|
-
return r.classList.add("any-file-message-text"), r.textContent = e.name ||
|
12176
|
+
return r.classList.add("any-file-message-text"), r.textContent = e.name || H.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), H.processContent("any", t, e.src, r.textContent);
|
12170
12177
|
}
|
12171
12178
|
}, {
|
12172
12179
|
key: "createNewAnyFileMessage",
|
@@ -12183,7 +12190,7 @@ var sa = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
|
|
12183
12190
|
value: function createMessages(e, t, i) {
|
12184
12191
|
var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
12185
12192
|
return t.map(function (r) {
|
12186
|
-
return r.ref && (r =
|
12193
|
+
return r.ref && (r = H.removeFileRef(r)), H.isAudioFile(r) ? J.createNewAudioMessage(e, r, i, s) : H.isImageFile(r) ? J.createImageMessage(e, r, i, s) : J.createNewAnyFileMessage(e, r, i, s);
|
12187
12194
|
});
|
12188
12195
|
}
|
12189
12196
|
// no overwrite previous message logic as it is complex to track which files are to be overwritten
|
@@ -12193,7 +12200,7 @@ var sa = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
|
|
12193
12200
|
J.createMessages(e, t, i, s).forEach(function (_ref32) {
|
12194
12201
|
var o = _ref32.type,
|
12195
12202
|
a = _ref32.elements;
|
12196
|
-
|
12203
|
+
H.addMessage(e, a, o, i, s);
|
12197
12204
|
});
|
12198
12205
|
}
|
12199
12206
|
}]);
|
@@ -12262,7 +12269,7 @@ var le = /*#__PURE__*/function () {
|
|
12262
12269
|
var f = _ref33.type,
|
12263
12270
|
m = _ref33.elements;
|
12264
12271
|
var g;
|
12265
|
-
|
12272
|
+
H.setElementProps(e, m, f, s), (g = d.parentElement) == null || g.insertBefore(m.outerContainer, d), e.messageElementRefs.splice(e.messageElementRefs.length - 1, 1), e.messageElementRefs.splice(c + p, 0, m);
|
12266
12273
|
}), le.removeFilesMessages(e, t), t[1].files = r.map(function (_ref34) {
|
12267
12274
|
var f = _ref34.elements;
|
12268
12275
|
return f;
|
@@ -12473,7 +12480,7 @@ var de = /*#__PURE__*/function (_he) {
|
|
12473
12480
|
value: function removeMessageOnError() {
|
12474
12481
|
var e = this.messageElementRefs[this.messageElementRefs.length - 1],
|
12475
12482
|
t = e == null ? void 0 : e.bubbleElement;
|
12476
|
-
(t != null && t.classList.contains(
|
12483
|
+
(t != null && t.classList.contains(we.MESSAGE_CLASS) && t.textContent === "" || de.isTemporaryElement(e)) && this.removeLastMessage();
|
12477
12484
|
}
|
12478
12485
|
// prettier-ignore
|
12479
12486
|
}, {
|
@@ -12551,7 +12558,7 @@ var de = /*#__PURE__*/function (_he) {
|
|
12551
12558
|
return _context122.abrupt("return", (this._hiddenAttachments = t, Promise.all((e || []).map(function (i) {
|
12552
12559
|
return new Promise(function (s) {
|
12553
12560
|
if (!i.type || i.type === "any") {
|
12554
|
-
var r = i.file.name ||
|
12561
|
+
var r = i.file.name || H.DEFAULT_FILE_NAME;
|
12555
12562
|
s({
|
12556
12563
|
name: r,
|
12557
12564
|
type: "any",
|
@@ -12619,7 +12626,7 @@ var de = /*#__PURE__*/function (_he) {
|
|
12619
12626
|
}, {
|
12620
12627
|
key: "isActiveElement",
|
12621
12628
|
value: function isActiveElement(e) {
|
12622
|
-
return e ? e.contains(De.BUBBLE_CLASS) || e.contains(Fe.CLASS) || e.contains(
|
12629
|
+
return e ? e.contains(De.BUBBLE_CLASS) || e.contains(Fe.CLASS) || e.contains(we.MESSAGE_CLASS) : !1;
|
12623
12630
|
}
|
12624
12631
|
}]);
|
12625
12632
|
}(he);
|
@@ -13220,13 +13227,13 @@ var mi = {},
|
|
13220
13227
|
St = {},
|
13221
13228
|
_t = {},
|
13222
13229
|
xt = {},
|
13223
|
-
|
13230
|
+
At = {},
|
13224
13231
|
Zs;
|
13225
13232
|
function Vi() {
|
13226
|
-
if (Zs) return
|
13227
|
-
Zs = 1, Object.defineProperty(
|
13233
|
+
if (Zs) return At;
|
13234
|
+
Zs = 1, Object.defineProperty(At, "__esModule", {
|
13228
13235
|
value: !0
|
13229
|
-
}),
|
13236
|
+
}), At.Text = void 0;
|
13230
13237
|
var n = /*#__PURE__*/function () {
|
13231
13238
|
function n() {
|
13232
13239
|
_classCallCheck(this, n);
|
@@ -13255,7 +13262,7 @@ function Vi() {
|
|
13255
13262
|
}
|
13256
13263
|
}]);
|
13257
13264
|
}();
|
13258
|
-
return
|
13265
|
+
return At.Text = n, n.FIRST_CHAR_REGEX = /\S/, n.DOUBLE_LINE = /\n\n/g, n.ONE_LINE = /\n/g, At;
|
13259
13266
|
}
|
13260
13267
|
var Qs;
|
13261
13268
|
function Dn() {
|
@@ -13323,19 +13330,19 @@ function fa() {
|
|
13323
13330
|
}();
|
13324
13331
|
return _t.WebSpeechTranscript = e, _t;
|
13325
13332
|
}
|
13326
|
-
var
|
13333
|
+
var wt = {},
|
13327
13334
|
tn;
|
13328
13335
|
function Rs() {
|
13329
|
-
if (tn) return
|
13330
|
-
tn = 1, Object.defineProperty(
|
13336
|
+
if (tn) return wt;
|
13337
|
+
tn = 1, Object.defineProperty(wt, "__esModule", {
|
13331
13338
|
value: !0
|
13332
|
-
}),
|
13339
|
+
}), wt.Browser = void 0;
|
13333
13340
|
var n = /*#__PURE__*/_createClass(function n() {
|
13334
13341
|
_classCallCheck(this, n);
|
13335
13342
|
});
|
13336
|
-
return
|
13343
|
+
return wt.Browser = n, n.IS_SAFARI = function () {
|
13337
13344
|
return n._IS_SAFARI === void 0 && (n._IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), n._IS_SAFARI;
|
13338
|
-
},
|
13345
|
+
}, wt;
|
13339
13346
|
}
|
13340
13347
|
var Tt = {},
|
13341
13348
|
Ct = {},
|
@@ -14205,7 +14212,7 @@ function xa() {
|
|
14205
14212
|
}
|
14206
14213
|
var Ht = {},
|
14207
14214
|
vn;
|
14208
|
-
function
|
14215
|
+
function Aa() {
|
14209
14216
|
if (vn) return Ht;
|
14210
14217
|
vn = 1, Object.defineProperty(Ht, "__esModule", {
|
14211
14218
|
value: !0
|
@@ -14225,7 +14232,7 @@ function wa() {
|
|
14225
14232
|
}
|
14226
14233
|
var qt = {},
|
14227
14234
|
yn;
|
14228
|
-
function
|
14235
|
+
function wa() {
|
14229
14236
|
if (yn) return qt;
|
14230
14237
|
yn = 1, Object.defineProperty(qt, "__esModule", {
|
14231
14238
|
value: !0
|
@@ -14263,8 +14270,8 @@ function Ta() {
|
|
14263
14270
|
var n = Ea(),
|
14264
14271
|
e = _a(),
|
14265
14272
|
t = xa(),
|
14266
|
-
i =
|
14267
|
-
s =
|
14273
|
+
i = Aa(),
|
14274
|
+
s = wa(),
|
14268
14275
|
r = Un();
|
14269
14276
|
var o = /*#__PURE__*/function (_r$Speech) {
|
14270
14277
|
function o() {
|
@@ -15316,7 +15323,7 @@ var $e = /*#__PURE__*/function () {
|
|
15316
15323
|
value: function validateWebsocket(e, t) {
|
15317
15324
|
var i = e.websocket,
|
15318
15325
|
s = e.connectSettings;
|
15319
|
-
return i && s.url !== ye.URL && !
|
15326
|
+
return i && s.url !== ye.URL && !q.canSendMessage(i) ? (t.changeToDisabledIcon(), !1) : !0;
|
15320
15327
|
}
|
15321
15328
|
// prettier-ignore
|
15322
15329
|
}, {
|
@@ -16022,7 +16029,7 @@ var Ls = /*#__PURE__*/function () {
|
|
16022
16029
|
var s = document.createElement("div");
|
16023
16030
|
s.id = "chat-view";
|
16024
16031
|
var r = new de(e, t, i);
|
16025
|
-
t.websocket &&
|
16032
|
+
t.websocket && q.createConnection(t, r);
|
16026
16033
|
var o = new ht(e, r, t, s);
|
16027
16034
|
return V.addElements(s, r.elementRef, o.elementRef), s;
|
16028
16035
|
}
|
@@ -16036,7 +16043,7 @@ var Ls = /*#__PURE__*/function () {
|
|
16036
16043
|
}();
|
16037
16044
|
var Fa = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#loading-validate-key-property{display:inline-block;width:50px;height:50px}#loading-validate-key-property:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:loading-spinner 1.4s linear infinite}#deep-chat-openai-realtime-container{height:100%;width:100%}#deep-chat-openai-realtime-avatar-container{height:60%;width:100%;display:flex;justify-content:center;align-items:center}#deep-chat-openai-realtime-avatar{border-radius:50%;height:110px;border:1px solid rgb(215,215,215);padding:8px;-webkit-user-select:none;user-select:none;margin-top:20px}#deep-chat-openai-realtime-buttons-container{height:40%;display:flex;position:relative}.deep-chat-openai-realtime-button-container{height:100%;width:50%;display:flex;justify-content:center;align-items:center}.deep-chat-openai-realtime-button{width:70px;height:70px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer}.deep-chat-openai-realtime-button-default{background-color:#e3e3e3}.deep-chat-openai-realtime-button-default:hover{background-color:#d4d4d4}.deep-chat-openai-realtime-button-default:active{background-color:#c5c5c5}.deep-chat-openai-realtime-button-loading{opacity:.7;pointer-events:none}.deep-chat-openai-realtime-microphone-active{background-color:#ffe7e7}.deep-chat-openai-realtime-microphone-active:hover{background-color:#ffdede}.deep-chat-openai-realtime-microphone-active:active{background-color:#ffd2d2}.deep-chat-openai-realtime-microphone>*{height:30px;width:30px}.deep-chat-openai-realtime-microphone-active>*{filter:brightness(0) saturate(100%) invert(35%) sepia(60%) saturate(1360%) hue-rotate(325deg) brightness(95%) contrast(92%)}.deep-chat-openai-realtime-toggle>*{height:32px;width:32px;padding-left:3px;filter:brightness(0) saturate(100%) invert(22%) sepia(0%) saturate(4537%) hue-rotate(208deg) brightness(105%) contrast(91%)}.deep-chat-openai-realtime-button-unavailable{opacity:.45;pointer-events:none}#deep-chat-openai-realtime-error{color:red;position:absolute;top:calc(50% + 40px);left:50%;transform:translate(-50%,-50%);font-size:17px}#deep-chat-openai-realtime-loading{position:absolute;font-size:15px;top:50%;left:50%;transform:translate(-50%,-50%)}#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-key{display:inline-block;width:16px;height:16px}#loading-key: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-spinner 1.2s linear infinite}#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}@keyframes loading-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.deep-chat-last-group-messages-active{height:100%}.loading-history-message-full-view{position:absolute;height:70%;width:100%;display:flex;align-items:center}.loading-history-message-small{height:20px;margin-bottom:30px}.loading-history-message-small>div>div{scale:.6}.loading-history-message{margin-top:0;width:100%;max-width:100%;display:flex;justify-content:center;background-color:unset}.loading-history{width:70px}.loading-history div{position:absolute;width:var(--loading-history-width);height:var(--loading-history-height);margin:var(--loading-history-margin);border:var(--loading-history-border);border-radius:50%;animation:loading-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--loading-history-color) transparent transparent transparent}.loading-history div:nth-child(1){animation-delay:-.45s}.loading-history div:nth-child(2){animation-delay:-.3s}.loading-history div:nth-child(3){animation-delay:-.15s}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.deep-chat-loading-message-dots-container{width:1em;padding:.6em .75em .6em 1.3em}.loading-message-dots{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite linear alternate;animation-delay:.5s}.loading-message-dots:before,.loading-message-dots:after{content:\"\";display:inline-block;position:absolute;top:0}.loading-message-dots:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:0s}.loading-message-dots:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:1s}@keyframes loading-message-dots{0%{background-color:var(--loading-message-color)}50%,to{background-color:var(--loading-message-color-fade)}}.message-bubble>p:first-child,.message-bubble>.partial-render-message>p:first-child,.stream-wrapper>p:first-child{margin-top:0}.message-bubble>p:last-child,.message-bubble>.partial-render-message:last-child>p,.stream-wrapper>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{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}.role-hidden{display:none}.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:3}.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:2;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}.loading-submit-button{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:loading-submit-button 1.5s infinite linear;bottom:-.75em}@keyframes loading-submit-button{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}}.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-svg-text{padding:1px;height:1.65em;display:flex}.input-button-svg-text>svg{padding:.22rem}.input-button-svg-text>div{margin-left:2px}.input-button:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.input-button:active:not(:hover){background-color:transparent}.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;width:max-content}#custom-icon{height:100%;width:1.2em}.custom-button-container-default{color:#505050}.custom-button-container-default>.dropup-menu-item-icon{color:unset}.custom-button-container-default>svg{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%)}.custom-button-container-default>.dropup-menu-item-icon>svg{position:absolute;left:.2em}.custom-button-container-active{background-color:#edf7ff;color:#0285ff}.custom-button-container-active:hover,.custom-button-container-active:focus-visible{background-color:#def0ff}.custom-button-container-active:active{background-color:#d2eaff}.custom-button-container-active>svg{filter:brightness(0) saturate(100%) invert(32%) sepia(34%) saturate(4196%) hue-rotate(196deg) brightness(107%) contrast(104%)}.custom-button-container-disabled{color:#aeaeae;cursor:auto}.custom-button-container-disabled>div{pointer-events:none}.custom-button-container-disabled:hover,.custom-button-container-disabled:focus-visible{background-color:transparent}.custom-button-container-disabled:active{background-color:transparent}.custom-button-container-disabled>svg{filter:brightness(0) saturate(100%) invert(67%) sepia(0%) saturate(818%) hue-rotate(28deg) brightness(102%) contrast(100%)}#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}[contenteditable]:empty:before{content:attr(deep-chat-placeholder-text);pointer-events:none}[contenteditable][textcolor]:empty:before{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-button>*{pointer-events:none}#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:hover,.dropup-menu-item:focus-visible{background-color:#f3f3f3}.dropup-menu-item:active{background-color:#ebebeb}.dropup-menu-item:active:not(:hover){background-color:transparent}.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}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}#dropup-menu-item-icon-element-custom{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.28em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%)}.dropup-menu-item-text{margin-left:.56em;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}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
|
16038
16045
|
var Ua = Object.defineProperty,
|
16039
|
-
|
16046
|
+
A = function A(n, e, t, i) {
|
16040
16047
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);
|
16041
16048
|
return s && Ua(e, t, s), s;
|
16042
16049
|
};
|
@@ -16079,48 +16086,48 @@ var _ = /*#__PURE__*/function (_rs) {
|
|
16079
16086
|
}
|
16080
16087
|
}]);
|
16081
16088
|
}(rs);
|
16082
|
-
|
16083
|
-
|
16084
|
-
|
16085
|
-
|
16086
|
-
|
16087
|
-
|
16088
|
-
|
16089
|
-
|
16090
|
-
|
16091
|
-
|
16092
|
-
|
16093
|
-
|
16094
|
-
|
16095
|
-
|
16096
|
-
|
16097
|
-
|
16098
|
-
|
16099
|
-
|
16100
|
-
|
16101
|
-
|
16102
|
-
|
16103
|
-
|
16104
|
-
|
16105
|
-
|
16106
|
-
|
16107
|
-
|
16108
|
-
|
16109
|
-
|
16110
|
-
|
16111
|
-
|
16112
|
-
|
16113
|
-
|
16114
|
-
|
16115
|
-
|
16116
|
-
|
16117
|
-
|
16118
|
-
|
16119
|
-
|
16120
|
-
|
16121
|
-
|
16122
|
-
|
16123
|
-
|
16124
|
-
|
16089
|
+
A([x("object")], _.prototype, "connect");
|
16090
|
+
A([x("object")], _.prototype, "directConnection");
|
16091
|
+
A([x("object")], _.prototype, "webModel");
|
16092
|
+
A([x("object")], _.prototype, "requestBodyLimits");
|
16093
|
+
A([x("function")], _.prototype, "requestInterceptor");
|
16094
|
+
A([x("function")], _.prototype, "responseInterceptor");
|
16095
|
+
A([x("function")], _.prototype, "validateInput");
|
16096
|
+
A([x("function")], _.prototype, "loadHistory");
|
16097
|
+
A([x("object")], _.prototype, "chatStyle");
|
16098
|
+
A([x("object")], _.prototype, "attachmentContainerStyle");
|
16099
|
+
A([x("object")], _.prototype, "dropupStyles");
|
16100
|
+
A([x("object")], _.prototype, "inputAreaStyle");
|
16101
|
+
A([x("object")], _.prototype, "textInput");
|
16102
|
+
A([x("object")], _.prototype, "submitButtonStyles");
|
16103
|
+
A([x("object")], _.prototype, "customButtons");
|
16104
|
+
A([x("string")], _.prototype, "auxiliaryStyle");
|
16105
|
+
A([x("array")], _.prototype, "history");
|
16106
|
+
A([x("object")], _.prototype, "introMessage");
|
16107
|
+
A([x("object")], _.prototype, "avatars");
|
16108
|
+
A([x("object")], _.prototype, "names");
|
16109
|
+
A([x("object")], _.prototype, "displayLoadingBubble");
|
16110
|
+
A([x("object")], _.prototype, "errorMessages");
|
16111
|
+
A([x("object")], _.prototype, "messageStyles");
|
16112
|
+
A([x("object")], _.prototype, "textToSpeech");
|
16113
|
+
A([x("object")], _.prototype, "speechToText");
|
16114
|
+
A([x("object")], _.prototype, "images");
|
16115
|
+
A([x("object")], _.prototype, "gifs");
|
16116
|
+
A([x("object")], _.prototype, "camera");
|
16117
|
+
A([x("object")], _.prototype, "audio");
|
16118
|
+
A([x("object")], _.prototype, "microphone");
|
16119
|
+
A([x("object")], _.prototype, "mixedFiles");
|
16120
|
+
A([x("object")], _.prototype, "dragAndDrop");
|
16121
|
+
A([x("object")], _.prototype, "introPanelStyle");
|
16122
|
+
A([x("object")], _.prototype, "htmlClassUtilities");
|
16123
|
+
A([x("object")], _.prototype, "remarkable");
|
16124
|
+
A([x("object")], _.prototype, "focusMode");
|
16125
|
+
A([x("function")], _.prototype, "onMessage");
|
16126
|
+
A([x("function")], _.prototype, "onClearMessages");
|
16127
|
+
A([x("function")], _.prototype, "onComponentRender");
|
16128
|
+
A([x("function")], _.prototype, "onInput");
|
16129
|
+
A([x("function")], _.prototype, "onError");
|
16130
|
+
A([x("object")], _.prototype, "demo");
|
16131
|
+
A([x("object")], _.prototype, "_insertKeyViewStyles");
|
16125
16132
|
customElements.define("deep-chat", _);
|
16126
16133
|
export { _ as DeepChat };
|