deep-chat-dev 9.0.253 → 9.0.255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/deepChat.js CHANGED
@@ -211,7 +211,7 @@ var $t = /*#__PURE__*/_createClass(function $t() {
211
211
  _classCallCheck(this, $t);
212
212
  });
213
213
  $t.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), $t.IS_CHROMIUM = window.chrome, $t.IS_MOBILE = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
214
- var Ne = $t;
214
+ var De = $t;
215
215
  var U = /* @__PURE__ */function (n) {
216
216
  return n.ESCAPE = "Escape", n.ENTER = "Enter", n.TAB = "Tab", n.ARROW_UP = "ArrowUp", n.ARROW_DOWN = "ArrowDown", n.ARROW_RIGHT = "ArrowRight", n.ARROW_LEFT = "ArrowLeft", n.BACKSPACE = "Backspace", n.DELETE = "Delete", n.META = "Meta", n.CONTROL = "Control", n;
217
217
  }(U || {});
@@ -285,7 +285,7 @@ var Xe = /*#__PURE__*/function () {
285
285
  function clear() {
286
286
  var t;
287
287
  var e = window.scrollY;
288
- this.inputElementRef.classList.contains("text-input-disabled") || (Object.assign(this.inputElementRef.style, (t = this._config.placeholder) == null ? void 0 : t.style), this.inputElementRef.textContent = "", ai.focusEndOfInput(this.inputElementRef)), Ne.IS_CHROMIUM && window.scrollTo({
288
+ this.inputElementRef.classList.contains("text-input-disabled") || (Object.assign(this.inputElementRef.style, (t = this._config.placeholder) == null ? void 0 : t.style), this.inputElementRef.textContent = "", ai.focusEndOfInput(this.inputElementRef)), De.IS_CHROMIUM && window.scrollTo({
289
289
  top: e
290
290
  });
291
291
  }
@@ -294,7 +294,7 @@ var Xe = /*#__PURE__*/function () {
294
294
  value: function createInputElement() {
295
295
  var t, i, s, r;
296
296
  var e = document.createElement("div");
297
- return e.id = Xe.TEXT_INPUT_ID, e.classList.add("text-input-styling"), e.role = "textbox", Ne.IS_CHROMIUM && Xe.preventAutomaticScrollUpOnNewLine(e), typeof this._config.disabled == "boolean" && this._config.disabled === !0 ? (e.contentEditable = "false", e.classList.add("text-input-disabled"), e.setAttribute("aria-disabled", "true")) : (e.contentEditable = "true", e.removeAttribute("aria-disabled"), this.addEventListeners(e)), Object.assign(e.style, (t = this._config.styles) == null ? void 0 : t.text), Object.assign(e.style, (i = this._config.placeholder) == null ? void 0 : i.style), (r = (s = this._config.placeholder) == null ? void 0 : s.style) != null && r.color || e.setAttribute("textcolor", ""), e;
297
+ return e.id = Xe.TEXT_INPUT_ID, e.classList.add("text-input-styling"), e.role = "textbox", De.IS_CHROMIUM && Xe.preventAutomaticScrollUpOnNewLine(e), typeof this._config.disabled == "boolean" && this._config.disabled === !0 ? (e.contentEditable = "false", e.classList.add("text-input-disabled"), e.setAttribute("aria-disabled", "true")) : (e.contentEditable = "true", e.removeAttribute("aria-disabled"), this.addEventListeners(e)), Object.assign(e.style, (t = this._config.styles) == null ? void 0 : t.text), Object.assign(e.style, (i = this._config.placeholder) == null ? void 0 : i.style), (r = (s = this._config.placeholder) == null ? void 0 : s.style) != null && r.color || e.setAttribute("textcolor", ""), e;
298
298
  }
299
299
  }, {
300
300
  key: "removePlaceholderStyle",
@@ -325,7 +325,7 @@ var Xe = /*#__PURE__*/function () {
325
325
  key: "onKeydown",
326
326
  value: function onKeydown(e) {
327
327
  var t;
328
- e.key === U.ENTER && !Ne.IS_MOBILE && !this._isComposing && !e.ctrlKey && !e.shiftKey && (e.preventDefault(), (t = this.submit) == null || t.call(this));
328
+ e.key === U.ENTER && !De.IS_MOBILE && !this._isComposing && !e.ctrlKey && !e.shiftKey && (e.preventDefault(), (t = this.submit) == null || t.call(this));
329
329
  }
330
330
  }, {
331
331
  key: "onInput",
@@ -393,7 +393,7 @@ var ai = /*#__PURE__*/function () {
393
393
  key: "focusFromParentElement",
394
394
  value: function focusFromParentElement(e) {
395
395
  var t = e.querySelector("#".concat(vi.TEXT_INPUT_ID));
396
- t && (Ne.IS_SAFARI && t.focus(), ai.focusEndOfInput(t));
396
+ t && (De.IS_SAFARI && t.focus(), ai.focusEndOfInput(t));
397
397
  }
398
398
  }]);
399
399
  }();
@@ -550,7 +550,7 @@ var ht = /*#__PURE__*/function () {
550
550
  }]);
551
551
  }();
552
552
  ht.BUBBLE_CLASS = "deep-chat-loading-message-bubble", ht.DOTS_CONTAINER_CLASS = "deep-chat-loading-message-dots-container";
553
- var Pe = ht;
553
+ var Ne = ht;
554
554
  var ce = /*#__PURE__*/function () {
555
555
  function ce() {
556
556
  _classCallCheck(this, ce);
@@ -944,11 +944,11 @@ var J = /*#__PURE__*/function () {
944
944
  }
945
945
  }]);
946
946
  }();
947
- var Me = /*#__PURE__*/function () {
948
- function Me() {
949
- _classCallCheck(this, Me);
947
+ var ke = /*#__PURE__*/function () {
948
+ function ke() {
949
+ _classCallCheck(this, ke);
950
950
  }
951
- return _createClass(Me, null, [{
951
+ return _createClass(ke, null, [{
952
952
  key: "addElement",
953
953
  value: function addElement(e, t) {
954
954
  e.appendOuterContainerElemet(t), e.focusMode || (e.elementRef.scrollTop = e.elementRef.scrollHeight);
@@ -958,7 +958,7 @@ var Me = /*#__PURE__*/function () {
958
958
  value: function createElements(e, t, i, s) {
959
959
  var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !1;
960
960
  var o = e.createMessageElementsOnOrientation("", i, s, r);
961
- return o.bubbleElement.classList.add(Me.HTML_BUBBLE_CLASS), o.bubbleElement.innerHTML = t, o;
961
+ return o.bubbleElement.classList.add(ke.HTML_BUBBLE_CLASS), o.bubbleElement.innerHTML = t, o;
962
962
  }
963
963
  }, {
964
964
  key: "overwriteElements",
@@ -970,15 +970,15 @@ var Me = /*#__PURE__*/function () {
970
970
  key: "overwrite",
971
971
  value: function overwrite(e, t, i, s) {
972
972
  var r = e.messageToElements,
973
- o = y.overwriteMessage(r, s, t, i, "html", Me.HTML_BUBBLE_CLASS);
974
- return o && Me.overwriteElements(e, t, o), o;
973
+ o = y.overwriteMessage(r, s, t, i, "html", ke.HTML_BUBBLE_CLASS);
974
+ return o && ke.overwriteElements(e, t, o), o;
975
975
  }
976
976
  }, {
977
977
  key: "create",
978
978
  value: function create(e, t, i) {
979
979
  var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
980
980
  var o;
981
- var r = Me.createElements(e, t, i, s);
981
+ var r = ke.createElements(e, t, i, s);
982
982
  return y.fillEmptyMessageElement(r.bubbleElement, t), J.apply(e, r.outerContainer), te.flagHTMLUpdateClass(r.bubbleElement), e.applyCustomStyles(r, i, !1, (o = e.messageStyles) == null ? void 0 : o.html), r;
983
983
  }
984
984
  }, {
@@ -991,13 +991,13 @@ var Me = /*#__PURE__*/function () {
991
991
  s.status = !1;
992
992
  }
993
993
  if (r && e.messageElementRefs.length > 0 && J.isTemporaryBasedOnHTML(t)) return;
994
- var o = Me.create(e, t, i, r);
995
- return r || Me.addElement(e, o.outerContainer), o;
994
+ var o = ke.create(e, t, i, r);
995
+ return r || ke.addElement(e, o.outerContainer), o;
996
996
  }
997
997
  }]);
998
998
  }();
999
- Me.HTML_BUBBLE_CLASS = "html-message";
1000
- var _e = Me;
999
+ ke.HTML_BUBBLE_CLASS = "html-message";
1000
+ var _e = ke;
1001
1001
  var hi;
1002
1002
  function En(n) {
1003
1003
  return hi = hi || document.createElement("textarea"), hi.innerHTML = "&" + n + ";", hi.value;
@@ -1874,7 +1874,7 @@ function wr(n, e, t, i) {
1874
1874
  Y,
1875
1875
  je,
1876
1876
  ae,
1877
- Te = !0,
1877
+ Ce = !0,
1878
1878
  ye,
1879
1879
  ie,
1880
1880
  Is,
@@ -1895,7 +1895,7 @@ function wr(n, e, t, i) {
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] = v - n.bMarks[e], n.blkIndent = r, n.tight = !0, n.parentType = "list", n.parser.tokenize(n, e, t, !0), (!n.tight || Y) && (Te = !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({
1898
+ }), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] = v - 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
1901
  }), s = e = n.line, ae[1] = s, v = n.bMarks[e], !(s >= t || n.isEmpty(s) || n.tShift[s] < n.blkIndent));) {
@@ -1912,7 +1912,7 @@ function wr(n, e, t, i) {
1912
1912
  return n.tokens.push({
1913
1913
  type: g ? "ordered_list_close" : "bullet_list_close",
1914
1914
  level: --n.level
1915
- }), je[1] = s, n.line = s, Te && xr(n, M), !0;
1915
+ }), je[1] = s, n.line = s, Ce && xr(n, M), !0;
1916
1916
  }
1917
1917
  function Ar(n, e, t, i) {
1918
1918
  var s,
@@ -3026,7 +3026,7 @@ var F = /*#__PURE__*/function () {
3026
3026
  }, {
3027
3027
  key: "apply",
3028
3028
  value: function apply(e, t, i) {
3029
- Pe.setRing(t.bubbleElement, i == null ? void 0 : i.bubble), i != null && i.bubble && (i = JSON.parse(JSON.stringify(i)), delete i.bubble), e.applyCustomStyles(t, "history", !1, i);
3029
+ Ne.setRing(t.bubbleElement, i == null ? void 0 : i.bubble), i != null && i.bubble && (i = JSON.parse(JSON.stringify(i)), delete i.bubble), e.applyCustomStyles(t, "history", !1, i);
3030
3030
  }
3031
3031
  }, {
3032
3032
  key: "addLoadHistoryMessage",
@@ -3078,7 +3078,7 @@ var F = /*#__PURE__*/function () {
3078
3078
  }]);
3079
3079
  }();
3080
3080
  F.CLASS = "loading-history-message", F.FULL_VIEW_CLASS = "loading-history-message-full-view", F.SMALL_CLASS = "loading-history-message-small";
3081
- var De = F;
3081
+ var Be = F;
3082
3082
  var Wt = /*#__PURE__*/function () {
3083
3083
  function Wt() {
3084
3084
  _classCallCheck(this, Wt);
@@ -3146,15 +3146,15 @@ var kn = /*#__PURE__*/function () {
3146
3146
  }
3147
3147
  }]);
3148
3148
  }();
3149
- var Ce = /*#__PURE__*/function (_kn) {
3150
- function Ce(e) {
3149
+ var Re = /*#__PURE__*/function (_kn) {
3150
+ function Re(e) {
3151
3151
  var _this3;
3152
- _classCallCheck(this, Ce);
3153
- _this3 = _callSuper(this, Ce, ["avatar-container"]), _this3._avatars = e;
3152
+ _classCallCheck(this, Re);
3153
+ _this3 = _callSuper(this, Re, ["avatar-container"]), _this3._avatars = e;
3154
3154
  return _this3;
3155
3155
  }
3156
- _inherits(Ce, _kn);
3157
- return _createClass(Ce, [{
3156
+ _inherits(Re, _kn);
3157
+ return _createClass(Re, [{
3158
3158
  key: "addBesideMsg",
3159
3159
  value: function addBesideMsg(e, t) {
3160
3160
  var i = typeof this._avatars == "boolean" ? void 0 : this._avatars,
@@ -3167,9 +3167,9 @@ var Ce = /*#__PURE__*/function (_kn) {
3167
3167
  value: function createAvatar(e, t) {
3168
3168
  var r, o, a, l, c;
3169
3169
  var i = document.createElement("img");
3170
- e === y.USER_ROLE ? (i.src = ((r = t == null ? void 0 : t.user) == null ? void 0 : r.src) || ((o = t == null ? void 0 : t["default"]) == null ? void 0 : o.src) || ts, i.onerror = Ce.errorFallback.bind(this, ts)) : (i.src = ((a = t == null ? void 0 : t[e]) == null ? void 0 : a.src) || ((l = t == null ? void 0 : t.ai) == null ? void 0 : l.src) || ((c = t == null ? void 0 : t["default"]) == null ? void 0 : c.src) || Vs, i.onerror = Ce.errorFallback.bind(this, Vs)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3170
+ e === y.USER_ROLE ? (i.src = ((r = t == null ? void 0 : t.user) == null ? void 0 : r.src) || ((o = t == null ? void 0 : t["default"]) == null ? void 0 : o.src) || ts, i.onerror = Re.errorFallback.bind(this, ts)) : (i.src = ((a = t == null ? void 0 : t[e]) == null ? void 0 : a.src) || ((l = t == null ? void 0 : t.ai) == null ? void 0 : l.src) || ((c = t == null ? void 0 : t["default"]) == null ? void 0 : c.src) || Vs, i.onerror = Re.errorFallback.bind(this, Vs)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3171
3171
  var s = document.createElement("div");
3172
- return s.classList.add(this.className), s.appendChild(i), t && Ce.applyCustomStyles(s, i, t, e), s;
3172
+ return s.classList.add(this.className), s.appendChild(i), t && Re.applyCustomStyles(s, i, t, e), s;
3173
3173
  }
3174
3174
  }, {
3175
3175
  key: "getPosition",
@@ -3193,10 +3193,10 @@ var Ce = /*#__PURE__*/function (_kn) {
3193
3193
  key: "applyCustomStyles",
3194
3194
  value: function applyCustomStyles(e, t, i, s) {
3195
3195
  var r, o, a, l;
3196
- if ((r = i["default"]) != null && r.styles && Ce.applyCustomStylesToElements(e, t, i["default"].styles), s === y.USER_ROLE) (o = i.user) != null && o.styles && Ce.applyCustomStylesToElements(e, t, i.user.styles);else {
3197
- (a = i.ai) != null && a.styles && Ce.applyCustomStylesToElements(e, t, i.ai.styles);
3196
+ if ((r = i["default"]) != null && r.styles && Re.applyCustomStylesToElements(e, t, i["default"].styles), s === y.USER_ROLE) (o = i.user) != null && o.styles && Re.applyCustomStylesToElements(e, t, i.user.styles);else {
3197
+ (a = i.ai) != null && a.styles && Re.applyCustomStylesToElements(e, t, i.ai.styles);
3198
3198
  var c = (l = i[s]) == null ? void 0 : l.styles;
3199
- c && Ce.applyCustomStylesToElements(e, t, c);
3199
+ c && Re.applyCustomStylesToElements(e, t, c);
3200
3200
  }
3201
3201
  }
3202
3202
  }]);
@@ -3249,7 +3249,7 @@ var Z = /*#__PURE__*/function () {
3249
3249
  var _this5 = this;
3250
3250
  _classCallCheck(this, Z);
3251
3251
  var t;
3252
- this.messageElementRefs = [], this.htmlClassUtilities = {}, this.messageToElements = [], this.elementRef = Z.createContainerElement(), this.messageStyles = te.processMessageStyles(e.messageStyles), this._remarkable = ti.createNew(e.remarkable), e.avatars && (this.avatar = new Ce(e.avatars)), e.names && (this.name = new zt(e.names)), this._onMessage = yi.onMessage.bind(this, e), e.htmlClassUtilities && (this.htmlClassUtilities = e.htmlClassUtilities), this.focusMode = e.focusMode, this.focusMode || (this._lastGroupMessagesElement = document.createElement("div")), typeof this.focusMode != "boolean" && (t = this.focusMode) != null && t.fade && Ei.setFade(this.elementRef, this.focusMode.fade), setTimeout(function () {
3252
+ this.messageElementRefs = [], this.htmlClassUtilities = {}, this.messageToElements = [], this.elementRef = Z.createContainerElement(), this.messageStyles = te.processMessageStyles(e.messageStyles), this._remarkable = ti.createNew(e.remarkable), e.avatars && (this.avatar = new Re(e.avatars)), e.names && (this.name = new zt(e.names)), this._onMessage = yi.onMessage.bind(this, e), e.htmlClassUtilities && (this.htmlClassUtilities = e.htmlClassUtilities), this.focusMode = e.focusMode, this.focusMode || (this._lastGroupMessagesElement = document.createElement("div")), typeof this.focusMode != "boolean" && (t = this.focusMode) != null && t.fade && Ei.setFade(this.elementRef, this.focusMode.fade), setTimeout(function () {
3253
3253
  _this5.submitUserMessage = e.submitUserMessage;
3254
3254
  });
3255
3255
  }
@@ -3341,7 +3341,7 @@ var Z = /*#__PURE__*/function () {
3341
3341
  var o;
3342
3342
  s || (o = this._introPanel) == null || o.hide();
3343
3343
  var r = this.messageElementRefs[this.messageElementRefs.length - 1];
3344
- return De.changeFullViewToSmall(this), !i && Z.isTemporaryElement(r) && (this.revealRoleElementsIfTempRemoved(r, t), this.removeLastMessage()), this.createMessageElements(e, t, i);
3344
+ return Be.changeFullViewToSmall(this), !i && Z.isTemporaryElement(r) && (this.revealRoleElementsIfTempRemoved(r, t), this.removeLastMessage()), this.createMessageElements(e, t, i);
3345
3345
  }
3346
3346
  // this can be tested by having an ai message, then a temp ai message with html that submits new user message:
3347
3347
  // https://github.com/OvidijusParsiunas/deep-chat/issues/258
@@ -3468,7 +3468,7 @@ var Z = /*#__PURE__*/function () {
3468
3468
  }, {
3469
3469
  key: "isLoadingMessage",
3470
3470
  value: function isLoadingMessage(e) {
3471
- return e == null ? void 0 : e.bubbleElement.classList.contains(Pe.BUBBLE_CLASS);
3471
+ return e == null ? void 0 : e.bubbleElement.classList.contains(Ne.BUBBLE_CLASS);
3472
3472
  }
3473
3473
  }]);
3474
3474
  }();
@@ -3519,7 +3519,7 @@ var _ = /*#__PURE__*/function () {
3519
3519
  }, {
3520
3520
  key: "overwriteMessage",
3521
3521
  value: function overwriteMessage(e, t, i, s, r, o) {
3522
- var a = _.getLastElementsByClass(t, [_.getRoleClass(s), o], [Pe.BUBBLE_CLASS]),
3522
+ var a = _.getLastElementsByClass(t, [_.getRoleClass(s), o], [Ne.BUBBLE_CLASS]),
3523
3523
  l = _.getLastMessage(e, s, r);
3524
3524
  return l && (l[r] = i), a;
3525
3525
  }
@@ -3700,7 +3700,7 @@ var ft = /*#__PURE__*/function () {
3700
3700
  }, {
3701
3701
  key: "updateText",
3702
3702
  value: function updateText(e, t, i) {
3703
- this._message && (this._message.text = i ? e : this._message.text + e, e.indexOf("\n") && (this._message.partialText = ""), this._message.partialText || (this._message.partialText += e, this._message.partialBubble = document.createElement("div"), t.appendChild(this._message.partialBubble)), this._messages.renderText(this._message.partialBubble, this._message.partialText || ""));
3703
+ this._message && (this._message.text = i ? e : this._message.text + e, this._messages.renderText(t, this._message.text));
3704
3704
  }
3705
3705
  }, {
3706
3706
  key: "updateHTML",
@@ -4099,7 +4099,7 @@ function No(n, e) {
4099
4099
  }
4100
4100
  function _ae() {
4101
4101
  _ae = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
4102
- var Te, ye, ie;
4102
+ var Ce, ye, ie;
4103
4103
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
4104
4104
  while (1) switch (_context6.prev = _context6.next) {
4105
4105
  case 0:
@@ -4131,7 +4131,7 @@ function No(n, e) {
4131
4131
  _context6.prev = 14;
4132
4132
  _context6.t0 = _context6["catch"](1);
4133
4133
  if (!m.signal.aborted) try {
4134
- ie = (Te = a == null ? void 0 : a(_context6.t0)) !== null && Te !== void 0 ? Te : g;
4134
+ ie = (Ce = a == null ? void 0 : a(_context6.t0)) !== null && Ce !== void 0 ? Ce : g;
4135
4135
  window.clearTimeout(v), v = window.setTimeout(ae, ie);
4136
4136
  } catch (ie) {
4137
4137
  M(), h(ie);
@@ -4239,7 +4239,7 @@ var A = /*#__PURE__*/function () {
4239
4239
  var u = !1;
4240
4240
  fetch(((h = e.connectSettings) == null ? void 0 : h.url) || e.url || "", s).then(/*#__PURE__*/function () {
4241
4241
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(f) {
4242
- var v, M, m, p, g, _yield$m$read, Y, je, ae, Te, ye;
4242
+ var v, M, m, p, g, _yield$m$read, Y, je, ae, Ce, ye;
4243
4243
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
4244
4244
  while (1) switch (_context8.prev = _context8.next) {
4245
4245
  case 0:
@@ -4284,8 +4284,8 @@ var A = /*#__PURE__*/function () {
4284
4284
  }
4285
4285
  _context8.t0 = ae;
4286
4286
  case 21:
4287
- Te = _context8.t0;
4288
- ye = _typeof(Te) == "object" ? Te : {
4287
+ Ce = _context8.t0;
4288
+ ye = _typeof(Ce) == "object" ? Ce : {
4289
4289
  text: ae
4290
4290
  };
4291
4291
  A.handleMessage(e, t, i, c, ye, o, a);
@@ -5307,7 +5307,7 @@ var He = /*#__PURE__*/function () {
5307
5307
  return _regeneratorRuntime().wrap(function _callee24$(_context24) {
5308
5308
  while (1) switch (_context24.prev = _context24.next) {
5309
5309
  case 0:
5310
- t = De.addMessage(this._messages);
5310
+ t = Be.addMessage(this._messages);
5311
5311
  _context24.next = 3;
5312
5312
  return e();
5313
5313
  case 3:
@@ -5390,7 +5390,7 @@ var He = /*#__PURE__*/function () {
5390
5390
  break;
5391
5391
  }
5392
5392
  _this13._isLoading = !0;
5393
- t = De.addMessage(_this13._messages, !1);
5393
+ t = Be.addMessage(_this13._messages, !1);
5394
5394
  _context25.prev = 3;
5395
5395
  _context25.next = 6;
5396
5396
  return e(_this13._index++);
@@ -5438,7 +5438,7 @@ var He = /*#__PURE__*/function () {
5438
5438
  while (1) switch (_context27.prev = _context27.next) {
5439
5439
  case 0:
5440
5440
  this._isLoading = !0;
5441
- t = De.addMessage(this._messages);
5441
+ t = Be.addMessage(this._messages);
5442
5442
  _context27.prev = 2;
5443
5443
  _context27.next = 5;
5444
5444
  return e(this._index++);
@@ -5940,19 +5940,19 @@ var Si = /*#__PURE__*/function () {
5940
5940
  }
5941
5941
  }]);
5942
5942
  }();
5943
- var ke = /*#__PURE__*/function (_HTMLElement) {
5943
+ var Le = /*#__PURE__*/function (_HTMLElement) {
5944
5944
  // If this is not working, try using propertyName directly
5945
- function ke() {
5945
+ function Le() {
5946
5946
  var _this17;
5947
- _classCallCheck(this, ke);
5948
- _this17 = _callSuper(this, ke), _this17._waitingToRender_ = !1, _this17._propUpdated_ = !1, Object.keys(ke._attributeToProperty_).forEach(function (e) {
5949
- var t = ke._attributeToProperty_[e];
5947
+ _classCallCheck(this, Le);
5948
+ _this17 = _callSuper(this, Le), _this17._waitingToRender_ = !1, _this17._propUpdated_ = !1, Object.keys(Le._attributeToProperty_).forEach(function (e) {
5949
+ var t = Le._attributeToProperty_[e];
5950
5950
  _this17.constructPropertyAccessors(t), _this17.hasOwnProperty(e) || _this17.constructPropertyAccessors(t, e);
5951
5951
  });
5952
5952
  return _this17;
5953
5953
  }
5954
- _inherits(ke, _HTMLElement);
5955
- return _createClass(ke, [{
5954
+ _inherits(Le, _HTMLElement);
5955
+ return _createClass(Le, [{
5956
5956
  key: "constructPropertyAccessors",
5957
5957
  value:
5958
5958
  // need to be called here as accessors need to be set for the class instance
@@ -5971,8 +5971,8 @@ var ke = /*#__PURE__*/function (_HTMLElement) {
5971
5971
  key: "attributeChangedCallback",
5972
5972
  value: function attributeChangedCallback(e, t, i) {
5973
5973
  if (t === i) return;
5974
- var s = ke._attributes_[e](i),
5975
- r = ke._attributeToProperty_[e];
5974
+ var s = Le._attributes_[e](i),
5975
+ r = Le._attributeToProperty_[e];
5976
5976
  this[r] = s;
5977
5977
  }
5978
5978
  }, {
@@ -5981,19 +5981,19 @@ var ke = /*#__PURE__*/function (_HTMLElement) {
5981
5981
  }], [{
5982
5982
  key: "observedAttributes",
5983
5983
  get: function get() {
5984
- return Object.keys(ke._attributes_) || [];
5984
+ return Object.keys(Le._attributes_) || [];
5985
5985
  }
5986
5986
  }]);
5987
5987
  }(/*#__PURE__*/_wrapNativeSuper(HTMLElement));
5988
- ke._attributes_ = {}, ke._attributeToProperty_ = {};
5989
- var ss = ke;
5988
+ Le._attributes_ = {}, Le._attributeToProperty_ = {};
5989
+ var ss = Le;
5990
5990
  var Bo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path d=\"\n\t\t\tM669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536\n\t\t\tc-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764\n\t\t\tc59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033\n\t\t\tl-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888\n\t\t\tc0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541\n\t\t\tc103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174\n\t\t\tc31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763\n\t\t\tc-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z\n\t\t\tM599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897\n\t\t\tc0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854\n\t\t\tc-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513\n\t\t\tL638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z\"\n\t\t\t/>\n</svg>\n",
5991
5991
  Fo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path id=\"path6686\" inkscape:connector-curvature=\"0\" d=\"M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612\n\t\t\tc-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612\n\t\t\tC699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557\n\t\t\tc-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763\n\t\t\tc59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557\n\t\t\tc103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179\n\t\t\tc31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764\n\t\t\tc-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769\n\t\t\tc156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02\n\t\t\tC317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z\"/>\n</svg>\n";
5992
- var Be = /*#__PURE__*/function () {
5993
- function Be() {
5994
- _classCallCheck(this, Be);
5992
+ var Fe = /*#__PURE__*/function () {
5993
+ function Fe() {
5994
+ _classCallCheck(this, Fe);
5995
5995
  }
5996
- return _createClass(Be, null, [{
5996
+ return _createClass(Fe, null, [{
5997
5997
  key: "createSVGElement",
5998
5998
  value: function createSVGElement(e) {
5999
5999
  return new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
@@ -6014,7 +6014,7 @@ var ze = /*#__PURE__*/function () {
6014
6014
  }, {
6015
6015
  key: "createIconElement",
6016
6016
  value: function createIconElement(e, t) {
6017
- var i = Be.createSVGElement(e);
6017
+ var i = Fe.createSVGElement(e);
6018
6018
  return i.id = t, i.classList.add("visibility-icon"), i;
6019
6019
  }
6020
6020
  // prettier-ignore
@@ -7135,11 +7135,11 @@ var jo = /*#__PURE__*/function (_li2) {
7135
7135
  }]);
7136
7136
  }(li);
7137
7137
  var ci = "data:image/png;base64,";
7138
- var Ae = /*#__PURE__*/function () {
7139
- function Ae() {
7140
- _classCallCheck(this, Ae);
7138
+ var Te = /*#__PURE__*/function () {
7139
+ function Te() {
7140
+ _classCallCheck(this, Te);
7141
7141
  }
7142
- return _createClass(Ae, null, [{
7142
+ return _createClass(Te, null, [{
7143
7143
  key: "buildHeaders",
7144
7144
  value: function buildHeaders(e) {
7145
7145
  return {
@@ -7159,7 +7159,7 @@ var Ae = /*#__PURE__*/function () {
7159
7159
  return {
7160
7160
  url: "https://api.stability.ai/v1/engines/list",
7161
7161
  method: "GET",
7162
- handleVerificationResult: Ae.handleVerificationResult
7162
+ handleVerificationResult: Te.handleVerificationResult
7163
7163
  };
7164
7164
  }
7165
7165
  }]);
@@ -7190,7 +7190,7 @@ var wi = /*#__PURE__*/function (_qi) {
7190
7190
  }
7191
7191
  }
7192
7192
  };
7193
- _this27 = _callSuper(this, wi, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, i, s]), _this27.url = "https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale", _this27.textInputPlaceholderText = "Describe image changes", _this27.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Upscale</b></div>\n <p>Upload an image to generate a new one with higher resolution.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7193
+ _this27 = _callSuper(this, wi, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i, s]), _this27.url = "https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale", _this27.textInputPlaceholderText = "Describe image changes", _this27.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Upscale</b></div>\n <p>Upload an image to generate a new one with higher resolution.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7194
7194
  var r = (o = t == null ? void 0 : t.stabilityAI) == null ? void 0 : o.imageToImageUpscale;
7195
7195
  _typeof(r) == "object" && (r.engine_id && (_this27.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/upscale")), wi.cleanConfig(r), Object.assign(_this27.rawBody, r)), _this27.canSendMessage = wi.canSendFileMessage;
7196
7196
  return _this27;
@@ -7297,7 +7297,7 @@ var Ai = /*#__PURE__*/function (_qi2) {
7297
7297
  }
7298
7298
  }
7299
7299
  };
7300
- _this28 = _callSuper(this, Ai, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, i, s]), _this28.url = "https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking", _this28._maskSource = "MASK_IMAGE_WHITE", _this28.textInputPlaceholderText = "Describe image changes", _this28.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Masking</b></div>\n <p>Upload an image, its mask image to create a new one based on the changes you have described for the mask area.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7300
+ _this28 = _callSuper(this, Ai, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i, s]), _this28.url = "https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking", _this28._maskSource = "MASK_IMAGE_WHITE", _this28.textInputPlaceholderText = "Describe image changes", _this28.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Masking</b></div>\n <p>Upload an image, its mask image to create a new one based on the changes you have described for the mask area.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7301
7301
  var r = (o = t == null ? void 0 : t.stabilityAI) == null ? void 0 : o.imageToImageMasking;
7302
7302
  _typeof(r) == "object" && (r.engine_id && (_this28.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/masking")), r.weight !== void 0 && r.weight !== null && (_this28._imageWeight = r.weight), r.mask_source !== void 0 && r.mask_source !== null && (_this28._maskSource = r.mask_source), Ai.cleanConfig(r), Object.assign(_this28.rawBody, r)), _this28.canSendMessage = Ai.canSendFileTextMessage;
7303
7303
  return _this28;
@@ -7666,7 +7666,7 @@ var Ti = /*#__PURE__*/function (_qi3) {
7666
7666
  }
7667
7667
  }
7668
7668
  };
7669
- _this31 = _callSuper(this, Ti, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, i, s]), _this31.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/image-to-image", _this31.textInputPlaceholderText = "Describe image changes", _this31.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI: Image to Image</b></div>\n <p>Upload an image to create a new one with the changes you have described.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7669
+ _this31 = _callSuper(this, Ti, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i, s]), _this31.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/image-to-image", _this31.textInputPlaceholderText = "Describe image changes", _this31.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI: Image to Image</b></div>\n <p>Upload an image to create a new one with the changes you have described.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7670
7670
  var r = (o = t.stabilityAI) == null ? void 0 : o.imageToImage;
7671
7671
  _typeof(r) == "object" && (r.engine_id && (_this31.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/text-to-image")), r.weight !== void 0 && r.weight !== null && (_this31._imageWeight = r.weight), Ti.cleanConfig(r), Object.assign(_this31.rawBody, r)), _this31.canSendMessage = Ti.canSendFileTextMessage;
7672
7672
  return _this31;
@@ -7804,7 +7804,7 @@ var Ci = /*#__PURE__*/function (_qi4) {
7804
7804
  var r;
7805
7805
  var t = JSON.parse(JSON.stringify(e.directConnection)),
7806
7806
  i = t.stabilityAI;
7807
- _this32 = _callSuper(this, Ci, [e, Ae.buildKeyVerificationDetails(), Ae.buildHeaders, i]), _this32.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image", _this32.textInputPlaceholderText = "Describe an image", _this32.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI: Text to Image</b></div>\n <p>Insert text to generate an image.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7807
+ _this32 = _callSuper(this, Ci, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i]), _this32.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image", _this32.textInputPlaceholderText = "Describe an image", _this32.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI: Text to Image</b></div>\n <p>Insert text to generate an image.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
7808
7808
  var s = (r = t.stabilityAI) == null ? void 0 : r.textToImage;
7809
7809
  _typeof(s) == "object" && (s.engine_id && (_this32.url = "https://api.stability.ai/v1/generation/".concat(s.engine_id, "/text-to-image")), s.weight !== void 0 && s.weight !== null && (_this32._imageWeight = s.weight), Ci.cleanConfig(s), Object.assign(_this32.rawBody, s)), _this32.canSendMessage = Ci.canSendTextMessage;
7810
7810
  return _this32;
@@ -8314,7 +8314,7 @@ var ne = /*#__PURE__*/function () {
8314
8314
  }]);
8315
8315
  }();
8316
8316
  ne.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", ne.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
8317
- var Re = ne;
8317
+ var Me = ne;
8318
8318
  var Ge = /*#__PURE__*/function (_G3) {
8319
8319
  // prettier-ignore
8320
8320
  function Ge(e, t, i, s, r, o) {
@@ -8461,7 +8461,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8461
8461
  break;
8462
8462
  }
8463
8463
  _context76.next = 16;
8464
- return Re.storeFiles(this, e, i, this.urlSegments.storeFiles);
8464
+ return Me.storeFiles(this, e, i, this.urlSegments.storeFiles);
8465
8465
  case 16:
8466
8466
  _context76.t1 = _context76.sent;
8467
8467
  _context76.next = 20;
@@ -8544,7 +8544,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8544
8544
  _context78.next = 6;
8545
8545
  break;
8546
8546
  }
8547
- throw e.error.message.startsWith(Re.FILES_WITH_TEXT_ERROR) ? Error("Please send text with your file(s)") : e.error.message;
8547
+ throw e.error.message.startsWith(Me.FILES_WITH_TEXT_ERROR) ? Error("Please send text with your file(s)") : e.error.message;
8548
8548
  case 6:
8549
8549
  _context78.next = 8;
8550
8550
  return this.assignThreadAndRun(e);
@@ -8628,7 +8628,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8628
8628
  case 9:
8629
8629
  i = _context80.sent;
8630
8630
  case 10:
8631
- return _context80.abrupt("return", Re.processAPIMessages(this, i, t, this.urlSegments));
8631
+ return _context80.abrupt("return", Me.processAPIMessages(this, i, t, this.urlSegments));
8632
8632
  case 11:
8633
8633
  case "end":
8634
8634
  return _context80.stop();
@@ -8729,7 +8729,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8729
8729
  _context82.next = 8;
8730
8730
  break;
8731
8731
  }
8732
- throw Error(Re.FUNCTION_TOOL_RESP_ERROR);
8732
+ throw Error(Me.FUNCTION_TOOL_RESP_ERROR);
8733
8733
  case 8:
8734
8734
  _context82.next = 10;
8735
8735
  return Promise.all(i);
@@ -8741,7 +8741,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8741
8741
  _context82.next = 13;
8742
8742
  break;
8743
8743
  }
8744
- throw Error(Re.FUNCTION_TOOL_RESP_ERROR);
8744
+ throw Error(Me.FUNCTION_TOOL_RESP_ERROR);
8745
8745
  case 13:
8746
8746
  r = s.map(function (l, c) {
8747
8747
  return {
@@ -8846,7 +8846,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8846
8846
  }
8847
8847
  l = e.content.find(function (d) {
8848
8848
  return !!d.text;
8849
- }) || e.content[0], c = Re.getFilesAndText.bind(this, this, {
8849
+ }) || e.content[0], c = Me.getFilesAndText.bind(this, this, {
8850
8850
  role: "assistant",
8851
8851
  content: e.content
8852
8852
  }, this.urlSegments, l);
@@ -8870,7 +8870,7 @@ var Ge = /*#__PURE__*/function (_G3) {
8870
8870
  break;
8871
8871
  }
8872
8872
  _context84.next = 11;
8873
- return Re.processStreamMessages(this, e.delta.content, this.urlSegments);
8873
+ return Me.processStreamMessages(this, e.delta.content, this.urlSegments);
8874
8874
  case 11:
8875
8875
  _l = _context84.sent;
8876
8876
  return _context84.abrupt("return", {
@@ -9319,7 +9319,7 @@ var Ln = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\"
9319
9319
  }, {
9320
9320
  key: "tryAddSVGElement",
9321
9321
  value: function tryAddSVGElement(e, t, i, s) {
9322
- i ? e.push(Be.createSVGElement(i)) : i !== "" && s && e.push(t);
9322
+ i ? e.push(Fe.createSVGElement(i)) : i !== "" && s && e.push(t);
9323
9323
  }
9324
9324
  }, {
9325
9325
  key: "createCustomElements",
@@ -9340,8 +9340,8 @@ var Ln = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\"
9340
9340
  }
9341
9341
  }]);
9342
9342
  }();
9343
- re.INPUT_BUTTON_SVG_CLASS = "input-button-svg", re.INPUT_BUTTON_SVG_TEXT_CLASS = "input-button-svg-text", re.INPUT_BUTTON_INNER_TEXT_CLASS = "text-button";
9344
- var Fe = re;
9343
+ re.INPUT_BUTTON_SVG_TEXT_CLASS = "input-button-svg-text", re.INPUT_BUTTON_INNER_TEXT_CLASS = "text-button", re.INPUT_BUTTON_SVG_CLASS = "input-button-svg";
9344
+ var Ae = re;
9345
9345
  var Gt = /*#__PURE__*/function () {
9346
9346
  function Gt() {
9347
9347
  _classCallCheck(this, Gt);
@@ -9406,7 +9406,7 @@ var lt = /*#__PURE__*/function () {
9406
9406
  _classCallCheck(this, lt);
9407
9407
  this._mouseState = {
9408
9408
  state: "default"
9409
- }, this.isCustom = !1, N.addAttributes(e), this.elementRef = e, this.svg = Be.createSVGElement(t), this.customStyles = s, this.position = i, this.dropupText = r;
9409
+ }, this.isCustom = !1, N.addAttributes(e), this.elementRef = e, this.svg = Fe.createSVGElement(t), this.customStyles = s, this.position = i, this.dropupText = r;
9410
9410
  }
9411
9411
  return _createClass(lt, [{
9412
9412
  key: "buttonMouseLeave",
@@ -9455,7 +9455,7 @@ var lt = /*#__PURE__*/function () {
9455
9455
  key: "changeElementsByState",
9456
9456
  value: function changeElementsByState(e) {
9457
9457
  var _this$elementRef;
9458
- (_this$elementRef = this.elementRef).replaceChildren.apply(_this$elementRef, _toConsumableArray(e)), Fe.reassignClassBasedOnChildren(this.elementRef, e);
9458
+ (_this$elementRef = this.elementRef).replaceChildren.apply(_this$elementRef, _toConsumableArray(e)), Ae.reassignClassBasedOnChildren(this.elementRef, e);
9459
9459
  }
9460
9460
  }, {
9461
9461
  key: "buildDefaultIconElement",
@@ -9466,7 +9466,7 @@ var lt = /*#__PURE__*/function () {
9466
9466
  }, {
9467
9467
  key: "createInnerElements",
9468
9468
  value: function createInnerElements(e, t, i) {
9469
- var s = Fe.createCustomElements(t, this.svg, i);
9469
+ var s = Ae.createCustomElements(t, this.svg, i);
9470
9470
  if (s && s.length > 0) {
9471
9471
  if (this.position === "dropup-menu") {
9472
9472
  var r = this.svg.cloneNode(!0);
@@ -9500,24 +9500,29 @@ var Fi = /*#__PURE__*/function (_lt) {
9500
9500
  }, {
9501
9501
  key: "createInnerButtonElements",
9502
9502
  value: function createInnerButtonElements(e, t) {
9503
- return Fe.createCustomElements(e, this.svg, t) || [this.svg];
9503
+ return Ae.createCustomElements(e, this.svg, t) || [this.svg];
9504
+ }
9505
+ }, {
9506
+ key: "changeState",
9507
+ value: function changeState(e) {
9508
+ this.changeElementsByState(e), this.elementRef.classList.replace(Ae.INPUT_BUTTON_SVG_CLASS, "deep-chat-openai-realtime-button");
9504
9509
  }
9505
9510
  }, {
9506
9511
  key: "changeToActive",
9507
9512
  value: function changeToActive() {
9508
- this.changeElementsByState(this._innerElements.active), this.reapplyStateStyle("active", ["unavailable", "default"]), this.isActive = !0;
9513
+ this.changeState(this._innerElements.active), this.reapplyStateStyle("active", ["unavailable", "default"]), this.isActive = !0;
9509
9514
  }
9510
9515
  }, {
9511
9516
  key: "changeToDefault",
9512
9517
  value: function changeToDefault() {
9513
9518
  var e, t, i, s;
9514
- this.changeElementsByState(this._innerElements["default"]), (e = this.customStyles) != null && e.active && D.unsetAllCSS(this.elementRef, (t = this.customStyles) == null ? void 0 : t.active), (i = this.customStyles) != null && i.unavailable && D.unsetAllCSS(this.elementRef, (s = this.customStyles) == null ? void 0 : s.unavailable), this.reapplyStateStyle("default", ["active", "unavailable"]), this.isActive = !1;
9519
+ this.changeState(this._innerElements["default"]), (e = this.customStyles) != null && e.active && D.unsetAllCSS(this.elementRef, (t = this.customStyles) == null ? void 0 : t.active), (i = this.customStyles) != null && i.unavailable && D.unsetAllCSS(this.elementRef, (s = this.customStyles) == null ? void 0 : s.unavailable), this.reapplyStateStyle("default", ["active", "unavailable"]), this.isActive = !1;
9515
9520
  }
9516
9521
  }, {
9517
9522
  key: "changeToUnavailable",
9518
9523
  value: function changeToUnavailable() {
9519
9524
  var e, t, i, s;
9520
- this.changeElementsByState(this._innerElements.unavailable), (e = this.customStyles) != null && e.active && D.unsetAllCSS(this.elementRef, (t = this.customStyles) == null ? void 0 : t.active), (i = this.customStyles) != null && i["default"] && D.unsetAllCSS(this.elementRef, (s = this.customStyles) == null ? void 0 : s["default"]), this.reapplyStateStyle("unavailable", ["default", "active"]), this.isActive = !1;
9525
+ this.changeState(this._innerElements.unavailable), (e = this.customStyles) != null && e.active && D.unsetAllCSS(this.elementRef, (t = this.customStyles) == null ? void 0 : t.active), (i = this.customStyles) != null && i["default"] && D.unsetAllCSS(this.elementRef, (s = this.customStyles) == null ? void 0 : s["default"]), this.reapplyStateStyle("unavailable", ["default", "active"]), this.isActive = !1;
9521
9526
  }
9522
9527
  }]);
9523
9528
  }(lt);
@@ -9784,7 +9789,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9784
9789
  var _this42 = this;
9785
9790
  var t;
9786
9791
  var e = new ki((t = this._buttonsConfig) == null ? void 0 : t.microphone);
9787
- return e.elementRef.classList.replace("input-button-svg", "deep-chat-openai-realtime-button"), e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-mute"), e.elementRef.onclick = function () {
9792
+ return e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-mute"), e.elementRef.onclick = function () {
9788
9793
  e.isActive ? (_this42.toggleMute(!0), e.elementRef.classList.replace(C.MUTE_ACTIVE, C.BUTTON_DEFAULT), e.changeToDefault(), _this42._isMuted = !1) : (_this42.toggleMute(!1), e.elementRef.classList.replace(C.BUTTON_DEFAULT, C.MUTE_ACTIVE), N.removeAriaAttributes(e.elementRef), e.changeToActive(), _this42._isMuted = !0);
9789
9794
  }, e;
9790
9795
  }
@@ -9802,7 +9807,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9802
9807
  var _this43 = this;
9803
9808
  var t;
9804
9809
  var e = new ki((t = this._buttonsConfig) == null ? void 0 : t.toggle);
9805
- return e.elementRef.classList.replace("input-button-svg", "deep-chat-openai-realtime-button"), e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-toggle"), e.elementRef.onclick = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee93() {
9810
+ return e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-toggle"), e.elementRef.onclick = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee93() {
9806
9811
  var i, s;
9807
9812
  return _regeneratorRuntime().wrap(function _callee93$(_context93) {
9808
9813
  while (1) switch (_context93.prev = _context93.next) {
@@ -12027,7 +12032,7 @@ var ta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
12027
12032
  key: "createAudioElement",
12028
12033
  value: function createAudioElement(e, t) {
12029
12034
  var i = document.createElement("audio");
12030
- return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, Ne.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(t === y.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
12035
+ return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, De.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(t === y.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
12031
12036
  }
12032
12037
  }, {
12033
12038
  key: "createNewAudioMessage",
@@ -12046,7 +12051,7 @@ var ta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
12046
12051
  t.classList.add("any-file-message-contents");
12047
12052
  var i = document.createElement("div");
12048
12053
  i.classList.add("any-file-message-icon-container");
12049
- var s = Be.createSVGElement(ta);
12054
+ var s = Fe.createSVGElement(ta);
12050
12055
  s.classList.add("any-file-message-icon"), i.appendChild(s);
12051
12056
  var r = document.createElement("div");
12052
12057
  return r.classList.add("any-file-message-text"), r.textContent = e.name || H.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), H.processContent("any", t, e.src, r.textContent);
@@ -12246,7 +12251,7 @@ var de = /*#__PURE__*/function (_he) {
12246
12251
  if (_typeof(e) == "object") {
12247
12252
  if (!t && e.displayLoading) {
12248
12253
  var s = e.displayLoading.history;
12249
- s != null && s.small && De.addMessage(this, !1), s != null && s.full && De.addMessage(this);
12254
+ s != null && s.small && Be.addMessage(this, !1), s != null && s.full && Be.addMessage(this);
12250
12255
  }
12251
12256
  e.displayErrors && (e.displayErrors["default"] && this.addNewErrorMessage("", ""), e.displayErrors.service && this.addNewErrorMessage("service", ""), e.displayErrors.speechToText && this.addNewErrorMessage("speechToText", "")), (i = e.displayLoading) != null && i.message && this.addLoadingMessage(), e.response && (this.customDemoResponse = e.response);
12252
12257
  }
@@ -12399,9 +12404,9 @@ var de = /*#__PURE__*/function (_he) {
12399
12404
  value: function addDefaultLoadingMessage() {
12400
12405
  var e = this.createMessageElements("", y.AI_ROLE),
12401
12406
  t = e.bubbleElement;
12402
- e.bubbleElement.classList.add(Pe.DOTS_CONTAINER_CLASS);
12407
+ e.bubbleElement.classList.add(Ne.DOTS_CONTAINER_CLASS);
12403
12408
  var i = document.createElement("div");
12404
- return i.classList.add("loading-message-dots"), t.appendChild(i), Pe.setDots(t, this.messageStyles), e;
12409
+ return i.classList.add("loading-message-dots"), t.appendChild(i), Ne.setDots(t, this.messageStyles), e;
12405
12410
  }
12406
12411
  }, {
12407
12412
  key: "addLoadingMessage",
@@ -12412,7 +12417,7 @@ var de = /*#__PURE__*/function (_he) {
12412
12417
  if (he.isLoadingMessage(t) || !e && !this._isLoadingMessageAllowed) return;
12413
12418
  var i = (a = (o = (r = this.messageStyles) == null ? void 0 : r.loading) == null ? void 0 : o.message) == null ? void 0 : a.html,
12414
12419
  s = i ? _e.createElements(this, i, y.AI_ROLE, !1) : this.addDefaultLoadingMessage();
12415
- this.appendOuterContainerElemet(s.outerContainer), s.bubbleElement.classList.add(Pe.BUBBLE_CLASS), this.applyCustomStyles(s, y.AI_ROLE, !1, (d = (c = (l = this.messageStyles) == null ? void 0 : l.loading) == null ? void 0 : c.message) == null ? void 0 : d.styles), this.focusMode || X.scrollToBottom(this.elementRef);
12420
+ this.appendOuterContainerElemet(s.outerContainer), s.bubbleElement.classList.add(Ne.BUBBLE_CLASS), this.applyCustomStyles(s, y.AI_ROLE, !1, (d = (c = (l = this.messageStyles) == null ? void 0 : l.loading) == null ? void 0 : c.message) == null ? void 0 : d.styles), this.focusMode || X.scrollToBottom(this.elementRef);
12416
12421
  }
12417
12422
  }, {
12418
12423
  key: "populateIntroPanel",
@@ -12497,7 +12502,7 @@ var de = /*#__PURE__*/function (_he) {
12497
12502
  }, {
12498
12503
  key: "isActiveElement",
12499
12504
  value: function isActiveElement(e) {
12500
- return e ? e.contains(Pe.BUBBLE_CLASS) || e.contains(De.CLASS) || e.contains(we.MESSAGE_CLASS) : !1;
12505
+ return e ? e.contains(Ne.BUBBLE_CLASS) || e.contains(Be.CLASS) || e.contains(we.MESSAGE_CLASS) : !1;
12501
12506
  }
12502
12507
  }]);
12503
12508
  }(he);
@@ -12613,7 +12618,7 @@ var Js = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "micropho
12613
12618
  var u;
12614
12619
  return ((u = d.svg) == null ? void 0 : u.content) === "";
12615
12620
  });
12616
- l.classList.contains(Fe.INPUT_BUTTON_INNER_TEXT_CLASS) ? (c || t.appendChild(Q.createItemIcon(o, i == null ? void 0 : i.iconContainer)), t.appendChild(Q.createItemText(l.textContent, i == null ? void 0 : i.text))) : (c || t.appendChild(Q.createItemIcon(s.children[0], i == null ? void 0 : i.iconContainer)), t.appendChild(Q.createItemText(r, i == null ? void 0 : i.text)));
12621
+ l.classList.contains(Ae.INPUT_BUTTON_INNER_TEXT_CLASS) ? (c || t.appendChild(Q.createItemIcon(o, i == null ? void 0 : i.iconContainer)), t.appendChild(Q.createItemText(l.textContent, i == null ? void 0 : i.text))) : (c || t.appendChild(Q.createItemIcon(s.children[0], i == null ? void 0 : i.iconContainer)), t.appendChild(Q.createItemText(r, i == null ? void 0 : i.text)));
12617
12622
  }
12618
12623
  }, {
12619
12624
  key: "createItem",
@@ -14506,32 +14511,32 @@ var Zt = /*#__PURE__*/function (_Hi) {
14506
14511
  }(Hi);
14507
14512
  Zt.MICROPHONE_RESET_TIMEOUT_MS = 300;
14508
14513
  var ri = Zt;
14509
- var Oe = /*#__PURE__*/function () {
14514
+ var Pe = /*#__PURE__*/function () {
14510
14515
  // prettier-ignore
14511
- function Oe(e, t, i, s) {
14516
+ function Pe(e, t, i, s) {
14512
14517
  var _this77 = this;
14513
- _classCallCheck(this, Oe);
14518
+ _classCallCheck(this, Pe);
14514
14519
  this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", t.maxNumberOfFiles && (this._fileCountLimit = t.maxNumberOfFiles), this._toggleContainerDisplay = i, this._fileAttachmentsContainerRef = s, t.acceptedFormats && (this._acceptedFormat = t.acceptedFormats), setTimeout(function () {
14515
14520
  _this77._validationHandler = e._validationHandler;
14516
14521
  });
14517
14522
  }
14518
- return _createClass(Oe, [{
14523
+ return _createClass(Pe, [{
14519
14524
  key: "attemptAddFile",
14520
14525
  value: function attemptAddFile(e, t) {
14521
- return Oe.isFileTypeValid(e, this._acceptedFormat) ? (this.addAttachmentBasedOnType(e, t, !0), !0) : !1;
14526
+ return Pe.isFileTypeValid(e, this._acceptedFormat) ? (this.addAttachmentBasedOnType(e, t, !0), !0) : !1;
14522
14527
  }
14523
14528
  }, {
14524
14529
  key: "addAttachmentBasedOnType",
14525
14530
  value: function addAttachmentBasedOnType(e, t, i) {
14526
- var s = Oe.getTypeFromBlob(e);
14531
+ var s = Pe.getTypeFromBlob(e);
14527
14532
  if (s === "image") {
14528
- var r = Oe.createImageAttachment(t);
14533
+ var r = Pe.createImageAttachment(t);
14529
14534
  this.addFileAttachment(e, "image", r, i);
14530
14535
  } else if (s === "audio") {
14531
14536
  var _r2 = oi.createAudioAttachment(t);
14532
14537
  this.addFileAttachment(e, "audio", _r2, i);
14533
14538
  } else {
14534
- var _r3 = Oe.createAnyFileAttachment(e.name);
14539
+ var _r3 = Pe.createAnyFileAttachment(e.name);
14535
14540
  this.addFileAttachment(e, "any", _r3, i);
14536
14541
  }
14537
14542
  }
@@ -14539,7 +14544,7 @@ var Oe = /*#__PURE__*/function () {
14539
14544
  key: "addFileAttachment",
14540
14545
  value: function addFileAttachment(e, t, i, s) {
14541
14546
  var a;
14542
- var r = Oe.createContainer(i);
14547
+ var r = Pe.createContainer(i);
14543
14548
  if (this._attachments.length >= this._fileCountLimit) {
14544
14549
  var l = this._attachments[this._attachments.length - 1].removeButton;
14545
14550
  l == null || l.click();
@@ -14625,7 +14630,7 @@ var Oe = /*#__PURE__*/function () {
14625
14630
  key: "createAnyFileAttachment",
14626
14631
  value: function createAnyFileAttachment(e) {
14627
14632
  var t = document.createElement("div");
14628
- t.classList.add("border-bound-attachment"), Ne.IS_SAFARI && t.classList.add("border-bound-attachment-safari");
14633
+ t.classList.add("border-bound-attachment"), De.IS_SAFARI && t.classList.add("border-bound-attachment-safari");
14629
14634
  var i = document.createElement("div");
14630
14635
  i.classList.add("any-file-attachment-text");
14631
14636
  var s = document.createElement("div");
@@ -14639,19 +14644,19 @@ var Oe = /*#__PURE__*/function () {
14639
14644
  }
14640
14645
  }]);
14641
14646
  }();
14642
- var Le = /*#__PURE__*/function (_Oe) {
14647
+ var Ie = /*#__PURE__*/function (_Pe) {
14643
14648
  // prettier-ignore
14644
- function Le(e, t, i, s) {
14645
- _classCallCheck(this, Le);
14646
- return _callSuper(this, Le, [e, t, i, s]);
14649
+ function Ie(e, t, i, s) {
14650
+ _classCallCheck(this, Ie);
14651
+ return _callSuper(this, Ie, [e, t, i, s]);
14647
14652
  }
14648
- _inherits(Le, _Oe);
14649
- return _createClass(Le, [{
14653
+ _inherits(Ie, _Pe);
14654
+ return _createClass(Ie, [{
14650
14655
  key: "createTimer",
14651
14656
  value: function createTimer(e, t) {
14652
14657
  var _this78 = this;
14653
14658
  var i = 0;
14654
- var s = t !== void 0 && t < Le.TIMER_LIMIT_S ? t : Le.TIMER_LIMIT_S;
14659
+ var s = t !== void 0 && t < Ie.TIMER_LIMIT_S ? t : Ie.TIMER_LIMIT_S;
14655
14660
  return setInterval(function () {
14656
14661
  var a;
14657
14662
  i += 1, i === s && ((a = _this78.stopPlaceholderCallback) == null || a.call(_this78), _this78.clearTimer()), i === 600 && e.classList.add("audio-placeholder-text-4-digits");
@@ -14663,12 +14668,12 @@ var Le = /*#__PURE__*/function (_Oe) {
14663
14668
  }, {
14664
14669
  key: "createPlaceholderAudioAttachment",
14665
14670
  value: function createPlaceholderAudioAttachment(e) {
14666
- var t = Le.createAudioContainer(),
14671
+ var t = Ie.createAudioContainer(),
14667
14672
  i = document.createElement("div");
14668
14673
  i.classList.add("audio-placeholder-text-3-digits");
14669
14674
  var s = document.createElement("div");
14670
14675
  s.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), s.appendChild(i);
14671
- var r = Be.createSVGElement(os);
14676
+ var r = Fe.createSVGElement(os);
14672
14677
  return r.classList.add("attachment-icon", "stop-icon", "not-removable-attachment-icon"), i.textContent = "0:00", this._activePlaceholderTimer = this.createTimer(i, e), t.appendChild(s), this.addPlaceholderAudioAttachmentEvents(t, r, s), t;
14673
14678
  }
14674
14679
  }, {
@@ -14700,7 +14705,7 @@ var Le = /*#__PURE__*/function (_Oe) {
14700
14705
  key: "completePlaceholderAttachment",
14701
14706
  value: function completePlaceholderAttachment(e, t) {
14702
14707
  var i = this._activePlaceholderAttachment;
14703
- i && (i.file = e, Le.addAudioElements(i.attachmentContainerElement.children[0], t), i.removeButton = this.createRemoveAttachmentButton(i), i.attachmentContainerElement.appendChild(i.removeButton), this._activePlaceholderAttachment = void 0, this.clearTimer());
14708
+ i && (i.file = e, Ie.addAudioElements(i.attachmentContainerElement.children[0], t), i.removeButton = this.createRemoveAttachmentButton(i), i.attachmentContainerElement.appendChild(i.removeButton), this._activePlaceholderAttachment = void 0, this.clearTimer());
14704
14709
  }
14705
14710
  }, {
14706
14711
  key: "removePlaceholderAttachment",
@@ -14716,7 +14721,7 @@ var Le = /*#__PURE__*/function (_Oe) {
14716
14721
  key: "createAudioContainer",
14717
14722
  value: function createAudioContainer() {
14718
14723
  var e = document.createElement("div");
14719
- return e.classList.add("border-bound-attachment", "audio-attachment-icon-container"), Ne.IS_SAFARI && e.classList.add("border-bound-attachment-safari"), e;
14724
+ return e.classList.add("border-bound-attachment", "audio-attachment-icon-container"), De.IS_SAFARI && e.classList.add("border-bound-attachment-safari"), e;
14720
14725
  }
14721
14726
  }, {
14722
14727
  key: "addAudioElements",
@@ -14724,9 +14729,9 @@ var Le = /*#__PURE__*/function (_Oe) {
14724
14729
  var i = e.parentElement ? X.cloneElement(e) : e,
14725
14730
  s = document.createElement("audio");
14726
14731
  s.src = t;
14727
- var r = Be.createSVGElement(In);
14732
+ var r = Fe.createSVGElement(In);
14728
14733
  r.classList.add("attachment-icon", "play-icon");
14729
- var o = Be.createSVGElement(os);
14734
+ var o = Fe.createSVGElement(os);
14730
14735
  o.classList.add("attachment-icon", "stop-icon"), i.replaceChildren(r), s.onplay = function () {
14731
14736
  i.replaceChildren(o);
14732
14737
  }, s.onpause = function () {
@@ -14740,8 +14745,8 @@ var Le = /*#__PURE__*/function (_Oe) {
14740
14745
  }, {
14741
14746
  key: "createAudioAttachment",
14742
14747
  value: function createAudioAttachment(e) {
14743
- var t = Le.createAudioContainer();
14744
- return Le.addAudioElements(t, e), t;
14748
+ var t = Ie.createAudioContainer();
14749
+ return Ie.addAudioElements(t, e), t;
14745
14750
  }
14746
14751
  }, {
14747
14752
  key: "stopAttachmentPlayback",
@@ -14750,9 +14755,9 @@ var Le = /*#__PURE__*/function (_Oe) {
14750
14755
  (s = (i = (t = e.children[0]) == null ? void 0 : t.children) == null ? void 0 : i[0]) != null && s.classList.contains("stop-icon") && e.children[0].click();
14751
14756
  }
14752
14757
  }]);
14753
- }(Oe);
14754
- Le.TIMER_LIMIT_S = 5999;
14755
- var oi = Le;
14758
+ }(Pe);
14759
+ Ie.TIMER_LIMIT_S = 5999;
14760
+ var oi = Ie;
14756
14761
  var Ra = /*#__PURE__*/function () {
14757
14762
  function Ra() {
14758
14763
  _classCallCheck(this, Ra);
@@ -14762,7 +14767,7 @@ var Ra = /*#__PURE__*/function () {
14762
14767
  value:
14763
14768
  // prettier-ignore
14764
14769
  function create(e, t, i, s, r) {
14765
- return r === "audio" ? new oi(e, t, i, s) : new Oe(e, t, i, s);
14770
+ return r === "audio" ? new oi(e, t, i, s) : new Pe(e, t, i, s);
14766
14771
  }
14767
14772
  }]);
14768
14773
  }();
@@ -14961,7 +14966,7 @@ var ge = /*#__PURE__*/function () {
14961
14966
  value: function createSVGButton(e) {
14962
14967
  var t = document.createElement("div");
14963
14968
  t.classList.add("modal-button", "modal-svg-button");
14964
- var i = Be.createSVGElement(e);
14969
+ var i = Fe.createSVGElement(e);
14965
14970
  return i.classList.add("modal-svg-button-icon"), t.appendChild(i), t;
14966
14971
  }
14967
14972
  }, {
@@ -15034,15 +15039,15 @@ var Ni = /*#__PURE__*/function (_lt5) {
15034
15039
  }
15035
15040
  }]);
15036
15041
  }(lt);
15037
- var Ie = /*#__PURE__*/function () {
15038
- function Ie() {
15039
- _classCallCheck(this, Ie);
15042
+ var Oe = /*#__PURE__*/function () {
15043
+ function Oe() {
15044
+ _classCallCheck(this, Oe);
15040
15045
  }
15041
- return _createClass(Ie, null, [{
15046
+ return _createClass(Oe, null, [{
15042
15047
  key: "create",
15043
15048
  value: function create(e, t, i) {
15044
- var s = Ie.createElement(i);
15045
- Ie.addEvents(s, e, t), e.appendChild(s);
15049
+ var s = Oe.createElement(i);
15050
+ Oe.addEvents(s, e, t), e.appendChild(s);
15046
15051
  }
15047
15052
  }, {
15048
15053
  key: "createElement",
@@ -15054,13 +15059,13 @@ var Ie = /*#__PURE__*/function () {
15054
15059
  key: "addEvents",
15055
15060
  value: function addEvents(e, t, i) {
15056
15061
  t.ondragenter = function (s) {
15057
- s.preventDefault(), Ie.display(e);
15062
+ s.preventDefault(), Oe.display(e);
15058
15063
  }, e.ondragleave = function (s) {
15059
- s.preventDefault(), Ie.hide(e);
15064
+ s.preventDefault(), Oe.hide(e);
15060
15065
  }, e.ondragover = function (s) {
15061
15066
  s.preventDefault();
15062
15067
  }, e.ondrop = function (s) {
15063
- s.preventDefault(), Ie.uploadFile(i, s), Ie.hide(e);
15068
+ s.preventDefault(), Oe.uploadFile(i, s), Oe.hide(e);
15064
15069
  };
15065
15070
  }
15066
15071
  }, {
@@ -15333,21 +15338,21 @@ var P = /*#__PURE__*/function (_lt6) {
15333
15338
  key: "createCustomElements",
15334
15339
  value: function createCustomElements() {
15335
15340
  var _this89 = this;
15336
- var e = Fe.createCustomElements("submit", this.svg, this.customStyles),
15341
+ var e = Ae.createCustomElements("submit", this.svg, this.customStyles),
15337
15342
  t = {
15338
15343
  loading: void 0,
15339
15344
  stop: void 0
15340
15345
  };
15341
15346
  return Object.keys(t).forEach(function (i) {
15342
15347
  var s = i,
15343
- r = Fe.createCustomElements(s, _this89.svg, _this89.customStyles);
15348
+ r = Ae.createCustomElements(s, _this89.svg, _this89.customStyles);
15344
15349
  r && (t[s] = r);
15345
15350
  }), t.submit = e || this.buildDefaultIconElement("submit-icon"), t;
15346
15351
  }
15347
15352
  }, {
15348
15353
  key: "createDisabledIconElement",
15349
15354
  value: function createDisabledIconElement(e) {
15350
- return Fe.createCustomElements("disabled", this.svg, this.customStyles) || [e[0].cloneNode(!0)];
15355
+ return Ae.createCustomElements("disabled", this.svg, this.customStyles) || [e[0].cloneNode(!0)];
15351
15356
  }
15352
15357
  // prettier-ignore
15353
15358
  }, {
@@ -15432,7 +15437,7 @@ var P = /*#__PURE__*/function (_lt6) {
15432
15437
  e.files && (t.files = Array.from(e.files).map(function (i) {
15433
15438
  return {
15434
15439
  file: i,
15435
- type: Oe.getTypeFromBlob(i)
15440
+ type: Pe.getTypeFromBlob(i)
15436
15441
  };
15437
15442
  })), setTimeout(function () {
15438
15443
  return _this90.attemptSubmit(t, !0);
@@ -15620,7 +15625,7 @@ var Cs = /*#__PURE__*/function (_et) {
15620
15625
  var _this92$addButtonsAnd = _this92.addButtonsAndTheirEvents(t),
15621
15626
  r = _this92$addButtonsAnd.captureButton,
15622
15627
  o = _this92$addButtonsAnd.submitButton;
15623
- _this92._captureButton = r, _this92._submitButton = o, _this92._captureIcon = _this92._captureButton.children[0], _this92._refreshIcon = Be.createSVGElement(La), _this92._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this92._format = "image/jpeg"), s != null && s.dimensions && (_this92._dimensions = s.dimensions), _this92._contentRef.appendChild(_this92._canvas), _this92.extensionCloseCallback = _this92.stop;
15628
+ _this92._captureButton = r, _this92._submitButton = o, _this92._captureIcon = _this92._captureButton.children[0], _this92._refreshIcon = Fe.createSVGElement(La), _this92._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this92._format = "image/jpeg"), s != null && s.dimensions && (_this92._dimensions = s.dimensions), _this92._contentRef.appendChild(_this92._canvas), _this92.extensionCloseCallback = _this92.stop;
15624
15629
  return _this92;
15625
15630
  }
15626
15631
  _inherits(Cs, _et);
@@ -15795,7 +15800,7 @@ var Kt = /*#__PURE__*/function () {
15795
15800
  button: new Ma(_d, t.recordAudio)
15796
15801
  };
15797
15802
  }
15798
- return Ie.isEnabled(r, e.dragAndDrop) && Ie.create(i, r, e.dragAndDrop), r;
15803
+ return Oe.isEnabled(r, e.dragAndDrop) && Oe.create(i, r, e.dragAndDrop), r;
15799
15804
  }
15800
15805
  // prettier-ignore
15801
15806
  }], [{
@@ -15857,7 +15862,7 @@ var Ms = /*#__PURE__*/function () {
15857
15862
  }
15858
15863
  }]);
15859
15864
  }();
15860
- 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{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%);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}";
15865
+ 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}";
15861
15866
  var Ba = Object.defineProperty,
15862
15867
  w = function w(n, e, t, i) {
15863
15868
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);