deep-chat-dev 9.0.236 → 9.0.237

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
@@ -31,11 +31,11 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
31
31
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
32
32
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
33
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
34
- var Bn = /*#__PURE__*/function () {
35
- function Bn() {
36
- _classCallCheck(this, Bn);
34
+ var Dn = /*#__PURE__*/function () {
35
+ function Dn() {
36
+ _classCallCheck(this, Dn);
37
37
  }
38
- return _createClass(Bn, null, [{
38
+ return _createClass(Dn, null, [{
39
39
  key: "render",
40
40
  value: function render(e, t) {
41
41
  var i = document.createElement("div");
@@ -64,7 +64,7 @@ var bi = /*#__PURE__*/function () {
64
64
  var s = bi.createElements(),
65
65
  r = {
66
66
  onSuccess: t,
67
- onFail: Bn.render.bind(this, e, "Your 'key' has failed authentication"),
67
+ onFail: Dn.render.bind(this, e, "Your 'key' has failed authentication"),
68
68
  onLoad: bi.onLoad.bind(this, s)
69
69
  };
70
70
  i.key && i.verifyKey(i.key, r), e.replaceChildren(s);
@@ -251,12 +251,12 @@ var $e = /*#__PURE__*/function () {
251
251
  }]);
252
252
  }();
253
253
  $e.PERMITTED_KEYS = /* @__PURE__ */new Set([j.BACKSPACE, j.DELETE, j.ARROW_RIGHT, j.ARROW_LEFT, j.ARROW_DOWN, j.ARROW_UP, j.META, j.CONTROL, j.ENTER]);
254
- var Zi = $e;
255
- var Fn = /*#__PURE__*/function () {
256
- function Fn() {
257
- _classCallCheck(this, Fn);
254
+ var Yi = $e;
255
+ var Bn = /*#__PURE__*/function () {
256
+ function Bn() {
257
+ _classCallCheck(this, Bn);
258
258
  }
259
- return _createClass(Fn, null, [{
259
+ return _createClass(Bn, null, [{
260
260
  key: "sanitizePastedTextContent",
261
261
  value: function sanitizePastedTextContent(e) {
262
262
  var i, s;
@@ -273,7 +273,7 @@ var We = /*#__PURE__*/function () {
273
273
  var r, o;
274
274
  var s = We.processConfig(t, e.textInput);
275
275
  this.elementRef = We.createContainerElement((r = s == null ? void 0 : s.styles) == null ? void 0 : r.container), this._config = s, this.inputElementRef = this.createInputElement(), this.elementRef.appendChild(this.inputElementRef), e.setPlaceholderText = this.setPlaceholderText.bind(this), e.setPlaceholderText(((o = this._config.placeholder) == null ? void 0 : o.text) || "Ask me anything!"), setTimeout(function () {
276
- Zi.add(_this.inputElementRef, i, _this._config.characterLimit, e._validationHandler);
276
+ Yi.add(_this.inputElementRef, i, _this._config.characterLimit, e._validationHandler);
277
277
  });
278
278
  }
279
279
  return _createClass(We, [{
@@ -308,7 +308,7 @@ var We = /*#__PURE__*/function () {
308
308
  (t = this._config.styles) != null && t.focus && (e.onfocus = function () {
309
309
  var s;
310
310
  return Object.assign(_this2.elementRef.style, (s = _this2._config.styles) == null ? void 0 : s.focus);
311
- }, e.onblur = this.onBlur.bind(this, this._config.styles.focus, (i = this._config.styles) == null ? void 0 : i.container)), e.addEventListener("keydown", this.onKeydown.bind(this)), e.addEventListener("input", this.onInput.bind(this)), e.addEventListener("paste", Fn.sanitizePastedTextContent);
311
+ }, e.onblur = this.onBlur.bind(this, this._config.styles.focus, (i = this._config.styles) == null ? void 0 : i.container)), e.addEventListener("keydown", this.onKeydown.bind(this)), e.addEventListener("input", this.onInput.bind(this)), e.addEventListener("paste", Bn.sanitizePastedTextContent);
312
312
  }
313
313
  }, {
314
314
  key: "onBlur",
@@ -391,39 +391,39 @@ var li = /*#__PURE__*/function () {
391
391
  }
392
392
  }]);
393
393
  }();
394
- function Is(n) {
394
+ function Ls(n) {
395
395
  return n.charAt(0).toUpperCase() + n.slice(1);
396
396
  }
397
- function Un(n) {
397
+ function Fn(n) {
398
398
  return n && JSON.stringify(n);
399
399
  }
400
- function ys(n, e, t, i) {
401
- var s = "\n".concat(Is(e), " message: ").concat(JSON.stringify(n), " \n"),
402
- r = t ? "".concat(Is(e), " message after interceptor: ").concat(Un(i), " \n") : "";
400
+ function bs(n, e, t, i) {
401
+ var s = "\n".concat(Ls(e), " message: ").concat(JSON.stringify(n), " \n"),
402
+ r = t ? "".concat(Ls(e), " message after interceptor: ").concat(Fn(i), " \n") : "";
403
403
  return s + r;
404
404
  }
405
- function jn(n, e, t, i) {
406
- return "".concat(ys(n, e, t, i), "Make sure the ").concat(e, " message is using the Response format: https://deepchat.dev/docs/connect/#Response \nYou can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor");
405
+ function Un(n, e, t, i) {
406
+ return "".concat(bs(n, e, t, i), "Make sure the ").concat(e, " message is using the Response format: https://deepchat.dev/docs/connect/#Response \nYou can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor");
407
407
  }
408
- function qn(n, e, t) {
408
+ function jn(n, e, t) {
409
409
  var i = "response";
410
- return "".concat(ys(n, i, e, t), "Make sure the ").concat(i, " message is using the {text: string} format, e.g: {text: \"Model Response\"}");
410
+ return "".concat(bs(n, i, e, t), "Make sure the ").concat(i, " message is using the {text: string} format, e.g: {text: \"Model Response\"}");
411
411
  }
412
- function Hn(n, e) {
412
+ function qn(n, e) {
413
413
  var t = "request";
414
- return "".concat(ys(n, t, e), "Make sure the ").concat(t, " message is using the {body: {text: string}} format, e.g: {body: {text: \"Model Response\"}}");
414
+ return "".concat(bs(n, t, e), "Make sure the ").concat(t, " message is using the {body: {text: string}} format, e.g: {body: {text: \"Model Response\"}}");
415
415
  }
416
- var Ps = "Make sure the events are using {text: string} or {html: string} format.\nYou can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor",
416
+ var Is = "Make sure the events are using {text: string} or {html: string} format.\nYou can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor",
417
417
  k = {
418
418
  INVALID_KEY: "Invalid API Key",
419
419
  CONNECTION_FAILED: "Failed to connect",
420
- INVALID_RESPONSE: jn,
421
- INVALID_MODEL_REQUEST: Hn,
422
- INVALID_MODEL_RESPONSE: qn,
420
+ INVALID_RESPONSE: Un,
421
+ INVALID_MODEL_REQUEST: qn,
422
+ INVALID_MODEL_RESPONSE: jn,
423
423
  INVALID_STREAM_ARRAY_RESPONSE: "Multi-response arrays are not supported for streaming",
424
- INVALID_STREAM_EVENT: Ps,
424
+ INVALID_STREAM_EVENT: Is,
425
425
  INVALID_STREAM_EVENT_MIX: "Cannot mix {text: string} and {html: string} responses.",
426
- NO_VALID_STREAM_EVENTS_SENT: "No valid stream events were sent.\n".concat(Ps)
426
+ NO_VALID_STREAM_EVENTS_SENT: "No valid stream events were sent.\n".concat(Is)
427
427
  },
428
428
  Bi = /*#__PURE__*/function () {
429
429
  function Bi() {
@@ -767,9 +767,9 @@ var Ze = /*#__PURE__*/function () {
767
767
  }
768
768
  }]);
769
769
  }();
770
- var zn = "deep-chat-temporary-message",
771
- Gn = "deep-chat-suggestion-button",
772
- Qi = {
770
+ var Hn = "deep-chat-temporary-message",
771
+ zn = "deep-chat-suggestion-button",
772
+ Zi = {
773
773
  "deep-chat-button": {
774
774
  styles: {
775
775
  "default": {
@@ -790,7 +790,7 @@ var zn = "deep-chat-temporary-message",
790
790
  }
791
791
  }
792
792
  },
793
- Os = Object.keys(Qi);
793
+ Ps = Object.keys(Zi);
794
794
  var Oe = /*#__PURE__*/function () {
795
795
  function Oe() {
796
796
  _classCallCheck(this, Oe);
@@ -811,19 +811,19 @@ var Oe = /*#__PURE__*/function () {
811
811
  key: "isElementTemporary",
812
812
  value: function isElementTemporary(e) {
813
813
  var t;
814
- return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(zn) : !1;
814
+ return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(Hn) : !1;
815
815
  }
816
816
  }, {
817
817
  key: "doesElementContainDeepChatClass",
818
818
  value: function doesElementContainDeepChatClass(e) {
819
- return Os.find(function (t) {
819
+ return Ps.find(function (t) {
820
820
  return e.classList.contains(t);
821
821
  });
822
822
  }
823
823
  }, {
824
824
  key: "applyEvents",
825
825
  value: function applyEvents(e, t) {
826
- var i = Qi[t].events;
826
+ var i = Zi[t].events;
827
827
  Object.keys(i || []).forEach(function (s) {
828
828
  e.addEventListener(s, i == null ? void 0 : i[s]);
829
829
  });
@@ -836,7 +836,7 @@ var Oe = /*#__PURE__*/function () {
836
836
  var c = (d = e[l]) == null ? void 0 : d.styles;
837
837
  return c && e[l].styles && a.push(c), a;
838
838
  }, []),
839
- r = Qi[i].styles;
839
+ r = Zi[i].styles;
840
840
  if (r) {
841
841
  var a = JSON.parse(JSON.stringify(r));
842
842
  a["default"] && P.overwriteDefaultWithAlreadyApplied(a, t), s.unshift(a);
@@ -847,14 +847,14 @@ var Oe = /*#__PURE__*/function () {
847
847
  }, {
848
848
  key: "applyDeepChatUtilities",
849
849
  value: function applyDeepChatUtilities(e, t, i) {
850
- Os.forEach(function (r) {
850
+ Ps.forEach(function (r) {
851
851
  var o = i.getElementsByClassName(r);
852
852
  Array.from(o || []).forEach(function (a) {
853
853
  var l = Oe.getProcessedStyles(t, a, r);
854
854
  le.applyStylesToElement(a, l), Oe.applyEvents(a, r);
855
855
  });
856
856
  });
857
- var s = i.getElementsByClassName(Gn);
857
+ var s = i.getElementsByClassName(zn);
858
858
  Array.from(s).forEach(function (r) {
859
859
  return Oe.applySuggestionEvent(e, r);
860
860
  });
@@ -973,14 +973,14 @@ var Re = /*#__PURE__*/function () {
973
973
  Re.HTML_BUBBLE_CLASS = "html-message";
974
974
  var Se = Re;
975
975
  var ui;
976
- function vn(n) {
976
+ function bn(n) {
977
977
  return ui = ui || document.createElement("textarea"), ui.innerHTML = "&" + n + ";", ui.value;
978
978
  }
979
- var Vn = Object.prototype.hasOwnProperty;
980
- function Kn(n, e) {
981
- return n ? Vn.call(n, e) : !1;
979
+ var Gn = Object.prototype.hasOwnProperty;
980
+ function Vn(n, e) {
981
+ return n ? Gn.call(n, e) : !1;
982
982
  }
983
- function yn(n) {
983
+ function vn(n) {
984
984
  var e = [].slice.call(arguments, 1);
985
985
  return e.forEach(function (t) {
986
986
  if (t) {
@@ -991,14 +991,14 @@ function yn(n) {
991
991
  }
992
992
  }), n;
993
993
  }
994
- var $n = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
994
+ var Kn = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
995
995
  function Qt(n) {
996
- return n.indexOf("\\") < 0 ? n : n.replace($n, "$1");
996
+ return n.indexOf("\\") < 0 ? n : n.replace(Kn, "$1");
997
997
  }
998
- function En(n) {
998
+ function yn(n) {
999
999
  return !(n >= 55296 && n <= 57343 || n >= 64976 && n <= 65007 || (n & 65535) === 65535 || (n & 65535) === 65534 || n >= 0 && n <= 8 || n === 11 || n >= 14 && n <= 31 || n >= 127 && n <= 159 || n > 1114111);
1000
1000
  }
1001
- function es(n) {
1001
+ function Qi(n) {
1002
1002
  if (n > 65535) {
1003
1003
  n -= 65536;
1004
1004
  var e = 55296 + (n >> 10),
@@ -1007,29 +1007,29 @@ function es(n) {
1007
1007
  }
1008
1008
  return String.fromCharCode(n);
1009
1009
  }
1010
- var Wn = /&([a-z#][a-z0-9]{1,31});/gi,
1011
- Jn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1012
- function Xn(n, e) {
1010
+ var $n = /&([a-z#][a-z0-9]{1,31});/gi,
1011
+ Wn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1012
+ function Jn(n, e) {
1013
1013
  var t = 0,
1014
- i = vn(e);
1015
- return e !== i ? i : e.charCodeAt(0) === 35 && Jn.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), En(t)) ? es(t) : n;
1014
+ i = bn(e);
1015
+ return e !== i ? i : e.charCodeAt(0) === 35 && Wn.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), yn(t)) ? Qi(t) : n;
1016
1016
  }
1017
1017
  function it(n) {
1018
- return n.indexOf("&") < 0 ? n : n.replace(Wn, Xn);
1018
+ return n.indexOf("&") < 0 ? n : n.replace($n, Jn);
1019
1019
  }
1020
- var Yn = /[&<>"]/,
1021
- Zn = /[&<>"]/g,
1022
- Qn = {
1020
+ var Xn = /[&<>"]/,
1021
+ Yn = /[&<>"]/g,
1022
+ Zn = {
1023
1023
  "&": "&amp;",
1024
1024
  "<": "&lt;",
1025
1025
  ">": "&gt;",
1026
1026
  '"': "&quot;"
1027
1027
  };
1028
- function er(n) {
1029
- return Qn[n];
1028
+ function Qn(n) {
1029
+ return Zn[n];
1030
1030
  }
1031
1031
  function ie(n) {
1032
- return Yn.test(n) ? n.replace(Zn, er) : n;
1032
+ return Xn.test(n) ? n.replace(Yn, Qn) : n;
1033
1033
  }
1034
1034
  var b = {};
1035
1035
  b.blockquote_open = function () {
@@ -1050,7 +1050,7 @@ b.fence = function (n, e, t, i, s) {
1050
1050
  d,
1051
1051
  u;
1052
1052
  if (r.params) {
1053
- if (c = r.params.split(/\s+/g), d = c.join(" "), Kn(s.rules.fence_custom, c[0])) return s.rules.fence_custom[c[0]](n, e, t, i, s);
1053
+ if (c = r.params.split(/\s+/g), d = c.join(" "), Vn(s.rules.fence_custom, c[0])) return s.rules.fence_custom[c[0]](n, e, t, i, s);
1054
1054
  l = ie(it(Qt(d))), o = ' class="' + a + l + '"';
1055
1055
  }
1056
1056
  return t.highlight ? u = t.highlight.apply(t.highlight, [r.content].concat(c)) || ie(r.content) : u = ie(r.content), "<pre><code" + o + ">" + u + "</code></pre>" + nt(n, e);
@@ -1244,20 +1244,20 @@ b.dt_close = function () {
1244
1244
  b.dd_close = function () {
1245
1245
  return "</dd>\n";
1246
1246
  };
1247
- function Sn(n, e) {
1248
- return ++e >= n.length - 2 ? e : n[e].type === "paragraph_open" && n[e].tight && n[e + 1].type === "inline" && n[e + 1].content.length === 0 && n[e + 2].type === "paragraph_close" && n[e + 2].tight ? Sn(n, e + 2) : e;
1247
+ function En(n, e) {
1248
+ return ++e >= n.length - 2 ? e : n[e].type === "paragraph_open" && n[e].tight && n[e + 1].type === "inline" && n[e + 1].content.length === 0 && n[e + 2].type === "paragraph_close" && n[e + 2].tight ? En(n, e + 2) : e;
1249
1249
  }
1250
1250
  var nt = b.getBreak = function (e, t) {
1251
- return t = Sn(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
1251
+ return t = En(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
1252
1252
  };
1253
- function Es() {
1254
- this.rules = yn({}, b), this.getBreak = b.getBreak;
1253
+ function vs() {
1254
+ this.rules = vn({}, b), this.getBreak = b.getBreak;
1255
1255
  }
1256
- Es.prototype.renderInline = function (n, e, t) {
1256
+ vs.prototype.renderInline = function (n, e, t) {
1257
1257
  for (var i = this.rules, s = n.length, r = 0, o = ""; s--;) o += i[n[r].type](n, r++, e, t, this);
1258
1258
  return o;
1259
1259
  };
1260
- Es.prototype.render = function (n, e, t) {
1260
+ vs.prototype.render = function (n, e, t) {
1261
1261
  for (var i = this.rules, s = n.length, r = -1, o = ""; ++r < s;) n[r].type === "inline" ? o += this.renderInline(n[r].children, e, t) : o += i[n[r].type](n, r, e, t, this);
1262
1262
  return o;
1263
1263
  };
@@ -1337,7 +1337,7 @@ ce.prototype.disable = function (n) {
1337
1337
  ce.prototype.getRules = function (n) {
1338
1338
  return this.__cache__ === null && this.__compile__(), this.__cache__[n] || [];
1339
1339
  };
1340
- function tr(n) {
1340
+ function er(n) {
1341
1341
  n.inlineMode ? n.tokens.push({
1342
1342
  type: "inline",
1343
1343
  content: n.src.replace(/\n/g, " ").trim(),
@@ -1385,13 +1385,13 @@ function ei(n, e) {
1385
1385
  }
1386
1386
  return i ? (r = n.pos, n.labelUnmatchedScopes = 0) : n.labelUnmatchedScopes = t - 1, n.pos = a, n.isInLabel = l, r;
1387
1387
  }
1388
- function ir(n, e, t, i) {
1388
+ function tr(n, e, t, i) {
1389
1389
  var s, r, o, a, l, c;
1390
1390
  if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (s = new rt(n, e, t, i, []), r = ei(s, 1), r < 0 || n.charCodeAt(r + 1) !== 58)) return -1;
1391
1391
  for (a = s.posMax, o = r + 2; o < a && s.src.charCodeAt(o) !== 10; o++);
1392
1392
  return l = n.slice(2, r), c = n.slice(r + 2, o).trim(), c.length === 0 ? -1 : (i.abbreviations || (i.abbreviations = {}), _typeof(i.abbreviations[":" + l]) > "u" && (i.abbreviations[":" + l] = c), o);
1393
1393
  }
1394
- function sr(n) {
1394
+ function ir(n) {
1395
1395
  var e = n.tokens,
1396
1396
  t,
1397
1397
  i,
@@ -1399,19 +1399,19 @@ function sr(n) {
1399
1399
  r;
1400
1400
  if (!n.inlineMode) {
1401
1401
  for (t = 1, i = e.length - 1; t < i; t++) if (e[t - 1].type === "paragraph_open" && e[t].type === "inline" && e[t + 1].type === "paragraph_close") {
1402
- for (s = e[t].content; s.length && (r = ir(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1402
+ for (s = e[t].content; s.length && (r = tr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1403
1403
  e[t].content = s, s.length || (e[t - 1].tight = !0, e[t + 1].tight = !0);
1404
1404
  }
1405
1405
  }
1406
1406
  }
1407
- function ts(n) {
1407
+ function es(n) {
1408
1408
  var e = it(n);
1409
1409
  try {
1410
1410
  e = decodeURI(e);
1411
1411
  } catch (_unused3) {}
1412
1412
  return encodeURI(e);
1413
1413
  }
1414
- function _n(n, e) {
1414
+ function Sn(n, e) {
1415
1415
  var t,
1416
1416
  i,
1417
1417
  s,
@@ -1420,7 +1420,7 @@ function _n(n, e) {
1420
1420
  if (n.src.charCodeAt(e) === 60) {
1421
1421
  for (e++; e < o;) {
1422
1422
  if (t = n.src.charCodeAt(e), t === 10) return !1;
1423
- if (t === 62) return s = ts(Qt(n.src.slice(r + 1, e))), n.parser.validateLink(s) ? (n.pos = e + 1, n.linkContent = s, !0) : !1;
1423
+ if (t === 62) return s = es(Qt(n.src.slice(r + 1, e))), n.parser.validateLink(s) ? (n.pos = e + 1, n.linkContent = s, !0) : !1;
1424
1424
  if (t === 92 && e + 1 < o) {
1425
1425
  e += 2;
1426
1426
  continue;
@@ -1439,7 +1439,7 @@ function _n(n, e) {
1439
1439
  }
1440
1440
  return r === e || (s = Qt(n.src.slice(r, e)), !n.parser.validateLink(s)) ? !1 : (n.linkContent = s, n.pos = e, !0);
1441
1441
  }
1442
- function xn(n, e) {
1442
+ function _n(n, e) {
1443
1443
  var t,
1444
1444
  i = e,
1445
1445
  s = n.posMax,
@@ -1455,22 +1455,22 @@ function xn(n, e) {
1455
1455
  }
1456
1456
  return !1;
1457
1457
  }
1458
- function wn(n) {
1458
+ function xn(n) {
1459
1459
  return n.trim().replace(/\s+/g, " ").toUpperCase();
1460
1460
  }
1461
- function nr(n, e, t, i) {
1461
+ function sr(n, e, t, i) {
1462
1462
  var s, r, o, a, l, c, d, u, h;
1463
1463
  if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (s = new rt(n, e, t, i, []), r = ei(s, 0), r < 0 || n.charCodeAt(r + 1) !== 58)) return -1;
1464
1464
  for (a = s.posMax, o = r + 2; o < a && (l = s.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++);
1465
- if (!_n(s, o)) return -1;
1465
+ if (!Sn(s, o)) return -1;
1466
1466
  for (d = s.linkContent, o = s.pos, c = o, o = o + 1; o < a && (l = s.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++);
1467
- for (o < a && c !== o && xn(s, o) ? (u = s.linkContent, o = s.pos) : (u = "", o = c); o < a && s.src.charCodeAt(o) === 32;) o++;
1468
- return o < a && s.src.charCodeAt(o) !== 10 ? -1 : (h = wn(n.slice(1, r)), _typeof(i.references[h]) > "u" && (i.references[h] = {
1467
+ for (o < a && c !== o && _n(s, o) ? (u = s.linkContent, o = s.pos) : (u = "", o = c); o < a && s.src.charCodeAt(o) === 32;) o++;
1468
+ return o < a && s.src.charCodeAt(o) !== 10 ? -1 : (h = xn(n.slice(1, r)), _typeof(i.references[h]) > "u" && (i.references[h] = {
1469
1469
  title: u,
1470
1470
  href: d
1471
1471
  }), o);
1472
1472
  }
1473
- function rr(n) {
1473
+ function nr(n) {
1474
1474
  var e = n.tokens,
1475
1475
  t,
1476
1476
  i,
@@ -1478,19 +1478,19 @@ function rr(n) {
1478
1478
  r;
1479
1479
  if (n.env.references = n.env.references || {}, !n.inlineMode) {
1480
1480
  for (t = 1, i = e.length - 1; t < i; t++) if (e[t].type === "inline" && e[t - 1].type === "paragraph_open" && e[t + 1].type === "paragraph_close") {
1481
- for (s = e[t].content; s.length && (r = nr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1481
+ for (s = e[t].content; s.length && (r = sr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1482
1482
  e[t].content = s, s.length || (e[t - 1].tight = !0, e[t + 1].tight = !0);
1483
1483
  }
1484
1484
  }
1485
1485
  }
1486
- function or(n) {
1486
+ function rr(n) {
1487
1487
  var e = n.tokens,
1488
1488
  t,
1489
1489
  i,
1490
1490
  s;
1491
1491
  for (i = 0, s = e.length; i < s; i++) t = e[i], t.type === "inline" && n.inline.parse(t.content, n.options, n.env, t.children);
1492
1492
  }
1493
- function ar(n) {
1493
+ function or(n) {
1494
1494
  var e,
1495
1495
  t,
1496
1496
  i,
@@ -1544,11 +1544,11 @@ function ar(n) {
1544
1544
  });
1545
1545
  }
1546
1546
  }
1547
- var Ns = " \n()[]'\".,!?-";
1548
- function Wi(n) {
1547
+ var Os = " \n()[]'\".,!?-";
1548
+ function $i(n) {
1549
1549
  return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
1550
1550
  }
1551
- function lr(n) {
1551
+ function ar(n) {
1552
1552
  var e,
1553
1553
  t,
1554
1554
  i,
@@ -1563,11 +1563,11 @@ function lr(n) {
1563
1563
  h,
1564
1564
  f = n.tokens;
1565
1565
  if (n.env.abbreviations) {
1566
- for (n.env.abbrRegExp || (h = "(^|[" + Ns.split("").map(Wi).join("") + "])(" + Object.keys(n.env.abbreviations).map(function (m) {
1566
+ for (n.env.abbrRegExp || (h = "(^|[" + Os.split("").map($i).join("") + "])(" + Object.keys(n.env.abbreviations).map(function (m) {
1567
1567
  return m.substr(1);
1568
1568
  }).sort(function (m, p) {
1569
1569
  return p.length - m.length;
1570
- }).map(Wi).join("|") + ")($|[" + Ns.split("").map(Wi).join("") + "])", n.env.abbrRegExp = new RegExp(h, "g")), d = n.env.abbrRegExp, t = 0, i = f.length; t < i; t++) if (f[t].type === "inline") {
1570
+ }).map($i).join("|") + ")($|[" + Os.split("").map($i).join("") + "])", n.env.abbrRegExp = new RegExp(h, "g")), d = n.env.abbrRegExp, t = 0, i = f.length; t < i; t++) if (f[t].type === "inline") {
1571
1571
  for (s = f[t].children, e = s.length - 1; e >= 0; e--) if (r = s[e], r.type === "text") {
1572
1572
  for (l = 0, o = r.content, d.lastIndex = 0, c = r.level, a = []; u = d.exec(o);) d.lastIndex > l && a.push({
1573
1573
  type: "text",
@@ -1594,45 +1594,45 @@ function lr(n) {
1594
1594
  }
1595
1595
  }
1596
1596
  }
1597
- var cr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
1598
- dr = /\((c|tm|r|p)\)/ig,
1599
- hr = {
1597
+ var lr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
1598
+ cr = /\((c|tm|r|p)\)/ig,
1599
+ dr = {
1600
1600
  c: "©",
1601
1601
  r: "®",
1602
1602
  p: "§",
1603
1603
  tm: "™"
1604
1604
  };
1605
- function ur(n) {
1606
- return n.indexOf("(") < 0 ? n : n.replace(dr, function (e, t) {
1607
- return hr[t.toLowerCase()];
1605
+ function hr(n) {
1606
+ return n.indexOf("(") < 0 ? n : n.replace(cr, function (e, t) {
1607
+ return dr[t.toLowerCase()];
1608
1608
  });
1609
1609
  }
1610
- function fr(n) {
1610
+ function ur(n) {
1611
1611
  var e, t, i, s, r;
1612
1612
  if (n.options.typographer) {
1613
- for (r = n.tokens.length - 1; r >= 0; r--) if (n.tokens[r].type === "inline") for (s = n.tokens[r].children, e = s.length - 1; e >= 0; e--) t = s[e], t.type === "text" && (i = t.content, i = ur(i), cr.test(i) && (i = i.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---([^-]|$)/mg, "$1—$2").replace(/(^|\s)--(\s|$)/mg, "$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg, "$1–$2")), t.content = i);
1613
+ for (r = n.tokens.length - 1; r >= 0; r--) if (n.tokens[r].type === "inline") for (s = n.tokens[r].children, e = s.length - 1; e >= 0; e--) t = s[e], t.type === "text" && (i = t.content, i = hr(i), lr.test(i) && (i = i.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---([^-]|$)/mg, "$1—$2").replace(/(^|\s)--(\s|$)/mg, "$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg, "$1–$2")), t.content = i);
1614
1614
  }
1615
1615
  }
1616
- var pr = /['"]/,
1617
- Ds = /['"]/g,
1618
- mr = /[-\s()\[\]]/,
1619
- Bs = "’";
1620
- function Fs(n, e) {
1621
- return e < 0 || e >= n.length ? !1 : !mr.test(n[e]);
1616
+ var fr = /['"]/,
1617
+ Ns = /['"]/g,
1618
+ pr = /[-\s()\[\]]/,
1619
+ Ds = "’";
1620
+ function Bs(n, e) {
1621
+ return e < 0 || e >= n.length ? !1 : !pr.test(n[e]);
1622
1622
  }
1623
1623
  function lt(n, e, t) {
1624
1624
  return n.substr(0, e) + t + n.substr(e + 1);
1625
1625
  }
1626
- function gr(n) {
1626
+ function mr(n) {
1627
1627
  var e, t, i, s, r, o, a, l, c, d, u, h, f, m, p, g, v;
1628
1628
  if (n.options.typographer) {
1629
1629
  for (v = [], p = n.tokens.length - 1; p >= 0; p--) if (n.tokens[p].type === "inline") {
1630
- for (g = n.tokens[p].children, v.length = 0, e = 0; e < g.length; e++) if (t = g[e], !(t.type !== "text" || pr.test(t.text))) {
1630
+ for (g = n.tokens[p].children, v.length = 0, e = 0; e < g.length; e++) if (t = g[e], !(t.type !== "text" || fr.test(t.text))) {
1631
1631
  for (a = g[e].level, f = v.length - 1; f >= 0 && !(v[f].level <= a); f--);
1632
1632
  v.length = f + 1, i = t.content, r = 0, o = i.length;
1633
- e: for (; r < o && (Ds.lastIndex = r, s = Ds.exec(i), !!s);) {
1634
- if (l = !Fs(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !Fs(i, r), !c && !l) {
1635
- m && (t.content = lt(t.content, s.index, Bs));
1633
+ e: for (; r < o && (Ns.lastIndex = r, s = Ns.exec(i), !!s);) {
1634
+ if (l = !Bs(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !Bs(i, r), !c && !l) {
1635
+ m && (t.content = lt(t.content, s.index, Ds));
1636
1636
  continue;
1637
1637
  }
1638
1638
  if (u = !c, h = !l, h) {
@@ -1646,18 +1646,18 @@ function gr(n) {
1646
1646
  pos: s.index,
1647
1647
  single: m,
1648
1648
  level: a
1649
- }) : h && m && (t.content = lt(t.content, s.index, Bs));
1649
+ }) : h && m && (t.content = lt(t.content, s.index, Ds));
1650
1650
  }
1651
1651
  }
1652
1652
  }
1653
1653
  }
1654
1654
  }
1655
- var Ji = [["block", tr], ["abbr", sr], ["references", rr], ["inline", or], ["footnote_tail", ar], ["abbr2", lr], ["replacements", fr], ["smartquotes", gr]];
1656
- function An() {
1655
+ var Wi = [["block", er], ["abbr", ir], ["references", nr], ["inline", rr], ["footnote_tail", or], ["abbr2", ar], ["replacements", ur], ["smartquotes", mr]];
1656
+ function wn() {
1657
1657
  this.options = {}, this.ruler = new ce();
1658
- for (var n = 0; n < Ji.length; n++) this.ruler.push(Ji[n][0], Ji[n][1]);
1658
+ for (var n = 0; n < Wi.length; n++) this.ruler.push(Wi[n][0], Wi[n][1]);
1659
1659
  }
1660
- An.prototype.process = function (n) {
1660
+ wn.prototype.process = function (n) {
1661
1661
  var e, t, i;
1662
1662
  for (i = this.ruler.getRules(""), e = 0, t = i.length; e < t; e++) i[e](n);
1663
1663
  };
@@ -1704,7 +1704,7 @@ ot.prototype.getLines = function (e, t, i, s) {
1704
1704
  for (l = new Array(t - e), r = 0; d < t; d++, r++) c = this.tShift[d], c > i && (c = i), c < 0 && (c = 0), o = this.bMarks[d] + c, d + 1 < t || s ? a = this.eMarks[d] + 1 : a = this.eMarks[d], l[r] = this.src.slice(o, a);
1705
1705
  return l.join("");
1706
1706
  };
1707
- function br(n, e, t) {
1707
+ function gr(n, e, t) {
1708
1708
  var i, s;
1709
1709
  if (n.tShift[e] - n.blkIndent < 4) return !1;
1710
1710
  for (s = i = e + 1; i < t;) {
@@ -1726,7 +1726,7 @@ function br(n, e, t) {
1726
1726
  level: n.level
1727
1727
  }), !0;
1728
1728
  }
1729
- function vr(n, e, t, i) {
1729
+ function br(n, e, t, i) {
1730
1730
  var s,
1731
1731
  r,
1732
1732
  o,
@@ -1749,7 +1749,7 @@ function vr(n, e, t, i) {
1749
1749
  level: n.level
1750
1750
  }), !0;
1751
1751
  }
1752
- function yr(n, e, t, i) {
1752
+ function vr(n, e, t, i) {
1753
1753
  var s,
1754
1754
  r,
1755
1755
  o,
@@ -1788,7 +1788,7 @@ function yr(n, e, t, i) {
1788
1788
  }), n.parentType = c, d[1] = n.line, h = 0; h < o.length; h++) n.bMarks[h + e] = a[h], n.tShift[h + e] = o[h];
1789
1789
  return n.blkIndent = l, !0;
1790
1790
  }
1791
- function Er(n, e, t, i) {
1791
+ function yr(n, e, t, i) {
1792
1792
  var s,
1793
1793
  r,
1794
1794
  o,
@@ -1805,11 +1805,11 @@ function Er(n, e, t, i) {
1805
1805
  level: n.level
1806
1806
  })), !0);
1807
1807
  }
1808
- function Us(n, e) {
1808
+ function Fs(n, e) {
1809
1809
  var t, i, s;
1810
1810
  return i = n.bMarks[e] + n.tShift[e], s = n.eMarks[e], i >= s || (t = n.src.charCodeAt(i++), t !== 42 && t !== 45 && t !== 43) || i < s && n.src.charCodeAt(i) !== 32 ? -1 : i;
1811
1811
  }
1812
- function js(n, e) {
1812
+ function Us(n, e) {
1813
1813
  var t,
1814
1814
  i = n.bMarks[e] + n.tShift[e],
1815
1815
  s = n.eMarks[e];
@@ -1823,13 +1823,13 @@ function js(n, e) {
1823
1823
  }
1824
1824
  return i < s && n.src.charCodeAt(i) !== 32 ? -1 : i;
1825
1825
  }
1826
- function Sr(n, e) {
1826
+ function Er(n, e) {
1827
1827
  var t,
1828
1828
  i,
1829
1829
  s = n.level + 2;
1830
1830
  for (t = e + 2, i = n.tokens.length - 2; t < i; t++) n.tokens[t].level === s && n.tokens[t].type === "paragraph_open" && (n.tokens[t + 2].tight = !0, n.tokens[t].tight = !0, t += 2);
1831
1831
  }
1832
- function _r(n, e, t, i) {
1832
+ function Sr(n, e, t, i) {
1833
1833
  var s,
1834
1834
  r,
1835
1835
  o,
@@ -1853,7 +1853,7 @@ function _r(n, e, t, i) {
1853
1853
  H,
1854
1854
  ze,
1855
1855
  Et;
1856
- if ((u = js(n, e)) >= 0) g = !0;else if ((u = Us(n, e)) >= 0) g = !1;else return !1;
1856
+ if ((u = Us(n, e)) >= 0) g = !0;else if ((u = Fs(n, e)) >= 0) g = !1;else return !1;
1857
1857
  if (n.level >= n.options.maxNesting) return !1;
1858
1858
  if (p = n.src.charCodeAt(u - 1), i) return !0;
1859
1859
  for (T = n.tokens.length, g ? (d = n.bMarks[e] + n.tShift[e], m = Number(n.src.substr(d, u - d - 1)), n.tokens.push({
@@ -1879,16 +1879,16 @@ function _r(n, e, t, i) {
1879
1879
  }
1880
1880
  if (Et) break;
1881
1881
  if (g) {
1882
- if (u = js(n, s), u < 0) break;
1883
- } else if (u = Us(n, s), u < 0) break;
1882
+ if (u = Us(n, s), u < 0) break;
1883
+ } else if (u = Fs(n, s), u < 0) break;
1884
1884
  if (p !== n.src.charCodeAt(u - 1)) break;
1885
1885
  }
1886
1886
  return n.tokens.push({
1887
1887
  type: g ? "ordered_list_close" : "bullet_list_close",
1888
1888
  level: --n.level
1889
- }), Te[1] = s, n.line = s, ne && Sr(n, T), !0;
1889
+ }), Te[1] = s, n.line = s, ne && Er(n, T), !0;
1890
1890
  }
1891
- function xr(n, e, t, i) {
1891
+ function _r(n, e, t, i) {
1892
1892
  var s,
1893
1893
  r,
1894
1894
  o,
@@ -1910,7 +1910,7 @@ function xr(n, e, t, i) {
1910
1910
  level: --n.level
1911
1911
  })), !0);
1912
1912
  }
1913
- function wr(n, e, t, i) {
1913
+ function xr(n, e, t, i) {
1914
1914
  var s,
1915
1915
  r,
1916
1916
  o,
@@ -1935,7 +1935,7 @@ function wr(n, e, t, i) {
1935
1935
  level: n.level
1936
1936
  })), !0);
1937
1937
  }
1938
- function Ar(n, e, t) {
1938
+ function wr(n, e, t) {
1939
1939
  var i,
1940
1940
  s,
1941
1941
  r,
@@ -1957,17 +1957,17 @@ function Ar(n, e, t) {
1957
1957
  level: n.level
1958
1958
  }), !0);
1959
1959
  }
1960
- var Tn = {};
1960
+ var An = {};
1961
1961
  ["article", "aside", "button", "blockquote", "body", "canvas", "caption", "col", "colgroup", "dd", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "iframe", "li", "map", "object", "ol", "output", "p", "pre", "progress", "script", "section", "style", "table", "tbody", "td", "textarea", "tfoot", "th", "tr", "thead", "ul", "video"].forEach(function (n) {
1962
- Tn[n] = !0;
1962
+ An[n] = !0;
1963
1963
  });
1964
- var Tr = /^<([a-zA-Z]{1,15})[\s\/>]/,
1965
- Cr = /^<\/([a-zA-Z]{1,15})[\s>]/;
1966
- function Rr(n) {
1964
+ var Ar = /^<([a-zA-Z]{1,15})[\s\/>]/,
1965
+ Tr = /^<\/([a-zA-Z]{1,15})[\s>]/;
1966
+ function Cr(n) {
1967
1967
  var e = n | 32;
1968
1968
  return e >= 97 && e <= 122;
1969
1969
  }
1970
- function Mr(n, e, t, i) {
1970
+ function Rr(n, e, t, i) {
1971
1971
  var s,
1972
1972
  r,
1973
1973
  o,
@@ -1977,11 +1977,11 @@ function Mr(n, e, t, i) {
1977
1977
  if (a += c, !n.options.html || c > 3 || a + 2 >= l || n.src.charCodeAt(a) !== 60) return !1;
1978
1978
  if (s = n.src.charCodeAt(a + 1), s === 33 || s === 63) {
1979
1979
  if (i) return !0;
1980
- } else if (s === 47 || Rr(s)) {
1980
+ } else if (s === 47 || Cr(s)) {
1981
1981
  if (s === 47) {
1982
- if (r = n.src.slice(a, l).match(Cr), !r) return !1;
1983
- } else if (r = n.src.slice(a, l).match(Tr), !r) return !1;
1984
- if (Tn[r[1].toLowerCase()] !== !0) return !1;
1982
+ if (r = n.src.slice(a, l).match(Tr), !r) return !1;
1983
+ } else if (r = n.src.slice(a, l).match(Ar), !r) return !1;
1984
+ if (An[r[1].toLowerCase()] !== !0) return !1;
1985
1985
  if (i) return !0;
1986
1986
  } else return !1;
1987
1987
  for (o = e + 1; o < n.lineMax && !n.isEmpty(o);) o++;
@@ -1992,14 +1992,14 @@ function Mr(n, e, t, i) {
1992
1992
  content: n.getLines(e, o, 0, !0)
1993
1993
  }), !0;
1994
1994
  }
1995
- function Xi(n, e) {
1995
+ function Ji(n, e) {
1996
1996
  var t = n.bMarks[e] + n.blkIndent,
1997
1997
  i = n.eMarks[e];
1998
1998
  return n.src.substr(t, i - t);
1999
1999
  }
2000
- function kr(n, e, t, i) {
2000
+ function Mr(n, e, t, i) {
2001
2001
  var s, r, o, a, l, c, d, u, h, f, m;
2002
- if (e + 2 > t || (l = e + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (s = n.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58) || (r = Xi(n, e + 1), !/^[-:| ]+$/.test(r)) || (c = r.split("|"), c <= 2)) return !1;
2002
+ if (e + 2 > t || (l = e + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (s = n.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58) || (r = Ji(n, e + 1), !/^[-:| ]+$/.test(r)) || (c = r.split("|"), c <= 2)) return !1;
2003
2003
  for (u = [], a = 0; a < c.length; a++) {
2004
2004
  if (h = c[a].trim(), !h) {
2005
2005
  if (a === 0 || a === c.length - 1) continue;
@@ -2008,7 +2008,7 @@ function kr(n, e, t, i) {
2008
2008
  if (!/^:?-+:?$/.test(h)) return !1;
2009
2009
  h.charCodeAt(h.length - 1) === 58 ? u.push(h.charCodeAt(0) === 58 ? "center" : "right") : h.charCodeAt(0) === 58 ? u.push("left") : u.push("");
2010
2010
  }
2011
- if (r = Xi(n, e).trim(), r.indexOf("|") === -1 || (c = r.replace(/^\||\|$/g, "").split("|"), u.length !== c.length)) return !1;
2011
+ if (r = Ji(n, e).trim(), r.indexOf("|") === -1 || (c = r.replace(/^\||\|$/g, "").split("|"), u.length !== c.length)) return !1;
2012
2012
  if (i) return !0;
2013
2013
  for (n.tokens.push({
2014
2014
  type: "table_open",
@@ -2047,7 +2047,7 @@ function kr(n, e, t, i) {
2047
2047
  type: "tbody_open",
2048
2048
  lines: m = [e + 2, 0],
2049
2049
  level: n.level++
2050
- }), l = e + 2; l < t && !(n.tShift[l] < n.blkIndent || (r = Xi(n, l).trim(), r.indexOf("|") === -1)); l++) {
2050
+ }), l = e + 2; l < t && !(n.tShift[l] < n.blkIndent || (r = Ji(n, l).trim(), r.indexOf("|") === -1)); l++) {
2051
2051
  for (c = r.replace(/^\||\|$/g, "").split("|"), n.tokens.push({
2052
2052
  type: "tr_open",
2053
2053
  level: n.level++
@@ -2084,13 +2084,13 @@ function fi(n, e) {
2084
2084
  r = n.eMarks[e];
2085
2085
  return s >= r || (i = n.src.charCodeAt(s++), i !== 126 && i !== 58) || (t = n.skipSpaces(s), s === t) || t >= r ? -1 : t;
2086
2086
  }
2087
- function Lr(n, e) {
2087
+ function kr(n, e) {
2088
2088
  var t,
2089
2089
  i,
2090
2090
  s = n.level + 2;
2091
2091
  for (t = e + 2, i = n.tokens.length - 2; t < i; t++) n.tokens[t].level === s && n.tokens[t].type === "paragraph_open" && (n.tokens[t + 2].tight = !0, n.tokens[t].tight = !0, t += 2);
2092
2092
  }
2093
- function Ir(n, e, t, i) {
2093
+ function Lr(n, e, t, i) {
2094
2094
  var s, r, o, a, l, c, d, u, h, f, m, p, g, v;
2095
2095
  if (i) return n.ddIndent < 0 ? !1 : fi(n, e) >= 0;
2096
2096
  if (d = e + 1, n.isEmpty(d) && ++d > t || n.tShift[d] < n.blkIndent || (s = fi(n, d), s < 0) || n.level >= n.options.maxNesting) return !1;
@@ -2130,9 +2130,9 @@ function Ir(n, e, t, i) {
2130
2130
  return n.tokens.push({
2131
2131
  type: "dl_close",
2132
2132
  level: --n.level
2133
- }), l[1] = d, n.line = d, v && Lr(n, c), !0;
2133
+ }), l[1] = d, n.line = d, v && kr(n, c), !0;
2134
2134
  }
2135
- function Pr(n, e) {
2135
+ function Ir(n, e) {
2136
2136
  var t,
2137
2137
  i,
2138
2138
  s,
@@ -2166,14 +2166,14 @@ function Pr(n, e) {
2166
2166
  level: n.level
2167
2167
  })), !0;
2168
2168
  }
2169
- var pi = [["code", br], ["fences", vr, ["paragraph", "blockquote", "list"]], ["blockquote", yr, ["paragraph", "blockquote", "list"]], ["hr", Er, ["paragraph", "blockquote", "list"]], ["list", _r, ["paragraph", "blockquote"]], ["footnote", xr, ["paragraph"]], ["heading", wr, ["paragraph", "blockquote"]], ["lheading", Ar], ["htmlblock", Mr, ["paragraph", "blockquote"]], ["table", kr, ["paragraph"]], ["deflist", Ir, ["paragraph"]], ["paragraph", Pr]];
2170
- function Ss() {
2169
+ var pi = [["code", gr], ["fences", br, ["paragraph", "blockquote", "list"]], ["blockquote", vr, ["paragraph", "blockquote", "list"]], ["hr", yr, ["paragraph", "blockquote", "list"]], ["list", Sr, ["paragraph", "blockquote"]], ["footnote", _r, ["paragraph"]], ["heading", xr, ["paragraph", "blockquote"]], ["lheading", wr], ["htmlblock", Rr, ["paragraph", "blockquote"]], ["table", Mr, ["paragraph"]], ["deflist", Lr, ["paragraph"]], ["paragraph", Ir]];
2170
+ function ys() {
2171
2171
  this.ruler = new ce();
2172
2172
  for (var n = 0; n < pi.length; n++) this.ruler.push(pi[n][0], pi[n][1], {
2173
2173
  alt: (pi[n][2] || []).slice()
2174
2174
  });
2175
2175
  }
2176
- Ss.prototype.tokenize = function (n, e, t) {
2176
+ ys.prototype.tokenize = function (n, e, t) {
2177
2177
  for (var i = this.ruler.getRules(""), s = i.length, r = e, o = !1, a, l; r < t && (n.line = r = n.skipEmptyLines(r), !(r >= t || n.tShift[r] < n.blkIndent));) {
2178
2178
  for (l = 0; l < s && (a = i[l](n, r, t, !1), !a); l++);
2179
2179
  if (n.tight = !o, n.isEmpty(n.line - 1) && (o = !0), r = n.line, r < t && n.isEmpty(r)) {
@@ -2182,20 +2182,20 @@ Ss.prototype.tokenize = function (n, e, t) {
2182
2182
  }
2183
2183
  }
2184
2184
  };
2185
- var Or = /[\n\t]/g,
2186
- Nr = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
2187
- Dr = /\u00a0/g;
2188
- Ss.prototype.parse = function (n, e, t, i) {
2185
+ var Pr = /[\n\t]/g,
2186
+ Or = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
2187
+ Nr = /\u00a0/g;
2188
+ ys.prototype.parse = function (n, e, t, i) {
2189
2189
  var s,
2190
2190
  r = 0,
2191
2191
  o = 0;
2192
2192
  if (!n) return [];
2193
- n = n.replace(Dr, " "), n = n.replace(Nr, "\n"), n.indexOf(" ") >= 0 && (n = n.replace(Or, function (a, l) {
2193
+ n = n.replace(Nr, " "), n = n.replace(Or, "\n"), n.indexOf(" ") >= 0 && (n = n.replace(Pr, function (a, l) {
2194
2194
  var c;
2195
2195
  return n.charCodeAt(l) === 10 ? (r = l + 1, o = 0, a) : (c = " ".slice((l - r - o) % 4), o = l - r + 1, c);
2196
2196
  })), s = new ot(n, this, e, t, i), this.tokenize(s, s.line, s.lineMax);
2197
2197
  };
2198
- function Br(n) {
2198
+ function Dr(n) {
2199
2199
  switch (n) {
2200
2200
  case 10:
2201
2201
  case 92:
@@ -2223,11 +2223,11 @@ function Br(n) {
2223
2223
  return !1;
2224
2224
  }
2225
2225
  }
2226
- function Fr(n, e) {
2227
- for (var t = n.pos; t < n.posMax && !Br(n.src.charCodeAt(t));) t++;
2226
+ function Br(n, e) {
2227
+ for (var t = n.pos; t < n.posMax && !Dr(n.src.charCodeAt(t));) t++;
2228
2228
  return t === n.pos ? !1 : (e || (n.pending += n.src.slice(n.pos, t)), n.pos = t, !0);
2229
2229
  }
2230
- function Ur(n, e) {
2230
+ function Fr(n, e) {
2231
2231
  var t,
2232
2232
  i,
2233
2233
  s = n.pos;
@@ -2253,18 +2253,18 @@ function Ur(n, e) {
2253
2253
  for (s++; s < i && n.src.charCodeAt(s) === 32;) s++;
2254
2254
  return n.pos = s, !0;
2255
2255
  }
2256
- var _s = [];
2257
- for (var qs = 0; qs < 256; qs++) _s.push(0);
2256
+ var Es = [];
2257
+ for (var js = 0; js < 256; js++) Es.push(0);
2258
2258
  "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function (n) {
2259
- _s[n.charCodeAt(0)] = 1;
2259
+ Es[n.charCodeAt(0)] = 1;
2260
2260
  });
2261
- function jr(n, e) {
2261
+ function Ur(n, e) {
2262
2262
  var t,
2263
2263
  i = n.pos,
2264
2264
  s = n.posMax;
2265
2265
  if (n.src.charCodeAt(i) !== 92) return !1;
2266
2266
  if (i++, i < s) {
2267
- if (t = n.src.charCodeAt(i), t < 256 && _s[t] !== 0) return e || (n.pending += n.src[i]), n.pos += 2, !0;
2267
+ if (t = n.src.charCodeAt(i), t < 256 && Es[t] !== 0) return e || (n.pending += n.src[i]), n.pos += 2, !0;
2268
2268
  if (t === 10) {
2269
2269
  for (e || n.push({
2270
2270
  type: "hardbreak",
@@ -2275,7 +2275,7 @@ function jr(n, e) {
2275
2275
  }
2276
2276
  return e || (n.pending += "\\"), n.pos++, !0;
2277
2277
  }
2278
- function qr(n, e) {
2278
+ function jr(n, e) {
2279
2279
  var t,
2280
2280
  i,
2281
2281
  s,
@@ -2296,7 +2296,7 @@ function qr(n, e) {
2296
2296
  }
2297
2297
  return e || (n.pending += s), n.pos += s.length, !0;
2298
2298
  }
2299
- function Hr(n, e) {
2299
+ function qr(n, e) {
2300
2300
  var t,
2301
2301
  i,
2302
2302
  s,
@@ -2322,7 +2322,7 @@ function Hr(n, e) {
2322
2322
  level: --n.level
2323
2323
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2324
2324
  }
2325
- function zr(n, e) {
2325
+ function Hr(n, e) {
2326
2326
  var t,
2327
2327
  i,
2328
2328
  s,
@@ -2348,7 +2348,7 @@ function zr(n, e) {
2348
2348
  level: --n.level
2349
2349
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2350
2350
  }
2351
- function Gr(n, e) {
2351
+ function zr(n, e) {
2352
2352
  var t,
2353
2353
  i,
2354
2354
  s,
@@ -2374,10 +2374,10 @@ function Gr(n, e) {
2374
2374
  level: --n.level
2375
2375
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2376
2376
  }
2377
- function Hs(n) {
2377
+ function qs(n) {
2378
2378
  return n >= 48 && n <= 57 || n >= 65 && n <= 90 || n >= 97 && n <= 122;
2379
2379
  }
2380
- function zs(n, e) {
2380
+ function Hs(n, e) {
2381
2381
  var t = e,
2382
2382
  i,
2383
2383
  s,
@@ -2387,13 +2387,13 @@ function zs(n, e) {
2387
2387
  l = n.posMax,
2388
2388
  c = n.src.charCodeAt(e);
2389
2389
  for (i = e > 0 ? n.src.charCodeAt(e - 1) : -1; t < l && n.src.charCodeAt(t) === c;) t++;
2390
- return t >= l && (o = !1), r = t - e, r >= 4 ? o = a = !1 : (s = t < l ? n.src.charCodeAt(t) : -1, (s === 32 || s === 10) && (o = !1), (i === 32 || i === 10) && (a = !1), c === 95 && (Hs(i) && (o = !1), Hs(s) && (a = !1))), {
2390
+ return t >= l && (o = !1), r = t - e, r >= 4 ? o = a = !1 : (s = t < l ? n.src.charCodeAt(t) : -1, (s === 32 || s === 10) && (o = !1), (i === 32 || i === 10) && (a = !1), c === 95 && (qs(i) && (o = !1), qs(s) && (a = !1))), {
2391
2391
  can_open: o,
2392
2392
  can_close: a,
2393
2393
  delims: r
2394
2394
  };
2395
2395
  }
2396
- function Vr(n, e) {
2396
+ function Gr(n, e) {
2397
2397
  var t,
2398
2398
  i,
2399
2399
  s,
@@ -2405,11 +2405,11 @@ function Vr(n, e) {
2405
2405
  d = n.pos,
2406
2406
  u = n.src.charCodeAt(d);
2407
2407
  if (u !== 95 && u !== 42 || e) return !1;
2408
- if (l = zs(n, d), t = l.delims, !l.can_open) return n.pos += t, e || (n.pending += n.src.slice(d, n.pos)), !0;
2408
+ if (l = Hs(n, d), t = l.delims, !l.can_open) return n.pos += t, e || (n.pending += n.src.slice(d, n.pos)), !0;
2409
2409
  if (n.level >= n.options.maxNesting) return !1;
2410
2410
  for (n.pos = d + t, a = [t]; n.pos < c;) {
2411
2411
  if (n.src.charCodeAt(n.pos) === u) {
2412
- if (l = zs(n, n.pos), i = l.delims, l.can_close) {
2412
+ if (l = Hs(n, n.pos), i = l.delims, l.can_close) {
2413
2413
  for (r = a.pop(), o = i; r !== o;) {
2414
2414
  if (o < r) {
2415
2415
  a.push(r - o);
@@ -2444,8 +2444,8 @@ function Vr(n, e) {
2444
2444
  level: --n.level
2445
2445
  })), n.pos = n.posMax + t, n.posMax = c, !0) : (n.pos = d, !1);
2446
2446
  }
2447
- var Kr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2448
- function $r(n, e) {
2447
+ var Vr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2448
+ function Kr(n, e) {
2449
2449
  var t,
2450
2450
  i,
2451
2451
  s = n.posMax,
@@ -2461,11 +2461,11 @@ function $r(n, e) {
2461
2461
  return !t || r + 1 === n.pos || (i = n.src.slice(r + 1, n.pos), i.match(/(^|[^\\])(\\\\)*\s/)) ? (n.pos = r, !1) : (n.posMax = n.pos, n.pos = r + 1, e || n.push({
2462
2462
  type: "sub",
2463
2463
  level: n.level,
2464
- content: i.replace(Kr, "$1")
2464
+ content: i.replace(Vr, "$1")
2465
2465
  }), n.pos = n.posMax + 1, n.posMax = s, !0);
2466
2466
  }
2467
- var Wr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2468
- function Jr(n, e) {
2467
+ var $r = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2468
+ function Wr(n, e) {
2469
2469
  var t,
2470
2470
  i,
2471
2471
  s = n.posMax,
@@ -2481,10 +2481,10 @@ function Jr(n, e) {
2481
2481
  return !t || r + 1 === n.pos || (i = n.src.slice(r + 1, n.pos), i.match(/(^|[^\\])(\\\\)*\s/)) ? (n.pos = r, !1) : (n.posMax = n.pos, n.pos = r + 1, e || n.push({
2482
2482
  type: "sup",
2483
2483
  level: n.level,
2484
- content: i.replace(Wr, "$1")
2484
+ content: i.replace($r, "$1")
2485
2485
  }), n.pos = n.posMax + 1, n.posMax = s, !0);
2486
2486
  }
2487
- function Xr(n, e) {
2487
+ function Jr(n, e) {
2488
2488
  var t,
2489
2489
  i,
2490
2490
  s,
@@ -2502,14 +2502,14 @@ function Xr(n, e) {
2502
2502
  if (a = i + 1, a < h && n.src.charCodeAt(a) === 40) {
2503
2503
  for (a++; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2504
2504
  if (a >= h) return !1;
2505
- for (f = a, _n(n, a) ? (r = n.linkContent, a = n.pos) : r = "", f = a; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2506
- if (a < h && f !== a && xn(n, a)) for (o = n.linkContent, a = n.pos; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
2505
+ for (f = a, Sn(n, a) ? (r = n.linkContent, a = n.pos) : r = "", f = a; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2506
+ if (a < h && f !== a && _n(n, a)) for (o = n.linkContent, a = n.pos; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
2507
2507
  if (a >= h || n.src.charCodeAt(a) !== 41) return n.pos = u, !1;
2508
2508
  a++;
2509
2509
  } else {
2510
2510
  if (n.linkLevel > 0) return !1;
2511
2511
  for (; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2512
- if (a < h && n.src.charCodeAt(a) === 91 && (f = a + 1, a = ei(n, a), a >= 0 ? s = n.src.slice(f, a++) : a = f - 1), s || (_typeof(s) > "u" && (a = i + 1), s = n.src.slice(t, i)), l = n.env.references[wn(s)], !l) return n.pos = u, !1;
2512
+ if (a < h && n.src.charCodeAt(a) === 91 && (f = a + 1, a = ei(n, a), a >= 0 ? s = n.src.slice(f, a++) : a = f - 1), s || (_typeof(s) > "u" && (a = i + 1), s = n.src.slice(t, i)), l = n.env.references[xn(s)], !l) return n.pos = u, !1;
2513
2513
  r = l.href, o = l.title;
2514
2514
  }
2515
2515
  return e || (n.pos = t, n.posMax = i, d ? n.push({
@@ -2528,7 +2528,7 @@ function Xr(n, e) {
2528
2528
  level: --n.level
2529
2529
  }))), n.pos = a, n.posMax = h, !0;
2530
2530
  }
2531
- function Yr(n, e) {
2531
+ function Xr(n, e) {
2532
2532
  var t,
2533
2533
  i,
2534
2534
  s,
@@ -2543,7 +2543,7 @@ function Yr(n, e) {
2543
2543
  tokens: n.tokens.splice(r)
2544
2544
  }, n.linkLevel--), n.pos = i + 1, n.posMax = o, !0);
2545
2545
  }
2546
- function Zr(n, e) {
2546
+ function Yr(n, e) {
2547
2547
  var t,
2548
2548
  i,
2549
2549
  s,
@@ -2565,17 +2565,17 @@ function Zr(n, e) {
2565
2565
  level: n.level
2566
2566
  })), n.pos = i, n.posMax = o, !0);
2567
2567
  }
2568
- var Qr = ["coap", "doi", "javascript", "aaa", "aaas", "about", "acap", "cap", "cid", "crid", "data", "dav", "dict", "dns", "file", "ftp", "geo", "go", "gopher", "h323", "http", "https", "iax", "icap", "im", "imap", "info", "ipp", "iris", "iris.beep", "iris.xpc", "iris.xpcs", "iris.lwz", "ldap", "mailto", "mid", "msrp", "msrps", "mtqp", "mupdate", "news", "nfs", "ni", "nih", "nntp", "opaquelocktoken", "pop", "pres", "rtsp", "service", "session", "shttp", "sieve", "sip", "sips", "sms", "snmp", "soap.beep", "soap.beeps", "tag", "tel", "telnet", "tftp", "thismessage", "tn3270", "tip", "tv", "urn", "vemmi", "ws", "wss", "xcon", "xcon-userid", "xmlrpc.beep", "xmlrpc.beeps", "xmpp", "z39.50r", "z39.50s", "adiumxtra", "afp", "afs", "aim", "apt", "attachment", "aw", "beshare", "bitcoin", "bolo", "callto", "chrome", "chrome-extension", "com-eventbrite-attendee", "content", "cvs", "dlna-playsingle", "dlna-playcontainer", "dtn", "dvb", "ed2k", "facetime", "feed", "finger", "fish", "gg", "git", "gizmoproject", "gtalk", "hcp", "icon", "ipn", "irc", "irc6", "ircs", "itms", "jar", "jms", "keyparc", "lastfm", "ldaps", "magnet", "maps", "market", "message", "mms", "ms-help", "msnim", "mumble", "mvn", "notes", "oid", "palm", "paparazzi", "platform", "proxy", "psyc", "query", "res", "resource", "rmi", "rsync", "rtmp", "secondlife", "sftp", "sgn", "skype", "smb", "soldat", "spotify", "ssh", "steam", "svn", "teamspeak", "things", "udp", "unreal", "ut2004", "ventrilo", "view-source", "webcal", "wtai", "wyciwyg", "xfire", "xri", "ymsgr"],
2569
- eo = /^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
2570
- to = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2571
- function io(n, e) {
2568
+ var Zr = ["coap", "doi", "javascript", "aaa", "aaas", "about", "acap", "cap", "cid", "crid", "data", "dav", "dict", "dns", "file", "ftp", "geo", "go", "gopher", "h323", "http", "https", "iax", "icap", "im", "imap", "info", "ipp", "iris", "iris.beep", "iris.xpc", "iris.xpcs", "iris.lwz", "ldap", "mailto", "mid", "msrp", "msrps", "mtqp", "mupdate", "news", "nfs", "ni", "nih", "nntp", "opaquelocktoken", "pop", "pres", "rtsp", "service", "session", "shttp", "sieve", "sip", "sips", "sms", "snmp", "soap.beep", "soap.beeps", "tag", "tel", "telnet", "tftp", "thismessage", "tn3270", "tip", "tv", "urn", "vemmi", "ws", "wss", "xcon", "xcon-userid", "xmlrpc.beep", "xmlrpc.beeps", "xmpp", "z39.50r", "z39.50s", "adiumxtra", "afp", "afs", "aim", "apt", "attachment", "aw", "beshare", "bitcoin", "bolo", "callto", "chrome", "chrome-extension", "com-eventbrite-attendee", "content", "cvs", "dlna-playsingle", "dlna-playcontainer", "dtn", "dvb", "ed2k", "facetime", "feed", "finger", "fish", "gg", "git", "gizmoproject", "gtalk", "hcp", "icon", "ipn", "irc", "irc6", "ircs", "itms", "jar", "jms", "keyparc", "lastfm", "ldaps", "magnet", "maps", "market", "message", "mms", "ms-help", "msnim", "mumble", "mvn", "notes", "oid", "palm", "paparazzi", "platform", "proxy", "psyc", "query", "res", "resource", "rmi", "rsync", "rtmp", "secondlife", "sftp", "sgn", "skype", "smb", "soldat", "spotify", "ssh", "steam", "svn", "teamspeak", "things", "udp", "unreal", "ut2004", "ventrilo", "view-source", "webcal", "wtai", "wyciwyg", "xfire", "xri", "ymsgr"],
2569
+ Qr = /^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
2570
+ eo = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2571
+ function to(n, e) {
2572
2572
  var t,
2573
2573
  i,
2574
2574
  s,
2575
2575
  r,
2576
2576
  o,
2577
2577
  a = n.pos;
2578
- return n.src.charCodeAt(a) !== 60 || (t = n.src.slice(a), t.indexOf(">") < 0) ? !1 : (i = t.match(to), i ? Qr.indexOf(i[1].toLowerCase()) < 0 || (r = i[0].slice(1, -1), o = ts(r), !n.parser.validateLink(r)) ? !1 : (e || (n.push({
2578
+ return n.src.charCodeAt(a) !== 60 || (t = n.src.slice(a), t.indexOf(">") < 0) ? !1 : (i = t.match(eo), i ? Zr.indexOf(i[1].toLowerCase()) < 0 || (r = i[0].slice(1, -1), o = es(r), !n.parser.validateLink(r)) ? !1 : (e || (n.push({
2579
2579
  type: "link_open",
2580
2580
  href: o,
2581
2581
  level: n.level
@@ -2586,7 +2586,7 @@ function io(n, e) {
2586
2586
  }), n.push({
2587
2587
  type: "link_close",
2588
2588
  level: n.level
2589
- })), n.pos += i[0].length, !0) : (s = t.match(eo), s ? (r = s[0].slice(1, -1), o = ts("mailto:" + r), n.parser.validateLink(o) ? (e || (n.push({
2589
+ })), n.pos += i[0].length, !0) : (s = t.match(Qr), s ? (r = s[0].slice(1, -1), o = es("mailto:" + r), n.parser.validateLink(o) ? (e || (n.push({
2590
2590
  type: "link_open",
2591
2591
  href: o,
2592
2592
  level: n.level
@@ -2599,42 +2599,42 @@ function io(n, e) {
2599
2599
  level: n.level
2600
2600
  })), n.pos += s[0].length, !0) : !1) : !1));
2601
2601
  }
2602
- function Hi(n, e) {
2602
+ function qi(n, e) {
2603
2603
  return n = n.source, e = e || "", function t(i, s) {
2604
2604
  return i ? (s = s.source || s, n = n.replace(i, s), t) : new RegExp(n, e);
2605
2605
  };
2606
2606
  }
2607
- var so = /[a-zA-Z_:][a-zA-Z0-9:._-]*/,
2608
- no = /[^"'=<>`\x00-\x20]+/,
2609
- ro = /'[^']*'/,
2610
- oo = /"[^"]*"/,
2611
- ao = Hi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", no)("single_quoted", ro)("double_quoted", oo)(),
2612
- lo = Hi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", so)("attr_value", ao)(),
2613
- co = Hi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", lo)(),
2614
- ho = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
2615
- uo = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,
2616
- fo = /<[?].*?[?]>/,
2617
- po = /<![A-Z]+\s+[^>]*>/,
2618
- mo = /<!\[CDATA\[[\s\S]*?\]\]>/,
2619
- go = Hi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", co)("close_tag", ho)("comment", uo)("processing", fo)("declaration", po)("cdata", mo)();
2620
- function bo(n) {
2607
+ var io = /[a-zA-Z_:][a-zA-Z0-9:._-]*/,
2608
+ so = /[^"'=<>`\x00-\x20]+/,
2609
+ no = /'[^']*'/,
2610
+ ro = /"[^"]*"/,
2611
+ oo = qi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", so)("single_quoted", no)("double_quoted", ro)(),
2612
+ ao = qi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", io)("attr_value", oo)(),
2613
+ lo = qi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", ao)(),
2614
+ co = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
2615
+ ho = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,
2616
+ uo = /<[?].*?[?]>/,
2617
+ fo = /<![A-Z]+\s+[^>]*>/,
2618
+ po = /<!\[CDATA\[[\s\S]*?\]\]>/,
2619
+ mo = qi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", lo)("close_tag", co)("comment", ho)("processing", uo)("declaration", fo)("cdata", po)();
2620
+ function go(n) {
2621
2621
  var e = n | 32;
2622
2622
  return e >= 97 && e <= 122;
2623
2623
  }
2624
- function vo(n, e) {
2624
+ function bo(n, e) {
2625
2625
  var t,
2626
2626
  i,
2627
2627
  s,
2628
2628
  r = n.pos;
2629
- return !n.options.html || (s = n.posMax, n.src.charCodeAt(r) !== 60 || r + 2 >= s) || (t = n.src.charCodeAt(r + 1), t !== 33 && t !== 63 && t !== 47 && !bo(t)) || (i = n.src.slice(r).match(go), !i) ? !1 : (e || n.push({
2629
+ return !n.options.html || (s = n.posMax, n.src.charCodeAt(r) !== 60 || r + 2 >= s) || (t = n.src.charCodeAt(r + 1), t !== 33 && t !== 63 && t !== 47 && !go(t)) || (i = n.src.slice(r).match(mo), !i) ? !1 : (e || n.push({
2630
2630
  type: "htmltag",
2631
2631
  content: n.src.slice(r, r + i[0].length),
2632
2632
  level: n.level
2633
2633
  }), n.pos += i[0].length, !0);
2634
2634
  }
2635
- var yo = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
2636
- Eo = /^&([a-z][a-z0-9]{1,31});/i;
2637
- function So(n, e) {
2635
+ var vo = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
2636
+ yo = /^&([a-z][a-z0-9]{1,31});/i;
2637
+ function Eo(n, e) {
2638
2638
  var t,
2639
2639
  i,
2640
2640
  s,
@@ -2643,21 +2643,21 @@ function So(n, e) {
2643
2643
  if (n.src.charCodeAt(r) !== 38) return !1;
2644
2644
  if (r + 1 < o) {
2645
2645
  if (t = n.src.charCodeAt(r + 1), t === 35) {
2646
- if (s = n.src.slice(r).match(yo), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += En(i) ? es(i) : es(65533)), n.pos += s[0].length, !0;
2647
- } else if (s = n.src.slice(r).match(Eo), s) {
2648
- var a = vn(s[1]);
2646
+ if (s = n.src.slice(r).match(vo), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += yn(i) ? Qi(i) : Qi(65533)), n.pos += s[0].length, !0;
2647
+ } else if (s = n.src.slice(r).match(yo), s) {
2648
+ var a = bn(s[1]);
2649
2649
  if (s[1] !== a) return e || (n.pending += a), n.pos += s[0].length, !0;
2650
2650
  }
2651
2651
  }
2652
2652
  return e || (n.pending += "&"), n.pos++, !0;
2653
2653
  }
2654
- var Yi = [["text", Fr], ["newline", Ur], ["escape", jr], ["backticks", qr], ["del", Hr], ["ins", zr], ["mark", Gr], ["emphasis", Vr], ["sub", $r], ["sup", Jr], ["links", Xr], ["footnote_inline", Yr], ["footnote_ref", Zr], ["autolink", io], ["htmltag", vo], ["entity", So]];
2655
- function zi() {
2654
+ var Xi = [["text", Br], ["newline", Fr], ["escape", Ur], ["backticks", jr], ["del", qr], ["ins", Hr], ["mark", zr], ["emphasis", Gr], ["sub", Kr], ["sup", Wr], ["links", Jr], ["footnote_inline", Xr], ["footnote_ref", Yr], ["autolink", to], ["htmltag", bo], ["entity", Eo]];
2655
+ function Hi() {
2656
2656
  this.ruler = new ce();
2657
- for (var n = 0; n < Yi.length; n++) this.ruler.push(Yi[n][0], Yi[n][1]);
2658
- this.validateLink = _o;
2657
+ for (var n = 0; n < Xi.length; n++) this.ruler.push(Xi[n][0], Xi[n][1]);
2658
+ this.validateLink = So;
2659
2659
  }
2660
- zi.prototype.skipToken = function (n) {
2660
+ Hi.prototype.skipToken = function (n) {
2661
2661
  var e = this.ruler.getRules(""),
2662
2662
  t = e.length,
2663
2663
  i = n.pos,
@@ -2673,7 +2673,7 @@ zi.prototype.skipToken = function (n) {
2673
2673
  }
2674
2674
  n.pos++, n.cacheSet(i, n.pos);
2675
2675
  };
2676
- zi.prototype.tokenize = function (n) {
2676
+ Hi.prototype.tokenize = function (n) {
2677
2677
  for (var e = this.ruler.getRules(""), t = e.length, i = n.posMax, s, r; n.pos < i;) {
2678
2678
  for (r = 0; r < t && (s = e[r](n, !1), !s); r++);
2679
2679
  if (s) {
@@ -2684,16 +2684,16 @@ zi.prototype.tokenize = function (n) {
2684
2684
  }
2685
2685
  n.pending && n.pushPending();
2686
2686
  };
2687
- zi.prototype.parse = function (n, e, t, i) {
2687
+ Hi.prototype.parse = function (n, e, t, i) {
2688
2688
  var s = new rt(n, this, e, t, i);
2689
2689
  this.tokenize(s);
2690
2690
  };
2691
- function _o(n) {
2691
+ function So(n) {
2692
2692
  var e = ["vbscript", "javascript", "file", "data"],
2693
2693
  t = n.trim().toLowerCase();
2694
2694
  return t = it(t), !(t.indexOf(":") !== -1 && e.indexOf(t.split(":")[0]) !== -1);
2695
2695
  }
2696
- var xo = {
2696
+ var _o = {
2697
2697
  options: {
2698
2698
  html: !1,
2699
2699
  // Enable HTML tags in source
@@ -2731,7 +2731,7 @@ var xo = {
2731
2731
  }
2732
2732
  }
2733
2733
  },
2734
- wo = {
2734
+ xo = {
2735
2735
  options: {
2736
2736
  html: !1,
2737
2737
  // Enable HTML tags in source
@@ -2764,7 +2764,7 @@ var xo = {
2764
2764
  inline: {}
2765
2765
  }
2766
2766
  },
2767
- Ao = {
2767
+ wo = {
2768
2768
  options: {
2769
2769
  html: !0,
2770
2770
  // Enable HTML tags in source
@@ -2802,19 +2802,19 @@ var xo = {
2802
2802
  }
2803
2803
  }
2804
2804
  },
2805
- To = {
2806
- "default": xo,
2807
- full: wo,
2808
- commonmark: Ao
2805
+ Ao = {
2806
+ "default": _o,
2807
+ full: xo,
2808
+ commonmark: wo
2809
2809
  };
2810
- function Cn(n, e, t) {
2810
+ function Tn(n, e, t) {
2811
2811
  this.src = e, this.env = t, this.options = n.options, this.tokens = [], this.inlineMode = !1, this.inline = n.inline, this.block = n.block, this.renderer = n.renderer, this.typographer = n.typographer;
2812
2812
  }
2813
2813
  function _e(n, e) {
2814
- typeof n != "string" && (e = n, n = "default"), e && e.linkify != null && console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"), this.inline = new zi(), this.block = new Ss(), this.core = new An(), this.renderer = new Es(), this.ruler = new ce(), this.options = {}, this.configure(To[n]), this.set(e || {});
2814
+ typeof n != "string" && (e = n, n = "default"), e && e.linkify != null && console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"), this.inline = new Hi(), this.block = new ys(), this.core = new wn(), this.renderer = new vs(), this.ruler = new ce(), this.options = {}, this.configure(Ao[n]), this.set(e || {});
2815
2815
  }
2816
2816
  _e.prototype.set = function (n) {
2817
- yn(this.options, n);
2817
+ vn(this.options, n);
2818
2818
  };
2819
2819
  _e.prototype.configure = function (n) {
2820
2820
  var e = this;
@@ -2827,14 +2827,14 @@ _e.prototype.use = function (n, e) {
2827
2827
  return n(this, e), this;
2828
2828
  };
2829
2829
  _e.prototype.parse = function (n, e) {
2830
- var t = new Cn(this, n, e);
2830
+ var t = new Tn(this, n, e);
2831
2831
  return this.core.process(t), t.tokens;
2832
2832
  };
2833
2833
  _e.prototype.render = function (n, e) {
2834
2834
  return e = e || {}, this.renderer.render(this.parse(n, e), this.options, e);
2835
2835
  };
2836
2836
  _e.prototype.parseInline = function (n, e) {
2837
- var t = new Cn(this, n, e);
2837
+ var t = new Tn(this, n, e);
2838
2838
  return t.inlineMode = !0, this.core.process(t), t.tokens;
2839
2839
  };
2840
2840
  _e.prototype.renderInline = function (n, e) {
@@ -3320,8 +3320,8 @@ var te = /*#__PURE__*/function () {
3320
3320
  }();
3321
3321
  te.TEXT_BUBBLE_CLASS = "text-message", te.INTRO_CLASS = "deep-chat-intro", te.LAST_GROUP_MESSAGES_ACTIVE = "deep-chat-last-group-messages-active";
3322
3322
  var fe = te;
3323
- var Gs = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2032%2032'%20xml:space='preserve'%3e%3cpath%20d='M23,30.36H9c-2.404,0-4.36-1.956-4.36-4.36V15c0-2.404,1.956-4.36,4.36-4.36h3.659%20c0.167-1.566,1.415-2.813,2.981-2.981V5.333c-1.131-0.174-2-1.154-2-2.333c0-1.301,1.059-2.36,2.36-2.36%20c1.302,0,2.36,1.059,2.36,2.36c0,1.179-0.869,2.159-2,2.333V7.66c1.566,0.167,2.814,1.415,2.981,2.981H23%20c2.404,0,4.36,1.956,4.36,4.36v11C27.36,28.404,25.404,30.36,23,30.36z%20M9,11.36c-2.007,0-3.64,1.633-3.64,3.64v11%20c0,2.007,1.633,3.64,3.64,3.64h14c2.007,0,3.64-1.633,3.64-3.64V15c0-2.007-1.633-3.64-3.64-3.64H9z%20M13.384,10.64h5.231%20C18.439,9.354,17.334,8.36,16,8.36C14.667,8.36,13.561,9.354,13.384,10.64z%20M16,1.36c-0.904,0-1.64,0.736-1.64,1.64%20S15.096,4.64,16,4.64c0.904,0,1.64-0.736,1.64-1.64S16.904,1.36,16,1.36z%20M20,27.36h-8c-1.301,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36h8c1.302,0,2.36,1.059,2.36,2.36S21.302,27.36,20,27.36z%20M12,23.36c-0.904,0-1.64,0.735-1.64,1.64%20s0.736,1.64,1.64,1.64h8c0.904,0,1.64-0.735,1.64-1.64s-0.735-1.64-1.64-1.64H12z%20M31,23.86h-2c-0.199,0-0.36-0.161-0.36-0.36V15%20c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5C31.36,23.699,31.199,23.86,31,23.86z%20M29.36,23.14h1.279v-7.78%20H29.36V23.14z%20M3,23.86H1c-0.199,0-0.36-0.161-0.36-0.36V15c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5%20C3.36,23.699,3.199,23.86,3,23.86z%20M1.36,23.14h1.28v-7.78H1.36V23.14z%20M20,20.36c-1.302,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36s2.36,1.059,2.36,2.36C22.36,19.302,21.302,20.36,20,20.36z%20M20,16.36c-0.904,0-1.64,0.736-1.64,1.64%20s0.735,1.64,1.64,1.64s1.64-0.735,1.64-1.64S20.904,16.36,20,16.36z%20M12,20.36c-1.301,0-2.36-1.059-2.36-2.36s1.059-2.36,2.36-2.36%20s2.36,1.059,2.36,2.36C14.36,19.302,13.301,20.36,12,20.36z%20M12,16.36c-0.904,0-1.64,0.736-1.64,1.64s0.736,1.64,1.64,1.64%20s1.64-0.735,1.64-1.64S12.904,16.36,12,16.36z'/%3e%3crect%20style='fill:none;'%20width='32'%20height='32'/%3e%3c/svg%3e",
3324
- is = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==",
3323
+ var zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2032%2032'%20xml:space='preserve'%3e%3cpath%20d='M23,30.36H9c-2.404,0-4.36-1.956-4.36-4.36V15c0-2.404,1.956-4.36,4.36-4.36h3.659%20c0.167-1.566,1.415-2.813,2.981-2.981V5.333c-1.131-0.174-2-1.154-2-2.333c0-1.301,1.059-2.36,2.36-2.36%20c1.302,0,2.36,1.059,2.36,2.36c0,1.179-0.869,2.159-2,2.333V7.66c1.566,0.167,2.814,1.415,2.981,2.981H23%20c2.404,0,4.36,1.956,4.36,4.36v11C27.36,28.404,25.404,30.36,23,30.36z%20M9,11.36c-2.007,0-3.64,1.633-3.64,3.64v11%20c0,2.007,1.633,3.64,3.64,3.64h14c2.007,0,3.64-1.633,3.64-3.64V15c0-2.007-1.633-3.64-3.64-3.64H9z%20M13.384,10.64h5.231%20C18.439,9.354,17.334,8.36,16,8.36C14.667,8.36,13.561,9.354,13.384,10.64z%20M16,1.36c-0.904,0-1.64,0.736-1.64,1.64%20S15.096,4.64,16,4.64c0.904,0,1.64-0.736,1.64-1.64S16.904,1.36,16,1.36z%20M20,27.36h-8c-1.301,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36h8c1.302,0,2.36,1.059,2.36,2.36S21.302,27.36,20,27.36z%20M12,23.36c-0.904,0-1.64,0.735-1.64,1.64%20s0.736,1.64,1.64,1.64h8c0.904,0,1.64-0.735,1.64-1.64s-0.735-1.64-1.64-1.64H12z%20M31,23.86h-2c-0.199,0-0.36-0.161-0.36-0.36V15%20c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5C31.36,23.699,31.199,23.86,31,23.86z%20M29.36,23.14h1.279v-7.78%20H29.36V23.14z%20M3,23.86H1c-0.199,0-0.36-0.161-0.36-0.36V15c0-0.199,0.161-0.36,0.36-0.36h2c0.199,0,0.36,0.161,0.36,0.36v8.5%20C3.36,23.699,3.199,23.86,3,23.86z%20M1.36,23.14h1.28v-7.78H1.36V23.14z%20M20,20.36c-1.302,0-2.36-1.059-2.36-2.36%20s1.059-2.36,2.36-2.36s2.36,1.059,2.36,2.36C22.36,19.302,21.302,20.36,20,20.36z%20M20,16.36c-0.904,0-1.64,0.736-1.64,1.64%20s0.735,1.64,1.64,1.64s1.64-0.735,1.64-1.64S20.904,16.36,20,16.36z%20M12,20.36c-1.301,0-2.36-1.059-2.36-2.36s1.059-2.36,2.36-2.36%20s2.36,1.059,2.36,2.36C14.36,19.302,13.301,20.36,12,20.36z%20M12,16.36c-0.904,0-1.64,0.736-1.64,1.64s0.736,1.64,1.64,1.64%20s1.64-0.735,1.64-1.64S12.904,16.36,12,16.36z'/%3e%3crect%20style='fill:none;'%20width='32'%20height='32'/%3e%3c/svg%3e",
3324
+ ts = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==",
3325
3325
  X = /*#__PURE__*/function () {
3326
3326
  function X() {
3327
3327
  _classCallCheck(this, X);
@@ -3363,7 +3363,7 @@ var Gs = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e
3363
3363
  value: function createAvatar(e, t) {
3364
3364
  var r, o, a, l, c;
3365
3365
  var i = document.createElement("img");
3366
- 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) || is, i.onerror = X.errorFallback.bind(this, is)) : (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) || Gs, i.onerror = X.errorFallback.bind(this, Gs)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3366
+ 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 = X.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) || zs, i.onerror = X.errorFallback.bind(this, zs)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3367
3367
  var s = document.createElement("div");
3368
3368
  return s.classList.add(X.CONTAINER_CLASS), s.appendChild(i), t && X.applyCustomStyles(s, i, t, e), s;
3369
3369
  }
@@ -3829,11 +3829,11 @@ var Je = /*#__PURE__*/function () {
3829
3829
  }();
3830
3830
  Je.CONTENT_TYPE = "Content-Type";
3831
3831
  var S = Je;
3832
- function Co(_x14, _x15) {
3833
- return _Co.apply(this, arguments);
3832
+ function To(_x14, _x15) {
3833
+ return _To.apply(this, arguments);
3834
3834
  }
3835
- function _Co() {
3836
- _Co = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee134(n, e) {
3835
+ function _To() {
3836
+ _To = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee134(n, e) {
3837
3837
  var t, i;
3838
3838
  return _regeneratorRuntime().wrap(function _callee134$(_context134) {
3839
3839
  while (1) switch (_context134.prev = _context134.next) {
@@ -3857,15 +3857,15 @@ function _Co() {
3857
3857
  }
3858
3858
  }, _callee134);
3859
3859
  }));
3860
- return _Co.apply(this, arguments);
3860
+ return _To.apply(this, arguments);
3861
3861
  }
3862
- function Ro(n) {
3862
+ function Co(n) {
3863
3863
  var e,
3864
3864
  t,
3865
3865
  i,
3866
3866
  s = !1;
3867
3867
  return function (o) {
3868
- e === void 0 ? (e = o, t = 0, i = -1) : e = ko(e, o);
3868
+ e === void 0 ? (e = o, t = 0, i = -1) : e = Mo(e, o);
3869
3869
  var a = e.length;
3870
3870
  var l = 0;
3871
3871
  for (; t < a;) {
@@ -3887,11 +3887,11 @@ function Ro(n) {
3887
3887
  l === a ? e = void 0 : l !== 0 && (e = e.subarray(l), t -= l);
3888
3888
  };
3889
3889
  }
3890
- function Mo(n, e, t) {
3891
- var i = Vs();
3890
+ function Ro(n, e, t) {
3891
+ var i = Gs();
3892
3892
  var s = new TextDecoder();
3893
3893
  return function (o, a) {
3894
- if (o.length === 0) t == null || t(i), i = Vs();else if (a > 0) {
3894
+ if (o.length === 0) t == null || t(i), i = Gs();else if (a > 0) {
3895
3895
  var l = s.decode(o.subarray(0, a)),
3896
3896
  c = a + (o[a + 1] === 32 ? 2 : 1),
3897
3897
  d = s.decode(o.subarray(c));
@@ -3913,11 +3913,11 @@ function Mo(n, e, t) {
3913
3913
  }
3914
3914
  };
3915
3915
  }
3916
- function ko(n, e) {
3916
+ function Mo(n, e) {
3917
3917
  var t = new Uint8Array(n.length + e.length);
3918
3918
  return t.set(n), t.set(e, n.length), t;
3919
3919
  }
3920
- function Vs() {
3920
+ function Gs() {
3921
3921
  return {
3922
3922
  data: "",
3923
3923
  event: "",
@@ -3925,16 +3925,16 @@ function Vs() {
3925
3925
  retry: void 0
3926
3926
  };
3927
3927
  }
3928
- var Lo = function Lo(n, e) {
3928
+ var ko = function ko(n, e) {
3929
3929
  var t = {};
3930
3930
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
3931
3931
  if (n != null && typeof Object.getOwnPropertySymbols == "function") for (var s = 0, i = Object.getOwnPropertySymbols(n); s < i.length; s++) e.indexOf(i[s]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[s]) && (t[i[s]] = n[i[s]]);
3932
3932
  return t;
3933
3933
  };
3934
- var ss = "text/event-stream",
3935
- Io = 1e3,
3936
- Ks = "last-event-id";
3937
- function Po(n, e) {
3934
+ var is = "text/event-stream",
3935
+ Lo = 1e3,
3936
+ Vs = "last-event-id";
3937
+ function Io(n, e) {
3938
3938
  var t = e.signal,
3939
3939
  i = e.headers,
3940
3940
  s = e.onopen,
@@ -3943,16 +3943,16 @@ function Po(n, e) {
3943
3943
  a = e.onerror,
3944
3944
  l = e.openWhenHidden,
3945
3945
  c = e.fetch,
3946
- d = Lo(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
3946
+ d = ko(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
3947
3947
  return new Promise(function (u, h) {
3948
3948
  var f = Object.assign({}, i);
3949
- f.accept || (f.accept = ss);
3949
+ f.accept || (f.accept = is);
3950
3950
  var m;
3951
3951
  function p() {
3952
3952
  m.abort(), document.hidden || N();
3953
3953
  }
3954
3954
  l || document.addEventListener("visibilitychange", p);
3955
- var g = Io,
3955
+ var g = Lo,
3956
3956
  v = 0;
3957
3957
  function T() {
3958
3958
  document.removeEventListener("visibilitychange", p), window.clearTimeout(v), m.abort();
@@ -3961,7 +3961,7 @@ function Po(n, e) {
3961
3961
  T(), u();
3962
3962
  });
3963
3963
  var B = c !== null && c !== void 0 ? c : window.fetch,
3964
- Te = s !== null && s !== void 0 ? s : Oo;
3964
+ Te = s !== null && s !== void 0 ? s : Po;
3965
3965
  function N() {
3966
3966
  return _N.apply(this, arguments);
3967
3967
  }
@@ -3984,8 +3984,8 @@ function Po(n, e) {
3984
3984
  return Te(re);
3985
3985
  case 7:
3986
3986
  _context5.next = 9;
3987
- return Co(re.body, Ro(Mo(function (H) {
3988
- H ? f[Ks] = H : delete f[Ks];
3987
+ return To(re.body, Co(Ro(function (H) {
3988
+ H ? f[Vs] = H : delete f[Vs];
3989
3989
  }, function (H) {
3990
3990
  g = H;
3991
3991
  }, r)));
@@ -4015,9 +4015,9 @@ function Po(n, e) {
4015
4015
  N();
4016
4016
  });
4017
4017
  }
4018
- function Oo(n) {
4018
+ function Po(n) {
4019
4019
  var e = n.headers.get("content-type");
4020
- if (!(e != null && e.startsWith(ss))) throw new Error("Expected content-type to be ".concat(ss, ", Actual: ").concat(e));
4020
+ if (!(e != null && e.startsWith(is))) throw new Error("Expected content-type to be ".concat(is, ", Actual: ").concat(e));
4021
4021
  }
4022
4022
  var M = /*#__PURE__*/function () {
4023
4023
  function M() {
@@ -4087,7 +4087,7 @@ var M = /*#__PURE__*/function () {
4087
4087
  return _context8.abrupt("return", we.requestStream(i, e.streamHandlers));
4088
4088
  case 19:
4089
4089
  f = new xe(i), m = S.fetch.bind(this, e, l, s);
4090
- return _context8.abrupt("return", (Po(((T = e.connectSettings) == null ? void 0 : T.url) || e.url || "", {
4090
+ return _context8.abrupt("return", (Io(((T = e.connectSettings) == null ? void 0 : T.url) || e.url || "", {
4091
4091
  method: ((B = e.connectSettings) == null ? void 0 : B.method) || "POST",
4092
4092
  headers: l,
4093
4093
  credentials: (Te = e.connectSettings) == null ? void 0 : Te.credentials,
@@ -5700,9 +5700,9 @@ var Me = /*#__PURE__*/function (_HTMLElement) {
5700
5700
  }]);
5701
5701
  }(/*#__PURE__*/_wrapNativeSuper(HTMLElement));
5702
5702
  Me._attributes_ = {}, Me._attributeToProperty_ = {};
5703
- var ns = Me;
5704
- var No = "<?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",
5705
- Do = "<?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";
5703
+ var ss = Me;
5704
+ var Oo = "<?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",
5705
+ No = "<?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";
5706
5706
  var K = /*#__PURE__*/function () {
5707
5707
  function K() {
5708
5708
  _classCallCheck(this, K);
@@ -5737,15 +5737,15 @@ var Fe = /*#__PURE__*/function () {
5737
5737
  value: function create(e) {
5738
5738
  var t = document.createElement("div");
5739
5739
  t.id = "visibility-icon-container";
5740
- var i = Fe.createIconElement(Do, Fe.VISIBLE_ICON_ID);
5740
+ var i = Fe.createIconElement(No, Fe.VISIBLE_ICON_ID);
5741
5741
  i.style.display = "none", t.appendChild(i);
5742
- var s = Fe.createIconElement(No, "not-visible-icon");
5742
+ var s = Fe.createIconElement(Oo, "not-visible-icon");
5743
5743
  return t.appendChild(s), t.onclick = Fe.changeVisibility.bind(this, e, i, s), t;
5744
5744
  }
5745
5745
  }]);
5746
5746
  }();
5747
5747
  Fe.VISIBLE_ICON_ID = "visible-icon";
5748
- var rs = Fe;
5748
+ var ns = Fe;
5749
5749
  var W = /*#__PURE__*/function () {
5750
5750
  function W() {
5751
5751
  _classCallCheck(this, W);
@@ -5849,7 +5849,7 @@ var W = /*#__PURE__*/function () {
5849
5849
  i.id = "insert-key-contents";
5850
5850
  var s = W.createInput(t.insertKeyPlaceholderText),
5851
5851
  r = s.children[0],
5852
- o = rs.create(r);
5852
+ o = ns.create(r);
5853
5853
  s.appendChild(o), i.appendChild(s);
5854
5854
  var a = W.createStartButton(),
5855
5855
  _W$createHelpTextCont = W.createHelpTextContainer(t.keyHelpUrl, (d = t.deepChat._insertKeyViewStyles) == null ? void 0 : d.displayCautionText),
@@ -5939,7 +5939,7 @@ var oe = /*#__PURE__*/function () {
5939
5939
  }();
5940
5940
  oe.DOWNLOAD_BUTTON_CLASS = "deep-chat-download-button", oe.UPLOAD_BUTTON_CLASS = "deep-chat-upload-button", oe.FILE_INPUT_CLASS = "deep-chat-file-input", oe.EXPORT_BUTTON_CLASS = "deep-chat-export-button";
5941
5941
  var xi = oe;
5942
- var $s = {
5942
+ var Ks = {
5943
5943
  model_list: [
5944
5944
  // Llama-2
5945
5945
  {
@@ -6198,7 +6198,7 @@ var $s = {
6198
6198
  }
6199
6199
  if (this._isModelLoaded || this._isModelLoading) return;
6200
6200
  var e = this._webModel.worker;
6201
- return $s.use_web_worker && e ? new window.webLLM.ChatWorkerClient(e) : new window.webLLM.ChatModule();
6201
+ return Ks.use_web_worker && e ? new window.webLLM.ChatWorkerClient(e) : new window.webLLM.ChatModule();
6202
6202
  }
6203
6203
  }, {
6204
6204
  key: "getConfig",
@@ -6206,7 +6206,7 @@ var $s = {
6206
6206
  var i;
6207
6207
  var e = A.DEFAULT_MODEL;
6208
6208
  this._webModel.model && (e = this._webModel.model);
6209
- var t = JSON.parse(JSON.stringify($s));
6209
+ var t = JSON.parse(JSON.stringify(Ks));
6210
6210
  if (this._webModel.urls) {
6211
6211
  var s = t.model_list.find(function (r) {
6212
6212
  return r.local_id = e;
@@ -6749,19 +6749,19 @@ var ci = /*#__PURE__*/function (_De) {
6749
6749
  }
6750
6750
  }]);
6751
6751
  }(De);
6752
- var Bo = /*#__PURE__*/function (_ci) {
6752
+ var Do = /*#__PURE__*/function (_ci) {
6753
6753
  // prettier-ignore
6754
- function Bo(e) {
6755
- _classCallCheck(this, Bo);
6754
+ function Do(e) {
6755
+ _classCallCheck(this, Do);
6756
6756
  var s, r, o;
6757
6757
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.audioClassification,
6758
6758
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
6759
- return _callSuper(this, Bo, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", t, i, {
6759
+ return _callSuper(this, Do, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", t, i, {
6760
6760
  audio: {}
6761
6761
  }]);
6762
6762
  }
6763
- _inherits(Bo, _ci);
6764
- return _createClass(Bo, [{
6763
+ _inherits(Do, _ci);
6764
+ return _createClass(Do, [{
6765
6765
  key: "extractPollResultData",
6766
6766
  value: function () {
6767
6767
  var _extractPollResultData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee44(e) {
@@ -6799,18 +6799,18 @@ var Bo = /*#__PURE__*/function (_ci) {
6799
6799
  }()
6800
6800
  }]);
6801
6801
  }(ci);
6802
- var Fo = /*#__PURE__*/function (_ci2) {
6803
- function Fo(e) {
6804
- _classCallCheck(this, Fo);
6802
+ var Bo = /*#__PURE__*/function (_ci2) {
6803
+ function Bo(e) {
6804
+ _classCallCheck(this, Bo);
6805
6805
  var s, r, o;
6806
6806
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.imageClassification,
6807
6807
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
6808
- return _callSuper(this, Fo, [e, "Attach an image file", "google/vit-base-patch16-224", t, i, {
6808
+ return _callSuper(this, Bo, [e, "Attach an image file", "google/vit-base-patch16-224", t, i, {
6809
6809
  images: {}
6810
6810
  }]);
6811
6811
  }
6812
- _inherits(Fo, _ci2);
6813
- return _createClass(Fo, [{
6812
+ _inherits(Bo, _ci2);
6813
+ return _createClass(Bo, [{
6814
6814
  key: "extractPollResultData",
6815
6815
  value: function () {
6816
6816
  var _extractPollResultData2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee45(e) {
@@ -6878,18 +6878,18 @@ var Ae = /*#__PURE__*/function () {
6878
6878
  }
6879
6879
  }]);
6880
6880
  }();
6881
- var Gi = /*#__PURE__*/function (_$2) {
6881
+ var zi = /*#__PURE__*/function (_$2) {
6882
6882
  // prettier-ignore
6883
- function Gi(e, t, i, s, r) {
6883
+ function zi(e, t, i, s, r) {
6884
6884
  var _this24;
6885
- _classCallCheck(this, Gi);
6886
- _this24 = _callSuper(this, Gi, [e, t, i, s, r]), _this24.insertKeyPlaceholderText = "Stability AI API Key", _this24.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", _this24.permittedErrorPrefixes = ["Incorrect", "invalid_"];
6885
+ _classCallCheck(this, zi);
6886
+ _this24 = _callSuper(this, zi, [e, t, i, s, r]), _this24.insertKeyPlaceholderText = "Stability AI API Key", _this24.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", _this24.permittedErrorPrefixes = ["Incorrect", "invalid_"];
6887
6887
  return _this24;
6888
6888
  }
6889
- _inherits(Gi, _$2);
6890
- return _createClass(Gi);
6889
+ _inherits(zi, _$2);
6890
+ return _createClass(zi);
6891
6891
  }($);
6892
- var Ai = /*#__PURE__*/function (_Gi) {
6892
+ var Ai = /*#__PURE__*/function (_zi) {
6893
6893
  function Ai(e) {
6894
6894
  var _this25;
6895
6895
  _classCallCheck(this, Ai);
@@ -6909,7 +6909,7 @@ var Ai = /*#__PURE__*/function (_Gi) {
6909
6909
  _typeof(r) == "object" && (r.engine_id && (_this25.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/upscale")), Ai.cleanConfig(r), Object.assign(_this25.rawBody, r)), _this25.canSendMessage = Ai.canSendFileMessage;
6910
6910
  return _this25;
6911
6911
  }
6912
- _inherits(Ai, _Gi);
6912
+ _inherits(Ai, _zi);
6913
6913
  return _createClass(Ai, [{
6914
6914
  key: "createFormDataBody",
6915
6915
  value: function createFormDataBody(e, t) {
@@ -6995,8 +6995,8 @@ var Ai = /*#__PURE__*/function (_Gi) {
6995
6995
  return !!(t != null && t[0]);
6996
6996
  }
6997
6997
  }]);
6998
- }(Gi);
6999
- var Ti = /*#__PURE__*/function (_Gi2) {
6998
+ }(zi);
6999
+ var Ti = /*#__PURE__*/function (_zi2) {
7000
7000
  function Ti(e) {
7001
7001
  var _this26;
7002
7002
  _classCallCheck(this, Ti);
@@ -7016,7 +7016,7 @@ var Ti = /*#__PURE__*/function (_Gi2) {
7016
7016
  _typeof(r) == "object" && (r.engine_id && (_this26.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/masking")), r.weight !== void 0 && r.weight !== null && (_this26._imageWeight = r.weight), r.mask_source !== void 0 && r.mask_source !== null && (_this26._maskSource = r.mask_source), Ti.cleanConfig(r), Object.assign(_this26.rawBody, r)), _this26.canSendMessage = Ti.canSendFileTextMessage;
7017
7017
  return _this26;
7018
7018
  }
7019
- _inherits(Ti, _Gi2);
7019
+ _inherits(Ti, _zi2);
7020
7020
  return _createClass(Ti, [{
7021
7021
  key: "createFormDataBody",
7022
7022
  value: function createFormDataBody(e, t, i, s) {
@@ -7102,19 +7102,19 @@ var Ti = /*#__PURE__*/function (_Gi2) {
7102
7102
  return !!(t != null && t[0]) && !!(e && e.trim() !== "");
7103
7103
  }
7104
7104
  }]);
7105
- }(Gi);
7106
- var Uo = /*#__PURE__*/function (_ci3) {
7107
- function Uo(e) {
7108
- _classCallCheck(this, Uo);
7105
+ }(zi);
7106
+ var Fo = /*#__PURE__*/function (_ci3) {
7107
+ function Fo(e) {
7108
+ _classCallCheck(this, Fo);
7109
7109
  var s, r, o;
7110
7110
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.audioSpeechRecognition,
7111
7111
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7112
- return _callSuper(this, Uo, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", t, i, {
7112
+ return _callSuper(this, Fo, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", t, i, {
7113
7113
  audio: {}
7114
7114
  }]);
7115
7115
  }
7116
- _inherits(Uo, _ci3);
7117
- return _createClass(Uo, [{
7116
+ _inherits(Fo, _ci3);
7117
+ return _createClass(Fo, [{
7118
7118
  key: "extractPollResultData",
7119
7119
  value: function () {
7120
7120
  var _extractPollResultData3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee50(e) {
@@ -7151,16 +7151,16 @@ var Uo = /*#__PURE__*/function (_ci3) {
7151
7151
  }()
7152
7152
  }]);
7153
7153
  }(ci);
7154
- var jo = /*#__PURE__*/function (_De2) {
7155
- function jo(e) {
7156
- _classCallCheck(this, jo);
7154
+ var Uo = /*#__PURE__*/function (_De2) {
7155
+ function Uo(e) {
7156
+ _classCallCheck(this, Uo);
7157
7157
  var s, r, o;
7158
7158
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.textGeneration,
7159
7159
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7160
- return _callSuper(this, jo, [e, "Once upon a time", "gpt2", t, i]);
7160
+ return _callSuper(this, Uo, [e, "Once upon a time", "gpt2", t, i]);
7161
7161
  }
7162
- _inherits(jo, _De2);
7163
- return _createClass(jo, [{
7162
+ _inherits(Uo, _De2);
7163
+ return _createClass(Uo, [{
7164
7164
  key: "extractResultData",
7165
7165
  value: function () {
7166
7166
  var _extractResultData4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee51(e) {
@@ -7190,18 +7190,18 @@ var jo = /*#__PURE__*/function (_De2) {
7190
7190
  }()
7191
7191
  }]);
7192
7192
  }(De);
7193
- var qo = /*#__PURE__*/function (_De3) {
7194
- function qo(e) {
7193
+ var jo = /*#__PURE__*/function (_De3) {
7194
+ function jo(e) {
7195
7195
  var _this27;
7196
- _classCallCheck(this, qo);
7196
+ _classCallCheck(this, jo);
7197
7197
  var s, r, o;
7198
7198
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.questionAnswer,
7199
7199
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7200
- _this27 = _callSuper(this, qo, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", t, i]), _this27.permittedErrorPrefixes = ["Authorization header", "Error in"], _this27.context = t.context;
7200
+ _this27 = _callSuper(this, jo, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", t, i]), _this27.permittedErrorPrefixes = ["Authorization header", "Error in"], _this27.context = t.context;
7201
7201
  return _this27;
7202
7202
  }
7203
- _inherits(qo, _De3);
7204
- return _createClass(qo, [{
7203
+ _inherits(jo, _De3);
7204
+ return _createClass(jo, [{
7205
7205
  key: "preprocessBody",
7206
7206
  value: function preprocessBody(e, t) {
7207
7207
  var i = t[t.length - 1].text;
@@ -7244,16 +7244,16 @@ var qo = /*#__PURE__*/function (_De3) {
7244
7244
  }()
7245
7245
  }]);
7246
7246
  }(De);
7247
- var Ho = /*#__PURE__*/function (_De4) {
7248
- function Ho(e) {
7249
- _classCallCheck(this, Ho);
7247
+ var qo = /*#__PURE__*/function (_De4) {
7248
+ function qo(e) {
7249
+ _classCallCheck(this, qo);
7250
7250
  var s, r, o;
7251
7251
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.summarization,
7252
7252
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7253
- return _callSuper(this, Ho, [e, "Insert text to summarize", "facebook/bart-large-cnn", t, i]);
7253
+ return _callSuper(this, qo, [e, "Insert text to summarize", "facebook/bart-large-cnn", t, i]);
7254
7254
  }
7255
- _inherits(Ho, _De4);
7256
- return _createClass(Ho, [{
7255
+ _inherits(qo, _De4);
7256
+ return _createClass(qo, [{
7257
7257
  key: "extractResultData",
7258
7258
  value: function () {
7259
7259
  var _extractResultData6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee53(e) {
@@ -7283,20 +7283,20 @@ var Ho = /*#__PURE__*/function (_De4) {
7283
7283
  }()
7284
7284
  }]);
7285
7285
  }(De);
7286
- var zo = /*#__PURE__*/function (_De5) {
7287
- function zo(e) {
7286
+ var Ho = /*#__PURE__*/function (_De5) {
7287
+ function Ho(e) {
7288
7288
  var _this28$maxMessages;
7289
7289
  var _this28;
7290
- _classCallCheck(this, zo);
7290
+ _classCallCheck(this, Ho);
7291
7291
  var s, r, o;
7292
7292
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.conversation,
7293
7293
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7294
- _this28 = _callSuper(this, zo, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", t, i]), (_this28$maxMessages = _this28.maxMessages) !== null && _this28$maxMessages !== void 0 ? _this28$maxMessages : _this28.maxMessages = -1;
7294
+ _this28 = _callSuper(this, Ho, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", t, i]), (_this28$maxMessages = _this28.maxMessages) !== null && _this28$maxMessages !== void 0 ? _this28$maxMessages : _this28.maxMessages = -1;
7295
7295
  return _this28;
7296
7296
  }
7297
7297
  // prettier-ignore
7298
- _inherits(zo, _De5);
7299
- return _createClass(zo, [{
7298
+ _inherits(Ho, _De5);
7299
+ return _createClass(Ho, [{
7300
7300
  key: "processMessages",
7301
7301
  value: function processMessages(e) {
7302
7302
  var t = e.filter(function (a) {
@@ -7365,7 +7365,7 @@ var zo = /*#__PURE__*/function (_De5) {
7365
7365
  }()
7366
7366
  }]);
7367
7367
  }(De);
7368
- var Ci = /*#__PURE__*/function (_Gi3) {
7368
+ var Ci = /*#__PURE__*/function (_zi3) {
7369
7369
  function Ci(e) {
7370
7370
  var _this29;
7371
7371
  _classCallCheck(this, Ci);
@@ -7385,7 +7385,7 @@ var Ci = /*#__PURE__*/function (_Gi3) {
7385
7385
  _typeof(r) == "object" && (r.engine_id && (_this29.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/text-to-image")), r.weight !== void 0 && r.weight !== null && (_this29._imageWeight = r.weight), Ci.cleanConfig(r), Object.assign(_this29.rawBody, r)), _this29.canSendMessage = Ci.canSendFileTextMessage;
7386
7386
  return _this29;
7387
7387
  }
7388
- _inherits(Ci, _Gi3);
7388
+ _inherits(Ci, _zi3);
7389
7389
  return _createClass(Ci, [{
7390
7390
  key: "createFormDataBody",
7391
7391
  value: function createFormDataBody(e, t, i) {
@@ -7471,17 +7471,17 @@ var Ci = /*#__PURE__*/function (_Gi3) {
7471
7471
  return !!(t != null && t[0]) && !!(e && e.trim() !== "");
7472
7472
  }
7473
7473
  }]);
7474
- }(Gi);
7475
- var Go = /*#__PURE__*/function (_De6) {
7476
- function Go(e) {
7477
- _classCallCheck(this, Go);
7474
+ }(zi);
7475
+ var zo = /*#__PURE__*/function (_De6) {
7476
+ function zo(e) {
7477
+ _classCallCheck(this, zo);
7478
7478
  var s, r, o;
7479
7479
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.translation,
7480
7480
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7481
- return _callSuper(this, Go, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
7481
+ return _callSuper(this, zo, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
7482
7482
  }
7483
- _inherits(Go, _De6);
7484
- return _createClass(Go, [{
7483
+ _inherits(zo, _De6);
7484
+ return _createClass(zo, [{
7485
7485
  key: "extractResultData",
7486
7486
  value: function () {
7487
7487
  var _extractResultData9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee57(e) {
@@ -7511,7 +7511,7 @@ var Go = /*#__PURE__*/function (_De6) {
7511
7511
  }()
7512
7512
  }]);
7513
7513
  }(De);
7514
- var Ri = /*#__PURE__*/function (_Gi4) {
7514
+ var Ri = /*#__PURE__*/function (_zi4) {
7515
7515
  function Ri(e) {
7516
7516
  var _this30;
7517
7517
  _classCallCheck(this, Ri);
@@ -7523,7 +7523,7 @@ var Ri = /*#__PURE__*/function (_Gi4) {
7523
7523
  _typeof(s) == "object" && (s.engine_id && (_this30.url = "https://api.stability.ai/v1/generation/".concat(s.engine_id, "/text-to-image")), s.weight !== void 0 && s.weight !== null && (_this30._imageWeight = s.weight), Ri.cleanConfig(s), Object.assign(_this30.rawBody, s)), _this30.canSendMessage = Ri.canSendTextMessage;
7524
7524
  return _this30;
7525
7525
  }
7526
- _inherits(Ri, _Gi4);
7526
+ _inherits(Ri, _zi4);
7527
7527
  return _createClass(Ri, [{
7528
7528
  key: "preprocessBody",
7529
7529
  value: function preprocessBody(e, t) {
@@ -7603,19 +7603,19 @@ var Ri = /*#__PURE__*/function (_Gi4) {
7603
7603
  return !!(e && e.trim() !== "");
7604
7604
  }
7605
7605
  }]);
7606
- }(Gi);
7607
- var Vo = /*#__PURE__*/function (_De7) {
7608
- function Vo(e) {
7606
+ }(zi);
7607
+ var Go = /*#__PURE__*/function (_De7) {
7608
+ function Go(e) {
7609
7609
  var _this31;
7610
- _classCallCheck(this, Vo);
7610
+ _classCallCheck(this, Go);
7611
7611
  var s, r, o;
7612
7612
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.fillMask,
7613
7613
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7614
- _this31 = _callSuper(this, Vo, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this31.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this31.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
7614
+ _this31 = _callSuper(this, Go, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this31.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this31.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
7615
7615
  return _this31;
7616
7616
  }
7617
- _inherits(Vo, _De7);
7618
- return _createClass(Vo, [{
7617
+ _inherits(Go, _De7);
7618
+ return _createClass(Go, [{
7619
7619
  key: "extractResultData",
7620
7620
  value: function () {
7621
7621
  var _extractResultData11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee60(e) {
@@ -8679,37 +8679,42 @@ var Ue = /*#__PURE__*/function (_$3) {
8679
8679
  }($);
8680
8680
  Ue.POLLING_TIMEOUT_MS = 800;
8681
8681
  var Mi = Ue;
8682
- var Ui = /*#__PURE__*/function (_Mi) {
8683
- function Ui(e) {
8684
- var _o$headers2, _a$OpenAIBeta;
8682
+ var Ss = /*#__PURE__*/function (_Mi) {
8683
+ function Ss(e) {
8684
+ var _a$headers, _l$OpenAIBeta;
8685
8685
  var _this35;
8686
- _classCallCheck(this, Ui);
8687
- var r, o, a, l, c;
8686
+ _classCallCheck(this, Ss);
8687
+ var o, a, l, c, d;
8688
8688
  var t = JSON.parse(JSON.stringify(e.directConnection)),
8689
8689
  i = t.openAI,
8690
- s = (r = t.openAI) == null ? void 0 : r.assistant;
8691
- if (_this35 = _callSuper(this, Ui, [e, s, Ui.URL_SEGMENTS, L.buildKeyVerificationDetails(), L.buildHeaders, i]), (_o$headers2 = (o = _this35.connectSettings).headers) !== null && _o$headers2 !== void 0 ? _o$headers2 : o.headers = {}, (_a$OpenAIBeta = (a = _this35.connectSettings.headers)["OpenAI-Beta"]) !== null && _a$OpenAIBeta !== void 0 ? _a$OpenAIBeta : a["OpenAI-Beta"] = "assistants=v2", _this35.shouldFetchHistory && _this35.sessionId && (_this35.fetchHistory = _this35.fetchHistoryFunc.bind(_assertThisInitialized(_this35))), _typeof(s) == "object") {
8692
- var _ref23 = (c = (l = e.directConnection) == null ? void 0 : l.openAI) == null ? void 0 : c.assistant,
8693
- d = _ref23.function_handler,
8694
- u = _ref23.files_tool_type;
8695
- d && (_this35.functionHandler = d), u && (_this35.filesToolType = u);
8690
+ s = (o = t.openAI) == null ? void 0 : o.assistant,
8691
+ r = Ss.buildUrlSegments(s);
8692
+ if (_this35 = _callSuper(this, Ss, [e, s, r, L.buildKeyVerificationDetails(), L.buildHeaders, i]), (_a$headers = (a = _this35.connectSettings).headers) !== null && _a$headers !== void 0 ? _a$headers : a.headers = {}, (_l$OpenAIBeta = (l = _this35.connectSettings.headers)["OpenAI-Beta"]) !== null && _l$OpenAIBeta !== void 0 ? _l$OpenAIBeta : l["OpenAI-Beta"] = "assistants=v2", _this35.shouldFetchHistory && _this35.sessionId && (_this35.fetchHistory = _this35.fetchHistoryFunc.bind(_assertThisInitialized(_this35))), _typeof(s) == "object") {
8693
+ var _ref23 = (d = (c = e.directConnection) == null ? void 0 : c.openAI) == null ? void 0 : d.assistant,
8694
+ u = _ref23.function_handler,
8695
+ h = _ref23.files_tool_type;
8696
+ u && (_this35.functionHandler = u), h && (_this35.filesToolType = h);
8696
8697
  }
8697
8698
  return _this35;
8698
8699
  }
8699
- _inherits(Ui, _Mi);
8700
- return _createClass(Ui);
8700
+ _inherits(Ss, _Mi);
8701
+ return _createClass(Ss, null, [{
8702
+ key: "buildUrlSegments",
8703
+ value: function buildUrlSegments(e) {
8704
+ var t = _typeof(e) == "object" && e.custom_base_url || "https://api.openai.com/v1";
8705
+ return {
8706
+ threadsPrefix: "".concat(t, "/threads"),
8707
+ threadsPosfix: "",
8708
+ newAssistantUrl: "".concat(t, "/assistants"),
8709
+ createMessagePostfix: "",
8710
+ listMessagesPostfix: "order=desc",
8711
+ storeFiles: "".concat(t, "/files"),
8712
+ getFilesPrefix: "".concat(t, "/files/"),
8713
+ getFilesPostfix: "/content"
8714
+ };
8715
+ }
8716
+ }]);
8701
8717
  }(Mi);
8702
- Ui.URL_SEGMENTS = {
8703
- threadsPrefix: "https://api.openai.com/v1/threads",
8704
- threadsPosfix: "",
8705
- newAssistantUrl: "https://api.openai.com/v1/assistants",
8706
- createMessagePostfix: "",
8707
- listMessagesPostfix: "order=desc",
8708
- storeFiles: "https://api.openai.com/v1/files",
8709
- getFilesPrefix: "https://api.openai.com/v1/files/",
8710
- getFilesPostfix: "/content"
8711
- };
8712
- var os = Ui;
8713
8718
  var ki = /*#__PURE__*/function () {
8714
8719
  function ki() {
8715
8720
  _classCallCheck(this, ki);
@@ -8744,26 +8749,26 @@ var ki = /*#__PURE__*/function () {
8744
8749
  }
8745
8750
  }]);
8746
8751
  }();
8747
- var xs = /*#__PURE__*/function (_$4) {
8748
- function xs(e, t, i, s, r) {
8752
+ var _s = /*#__PURE__*/function (_$4) {
8753
+ function _s(e, t, i, s, r) {
8749
8754
  var _this36;
8750
- _classCallCheck(this, xs);
8751
- _this36 = _callSuper(this, xs, [e, ki.buildKeyVerificationDetails(), ki.buildHeaders, r]), _this36.insertKeyPlaceholderText = "Cohere API Key", _this36.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", _this36.permittedErrorPrefixes = ["invalid"], _this36.url = t, _this36.textInputPlaceholderText = i, s && _typeof(s) == "object" && Object.assign(_this36.rawBody, s);
8755
+ _classCallCheck(this, _s);
8756
+ _this36 = _callSuper(this, _s, [e, ki.buildKeyVerificationDetails(), ki.buildHeaders, r]), _this36.insertKeyPlaceholderText = "Cohere API Key", _this36.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", _this36.permittedErrorPrefixes = ["invalid"], _this36.url = t, _this36.textInputPlaceholderText = i, s && _typeof(s) == "object" && Object.assign(_this36.rawBody, s);
8752
8757
  return _this36;
8753
8758
  }
8754
- _inherits(xs, _$4);
8755
- return _createClass(xs);
8759
+ _inherits(_s, _$4);
8760
+ return _createClass(_s);
8756
8761
  }($);
8757
- var Ko = /*#__PURE__*/function (_xs) {
8758
- function Ko(e) {
8759
- _classCallCheck(this, Ko);
8762
+ var Vo = /*#__PURE__*/function (_s3) {
8763
+ function Vo(e) {
8764
+ _classCallCheck(this, Vo);
8760
8765
  var s, r, o;
8761
8766
  var t = (r = (s = e.directConnection) == null ? void 0 : s.cohere) == null ? void 0 : r.textGeneration,
8762
8767
  i = (o = e.directConnection) == null ? void 0 : o.cohere;
8763
- return _callSuper(this, Ko, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
8768
+ return _callSuper(this, Vo, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
8764
8769
  }
8765
- _inherits(Ko, _xs);
8766
- return _createClass(Ko, [{
8770
+ _inherits(Vo, _s3);
8771
+ return _createClass(Vo, [{
8767
8772
  key: "preprocessBody",
8768
8773
  value: function preprocessBody(e, t) {
8769
8774
  var i = JSON.parse(JSON.stringify(e)),
@@ -8828,12 +8833,12 @@ var Ko = /*#__PURE__*/function (_xs) {
8828
8833
  return extractResultData;
8829
8834
  }()
8830
8835
  }]);
8831
- }(xs);
8832
- var ks = /*#__PURE__*/function () {
8833
- function ks() {
8834
- _classCallCheck(this, ks);
8836
+ }(_s);
8837
+ var Ms = /*#__PURE__*/function () {
8838
+ function Ms() {
8839
+ _classCallCheck(this, Ms);
8835
8840
  }
8836
- return _createClass(ks, null, [{
8841
+ return _createClass(Ms, null, [{
8837
8842
  key: "buildHeaders",
8838
8843
  value: function buildHeaders(e) {
8839
8844
  return {
@@ -8860,8 +8865,8 @@ var ks = /*#__PURE__*/function () {
8860
8865
  }
8861
8866
  }]);
8862
8867
  }();
8863
- ks.URL_DETAILS_ERROR_MESSAGE = "Please define the Azure URL Details. [More Information](https://deepchat.dev/docs/directConnection/Azure)";
8864
- var pe = ks;
8868
+ Ms.URL_DETAILS_ERROR_MESSAGE = "Please define the Azure URL Details. [More Information](https://deepchat.dev/docs/directConnection/Azure)";
8869
+ var pe = Ms;
8865
8870
  var ft = /*#__PURE__*/function (_Mi2) {
8866
8871
  function ft(e) {
8867
8872
  var _g$headers;
@@ -8903,17 +8908,17 @@ var ft = /*#__PURE__*/function (_Mi2) {
8903
8908
  return _createClass(ft);
8904
8909
  }(Mi);
8905
8910
  ft.THREAD_RESOURCE = "threads", ft.NEW_ASSISTANT_RESOURCE = "assistants";
8906
- var as = ft;
8907
- var $o = /*#__PURE__*/function (_xs2) {
8908
- function $o(e) {
8909
- _classCallCheck(this, $o);
8911
+ var rs = ft;
8912
+ var Ko = /*#__PURE__*/function (_s4) {
8913
+ function Ko(e) {
8914
+ _classCallCheck(this, Ko);
8910
8915
  var s, r, o;
8911
8916
  var t = (r = (s = e.directConnection) == null ? void 0 : s.cohere) == null ? void 0 : r.summarization,
8912
8917
  i = (o = e.directConnection) == null ? void 0 : o.cohere;
8913
- return _callSuper(this, $o, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
8918
+ return _callSuper(this, Ko, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
8914
8919
  }
8915
- _inherits($o, _xs2);
8916
- return _createClass($o, [{
8920
+ _inherits(Ko, _s4);
8921
+ return _createClass(Ko, [{
8917
8922
  key: "preprocessBody",
8918
8923
  value: function preprocessBody(e, t) {
8919
8924
  var i = JSON.parse(JSON.stringify(e)),
@@ -8977,7 +8982,7 @@ var $o = /*#__PURE__*/function (_xs2) {
8977
8982
  return extractResultData;
8978
8983
  }()
8979
8984
  }]);
8980
- }(xs);
8985
+ }(_s);
8981
8986
  var O = /*#__PURE__*/function () {
8982
8987
  function O() {
8983
8988
  _classCallCheck(this, O);
@@ -9014,7 +9019,7 @@ var O = /*#__PURE__*/function () {
9014
9019
  }
9015
9020
  }]);
9016
9021
  }();
9017
- var Rn = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\" width=\"1.4em\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n\t viewBox=\"0 0 490.9 490.9\" xml:space=\"preserve\">\n\t<g>\n\t\t<g>\n\t\t\t<path d=\"M245.5,322.9c53,0,96.2-43.2,96.2-96.2V96.2c0-53-43.2-96.2-96.2-96.2s-96.2,43.2-96.2,96.2v130.5\n\t\t\t\tC149.3,279.8,192.5,322.9,245.5,322.9z M173.8,96.2c0-39.5,32.2-71.7,71.7-71.7s71.7,32.2,71.7,71.7v130.5\n\t\t\t\tc0,39.5-32.2,71.7-71.7,71.7s-71.7-32.2-71.7-71.7V96.2z\"/>\n\t\t\t<path d=\"M94.4,214.5c-6.8,0-12.3,5.5-12.3,12.3c0,85.9,66.7,156.6,151.1,162.8v76.7h-63.9c-6.8,0-12.3,5.5-12.3,12.3\n\t\t\t\ts5.5,12.3,12.3,12.3h152.3c6.8,0,12.3-5.5,12.3-12.3s-5.5-12.3-12.3-12.3h-63.9v-76.7c84.4-6.3,151.1-76.9,151.1-162.8\n\t\t\t\tc0-6.8-5.5-12.3-12.3-12.3s-12.3,5.5-12.3,12.3c0,76.6-62.3,138.9-138.9,138.9s-138.9-62.3-138.9-138.9\n\t\t\t\tC106.6,220,101.2,214.5,94.4,214.5z\"/>\n\t\t</g>\n\t</g>\n</svg>\n";
9022
+ var Cn = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\" width=\"1.4em\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n\t viewBox=\"0 0 490.9 490.9\" xml:space=\"preserve\">\n\t<g>\n\t\t<g>\n\t\t\t<path d=\"M245.5,322.9c53,0,96.2-43.2,96.2-96.2V96.2c0-53-43.2-96.2-96.2-96.2s-96.2,43.2-96.2,96.2v130.5\n\t\t\t\tC149.3,279.8,192.5,322.9,245.5,322.9z M173.8,96.2c0-39.5,32.2-71.7,71.7-71.7s71.7,32.2,71.7,71.7v130.5\n\t\t\t\tc0,39.5-32.2,71.7-71.7,71.7s-71.7-32.2-71.7-71.7V96.2z\"/>\n\t\t\t<path d=\"M94.4,214.5c-6.8,0-12.3,5.5-12.3,12.3c0,85.9,66.7,156.6,151.1,162.8v76.7h-63.9c-6.8,0-12.3,5.5-12.3,12.3\n\t\t\t\ts5.5,12.3,12.3,12.3h152.3c6.8,0,12.3-5.5,12.3-12.3s-5.5-12.3-12.3-12.3h-63.9v-76.7c84.4-6.3,151.1-76.9,151.1-162.8\n\t\t\t\tc0-6.8-5.5-12.3-12.3-12.3s-12.3,5.5-12.3,12.3c0,76.6-62.3,138.9-138.9,138.9s-138.9-62.3-138.9-138.9\n\t\t\t\tC106.6,220,101.2,214.5,94.4,214.5z\"/>\n\t\t</g>\n\t</g>\n</svg>\n";
9018
9023
  var V = /*#__PURE__*/function () {
9019
9024
  function V() {
9020
9025
  _classCallCheck(this, V);
@@ -9143,19 +9148,19 @@ var at = /*#__PURE__*/function () {
9143
9148
  }
9144
9149
  }]);
9145
9150
  }();
9146
- var ji = /*#__PURE__*/function (_at) {
9147
- function ji(e) {
9151
+ var Ui = /*#__PURE__*/function (_at) {
9152
+ function Ui(e) {
9148
9153
  var _this38;
9149
- _classCallCheck(this, ji);
9150
- _this38 = _callSuper(this, ji, [document.createElement("div"), void 0, e]), _this38.isActive = !1, _this38._innerElements = _this38.createInnerElements(_this38._customStyles), _this38.changeToDefault();
9154
+ _classCallCheck(this, Ui);
9155
+ _this38 = _callSuper(this, Ui, [document.createElement("div"), void 0, e]), _this38.isActive = !1, _this38._innerElements = _this38.createInnerElements(_this38._customStyles), _this38.changeToDefault();
9151
9156
  return _this38;
9152
9157
  }
9153
- _inherits(ji, _at);
9154
- return _createClass(ji, [{
9158
+ _inherits(Ui, _at);
9159
+ return _createClass(Ui, [{
9155
9160
  key: "createInnerElements",
9156
9161
  value: function createInnerElements(e) {
9157
9162
  var i, s;
9158
- var t = K.createSVGElement(((s = (i = e == null ? void 0 : e["default"]) == null ? void 0 : i.svg) == null ? void 0 : s.content) || ji.EMPTY_SVG);
9163
+ var t = K.createSVGElement(((s = (i = e == null ? void 0 : e["default"]) == null ? void 0 : i.svg) == null ? void 0 : s.content) || Ui.EMPTY_SVG);
9159
9164
  return {
9160
9165
  "default": this.createInnerElement(t, "default", e),
9161
9166
  active: this.createInnerElement(t, "active", e),
@@ -9187,8 +9192,8 @@ var ji = /*#__PURE__*/function (_at) {
9187
9192
  }
9188
9193
  }]);
9189
9194
  }(at);
9190
- ji.EMPTY_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"></svg>';
9191
- var Li = ji;
9195
+ Ui.EMPTY_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"></svg>';
9196
+ var Li = Ui;
9192
9197
  var Q = /*#__PURE__*/function () {
9193
9198
  function Q() {
9194
9199
  _classCallCheck(this, Q);
@@ -9234,8 +9239,8 @@ var Q = /*#__PURE__*/function () {
9234
9239
  }
9235
9240
  }]);
9236
9241
  }();
9237
- var Mn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>play</title>\n <path d=\"M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z\"></path>\n</svg>",
9238
- ls = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>stop</title>\n<path d=\"M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z\"></path>\n</svg>",
9242
+ var Rn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>play</title>\n <path d=\"M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z\"></path>\n</svg>",
9243
+ os = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>stop</title>\n<path d=\"M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z\"></path>\n</svg>",
9239
9244
  C = /*#__PURE__*/function (_$5) {
9240
9245
  function C(e) {
9241
9246
  var _l$model;
@@ -9885,14 +9890,14 @@ var Mn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9885
9890
  var _t$microphone, _o$default, _a$svg, _t$toggle, _u$default, _h$svg, _f$active, _m$svg;
9886
9891
  var i, s, r, o, a, l, c, d, u, h, f, m;
9887
9892
  var t = _typeof(e) == "object" && e.buttons ? structuredClone(e.buttons) : {};
9888
- return (r = (s = (i = t.microphone) == null ? void 0 : i["default"]) == null ? void 0 : s.text) != null && r.content || ((_t$microphone = t.microphone) !== null && _t$microphone !== void 0 ? _t$microphone : t.microphone = {}, (_o$default = (o = t.microphone)["default"]) !== null && _o$default !== void 0 ? _o$default : o["default"] = {}, (_a$svg = (a = t.microphone["default"]).svg) !== null && _a$svg !== void 0 ? _a$svg : a.svg = {}, t.microphone["default"].svg.content = Rn), (d = (c = (l = t.toggle) == null ? void 0 : l["default"]) == null ? void 0 : c.text) != null && d.content || ((_t$toggle = t.toggle) !== null && _t$toggle !== void 0 ? _t$toggle : t.toggle = {}, (_u$default = (u = t.toggle)["default"]) !== null && _u$default !== void 0 ? _u$default : u["default"] = {}, (_h$svg = (h = t.toggle["default"]).svg) !== null && _h$svg !== void 0 ? _h$svg : h.svg = {}, t.toggle["default"].svg.content = Mn, (_f$active = (f = t.toggle).active) !== null && _f$active !== void 0 ? _f$active : f.active = {}, (_m$svg = (m = t.toggle.active).svg) !== null && _m$svg !== void 0 ? _m$svg : m.svg = {}, t.toggle.active.svg.content = ls), t;
9893
+ return (r = (s = (i = t.microphone) == null ? void 0 : i["default"]) == null ? void 0 : s.text) != null && r.content || ((_t$microphone = t.microphone) !== null && _t$microphone !== void 0 ? _t$microphone : t.microphone = {}, (_o$default = (o = t.microphone)["default"]) !== null && _o$default !== void 0 ? _o$default : o["default"] = {}, (_a$svg = (a = t.microphone["default"]).svg) !== null && _a$svg !== void 0 ? _a$svg : a.svg = {}, t.microphone["default"].svg.content = Cn), (d = (c = (l = t.toggle) == null ? void 0 : l["default"]) == null ? void 0 : c.text) != null && d.content || ((_t$toggle = t.toggle) !== null && _t$toggle !== void 0 ? _t$toggle : t.toggle = {}, (_u$default = (u = t.toggle)["default"]) !== null && _u$default !== void 0 ? _u$default : u["default"] = {}, (_h$svg = (h = t.toggle["default"]).svg) !== null && _h$svg !== void 0 ? _h$svg : h.svg = {}, t.toggle["default"].svg.content = Rn, (_f$active = (f = t.toggle).active) !== null && _f$active !== void 0 ? _f$active : f.active = {}, (_m$svg = (m = t.toggle.active).svg) !== null && _m$svg !== void 0 ? _m$svg : m.svg = {}, t.toggle.active.svg.content = os), t;
9889
9894
  }
9890
9895
  }, {
9891
9896
  key: "createAvatar",
9892
9897
  value: function createAvatar(e) {
9893
9898
  var i;
9894
9899
  var t = document.createElement("img");
9895
- return t.id = "deep-chat-openai-realtime-avatar", Object.assign(t.style, (i = e == null ? void 0 : e.styles) == null ? void 0 : i.avatar), t.src = (e == null ? void 0 : e.src) || is, t;
9900
+ return t.id = "deep-chat-openai-realtime-avatar", Object.assign(t.style, (i = e == null ? void 0 : e.styles) == null ? void 0 : i.avatar), t.src = (e == null ? void 0 : e.src) || ts, t;
9896
9901
  }
9897
9902
  }, {
9898
9903
  key: "createButtonContainer",
@@ -9918,7 +9923,7 @@ var Mn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9918
9923
  }]);
9919
9924
  }($);
9920
9925
  C.BUTTON_DEFAULT = "deep-chat-openai-realtime-button-default", C.BUTTON_LOADING = "deep-chat-openai-realtime-button-loading", C.MUTE_ACTIVE = "deep-chat-openai-realtime-mute-active", C.UNAVAILABLE = "deep-chat-openai-realtime-button-unavailable";
9921
- var cs = C;
9926
+ var as = C;
9922
9927
  var pt = /*#__PURE__*/function (_$6) {
9923
9928
  function pt(e) {
9924
9929
  var _o$model, _a$voice;
@@ -10015,7 +10020,7 @@ var pt = /*#__PURE__*/function (_$6) {
10015
10020
  }]);
10016
10021
  }($);
10017
10022
  pt.DEFAULT_MODEL = "tts-1", pt.DEFAULT_VOIDE = "alloy";
10018
- var ds = pt;
10023
+ var ls = pt;
10019
10024
  var ge = /*#__PURE__*/function (_$7) {
10020
10025
  function ge(e) {
10021
10026
  var _o$model2;
@@ -10128,7 +10133,7 @@ var ge = /*#__PURE__*/function (_$7) {
10128
10133
  }]);
10129
10134
  }($);
10130
10135
  ge.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", ge.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", ge.DEFAULT_MODEL = "whisper-1";
10131
- var hs = ge;
10136
+ var cs = ge;
10132
10137
  var me = /*#__PURE__*/function () {
10133
10138
  function me() {
10134
10139
  _classCallCheck(this, me);
@@ -10230,20 +10235,20 @@ var me = /*#__PURE__*/function () {
10230
10235
  }
10231
10236
  }]);
10232
10237
  }();
10233
- var Wo = /*#__PURE__*/function (_$8) {
10238
+ var $o = /*#__PURE__*/function (_$8) {
10234
10239
  // prettier-ignore
10235
- function Wo(e, t, i, s, r) {
10240
+ function $o(e, t, i, s, r) {
10236
10241
  var _this46;
10237
- _classCallCheck(this, Wo);
10238
- _this46 = _callSuper(this, Wo, [e, me.buildLanguageKeyVerificationDetails(i), t, s, r]), _this46.insertKeyPlaceholderText = "Azure Language Subscription Key", _this46.keyHelpUrl =
10242
+ _classCallCheck(this, $o);
10243
+ _this46 = _callSuper(this, $o, [e, me.buildLanguageKeyVerificationDetails(i), t, s, r]), _this46.insertKeyPlaceholderText = "Azure Language Subscription Key", _this46.keyHelpUrl =
10239
10244
  // eslint-disable-next-line max-len
10240
10245
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", _this46.permittedErrorPrefixes = ["Access"];
10241
10246
  return _this46;
10242
10247
  }
10243
- _inherits(Wo, _$8);
10244
- return _createClass(Wo);
10248
+ _inherits($o, _$8);
10249
+ return _createClass($o);
10245
10250
  }($);
10246
- var Yt = /*#__PURE__*/function (_Wo) {
10251
+ var Yt = /*#__PURE__*/function (_$o) {
10247
10252
  function Yt(e) {
10248
10253
  var _a$language;
10249
10254
  var _this47;
@@ -10260,7 +10265,7 @@ var Yt = /*#__PURE__*/function (_Wo) {
10260
10265
  }));
10261
10266
  return _this47;
10262
10267
  }
10263
- _inherits(Yt, _Wo);
10268
+ _inherits(Yt, _$o);
10264
10269
  return _createClass(Yt, [{
10265
10270
  key: "preprocessBody",
10266
10271
  value: function preprocessBody(e, t) {
@@ -10401,11 +10406,11 @@ var Yt = /*#__PURE__*/function (_Wo) {
10401
10406
  return extractPollResultData;
10402
10407
  }()
10403
10408
  }]);
10404
- }(Wo);
10409
+ }($o);
10405
10410
  Yt.ENDPOINT_ERROR_MESSAGE =
10406
10411
  // eslint-disable-next-line max-len
10407
10412
  "Please define the azure endpoint. [More Information](https://deepchat.dev/docs/directConnection/Azure#Summarization)";
10408
- var us = Yt;
10413
+ var ds = Yt;
10409
10414
  var Vt = /*#__PURE__*/function () {
10410
10415
  function Vt() {
10411
10416
  _classCallCheck(this, Vt);
@@ -10511,19 +10516,19 @@ var Vt = /*#__PURE__*/function () {
10511
10516
  }
10512
10517
  }]);
10513
10518
  }();
10514
- var ws = /*#__PURE__*/function (_$9) {
10515
- function ws(e) {
10519
+ var xs = /*#__PURE__*/function (_$9) {
10520
+ function xs(e) {
10516
10521
  var _this48;
10517
- _classCallCheck(this, ws);
10522
+ _classCallCheck(this, xs);
10518
10523
  var i;
10519
10524
  var t = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
10520
- _this48 = _callSuper(this, ws, [e, Vt.buildKeyVerificationDetails(), Vt.buildHeaders, t, {
10525
+ _this48 = _callSuper(this, xs, [e, Vt.buildKeyVerificationDetails(), Vt.buildHeaders, t, {
10521
10526
  audio: {}
10522
- }]), _this48.insertKeyPlaceholderText = "AssemblyAI API Key", _this48.keyHelpUrl = "https://www.assemblyai.com/app/account", _this48.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>AssemblyAI Audio</b></div>\n <p><b>Upload an audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started\">here</a> for more info.\n </p>", _this48.url = "https://api.assemblyai.com/v2/upload", _this48.isTextInputDisabled = !0, _this48.textInputPlaceholderText = "Upload an audio file", _this48.permittedErrorPrefixes = ["Authentication", "Invalid"], _this48.canSendMessage = ws.canFileSendMessage;
10527
+ }]), _this48.insertKeyPlaceholderText = "AssemblyAI API Key", _this48.keyHelpUrl = "https://www.assemblyai.com/app/account", _this48.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>AssemblyAI Audio</b></div>\n <p><b>Upload an audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started\">here</a> for more info.\n </p>", _this48.url = "https://api.assemblyai.com/v2/upload", _this48.isTextInputDisabled = !0, _this48.textInputPlaceholderText = "Upload an audio file", _this48.permittedErrorPrefixes = ["Authentication", "Invalid"], _this48.canSendMessage = xs.canFileSendMessage;
10523
10528
  return _this48;
10524
10529
  }
10525
- _inherits(ws, _$9);
10526
- return _createClass(ws, [{
10530
+ _inherits(xs, _$9);
10531
+ return _createClass(xs, [{
10527
10532
  key: "callServiceAPI",
10528
10533
  value: function () {
10529
10534
  var _callServiceAPI15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee102(e, t, i) {
@@ -10595,20 +10600,20 @@ var ws = /*#__PURE__*/function (_$9) {
10595
10600
  }
10596
10601
  }]);
10597
10602
  }($);
10598
- var kn = /*#__PURE__*/function (_$10) {
10603
+ var Mn = /*#__PURE__*/function (_$10) {
10599
10604
  // prettier-ignore
10600
- function kn(e, t, i, s, r) {
10605
+ function Mn(e, t, i, s, r) {
10601
10606
  var _this49;
10602
- _classCallCheck(this, kn);
10603
- _this49 = _callSuper(this, kn, [e, me.buildSpeechKeyVerificationDetails(i), t, s, r]), _this49.insertKeyPlaceholderText = "Azure Speech Subscription Key", _this49.keyHelpUrl =
10607
+ _classCallCheck(this, Mn);
10608
+ _this49 = _callSuper(this, Mn, [e, me.buildSpeechKeyVerificationDetails(i), t, s, r]), _this49.insertKeyPlaceholderText = "Azure Speech Subscription Key", _this49.keyHelpUrl =
10604
10609
  // eslint-disable-next-line max-len
10605
10610
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal";
10606
10611
  return _this49;
10607
10612
  }
10608
- _inherits(kn, _$10);
10609
- return _createClass(kn);
10613
+ _inherits(Mn, _$10);
10614
+ return _createClass(Mn);
10610
10615
  }($);
10611
- var Ye = /*#__PURE__*/function (_kn) {
10616
+ var Ye = /*#__PURE__*/function (_Mn) {
10612
10617
  // prettier-ignore
10613
10618
  function Ye(e) {
10614
10619
  var _a$lang, _l$name, _c$gender;
@@ -10626,7 +10631,7 @@ var Ye = /*#__PURE__*/function (_kn) {
10626
10631
  }));
10627
10632
  return _this50;
10628
10633
  }
10629
- _inherits(Ye, _kn);
10634
+ _inherits(Ye, _Mn);
10630
10635
  return _createClass(Ye, [{
10631
10636
  key: "preprocessBody",
10632
10637
  value: function preprocessBody(e, t) {
@@ -10690,14 +10695,14 @@ var Ye = /*#__PURE__*/function (_kn) {
10690
10695
  return extractResultData;
10691
10696
  }()
10692
10697
  }]);
10693
- }(kn);
10698
+ }(Mn);
10694
10699
  Ye.HELP_LINK =
10695
10700
  // eslint-disable-next-line max-len
10696
10701
  "https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest", Ye.REGION_ERROR_MESSAGE =
10697
10702
  // eslint-disable-next-line max-len
10698
10703
  "Please define a region config property. [More Information](https://deepchat.dev/docs/directConnection/Azure#TextToSpeech)";
10699
- var fs = Ye;
10700
- var je = /*#__PURE__*/function (_kn2) {
10704
+ var hs = Ye;
10705
+ var je = /*#__PURE__*/function (_Mn2) {
10701
10706
  function je(e) {
10702
10707
  var _this51;
10703
10708
  _classCallCheck(this, je);
@@ -10724,7 +10729,7 @@ var je = /*#__PURE__*/function (_kn2) {
10724
10729
  }
10725
10730
  return _this51;
10726
10731
  }
10727
- _inherits(je, _kn2);
10732
+ _inherits(je, _Mn2);
10728
10733
  return _createClass(je, [{
10729
10734
  key: "callServiceAPI",
10730
10735
  value: function () {
@@ -10790,28 +10795,28 @@ var je = /*#__PURE__*/function (_kn2) {
10790
10795
  return !!(t != null && t[0]);
10791
10796
  }
10792
10797
  }]);
10793
- }(kn);
10798
+ }(Mn);
10794
10799
  je.HELP_LINK =
10795
10800
  // eslint-disable-next-line max-len
10796
10801
  "https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest", je.REGION_ERROR_MESSAGE =
10797
10802
  // eslint-disable-next-line max-len
10798
10803
  "Please define a region config property. [More Information](https://deepchat.dev/docs/directConnection/Azure#SpeechToText)";
10799
- var ps = je;
10800
- var Jo = /*#__PURE__*/function (_$11) {
10804
+ var us = je;
10805
+ var Wo = /*#__PURE__*/function (_$11) {
10801
10806
  // prettier-ignore
10802
- function Jo(e) {
10807
+ function Wo(e) {
10803
10808
  var _this52;
10804
- _classCallCheck(this, Jo);
10809
+ _classCallCheck(this, Wo);
10805
10810
  var s, r, o;
10806
10811
  var t = (r = (s = e.directConnection) == null ? void 0 : s.azure) == null ? void 0 : r.translation,
10807
10812
  i = (o = e.directConnection) == null ? void 0 : o.azure;
10808
- _this52 = _callSuper(this, Jo, [e, me.buildTranslationKeyVerificationDetails(t.region), me.buildTranslationHeaders.bind({}, t == null ? void 0 : t.region), i]), _this52.insertKeyPlaceholderText = "Azure Translate Subscription Key", _this52.keyHelpUrl =
10813
+ _this52 = _callSuper(this, Wo, [e, me.buildTranslationKeyVerificationDetails(t.region), me.buildTranslationHeaders.bind({}, t == null ? void 0 : t.region), i]), _this52.insertKeyPlaceholderText = "Azure Translate Subscription Key", _this52.keyHelpUrl =
10809
10814
  // eslint-disable-next-line max-len
10810
10815
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", _this52.url = "", _this52.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(t.language || "es");
10811
10816
  return _this52;
10812
10817
  }
10813
- _inherits(Jo, _$11);
10814
- return _createClass(Jo, [{
10818
+ _inherits(Wo, _$11);
10819
+ return _createClass(Wo, [{
10815
10820
  key: "preprocessBody",
10816
10821
  value: function preprocessBody(e) {
10817
10822
  var t = e[e.length - 1].text;
@@ -11171,21 +11176,21 @@ var gt = /*#__PURE__*/function (_$12) {
11171
11176
  }
11172
11177
  }]);
11173
11178
  }($);
11174
- var As = /*#__PURE__*/function (_gt) {
11175
- function As(e) {
11179
+ var ws = /*#__PURE__*/function (_gt) {
11180
+ function ws(e) {
11176
11181
  var _this55;
11177
- _classCallCheck(this, As);
11182
+ _classCallCheck(this, ws);
11178
11183
  var o, a, l, c, d, u, h;
11179
11184
  var t = JSON.parse(JSON.stringify(e.directConnection)),
11180
11185
  i = t.azure,
11181
11186
  s = ((a = (o = t.azure) == null ? void 0 : o.openAI) == null ? void 0 : a.urlDetails) || {},
11182
11187
  r = (c = (l = t.azure) == null ? void 0 : l.openAI) == null ? void 0 : c.chat;
11183
- if (_this55 = _callSuper(this, As, [e, pe.buildKeyVerificationDetails(s), pe.buildHeaders, i, r]), _this55.permittedErrorPrefixes = [pe.URL_DETAILS_ERROR_MESSAGE], _this55.isTextInputDisabled = !1, _typeof(r) == "object") {
11188
+ if (_this55 = _callSuper(this, ws, [e, pe.buildKeyVerificationDetails(s), pe.buildHeaders, i, r]), _this55.permittedErrorPrefixes = [pe.URL_DETAILS_ERROR_MESSAGE], _this55.isTextInputDisabled = !1, _typeof(r) == "object") {
11184
11189
  var _ref31 = (h = (u = (d = e.directConnection) == null ? void 0 : d.azure) == null ? void 0 : u.openAI) == null ? void 0 : h.chat,
11185
11190
  f = _ref31.function_handler;
11186
11191
  f && (_this55._functionHandler = f);
11187
11192
  }
11188
- pe.validateURLDetails(s) ? _this55.url = As.buildURL(s) : (_this55.isTextInputDisabled = !0, _this55.canSendMessage = function () {
11193
+ pe.validateURLDetails(s) ? _this55.url = ws.buildURL(s) : (_this55.isTextInputDisabled = !0, _this55.canSendMessage = function () {
11189
11194
  return !1;
11190
11195
  }, setTimeout(function () {
11191
11196
  e.addMessage({
@@ -11194,8 +11199,8 @@ var As = /*#__PURE__*/function (_gt) {
11194
11199
  }));
11195
11200
  return _this55;
11196
11201
  }
11197
- _inherits(As, _gt);
11198
- return _createClass(As, null, [{
11202
+ _inherits(ws, _gt);
11203
+ return _createClass(ws, null, [{
11199
11204
  key: "buildURL",
11200
11205
  value: function buildURL(e) {
11201
11206
  var t = e.endpoint,
@@ -11356,21 +11361,21 @@ var be = /*#__PURE__*/function (_$13) {
11356
11361
  }]);
11357
11362
  }($);
11358
11363
  be.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", be.IMAGE_VARIATIONS_URL = "https://api.openai.com/v1/images/variations", be.IMAGE_EDIT_URL = "https://api.openai.com/v1/images/edits";
11359
- var ms = be;
11360
- var Xo = /*#__PURE__*/function (_xs3) {
11361
- function Xo(e) {
11364
+ var fs = be;
11365
+ var Jo = /*#__PURE__*/function (_s5) {
11366
+ function Jo(e) {
11362
11367
  var _this57$maxMessages;
11363
11368
  var _this57;
11364
- _classCallCheck(this, Xo);
11369
+ _classCallCheck(this, Jo);
11365
11370
  var r;
11366
11371
  var t = JSON.parse(JSON.stringify(e.directConnection)),
11367
11372
  i = (r = t.cohere) == null ? void 0 : r.chat,
11368
11373
  s = t.cohere;
11369
- _this57 = _callSuper(this, Xo, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", i, s]), _typeof(i) == "object" && Object.assign(_this57.rawBody, i), (_this57$maxMessages = _this57.maxMessages) !== null && _this57$maxMessages !== void 0 ? _this57$maxMessages : _this57.maxMessages = -1;
11374
+ _this57 = _callSuper(this, Jo, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", i, s]), _typeof(i) == "object" && Object.assign(_this57.rawBody, i), (_this57$maxMessages = _this57.maxMessages) !== null && _this57$maxMessages !== void 0 ? _this57$maxMessages : _this57.maxMessages = -1;
11370
11375
  return _this57;
11371
11376
  }
11372
- _inherits(Xo, _xs3);
11373
- return _createClass(Xo, [{
11377
+ _inherits(Jo, _s5);
11378
+ return _createClass(Jo, [{
11374
11379
  key: "preprocessBody",
11375
11380
  value: function preprocessBody(e, t) {
11376
11381
  var i = JSON.parse(JSON.stringify(e)),
@@ -11439,7 +11444,7 @@ var Xo = /*#__PURE__*/function (_xs3) {
11439
11444
  return extractResultData;
11440
11445
  }()
11441
11446
  }]);
11442
- }(xs);
11447
+ }(_s);
11443
11448
  var Ii = /*#__PURE__*/function () {
11444
11449
  function Ii() {
11445
11450
  _classCallCheck(this, Ii);
@@ -11471,18 +11476,18 @@ var Ii = /*#__PURE__*/function () {
11471
11476
  }
11472
11477
  }]);
11473
11478
  }();
11474
- var Yo = /*#__PURE__*/function (_$14) {
11475
- function Yo(e) {
11479
+ var Xo = /*#__PURE__*/function (_$14) {
11480
+ function Xo(e) {
11476
11481
  var _this58$maxMessages, _s$model;
11477
11482
  var _this58;
11478
- _classCallCheck(this, Yo);
11483
+ _classCallCheck(this, Xo);
11479
11484
  var s;
11480
11485
  var i = JSON.parse(JSON.stringify(e.directConnection)).mistral;
11481
- _this58 = _callSuper(this, Yo, [e, Ii.buildKeyVerificationDetails(), Ii.buildHeaders, i]), _this58.insertKeyPlaceholderText = "Mistral API Key", _this58.keyHelpUrl = "https://console.mistral.ai/api-keys/", _this58.url = "https://api.mistral.ai/v1/chat/completions", _this58.permittedErrorPrefixes = ["invalid"], i && (_this58.cleanConfig(i), Object.assign(_this58.rawBody, i)), (_this58$maxMessages = _this58.maxMessages) !== null && _this58$maxMessages !== void 0 ? _this58$maxMessages : _this58.maxMessages = -1, (_s$model = (s = _this58.rawBody).model) !== null && _s$model !== void 0 ? _s$model : s.model = "open-mistral-7b";
11486
+ _this58 = _callSuper(this, Xo, [e, Ii.buildKeyVerificationDetails(), Ii.buildHeaders, i]), _this58.insertKeyPlaceholderText = "Mistral API Key", _this58.keyHelpUrl = "https://console.mistral.ai/api-keys/", _this58.url = "https://api.mistral.ai/v1/chat/completions", _this58.permittedErrorPrefixes = ["invalid"], i && (_this58.cleanConfig(i), Object.assign(_this58.rawBody, i)), (_this58$maxMessages = _this58.maxMessages) !== null && _this58$maxMessages !== void 0 ? _this58$maxMessages : _this58.maxMessages = -1, (_s$model = (s = _this58.rawBody).model) !== null && _s$model !== void 0 ? _s$model : s.model = "open-mistral-7b";
11482
11487
  return _this58;
11483
11488
  }
11484
- _inherits(Yo, _$14);
11485
- return _createClass(Yo, [{
11489
+ _inherits(Xo, _$14);
11490
+ return _createClass(Xo, [{
11486
11491
  key: "cleanConfig",
11487
11492
  value: function cleanConfig(e) {
11488
11493
  delete e.key;
@@ -11558,11 +11563,11 @@ var Yo = /*#__PURE__*/function (_$14) {
11558
11563
  }()
11559
11564
  }]);
11560
11565
  }($);
11561
- var Zo = /*#__PURE__*/function () {
11562
- function Zo() {
11563
- _classCallCheck(this, Zo);
11566
+ var Yo = /*#__PURE__*/function () {
11567
+ function Yo() {
11568
+ _classCallCheck(this, Yo);
11564
11569
  }
11565
- return _createClass(Zo, null, [{
11570
+ return _createClass(Yo, null, [{
11566
11571
  key: "create",
11567
11572
  value:
11568
11573
  // this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
@@ -11573,31 +11578,31 @@ var Zo = /*#__PURE__*/function () {
11573
11578
  r = e.webModel;
11574
11579
  if (r) return new si(e);
11575
11580
  if (t) {
11576
- if (t.openAI) return t.openAI.images ? new ms(e) : t.openAI.speechToText ? new hs(e) : t.openAI.textToSpeech ? new ds(e) : t.openAI.assistant ? new os(e) : t.openAI.realtime ? new cs(e) : new gt(e);
11577
- if (t.assemblyAI) return new ws(e);
11578
- if (t.cohere) return t.cohere.textGeneration ? new Ko(e) : t.cohere.summarization ? new $o(e) : new Xo(e);
11579
- if (t.huggingFace) return t.huggingFace.textGeneration ? new jo(e) : t.huggingFace.summarization ? new Ho(e) : t.huggingFace.translation ? new Go(e) : t.huggingFace.fillMask ? new Vo(e) : t.huggingFace.questionAnswer ? new qo(e) : t.huggingFace.audioSpeechRecognition ? new Uo(e) : t.huggingFace.audioClassification ? new Bo(e) : t.huggingFace.imageClassification ? new Fo(e) : new zo(e);
11581
+ if (t.openAI) return t.openAI.images ? new fs(e) : t.openAI.speechToText ? new cs(e) : t.openAI.textToSpeech ? new ls(e) : t.openAI.assistant ? new Ss(e) : t.openAI.realtime ? new as(e) : new gt(e);
11582
+ if (t.assemblyAI) return new xs(e);
11583
+ if (t.cohere) return t.cohere.textGeneration ? new Vo(e) : t.cohere.summarization ? new Ko(e) : new Jo(e);
11584
+ if (t.huggingFace) return t.huggingFace.textGeneration ? new Uo(e) : t.huggingFace.summarization ? new qo(e) : t.huggingFace.translation ? new zo(e) : t.huggingFace.fillMask ? new Go(e) : t.huggingFace.questionAnswer ? new jo(e) : t.huggingFace.audioSpeechRecognition ? new Fo(e) : t.huggingFace.audioClassification ? new Do(e) : t.huggingFace.imageClassification ? new Bo(e) : new Ho(e);
11580
11585
  if (t.azure) {
11581
11586
  if (t.azure.openAI) {
11582
- if (t.azure.openAI.chat) return new As(e);
11583
- if (t.azure.openAI.assistant) return new as(e);
11587
+ if (t.azure.openAI.chat) return new ws(e);
11588
+ if (t.azure.openAI.assistant) return new rs(e);
11584
11589
  }
11585
- if (t.azure.speechToText) return new ps(e);
11586
- if (t.azure.textToSpeech) return new fs(e);
11587
- if (t.azure.summarization) return new us(e);
11588
- if (t.azure.translation) return new Jo(e);
11590
+ if (t.azure.speechToText) return new us(e);
11591
+ if (t.azure.textToSpeech) return new hs(e);
11592
+ if (t.azure.summarization) return new ds(e);
11593
+ if (t.azure.translation) return new Wo(e);
11589
11594
  }
11590
11595
  if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Ci(e) : t.stabilityAI.imageToImageUpscale ? new Ai(e) : t.stabilityAI.imageToImageMasking ? new Ti(e) : new Ri(e);
11591
- if (t.mistral) return new Yo(e);
11596
+ if (t.mistral) return new Xo(e);
11592
11597
  }
11593
11598
  return i && (!s || !i.stream && !i.websocket) ? new st(e) : new st(e, void 0, s || !0);
11594
11599
  }
11595
11600
  }]);
11596
11601
  }();
11597
- var Ls = /*#__PURE__*/_createClass(function Ls() {
11598
- _classCallCheck(this, Ls);
11602
+ var ks = /*#__PURE__*/_createClass(function ks() {
11603
+ _classCallCheck(this, ks);
11599
11604
  });
11600
- Ls.attibutes = {
11605
+ ks.attibutes = {
11601
11606
  string: function string(e) {
11602
11607
  return e;
11603
11608
  },
@@ -11617,13 +11622,13 @@ Ls.attibutes = {
11617
11622
  return new Function("return ".concat(e))();
11618
11623
  }
11619
11624
  };
11620
- var gs = Ls;
11625
+ var ps = ks;
11621
11626
  function _(n) {
11622
11627
  return function (e, t) {
11623
11628
  Object.defineProperty(e, t, {});
11624
11629
  var i = e.constructor,
11625
11630
  s = t.toLocaleLowerCase();
11626
- i._attributes_[s] = gs.attibutes[n], i._attributeToProperty_[s] = t;
11631
+ i._attributes_[s] = ps.attibutes[n], i._attributeToProperty_[s] = t;
11627
11632
  };
11628
11633
  }
11629
11634
  var Pi = /*#__PURE__*/function () {
@@ -11661,7 +11666,7 @@ var Pi = /*#__PURE__*/function () {
11661
11666
  }
11662
11667
  }]);
11663
11668
  }();
11664
- var Qo = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n\t viewBox=\"50 30 420 450\" xml:space=\"preserve\">\n<g filter=\"brightness(0) saturate(100%) invert(16%) sepia(0%) saturate(1942%) hue-rotate(215deg) brightness(99%) contrast(93%)\">\n\t<g>\n\t\t<path d=\"M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008\n\t\t\tC350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237\n\t\t\th333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931\n\t\t\tl50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278\n\t\t\tc-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239\n\t\t\th66.527V486.763z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256\n\t\t\tc6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z\"/>\n\t</g>\n</g>\n</svg>",
11669
+ var Zo = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n\t viewBox=\"50 30 420 450\" xml:space=\"preserve\">\n<g filter=\"brightness(0) saturate(100%) invert(16%) sepia(0%) saturate(1942%) hue-rotate(215deg) brightness(99%) contrast(93%)\">\n\t<g>\n\t\t<path d=\"M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008\n\t\t\tC350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237\n\t\t\th333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931\n\t\t\tl50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278\n\t\t\tc-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239\n\t\t\th66.527V486.763z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175\n\t\t\tc6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z\"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d=\"M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256\n\t\t\tc6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z\"/>\n\t</g>\n</g>\n</svg>",
11665
11670
  Y = /*#__PURE__*/function () {
11666
11671
  function Y() {
11667
11672
  _classCallCheck(this, Y);
@@ -11706,7 +11711,7 @@ var Qo = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11706
11711
  t.classList.add("any-file-message-contents");
11707
11712
  var i = document.createElement("div");
11708
11713
  i.classList.add("any-file-message-icon-container");
11709
- var s = K.createSVGElement(Qo);
11714
+ var s = K.createSVGElement(Zo);
11710
11715
  s.classList.add("any-file-message-icon"), i.appendChild(s);
11711
11716
  var r = document.createElement("div");
11712
11717
  return r.classList.add("any-file-message-text"), r.textContent = e.name || G.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), G.processContent("any", t, e.src, r.textContent);
@@ -11844,11 +11849,11 @@ var de = /*#__PURE__*/function () {
11844
11849
  }
11845
11850
  }]);
11846
11851
  }();
11847
- var ea = /*#__PURE__*/function () {
11848
- function ea() {
11849
- _classCallCheck(this, ea);
11852
+ var Qo = /*#__PURE__*/function () {
11853
+ function Qo() {
11854
+ _classCallCheck(this, Qo);
11850
11855
  }
11851
- return _createClass(ea, null, [{
11856
+ return _createClass(Qo, null, [{
11852
11857
  key: "getText",
11853
11858
  value: function getText(e, t) {
11854
11859
  var i;
@@ -11910,7 +11915,7 @@ var ue = /*#__PURE__*/function (_fe) {
11910
11915
  }, {
11911
11916
  key: "addSetupMessageIfNeeded",
11912
11917
  value: function addSetupMessageIfNeeded(e, t) {
11913
- var i = ea.getText(e, t);
11918
+ var i = Qo.getText(e, t);
11914
11919
  if (i) {
11915
11920
  var s = this.createAndAppendNewMessageElement(i, y.AI_ROLE);
11916
11921
  this.applyCustomStyles(s, y.AI_ROLE, !1);
@@ -12070,10 +12075,10 @@ var ue = /*#__PURE__*/function (_fe) {
12070
12075
  ref: t.file
12071
12076
  });
12072
12077
  } else {
12073
- var _s3 = new FileReader();
12074
- _s3.readAsDataURL(t.file), _s3.onload = function () {
12078
+ var _s6 = new FileReader();
12079
+ _s6.readAsDataURL(t.file), _s6.onload = function () {
12075
12080
  i({
12076
- src: _s3.result,
12081
+ src: _s6.result,
12077
12082
  type: t.type,
12078
12083
  ref: t.file
12079
12084
  });
@@ -12172,7 +12177,7 @@ var q = /*#__PURE__*/function () {
12172
12177
  }]);
12173
12178
  }();
12174
12179
  q.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", q.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", q.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", q.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
12175
- var bs = q;
12180
+ var ms = q;
12176
12181
  var yt = /*#__PURE__*/function () {
12177
12182
  function yt() {
12178
12183
  _classCallCheck(this, yt);
@@ -12206,8 +12211,8 @@ var yt = /*#__PURE__*/function () {
12206
12211
  }
12207
12212
  }]);
12208
12213
  }();
12209
- var Ws = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
12210
- Ln = "<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\"currentColor\" fill=\"none\" stroke-width=\"1\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"14\"></line>\n <polygon points=\"22 2 15 22 11 14 2 10 22 2\"></polygon>\n</svg>\n";
12214
+ var $s = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
12215
+ kn = "<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\"currentColor\" fill=\"none\" stroke-width=\"1\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"14\"></line>\n <polygon points=\"22 2 15 22 11 14 2 10 22 2\"></polygon>\n</svg>\n";
12211
12216
  var qe = /*#__PURE__*/function () {
12212
12217
  function qe() {
12213
12218
  _classCallCheck(this, qe);
@@ -12259,22 +12264,22 @@ var qe = /*#__PURE__*/function () {
12259
12264
  }
12260
12265
  }]);
12261
12266
  }();
12262
- var qi = /*#__PURE__*/function (_at2) {
12263
- function qi(e, t) {
12267
+ var ji = /*#__PURE__*/function (_at2) {
12268
+ function ji(e, t) {
12264
12269
  var _this61;
12265
- _classCallCheck(this, qi);
12270
+ _classCallCheck(this, ji);
12266
12271
  var i = (e == null ? void 0 : e.dropupText) || "Custom ".concat(t);
12267
- _this61 = _callSuper(this, qi, [qi.createButtonElement(), e == null ? void 0 : e.position, e == null ? void 0 : e.styles, i]), _this61.state = "default", _this61._innerElements = _this61.createInnerElements(_this61._customStyles), _this61.setSetState(e), _this61.addClickListener(e), _this61.changeState(e.initialState, !0), setTimeout(function () {
12272
+ _this61 = _callSuper(this, ji, [ji.createButtonElement(), e == null ? void 0 : e.position, e == null ? void 0 : e.styles, i]), _this61.state = "default", _this61._innerElements = _this61.createInnerElements(_this61._customStyles), _this61.setSetState(e), _this61.addClickListener(e), _this61.changeState(e.initialState, !0), setTimeout(function () {
12268
12273
  console.log(_this61.elementRef.parentElement);
12269
12274
  }, 200);
12270
12275
  return _this61;
12271
12276
  }
12272
- _inherits(qi, _at2);
12273
- return _createClass(qi, [{
12277
+ _inherits(ji, _at2);
12278
+ return _createClass(ji, [{
12274
12279
  key: "createInnerElements",
12275
12280
  value: function createInnerElements(e) {
12276
12281
  var s, r, o, a;
12277
- var t = K.createSVGElement(Ln);
12282
+ var t = K.createSVGElement(kn);
12278
12283
  t.id = "submit-icon";
12279
12284
  var i = (r = (s = e == null ? void 0 : e["default"]) == null ? void 0 : s.svg) != null && r.content ? K.createSVGElement((a = (o = e == null ? void 0 : e["default"]) == null ? void 0 : o.svg) == null ? void 0 : a.content) : t;
12280
12285
  return {
@@ -12361,9 +12366,9 @@ var qi = /*#__PURE__*/function (_at2) {
12361
12366
  }
12362
12367
  }]);
12363
12368
  }(at);
12364
- qi.INDICATOR_PREFIX = "custom";
12365
- var tt = qi;
12366
- var ta = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 0c-8.836 0-16 7.163-16 16s7.163 16 16 16c8.837 0 16-7.163 16-16s-7.163-16-16-16zM16 30.032c-7.72 0-14-6.312-14-14.032s6.28-14 14-14 14 6.28 14 14-6.28 14.032-14 14.032zM23 15h-6v-6c0-0.552-0.448-1-1-1s-1 0.448-1 1v6h-6c-0.552 0-1 0.448-1 1s0.448 1 1 1h6v6c0 0.552 0.448 1 1 1s1-0.448 1-1v-6h6c0.552 0 1-0.448 1-1s-0.448-1-1-1z\"></path>\n</svg>";
12369
+ ji.INDICATOR_PREFIX = "custom";
12370
+ var tt = ji;
12371
+ var ea = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 0c-8.836 0-16 7.163-16 16s7.163 16 16 16c8.837 0 16-7.163 16-16s-7.163-16-16-16zM16 30.032c-7.72 0-14-6.312-14-14.032s6.28-14 14-14 14 6.28 14 14-6.28 14.032-14 14.032zM23 15h-6v-6c0-0.552-0.448-1-1-1s-1 0.448-1 1v6h-6c-0.552 0-1 0.448-1 1s0.448 1 1 1h6v6c0 0.552 0.448 1 1 1s1-0.448 1-1v-6h6c0.552 0 1-0.448 1-1s-0.448-1-1-1z\"></path>\n</svg>";
12367
12372
  var ni = /*#__PURE__*/function () {
12368
12373
  function ni() {
12369
12374
  _classCallCheck(this, ni);
@@ -12385,16 +12390,16 @@ var ni = /*#__PURE__*/function () {
12385
12390
  }
12386
12391
  }]);
12387
12392
  }();
12388
- var Ts = /*#__PURE__*/function () {
12389
- function Ts(e, t) {
12393
+ var As = /*#__PURE__*/function () {
12394
+ function As(e, t) {
12390
12395
  var _this65 = this;
12391
- _classCallCheck(this, Ts);
12396
+ _classCallCheck(this, As);
12392
12397
  var i;
12393
- this._isOpen = !0, this._styles = t, this.elementRef = Ts.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function () {
12398
+ this._isOpen = !0, this._styles = t, this.elementRef = As.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function () {
12394
12399
  return _this65.addWindowEvents(e);
12395
12400
  });
12396
12401
  }
12397
- return _createClass(Ts, [{
12402
+ return _createClass(As, [{
12398
12403
  key: "open",
12399
12404
  value: function open() {
12400
12405
  this.elementRef.style.display = "block", this._isOpen = !0;
@@ -12451,7 +12456,7 @@ var bt = /*#__PURE__*/function (_at3) {
12451
12456
  styles: (s = t == null ? void 0 : t.button) == null ? void 0 : s.styles
12452
12457
  }]);
12453
12458
  var i = _this66.createInnerElements(_this66._customStyles);
12454
- _this66._menu = new Ts(e, t == null ? void 0 : t.menu), _this66.addClickEvent(), _this66.buttonContainer = bt.createButtonContainer(), _this66.elementRef.appendChild(i.styles), _this66.buttonContainer.appendChild(_this66.elementRef), _this66.elementRef.classList.add("dropup-icon", "upload-file-button"), _this66.elementRef.children[0].id = "dropup-icon", _this66.buttonContainer.appendChild(_this66._menu.elementRef), _this66.reapplyStateStyle("styles"), _this66.addContainerEvents(e);
12459
+ _this66._menu = new As(e, t == null ? void 0 : t.menu), _this66.addClickEvent(), _this66.buttonContainer = bt.createButtonContainer(), _this66.elementRef.appendChild(i.styles), _this66.buttonContainer.appendChild(_this66.elementRef), _this66.elementRef.classList.add("dropup-icon", "upload-file-button"), _this66.elementRef.children[0].id = "dropup-icon", _this66.buttonContainer.appendChild(_this66._menu.elementRef), _this66.reapplyStateStyle("styles"), _this66.addContainerEvents(e);
12455
12460
  return _this66;
12456
12461
  }
12457
12462
  _inherits(bt, _at3);
@@ -12494,7 +12499,7 @@ var bt = /*#__PURE__*/function (_at3) {
12494
12499
  }, {
12495
12500
  key: "createSVGIconElement",
12496
12501
  value: function createSVGIconElement() {
12497
- return K.createSVGElement(ta);
12502
+ return K.createSVGElement(ea);
12498
12503
  }
12499
12504
  }, {
12500
12505
  key: "createButtonContainer",
@@ -12520,7 +12525,7 @@ var J = /*#__PURE__*/function () {
12520
12525
  // prettier-ignore
12521
12526
  function addToDropup(e, t, i, s) {
12522
12527
  var r = new bt(i, s);
12523
- Ws.forEach(function (a) {
12528
+ $s.forEach(function (a) {
12524
12529
  var l = t["dropup-menu"].findIndex(function (d) {
12525
12530
  return d.buttonType === a;
12526
12531
  }),
@@ -12573,7 +12578,7 @@ var J = /*#__PURE__*/function () {
12573
12578
  r && J.setPosition(e, s, t[r]);
12574
12579
  }), t["inside-right"].length === 0 && e.submit && J.setPosition(e, "submit", t["inside-right"]), t["outside-right"].length === 0 && (e.submit ? J.setPosition(e, "submit", t["outside-right"]) : e.microphone ? J.setPosition(e, "microphone", t["outside-right"]) : e.camera ? J.setPosition(e, "camera", t["outside-right"]) : e["".concat(tt.INDICATOR_PREFIX, "1")] && J.setPosition(e, "".concat(tt.INDICATOR_PREFIX, "1"), t["outside-right"])), e.submit && J.setPosition(e, "submit", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]), e.microphone && J.setPosition(e, "microphone", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]);
12575
12580
  var i = Object.keys(e);
12576
- return i.length > 1 || t["dropup-menu"].length > 0 ? (Ws.forEach(function (s) {
12581
+ return i.length > 1 || t["dropup-menu"].length > 0 ? ($s.forEach(function (s) {
12577
12582
  e[s] && t["dropup-menu"].push(_objectSpread(_objectSpread({}, e[s]), {}, {
12578
12583
  buttonType: s
12579
12584
  }));
@@ -12593,29 +12598,29 @@ var J = /*#__PURE__*/function () {
12593
12598
  }
12594
12599
  }]);
12595
12600
  }();
12596
- var ia = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>file</title>\n<path d=\"M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>",
12597
- sa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z\"/>\n</svg>\n",
12598
- na = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"-49.49 -49.49 593.87 593.87\" stroke-width=\"3.95908\" transform=\"rotate(0)\">\n <g stroke-width=\"0\"></g>\n <g stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.98977\"></g>\n <g>\n <g>\n <g>\n <path d=\"M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z\">\n </path>\n </g>\n </g>\n </g>\n</svg>",
12599
- ra = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 5.9266752 5.6408391\" height=\"21.31971\" width=\"22.4\">\n <g>\n <path d=\"m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z\"/>\n <path d=\"m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z\"/>\n </g>\n</svg>\n",
12600
- oa = {
12601
+ var ta = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<title>file</title>\n<path d=\"M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>",
12602
+ ia = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z\"/>\n</svg>\n",
12603
+ sa = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"-49.49 -49.49 593.87 593.87\" stroke-width=\"3.95908\" transform=\"rotate(0)\">\n <g stroke-width=\"0\"></g>\n <g stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.98977\"></g>\n <g>\n <g>\n <g>\n <path d=\"M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z\">\n </path>\n </g>\n </g>\n </g>\n</svg>",
12604
+ na = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 5.9266752 5.6408391\" height=\"21.31971\" width=\"22.4\">\n <g>\n <path d=\"m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z\"/>\n <path d=\"m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z\"/>\n </g>\n</svg>\n",
12605
+ ra = {
12601
12606
  images: {
12602
12607
  id: "upload-images-icon",
12603
- svgString: sa,
12608
+ svgString: ia,
12604
12609
  dropupText: "Image"
12605
12610
  },
12606
12611
  gifs: {
12607
12612
  id: "upload-gifs-icon",
12608
- svgString: ra,
12613
+ svgString: na,
12609
12614
  dropupText: "GIF"
12610
12615
  },
12611
12616
  audio: {
12612
12617
  id: "upload-audio-icon",
12613
- svgString: na,
12618
+ svgString: sa,
12614
12619
  dropupText: "Audio"
12615
12620
  },
12616
12621
  mixedFiles: {
12617
12622
  id: "upload-mixed-files-icon",
12618
- svgString: ia,
12623
+ svgString: ta,
12619
12624
  dropupText: "File"
12620
12625
  }
12621
12626
  };
@@ -12689,12 +12694,12 @@ var ri = /*#__PURE__*/function (_at4) {
12689
12694
  }, {
12690
12695
  key: "createSVGIconElement",
12691
12696
  value: function createSVGIconElement() {
12692
- var e = K.createSVGElement(Rn);
12697
+ var e = K.createSVGElement(Cn);
12693
12698
  return e.id = "microphone-icon", e;
12694
12699
  }
12695
12700
  }]);
12696
12701
  }(at);
12697
- function aa(n) {
12702
+ function oa(n) {
12698
12703
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n["default"] : n;
12699
12704
  }
12700
12705
  var mi = {},
@@ -12702,10 +12707,10 @@ var mi = {},
12702
12707
  _t = {},
12703
12708
  xt = {},
12704
12709
  wt = {},
12705
- Js;
12706
- function Vi() {
12707
- if (Js) return wt;
12708
- Js = 1, Object.defineProperty(wt, "__esModule", {
12710
+ Ws;
12711
+ function Gi() {
12712
+ if (Ws) return wt;
12713
+ Ws = 1, Object.defineProperty(wt, "__esModule", {
12709
12714
  value: !0
12710
12715
  }), wt.Text = void 0;
12711
12716
  var n = /*#__PURE__*/function () {
@@ -12739,13 +12744,13 @@ function Vi() {
12739
12744
  }();
12740
12745
  return wt.Text = n, n.FIRST_CHAR_REGEX = /\S/, n.DOUBLE_LINE = /\n\n/g, n.ONE_LINE = /\n/g, wt;
12741
12746
  }
12742
- var Xs;
12743
- function In() {
12744
- if (Xs) return xt;
12745
- Xs = 1, Object.defineProperty(xt, "__esModule", {
12747
+ var Js;
12748
+ function Ln() {
12749
+ if (Js) return xt;
12750
+ Js = 1, Object.defineProperty(xt, "__esModule", {
12746
12751
  value: !0
12747
12752
  }), xt.Translate = void 0;
12748
- var n = Vi();
12753
+ var n = Gi();
12749
12754
  var e = /*#__PURE__*/function () {
12750
12755
  function e() {
12751
12756
  _classCallCheck(this, e);
@@ -12761,13 +12766,13 @@ function In() {
12761
12766
  }();
12762
12767
  return xt.Translate = e, xt;
12763
12768
  }
12764
- var Ys;
12765
- function la() {
12766
- if (Ys) return _t;
12767
- Ys = 1, Object.defineProperty(_t, "__esModule", {
12769
+ var Xs;
12770
+ function aa() {
12771
+ if (Xs) return _t;
12772
+ Xs = 1, Object.defineProperty(_t, "__esModule", {
12768
12773
  value: !0
12769
12774
  }), _t.WebSpeechTranscript = void 0;
12770
- var n = In();
12775
+ var n = Ln();
12771
12776
  var e = /*#__PURE__*/function () {
12772
12777
  function e() {
12773
12778
  _classCallCheck(this, e);
@@ -12806,10 +12811,10 @@ function la() {
12806
12811
  return _t.WebSpeechTranscript = e, _t;
12807
12812
  }
12808
12813
  var At = {},
12809
- Zs;
12810
- function Cs() {
12811
- if (Zs) return At;
12812
- Zs = 1, Object.defineProperty(At, "__esModule", {
12814
+ Ys;
12815
+ function Ts() {
12816
+ if (Ys) return At;
12817
+ Ys = 1, Object.defineProperty(At, "__esModule", {
12813
12818
  value: !0
12814
12819
  }), At.Browser = void 0;
12815
12820
  var n = /*#__PURE__*/_createClass(function n() {
@@ -12821,10 +12826,10 @@ function Cs() {
12821
12826
  }
12822
12827
  var Tt = {},
12823
12828
  Ct = {},
12824
- Qs;
12825
- function ca() {
12826
- if (Qs) return Ct;
12827
- Qs = 1, Object.defineProperty(Ct, "__esModule", {
12829
+ Zs;
12830
+ function la() {
12831
+ if (Zs) return Ct;
12832
+ Zs = 1, Object.defineProperty(Ct, "__esModule", {
12828
12833
  value: !0
12829
12834
  }), Ct.EventListeners = void 0;
12830
12835
  var n = /*#__PURE__*/function () {
@@ -12872,10 +12877,10 @@ function ca() {
12872
12877
  return Ct.EventListeners = n, n.KEY_DOWN_TIMEOUT = null, Ct;
12873
12878
  }
12874
12879
  var Rt = {},
12875
- en;
12876
- function da() {
12877
- if (en) return Rt;
12878
- en = 1, Object.defineProperty(Rt, "__esModule", {
12880
+ Qs;
12881
+ function ca() {
12882
+ if (Qs) return Rt;
12883
+ Qs = 1, Object.defineProperty(Rt, "__esModule", {
12879
12884
  value: !0
12880
12885
  }), Rt.PreResultUtils = void 0;
12881
12886
  var n = /*#__PURE__*/function () {
@@ -12896,10 +12901,10 @@ function da() {
12896
12901
  }
12897
12902
  var Mt = {},
12898
12903
  kt = {},
12899
- tn;
12900
- function Pn() {
12901
- if (tn) return kt;
12902
- tn = 1, Object.defineProperty(kt, "__esModule", {
12904
+ en;
12905
+ function In() {
12906
+ if (en) return kt;
12907
+ en = 1, Object.defineProperty(kt, "__esModule", {
12903
12908
  value: !0
12904
12909
  }), kt.AutoScroll = void 0;
12905
12910
  var n = /*#__PURE__*/function () {
@@ -12940,10 +12945,10 @@ function Pn() {
12940
12945
  return kt.AutoScroll = n, kt;
12941
12946
  }
12942
12947
  var Lt = {},
12943
- sn;
12944
- function Ki() {
12945
- if (sn) return Lt;
12946
- sn = 1, Object.defineProperty(Lt, "__esModule", {
12948
+ tn;
12949
+ function Vi() {
12950
+ if (tn) return Lt;
12951
+ tn = 1, Object.defineProperty(Lt, "__esModule", {
12947
12952
  value: !0
12948
12953
  }), Lt.Elements = void 0;
12949
12954
  var n = /*#__PURE__*/function () {
@@ -12995,10 +13000,10 @@ function Ki() {
12995
13000
  return Lt.Elements = n, Lt;
12996
13001
  }
12997
13002
  var It = {},
12998
- nn;
12999
- function $i() {
13000
- if (nn) return It;
13001
- nn = 1, Object.defineProperty(It, "__esModule", {
13003
+ sn;
13004
+ function Ki() {
13005
+ if (sn) return It;
13006
+ sn = 1, Object.defineProperty(It, "__esModule", {
13002
13007
  value: !0
13003
13008
  }), It.Cursor = void 0;
13004
13009
  var n = /*#__PURE__*/function () {
@@ -13083,17 +13088,17 @@ function $i() {
13083
13088
  }();
13084
13089
  return It.Cursor = n, It;
13085
13090
  }
13086
- var rn;
13087
- function On() {
13088
- if (rn) return Mt;
13089
- rn = 1, Object.defineProperty(Mt, "__esModule", {
13091
+ var nn;
13092
+ function Pn() {
13093
+ if (nn) return Mt;
13094
+ nn = 1, Object.defineProperty(Mt, "__esModule", {
13090
13095
  value: !0
13091
13096
  }), Mt.CommandUtils = void 0;
13092
- var n = Pn(),
13093
- e = Ki(),
13094
- t = Cs(),
13095
- i = $i(),
13096
- s = Vi();
13097
+ var n = In(),
13098
+ e = Vi(),
13099
+ t = Ts(),
13100
+ i = Ki(),
13101
+ s = Gi();
13097
13102
  var r = /*#__PURE__*/function () {
13098
13103
  function r() {
13099
13104
  _classCallCheck(this, r);
@@ -13191,14 +13196,14 @@ function On() {
13191
13196
  return Mt.CommandUtils = r, Mt;
13192
13197
  }
13193
13198
  var Pt = {},
13194
- on;
13195
- function ha() {
13196
- if (on) return Pt;
13197
- on = 1, Object.defineProperty(Pt, "__esModule", {
13199
+ rn;
13200
+ function da() {
13201
+ if (rn) return Pt;
13202
+ rn = 1, Object.defineProperty(Pt, "__esModule", {
13198
13203
  value: !0
13199
13204
  }), Pt.Highlight = void 0;
13200
- var n = Ki(),
13201
- e = $i();
13205
+ var n = Vi(),
13206
+ e = Ki();
13202
13207
  var t = /*#__PURE__*/function () {
13203
13208
  function t() {
13204
13209
  _classCallCheck(this, t);
@@ -13250,15 +13255,15 @@ function ha() {
13250
13255
  return Pt.Highlight = t, Pt;
13251
13256
  }
13252
13257
  var Ot = {},
13253
- an;
13254
- function ua() {
13255
- if (an) return Ot;
13256
- an = 1, Object.defineProperty(Ot, "__esModule", {
13258
+ on;
13259
+ function ha() {
13260
+ if (on) return Ot;
13261
+ on = 1, Object.defineProperty(Ot, "__esModule", {
13257
13262
  value: !0
13258
13263
  }), Ot.Padding = void 0;
13259
- var n = Ki(),
13260
- e = $i(),
13261
- t = Vi();
13264
+ var n = Vi(),
13265
+ e = Ki(),
13266
+ t = Gi();
13262
13267
  var i = /*#__PURE__*/function () {
13263
13268
  function i() {
13264
13269
  _classCallCheck(this, i);
@@ -13318,22 +13323,22 @@ function ua() {
13318
13323
  }();
13319
13324
  return Ot.Padding = i, Ot;
13320
13325
  }
13321
- var ln;
13322
- function Nn() {
13323
- if (ln) return Tt;
13324
- ln = 1, Object.defineProperty(Tt, "__esModule", {
13326
+ var an;
13327
+ function On() {
13328
+ if (an) return Tt;
13329
+ an = 1, Object.defineProperty(Tt, "__esModule", {
13325
13330
  value: !0
13326
13331
  }), Tt.Speech = void 0;
13327
- var n = ca(),
13328
- e = da(),
13329
- t = On(),
13330
- i = Pn(),
13331
- s = ha(),
13332
- r = Ki(),
13333
- o = ua(),
13334
- a = Cs(),
13335
- l = $i(),
13336
- c = Vi();
13332
+ var n = la(),
13333
+ e = ca(),
13334
+ t = Pn(),
13335
+ i = In(),
13336
+ s = da(),
13337
+ r = Vi(),
13338
+ o = ha(),
13339
+ a = Ts(),
13340
+ l = Ki(),
13341
+ c = Gi();
13337
13342
  var d = /*#__PURE__*/function () {
13338
13343
  function d() {
13339
13344
  _classCallCheck(this, d);
@@ -13444,15 +13449,15 @@ function Nn() {
13444
13449
  }();
13445
13450
  return Tt.Speech = d, Tt;
13446
13451
  }
13447
- var cn;
13448
- function fa() {
13449
- if (cn) return St;
13450
- cn = 1, Object.defineProperty(St, "__esModule", {
13452
+ var ln;
13453
+ function ua() {
13454
+ if (ln) return St;
13455
+ ln = 1, Object.defineProperty(St, "__esModule", {
13451
13456
  value: !0
13452
13457
  }), St.WebSpeech = void 0;
13453
- var n = la(),
13454
- e = Cs(),
13455
- t = Nn();
13458
+ var n = aa(),
13459
+ e = Ts(),
13460
+ t = On();
13456
13461
  var i = /*#__PURE__*/function (_t$Speech) {
13457
13462
  function i() {
13458
13463
  _classCallCheck(this, i);
@@ -13520,10 +13525,10 @@ function fa() {
13520
13525
  return St.WebSpeech = i, St;
13521
13526
  }
13522
13527
  var Nt = {},
13523
- dn;
13524
- function pa() {
13525
- if (dn) return Nt;
13526
- dn = 1, Object.defineProperty(Nt, "__esModule", {
13528
+ cn;
13529
+ function fa() {
13530
+ if (cn) return Nt;
13531
+ cn = 1, Object.defineProperty(Nt, "__esModule", {
13527
13532
  value: !0
13528
13533
  }), Nt.GlobalState = void 0;
13529
13534
  var n = /*#__PURE__*/function () {
@@ -13543,10 +13548,10 @@ function pa() {
13543
13548
  }
13544
13549
  var Dt = {},
13545
13550
  Bt = {},
13546
- hn;
13547
- function ma() {
13548
- if (hn) return Bt;
13549
- hn = 1, Object.defineProperty(Bt, "__esModule", {
13551
+ dn;
13552
+ function pa() {
13553
+ if (dn) return Bt;
13554
+ dn = 1, Object.defineProperty(Bt, "__esModule", {
13550
13555
  value: !0
13551
13556
  }), Bt.PreventConnectionStop = void 0;
13552
13557
  var n = /*#__PURE__*/function () {
@@ -13571,19 +13576,19 @@ function ma() {
13571
13576
  }
13572
13577
  var Ft = {},
13573
13578
  Ut = {},
13574
- un;
13575
- function ga() {
13576
- return un || (un = 1, Object.defineProperty(Ut, "__esModule", {
13579
+ hn;
13580
+ function ma() {
13581
+ return hn || (hn = 1, Object.defineProperty(Ut, "__esModule", {
13577
13582
  value: !0
13578
13583
  }), Ut.README_URL = void 0, Ut.README_URL = "https://github.com/OvidijusParsiunas/speech-to-element"), Ut;
13579
13584
  }
13580
- var fn;
13581
- function ba() {
13582
- if (fn) return Ft;
13583
- fn = 1, Object.defineProperty(Ft, "__esModule", {
13585
+ var un;
13586
+ function ga() {
13587
+ if (un) return Ft;
13588
+ un = 1, Object.defineProperty(Ft, "__esModule", {
13584
13589
  value: !0
13585
13590
  }), Ft.AzureSpeechConfig = void 0;
13586
- var n = ga();
13591
+ var n = ma();
13587
13592
  var e = /*#__PURE__*/function () {
13588
13593
  function e() {
13589
13594
  _classCallCheck(this, e);
@@ -13654,10 +13659,10 @@ function ba() {
13654
13659
  return Ft.AzureSpeechConfig = e, Ft;
13655
13660
  }
13656
13661
  var jt = {},
13657
- pn;
13658
- function va() {
13659
- if (pn) return jt;
13660
- pn = 1, Object.defineProperty(jt, "__esModule", {
13662
+ fn;
13663
+ function ba() {
13664
+ if (fn) return jt;
13665
+ fn = 1, Object.defineProperty(jt, "__esModule", {
13661
13666
  value: !0
13662
13667
  }), jt.StopTimeout = void 0;
13663
13668
  var n = /*#__PURE__*/function () {
@@ -13681,13 +13686,13 @@ function va() {
13681
13686
  return jt.StopTimeout = n, n.DEFAULT_MS = 2e4, jt;
13682
13687
  }
13683
13688
  var qt = {},
13684
- mn;
13685
- function ya() {
13686
- if (mn) return qt;
13687
- mn = 1, Object.defineProperty(qt, "__esModule", {
13689
+ pn;
13690
+ function va() {
13691
+ if (pn) return qt;
13692
+ pn = 1, Object.defineProperty(qt, "__esModule", {
13688
13693
  value: !0
13689
13694
  }), qt.AzureTranscript = void 0;
13690
- var n = In();
13695
+ var n = Ln();
13691
13696
  var e = /*#__PURE__*/function () {
13692
13697
  function e() {
13693
13698
  _classCallCheck(this, e);
@@ -13711,17 +13716,17 @@ function ya() {
13711
13716
  }();
13712
13717
  return qt.AzureTranscript = e, qt;
13713
13718
  }
13714
- var gn;
13715
- function Ea() {
13716
- if (gn) return Dt;
13717
- gn = 1, Object.defineProperty(Dt, "__esModule", {
13719
+ var mn;
13720
+ function ya() {
13721
+ if (mn) return Dt;
13722
+ mn = 1, Object.defineProperty(Dt, "__esModule", {
13718
13723
  value: !0
13719
13724
  }), Dt.Azure = void 0;
13720
- var n = ma(),
13721
- e = ba(),
13722
- t = va(),
13723
- i = ya(),
13724
- s = Nn();
13725
+ var n = pa(),
13726
+ e = ga(),
13727
+ t = ba(),
13728
+ i = va(),
13729
+ s = On();
13725
13730
  var r = /*#__PURE__*/function (_s$Speech) {
13726
13731
  function r() {
13727
13732
  var _this71;
@@ -13890,16 +13895,16 @@ function Ea() {
13890
13895
  }(s.Speech);
13891
13896
  return Dt.Azure = r, Dt;
13892
13897
  }
13893
- var bn;
13894
- function Sa() {
13895
- if (bn) return mi;
13896
- bn = 1, Object.defineProperty(mi, "__esModule", {
13898
+ var gn;
13899
+ function Ea() {
13900
+ if (gn) return mi;
13901
+ gn = 1, Object.defineProperty(mi, "__esModule", {
13897
13902
  value: !0
13898
13903
  });
13899
- var n = fa(),
13900
- e = On(),
13901
- t = pa(),
13902
- i = Ea();
13904
+ var n = ua(),
13905
+ e = Pn(),
13906
+ t = fa(),
13907
+ i = ya();
13903
13908
  var s = /*#__PURE__*/function () {
13904
13909
  function s() {
13905
13910
  _classCallCheck(this, s);
@@ -13942,14 +13947,14 @@ function Sa() {
13942
13947
  }();
13943
13948
  return mi["default"] = s, mi;
13944
13949
  }
13945
- var _a = Sa();
13946
- var gi = /* @__PURE__ */aa(_a);
13947
- var xa = /*#__PURE__*/function () {
13948
- function xa(e, t) {
13949
- _classCallCheck(this, xa);
13950
+ var Sa = Ea();
13951
+ var gi = /* @__PURE__ */oa(Sa);
13952
+ var _a = /*#__PURE__*/function () {
13953
+ function _a(e, t) {
13954
+ _classCallCheck(this, _a);
13950
13955
  this.silenceMS = 2e3, this.stop = !0, typeof t == "boolean" && t === !1 && (this.stop = !1), typeof e == "number" && (this.silenceMS = e);
13951
13956
  }
13952
- return _createClass(xa, [{
13957
+ return _createClass(_a, [{
13953
13958
  key: "setSilenceTimeout",
13954
13959
  value: function setSilenceTimeout(e, t) {
13955
13960
  var _this73 = this;
@@ -14019,7 +14024,7 @@ var Zt = /*#__PURE__*/function (_ri) {
14019
14024
  restart: !0,
14020
14025
  removeNewText: !0
14021
14026
  }) : null;
14022
- }), i.submitAfterSilence && (this._silenceSubmit = new xa(i.submitAfterSilence, i.stopAfterSubmit)), {
14027
+ }), i.submitAfterSilence && (this._silenceSubmit = new _a(i.submitAfterSilence, i.stopAfterSubmit)), {
14023
14028
  serviceName: Zt.getServiceName(i),
14024
14029
  processedConfig: o
14025
14030
  };
@@ -14251,7 +14256,7 @@ var ke = /*#__PURE__*/function (_Ie) {
14251
14256
  i.classList.add("audio-placeholder-text-3-digits");
14252
14257
  var s = document.createElement("div");
14253
14258
  s.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), s.appendChild(i);
14254
- var r = K.createSVGElement(ls);
14259
+ var r = K.createSVGElement(os);
14255
14260
  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;
14256
14261
  }
14257
14262
  }, {
@@ -14307,9 +14312,9 @@ var ke = /*#__PURE__*/function (_Ie) {
14307
14312
  var i = e.parentElement ? ee.cloneElement(e) : e,
14308
14313
  s = document.createElement("audio");
14309
14314
  s.src = t;
14310
- var r = K.createSVGElement(Mn);
14315
+ var r = K.createSVGElement(Rn);
14311
14316
  r.classList.add("attachment-icon", "play-icon");
14312
- var o = K.createSVGElement(ls);
14317
+ var o = K.createSVGElement(os);
14313
14318
  o.classList.add("attachment-icon", "stop-icon"), i.replaceChildren(r), s.onplay = function () {
14314
14319
  i.replaceChildren(o);
14315
14320
  }, s.onpause = function () {
@@ -14336,11 +14341,11 @@ var ke = /*#__PURE__*/function (_Ie) {
14336
14341
  }(Ie);
14337
14342
  ke.TIMER_LIMIT_S = 5999;
14338
14343
  var ai = ke;
14339
- var wa = /*#__PURE__*/function () {
14340
- function wa() {
14341
- _classCallCheck(this, wa);
14344
+ var xa = /*#__PURE__*/function () {
14345
+ function xa() {
14346
+ _classCallCheck(this, xa);
14342
14347
  }
14343
- return _createClass(wa, null, [{
14348
+ return _createClass(xa, null, [{
14344
14349
  key: "create",
14345
14350
  value:
14346
14351
  // prettier-ignore
@@ -14360,7 +14365,7 @@ var hi = /*#__PURE__*/function () {
14360
14365
  return _createClass(hi, [{
14361
14366
  key: "addType",
14362
14367
  value: function addType(e, t, i) {
14363
- var s = wa.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, i);
14368
+ var s = xa.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, i);
14364
14369
  return this._fileAttachmentsTypes.push(s), s;
14365
14370
  }
14366
14371
  }, {
@@ -14781,11 +14786,11 @@ var Ve = /*#__PURE__*/function () {
14781
14786
  }
14782
14787
  }]);
14783
14788
  }();
14784
- var Dn = /*#__PURE__*/function () {
14785
- function Dn() {
14786
- _classCallCheck(this, Dn);
14789
+ var Nn = /*#__PURE__*/function () {
14790
+ function Nn() {
14791
+ _classCallCheck(this, Nn);
14787
14792
  }
14788
- return _createClass(Dn, null, [{
14793
+ return _createClass(Nn, null, [{
14789
14794
  key: "getFileName",
14790
14795
  value: function getFileName(e, t) {
14791
14796
  var i = /* @__PURE__ */new Date(),
@@ -14796,16 +14801,16 @@ var Dn = /*#__PURE__*/function () {
14796
14801
  }
14797
14802
  }]);
14798
14803
  }();
14799
- var Aa = /*#__PURE__*/function (_ri2) {
14800
- function Aa(e, t) {
14804
+ var wa = /*#__PURE__*/function (_ri2) {
14805
+ function wa(e, t) {
14801
14806
  var _this83;
14802
- _classCallCheck(this, Aa);
14807
+ _classCallCheck(this, wa);
14803
14808
  var i, s;
14804
- _this83 = _callSuper(this, Aa, [t.button]), _this83._waitingForBrowserApproval = !1, _this83._audioType = e, _this83._extension = ((i = t.files) == null ? void 0 : i.format) || "mp3", _this83._maxDurationSeconds = (s = t.files) == null ? void 0 : s.maxDurationSeconds, _this83.elementRef.onclick = _this83.buttonClick.bind(_assertThisInitialized(_this83));
14809
+ _this83 = _callSuper(this, wa, [t.button]), _this83._waitingForBrowserApproval = !1, _this83._audioType = e, _this83._extension = ((i = t.files) == null ? void 0 : i.format) || "mp3", _this83._maxDurationSeconds = (s = t.files) == null ? void 0 : s.maxDurationSeconds, _this83.elementRef.onclick = _this83.buttonClick.bind(_assertThisInitialized(_this83));
14805
14810
  return _this83;
14806
14811
  }
14807
- _inherits(Aa, _ri2);
14808
- return _createClass(Aa, [{
14812
+ _inherits(wa, _ri2);
14813
+ return _createClass(wa, [{
14809
14814
  key: "buttonClick",
14810
14815
  value: function buttonClick() {
14811
14816
  this._waitingForBrowserApproval || (this.isActive ? this.stop() : (this._waitingForBrowserApproval = !0, this.record()));
@@ -14846,7 +14851,7 @@ var Aa = /*#__PURE__*/function (_ri2) {
14846
14851
  var t = new Blob([e.data], {
14847
14852
  type: "audio/".concat(this._extension)
14848
14853
  }),
14849
- i = Dn.getFileName(this._newFilePrefix || "audio", this._extension),
14854
+ i = Nn.getFileName(this._newFilePrefix || "audio", this._extension),
14850
14855
  s = new File([t], i, {
14851
14856
  type: t.type
14852
14857
  }),
@@ -15185,7 +15190,7 @@ var I = /*#__PURE__*/function (_at6) {
15185
15190
  }, {
15186
15191
  key: "createSubmitIconElement",
15187
15192
  value: function createSubmitIconElement() {
15188
- var e = K.createSVGElement(Ln);
15193
+ var e = K.createSVGElement(kn);
15189
15194
  return e.id = "submit-icon", e;
15190
15195
  }
15191
15196
  }, {
@@ -15203,32 +15208,32 @@ var I = /*#__PURE__*/function (_at6) {
15203
15208
  }]);
15204
15209
  }(at);
15205
15210
  I.SUBMIT_CLASS = "submit-button", I.LOADING_CLASS = "loading-button", I.DISABLED_CLASS = "disabled-button";
15206
- var vs = I;
15207
- var Ta = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z\"/>\n</svg>\n",
15208
- Ca = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>capture</title>\n <path d=\"M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z\"></path>\n</svg>\n",
15209
- Ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z\"/>\n</svg>",
15210
- Ma = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.89163 13.2687L9.16582 17.5427L18.7085 8\" stroke=\"#000000\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
15211
- var Rs = /*#__PURE__*/function (_Qe) {
15211
+ var gs = I;
15212
+ var Aa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z\"/>\n</svg>\n",
15213
+ Ta = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>capture</title>\n <path d=\"M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z\"></path>\n</svg>\n",
15214
+ Ca = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z\"/>\n</svg>",
15215
+ Ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.89163 13.2687L9.16582 17.5427L18.7085 8\" stroke=\"#000000\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
15216
+ var Cs = /*#__PURE__*/function (_Qe) {
15212
15217
  // prettier-ignore
15213
- function Rs(e, t, i, s) {
15218
+ function Cs(e, t, i, s) {
15214
15219
  var _this91;
15215
- _classCallCheck(this, Rs);
15216
- _this91 = _callSuper(this, Rs, [e, ["modal-content", "modal-camera-content"], i]), _this91._stopped = !1, _this91._format = "image/png", _this91._canvas = document.createElement("canvas"), _this91._canvas.classList.add("camera-modal-canvas");
15220
+ _classCallCheck(this, Cs);
15221
+ _this91 = _callSuper(this, Cs, [e, ["modal-content", "modal-camera-content"], i]), _this91._stopped = !1, _this91._format = "image/png", _this91._canvas = document.createElement("canvas"), _this91._canvas.classList.add("camera-modal-canvas");
15217
15222
  var _this91$addButtonsAnd = _this91.addButtonsAndTheirEvents(t),
15218
15223
  r = _this91$addButtonsAnd.captureButton,
15219
15224
  o = _this91$addButtonsAnd.submitButton;
15220
- _this91._captureButton = r, _this91._submitButton = o, _this91._captureIcon = _this91._captureButton.children[0], _this91._refreshIcon = K.createSVGElement(Ta), _this91._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this91._format = "image/jpeg"), s != null && s.dimensions && (_this91._dimensions = s.dimensions), _this91._contentRef.appendChild(_this91._canvas), _this91.extensionCloseCallback = _this91.stop;
15225
+ _this91._captureButton = r, _this91._submitButton = o, _this91._captureIcon = _this91._captureButton.children[0], _this91._refreshIcon = K.createSVGElement(Aa), _this91._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this91._format = "image/jpeg"), s != null && s.dimensions && (_this91._dimensions = s.dimensions), _this91._contentRef.appendChild(_this91._canvas), _this91.extensionCloseCallback = _this91.stop;
15221
15226
  return _this91;
15222
15227
  }
15223
- _inherits(Rs, _Qe);
15224
- return _createClass(Rs, [{
15228
+ _inherits(Cs, _Qe);
15229
+ return _createClass(Cs, [{
15225
15230
  key: "addButtonsAndTheirEvents",
15226
15231
  value: function addButtonsAndTheirEvents(e) {
15227
- var t = Qe.createSVGButton(Ca);
15232
+ var t = Qe.createSVGButton(Ta);
15228
15233
  t.classList.add("modal-svg-camera-button"), t.children[0].classList.add("modal-svg-camera-icon");
15229
- var i = this.addCloseButton(Ra, !0);
15234
+ var i = this.addCloseButton(Ca, !0);
15230
15235
  i.classList.add("modal-svg-close-button"), i.children[0].classList.add("modal-svg-close-icon");
15231
- var s = Qe.createSVGButton(Ma);
15236
+ var s = Qe.createSVGButton(Ra);
15232
15237
  return s.classList.add("modal-svg-submit-button"), this.addButtons(t, s), this.addButtonEvents(t, i, s, e), {
15233
15238
  captureButton: t,
15234
15239
  submitButton: s
@@ -15289,7 +15294,7 @@ var Rs = /*#__PURE__*/function (_Qe) {
15289
15294
  type: this._format
15290
15295
  }),
15291
15296
  r = this._format === "image/jpeg" ? "jpeg" : "png",
15292
- o = Dn.getFileName(this._newFilePrefix || "photo", r);
15297
+ o = Nn.getFileName(this._newFilePrefix || "photo", r);
15293
15298
  return new File([s], o, {
15294
15299
  type: s.type
15295
15300
  });
@@ -15316,12 +15321,12 @@ var Rs = /*#__PURE__*/function (_Qe) {
15316
15321
  }], [{
15317
15322
  key: "createCameraModalFunc",
15318
15323
  value: function createCameraModalFunc(e, t, i, s) {
15319
- var r = new Rs(e, t, i, s);
15324
+ var r = new Cs(e, t, i, s);
15320
15325
  return r.openCameraModal.bind(r, r);
15321
15326
  }
15322
15327
  }]);
15323
15328
  }(Qe);
15324
- var ka = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z\"></path>\n</svg>";
15329
+ var Ma = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z\"></path>\n</svg>";
15325
15330
  var Ni = /*#__PURE__*/function (_at7) {
15326
15331
  function Ni(e, t, i) {
15327
15332
  var _this95;
@@ -15349,7 +15354,7 @@ var Ni = /*#__PURE__*/function (_at7) {
15349
15354
  value:
15350
15355
  // prettier-ignore
15351
15356
  function addClickEvent(e, t, i, s) {
15352
- var r = Rs.createCameraModalFunc(e, t, i, s);
15357
+ var r = Cs.createCameraModalFunc(e, t, i, s);
15353
15358
  this.elementRef.onclick = r;
15354
15359
  }
15355
15360
  }], [{
@@ -15361,7 +15366,7 @@ var Ni = /*#__PURE__*/function (_at7) {
15361
15366
  }, {
15362
15367
  key: "createSVGIconElement",
15363
15368
  value: function createSVGIconElement() {
15364
- var e = K.createSVGElement(ka);
15369
+ var e = K.createSVGElement(Ma);
15365
15370
  return e.id = "camera-icon", e;
15366
15371
  }
15367
15372
  }]);
@@ -15377,7 +15382,7 @@ var $t = /*#__PURE__*/function () {
15377
15382
  e.speechToText && !r.microphone && (r.microphone = {
15378
15383
  button: new oi(e, a, t.addNewErrorMessage.bind(t))
15379
15384
  });
15380
- var l = new vs(e, a, t, i, o, r);
15385
+ var l = new gs(e, a, t, i, o, r);
15381
15386
  a.submit = l.submitFromInput.bind(l), Ve.attach(e, i, a, o, l), e.submitUserMessage = l.programmaticSubmit.bind(l), r.submit = {
15382
15387
  button: l
15383
15388
  }, (c = e.customButtons) == null || c.forEach(function (d, u) {
@@ -15402,7 +15407,7 @@ var $t = /*#__PURE__*/function () {
15402
15407
  if ((l = t.recordAudio) != null && l.files) {
15403
15408
  var _d = ((c = s.audio) == null ? void 0 : c.fileType) || r.addType(e, t.recordAudio.files, "audio");
15404
15409
  s.microphone = {
15405
- button: new Aa(_d, t.recordAudio)
15410
+ button: new wa(_d, t.recordAudio)
15406
15411
  };
15407
15412
  }
15408
15413
  return Le.isEnabled(r, e.dragAndDrop) && Le.create(i, r, e.dragAndDrop), r;
@@ -15422,10 +15427,10 @@ var $t = /*#__PURE__*/function () {
15422
15427
  l = t[a];
15423
15428
  if (l.files) {
15424
15429
  var c = i.addType(e, l.files, a),
15425
- _oa$a = oa[a],
15426
- d = _oa$a.id,
15427
- u = _oa$a.svgString,
15428
- h = _oa$a.dropupText,
15430
+ _ra$a = ra[a],
15431
+ d = _ra$a.id,
15432
+ u = _ra$a.svgString,
15433
+ h = _ra$a.dropupText,
15429
15434
  f = new Kt(s, c, l, d, u, h);
15430
15435
  r[a] = {
15431
15436
  button: f,
@@ -15441,15 +15446,15 @@ var $t = /*#__PURE__*/function () {
15441
15446
  ee.addElements(e, t.elementRef);
15442
15447
  var a = yt.create(),
15443
15448
  l = J.addButtons(a, i, s, o);
15444
- bs.set(t.inputElementRef, a, r.elementRef, l), yt.add(e, a);
15449
+ ms.set(t.inputElementRef, a, r.elementRef, l), yt.add(e, a);
15445
15450
  }
15446
15451
  }]);
15447
15452
  }();
15448
- var Ms = /*#__PURE__*/function () {
15449
- function Ms() {
15450
- _classCallCheck(this, Ms);
15453
+ var Rs = /*#__PURE__*/function () {
15454
+ function Rs() {
15455
+ _classCallCheck(this, Rs);
15451
15456
  }
15452
- return _createClass(Ms, null, [{
15457
+ return _createClass(Rs, null, [{
15453
15458
  key: "createElements",
15454
15459
  value: function createElements(e, t, i) {
15455
15460
  var s = document.createElement("div");
@@ -15462,18 +15467,18 @@ var Ms = /*#__PURE__*/function () {
15462
15467
  }, {
15463
15468
  key: "render",
15464
15469
  value: function render(e, t, i, s) {
15465
- var r = Ms.createElements(e, i, s);
15470
+ var r = Rs.createElements(e, i, s);
15466
15471
  t.replaceChildren(r), i.isCustomView() && i.setUpView(r, t);
15467
15472
  }
15468
15473
  }]);
15469
15474
  }();
15470
- var La = "#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}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.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:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}[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-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.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}";
15471
- var Ia = Object.defineProperty,
15475
+ var ka = "#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}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.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:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}[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-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.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}";
15476
+ var La = Object.defineProperty,
15472
15477
  x = function x(n, e, t, i) {
15473
15478
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);
15474
- return s && Ia(e, t, s), s;
15479
+ return s && La(e, t, s), s;
15475
15480
  };
15476
- var E = /*#__PURE__*/function (_ns) {
15481
+ var E = /*#__PURE__*/function (_ss) {
15477
15482
  function E() {
15478
15483
  var _this96;
15479
15484
  _classCallCheck(this, E);
@@ -15487,12 +15492,12 @@ var E = /*#__PURE__*/function (_ns) {
15487
15492
  return li.focusFromParentElement(_this96._elementRef);
15488
15493
  }, _this96.refreshMessages = function () {}, _this96.scrollToBottom = function () {}, _this96.disableSubmitButton = function () {}, _this96.setPlaceholderText = function () {}, _this96._hasBeenRendered = !1, _this96._auxiliaryStyleApplied = !1, _this96._elementRef = document.createElement("div"), _this96._elementRef.id = "container", _this96.attachShadow({
15489
15494
  mode: "open"
15490
- }).appendChild(_this96._elementRef), Ht.apply(La, _this96.shadowRoot), setTimeout(function () {
15495
+ }).appendChild(_this96._elementRef), Ht.apply(ka, _this96.shadowRoot), setTimeout(function () {
15491
15496
  _this96._hasBeenRendered || _this96.onRender();
15492
15497
  }, 20);
15493
15498
  return _this96;
15494
15499
  }
15495
- _inherits(E, _ns);
15500
+ _inherits(E, _ss);
15496
15501
  return _createClass(E, [{
15497
15502
  key: "changeToChatView",
15498
15503
  value: function changeToChatView() {
@@ -15503,7 +15508,7 @@ var E = /*#__PURE__*/function (_ns) {
15503
15508
  key: "onRender",
15504
15509
  value: function onRender() {
15505
15510
  var _this$_childElement;
15506
- vi.attemptAppendStyleSheetToHead(this.style), se.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Zo.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Ht.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Ht.applyDefaultStyleToComponent(this.style, this.chatStyle), se.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? bi.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof $) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], Ms.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof $ && W.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered || Ei.onRender(this), this._hasBeenRendered = !0;
15511
+ vi.attemptAppendStyleSheetToHead(this.style), se.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Yo.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Ht.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Ht.applyDefaultStyleToComponent(this.style, this.chatStyle), se.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? bi.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof $) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], Rs.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof $ && W.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered || Ei.onRender(this), this._hasBeenRendered = !0;
15507
15512
  }
15508
15513
  }, {
15509
15514
  key: "disconnectedCallback",
@@ -15511,7 +15516,7 @@ var E = /*#__PURE__*/function (_ns) {
15511
15516
  si.chat = void 0;
15512
15517
  }
15513
15518
  }]);
15514
- }(ns);
15519
+ }(ss);
15515
15520
  x([_("object")], E.prototype, "connect");
15516
15521
  x([_("object")], E.prototype, "directConnection");
15517
15522
  x([_("object")], E.prototype, "webModel");