deep-chat-dev 9.0.258 → 9.0.259
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 +8023 -8023
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +132 -132
- package/dist/icons/captureIcon.d.ts +1 -1
- package/dist/icons/captureIcon.d.ts.map +1 -1
- package/dist/icons/mixedFilesIcon.d.ts +1 -1
- package/dist/icons/mixedFilesIcon.d.ts.map +1 -1
- package/dist/icons/playIcon.d.ts +1 -1
- package/dist/icons/playIcon.d.ts.map +1 -1
- package/dist/icons/stopIcon.d.ts +1 -1
- package/dist/icons/stopIcon.d.ts.map +1 -1
- package/dist/services/openAI/realtime/openAIRealtimeIO.d.ts +4 -4
- package/dist/services/openAI/realtime/openAIRealtimeIO.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/deepChat.js
CHANGED
@@ -1057,17 +1057,17 @@ function ir(n) {
|
|
1057
1057
|
function ee(n) {
|
1058
1058
|
return Qn.test(n) ? n.replace(er, ir) : n;
|
1059
1059
|
}
|
1060
|
-
var
|
1061
|
-
|
1060
|
+
var v = {};
|
1061
|
+
v.blockquote_open = function () {
|
1062
1062
|
return "<blockquote>\n";
|
1063
1063
|
};
|
1064
|
-
|
1064
|
+
v.blockquote_close = function (n, e) {
|
1065
1065
|
return "</blockquote>" + rt(n, e);
|
1066
1066
|
};
|
1067
|
-
|
1067
|
+
v.code = function (n, e) {
|
1068
1068
|
return n[e].block ? "<pre><code>" + ee(n[e].content) + "</code></pre>" + rt(n, e) : "<code>" + ee(n[e].content) + "</code>";
|
1069
1069
|
};
|
1070
|
-
|
1070
|
+
v.fence = function (n, e, t, i, s) {
|
1071
1071
|
var r = n[e],
|
1072
1072
|
o = "",
|
1073
1073
|
a = t.langPrefix,
|
@@ -1081,203 +1081,203 @@ b.fence = function (n, e, t, i, s) {
|
|
1081
1081
|
}
|
1082
1082
|
return t.highlight ? u = t.highlight.apply(t.highlight, [r.content].concat(c)) || ee(r.content) : u = ee(r.content), "<pre><code" + o + ">" + u + "</code></pre>" + rt(n, e);
|
1083
1083
|
};
|
1084
|
-
|
1085
|
-
|
1084
|
+
v.fence_custom = {};
|
1085
|
+
v.heading_open = function (n, e) {
|
1086
1086
|
return "<h" + n[e].hLevel + ">";
|
1087
1087
|
};
|
1088
|
-
|
1088
|
+
v.heading_close = function (n, e) {
|
1089
1089
|
return "</h" + n[e].hLevel + ">\n";
|
1090
1090
|
};
|
1091
|
-
|
1091
|
+
v.hr = function (n, e, t) {
|
1092
1092
|
return (t.xhtmlOut ? "<hr />" : "<hr>") + rt(n, e);
|
1093
1093
|
};
|
1094
|
-
|
1094
|
+
v.bullet_list_open = function () {
|
1095
1095
|
return "<ul>\n";
|
1096
1096
|
};
|
1097
|
-
|
1097
|
+
v.bullet_list_close = function (n, e) {
|
1098
1098
|
return "</ul>" + rt(n, e);
|
1099
1099
|
};
|
1100
|
-
|
1100
|
+
v.list_item_open = function () {
|
1101
1101
|
return "<li>";
|
1102
1102
|
};
|
1103
|
-
|
1103
|
+
v.list_item_close = function () {
|
1104
1104
|
return "</li>\n";
|
1105
1105
|
};
|
1106
|
-
|
1106
|
+
v.ordered_list_open = function (n, e) {
|
1107
1107
|
var t = n[e],
|
1108
1108
|
i = t.order > 1 ? ' start="' + t.order + '"' : "";
|
1109
1109
|
return "<ol" + i + ">\n";
|
1110
1110
|
};
|
1111
|
-
|
1111
|
+
v.ordered_list_close = function (n, e) {
|
1112
1112
|
return "</ol>" + rt(n, e);
|
1113
1113
|
};
|
1114
|
-
|
1114
|
+
v.paragraph_open = function (n, e) {
|
1115
1115
|
return n[e].tight ? "" : "<p>";
|
1116
1116
|
};
|
1117
|
-
|
1117
|
+
v.paragraph_close = function (n, e) {
|
1118
1118
|
var t = !(n[e].tight && e && n[e - 1].type === "inline" && !n[e - 1].content);
|
1119
1119
|
return (n[e].tight ? "" : "</p>") + (t ? rt(n, e) : "");
|
1120
1120
|
};
|
1121
|
-
|
1121
|
+
v.link_open = function (n, e, t) {
|
1122
1122
|
var i = n[e].title ? ' title="' + ee(st(n[e].title)) + '"' : "",
|
1123
1123
|
s = t.linkTarget ? ' target="' + t.linkTarget + '"' : "";
|
1124
1124
|
return '<a href="' + ee(n[e].href) + '"' + i + s + ">";
|
1125
1125
|
};
|
1126
|
-
|
1126
|
+
v.link_close = function () {
|
1127
1127
|
return "</a>";
|
1128
1128
|
};
|
1129
|
-
|
1129
|
+
v.image = function (n, e, t) {
|
1130
1130
|
var i = ' src="' + ee(n[e].src) + '"',
|
1131
1131
|
s = n[e].title ? ' title="' + ee(st(n[e].title)) + '"' : "",
|
1132
1132
|
r = ' alt="' + (n[e].alt ? ee(st(Qt(n[e].alt))) : "") + '"',
|
1133
1133
|
o = t.xhtmlOut ? " /" : "";
|
1134
1134
|
return "<img" + i + r + s + o + ">";
|
1135
1135
|
};
|
1136
|
-
|
1136
|
+
v.table_open = function () {
|
1137
1137
|
return "<table>\n";
|
1138
1138
|
};
|
1139
|
-
|
1139
|
+
v.table_close = function () {
|
1140
1140
|
return "</table>\n";
|
1141
1141
|
};
|
1142
|
-
|
1142
|
+
v.thead_open = function () {
|
1143
1143
|
return "<thead>\n";
|
1144
1144
|
};
|
1145
|
-
|
1145
|
+
v.thead_close = function () {
|
1146
1146
|
return "</thead>\n";
|
1147
1147
|
};
|
1148
|
-
|
1148
|
+
v.tbody_open = function () {
|
1149
1149
|
return "<tbody>\n";
|
1150
1150
|
};
|
1151
|
-
|
1151
|
+
v.tbody_close = function () {
|
1152
1152
|
return "</tbody>\n";
|
1153
1153
|
};
|
1154
|
-
|
1154
|
+
v.tr_open = function () {
|
1155
1155
|
return "<tr>";
|
1156
1156
|
};
|
1157
|
-
|
1157
|
+
v.tr_close = function () {
|
1158
1158
|
return "</tr>\n";
|
1159
1159
|
};
|
1160
|
-
|
1160
|
+
v.th_open = function (n, e) {
|
1161
1161
|
var t = n[e];
|
1162
1162
|
return "<th" + (t.align ? ' style="text-align:' + t.align + '"' : "") + ">";
|
1163
1163
|
};
|
1164
|
-
|
1164
|
+
v.th_close = function () {
|
1165
1165
|
return "</th>";
|
1166
1166
|
};
|
1167
|
-
|
1167
|
+
v.td_open = function (n, e) {
|
1168
1168
|
var t = n[e];
|
1169
1169
|
return "<td" + (t.align ? ' style="text-align:' + t.align + '"' : "") + ">";
|
1170
1170
|
};
|
1171
|
-
|
1171
|
+
v.td_close = function () {
|
1172
1172
|
return "</td>";
|
1173
1173
|
};
|
1174
|
-
|
1174
|
+
v.strong_open = function () {
|
1175
1175
|
return "<strong>";
|
1176
1176
|
};
|
1177
|
-
|
1177
|
+
v.strong_close = function () {
|
1178
1178
|
return "</strong>";
|
1179
1179
|
};
|
1180
|
-
|
1180
|
+
v.em_open = function () {
|
1181
1181
|
return "<em>";
|
1182
1182
|
};
|
1183
|
-
|
1183
|
+
v.em_close = function () {
|
1184
1184
|
return "</em>";
|
1185
1185
|
};
|
1186
|
-
|
1186
|
+
v.del_open = function () {
|
1187
1187
|
return "<del>";
|
1188
1188
|
};
|
1189
|
-
|
1189
|
+
v.del_close = function () {
|
1190
1190
|
return "</del>";
|
1191
1191
|
};
|
1192
|
-
|
1192
|
+
v.ins_open = function () {
|
1193
1193
|
return "<ins>";
|
1194
1194
|
};
|
1195
|
-
|
1195
|
+
v.ins_close = function () {
|
1196
1196
|
return "</ins>";
|
1197
1197
|
};
|
1198
|
-
|
1198
|
+
v.mark_open = function () {
|
1199
1199
|
return "<mark>";
|
1200
1200
|
};
|
1201
|
-
|
1201
|
+
v.mark_close = function () {
|
1202
1202
|
return "</mark>";
|
1203
1203
|
};
|
1204
|
-
|
1204
|
+
v.sub = function (n, e) {
|
1205
1205
|
return "<sub>" + ee(n[e].content) + "</sub>";
|
1206
1206
|
};
|
1207
|
-
|
1207
|
+
v.sup = function (n, e) {
|
1208
1208
|
return "<sup>" + ee(n[e].content) + "</sup>";
|
1209
1209
|
};
|
1210
|
-
|
1210
|
+
v.hardbreak = function (n, e, t) {
|
1211
1211
|
return t.xhtmlOut ? "<br />\n" : "<br>\n";
|
1212
1212
|
};
|
1213
|
-
|
1213
|
+
v.softbreak = function (n, e, t) {
|
1214
1214
|
return t.breaks ? t.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
|
1215
1215
|
};
|
1216
|
-
|
1216
|
+
v.text = function (n, e) {
|
1217
1217
|
return ee(n[e].content);
|
1218
1218
|
};
|
1219
|
-
|
1219
|
+
v.htmlblock = function (n, e) {
|
1220
1220
|
return n[e].content;
|
1221
1221
|
};
|
1222
|
-
|
1222
|
+
v.htmltag = function (n, e) {
|
1223
1223
|
return n[e].content;
|
1224
1224
|
};
|
1225
|
-
|
1225
|
+
v.abbr_open = function (n, e) {
|
1226
1226
|
return '<abbr title="' + ee(st(n[e].title)) + '">';
|
1227
1227
|
};
|
1228
|
-
|
1228
|
+
v.abbr_close = function () {
|
1229
1229
|
return "</abbr>";
|
1230
1230
|
};
|
1231
|
-
|
1231
|
+
v.footnote_ref = function (n, e) {
|
1232
1232
|
var t = Number(n[e].id + 1).toString(),
|
1233
1233
|
i = "fnref" + t;
|
1234
1234
|
return n[e].subId > 0 && (i += ":" + n[e].subId), '<sup class="footnote-ref"><a href="#fn' + t + '" id="' + i + '">[' + t + "]</a></sup>";
|
1235
1235
|
};
|
1236
|
-
|
1236
|
+
v.footnote_block_open = function (n, e, t) {
|
1237
1237
|
var i = t.xhtmlOut ? "<hr class=\"footnotes-sep\" />\n" : "<hr class=\"footnotes-sep\">\n";
|
1238
1238
|
return i + "<section class=\"footnotes\">\n<ol class=\"footnotes-list\">\n";
|
1239
1239
|
};
|
1240
|
-
|
1240
|
+
v.footnote_block_close = function () {
|
1241
1241
|
return "</ol>\n</section>\n";
|
1242
1242
|
};
|
1243
|
-
|
1243
|
+
v.footnote_open = function (n, e) {
|
1244
1244
|
var t = Number(n[e].id + 1).toString();
|
1245
1245
|
return '<li id="fn' + t + '" class="footnote-item">';
|
1246
1246
|
};
|
1247
|
-
|
1247
|
+
v.footnote_close = function () {
|
1248
1248
|
return "</li>\n";
|
1249
1249
|
};
|
1250
|
-
|
1250
|
+
v.footnote_anchor = function (n, e) {
|
1251
1251
|
var t = Number(n[e].id + 1).toString(),
|
1252
1252
|
i = "fnref" + t;
|
1253
1253
|
return n[e].subId > 0 && (i += ":" + n[e].subId), ' <a href="#' + i + '" class="footnote-backref">↩</a>';
|
1254
1254
|
};
|
1255
|
-
|
1255
|
+
v.dl_open = function () {
|
1256
1256
|
return "<dl>\n";
|
1257
1257
|
};
|
1258
|
-
|
1258
|
+
v.dt_open = function () {
|
1259
1259
|
return "<dt>";
|
1260
1260
|
};
|
1261
|
-
|
1261
|
+
v.dd_open = function () {
|
1262
1262
|
return "<dd>";
|
1263
1263
|
};
|
1264
|
-
|
1264
|
+
v.dl_close = function () {
|
1265
1265
|
return "</dl>\n";
|
1266
1266
|
};
|
1267
|
-
|
1267
|
+
v.dt_close = function () {
|
1268
1268
|
return "</dt>\n";
|
1269
1269
|
};
|
1270
|
-
|
1270
|
+
v.dd_close = function () {
|
1271
1271
|
return "</dd>\n";
|
1272
1272
|
};
|
1273
1273
|
function xn(n, e) {
|
1274
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 ? xn(n, e + 2) : e;
|
1275
1275
|
}
|
1276
|
-
var rt =
|
1276
|
+
var rt = v.getBreak = function (e, t) {
|
1277
1277
|
return t = xn(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
|
1278
1278
|
};
|
1279
1279
|
function vs() {
|
1280
|
-
this.rules = Sn({},
|
1280
|
+
this.rules = Sn({}, v), this.getBreak = v.getBreak;
|
1281
1281
|
}
|
1282
1282
|
vs.prototype.renderInline = function (n, e, t) {
|
1283
1283
|
for (var i = this.rules, s = n.length, r = 0, o = ""; s--;) o += i[n[r].type](n, r++, e, t, this);
|
@@ -1650,24 +1650,24 @@ function ct(n, e, t) {
|
|
1650
1650
|
return n.substr(0, e) + t + n.substr(e + 1);
|
1651
1651
|
}
|
1652
1652
|
function vr(n) {
|
1653
|
-
var e, t, i, s, r, o, a, l, c, d, u, h, f, m, p, g,
|
1653
|
+
var e, t, i, s, r, o, a, l, c, d, u, h, f, m, p, g, b;
|
1654
1654
|
if (n.options.typographer) {
|
1655
|
-
for (
|
1656
|
-
for (g = n.tokens[p].children,
|
1657
|
-
for (a = g[e].level, f =
|
1658
|
-
|
1655
|
+
for (b = [], p = n.tokens.length - 1; p >= 0; p--) if (n.tokens[p].type === "inline") {
|
1656
|
+
for (g = n.tokens[p].children, b.length = 0, e = 0; e < g.length; e++) if (t = g[e], !(t.type !== "text" || gr.test(t.text))) {
|
1657
|
+
for (a = g[e].level, f = b.length - 1; f >= 0 && !(b[f].level <= a); f--);
|
1658
|
+
b.length = f + 1, i = t.content, r = 0, o = i.length;
|
1659
1659
|
e: for (; r < o && (Bs.lastIndex = r, s = Bs.exec(i), !!s);) {
|
1660
1660
|
if (l = !Us(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !Us(i, r), !c && !l) {
|
1661
1661
|
m && (t.content = ct(t.content, s.index, Fs));
|
1662
1662
|
continue;
|
1663
1663
|
}
|
1664
1664
|
if (u = !c, h = !l, h) {
|
1665
|
-
for (f =
|
1666
|
-
d =
|
1665
|
+
for (f = b.length - 1; f >= 0 && (d = b[f], !(b[f].level < a)); f--) if (d.single === m && b[f].level === a) {
|
1666
|
+
d = b[f], m ? (g[d.token].content = ct(g[d.token].content, d.pos, n.options.quotes[2]), t.content = ct(t.content, s.index, n.options.quotes[3])) : (g[d.token].content = ct(g[d.token].content, d.pos, n.options.quotes[0]), t.content = ct(t.content, s.index, n.options.quotes[1])), b.length = f;
|
1667
1667
|
continue e;
|
1668
1668
|
}
|
1669
1669
|
}
|
1670
|
-
u ?
|
1670
|
+
u ? b.push({
|
1671
1671
|
token: e,
|
1672
1672
|
pos: s.index,
|
1673
1673
|
single: m,
|
@@ -1869,7 +1869,7 @@ function wr(n, e, t, i) {
|
|
1869
1869
|
m,
|
1870
1870
|
p,
|
1871
1871
|
g,
|
1872
|
-
|
1872
|
+
b,
|
1873
1873
|
M,
|
1874
1874
|
Y,
|
1875
1875
|
je,
|
@@ -1891,14 +1891,14 @@ function wr(n, e, t, i) {
|
|
1891
1891
|
type: "bullet_list_open",
|
1892
1892
|
lines: je = [e, 0],
|
1893
1893
|
level: n.level++
|
1894
|
-
}), s = e, Y = !1, ye = n.parser.ruler.getRules("list"); s < t && (
|
1894
|
+
}), s = e, Y = !1, ye = n.parser.ruler.getRules("list"); s < t && (b = n.skipSpaces(u), h = n.eMarks[s], b >= h ? f = 1 : f = b - u, f > 4 && (f = 1), f < 1 && (f = 1), r = u - n.bMarks[s] + f, n.tokens.push({
|
1895
1895
|
type: "list_item_open",
|
1896
1896
|
lines: ae = [e, 0],
|
1897
1897
|
level: n.level++
|
1898
|
-
}), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] =
|
1898
|
+
}), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] = b - n.bMarks[e], n.blkIndent = r, n.tight = !0, n.parentType = "list", n.parser.tokenize(n, e, t, !0), (!n.tight || Y) && (Ce = !1), Y = n.line - e > 1 && n.isEmpty(n.line - 1), n.blkIndent = a, n.tShift[e] = o, n.tight = l, n.parentType = c, n.tokens.push({
|
1899
1899
|
type: "list_item_close",
|
1900
1900
|
level: --n.level
|
1901
|
-
}), s = e = n.line, ae[1] = s,
|
1901
|
+
}), s = e = n.line, ae[1] = s, b = n.bMarks[e], !(s >= t || n.isEmpty(s) || n.tShift[s] < n.blkIndent));) {
|
1902
1902
|
for (Ki = !1, ie = 0, Is = ye.length; ie < Is; ie++) if (ye[ie](n, s, t, !0)) {
|
1903
1903
|
Ki = !0;
|
1904
1904
|
break;
|
@@ -2117,7 +2117,7 @@ function Or(n, e) {
|
|
2117
2117
|
for (t = e + 2, i = n.tokens.length - 2; t < i; t++) n.tokens[t].level === s && n.tokens[t].type === "paragraph_open" && (n.tokens[t + 2].tight = !0, n.tokens[t].tight = !0, t += 2);
|
2118
2118
|
}
|
2119
2119
|
function Pr(n, e, t, i) {
|
2120
|
-
var s, r, o, a, l, c, d, u, h, f, m, p, g,
|
2120
|
+
var s, r, o, a, l, c, d, u, h, f, m, p, g, b;
|
2121
2121
|
if (i) return n.ddIndent < 0 ? !1 : ui(n, e) >= 0;
|
2122
2122
|
if (d = e + 1, n.isEmpty(d) && ++d > t || n.tShift[d] < n.blkIndent || (s = ui(n, d), s < 0) || n.level >= n.options.maxNesting) return !1;
|
2123
2123
|
c = n.tokens.length, n.tokens.push({
|
@@ -2126,7 +2126,7 @@ function Pr(n, e, t, i) {
|
|
2126
2126
|
level: n.level++
|
2127
2127
|
}), o = e, r = d;
|
2128
2128
|
e: for (;;) {
|
2129
|
-
for (
|
2129
|
+
for (b = !0, g = !1, n.tokens.push({
|
2130
2130
|
type: "dt_open",
|
2131
2131
|
lines: [o, o],
|
2132
2132
|
level: n.level++
|
@@ -2144,7 +2144,7 @@ function Pr(n, e, t, i) {
|
|
2144
2144
|
type: "dd_open",
|
2145
2145
|
lines: a = [d, 0],
|
2146
2146
|
level: n.level++
|
2147
|
-
}), p = n.tight, h = n.ddIndent, u = n.blkIndent, m = n.tShift[r], f = n.parentType, n.blkIndent = n.ddIndent = n.tShift[r] + 2, n.tShift[r] = s - n.bMarks[r], n.tight = !0, n.parentType = "deflist", n.parser.tokenize(n, r, t, !0), (!n.tight || g) && (
|
2147
|
+
}), p = n.tight, h = n.ddIndent, u = n.blkIndent, m = n.tShift[r], f = n.parentType, n.blkIndent = n.ddIndent = n.tShift[r] + 2, n.tShift[r] = s - n.bMarks[r], n.tight = !0, n.parentType = "deflist", n.parser.tokenize(n, r, t, !0), (!n.tight || g) && (b = !1), g = n.line - r > 1 && n.isEmpty(n.line - 1), n.tShift[r] = m, n.tight = p, n.parentType = f, n.blkIndent = u, n.ddIndent = h, n.tokens.push({
|
2148
2148
|
type: "dd_close",
|
2149
2149
|
level: --n.level
|
2150
2150
|
}), a[1] = d = n.line, d >= t || n.tShift[d] < n.blkIndent) break e;
|
@@ -2156,7 +2156,7 @@ function Pr(n, e, t, i) {
|
|
2156
2156
|
return n.tokens.push({
|
2157
2157
|
type: "dl_close",
|
2158
2158
|
level: --n.level
|
2159
|
-
}), l[1] = d, n.line = d,
|
2159
|
+
}), l[1] = d, n.line = d, b && Or(n, c), !0;
|
2160
2160
|
}
|
2161
2161
|
function Nr(n, e) {
|
2162
2162
|
var t,
|
@@ -4088,9 +4088,9 @@ function No(n, e) {
|
|
4088
4088
|
}
|
4089
4089
|
l || document.addEventListener("visibilitychange", p);
|
4090
4090
|
var g = Po,
|
4091
|
-
|
4091
|
+
b = 0;
|
4092
4092
|
function M() {
|
4093
|
-
document.removeEventListener("visibilitychange", p), window.clearTimeout(
|
4093
|
+
document.removeEventListener("visibilitychange", p), window.clearTimeout(b), m.abort();
|
4094
4094
|
}
|
4095
4095
|
t == null || t.addEventListener("abort", function () {
|
4096
4096
|
M(), u();
|
@@ -4135,7 +4135,7 @@ function No(n, e) {
|
|
4135
4135
|
_context6.t0 = _context6["catch"](1);
|
4136
4136
|
if (!m.signal.aborted) try {
|
4137
4137
|
ie = (Ce = a == null ? void 0 : a(_context6.t0)) !== null && Ce !== void 0 ? Ce : g;
|
4138
|
-
window.clearTimeout(
|
4138
|
+
window.clearTimeout(b), b = window.setTimeout(ae, ie);
|
4139
4139
|
} catch (ie) {
|
4140
4140
|
M(), h(ie);
|
4141
4141
|
}
|
@@ -4169,7 +4169,7 @@ var A = /*#__PURE__*/function () {
|
|
4169
4169
|
m,
|
4170
4170
|
p,
|
4171
4171
|
g,
|
4172
|
-
|
4172
|
+
b,
|
4173
4173
|
o,
|
4174
4174
|
_yield$E$processReque,
|
4175
4175
|
a,
|
@@ -4216,7 +4216,7 @@ var A = /*#__PURE__*/function () {
|
|
4216
4216
|
d = new we(i), u = E.fetch.bind(this, e, l, s), h = {
|
4217
4217
|
method: ((g = e.connectSettings) == null ? void 0 : g.method) || "POST",
|
4218
4218
|
headers: l,
|
4219
|
-
credentials: (
|
4219
|
+
credentials: (b = e.connectSettings) == null ? void 0 : b.credentials,
|
4220
4220
|
body: s ? JSON.stringify(a) : a
|
4221
4221
|
};
|
4222
4222
|
return _context7.abrupt("return", (_typeof(e.stream) == "object" && e.stream.readable ? A.handleReadableStream(e, i, d, h, r, u, a) : A.handleEventStream(e, i, d, h, r, u, a), d));
|
@@ -4242,7 +4242,7 @@ var A = /*#__PURE__*/function () {
|
|
4242
4242
|
var u = !1;
|
4243
4243
|
fetch(((h = e.connectSettings) == null ? void 0 : h.url) || e.url || "", s).then(/*#__PURE__*/function () {
|
4244
4244
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(f) {
|
4245
|
-
var
|
4245
|
+
var b, M, m, p, g, _yield$m$read, Y, je, ae, Ce, ye;
|
4246
4246
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
4247
4247
|
while (1) switch (_context8.prev = _context8.next) {
|
4248
4248
|
case 0:
|
@@ -4278,7 +4278,7 @@ var A = /*#__PURE__*/function () {
|
|
4278
4278
|
stream: !0
|
4279
4279
|
});
|
4280
4280
|
_context8.next = 18;
|
4281
|
-
return (M = (
|
4281
|
+
return (M = (b = e.deepChat).responseInterceptor) == null ? void 0 : M.call(b, ae);
|
4282
4282
|
case 18:
|
4283
4283
|
_context8.t0 = _context8.sent;
|
4284
4284
|
if (_context8.t0) {
|
@@ -5125,7 +5125,7 @@ var R = /*#__PURE__*/function () {
|
|
5125
5125
|
return E.processResponseByType(p);
|
5126
5126
|
}).then(/*#__PURE__*/function () {
|
5127
5127
|
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(p) {
|
5128
|
-
var M, Y, g,
|
5128
|
+
var M, Y, g, b;
|
5129
5129
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
5130
5130
|
while (1) switch (_context20.prev = _context20.next) {
|
5131
5131
|
case 0:
|
@@ -5149,20 +5149,20 @@ var R = /*#__PURE__*/function () {
|
|
5149
5149
|
_context20.next = 10;
|
5150
5150
|
return e.extractResultData(g, u, o);
|
5151
5151
|
case 10:
|
5152
|
-
|
5152
|
+
b = _context20.sent;
|
5153
5153
|
if (d) {
|
5154
5154
|
_context20.next = 13;
|
5155
5155
|
break;
|
5156
5156
|
}
|
5157
5157
|
throw p;
|
5158
5158
|
case 13:
|
5159
|
-
if (!(!
|
5159
|
+
if (!(!b || _typeof(b) != "object" && !Array.isArray(b))) {
|
5160
5160
|
_context20.next = 15;
|
5161
5161
|
break;
|
5162
5162
|
}
|
5163
5163
|
throw Error(k.INVALID_RESPONSE(p, "response", !!e.deepChat.responseInterceptor, g));
|
5164
5164
|
case 15:
|
5165
|
-
|
5165
|
+
b.makingAnotherRequest || (A.isSimulatable(e.stream, b) ? A.simulate(i, e.streamHandlers, b) : ((Array.isArray(b) ? b : [b]).forEach(function (ae) {
|
5166
5166
|
return i.addNewMessage(ae);
|
5167
5167
|
}), c()));
|
5168
5168
|
case 16:
|
@@ -9191,9 +9191,9 @@ var pt = /*#__PURE__*/function (_Ri2) {
|
|
9191
9191
|
};
|
9192
9192
|
if (_this39 = _callSuper(this, pt, [e, s == null ? void 0 : s.assistant, l, ue.buildKeyVerificationDetails(r), ue.buildHeaders, i]), _this39.permittedErrorPrefixes = [ue.URL_DETAILS_ERROR_MESSAGE], _this39.insertKeyPlaceholderText = "Azure OpenAI API Key", _this39.keyHelpUrl = "https://learn.microsoft.com/en-us/answers/questions/1193991/how-to-get-the-value-of-openai-api-key", _this39.isTextInputDisabled = !1, _typeof(s == null ? void 0 : s.assistant) == "object") {
|
9193
9193
|
var _ref25 = (p = (m = (f = e.directConnection) == null ? void 0 : f.azure) == null ? void 0 : m.openAI) == null ? void 0 : p.assistant,
|
9194
|
-
|
9194
|
+
b = _ref25.function_handler,
|
9195
9195
|
M = _ref25.files_tool_type;
|
9196
|
-
|
9196
|
+
b && (_this39.functionHandler = b), M && (_this39.filesToolType = M);
|
9197
9197
|
}
|
9198
9198
|
ue.validateURLDetails(r) ? (_g$headers = (g = _this39.connectSettings).headers) !== null && _g$headers !== void 0 ? _g$headers : g.headers = {} : (_this39.isTextInputDisabled = !0, _this39.canSendMessage = function () {
|
9199
9199
|
return !1;
|
@@ -9594,8 +9594,8 @@ var z = /*#__PURE__*/function () {
|
|
9594
9594
|
}
|
9595
9595
|
}]);
|
9596
9596
|
}();
|
9597
|
-
var In = "<?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 <
|
9598
|
-
os = "<?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<
|
9597
|
+
var In = "<?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 <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>",
|
9598
|
+
os = "<?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<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>",
|
9599
9599
|
C = /*#__PURE__*/function (_G5) {
|
9600
9600
|
function C(e) {
|
9601
9601
|
var _l$model;
|
@@ -9606,7 +9606,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
9606
9606
|
i = C.getKey(e);
|
9607
9607
|
_this41 = _callSuper(this, C, [e, L.buildKeyVerificationDetails(), L.buildHeaders, {
|
9608
9608
|
key: i
|
9609
|
-
}]), _this41.insertKeyPlaceholderText = "OpenAI API Key", _this41.keyHelpUrl = "https://platform.openai.com/account/api-keys", _this41.
|
9609
|
+
}]), _this41.insertKeyPlaceholderText = "OpenAI API Key", _this41.keyHelpUrl = "https://platform.openai.com/account/api-keys", _this41._microphoneButton = null, _this41._toggleButton = null, _this41._errorElement = null, _this41._loadingElement = null, _this41._pc = null, _this41._mediaStream = null, _this41._isMuted = !1;
|
9610
9610
|
var s = (r = t.openAI) == null ? void 0 : r.realtime;
|
9611
9611
|
if (_typeof(s) == "object") {
|
9612
9612
|
_this41._avatarConfig = s.avatar, _this41._ephemeralKey = s.ephemeralKey, _this41._errorConfig = s.error, _this41._loadingConfig = s.loading, Object.assign(_this41.rawBody, s.config);
|
@@ -9791,25 +9791,25 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
9791
9791
|
value: function createButtonsContainer() {
|
9792
9792
|
var s;
|
9793
9793
|
var e = document.createElement("div");
|
9794
|
-
e.id = "deep-chat-openai-realtime-buttons-container", Object.assign(e.style, (s = this._buttonsConfig) == null ? void 0 : s.container), this.
|
9795
|
-
var t = C.createButtonContainer(this.
|
9794
|
+
e.id = "deep-chat-openai-realtime-buttons-container", Object.assign(e.style, (s = this._buttonsConfig) == null ? void 0 : s.container), this._microphoneButton = this.createMicophoneButton();
|
9795
|
+
var t = C.createButtonContainer(this._microphoneButton.elementRef);
|
9796
9796
|
this._toggleButton = this.createToggleButton();
|
9797
9797
|
var i = C.createButtonContainer(this._toggleButton.elementRef);
|
9798
9798
|
return e.appendChild(t), e.appendChild(i), e.appendChild(this.createLoading()), e;
|
9799
9799
|
}
|
9800
9800
|
}, {
|
9801
|
-
key: "
|
9802
|
-
value: function
|
9801
|
+
key: "createMicophoneButton",
|
9802
|
+
value: function createMicophoneButton() {
|
9803
9803
|
var _this42 = this;
|
9804
9804
|
var t;
|
9805
9805
|
var e = new ki((t = this._buttonsConfig) == null ? void 0 : t.microphone);
|
9806
|
-
return e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-
|
9807
|
-
e.isActive ? (_this42.
|
9806
|
+
return e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-microphone"), e.elementRef.onclick = function () {
|
9807
|
+
e.isActive ? (_this42.toggleMicorphone(!0), e.elementRef.classList.replace(C.MICROPHONE_ACTIVE, C.BUTTON_DEFAULT), e.changeToDefault(), _this42._isMuted = !1) : (_this42.toggleMicorphone(!1), e.elementRef.classList.replace(C.BUTTON_DEFAULT, C.MICROPHONE_ACTIVE), N.removeAriaAttributes(e.elementRef), e.changeToActive(), _this42._isMuted = !0);
|
9808
9808
|
}, e;
|
9809
9809
|
}
|
9810
9810
|
}, {
|
9811
|
-
key: "
|
9812
|
-
value: function
|
9811
|
+
key: "toggleMicorphone",
|
9812
|
+
value: function toggleMicorphone(e) {
|
9813
9813
|
var t;
|
9814
9814
|
(t = this._mediaStream) == null || t.getAudioTracks().forEach(function (i) {
|
9815
9815
|
return i.enabled = e;
|
@@ -9940,7 +9940,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
9940
9940
|
audio: !0
|
9941
9941
|
}).then(function (l) {
|
9942
9942
|
var c;
|
9943
|
-
t === _this44._pc && (_this44._mediaStream = l, (c = _this44._pc) == null || c.addTrack(_this44._mediaStream.getTracks()[0]), _this44._isMuted && _this44.
|
9943
|
+
t === _this44._pc && (_this44._mediaStream = l, (c = _this44._pc) == null || c.addTrack(_this44._mediaStream.getTracks()[0]), _this44._isMuted && _this44.toggleMicorphone(!1));
|
9944
9944
|
})["catch"](function (l) {
|
9945
9945
|
console.error("Error accessing microphone:", l), _this44.displayError("Error");
|
9946
9946
|
});
|
@@ -10118,17 +10118,17 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
10118
10118
|
}, {
|
10119
10119
|
key: "changeToUnavailable",
|
10120
10120
|
value: function changeToUnavailable() {
|
10121
|
-
this.
|
10121
|
+
this._microphoneButton && C.changeButtonToUnavailable(this._microphoneButton), this._toggleButton && C.changeButtonToUnavailable(this._toggleButton);
|
10122
10122
|
}
|
10123
10123
|
}, {
|
10124
10124
|
key: "changeToAvailable",
|
10125
10125
|
value: function changeToAvailable() {
|
10126
|
-
this.
|
10126
|
+
this._microphoneButton && C.changeButtonToAvailable(this._microphoneButton), this._toggleButton && C.changeButtonToAvailable(this._toggleButton);
|
10127
10127
|
}
|
10128
10128
|
}, {
|
10129
10129
|
key: "removeUnavailable",
|
10130
10130
|
value: function removeUnavailable() {
|
10131
|
-
this.
|
10131
|
+
this._microphoneButton && C.removeButtonUnavailable(this._microphoneButton), this._toggleButton && C.removeButtonUnavailable(this._toggleButton);
|
10132
10132
|
}
|
10133
10133
|
}, {
|
10134
10134
|
key: "createError",
|
@@ -10242,10 +10242,10 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
10242
10242
|
}, {
|
10243
10243
|
key: "buildButtonsConfig",
|
10244
10244
|
value: function buildButtonsConfig(e) {
|
10245
|
-
var _t$microphone, _o$default, _a$svg, _t$toggle,
|
10246
|
-
var i, s, r, o, a, l, c, d, u, h, f, m;
|
10245
|
+
var _t$microphone, _o$default, _a$svg, _l$content, _t$toggle, _h$default, _f$svg, _m$content, _p$active, _g$svg, _b$content;
|
10246
|
+
var i, s, r, o, a, l, c, d, u, h, f, m, p, g, b;
|
10247
10247
|
var t = _typeof(e) == "object" && e.buttons ? JSON.parse(JSON.stringify(e.buttons)) : {};
|
10248
|
-
return (r = (s = (i = t.microphone) == null ? void 0 : i["default"]) == null ? void 0 : s.text) != null && r.content || ((_t$microphone = t.microphone) !== null && _t$microphone !== void 0 ? _t$microphone : t.microphone = {}, (_o$default = (o = t.microphone)["default"]) !== null && _o$default !== void 0 ? _o$default : o["default"] = {}, (_a$svg = (a = t.microphone["default"]).svg) !== null && _a$svg !== void 0 ? _a$svg : a.svg = {}, t.microphone["default"].svg.content = Ln), (
|
10248
|
+
return (r = (s = (i = t.microphone) == null ? void 0 : i["default"]) == null ? void 0 : s.text) != null && r.content || ((_t$microphone = t.microphone) !== null && _t$microphone !== void 0 ? _t$microphone : t.microphone = {}, (_o$default = (o = t.microphone)["default"]) !== null && _o$default !== void 0 ? _o$default : o["default"] = {}, (_a$svg = (a = t.microphone["default"]).svg) !== null && _a$svg !== void 0 ? _a$svg : a.svg = {}, (_l$content = (l = t.microphone["default"].svg).content) !== null && _l$content !== void 0 ? _l$content : l.content = Ln), (u = (d = (c = t.toggle) == null ? void 0 : c["default"]) == null ? void 0 : d.text) != null && u.content || ((_t$toggle = t.toggle) !== null && _t$toggle !== void 0 ? _t$toggle : t.toggle = {}, (_h$default = (h = t.toggle)["default"]) !== null && _h$default !== void 0 ? _h$default : h["default"] = {}, (_f$svg = (f = t.toggle["default"]).svg) !== null && _f$svg !== void 0 ? _f$svg : f.svg = {}, (_m$content = (m = t.toggle["default"].svg).content) !== null && _m$content !== void 0 ? _m$content : m.content = In, (_p$active = (p = t.toggle).active) !== null && _p$active !== void 0 ? _p$active : p.active = {}, (_g$svg = (g = t.toggle.active).svg) !== null && _g$svg !== void 0 ? _g$svg : g.svg = {}, (_b$content = (b = t.toggle.active.svg).content) !== null && _b$content !== void 0 ? _b$content : b.content = os), t;
|
10249
10249
|
}
|
10250
10250
|
}, {
|
10251
10251
|
key: "createAvatar",
|
@@ -10277,7 +10277,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
10277
10277
|
}
|
10278
10278
|
}]);
|
10279
10279
|
}(G);
|
10280
|
-
C.BUTTON_DEFAULT = "deep-chat-openai-realtime-button-default", C.BUTTON_LOADING = "deep-chat-openai-realtime-button-loading", C.
|
10280
|
+
C.BUTTON_DEFAULT = "deep-chat-openai-realtime-button-default", C.BUTTON_LOADING = "deep-chat-openai-realtime-button-loading", C.MICROPHONE_ACTIVE = "deep-chat-openai-realtime-microphone-active", C.UNAVAILABLE = "deep-chat-openai-realtime-button-unavailable";
|
10281
10281
|
var as = C;
|
10282
10282
|
var mt = /*#__PURE__*/function (_G6) {
|
10283
10283
|
function mt(e) {
|
@@ -13018,7 +13018,7 @@ var K = /*#__PURE__*/function () {
|
|
13018
13018
|
}
|
13019
13019
|
}]);
|
13020
13020
|
}();
|
13021
|
-
var ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<
|
13021
|
+
var ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>",
|
13022
13022
|
oa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z\"/>\n</svg>\n",
|
13023
13023
|
aa = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"-49.49 -49.49 593.87 593.87\" stroke-width=\"3.95908\" transform=\"rotate(0)\">\n <g stroke-width=\"0\"></g>\n <g stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.98977\"></g>\n <g>\n <g>\n <g>\n <path d=\"M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z\">\n </path>\n </g>\n </g>\n </g>\n</svg>",
|
13024
13024
|
la = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 5.9266752 5.6408391\" height=\"21.31971\" width=\"22.4\">\n <g>\n <path d=\"m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z\"/>\n <path d=\"m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z\"/>\n </g>\n</svg>\n",
|
@@ -13568,32 +13568,32 @@ function Dn() {
|
|
13568
13568
|
var p = a.commands;
|
13569
13569
|
if (!p || !d || !c) return;
|
13570
13570
|
var g = ((h = p.settings) === null || h === void 0 ? void 0 : h.caseSensitive) === !0 ? l : l.toLowerCase(),
|
13571
|
-
|
13571
|
+
b = s.Text.breakupIntoWordsArr(g),
|
13572
13572
|
M = ((f = p.settings) === null || f === void 0 ? void 0 : f.substrings) === !1 ? r.checkIfMatchesWord : r.checkIfMatchesSubstring;
|
13573
|
-
if (p.commandMode && M(p.commandMode, g,
|
13573
|
+
if (p.commandMode && M(p.commandMode, g, b)) return a.setInterimColorToFinal(), setTimeout(function () {
|
13574
13574
|
return r.toggleCommandModeOn(a);
|
13575
13575
|
}), {
|
13576
13576
|
doNotProcessTranscription: !1
|
13577
13577
|
};
|
13578
13578
|
if (!(p.commandMode && !a.isWaitingForCommand)) {
|
13579
|
-
if (p.stop && M(p.stop, g,
|
13579
|
+
if (p.stop && M(p.stop, g, b)) return r.toggleCommandModeOff(a), setTimeout(function () {
|
13580
13580
|
return a.stop();
|
13581
13581
|
}), {
|
13582
13582
|
doNotProcessTranscription: !1
|
13583
13583
|
};
|
13584
|
-
if (p.pause && M(p.pause, g,
|
13584
|
+
if (p.pause && M(p.pause, g, b)) return r.toggleCommandModeOff(a), a.setInterimColorToFinal(), setTimeout(function () {
|
13585
13585
|
var Y;
|
13586
13586
|
a.isPaused = !0, (Y = a.onPauseTrigger) === null || Y === void 0 || Y.call(a, !0);
|
13587
13587
|
}), {
|
13588
13588
|
doNotProcessTranscription: !1
|
13589
13589
|
};
|
13590
|
-
if (p.resume && M(p.resume, g,
|
13590
|
+
if (p.resume && M(p.resume, g, b)) return a.isPaused = !1, (m = a.onPauseTrigger) === null || m === void 0 || m.call(a, !1), r.toggleCommandModeOff(a), a.resetRecording(c), {
|
13591
13591
|
doNotProcessTranscription: !0
|
13592
13592
|
};
|
13593
|
-
if (p.reset && M(p.reset, g,
|
13593
|
+
if (p.reset && M(p.reset, g, b)) return u !== void 0 && r.setText(a, c, u, d), {
|
13594
13594
|
doNotProcessTranscription: !0
|
13595
13595
|
};
|
13596
|
-
if (p.removeAllText && M(p.removeAllText, g,
|
13596
|
+
if (p.removeAllText && M(p.removeAllText, g, b)) return r.setText(a, c, "", d), {
|
13597
13597
|
doNotProcessTranscription: !0
|
13598
13598
|
};
|
13599
13599
|
}
|
@@ -13756,8 +13756,8 @@ function Bn() {
|
|
13756
13756
|
value: function prepareBeforeStart(h) {
|
13757
13757
|
var f, m;
|
13758
13758
|
if (h != null && h.element) if (n.EventListeners.add(this, h), Array.isArray(h.element)) {
|
13759
|
-
var g = h.element.find(function (
|
13760
|
-
return
|
13759
|
+
var g = h.element.find(function (b) {
|
13760
|
+
return b === document.activeElement;
|
13761
13761
|
}) || h.element[0];
|
13762
13762
|
if (!g) return;
|
13763
13763
|
this.prepare(g);
|
@@ -13785,9 +13785,9 @@ function Bn() {
|
|
13785
13785
|
var g = c.Text.capitalize(f);
|
13786
13786
|
if (this.finalTranscript === g && h === "") return;
|
13787
13787
|
e.PreResultUtils.process(this, m, h === "", this._onPreResult, this._options) && (h = "", m = "");
|
13788
|
-
var
|
13789
|
-
if (
|
13790
|
-
if (
|
13788
|
+
var b = this.commands && t.CommandUtils.execCommand(this, m, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
13789
|
+
if (b) {
|
13790
|
+
if (b.doNotProcessTranscription) return;
|
13791
13791
|
h = "", m = "";
|
13792
13792
|
}
|
13793
13793
|
if (this.isPaused || this.isWaitingForCommand) return;
|
@@ -13816,8 +13816,8 @@ function Bn() {
|
|
13816
13816
|
this.finalSpan.innerHTML = p;
|
13817
13817
|
var g = i.AutoScroll.isRequired(this.autoScroll, h);
|
13818
13818
|
i.AutoScroll.changeStateIfNeeded(this, g);
|
13819
|
-
var
|
13820
|
-
this.interimSpan.innerHTML =
|
13819
|
+
var b = c.Text.lineBreak(f) + (m ? "" : this.endPadding);
|
13820
|
+
this.interimSpan.innerHTML = b, a.Browser.IS_SAFARI() && this.insertInCursorLocation && l.Cursor.setOffsetForSafariGeneric(h, p.length + b.length), g && i.AutoScroll.scrollGeneric(this, h), m && (this.scrollingSpan.innerHTML = "");
|
13821
13821
|
}
|
13822
13822
|
}, {
|
13823
13823
|
key: "finalise",
|
@@ -15001,12 +15001,12 @@ var Ni = /*#__PURE__*/function (_lt5) {
|
|
15001
15001
|
function Ni(e, t, i, s, r, o) {
|
15002
15002
|
var _this83;
|
15003
15003
|
_classCallCheck(this, Ni);
|
15004
|
-
var d, u, h, f, m, p, g,
|
15004
|
+
var d, u, h, f, m, p, g, b, M;
|
15005
15005
|
var a = (d = i == null ? void 0 : i.button) == null ? void 0 : d.position,
|
15006
15006
|
l = ((f = (h = (u = i == null ? void 0 : i.button) == null ? void 0 : u.styles) == null ? void 0 : h.text) == null ? void 0 : f.content) || o;
|
15007
15007
|
_this83 = _callSuper(this, Ni, [Ni.createButtonElement(), r, a, i.button, l]);
|
15008
15008
|
var c = _this83.createInnerElementsForStates(s, _this83.customStyles);
|
15009
|
-
_this83._inputElement = Ni.createInputElement((m = i == null ? void 0 : i.files) == null ? void 0 : m.acceptedFormats), _this83.addClickEvent(e, i), _this83.changeElementsByState(c.styles), _this83.reapplyStateStyle("styles"), _this83._fileAttachmentsType = t, _this83._openModalOnce = ((g = (p = i.files) == null ? void 0 : p.infoModal) == null ? void 0 : g.openModalOnce) === !1 || (M = (
|
15009
|
+
_this83._inputElement = Ni.createInputElement((m = i == null ? void 0 : i.files) == null ? void 0 : m.acceptedFormats), _this83.addClickEvent(e, i), _this83.changeElementsByState(c.styles), _this83.reapplyStateStyle("styles"), _this83._fileAttachmentsType = t, _this83._openModalOnce = ((g = (p = i.files) == null ? void 0 : p.infoModal) == null ? void 0 : g.openModalOnce) === !1 || (M = (b = i.files) == null ? void 0 : b.infoModal) == null ? void 0 : M.openModalOnce;
|
15010
15010
|
return _this83;
|
15011
15011
|
}
|
15012
15012
|
_inherits(Ni, _lt5);
|
@@ -15627,7 +15627,7 @@ var P = /*#__PURE__*/function (_lt6) {
|
|
15627
15627
|
P.SUBMIT_CLASS = "submit-button", P.LOADING_CLASS = "loading-button", P.DISABLED_CLASS = "disabled-button";
|
15628
15628
|
var gs = P;
|
15629
15629
|
var La = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z\"/>\n</svg>\n",
|
15630
|
-
Ia = "<?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 <
|
15630
|
+
Ia = "<?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 <path d=\"M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z\"></path>\n</svg>\n",
|
15631
15631
|
Oa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z\"/>\n</svg>",
|
15632
15632
|
Pa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.89163 13.2687L9.16582 17.5427L18.7085 8\" stroke=\"#000000\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
|
15633
15633
|
var Cs = /*#__PURE__*/function (_et) {
|
@@ -15876,7 +15876,7 @@ var Ms = /*#__PURE__*/function () {
|
|
15876
15876
|
}
|
15877
15877
|
}]);
|
15878
15878
|
}();
|
15879
|
-
var Da = "#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-mute-active{background-color:#ffe7e7}.deep-chat-openai-realtime-mute-active:hover{background-color:#ffdede}.deep-chat-openai-realtime-mute-active:active{background-color:#ffd2d2}.deep-chat-openai-realtime-mute>*{height:30px;width:30px}.deep-chat-openai-realtime-mute-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{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{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}";
|
15879
|
+
var Da = "#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{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{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}";
|
15880
15880
|
var Ba = Object.defineProperty,
|
15881
15881
|
w = function w(n, e, t, i) {
|
15882
15882
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);
|