deep-chat-dev 9.0.229 → 9.0.230

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 qn = /*#__PURE__*/function () {
35
- function qn() {
36
- _classCallCheck(this, qn);
34
+ var zn = /*#__PURE__*/function () {
35
+ function zn() {
36
+ _classCallCheck(this, zn);
37
37
  }
38
- return _createClass(qn, null, [{
38
+ return _createClass(zn, null, [{
39
39
  key: "render",
40
40
  value: function render(e, t) {
41
41
  var i = document.createElement("div");
@@ -64,7 +64,7 @@ var vi = /*#__PURE__*/function () {
64
64
  var s = vi.createElements(),
65
65
  r = {
66
66
  onSuccess: t,
67
- onFail: qn.render.bind(this, e, "Your 'key' has failed authentication"),
67
+ onFail: zn.render.bind(this, e, "Your 'key' has failed authentication"),
68
68
  onLoad: vi.onLoad.bind(this, s)
69
69
  };
70
70
  i.key && i.verifyKey(i.key, r), e.replaceChildren(s);
@@ -251,11 +251,11 @@ var Ze = /*#__PURE__*/function () {
251
251
  }();
252
252
  Ze.PERMITTED_KEYS = /* @__PURE__ */new Set([F.BACKSPACE, F.DELETE, F.ARROW_RIGHT, F.ARROW_LEFT, F.ARROW_DOWN, F.ARROW_UP, F.META, F.CONTROL, F.ENTER]);
253
253
  var ms = Ze;
254
- var zn = /*#__PURE__*/function () {
255
- function zn() {
256
- _classCallCheck(this, zn);
254
+ var Gn = /*#__PURE__*/function () {
255
+ function Gn() {
256
+ _classCallCheck(this, Gn);
257
257
  }
258
- return _createClass(zn, null, [{
258
+ return _createClass(Gn, null, [{
259
259
  key: "sanitizePastedTextContent",
260
260
  value: function sanitizePastedTextContent(e) {
261
261
  var i, s;
@@ -307,7 +307,7 @@ var Xe = /*#__PURE__*/function () {
307
307
  (t = this._config.styles) != null && t.focus && (e.onfocus = function () {
308
308
  var s;
309
309
  return Object.assign(_this2.elementRef.style, (s = _this2._config.styles) == null ? void 0 : s.focus);
310
- }, 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", zn.sanitizePastedTextContent);
310
+ }, 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", Gn.sanitizePastedTextContent);
311
311
  }
312
312
  }, {
313
313
  key: "onBlur",
@@ -390,39 +390,39 @@ var ni = /*#__PURE__*/function () {
390
390
  }
391
391
  }]);
392
392
  }();
393
- function Ws(n) {
393
+ function Js(n) {
394
394
  return n.charAt(0).toUpperCase() + n.slice(1);
395
395
  }
396
- function Gn(n) {
396
+ function Vn(n) {
397
397
  return n && JSON.stringify(n);
398
398
  }
399
- function Ns(n, e, t, i) {
400
- var s = "\n".concat(Ws(e), " message: ").concat(JSON.stringify(n), " \n"),
401
- r = t ? "".concat(Ws(e), " message after interceptor: ").concat(Gn(i), " \n") : "";
399
+ function Bs(n, e, t, i) {
400
+ var s = "\n".concat(Js(e), " message: ").concat(JSON.stringify(n), " \n"),
401
+ r = t ? "".concat(Js(e), " message after interceptor: ").concat(Vn(i), " \n") : "";
402
402
  return s + r;
403
403
  }
404
- function Vn(n, e, t, i) {
405
- return "".concat(Ns(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");
404
+ function $n(n, e, t, i) {
405
+ 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");
406
406
  }
407
- function $n(n, e, t) {
407
+ function Kn(n, e, t) {
408
408
  var i = "response";
409
- return "".concat(Ns(n, i, e, t), "Make sure the ").concat(i, " message is using the {text: string} format, e.g: {text: \"Model Response\"}");
409
+ return "".concat(Bs(n, i, e, t), "Make sure the ").concat(i, " message is using the {text: string} format, e.g: {text: \"Model Response\"}");
410
410
  }
411
- function Kn(n, e) {
411
+ function Wn(n, e) {
412
412
  var t = "request";
413
- return "".concat(Ns(n, t, e), "Make sure the ").concat(t, " message is using the {body: {text: string}} format, e.g: {body: {text: \"Model Response\"}}");
413
+ 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\"}}");
414
414
  }
415
- var Js = "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",
415
+ var Ys = "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
416
  k = {
417
417
  INVALID_KEY: "Invalid API Key",
418
418
  CONNECTION_FAILED: "Failed to connect",
419
- INVALID_RESPONSE: Vn,
420
- INVALID_MODEL_REQUEST: Kn,
421
- INVALID_MODEL_RESPONSE: $n,
419
+ INVALID_RESPONSE: $n,
420
+ INVALID_MODEL_REQUEST: Wn,
421
+ INVALID_MODEL_RESPONSE: Kn,
422
422
  INVALID_STREAM_ARRAY_RESPONSE: "Multi-response arrays are not supported for streaming",
423
- INVALID_STREAM_EVENT: Js,
423
+ INVALID_STREAM_EVENT: Ys,
424
424
  INVALID_STREAM_EVENT_MIX: "Cannot mix {text: string} and {html: string} responses.",
425
- NO_VALID_STREAM_EVENTS_SENT: "No valid stream events were sent.\n".concat(Js)
425
+ NO_VALID_STREAM_EVENTS_SENT: "No valid stream events were sent.\n".concat(Ys)
426
426
  },
427
427
  qi = /*#__PURE__*/function () {
428
428
  function qi() {
@@ -471,7 +471,7 @@ var Js = "Make sure the events are using {text: string} or {html: string} format
471
471
  }]);
472
472
  }();
473
473
  qi.CODE_SNIPPET_GENERATION_JUMP = 0.5;
474
- var Y = qi;
474
+ var Z = qi;
475
475
  var zi = /*#__PURE__*/function () {
476
476
  function zi() {
477
477
  _classCallCheck(this, zi);
@@ -640,11 +640,11 @@ var ue = /*#__PURE__*/function () {
640
640
  }();
641
641
  ue.DEFAULT_FILE_NAME = "file", ue.FILE_BUBBLE_CLASS = "file-message";
642
642
  var q = ue;
643
- var ie = /*#__PURE__*/function () {
644
- function ie() {
645
- _classCallCheck(this, ie);
643
+ var se = /*#__PURE__*/function () {
644
+ function se() {
645
+ _classCallCheck(this, se);
646
646
  }
647
- return _createClass(ie, null, [{
647
+ return _createClass(se, null, [{
648
648
  key: "checkForContainerStyles",
649
649
  value: function checkForContainerStyles(e, t) {
650
650
  var i = e.containerStyle;
@@ -766,8 +766,8 @@ var it = /*#__PURE__*/function () {
766
766
  }
767
767
  }]);
768
768
  }();
769
- var Wn = "deep-chat-temporary-message",
770
- Jn = "deep-chat-suggestion-button",
769
+ var Jn = "deep-chat-temporary-message",
770
+ Yn = "deep-chat-suggestion-button",
771
771
  gs = {
772
772
  "deep-chat-button": {
773
773
  styles: {
@@ -789,7 +789,7 @@ var Wn = "deep-chat-temporary-message",
789
789
  }
790
790
  }
791
791
  },
792
- Ys = Object.keys(gs);
792
+ Zs = Object.keys(gs);
793
793
  var Fe = /*#__PURE__*/function () {
794
794
  function Fe() {
795
795
  _classCallCheck(this, Fe);
@@ -810,12 +810,12 @@ var Fe = /*#__PURE__*/function () {
810
810
  key: "isElementTemporary",
811
811
  value: function isElementTemporary(e) {
812
812
  var t;
813
- return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(Wn) : !1;
813
+ return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(Jn) : !1;
814
814
  }
815
815
  }, {
816
816
  key: "doesElementContainDeepChatClass",
817
817
  value: function doesElementContainDeepChatClass(e) {
818
- return Ys.find(function (t) {
818
+ return Zs.find(function (t) {
819
819
  return e.classList.contains(t);
820
820
  });
821
821
  }
@@ -846,14 +846,14 @@ var Fe = /*#__PURE__*/function () {
846
846
  }, {
847
847
  key: "applyDeepChatUtilities",
848
848
  value: function applyDeepChatUtilities(e, t, i) {
849
- Ys.forEach(function (r) {
849
+ Zs.forEach(function (r) {
850
850
  var o = i.getElementsByClassName(r);
851
851
  Array.from(o || []).forEach(function (a) {
852
852
  var l = Fe.getProcessedStyles(t, a, r);
853
853
  le.applyStylesToElement(a, l), Fe.applyEvents(a, r);
854
854
  });
855
855
  });
856
- var s = i.getElementsByClassName(Jn);
856
+ var s = i.getElementsByClassName(Yn);
857
857
  Array.from(s).forEach(function (r) {
858
858
  return Fe.applySuggestionEvent(e, r);
859
859
  });
@@ -936,7 +936,7 @@ var Ie = /*#__PURE__*/function () {
936
936
  }, {
937
937
  key: "overwriteElements",
938
938
  value: function overwriteElements(e, t, i) {
939
- i.bubbleElement.innerHTML = t, le.apply(e, i.outerContainer), ie.flagHTMLUpdateClass(i.bubbleElement);
939
+ i.bubbleElement.innerHTML = t, le.apply(e, i.outerContainer), se.flagHTMLUpdateClass(i.bubbleElement);
940
940
  }
941
941
  // prettier-ignore
942
942
  }, {
@@ -952,7 +952,7 @@ var Ie = /*#__PURE__*/function () {
952
952
  var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
953
953
  var o;
954
954
  var r = Ie.createElements(e, t, i, s);
955
- return v.fillEmptyMessageElement(r.bubbleElement, t), le.apply(e, r.outerContainer), ie.flagHTMLUpdateClass(r.bubbleElement), e.applyCustomStyles(r, i, !1, (o = e.messageStyles) == null ? void 0 : o.html), r;
955
+ return v.fillEmptyMessageElement(r.bubbleElement, t), le.apply(e, r.outerContainer), se.flagHTMLUpdateClass(r.bubbleElement), e.applyCustomStyles(r, i, !1, (o = e.messageStyles) == null ? void 0 : o.html), r;
956
956
  }
957
957
  // prettier-ignore
958
958
  }, {
@@ -972,14 +972,14 @@ var Ie = /*#__PURE__*/function () {
972
972
  Ie.HTML_BUBBLE_CLASS = "html-message";
973
973
  var Ae = Ie;
974
974
  var ui;
975
- function Tn(n) {
975
+ function Mn(n) {
976
976
  return ui = ui || document.createElement("textarea"), ui.innerHTML = "&" + n + ";", ui.value;
977
977
  }
978
- var Yn = Object.prototype.hasOwnProperty;
979
- function Zn(n, e) {
980
- return n ? Yn.call(n, e) : !1;
978
+ var Zn = Object.prototype.hasOwnProperty;
979
+ function Xn(n, e) {
980
+ return n ? Zn.call(n, e) : !1;
981
981
  }
982
- function Cn(n) {
982
+ function kn(n) {
983
983
  var e = [].slice.call(arguments, 1);
984
984
  return e.forEach(function (t) {
985
985
  if (t) {
@@ -990,11 +990,11 @@ function Cn(n) {
990
990
  }
991
991
  }), n;
992
992
  }
993
- var Xn = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
993
+ var Qn = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
994
994
  function Jt(n) {
995
- return n.indexOf("\\") < 0 ? n : n.replace(Xn, "$1");
995
+ return n.indexOf("\\") < 0 ? n : n.replace(Qn, "$1");
996
996
  }
997
- function Mn(n) {
997
+ function Rn(n) {
998
998
  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);
999
999
  }
1000
1000
  function bs(n) {
@@ -1006,29 +1006,29 @@ function bs(n) {
1006
1006
  }
1007
1007
  return String.fromCharCode(n);
1008
1008
  }
1009
- var Qn = /&([a-z#][a-z0-9]{1,31});/gi,
1010
- er = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1011
- function tr(n, e) {
1009
+ var er = /&([a-z#][a-z0-9]{1,31});/gi,
1010
+ tr = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1011
+ function ir(n, e) {
1012
1012
  var t = 0,
1013
- i = Tn(e);
1014
- return e !== i ? i : e.charCodeAt(0) === 35 && er.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Mn(t)) ? bs(t) : n;
1013
+ i = Mn(e);
1014
+ return e !== i ? i : e.charCodeAt(0) === 35 && tr.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Rn(t)) ? bs(t) : n;
1015
1015
  }
1016
1016
  function ot(n) {
1017
- return n.indexOf("&") < 0 ? n : n.replace(Qn, tr);
1017
+ return n.indexOf("&") < 0 ? n : n.replace(er, ir);
1018
1018
  }
1019
- var ir = /[&<>"]/,
1020
- sr = /[&<>"]/g,
1021
- nr = {
1019
+ var sr = /[&<>"]/,
1020
+ nr = /[&<>"]/g,
1021
+ rr = {
1022
1022
  "&": "&amp;",
1023
1023
  "<": "&lt;",
1024
1024
  ">": "&gt;",
1025
1025
  '"': "&quot;"
1026
1026
  };
1027
- function rr(n) {
1028
- return nr[n];
1027
+ function or(n) {
1028
+ return rr[n];
1029
1029
  }
1030
- function ee(n) {
1031
- return ir.test(n) ? n.replace(sr, rr) : n;
1030
+ function te(n) {
1031
+ return sr.test(n) ? n.replace(nr, or) : n;
1032
1032
  }
1033
1033
  var g = {};
1034
1034
  g.blockquote_open = function () {
@@ -1038,7 +1038,7 @@ g.blockquote_close = function (n, e) {
1038
1038
  return "</blockquote>" + lt(n, e);
1039
1039
  };
1040
1040
  g.code = function (n, e) {
1041
- return n[e].block ? "<pre><code>" + ee(n[e].content) + "</code></pre>" + lt(n, e) : "<code>" + ee(n[e].content) + "</code>";
1041
+ return n[e].block ? "<pre><code>" + te(n[e].content) + "</code></pre>" + lt(n, e) : "<code>" + te(n[e].content) + "</code>";
1042
1042
  };
1043
1043
  g.fence = function (n, e, t, i, s) {
1044
1044
  var r = n[e],
@@ -1049,10 +1049,10 @@ g.fence = function (n, e, t, i, s) {
1049
1049
  d,
1050
1050
  h;
1051
1051
  if (r.params) {
1052
- if (c = r.params.split(/\s+/g), d = c.join(" "), Zn(s.rules.fence_custom, c[0])) return s.rules.fence_custom[c[0]](n, e, t, i, s);
1053
- l = ee(ot(Jt(d))), o = ' class="' + a + l + '"';
1052
+ if (c = r.params.split(/\s+/g), d = c.join(" "), Xn(s.rules.fence_custom, c[0])) return s.rules.fence_custom[c[0]](n, e, t, i, s);
1053
+ l = te(ot(Jt(d))), o = ' class="' + a + l + '"';
1054
1054
  }
1055
- return t.highlight ? h = t.highlight.apply(t.highlight, [r.content].concat(c)) || ee(r.content) : h = ee(r.content), "<pre><code" + o + ">" + h + "</code></pre>" + lt(n, e);
1055
+ return t.highlight ? h = t.highlight.apply(t.highlight, [r.content].concat(c)) || te(r.content) : h = te(r.content), "<pre><code" + o + ">" + h + "</code></pre>" + lt(n, e);
1056
1056
  };
1057
1057
  g.fence_custom = {};
1058
1058
  g.heading_open = function (n, e) {
@@ -1092,17 +1092,17 @@ g.paragraph_close = function (n, e) {
1092
1092
  return (n[e].tight ? "" : "</p>") + (t ? lt(n, e) : "");
1093
1093
  };
1094
1094
  g.link_open = function (n, e, t) {
1095
- var i = n[e].title ? ' title="' + ee(ot(n[e].title)) + '"' : "",
1095
+ var i = n[e].title ? ' title="' + te(ot(n[e].title)) + '"' : "",
1096
1096
  s = t.linkTarget ? ' target="' + t.linkTarget + '"' : "";
1097
- return '<a href="' + ee(n[e].href) + '"' + i + s + ">";
1097
+ return '<a href="' + te(n[e].href) + '"' + i + s + ">";
1098
1098
  };
1099
1099
  g.link_close = function () {
1100
1100
  return "</a>";
1101
1101
  };
1102
1102
  g.image = function (n, e, t) {
1103
- var i = ' src="' + ee(n[e].src) + '"',
1104
- s = n[e].title ? ' title="' + ee(ot(n[e].title)) + '"' : "",
1105
- r = ' alt="' + (n[e].alt ? ee(ot(Jt(n[e].alt))) : "") + '"',
1103
+ var i = ' src="' + te(n[e].src) + '"',
1104
+ s = n[e].title ? ' title="' + te(ot(n[e].title)) + '"' : "",
1105
+ r = ' alt="' + (n[e].alt ? te(ot(Jt(n[e].alt))) : "") + '"',
1106
1106
  o = t.xhtmlOut ? " /" : "";
1107
1107
  return "<img" + i + r + s + o + ">";
1108
1108
  };
@@ -1175,10 +1175,10 @@ g.mark_close = function () {
1175
1175
  return "</mark>";
1176
1176
  };
1177
1177
  g.sub = function (n, e) {
1178
- return "<sub>" + ee(n[e].content) + "</sub>";
1178
+ return "<sub>" + te(n[e].content) + "</sub>";
1179
1179
  };
1180
1180
  g.sup = function (n, e) {
1181
- return "<sup>" + ee(n[e].content) + "</sup>";
1181
+ return "<sup>" + te(n[e].content) + "</sup>";
1182
1182
  };
1183
1183
  g.hardbreak = function (n, e, t) {
1184
1184
  return t.xhtmlOut ? "<br />\n" : "<br>\n";
@@ -1187,7 +1187,7 @@ g.softbreak = function (n, e, t) {
1187
1187
  return t.breaks ? t.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
1188
1188
  };
1189
1189
  g.text = function (n, e) {
1190
- return ee(n[e].content);
1190
+ return te(n[e].content);
1191
1191
  };
1192
1192
  g.htmlblock = function (n, e) {
1193
1193
  return n[e].content;
@@ -1196,7 +1196,7 @@ g.htmltag = function (n, e) {
1196
1196
  return n[e].content;
1197
1197
  };
1198
1198
  g.abbr_open = function (n, e) {
1199
- return '<abbr title="' + ee(ot(n[e].title)) + '">';
1199
+ return '<abbr title="' + te(ot(n[e].title)) + '">';
1200
1200
  };
1201
1201
  g.abbr_close = function () {
1202
1202
  return "</abbr>";
@@ -1243,20 +1243,20 @@ g.dt_close = function () {
1243
1243
  g.dd_close = function () {
1244
1244
  return "</dd>\n";
1245
1245
  };
1246
- function kn(n, e) {
1247
- 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 ? kn(n, e + 2) : e;
1246
+ function Ln(n, e) {
1247
+ 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 ? Ln(n, e + 2) : e;
1248
1248
  }
1249
1249
  var lt = g.getBreak = function (e, t) {
1250
- return t = kn(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
1250
+ return t = Ln(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
1251
1251
  };
1252
- function Bs() {
1253
- this.rules = Cn({}, g), this.getBreak = g.getBreak;
1252
+ function Ds() {
1253
+ this.rules = kn({}, g), this.getBreak = g.getBreak;
1254
1254
  }
1255
- Bs.prototype.renderInline = function (n, e, t) {
1255
+ Ds.prototype.renderInline = function (n, e, t) {
1256
1256
  for (var i = this.rules, s = n.length, r = 0, o = ""; s--;) o += i[n[r].type](n, r++, e, t, this);
1257
1257
  return o;
1258
1258
  };
1259
- Bs.prototype.render = function (n, e, t) {
1259
+ Ds.prototype.render = function (n, e, t) {
1260
1260
  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);
1261
1261
  return o;
1262
1262
  };
@@ -1336,7 +1336,7 @@ ce.prototype.disable = function (n) {
1336
1336
  ce.prototype.getRules = function (n) {
1337
1337
  return this.__cache__ === null && this.__compile__(), this.__cache__[n] || [];
1338
1338
  };
1339
- function or(n) {
1339
+ function ar(n) {
1340
1340
  n.inlineMode ? n.tokens.push({
1341
1341
  type: "inline",
1342
1342
  content: n.src.replace(/\n/g, " ").trim(),
@@ -1384,13 +1384,13 @@ function Yt(n, e) {
1384
1384
  }
1385
1385
  return i ? (r = n.pos, n.labelUnmatchedScopes = 0) : n.labelUnmatchedScopes = t - 1, n.pos = a, n.isInLabel = l, r;
1386
1386
  }
1387
- function ar(n, e, t, i) {
1387
+ function lr(n, e, t, i) {
1388
1388
  var s, r, o, a, l, c;
1389
1389
  if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (s = new ct(n, e, t, i, []), r = Yt(s, 1), r < 0 || n.charCodeAt(r + 1) !== 58)) return -1;
1390
1390
  for (a = s.posMax, o = r + 2; o < a && s.src.charCodeAt(o) !== 10; o++);
1391
1391
  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);
1392
1392
  }
1393
- function lr(n) {
1393
+ function cr(n) {
1394
1394
  var e = n.tokens,
1395
1395
  t,
1396
1396
  i,
@@ -1398,7 +1398,7 @@ function lr(n) {
1398
1398
  r;
1399
1399
  if (!n.inlineMode) {
1400
1400
  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") {
1401
- for (s = e[t].content; s.length && (r = ar(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1401
+ for (s = e[t].content; s.length && (r = lr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1402
1402
  e[t].content = s, s.length || (e[t - 1].tight = !0, e[t + 1].tight = !0);
1403
1403
  }
1404
1404
  }
@@ -1410,7 +1410,7 @@ function vs(n) {
1410
1410
  } catch (_unused3) {}
1411
1411
  return encodeURI(e);
1412
1412
  }
1413
- function Rn(n, e) {
1413
+ function In(n, e) {
1414
1414
  var t,
1415
1415
  i,
1416
1416
  s,
@@ -1438,7 +1438,7 @@ function Rn(n, e) {
1438
1438
  }
1439
1439
  return r === e || (s = Jt(n.src.slice(r, e)), !n.parser.validateLink(s)) ? !1 : (n.linkContent = s, n.pos = e, !0);
1440
1440
  }
1441
- function Ln(n, e) {
1441
+ function Pn(n, e) {
1442
1442
  var t,
1443
1443
  i = e,
1444
1444
  s = n.posMax,
@@ -1454,22 +1454,22 @@ function Ln(n, e) {
1454
1454
  }
1455
1455
  return !1;
1456
1456
  }
1457
- function In(n) {
1457
+ function On(n) {
1458
1458
  return n.trim().replace(/\s+/g, " ").toUpperCase();
1459
1459
  }
1460
- function cr(n, e, t, i) {
1460
+ function dr(n, e, t, i) {
1461
1461
  var s, r, o, a, l, c, d, h, f;
1462
1462
  if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (s = new ct(n, e, t, i, []), r = Yt(s, 0), r < 0 || n.charCodeAt(r + 1) !== 58)) return -1;
1463
1463
  for (a = s.posMax, o = r + 2; o < a && (l = s.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++);
1464
- if (!Rn(s, o)) return -1;
1464
+ if (!In(s, o)) return -1;
1465
1465
  for (d = s.linkContent, o = s.pos, c = o, o = o + 1; o < a && (l = s.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++);
1466
- for (o < a && c !== o && Ln(s, o) ? (h = s.linkContent, o = s.pos) : (h = "", o = c); o < a && s.src.charCodeAt(o) === 32;) o++;
1467
- return o < a && s.src.charCodeAt(o) !== 10 ? -1 : (f = In(n.slice(1, r)), _typeof(i.references[f]) > "u" && (i.references[f] = {
1466
+ for (o < a && c !== o && Pn(s, o) ? (h = s.linkContent, o = s.pos) : (h = "", o = c); o < a && s.src.charCodeAt(o) === 32;) o++;
1467
+ return o < a && s.src.charCodeAt(o) !== 10 ? -1 : (f = On(n.slice(1, r)), _typeof(i.references[f]) > "u" && (i.references[f] = {
1468
1468
  title: h,
1469
1469
  href: d
1470
1470
  }), o);
1471
1471
  }
1472
- function dr(n) {
1472
+ function hr(n) {
1473
1473
  var e = n.tokens,
1474
1474
  t,
1475
1475
  i,
@@ -1477,19 +1477,19 @@ function dr(n) {
1477
1477
  r;
1478
1478
  if (n.env.references = n.env.references || {}, !n.inlineMode) {
1479
1479
  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") {
1480
- for (s = e[t].content; s.length && (r = cr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1480
+ for (s = e[t].content; s.length && (r = dr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1481
1481
  e[t].content = s, s.length || (e[t - 1].tight = !0, e[t + 1].tight = !0);
1482
1482
  }
1483
1483
  }
1484
1484
  }
1485
- function hr(n) {
1485
+ function ur(n) {
1486
1486
  var e = n.tokens,
1487
1487
  t,
1488
1488
  i,
1489
1489
  s;
1490
1490
  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);
1491
1491
  }
1492
- function ur(n) {
1492
+ function fr(n) {
1493
1493
  var e,
1494
1494
  t,
1495
1495
  i,
@@ -1543,11 +1543,11 @@ function ur(n) {
1543
1543
  });
1544
1544
  }
1545
1545
  }
1546
- var Zs = " \n()[]'\".,!?-";
1546
+ var Xs = " \n()[]'\".,!?-";
1547
1547
  function as(n) {
1548
1548
  return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
1549
1549
  }
1550
- function fr(n) {
1550
+ function pr(n) {
1551
1551
  var e,
1552
1552
  t,
1553
1553
  i,
@@ -1562,11 +1562,11 @@ function fr(n) {
1562
1562
  f,
1563
1563
  u = n.tokens;
1564
1564
  if (n.env.abbreviations) {
1565
- for (n.env.abbrRegExp || (f = "(^|[" + Zs.split("").map(as).join("") + "])(" + Object.keys(n.env.abbreviations).map(function (m) {
1565
+ for (n.env.abbrRegExp || (f = "(^|[" + Xs.split("").map(as).join("") + "])(" + Object.keys(n.env.abbreviations).map(function (m) {
1566
1566
  return m.substr(1);
1567
1567
  }).sort(function (m, p) {
1568
1568
  return p.length - m.length;
1569
- }).map(as).join("|") + ")($|[" + Zs.split("").map(as).join("") + "])", n.env.abbrRegExp = new RegExp(f, "g")), d = n.env.abbrRegExp, t = 0, i = u.length; t < i; t++) if (u[t].type === "inline") {
1569
+ }).map(as).join("|") + ")($|[" + Xs.split("").map(as).join("") + "])", n.env.abbrRegExp = new RegExp(f, "g")), d = n.env.abbrRegExp, t = 0, i = u.length; t < i; t++) if (u[t].type === "inline") {
1570
1570
  for (s = u[t].children, e = s.length - 1; e >= 0; e--) if (r = s[e], r.type === "text") {
1571
1571
  for (l = 0, o = r.content, d.lastIndex = 0, c = r.level, a = []; h = d.exec(o);) d.lastIndex > l && a.push({
1572
1572
  type: "text",
@@ -1593,45 +1593,45 @@ function fr(n) {
1593
1593
  }
1594
1594
  }
1595
1595
  }
1596
- var pr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
1597
- mr = /\((c|tm|r|p)\)/ig,
1598
- gr = {
1596
+ var mr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
1597
+ gr = /\((c|tm|r|p)\)/ig,
1598
+ br = {
1599
1599
  c: "©",
1600
1600
  r: "®",
1601
1601
  p: "§",
1602
1602
  tm: "™"
1603
1603
  };
1604
- function br(n) {
1605
- return n.indexOf("(") < 0 ? n : n.replace(mr, function (e, t) {
1606
- return gr[t.toLowerCase()];
1604
+ function vr(n) {
1605
+ return n.indexOf("(") < 0 ? n : n.replace(gr, function (e, t) {
1606
+ return br[t.toLowerCase()];
1607
1607
  });
1608
1608
  }
1609
- function vr(n) {
1609
+ function yr(n) {
1610
1610
  var e, t, i, s, r;
1611
1611
  if (n.options.typographer) {
1612
- 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 = br(i), pr.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);
1612
+ 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 = vr(i), mr.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
1613
  }
1614
1614
  }
1615
- var yr = /['"]/,
1616
- Xs = /['"]/g,
1617
- Er = /[-\s()\[\]]/,
1618
- Qs = "’";
1619
- function en(n, e) {
1620
- return e < 0 || e >= n.length ? !1 : !Er.test(n[e]);
1615
+ var Er = /['"]/,
1616
+ Qs = /['"]/g,
1617
+ Sr = /[-\s()\[\]]/,
1618
+ en = "’";
1619
+ function tn(n, e) {
1620
+ return e < 0 || e >= n.length ? !1 : !Sr.test(n[e]);
1621
1621
  }
1622
1622
  function pt(n, e, t) {
1623
1623
  return n.substr(0, e) + t + n.substr(e + 1);
1624
1624
  }
1625
- function Sr(n) {
1625
+ function _r(n) {
1626
1626
  var e, t, i, s, r, o, a, l, c, d, h, f, u, m, p, b, y;
1627
1627
  if (n.options.typographer) {
1628
1628
  for (y = [], p = n.tokens.length - 1; p >= 0; p--) if (n.tokens[p].type === "inline") {
1629
- for (b = n.tokens[p].children, y.length = 0, e = 0; e < b.length; e++) if (t = b[e], !(t.type !== "text" || yr.test(t.text))) {
1629
+ for (b = n.tokens[p].children, y.length = 0, e = 0; e < b.length; e++) if (t = b[e], !(t.type !== "text" || Er.test(t.text))) {
1630
1630
  for (a = b[e].level, u = y.length - 1; u >= 0 && !(y[u].level <= a); u--);
1631
1631
  y.length = u + 1, i = t.content, r = 0, o = i.length;
1632
- e: for (; r < o && (Xs.lastIndex = r, s = Xs.exec(i), !!s);) {
1633
- if (l = !en(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !en(i, r), !c && !l) {
1634
- m && (t.content = pt(t.content, s.index, Qs));
1632
+ e: for (; r < o && (Qs.lastIndex = r, s = Qs.exec(i), !!s);) {
1633
+ if (l = !tn(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !tn(i, r), !c && !l) {
1634
+ m && (t.content = pt(t.content, s.index, en));
1635
1635
  continue;
1636
1636
  }
1637
1637
  if (h = !c, f = !l, f) {
@@ -1645,18 +1645,18 @@ function Sr(n) {
1645
1645
  pos: s.index,
1646
1646
  single: m,
1647
1647
  level: a
1648
- }) : f && m && (t.content = pt(t.content, s.index, Qs));
1648
+ }) : f && m && (t.content = pt(t.content, s.index, en));
1649
1649
  }
1650
1650
  }
1651
1651
  }
1652
1652
  }
1653
1653
  }
1654
- var ls = [["block", or], ["abbr", lr], ["references", dr], ["inline", hr], ["footnote_tail", ur], ["abbr2", fr], ["replacements", vr], ["smartquotes", Sr]];
1655
- function Pn() {
1654
+ var ls = [["block", ar], ["abbr", cr], ["references", hr], ["inline", ur], ["footnote_tail", fr], ["abbr2", pr], ["replacements", yr], ["smartquotes", _r]];
1655
+ function Nn() {
1656
1656
  this.options = {}, this.ruler = new ce();
1657
1657
  for (var n = 0; n < ls.length; n++) this.ruler.push(ls[n][0], ls[n][1]);
1658
1658
  }
1659
- Pn.prototype.process = function (n) {
1659
+ Nn.prototype.process = function (n) {
1660
1660
  var e, t, i;
1661
1661
  for (i = this.ruler.getRules(""), e = 0, t = i.length; e < t; e++) i[e](n);
1662
1662
  };
@@ -1703,7 +1703,7 @@ dt.prototype.getLines = function (e, t, i, s) {
1703
1703
  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);
1704
1704
  return l.join("");
1705
1705
  };
1706
- function _r(n, e, t) {
1706
+ function xr(n, e, t) {
1707
1707
  var i, s;
1708
1708
  if (n.tShift[e] - n.blkIndent < 4) return !1;
1709
1709
  for (s = i = e + 1; i < t;) {
@@ -1725,7 +1725,7 @@ function _r(n, e, t) {
1725
1725
  level: n.level
1726
1726
  }), !0;
1727
1727
  }
1728
- function xr(n, e, t, i) {
1728
+ function wr(n, e, t, i) {
1729
1729
  var s,
1730
1730
  r,
1731
1731
  o,
@@ -1748,7 +1748,7 @@ function xr(n, e, t, i) {
1748
1748
  level: n.level
1749
1749
  }), !0;
1750
1750
  }
1751
- function wr(n, e, t, i) {
1751
+ function Ar(n, e, t, i) {
1752
1752
  var s,
1753
1753
  r,
1754
1754
  o,
@@ -1787,7 +1787,7 @@ function wr(n, e, t, i) {
1787
1787
  }), n.parentType = c, d[1] = n.line, f = 0; f < o.length; f++) n.bMarks[f + e] = a[f], n.tShift[f + e] = o[f];
1788
1788
  return n.blkIndent = l, !0;
1789
1789
  }
1790
- function Ar(n, e, t, i) {
1790
+ function Tr(n, e, t, i) {
1791
1791
  var s,
1792
1792
  r,
1793
1793
  o,
@@ -1804,11 +1804,11 @@ function Ar(n, e, t, i) {
1804
1804
  level: n.level
1805
1805
  })), !0);
1806
1806
  }
1807
- function tn(n, e) {
1807
+ function sn(n, e) {
1808
1808
  var t, i, s;
1809
1809
  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;
1810
1810
  }
1811
- function sn(n, e) {
1811
+ function nn(n, e) {
1812
1812
  var t,
1813
1813
  i = n.bMarks[e] + n.tShift[e],
1814
1814
  s = n.eMarks[e];
@@ -1822,13 +1822,13 @@ function sn(n, e) {
1822
1822
  }
1823
1823
  return i < s && n.src.charCodeAt(i) !== 32 ? -1 : i;
1824
1824
  }
1825
- function Tr(n, e) {
1825
+ function Cr(n, e) {
1826
1826
  var t,
1827
1827
  i,
1828
1828
  s = n.level + 2;
1829
1829
  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);
1830
1830
  }
1831
- function Cr(n, e, t, i) {
1831
+ function Mr(n, e, t, i) {
1832
1832
  var s,
1833
1833
  r,
1834
1834
  o,
@@ -1844,15 +1844,15 @@ function Cr(n, e, t, i) {
1844
1844
  b,
1845
1845
  y,
1846
1846
  N,
1847
- Z,
1847
+ X,
1848
1848
  Re,
1849
1849
  O,
1850
- se = !0,
1851
- ne,
1850
+ ne = !0,
1851
+ re,
1852
1852
  j,
1853
1853
  $e,
1854
1854
  Pt;
1855
- if ((h = sn(n, e)) >= 0) b = !0;else if ((h = tn(n, e)) >= 0) b = !1;else return !1;
1855
+ if ((h = nn(n, e)) >= 0) b = !0;else if ((h = sn(n, e)) >= 0) b = !1;else return !1;
1856
1856
  if (n.level >= n.options.maxNesting) return !1;
1857
1857
  if (p = n.src.charCodeAt(h - 1), i) return !0;
1858
1858
  for (N = n.tokens.length, b ? (d = n.bMarks[e] + n.tShift[e], m = Number(n.src.substr(d, h - d - 1)), n.tokens.push({
@@ -1864,30 +1864,30 @@ function Cr(n, e, t, i) {
1864
1864
  type: "bullet_list_open",
1865
1865
  lines: Re = [e, 0],
1866
1866
  level: n.level++
1867
- }), s = e, Z = !1, ne = n.parser.ruler.getRules("list"); s < t && (y = n.skipSpaces(h), f = n.eMarks[s], y >= f ? u = 1 : u = y - h, u > 4 && (u = 1), u < 1 && (u = 1), r = h - n.bMarks[s] + u, n.tokens.push({
1867
+ }), s = e, X = !1, re = n.parser.ruler.getRules("list"); s < t && (y = n.skipSpaces(h), f = n.eMarks[s], y >= f ? u = 1 : u = y - h, u > 4 && (u = 1), u < 1 && (u = 1), r = h - n.bMarks[s] + u, n.tokens.push({
1868
1868
  type: "list_item_open",
1869
1869
  lines: O = [e, 0],
1870
1870
  level: n.level++
1871
- }), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] = y - n.bMarks[e], n.blkIndent = r, n.tight = !0, n.parentType = "list", n.parser.tokenize(n, e, t, !0), (!n.tight || Z) && (se = !1), Z = n.line - e > 1 && n.isEmpty(n.line - 1), n.blkIndent = a, n.tShift[e] = o, n.tight = l, n.parentType = c, n.tokens.push({
1871
+ }), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] = y - n.bMarks[e], n.blkIndent = r, n.tight = !0, n.parentType = "list", n.parser.tokenize(n, e, t, !0), (!n.tight || X) && (ne = !1), X = n.line - e > 1 && n.isEmpty(n.line - 1), n.blkIndent = a, n.tShift[e] = o, n.tight = l, n.parentType = c, n.tokens.push({
1872
1872
  type: "list_item_close",
1873
1873
  level: --n.level
1874
1874
  }), s = e = n.line, O[1] = s, y = n.bMarks[e], !(s >= t || n.isEmpty(s) || n.tShift[s] < n.blkIndent));) {
1875
- for (Pt = !1, j = 0, $e = ne.length; j < $e; j++) if (ne[j](n, s, t, !0)) {
1875
+ for (Pt = !1, j = 0, $e = re.length; j < $e; j++) if (re[j](n, s, t, !0)) {
1876
1876
  Pt = !0;
1877
1877
  break;
1878
1878
  }
1879
1879
  if (Pt) break;
1880
1880
  if (b) {
1881
- if (h = sn(n, s), h < 0) break;
1882
- } else if (h = tn(n, s), h < 0) break;
1881
+ if (h = nn(n, s), h < 0) break;
1882
+ } else if (h = sn(n, s), h < 0) break;
1883
1883
  if (p !== n.src.charCodeAt(h - 1)) break;
1884
1884
  }
1885
1885
  return n.tokens.push({
1886
1886
  type: b ? "ordered_list_close" : "bullet_list_close",
1887
1887
  level: --n.level
1888
- }), Re[1] = s, n.line = s, se && Tr(n, N), !0;
1888
+ }), Re[1] = s, n.line = s, ne && Cr(n, N), !0;
1889
1889
  }
1890
- function Mr(n, e, t, i) {
1890
+ function kr(n, e, t, i) {
1891
1891
  var s,
1892
1892
  r,
1893
1893
  o,
@@ -1909,7 +1909,7 @@ function Mr(n, e, t, i) {
1909
1909
  level: --n.level
1910
1910
  })), !0);
1911
1911
  }
1912
- function kr(n, e, t, i) {
1912
+ function Rr(n, e, t, i) {
1913
1913
  var s,
1914
1914
  r,
1915
1915
  o,
@@ -1934,7 +1934,7 @@ function kr(n, e, t, i) {
1934
1934
  level: n.level
1935
1935
  })), !0);
1936
1936
  }
1937
- function Rr(n, e, t) {
1937
+ function Lr(n, e, t) {
1938
1938
  var i,
1939
1939
  s,
1940
1940
  r,
@@ -1956,17 +1956,17 @@ function Rr(n, e, t) {
1956
1956
  level: n.level
1957
1957
  }), !0);
1958
1958
  }
1959
- var On = {};
1959
+ var Bn = {};
1960
1960
  ["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) {
1961
- On[n] = !0;
1961
+ Bn[n] = !0;
1962
1962
  });
1963
- var Lr = /^<([a-zA-Z]{1,15})[\s\/>]/,
1964
- Ir = /^<\/([a-zA-Z]{1,15})[\s>]/;
1965
- function Pr(n) {
1963
+ var Ir = /^<([a-zA-Z]{1,15})[\s\/>]/,
1964
+ Pr = /^<\/([a-zA-Z]{1,15})[\s>]/;
1965
+ function Or(n) {
1966
1966
  var e = n | 32;
1967
1967
  return e >= 97 && e <= 122;
1968
1968
  }
1969
- function Or(n, e, t, i) {
1969
+ function Nr(n, e, t, i) {
1970
1970
  var s,
1971
1971
  r,
1972
1972
  o,
@@ -1976,11 +1976,11 @@ function Or(n, e, t, i) {
1976
1976
  if (a += c, !n.options.html || c > 3 || a + 2 >= l || n.src.charCodeAt(a) !== 60) return !1;
1977
1977
  if (s = n.src.charCodeAt(a + 1), s === 33 || s === 63) {
1978
1978
  if (i) return !0;
1979
- } else if (s === 47 || Pr(s)) {
1979
+ } else if (s === 47 || Or(s)) {
1980
1980
  if (s === 47) {
1981
- if (r = n.src.slice(a, l).match(Ir), !r) return !1;
1982
- } else if (r = n.src.slice(a, l).match(Lr), !r) return !1;
1983
- if (On[r[1].toLowerCase()] !== !0) return !1;
1981
+ if (r = n.src.slice(a, l).match(Pr), !r) return !1;
1982
+ } else if (r = n.src.slice(a, l).match(Ir), !r) return !1;
1983
+ if (Bn[r[1].toLowerCase()] !== !0) return !1;
1984
1984
  if (i) return !0;
1985
1985
  } else return !1;
1986
1986
  for (o = e + 1; o < n.lineMax && !n.isEmpty(o);) o++;
@@ -1996,7 +1996,7 @@ function cs(n, e) {
1996
1996
  i = n.eMarks[e];
1997
1997
  return n.src.substr(t, i - t);
1998
1998
  }
1999
- function Nr(n, e, t, i) {
1999
+ function Br(n, e, t, i) {
2000
2000
  var s, r, o, a, l, c, d, h, f, u, m;
2001
2001
  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 = cs(n, e + 1), !/^[-:| ]+$/.test(r)) || (c = r.split("|"), c <= 2)) return !1;
2002
2002
  for (h = [], a = 0; a < c.length; a++) {
@@ -2083,13 +2083,13 @@ function fi(n, e) {
2083
2083
  r = n.eMarks[e];
2084
2084
  return s >= r || (i = n.src.charCodeAt(s++), i !== 126 && i !== 58) || (t = n.skipSpaces(s), s === t) || t >= r ? -1 : t;
2085
2085
  }
2086
- function Br(n, e) {
2086
+ function Dr(n, e) {
2087
2087
  var t,
2088
2088
  i,
2089
2089
  s = n.level + 2;
2090
2090
  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);
2091
2091
  }
2092
- function Dr(n, e, t, i) {
2092
+ function Fr(n, e, t, i) {
2093
2093
  var s, r, o, a, l, c, d, h, f, u, m, p, b, y;
2094
2094
  if (i) return n.ddIndent < 0 ? !1 : fi(n, e) >= 0;
2095
2095
  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;
@@ -2129,9 +2129,9 @@ function Dr(n, e, t, i) {
2129
2129
  return n.tokens.push({
2130
2130
  type: "dl_close",
2131
2131
  level: --n.level
2132
- }), l[1] = d, n.line = d, y && Br(n, c), !0;
2132
+ }), l[1] = d, n.line = d, y && Dr(n, c), !0;
2133
2133
  }
2134
- function Fr(n, e) {
2134
+ function Ur(n, e) {
2135
2135
  var t,
2136
2136
  i,
2137
2137
  s,
@@ -2165,14 +2165,14 @@ function Fr(n, e) {
2165
2165
  level: n.level
2166
2166
  })), !0;
2167
2167
  }
2168
- var pi = [["code", _r], ["fences", xr, ["paragraph", "blockquote", "list"]], ["blockquote", wr, ["paragraph", "blockquote", "list"]], ["hr", Ar, ["paragraph", "blockquote", "list"]], ["list", Cr, ["paragraph", "blockquote"]], ["footnote", Mr, ["paragraph"]], ["heading", kr, ["paragraph", "blockquote"]], ["lheading", Rr], ["htmlblock", Or, ["paragraph", "blockquote"]], ["table", Nr, ["paragraph"]], ["deflist", Dr, ["paragraph"]], ["paragraph", Fr]];
2169
- function Ds() {
2168
+ var pi = [["code", xr], ["fences", wr, ["paragraph", "blockquote", "list"]], ["blockquote", Ar, ["paragraph", "blockquote", "list"]], ["hr", Tr, ["paragraph", "blockquote", "list"]], ["list", Mr, ["paragraph", "blockquote"]], ["footnote", kr, ["paragraph"]], ["heading", Rr, ["paragraph", "blockquote"]], ["lheading", Lr], ["htmlblock", Nr, ["paragraph", "blockquote"]], ["table", Br, ["paragraph"]], ["deflist", Fr, ["paragraph"]], ["paragraph", Ur]];
2169
+ function Fs() {
2170
2170
  this.ruler = new ce();
2171
2171
  for (var n = 0; n < pi.length; n++) this.ruler.push(pi[n][0], pi[n][1], {
2172
2172
  alt: (pi[n][2] || []).slice()
2173
2173
  });
2174
2174
  }
2175
- Ds.prototype.tokenize = function (n, e, t) {
2175
+ Fs.prototype.tokenize = function (n, e, t) {
2176
2176
  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));) {
2177
2177
  for (l = 0; l < s && (a = i[l](n, r, t, !1), !a); l++);
2178
2178
  if (n.tight = !o, n.isEmpty(n.line - 1) && (o = !0), r = n.line, r < t && n.isEmpty(r)) {
@@ -2181,20 +2181,20 @@ Ds.prototype.tokenize = function (n, e, t) {
2181
2181
  }
2182
2182
  }
2183
2183
  };
2184
- var Ur = /[\n\t]/g,
2185
- jr = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
2186
- Hr = /\u00a0/g;
2187
- Ds.prototype.parse = function (n, e, t, i) {
2184
+ var jr = /[\n\t]/g,
2185
+ Hr = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
2186
+ qr = /\u00a0/g;
2187
+ Fs.prototype.parse = function (n, e, t, i) {
2188
2188
  var s,
2189
2189
  r = 0,
2190
2190
  o = 0;
2191
2191
  if (!n) return [];
2192
- n = n.replace(Hr, " "), n = n.replace(jr, "\n"), n.indexOf(" ") >= 0 && (n = n.replace(Ur, function (a, l) {
2192
+ n = n.replace(qr, " "), n = n.replace(Hr, "\n"), n.indexOf(" ") >= 0 && (n = n.replace(jr, function (a, l) {
2193
2193
  var c;
2194
2194
  return n.charCodeAt(l) === 10 ? (r = l + 1, o = 0, a) : (c = " ".slice((l - r - o) % 4), o = l - r + 1, c);
2195
2195
  })), s = new dt(n, this, e, t, i), this.tokenize(s, s.line, s.lineMax);
2196
2196
  };
2197
- function qr(n) {
2197
+ function zr(n) {
2198
2198
  switch (n) {
2199
2199
  case 10:
2200
2200
  case 92:
@@ -2222,11 +2222,11 @@ function qr(n) {
2222
2222
  return !1;
2223
2223
  }
2224
2224
  }
2225
- function zr(n, e) {
2226
- for (var t = n.pos; t < n.posMax && !qr(n.src.charCodeAt(t));) t++;
2225
+ function Gr(n, e) {
2226
+ for (var t = n.pos; t < n.posMax && !zr(n.src.charCodeAt(t));) t++;
2227
2227
  return t === n.pos ? !1 : (e || (n.pending += n.src.slice(n.pos, t)), n.pos = t, !0);
2228
2228
  }
2229
- function Gr(n, e) {
2229
+ function Vr(n, e) {
2230
2230
  var t,
2231
2231
  i,
2232
2232
  s = n.pos;
@@ -2252,18 +2252,18 @@ function Gr(n, e) {
2252
2252
  for (s++; s < i && n.src.charCodeAt(s) === 32;) s++;
2253
2253
  return n.pos = s, !0;
2254
2254
  }
2255
- var Fs = [];
2256
- for (var nn = 0; nn < 256; nn++) Fs.push(0);
2255
+ var Us = [];
2256
+ for (var rn = 0; rn < 256; rn++) Us.push(0);
2257
2257
  "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function (n) {
2258
- Fs[n.charCodeAt(0)] = 1;
2258
+ Us[n.charCodeAt(0)] = 1;
2259
2259
  });
2260
- function Vr(n, e) {
2260
+ function $r(n, e) {
2261
2261
  var t,
2262
2262
  i = n.pos,
2263
2263
  s = n.posMax;
2264
2264
  if (n.src.charCodeAt(i) !== 92) return !1;
2265
2265
  if (i++, i < s) {
2266
- if (t = n.src.charCodeAt(i), t < 256 && Fs[t] !== 0) return e || (n.pending += n.src[i]), n.pos += 2, !0;
2266
+ if (t = n.src.charCodeAt(i), t < 256 && Us[t] !== 0) return e || (n.pending += n.src[i]), n.pos += 2, !0;
2267
2267
  if (t === 10) {
2268
2268
  for (e || n.push({
2269
2269
  type: "hardbreak",
@@ -2274,7 +2274,7 @@ function Vr(n, e) {
2274
2274
  }
2275
2275
  return e || (n.pending += "\\"), n.pos++, !0;
2276
2276
  }
2277
- function $r(n, e) {
2277
+ function Kr(n, e) {
2278
2278
  var t,
2279
2279
  i,
2280
2280
  s,
@@ -2295,7 +2295,7 @@ function $r(n, e) {
2295
2295
  }
2296
2296
  return e || (n.pending += s), n.pos += s.length, !0;
2297
2297
  }
2298
- function Kr(n, e) {
2298
+ function Wr(n, e) {
2299
2299
  var t,
2300
2300
  i,
2301
2301
  s,
@@ -2321,7 +2321,7 @@ function Kr(n, e) {
2321
2321
  level: --n.level
2322
2322
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2323
2323
  }
2324
- function Wr(n, e) {
2324
+ function Jr(n, e) {
2325
2325
  var t,
2326
2326
  i,
2327
2327
  s,
@@ -2347,7 +2347,7 @@ function Wr(n, e) {
2347
2347
  level: --n.level
2348
2348
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2349
2349
  }
2350
- function Jr(n, e) {
2350
+ function Yr(n, e) {
2351
2351
  var t,
2352
2352
  i,
2353
2353
  s,
@@ -2373,10 +2373,10 @@ function Jr(n, e) {
2373
2373
  level: --n.level
2374
2374
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2375
2375
  }
2376
- function rn(n) {
2376
+ function on(n) {
2377
2377
  return n >= 48 && n <= 57 || n >= 65 && n <= 90 || n >= 97 && n <= 122;
2378
2378
  }
2379
- function on(n, e) {
2379
+ function an(n, e) {
2380
2380
  var t = e,
2381
2381
  i,
2382
2382
  s,
@@ -2386,13 +2386,13 @@ function on(n, e) {
2386
2386
  l = n.posMax,
2387
2387
  c = n.src.charCodeAt(e);
2388
2388
  for (i = e > 0 ? n.src.charCodeAt(e - 1) : -1; t < l && n.src.charCodeAt(t) === c;) t++;
2389
- 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 && (rn(i) && (o = !1), rn(s) && (a = !1))), {
2389
+ 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 && (on(i) && (o = !1), on(s) && (a = !1))), {
2390
2390
  can_open: o,
2391
2391
  can_close: a,
2392
2392
  delims: r
2393
2393
  };
2394
2394
  }
2395
- function Yr(n, e) {
2395
+ function Zr(n, e) {
2396
2396
  var t,
2397
2397
  i,
2398
2398
  s,
@@ -2404,11 +2404,11 @@ function Yr(n, e) {
2404
2404
  d = n.pos,
2405
2405
  h = n.src.charCodeAt(d);
2406
2406
  if (h !== 95 && h !== 42 || e) return !1;
2407
- if (l = on(n, d), t = l.delims, !l.can_open) return n.pos += t, e || (n.pending += n.src.slice(d, n.pos)), !0;
2407
+ if (l = an(n, d), t = l.delims, !l.can_open) return n.pos += t, e || (n.pending += n.src.slice(d, n.pos)), !0;
2408
2408
  if (n.level >= n.options.maxNesting) return !1;
2409
2409
  for (n.pos = d + t, a = [t]; n.pos < c;) {
2410
2410
  if (n.src.charCodeAt(n.pos) === h) {
2411
- if (l = on(n, n.pos), i = l.delims, l.can_close) {
2411
+ if (l = an(n, n.pos), i = l.delims, l.can_close) {
2412
2412
  for (r = a.pop(), o = i; r !== o;) {
2413
2413
  if (o < r) {
2414
2414
  a.push(r - o);
@@ -2443,8 +2443,8 @@ function Yr(n, e) {
2443
2443
  level: --n.level
2444
2444
  })), n.pos = n.posMax + t, n.posMax = c, !0) : (n.pos = d, !1);
2445
2445
  }
2446
- var Zr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2447
- function Xr(n, e) {
2446
+ var Xr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2447
+ function Qr(n, e) {
2448
2448
  var t,
2449
2449
  i,
2450
2450
  s = n.posMax,
@@ -2460,11 +2460,11 @@ function Xr(n, e) {
2460
2460
  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({
2461
2461
  type: "sub",
2462
2462
  level: n.level,
2463
- content: i.replace(Zr, "$1")
2463
+ content: i.replace(Xr, "$1")
2464
2464
  }), n.pos = n.posMax + 1, n.posMax = s, !0);
2465
2465
  }
2466
- var Qr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2467
- function eo(n, e) {
2466
+ var eo = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2467
+ function to(n, e) {
2468
2468
  var t,
2469
2469
  i,
2470
2470
  s = n.posMax,
@@ -2480,10 +2480,10 @@ function eo(n, e) {
2480
2480
  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({
2481
2481
  type: "sup",
2482
2482
  level: n.level,
2483
- content: i.replace(Qr, "$1")
2483
+ content: i.replace(eo, "$1")
2484
2484
  }), n.pos = n.posMax + 1, n.posMax = s, !0);
2485
2485
  }
2486
- function to(n, e) {
2486
+ function io(n, e) {
2487
2487
  var t,
2488
2488
  i,
2489
2489
  s,
@@ -2501,14 +2501,14 @@ function to(n, e) {
2501
2501
  if (a = i + 1, a < f && n.src.charCodeAt(a) === 40) {
2502
2502
  for (a++; a < f && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2503
2503
  if (a >= f) return !1;
2504
- for (u = a, Rn(n, a) ? (r = n.linkContent, a = n.pos) : r = "", u = a; a < f && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2505
- if (a < f && u !== a && Ln(n, a)) for (o = n.linkContent, a = n.pos; a < f && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
2504
+ for (u = a, In(n, a) ? (r = n.linkContent, a = n.pos) : r = "", u = a; a < f && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2505
+ if (a < f && u !== a && Pn(n, a)) for (o = n.linkContent, a = n.pos; a < f && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
2506
2506
  if (a >= f || n.src.charCodeAt(a) !== 41) return n.pos = h, !1;
2507
2507
  a++;
2508
2508
  } else {
2509
2509
  if (n.linkLevel > 0) return !1;
2510
2510
  for (; a < f && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2511
- if (a < f && n.src.charCodeAt(a) === 91 && (u = a + 1, a = Yt(n, a), a >= 0 ? s = n.src.slice(u, a++) : a = u - 1), s || (_typeof(s) > "u" && (a = i + 1), s = n.src.slice(t, i)), l = n.env.references[In(s)], !l) return n.pos = h, !1;
2511
+ if (a < f && n.src.charCodeAt(a) === 91 && (u = a + 1, a = Yt(n, a), a >= 0 ? s = n.src.slice(u, a++) : a = u - 1), s || (_typeof(s) > "u" && (a = i + 1), s = n.src.slice(t, i)), l = n.env.references[On(s)], !l) return n.pos = h, !1;
2512
2512
  r = l.href, o = l.title;
2513
2513
  }
2514
2514
  return e || (n.pos = t, n.posMax = i, d ? n.push({
@@ -2527,7 +2527,7 @@ function to(n, e) {
2527
2527
  level: --n.level
2528
2528
  }))), n.pos = a, n.posMax = f, !0;
2529
2529
  }
2530
- function io(n, e) {
2530
+ function so(n, e) {
2531
2531
  var t,
2532
2532
  i,
2533
2533
  s,
@@ -2542,7 +2542,7 @@ function io(n, e) {
2542
2542
  tokens: n.tokens.splice(r)
2543
2543
  }, n.linkLevel--), n.pos = i + 1, n.posMax = o, !0);
2544
2544
  }
2545
- function so(n, e) {
2545
+ function no(n, e) {
2546
2546
  var t,
2547
2547
  i,
2548
2548
  s,
@@ -2564,17 +2564,17 @@ function so(n, e) {
2564
2564
  level: n.level
2565
2565
  })), n.pos = i, n.posMax = o, !0);
2566
2566
  }
2567
- var no = ["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"],
2568
- ro = /^<([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])?)*)>/,
2569
- oo = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2570
- function ao(n, e) {
2567
+ var ro = ["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"],
2568
+ oo = /^<([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])?)*)>/,
2569
+ ao = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2570
+ function lo(n, e) {
2571
2571
  var t,
2572
2572
  i,
2573
2573
  s,
2574
2574
  r,
2575
2575
  o,
2576
2576
  a = n.pos;
2577
- return n.src.charCodeAt(a) !== 60 || (t = n.src.slice(a), t.indexOf(">") < 0) ? !1 : (i = t.match(oo), i ? no.indexOf(i[1].toLowerCase()) < 0 || (r = i[0].slice(1, -1), o = vs(r), !n.parser.validateLink(r)) ? !1 : (e || (n.push({
2577
+ return n.src.charCodeAt(a) !== 60 || (t = n.src.slice(a), t.indexOf(">") < 0) ? !1 : (i = t.match(ao), i ? ro.indexOf(i[1].toLowerCase()) < 0 || (r = i[0].slice(1, -1), o = vs(r), !n.parser.validateLink(r)) ? !1 : (e || (n.push({
2578
2578
  type: "link_open",
2579
2579
  href: o,
2580
2580
  level: n.level
@@ -2585,7 +2585,7 @@ function ao(n, e) {
2585
2585
  }), n.push({
2586
2586
  type: "link_close",
2587
2587
  level: n.level
2588
- })), n.pos += i[0].length, !0) : (s = t.match(ro), s ? (r = s[0].slice(1, -1), o = vs("mailto:" + r), n.parser.validateLink(o) ? (e || (n.push({
2588
+ })), n.pos += i[0].length, !0) : (s = t.match(oo), s ? (r = s[0].slice(1, -1), o = vs("mailto:" + r), n.parser.validateLink(o) ? (e || (n.push({
2589
2589
  type: "link_open",
2590
2590
  href: o,
2591
2591
  level: n.level
@@ -2603,37 +2603,37 @@ function Vi(n, e) {
2603
2603
  return i ? (s = s.source || s, n = n.replace(i, s), t) : new RegExp(n, e);
2604
2604
  };
2605
2605
  }
2606
- var lo = /[a-zA-Z_:][a-zA-Z0-9:._-]*/,
2607
- co = /[^"'=<>`\x00-\x20]+/,
2608
- ho = /'[^']*'/,
2609
- uo = /"[^"]*"/,
2610
- fo = Vi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", co)("single_quoted", ho)("double_quoted", uo)(),
2611
- po = Vi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", lo)("attr_value", fo)(),
2612
- mo = Vi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", po)(),
2613
- go = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
2614
- bo = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,
2615
- vo = /<[?].*?[?]>/,
2616
- yo = /<![A-Z]+\s+[^>]*>/,
2617
- Eo = /<!\[CDATA\[[\s\S]*?\]\]>/,
2618
- So = Vi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", mo)("close_tag", go)("comment", bo)("processing", vo)("declaration", yo)("cdata", Eo)();
2619
- function _o(n) {
2606
+ var co = /[a-zA-Z_:][a-zA-Z0-9:._-]*/,
2607
+ ho = /[^"'=<>`\x00-\x20]+/,
2608
+ uo = /'[^']*'/,
2609
+ fo = /"[^"]*"/,
2610
+ po = Vi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", ho)("single_quoted", uo)("double_quoted", fo)(),
2611
+ mo = Vi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", co)("attr_value", po)(),
2612
+ go = Vi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", mo)(),
2613
+ bo = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
2614
+ vo = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,
2615
+ yo = /<[?].*?[?]>/,
2616
+ Eo = /<![A-Z]+\s+[^>]*>/,
2617
+ So = /<!\[CDATA\[[\s\S]*?\]\]>/,
2618
+ _o = Vi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", go)("close_tag", bo)("comment", vo)("processing", yo)("declaration", Eo)("cdata", So)();
2619
+ function xo(n) {
2620
2620
  var e = n | 32;
2621
2621
  return e >= 97 && e <= 122;
2622
2622
  }
2623
- function xo(n, e) {
2623
+ function wo(n, e) {
2624
2624
  var t,
2625
2625
  i,
2626
2626
  s,
2627
2627
  r = n.pos;
2628
- 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 && !_o(t)) || (i = n.src.slice(r).match(So), !i) ? !1 : (e || n.push({
2628
+ 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 && !xo(t)) || (i = n.src.slice(r).match(_o), !i) ? !1 : (e || n.push({
2629
2629
  type: "htmltag",
2630
2630
  content: n.src.slice(r, r + i[0].length),
2631
2631
  level: n.level
2632
2632
  }), n.pos += i[0].length, !0);
2633
2633
  }
2634
- var wo = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
2635
- Ao = /^&([a-z][a-z0-9]{1,31});/i;
2636
- function To(n, e) {
2634
+ var Ao = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
2635
+ To = /^&([a-z][a-z0-9]{1,31});/i;
2636
+ function Co(n, e) {
2637
2637
  var t,
2638
2638
  i,
2639
2639
  s,
@@ -2642,19 +2642,19 @@ function To(n, e) {
2642
2642
  if (n.src.charCodeAt(r) !== 38) return !1;
2643
2643
  if (r + 1 < o) {
2644
2644
  if (t = n.src.charCodeAt(r + 1), t === 35) {
2645
- if (s = n.src.slice(r).match(wo), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += Mn(i) ? bs(i) : bs(65533)), n.pos += s[0].length, !0;
2646
- } else if (s = n.src.slice(r).match(Ao), s) {
2647
- var a = Tn(s[1]);
2645
+ if (s = n.src.slice(r).match(Ao), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += Rn(i) ? bs(i) : bs(65533)), n.pos += s[0].length, !0;
2646
+ } else if (s = n.src.slice(r).match(To), s) {
2647
+ var a = Mn(s[1]);
2648
2648
  if (s[1] !== a) return e || (n.pending += a), n.pos += s[0].length, !0;
2649
2649
  }
2650
2650
  }
2651
2651
  return e || (n.pending += "&"), n.pos++, !0;
2652
2652
  }
2653
- var ds = [["text", zr], ["newline", Gr], ["escape", Vr], ["backticks", $r], ["del", Kr], ["ins", Wr], ["mark", Jr], ["emphasis", Yr], ["sub", Xr], ["sup", eo], ["links", to], ["footnote_inline", io], ["footnote_ref", so], ["autolink", ao], ["htmltag", xo], ["entity", To]];
2653
+ var ds = [["text", Gr], ["newline", Vr], ["escape", $r], ["backticks", Kr], ["del", Wr], ["ins", Jr], ["mark", Yr], ["emphasis", Zr], ["sub", Qr], ["sup", to], ["links", io], ["footnote_inline", so], ["footnote_ref", no], ["autolink", lo], ["htmltag", wo], ["entity", Co]];
2654
2654
  function $i() {
2655
2655
  this.ruler = new ce();
2656
2656
  for (var n = 0; n < ds.length; n++) this.ruler.push(ds[n][0], ds[n][1]);
2657
- this.validateLink = Co;
2657
+ this.validateLink = Mo;
2658
2658
  }
2659
2659
  $i.prototype.skipToken = function (n) {
2660
2660
  var e = this.ruler.getRules(""),
@@ -2687,12 +2687,12 @@ $i.prototype.parse = function (n, e, t, i) {
2687
2687
  var s = new ct(n, this, e, t, i);
2688
2688
  this.tokenize(s);
2689
2689
  };
2690
- function Co(n) {
2690
+ function Mo(n) {
2691
2691
  var e = ["vbscript", "javascript", "file", "data"],
2692
2692
  t = n.trim().toLowerCase();
2693
2693
  return t = ot(t), !(t.indexOf(":") !== -1 && e.indexOf(t.split(":")[0]) !== -1);
2694
2694
  }
2695
- var Mo = {
2695
+ var ko = {
2696
2696
  options: {
2697
2697
  html: !1,
2698
2698
  // Enable HTML tags in source
@@ -2730,7 +2730,7 @@ var Mo = {
2730
2730
  }
2731
2731
  }
2732
2732
  },
2733
- ko = {
2733
+ Ro = {
2734
2734
  options: {
2735
2735
  html: !1,
2736
2736
  // Enable HTML tags in source
@@ -2763,7 +2763,7 @@ var Mo = {
2763
2763
  inline: {}
2764
2764
  }
2765
2765
  },
2766
- Ro = {
2766
+ Lo = {
2767
2767
  options: {
2768
2768
  html: !0,
2769
2769
  // Enable HTML tags in source
@@ -2801,19 +2801,19 @@ var Mo = {
2801
2801
  }
2802
2802
  }
2803
2803
  },
2804
- Lo = {
2805
- "default": Mo,
2806
- full: ko,
2807
- commonmark: Ro
2804
+ Io = {
2805
+ "default": ko,
2806
+ full: Ro,
2807
+ commonmark: Lo
2808
2808
  };
2809
- function Nn(n, e, t) {
2809
+ function Dn(n, e, t) {
2810
2810
  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;
2811
2811
  }
2812
2812
  function Te(n, e) {
2813
- 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 $i(), this.block = new Ds(), this.core = new Pn(), this.renderer = new Bs(), this.ruler = new ce(), this.options = {}, this.configure(Lo[n]), this.set(e || {});
2813
+ 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 $i(), this.block = new Fs(), this.core = new Nn(), this.renderer = new Ds(), this.ruler = new ce(), this.options = {}, this.configure(Io[n]), this.set(e || {});
2814
2814
  }
2815
2815
  Te.prototype.set = function (n) {
2816
- Cn(this.options, n);
2816
+ kn(this.options, n);
2817
2817
  };
2818
2818
  Te.prototype.configure = function (n) {
2819
2819
  var e = this;
@@ -2826,14 +2826,14 @@ Te.prototype.use = function (n, e) {
2826
2826
  return n(this, e), this;
2827
2827
  };
2828
2828
  Te.prototype.parse = function (n, e) {
2829
- var t = new Nn(this, n, e);
2829
+ var t = new Dn(this, n, e);
2830
2830
  return this.core.process(t), t.tokens;
2831
2831
  };
2832
2832
  Te.prototype.render = function (n, e) {
2833
2833
  return e = e || {}, this.renderer.render(this.parse(n, e), this.options, e);
2834
2834
  };
2835
2835
  Te.prototype.parseInline = function (n, e) {
2836
- var t = new Nn(this, n, e);
2836
+ var t = new Dn(this, n, e);
2837
2837
  return t.inlineMode = !0, this.core.process(t), t.tokens;
2838
2838
  };
2839
2839
  Te.prototype.renderInline = function (n, e) {
@@ -2894,11 +2894,11 @@ yt.DEFAULT_PROPERTIES = {
2894
2894
  // set target to open in a new tab
2895
2895
  };
2896
2896
  var Zt = yt;
2897
- var $ = /*#__PURE__*/function () {
2898
- function $() {
2899
- _classCallCheck(this, $);
2897
+ var K = /*#__PURE__*/function () {
2898
+ function K() {
2899
+ _classCallCheck(this, K);
2900
2900
  }
2901
- return _createClass($, null, [{
2901
+ return _createClass(K, null, [{
2902
2902
  key: "applyCustomStylesToElements",
2903
2903
  value: function applyCustomStylesToElements(e, t, i) {
2904
2904
  if (i && (Object.assign(e.outerContainer.style, i.outerContainer), Object.assign(e.innerContainer.style, i.innerContainer), Object.assign(e.bubbleElement.style, i.bubble), t)) {
@@ -2910,7 +2910,7 @@ var $ = /*#__PURE__*/function () {
2910
2910
  }, {
2911
2911
  key: "applySideStyles",
2912
2912
  value: function applySideStyles(e, t, i, s) {
2913
- s && ($.applyCustomStylesToElements(e, i, s.shared), t === v.USER_ROLE ? $.applyCustomStylesToElements(e, i, s.user) : ($.applyCustomStylesToElements(e, i, s.ai), $.applyCustomStylesToElements(e, i, s[t])));
2913
+ s && (K.applyCustomStylesToElements(e, i, s.shared), t === v.USER_ROLE ? K.applyCustomStylesToElements(e, i, s.user) : (K.applyCustomStylesToElements(e, i, s.ai), K.applyCustomStylesToElements(e, i, s[t])));
2914
2914
  }
2915
2915
  }, {
2916
2916
  key: "isElementsStyles",
@@ -2922,7 +2922,7 @@ var $ = /*#__PURE__*/function () {
2922
2922
  key: "applyCustomStyles",
2923
2923
  value: function applyCustomStyles(e, t, i, s, r) {
2924
2924
  var o;
2925
- r && e["default"] !== r ? $.isElementsStyles(r) ? ($.applyCustomStylesToElements(t, s, (o = e["default"]) == null ? void 0 : o.shared), $.applyCustomStylesToElements(t, s, r)) : ($.applySideStyles(t, i, s, e["default"]), $.applySideStyles(t, i, s, r)) : $.applySideStyles(t, i, s, e["default"]);
2925
+ r && e["default"] !== r ? K.isElementsStyles(r) ? (K.applyCustomStylesToElements(t, s, (o = e["default"]) == null ? void 0 : o.shared), K.applyCustomStylesToElements(t, s, r)) : (K.applySideStyles(t, i, s, e["default"]), K.applySideStyles(t, i, s, r)) : K.applySideStyles(t, i, s, e["default"]);
2926
2926
  }
2927
2927
  // prettier-ignore
2928
2928
  }, {
@@ -2958,7 +2958,7 @@ var Si = /*#__PURE__*/function () {
2958
2958
  }));
2959
2959
  q.reAddFileRefToObject(t, s), (r = e.onMessage) == null || r.call(e, s), e.dispatchEvent(new CustomEvent("message", {
2960
2960
  detail: s
2961
- })), ie.fireOnNewMessage(e, s);
2961
+ })), se.fireOnNewMessage(e, s);
2962
2962
  }
2963
2963
  }, {
2964
2964
  key: "onClearMessages",
@@ -3092,16 +3092,16 @@ var zt = /*#__PURE__*/function () {
3092
3092
  }();
3093
3093
  zt.DEFAULT_FADE_MS = 500;
3094
3094
  var _i = zt;
3095
- var Q = /*#__PURE__*/function () {
3096
- function Q(e) {
3095
+ var ee = /*#__PURE__*/function () {
3096
+ function ee(e) {
3097
3097
  var _this3 = this;
3098
- _classCallCheck(this, Q);
3098
+ _classCallCheck(this, ee);
3099
3099
  var t;
3100
- this.messageElementRefs = [], this.htmlClassUtilities = {}, this.messageToElements = [], this.elementRef = Q.createContainerElement(), this.messageStyles = ie.processMessageStyles(e.messageStyles), this._remarkable = Zt.createNew(e.remarkable), this._avatars = e.avatars, this._names = e.names, this._onMessage = Si.onMessage.bind(this, e), e.htmlClassUtilities && (this.htmlClassUtilities = e.htmlClassUtilities), this.focusMode = e.focusMode, this.focusMode || (this._lastGroupMessagesElement = document.createElement("div")), typeof this.focusMode != "boolean" && (t = this.focusMode) != null && t.fade && _i.setFade(this.elementRef, this.focusMode.fade), setTimeout(function () {
3100
+ this.messageElementRefs = [], this.htmlClassUtilities = {}, this.messageToElements = [], this.elementRef = ee.createContainerElement(), this.messageStyles = se.processMessageStyles(e.messageStyles), this._remarkable = Zt.createNew(e.remarkable), this._avatars = e.avatars, this._names = e.names, this._onMessage = Si.onMessage.bind(this, e), e.htmlClassUtilities && (this.htmlClassUtilities = e.htmlClassUtilities), this.focusMode = e.focusMode, this.focusMode || (this._lastGroupMessagesElement = document.createElement("div")), typeof this.focusMode != "boolean" && (t = this.focusMode) != null && t.fade && _i.setFade(this.elementRef, this.focusMode.fade), setTimeout(function () {
3101
3101
  _this3.submitUserMessage = e.submitUserMessage;
3102
3102
  });
3103
3103
  }
3104
- return _createClass(Q, [{
3104
+ return _createClass(ee, [{
3105
3105
  key: "addNewTextMessage",
3106
3106
  value: function addNewTextMessage(e, t, i) {
3107
3107
  var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
@@ -3111,13 +3111,13 @@ var Q = /*#__PURE__*/function () {
3111
3111
  i.status = !1;
3112
3112
  }
3113
3113
  var r = s ? this.createAndPrependNewMessageElement(e, t, s) : this.createAndAppendNewMessageElement(e, t);
3114
- return r.bubbleElement.classList.add(Q.TEXT_BUBBLE_CLASS), this.applyCustomStyles(r, t, !1), v.fillEmptyMessageElement(r.bubbleElement, e), r;
3114
+ return r.bubbleElement.classList.add(ee.TEXT_BUBBLE_CLASS), this.applyCustomStyles(r, t, !1), v.fillEmptyMessageElement(r.bubbleElement, e), r;
3115
3115
  }
3116
3116
  // prettier-ignore
3117
3117
  }, {
3118
3118
  key: "overwriteText",
3119
3119
  value: function overwriteText(e, t, i) {
3120
- var s = v.overwriteMessage(this.messageToElements, i, t, e, "text", Q.TEXT_BUBBLE_CLASS);
3120
+ var s = v.overwriteMessage(this.messageToElements, i, t, e, "text", ee.TEXT_BUBBLE_CLASS);
3121
3121
  return s && this.renderText(s.bubbleElement, t), s;
3122
3122
  }
3123
3123
  }, {
@@ -3131,15 +3131,15 @@ var Q = /*#__PURE__*/function () {
3131
3131
  var _this4 = this;
3132
3132
  var s, r, o;
3133
3133
  if (t === "user") {
3134
- (s = this._lastGroupMessagesElement) == null || s.classList.remove(Q.LAST_GROUP_MESSAGES_ACTIVE);
3134
+ (s = this._lastGroupMessagesElement) == null || s.classList.remove(ee.LAST_GROUP_MESSAGES_ACTIVE);
3135
3135
  var a = document.createElement("div");
3136
- this._lastGroupMessagesElement && a.classList.add(Q.LAST_GROUP_MESSAGES_ACTIVE), this._lastGroupMessagesElement = a;
3136
+ this._lastGroupMessagesElement && a.classList.add(ee.LAST_GROUP_MESSAGES_ACTIVE), this._lastGroupMessagesElement = a;
3137
3137
  }
3138
3138
  var i = this.createNewMessageElement(e, t);
3139
3139
  if (this.appendOuterContainerElemet(i.outerContainer), t === "user") {
3140
3140
  var _a2 = typeof this.focusMode != "boolean" && ((r = this.focusMode) == null ? void 0 : r.isScroll);
3141
3141
  setTimeout(function () {
3142
- return Y.scrollToBottom(_this4.elementRef, _a2);
3142
+ return Z.scrollToBottom(_this4.elementRef, _a2);
3143
3143
  });
3144
3144
  } else (o = this.messageElementRefs[this.messageElementRefs.length - 2]) == null || o.outerContainer.scrollIntoView();
3145
3145
  return i;
@@ -3150,7 +3150,7 @@ var Q = /*#__PURE__*/function () {
3150
3150
  var _this5 = this;
3151
3151
  var i = this.createNewMessageElement(e, t);
3152
3152
  return this.appendOuterContainerElemet(i.outerContainer), setTimeout(function () {
3153
- return Y.scrollToBottom(_this5.elementRef);
3153
+ return Z.scrollToBottom(_this5.elementRef);
3154
3154
  }), i;
3155
3155
  }
3156
3156
  }, {
@@ -3164,7 +3164,7 @@ var Q = /*#__PURE__*/function () {
3164
3164
  value: function createAndPrependNewMessageElement(e, t, i) {
3165
3165
  var r;
3166
3166
  var s = this.createNewMessageElement(e, t, i);
3167
- if (i && (r = this.elementRef.firstChild) != null && r.classList.contains(Q.INTRO_CLASS)) {
3167
+ if (i && (r = this.elementRef.firstChild) != null && r.classList.contains(ee.INTRO_CLASS)) {
3168
3168
  this.elementRef.firstChild.insertAdjacentElement("afterend", s.outerContainer);
3169
3169
  var o = this.messageElementRefs[0];
3170
3170
  this.messageElementRefs[0] = this.messageElementRefs[1], this.messageElementRefs[1] = o;
@@ -3183,7 +3183,7 @@ var Q = /*#__PURE__*/function () {
3183
3183
  var r;
3184
3184
  (r = this._introPanel) == null || r.hide();
3185
3185
  var s = this.messageElementRefs[this.messageElementRefs.length - 1];
3186
- return Ue.changeFullViewToSmall(this), Q.isTemporaryElement(s) && (this.revealRoleElementsIfTempRemoved(s, t), this.removeLastMessage()), this.createMessageElements(e, t, i);
3186
+ return Ue.changeFullViewToSmall(this), ee.isTemporaryElement(s) && (this.revealRoleElementsIfTempRemoved(s, t), this.removeLastMessage()), this.createMessageElements(e, t, i);
3187
3187
  }
3188
3188
  // this can be tested by having an ai message, then a temp ai message with html that submits new user message:
3189
3189
  // https://github.com/OvidijusParsiunas/deep-chat/issues/258
@@ -3199,7 +3199,7 @@ var Q = /*#__PURE__*/function () {
3199
3199
  }, {
3200
3200
  key: "createElements",
3201
3201
  value: function createElements(e, t) {
3202
- var i = Q.createBaseElements(t),
3202
+ var i = ee.createBaseElements(t),
3203
3203
  s = i.outerContainer,
3204
3204
  r = i.innerContainer,
3205
3205
  o = i.bubbleElement;
@@ -3226,7 +3226,7 @@ var Q = /*#__PURE__*/function () {
3226
3226
  }, {
3227
3227
  key: "applyCustomStyles",
3228
3228
  value: function applyCustomStyles(e, t, i, s) {
3229
- e && this.messageStyles && $.applyCustomStyles(this.messageStyles, e, t, i, s);
3229
+ e && this.messageStyles && K.applyCustomStyles(this.messageStyles, e, t, i, s);
3230
3230
  }
3231
3231
  // WORK - add a customProps to allow devs to add custom properties
3232
3232
  }, {
@@ -3279,7 +3279,7 @@ var Q = /*#__PURE__*/function () {
3279
3279
  }, {
3280
3280
  key: "isTemporaryElement",
3281
3281
  value: function isTemporaryElement(e) {
3282
- return Q.isLoadingMessage(e) || Fe.isElementTemporary(e);
3282
+ return ee.isLoadingMessage(e) || Fe.isElementTemporary(e);
3283
3283
  }
3284
3284
  }, {
3285
3285
  key: "createBaseElements",
@@ -3314,24 +3314,30 @@ var Q = /*#__PURE__*/function () {
3314
3314
  }
3315
3315
  }]);
3316
3316
  }();
3317
- Q.TEXT_BUBBLE_CLASS = "text-message", Q.INTRO_CLASS = "deep-chat-intro", Q.LAST_GROUP_MESSAGES_ACTIVE = "deep-chat-last-group-messages-active";
3318
- var me = Q;
3319
- var Io = "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",
3320
- Bn = "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==",
3321
- re = /*#__PURE__*/function () {
3322
- function re() {
3323
- _classCallCheck(this, re);
3324
- }
3325
- return _createClass(re, null, [{
3317
+ ee.TEXT_BUBBLE_CLASS = "text-message", ee.INTRO_CLASS = "deep-chat-intro", ee.LAST_GROUP_MESSAGES_ACTIVE = "deep-chat-last-group-messages-active";
3318
+ var me = ee;
3319
+ var ln = "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",
3320
+ ys = "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==",
3321
+ V = /*#__PURE__*/function () {
3322
+ function V() {
3323
+ _classCallCheck(this, V);
3324
+ }
3325
+ return _createClass(V, null, [{
3326
+ key: "errorFallback",
3327
+ value: function errorFallback(e, t) {
3328
+ var i = t.target;
3329
+ i.onerror = null, i.src = e;
3330
+ }
3331
+ }, {
3326
3332
  key: "hide",
3327
3333
  value: function hide(e) {
3328
3334
  var t;
3329
- (t = e.getElementsByClassName(re.CONTAINER_CLASS)[0].style).visibility || (t.visibility = "hidden");
3335
+ (t = e.getElementsByClassName(V.CONTAINER_CLASS)[0].style).visibility || (t.visibility = "hidden");
3330
3336
  }
3331
3337
  }, {
3332
3338
  key: "reveal",
3333
3339
  value: function reveal(e) {
3334
- e.getElementsByClassName(re.CONTAINER_CLASS)[0].style.visibility = "";
3340
+ e.getElementsByClassName(V.CONTAINER_CLASS)[0].style.visibility = "";
3335
3341
  }
3336
3342
  }, {
3337
3343
  key: "applyCustomStylesToElements",
@@ -3342,10 +3348,10 @@ var Io = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e
3342
3348
  key: "applyCustomStyles",
3343
3349
  value: function applyCustomStyles(e, t, i, s) {
3344
3350
  var r, o, a, l;
3345
- if ((r = i["default"]) != null && r.styles && re.applyCustomStylesToElements(e, t, i["default"].styles), s === v.USER_ROLE) (o = i.user) != null && o.styles && re.applyCustomStylesToElements(e, t, i.user.styles);else {
3346
- (a = i.ai) != null && a.styles && re.applyCustomStylesToElements(e, t, i.ai.styles);
3351
+ if ((r = i["default"]) != null && r.styles && V.applyCustomStylesToElements(e, t, i["default"].styles), s === v.USER_ROLE) (o = i.user) != null && o.styles && V.applyCustomStylesToElements(e, t, i.user.styles);else {
3352
+ (a = i.ai) != null && a.styles && V.applyCustomStylesToElements(e, t, i.ai.styles);
3347
3353
  var c = (l = i[s]) == null ? void 0 : l.styles;
3348
- c && re.applyCustomStylesToElements(e, t, c);
3354
+ c && V.applyCustomStylesToElements(e, t, c);
3349
3355
  }
3350
3356
  }
3351
3357
  }, {
@@ -3353,9 +3359,9 @@ var Io = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e
3353
3359
  value: function createAvatar(e, t) {
3354
3360
  var r, o, a, l, c;
3355
3361
  var i = document.createElement("img");
3356
- e === v.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) || Bn : 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) || Io, i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3362
+ e === v.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) || ys, i.onerror = V.errorFallback.bind(this, ys)) : (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) || ln, i.onerror = V.errorFallback.bind(this, ln)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3357
3363
  var s = document.createElement("div");
3358
- return s.classList.add(re.CONTAINER_CLASS), s.appendChild(i), t && re.applyCustomStyles(s, i, t, e), s;
3364
+ return s.classList.add(V.CONTAINER_CLASS), s.appendChild(i), t && V.applyCustomStyles(s, i, t, e), s;
3359
3365
  }
3360
3366
  }, {
3361
3367
  key: "getPosition",
@@ -3369,14 +3375,14 @@ var Io = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e
3369
3375
  key: "add",
3370
3376
  value: function add(e, t, i) {
3371
3377
  var s = typeof i == "boolean" ? void 0 : i,
3372
- r = re.createAvatar(t, s),
3373
- o = re.getPosition(t, s);
3378
+ r = V.createAvatar(t, s),
3379
+ o = V.getPosition(t, s);
3374
3380
  r.classList.add(o === "left" ? "left-item-position" : "right-item-position"), e.insertAdjacentElement(o === "left" ? "beforebegin" : "afterend", r);
3375
3381
  }
3376
3382
  }]);
3377
3383
  }();
3378
- re.CONTAINER_CLASS = "avatar-container";
3379
- var Dt = re;
3384
+ V.CONTAINER_CLASS = "avatar-container";
3385
+ var Dt = V;
3380
3386
  var we = /*#__PURE__*/function () {
3381
3387
  function we() {
3382
3388
  _classCallCheck(this, we);
@@ -3602,13 +3608,13 @@ var Et = /*#__PURE__*/function () {
3602
3608
  if (this._hasStreamEnded) return;
3603
3609
  if ((e == null ? void 0 : e.text) === void 0 && (e == null ? void 0 : e.html) === void 0) return console.error(k.INVALID_STREAM_EVENT);
3604
3610
  var t = (e == null ? void 0 : e.text) || (e == null ? void 0 : e.html) || "",
3605
- i = Y.isScrollbarAtBottomOfElement(this._messages.elementRef),
3611
+ i = Z.isScrollbarAtBottomOfElement(this._messages.elementRef),
3606
3612
  s = (e == null ? void 0 : e.text) !== void 0 ? "text" : "html";
3607
3613
  if (!this._elements && !this._message) this.setInitialState(s, t, e == null ? void 0 : e.role);else {
3608
3614
  if (this._streamType !== s) return console.error(k.INVALID_STREAM_EVENT_MIX);
3609
3615
  this.updateBasedOnType(t, s, (r = this._elements) == null ? void 0 : r.bubbleElement, e == null ? void 0 : e.overwrite);
3610
3616
  }
3611
- !this._messages.focusMode && i && Y.scrollToBottom(this._messages.elementRef);
3617
+ !this._messages.focusMode && i && Z.scrollToBottom(this._messages.elementRef);
3612
3618
  }
3613
3619
  }, {
3614
3620
  key: "setInitialState",
@@ -3881,10 +3887,10 @@ function Oo(n) {
3881
3887
  };
3882
3888
  }
3883
3889
  function No(n, e, t) {
3884
- var i = an();
3890
+ var i = cn();
3885
3891
  var s = new TextDecoder();
3886
3892
  return function (o, a) {
3887
- if (o.length === 0) t == null || t(i), i = an();else if (a > 0) {
3893
+ if (o.length === 0) t == null || t(i), i = cn();else if (a > 0) {
3888
3894
  var l = s.decode(o.subarray(0, a)),
3889
3895
  c = a + (o[a + 1] === 32 ? 2 : 1),
3890
3896
  d = s.decode(o.subarray(c));
@@ -3910,7 +3916,7 @@ function Bo(n, e) {
3910
3916
  var t = new Uint8Array(n.length + e.length);
3911
3917
  return t.set(n), t.set(e, n.length), t;
3912
3918
  }
3913
- function an() {
3919
+ function cn() {
3914
3920
  return {
3915
3921
  data: "",
3916
3922
  event: "",
@@ -3924,9 +3930,9 @@ var Do = function Do(n, e) {
3924
3930
  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]]);
3925
3931
  return t;
3926
3932
  };
3927
- var ys = "text/event-stream",
3933
+ var Es = "text/event-stream",
3928
3934
  Fo = 1e3,
3929
- ln = "last-event-id";
3935
+ dn = "last-event-id";
3930
3936
  function Uo(n, e) {
3931
3937
  var t = e.signal,
3932
3938
  i = e.headers,
@@ -3939,7 +3945,7 @@ function Uo(n, e) {
3939
3945
  d = Do(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
3940
3946
  return new Promise(function (h, f) {
3941
3947
  var u = Object.assign({}, i);
3942
- u.accept || (u.accept = ys);
3948
+ u.accept || (u.accept = Es);
3943
3949
  var m;
3944
3950
  function p() {
3945
3951
  m.abort(), document.hidden || O();
@@ -3953,32 +3959,32 @@ function Uo(n, e) {
3953
3959
  t == null || t.addEventListener("abort", function () {
3954
3960
  N(), h();
3955
3961
  });
3956
- var Z = c !== null && c !== void 0 ? c : window.fetch,
3962
+ var X = c !== null && c !== void 0 ? c : window.fetch,
3957
3963
  Re = s !== null && s !== void 0 ? s : jo;
3958
3964
  function O() {
3959
3965
  return _O.apply(this, arguments);
3960
3966
  }
3961
3967
  function _O() {
3962
3968
  _O = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
3963
- var se, ne, j;
3969
+ var ne, re, j;
3964
3970
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3965
3971
  while (1) switch (_context5.prev = _context5.next) {
3966
3972
  case 0:
3967
3973
  m = new AbortController();
3968
3974
  _context5.prev = 1;
3969
3975
  _context5.next = 4;
3970
- return Z(n, Object.assign(Object.assign({}, d), {
3976
+ return X(n, Object.assign(Object.assign({}, d), {
3971
3977
  headers: u,
3972
3978
  signal: m.signal
3973
3979
  }));
3974
3980
  case 4:
3975
- ne = _context5.sent;
3981
+ re = _context5.sent;
3976
3982
  _context5.next = 7;
3977
- return Re(ne);
3983
+ return Re(re);
3978
3984
  case 7:
3979
3985
  _context5.next = 9;
3980
- return Po(ne.body, Oo(No(function (j) {
3981
- j ? u[ln] = j : delete u[ln];
3986
+ return Po(re.body, Oo(No(function (j) {
3987
+ j ? u[dn] = j : delete u[dn];
3982
3988
  }, function (j) {
3983
3989
  b = j;
3984
3990
  }, r)));
@@ -3992,7 +3998,7 @@ function Uo(n, e) {
3992
3998
  _context5.prev = 14;
3993
3999
  _context5.t0 = _context5["catch"](1);
3994
4000
  if (!m.signal.aborted) try {
3995
- j = (se = a == null ? void 0 : a(_context5.t0)) !== null && se !== void 0 ? se : b;
4001
+ j = (ne = a == null ? void 0 : a(_context5.t0)) !== null && ne !== void 0 ? ne : b;
3996
4002
  window.clearTimeout(y), y = window.setTimeout(O, j);
3997
4003
  } catch (j) {
3998
4004
  N(), f(j);
@@ -4010,7 +4016,7 @@ function Uo(n, e) {
4010
4016
  }
4011
4017
  function jo(n) {
4012
4018
  var e = n.headers.get("content-type");
4013
- if (!(e != null && e.startsWith(ys))) throw new Error("Expected content-type to be ".concat(ys, ", Actual: ").concat(e));
4019
+ if (!(e != null && e.startsWith(Es))) throw new Error("Expected content-type to be ".concat(Es, ", Actual: ").concat(e));
4014
4020
  }
4015
4021
  var M = /*#__PURE__*/function () {
4016
4022
  function M() {
@@ -4027,7 +4033,7 @@ var M = /*#__PURE__*/function () {
4027
4033
  b,
4028
4034
  y,
4029
4035
  N,
4030
- Z,
4036
+ X,
4031
4037
  Re,
4032
4038
  o,
4033
4039
  _yield$E$processReque,
@@ -4081,7 +4087,7 @@ var M = /*#__PURE__*/function () {
4081
4087
  case 19:
4082
4088
  u = new Ce(i), m = E.fetch.bind(this, e, l, s);
4083
4089
  return _context8.abrupt("return", (Uo(((N = e.connectSettings) == null ? void 0 : N.url) || e.url || "", {
4084
- method: ((Z = e.connectSettings) == null ? void 0 : Z.method) || "POST",
4090
+ method: ((X = e.connectSettings) == null ? void 0 : X.method) || "POST",
4085
4091
  headers: l,
4086
4092
  credentials: (Re = e.connectSettings) == null ? void 0 : Re.credentials,
4087
4093
  body: s ? JSON.stringify(a) : a,
@@ -4111,7 +4117,7 @@ var M = /*#__PURE__*/function () {
4111
4117
  },
4112
4118
  onmessage: function onmessage(O) {
4113
4119
  return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
4114
- var se, ne, j, $e, Pt;
4120
+ var ne, re, j, $e, Pt;
4115
4121
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
4116
4122
  while (1) switch (_context7.prev = _context7.next) {
4117
4123
  case 0:
@@ -4125,7 +4131,7 @@ var M = /*#__PURE__*/function () {
4125
4131
  $e = {};
4126
4132
  }
4127
4133
  _context7.next = 4;
4128
- return (ne = (se = e.deepChat).responseInterceptor) == null ? void 0 : ne.call(se, $e);
4134
+ return (re = (ne = e.deepChat).responseInterceptor) == null ? void 0 : re.call(ne, $e);
4129
4135
  case 4:
4130
4136
  _context7.t0 = _context7.sent;
4131
4137
  if (_context7.t0) {
@@ -4159,11 +4165,11 @@ var M = /*#__PURE__*/function () {
4159
4165
  },
4160
4166
  signal: f.signal
4161
4167
  })["catch"](function (O) {
4162
- var se;
4163
- i.isLastMessageError() || (se = e.extractResultData) == null || se.call(e, O).then(function () {
4168
+ var ne;
4169
+ i.isLastMessageError() || (ne = e.extractResultData) == null || ne.call(e, O).then(function () {
4164
4170
  E.displayError(i, O);
4165
- })["catch"](function (ne) {
4166
- E.displayError(i, ne);
4171
+ })["catch"](function (re) {
4172
+ E.displayError(i, re);
4167
4173
  });
4168
4174
  }), u));
4169
4175
  case 21:
@@ -4818,7 +4824,7 @@ var C = /*#__PURE__*/function () {
4818
4824
  return E.processResponseByType(p);
4819
4825
  }).then(/*#__PURE__*/function () {
4820
4826
  var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(p) {
4821
- var N, Z, b, y;
4827
+ var N, X, b, y;
4822
4828
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
4823
4829
  while (1) switch (_context16.prev = _context16.next) {
4824
4830
  case 0:
@@ -4829,7 +4835,7 @@ var C = /*#__PURE__*/function () {
4829
4835
  return _context16.abrupt("return");
4830
4836
  case 2:
4831
4837
  _context16.next = 4;
4832
- return (Z = (N = e.deepChat).responseInterceptor) == null ? void 0 : Z.call(N, p);
4838
+ return (X = (N = e.deepChat).responseInterceptor) == null ? void 0 : X.call(N, p);
4833
4839
  case 4:
4834
4840
  _context16.t0 = _context16.sent;
4835
4841
  if (_context16.t0) {
@@ -5028,7 +5034,7 @@ var He = /*#__PURE__*/function () {
5028
5034
  this._messages.removeMessage(t), He.displayIntroMessages(this._messages.messageElementRefs), i.forEach(function (s) {
5029
5035
  return _this9._messages.addAnyMessage(s, !0);
5030
5036
  }), setTimeout(function () {
5031
- return Y.scrollToBottom(_this9._messages.elementRef);
5037
+ return Z.scrollToBottom(_this9._messages.elementRef);
5032
5038
  }, 0);
5033
5039
  case 5:
5034
5040
  case "end":
@@ -5133,7 +5139,7 @@ var He = /*#__PURE__*/function () {
5133
5139
  value: function populateInitialHistory(e) {
5134
5140
  var _this12 = this;
5135
5141
  e.forEach(function (t) {
5136
- ie.processHistoryFile(t), _this12._messages.addNewMessage(t, !0);
5142
+ se.processHistoryFile(t), _this12._messages.addNewMessage(t, !0);
5137
5143
  });
5138
5144
  }
5139
5145
  }, {
@@ -5154,7 +5160,7 @@ var He = /*#__PURE__*/function () {
5154
5160
  i = _context23.sent;
5155
5161
  s = this._messages.elementRef.scrollTop;
5156
5162
  this.populateMessages(t, i), s === 0 && setTimeout(function () {
5157
- return Y.scrollToBottom(_this13._messages.elementRef);
5163
+ return Z.scrollToBottom(_this13._messages.elementRef);
5158
5164
  }, 0);
5159
5165
  _context23.next = 13;
5160
5166
  break;
@@ -5184,7 +5190,7 @@ var He = /*#__PURE__*/function () {
5184
5190
  while (1) switch (_context24.prev = _context24.next) {
5185
5191
  case 0:
5186
5192
  e.loadHistory && this.loadInitialHistory(e.loadHistory);
5187
- t = e.history || ie.processHistory(e);
5193
+ t = e.history || se.processHistory(e);
5188
5194
  t && (this.populateInitialHistory(t), this._index += 1);
5189
5195
  case 3:
5190
5196
  case "end":
@@ -5264,7 +5270,7 @@ var B = /*#__PURE__*/function () {
5264
5270
  files: t
5265
5271
  };
5266
5272
  if (_typeof(s) == "object") {
5267
- ie.processFileConfigConnect(s);
5273
+ se.processFileConfigConnect(s);
5268
5274
  var a = s.files,
5269
5275
  l = s.connect,
5270
5276
  c = s.button;
@@ -5363,7 +5369,7 @@ var at = /*#__PURE__*/function () {
5363
5369
  var _a$url;
5364
5370
  _classCallCheck(this, at);
5365
5371
  var s, r, o, a, l;
5366
- this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = at.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = e, this.demo = i, Object.assign(this.rawBody, (s = e.connect) == null ? void 0 : s.additionalBodyProps), this.totalMessagesMaxCharLength = (r = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : r.totalMessagesMaxCharLength, this.maxMessages = (o = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : o.maxMessages, B.set(e, this, t), e.connect && (this.connectSettings = e.connect), this.demo && ((_a$url = (a = this.connectSettings).url) !== null && _a$url !== void 0 ? _a$url : a.url = Me.URL), this.connectSettings.websocket && H.setup(this), this.stream = ((l = this.deepChat.connect) == null ? void 0 : l.stream) || ie.checkForStream(this.deepChat), e.loadHistory && Xt.addErrorPrefix(this);
5372
+ this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = at.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = e, this.demo = i, Object.assign(this.rawBody, (s = e.connect) == null ? void 0 : s.additionalBodyProps), this.totalMessagesMaxCharLength = (r = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : r.totalMessagesMaxCharLength, this.maxMessages = (o = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : o.maxMessages, B.set(e, this, t), e.connect && (this.connectSettings = e.connect), this.demo && ((_a$url = (a = this.connectSettings).url) !== null && _a$url !== void 0 ? _a$url : a.url = Me.URL), this.connectSettings.websocket && H.setup(this), this.stream = ((l = this.deepChat.connect) == null ? void 0 : l.stream) || se.checkForStream(this.deepChat), e.loadHistory && Xt.addErrorPrefix(this);
5367
5373
  }
5368
5374
  return _createClass(at, [{
5369
5375
  key: "verifyKey",
@@ -5527,7 +5533,7 @@ var at = /*#__PURE__*/function () {
5527
5533
  _context30.next = 4;
5528
5534
  break;
5529
5535
  }
5530
- return _context30.abrupt("return", ie.handleResponseProperty(e));
5536
+ return _context30.abrupt("return", se.handleResponseProperty(e));
5531
5537
  case 4:
5532
5538
  if (!E.validateResponseFormat(e, !!this.stream)) {
5533
5539
  _context30.next = 6;
@@ -5694,14 +5700,14 @@ var Pe = /*#__PURE__*/function (_HTMLElement) {
5694
5700
  }]);
5695
5701
  }(/*#__PURE__*/_wrapNativeSuper(HTMLElement));
5696
5702
  Pe._attributes_ = {}, Pe._attributeToProperty_ = {};
5697
- var Es = Pe;
5703
+ var Ss = Pe;
5698
5704
  var Ho = "<?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",
5699
5705
  qo = "<?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";
5700
- var te = /*#__PURE__*/function () {
5701
- function te() {
5702
- _classCallCheck(this, te);
5706
+ var ie = /*#__PURE__*/function () {
5707
+ function ie() {
5708
+ _classCallCheck(this, ie);
5703
5709
  }
5704
- return _createClass(te, null, [{
5710
+ return _createClass(ie, null, [{
5705
5711
  key: "createSVGElement",
5706
5712
  value: function createSVGElement(e) {
5707
5713
  return new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
@@ -5722,7 +5728,7 @@ var qe = /*#__PURE__*/function () {
5722
5728
  }, {
5723
5729
  key: "createIconElement",
5724
5730
  value: function createIconElement(e, t) {
5725
- var i = te.createSVGElement(e);
5731
+ var i = ie.createSVGElement(e);
5726
5732
  return i.id = t, i.classList.add("visibility-icon"), i;
5727
5733
  }
5728
5734
  // prettier-ignore
@@ -5739,7 +5745,7 @@ var qe = /*#__PURE__*/function () {
5739
5745
  }]);
5740
5746
  }();
5741
5747
  qe.VISIBLE_ICON_ID = "visible-icon";
5742
- var Ss = qe;
5748
+ var _s = qe;
5743
5749
  var G = /*#__PURE__*/function () {
5744
5750
  function G() {
5745
5751
  _classCallCheck(this, G);
@@ -5843,7 +5849,7 @@ var G = /*#__PURE__*/function () {
5843
5849
  i.id = "insert-key-contents";
5844
5850
  var s = G.createInput(t.insertKeyPlaceholderText),
5845
5851
  r = s.children[0],
5846
- o = Ss.create(r);
5852
+ o = _s.create(r);
5847
5853
  s.appendChild(o), i.appendChild(s);
5848
5854
  var a = G.createStartButton(),
5849
5855
  _G$createHelpTextCont = G.createHelpTextContainer(t.keyHelpUrl, (d = t.deepChat._insertKeyViewStyles) == null ? void 0 : d.displayCautionText),
@@ -5933,7 +5939,7 @@ var oe = /*#__PURE__*/function () {
5933
5939
  }();
5934
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";
5935
5941
  var wi = oe;
5936
- var cn = {
5942
+ var hn = {
5937
5943
  model_list: [
5938
5944
  // Llama-2
5939
5945
  {
@@ -6100,7 +6106,7 @@ var cn = {
6100
6106
  var t;
6101
6107
  ((t = this._webModel.introMessage) == null ? void 0 : t.autoScroll) !== !1 && setTimeout(function () {
6102
6108
  var i, s;
6103
- (i = _this19._messages) != null && i.elementRef && Y.scrollToTop((s = _this19._messages) == null ? void 0 : s.elementRef);
6109
+ (i = _this19._messages) != null && i.elementRef && Z.scrollToTop((s = _this19._messages) == null ? void 0 : s.elementRef);
6104
6110
  }, e);
6105
6111
  }
6106
6112
  // prettier-ignore
@@ -6192,7 +6198,7 @@ var cn = {
6192
6198
  }
6193
6199
  if (this._isModelLoaded || this._isModelLoading) return;
6194
6200
  var e = this._webModel.worker;
6195
- return cn.use_web_worker && e ? new window.webLLM.ChatWorkerClient(e) : new window.webLLM.ChatModule();
6201
+ return hn.use_web_worker && e ? new window.webLLM.ChatWorkerClient(e) : new window.webLLM.ChatModule();
6196
6202
  }
6197
6203
  }, {
6198
6204
  key: "getConfig",
@@ -6200,7 +6206,7 @@ var cn = {
6200
6206
  var i;
6201
6207
  var e = A.DEFAULT_MODEL;
6202
6208
  this._webModel.model && (e = this._webModel.model);
6203
- var t = JSON.parse(JSON.stringify(cn));
6209
+ var t = JSON.parse(JSON.stringify(hn));
6204
6210
  if (this._webModel.urls) {
6205
6211
  var s = t.model_list.find(function (r) {
6206
6212
  return r.local_id = e;
@@ -6232,7 +6238,7 @@ var cn = {
6232
6238
  sendUpdate: !1
6233
6239
  }), i && (setTimeout(function () {
6234
6240
  var p;
6235
- return Y.scrollToBottom((p = _this20._messages) == null ? void 0 : p.elementRef);
6241
+ return Z.scrollToBottom((p = _this20._messages) == null ? void 0 : p.elementRef);
6236
6242
  }), i = !1);
6237
6243
  };
6238
6244
  A.chat.setInitProgressCallback(s);
@@ -8703,7 +8709,7 @@ Gi.URL_SEGMENTS = {
8703
8709
  getFilesPrefix: "https://api.openai.com/v1/files/",
8704
8710
  getFilesPostfix: "/content"
8705
8711
  };
8706
- var _s = Gi;
8712
+ var xs = Gi;
8707
8713
  var Li = /*#__PURE__*/function () {
8708
8714
  function Li() {
8709
8715
  _classCallCheck(this, Li);
@@ -8738,17 +8744,17 @@ var Li = /*#__PURE__*/function () {
8738
8744
  }
8739
8745
  }]);
8740
8746
  }();
8741
- var Us = /*#__PURE__*/function (_z4) {
8742
- function Us(e, t, i, s, r) {
8747
+ var js = /*#__PURE__*/function (_z4) {
8748
+ function js(e, t, i, s, r) {
8743
8749
  var _this36;
8744
- _classCallCheck(this, Us);
8745
- _this36 = _callSuper(this, Us, [e, Li.buildKeyVerificationDetails(), Li.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);
8750
+ _classCallCheck(this, js);
8751
+ _this36 = _callSuper(this, js, [e, Li.buildKeyVerificationDetails(), Li.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);
8746
8752
  return _this36;
8747
8753
  }
8748
- _inherits(Us, _z4);
8749
- return _createClass(Us);
8754
+ _inherits(js, _z4);
8755
+ return _createClass(js);
8750
8756
  }(z);
8751
- var Xo = /*#__PURE__*/function (_Us) {
8757
+ var Xo = /*#__PURE__*/function (_js) {
8752
8758
  function Xo(e) {
8753
8759
  _classCallCheck(this, Xo);
8754
8760
  var s, r, o;
@@ -8756,7 +8762,7 @@ var Xo = /*#__PURE__*/function (_Us) {
8756
8762
  i = (o = e.directConnection) == null ? void 0 : o.cohere;
8757
8763
  return _callSuper(this, Xo, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
8758
8764
  }
8759
- _inherits(Xo, _Us);
8765
+ _inherits(Xo, _js);
8760
8766
  return _createClass(Xo, [{
8761
8767
  key: "preprocessBody",
8762
8768
  value: function preprocessBody(e, t) {
@@ -8822,12 +8828,12 @@ var Xo = /*#__PURE__*/function (_Us) {
8822
8828
  return extractResultData;
8823
8829
  }()
8824
8830
  }]);
8825
- }(Us);
8826
- var $s = /*#__PURE__*/function () {
8827
- function $s() {
8828
- _classCallCheck(this, $s);
8831
+ }(js);
8832
+ var Ks = /*#__PURE__*/function () {
8833
+ function Ks() {
8834
+ _classCallCheck(this, Ks);
8829
8835
  }
8830
- return _createClass($s, null, [{
8836
+ return _createClass(Ks, null, [{
8831
8837
  key: "buildHeaders",
8832
8838
  value: function buildHeaders(e) {
8833
8839
  return {
@@ -8854,8 +8860,8 @@ var $s = /*#__PURE__*/function () {
8854
8860
  }
8855
8861
  }]);
8856
8862
  }();
8857
- $s.URL_DETAILS_ERROR_MESSAGE = "Please define the Azure URL Details. [More Information](https://deepchat.dev/docs/directConnection/Azure)";
8858
- var ge = $s;
8863
+ Ks.URL_DETAILS_ERROR_MESSAGE = "Please define the Azure URL Details. [More Information](https://deepchat.dev/docs/directConnection/Azure)";
8864
+ var ge = Ks;
8859
8865
  var St = /*#__PURE__*/function (_Ri2) {
8860
8866
  function St(e) {
8861
8867
  var _b$headers;
@@ -8897,8 +8903,8 @@ var St = /*#__PURE__*/function (_Ri2) {
8897
8903
  return _createClass(St);
8898
8904
  }(Ri);
8899
8905
  St.THREAD_RESOURCE = "threads", St.NEW_ASSISTANT_RESOURCE = "assistants";
8900
- var xs = St;
8901
- var Qo = /*#__PURE__*/function (_Us2) {
8906
+ var ws = St;
8907
+ var Qo = /*#__PURE__*/function (_js2) {
8902
8908
  function Qo(e) {
8903
8909
  _classCallCheck(this, Qo);
8904
8910
  var s, r, o;
@@ -8906,7 +8912,7 @@ var Qo = /*#__PURE__*/function (_Us2) {
8906
8912
  i = (o = e.directConnection) == null ? void 0 : o.cohere;
8907
8913
  return _callSuper(this, Qo, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
8908
8914
  }
8909
- _inherits(Qo, _Us2);
8915
+ _inherits(Qo, _js2);
8910
8916
  return _createClass(Qo, [{
8911
8917
  key: "preprocessBody",
8912
8918
  value: function preprocessBody(e, t) {
@@ -8971,7 +8977,7 @@ var Qo = /*#__PURE__*/function (_Us2) {
8971
8977
  return extractResultData;
8972
8978
  }()
8973
8979
  }]);
8974
- }(Us);
8980
+ }(js);
8975
8981
  var R = /*#__PURE__*/function () {
8976
8982
  function R() {
8977
8983
  _classCallCheck(this, R);
@@ -9008,12 +9014,12 @@ var R = /*#__PURE__*/function () {
9008
9014
  }
9009
9015
  }]);
9010
9016
  }();
9011
- var Dn = "<?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";
9012
- var J = /*#__PURE__*/function () {
9013
- function J() {
9014
- _classCallCheck(this, J);
9017
+ var Fn = "<?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
+ var Y = /*#__PURE__*/function () {
9019
+ function Y() {
9020
+ _classCallCheck(this, Y);
9015
9021
  }
9016
- return _createClass(J, null, [{
9022
+ return _createClass(Y, null, [{
9017
9023
  key: "createTextElement",
9018
9024
  value: function createTextElement(e) {
9019
9025
  var t = document.createElement("div");
@@ -9022,15 +9028,15 @@ var J = /*#__PURE__*/function () {
9022
9028
  }, {
9023
9029
  key: "createElement",
9024
9030
  value: function createElement(e, t) {
9025
- return t ? J.createTextElement(e) : te.createSVGElement(e);
9031
+ return t ? Y.createTextElement(e) : ie.createSVGElement(e);
9026
9032
  }
9027
9033
  }, {
9028
9034
  key: "createCustomElement",
9029
9035
  value: function createCustomElement(e, t) {
9030
9036
  var s, r, o, a;
9031
9037
  var i = t == null ? void 0 : t[e];
9032
- if ((s = i == null ? void 0 : i.svg) != null && s.content) return J.createElement((r = i == null ? void 0 : i.svg) == null ? void 0 : r.content, !1);
9033
- if ((o = i == null ? void 0 : i.text) != null && o.content) return J.createElement((a = i == null ? void 0 : i.text) == null ? void 0 : a.content, !0);
9038
+ if ((s = i == null ? void 0 : i.svg) != null && s.content) return Y.createElement((r = i == null ? void 0 : i.svg) == null ? void 0 : r.content, !1);
9039
+ if ((o = i == null ? void 0 : i.text) != null && o.content) return Y.createElement((a = i == null ? void 0 : i.text) == null ? void 0 : a.content, !0);
9034
9040
  }
9035
9041
  }, {
9036
9042
  key: "processElement",
@@ -9043,7 +9049,7 @@ var J = /*#__PURE__*/function () {
9043
9049
  key: "createSpecificStateElement",
9044
9050
  value: function createSpecificStateElement(e, t, i) {
9045
9051
  var s;
9046
- return i && (s = J.createCustomElement(t, i)), J.processElement(e, s), s;
9052
+ return i && (s = Y.createCustomElement(t, i)), Y.processElement(e, s), s;
9047
9053
  }
9048
9054
  // https://github.com/OvidijusParsiunas/deep-chat/issues/175
9049
9055
  // isDropup here is only determined by the user and not when moved to dropup automatically
@@ -9053,15 +9059,15 @@ var J = /*#__PURE__*/function () {
9053
9059
  value: function createInnerElement(e, t, i, s) {
9054
9060
  var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !1;
9055
9061
  var o, a;
9056
- return r && !((a = (o = s == null ? void 0 : s[i]) == null ? void 0 : o.svg) != null && a.content) ? t : J.createSpecificStateElement(e, i, s) || t;
9062
+ return r && !((a = (o = s == null ? void 0 : s[i]) == null ? void 0 : o.svg) != null && a.content) ? t : Y.createSpecificStateElement(e, i, s) || t;
9057
9063
  }
9058
9064
  }]);
9059
9065
  }();
9060
- var K = /*#__PURE__*/function () {
9061
- function K() {
9062
- _classCallCheck(this, K);
9066
+ var W = /*#__PURE__*/function () {
9067
+ function W() {
9068
+ _classCallCheck(this, W);
9063
9069
  }
9064
- return _createClass(K, null, [{
9070
+ return _createClass(W, null, [{
9065
9071
  key: "unsetAllCSS",
9066
9072
  value: function unsetAllCSS(e, t) {
9067
9073
  var i, s;
@@ -9082,7 +9088,7 @@ var K = /*#__PURE__*/function () {
9082
9088
  }, {
9083
9089
  key: "setElementCssUpToState",
9084
9090
  value: function setElementCssUpToState(e, t, i) {
9085
- K.setElementsCSS(e, t, "default"), i !== "default" && (K.setElementsCSS(e, t, "hover"), i !== "hover" && K.setElementsCSS(e, t, "click"));
9091
+ W.setElementsCSS(e, t, "default"), i !== "default" && (W.setElementsCSS(e, t, "hover"), i !== "hover" && W.setElementsCSS(e, t, "click"));
9086
9092
  }
9087
9093
  }]);
9088
9094
  }();
@@ -9096,22 +9102,22 @@ var Lt = /*#__PURE__*/function () {
9096
9102
  return _createClass(Lt, [{
9097
9103
  key: "buttonMouseLeave",
9098
9104
  value: function buttonMouseLeave(e) {
9099
- this._mouseState.state = "default", e && (K.unsetAllCSS(this.elementRef, e), K.setElementsCSS(this.elementRef, e, "default"));
9105
+ this._mouseState.state = "default", e && (W.unsetAllCSS(this.elementRef, e), W.setElementsCSS(this.elementRef, e, "default"));
9100
9106
  }
9101
9107
  }, {
9102
9108
  key: "buttonMouseEnter",
9103
9109
  value: function buttonMouseEnter(e) {
9104
- this._mouseState.state = "hover", e && K.setElementsCSS(this.elementRef, e, "hover");
9110
+ this._mouseState.state = "hover", e && W.setElementsCSS(this.elementRef, e, "hover");
9105
9111
  }
9106
9112
  }, {
9107
9113
  key: "buttonMouseUp",
9108
9114
  value: function buttonMouseUp(e) {
9109
- e && K.unsetActionCSS(this.elementRef, e), this.buttonMouseEnter(e);
9115
+ e && W.unsetActionCSS(this.elementRef, e), this.buttonMouseEnter(e);
9110
9116
  }
9111
9117
  }, {
9112
9118
  key: "buttonMouseDown",
9113
9119
  value: function buttonMouseDown(e) {
9114
- this._mouseState.state = "click", e && K.setElementsCSS(this.elementRef, e, "click");
9120
+ this._mouseState.state = "click", e && W.setElementsCSS(this.elementRef, e, "click");
9115
9121
  }
9116
9122
  // be careful not to use onclick as that is used for button functionality
9117
9123
  }, {
@@ -9125,7 +9131,7 @@ var Lt = /*#__PURE__*/function () {
9125
9131
  if (this._customStyles) for (var t = 0; t < e.length; t += 1) {
9126
9132
  var _i10 = e[t],
9127
9133
  s = _i10 && this._customStyles[_i10];
9128
- s && K.unsetActionCSS(this.elementRef, s);
9134
+ s && W.unsetActionCSS(this.elementRef, s);
9129
9135
  }
9130
9136
  }
9131
9137
  }, {
@@ -9134,7 +9140,7 @@ var Lt = /*#__PURE__*/function () {
9134
9140
  if (!this._customStyles) return;
9135
9141
  t && this.unsetCustomStateStyles(t);
9136
9142
  var i = this._customStyles[e];
9137
- i && K.setElementCssUpToState(this.elementRef, i, this._mouseState.state), this.setEvents(i);
9143
+ i && W.setElementCssUpToState(this.elementRef, i, this._mouseState.state), this.setEvents(i);
9138
9144
  }
9139
9145
  }]);
9140
9146
  }();
@@ -9150,7 +9156,7 @@ var $t = /*#__PURE__*/function (_Lt) {
9150
9156
  key: "createInnerElements",
9151
9157
  value: function createInnerElements(e) {
9152
9158
  var i, s;
9153
- var t = te.createSVGElement(((s = (i = e == null ? void 0 : e["default"]) == null ? void 0 : i.svg) == null ? void 0 : s.content) || $t.EMPTY_SVG);
9159
+ var t = ie.createSVGElement(((s = (i = e == null ? void 0 : e["default"]) == null ? void 0 : i.svg) == null ? void 0 : s.content) || $t.EMPTY_SVG);
9154
9160
  return {
9155
9161
  "default": this.createInnerElement(t, "default", e),
9156
9162
  active: this.createInnerElement(t, "active", e),
@@ -9161,7 +9167,7 @@ var $t = /*#__PURE__*/function (_Lt) {
9161
9167
  }, {
9162
9168
  key: "createInnerElement",
9163
9169
  value: function createInnerElement(e, t, i) {
9164
- return J.createSpecificStateElement(this.elementRef, t, i) || e;
9170
+ return Y.createSpecificStateElement(this.elementRef, t, i) || e;
9165
9171
  }
9166
9172
  }, {
9167
9173
  key: "changeToActive",
@@ -9172,13 +9178,13 @@ var $t = /*#__PURE__*/function (_Lt) {
9172
9178
  key: "changeToDefault",
9173
9179
  value: function changeToDefault() {
9174
9180
  var e, t, i, s;
9175
- this.elementRef.replaceChildren(this._innerElements["default"]), (e = this._customStyles) != null && e.active && K.unsetAllCSS(this.elementRef, (t = this._customStyles) == null ? void 0 : t.active), (i = this._customStyles) != null && i.unavailable && K.unsetAllCSS(this.elementRef, (s = this._customStyles) == null ? void 0 : s.unavailable), this.reapplyStateStyle("default", ["active", "unavailable"]), this.isActive = !1;
9181
+ this.elementRef.replaceChildren(this._innerElements["default"]), (e = this._customStyles) != null && e.active && W.unsetAllCSS(this.elementRef, (t = this._customStyles) == null ? void 0 : t.active), (i = this._customStyles) != null && i.unavailable && W.unsetAllCSS(this.elementRef, (s = this._customStyles) == null ? void 0 : s.unavailable), this.reapplyStateStyle("default", ["active", "unavailable"]), this.isActive = !1;
9176
9182
  }
9177
9183
  }, {
9178
9184
  key: "changeToUnavailable",
9179
9185
  value: function changeToUnavailable() {
9180
9186
  var e, t, i, s;
9181
- this.elementRef.replaceChildren(this._innerElements.unavailable), (e = this._customStyles) != null && e.active && K.unsetAllCSS(this.elementRef, (t = this._customStyles) == null ? void 0 : t.active), (i = this._customStyles) != null && i["default"] && K.unsetAllCSS(this.elementRef, (s = this._customStyles) == null ? void 0 : s["default"]), this.reapplyStateStyle("unavailable", ["default", "active"]), this.isActive = !1;
9187
+ this.elementRef.replaceChildren(this._innerElements.unavailable), (e = this._customStyles) != null && e.active && W.unsetAllCSS(this.elementRef, (t = this._customStyles) == null ? void 0 : t.active), (i = this._customStyles) != null && i["default"] && W.unsetAllCSS(this.elementRef, (s = this._customStyles) == null ? void 0 : s["default"]), this.reapplyStateStyle("unavailable", ["default", "active"]), this.isActive = !1;
9182
9188
  }
9183
9189
  }], [{
9184
9190
  key: "createButtonElement",
@@ -9190,38 +9196,38 @@ var $t = /*#__PURE__*/function (_Lt) {
9190
9196
  }(Lt);
9191
9197
  $t.EMPTY_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"></svg>';
9192
9198
  var Ii = $t;
9193
- var W = /*#__PURE__*/function () {
9194
- function W() {
9195
- _classCallCheck(this, W);
9199
+ var J = /*#__PURE__*/function () {
9200
+ function J() {
9201
+ _classCallCheck(this, J);
9196
9202
  }
9197
- return _createClass(W, null, [{
9203
+ return _createClass(J, null, [{
9198
9204
  key: "setPropertyValueIfDoesNotExist",
9199
9205
  value: function setPropertyValueIfDoesNotExist(e, t, i) {
9200
9206
  var _e$s, _e$s2;
9201
9207
  var s = t[0];
9202
- t.length === 1 ? (_e$s = e[s]) !== null && _e$s !== void 0 ? _e$s : e[s] = i : ((_e$s2 = e[s]) !== null && _e$s2 !== void 0 ? _e$s2 : e[s] = {}, t.shift(), W.setPropertyValueIfDoesNotExist(e[s], t, i));
9208
+ t.length === 1 ? (_e$s = e[s]) !== null && _e$s !== void 0 ? _e$s : e[s] = i : ((_e$s2 = e[s]) !== null && _e$s2 !== void 0 ? _e$s2 : e[s] = {}, t.shift(), J.setPropertyValueIfDoesNotExist(e[s], t, i));
9203
9209
  }
9204
9210
  }, {
9205
9211
  key: "setPropertyValue",
9206
9212
  value: function setPropertyValue(e, t, i) {
9207
9213
  var _e$s3;
9208
9214
  var s = t[0];
9209
- t.length === 1 ? e[s] = i : ((_e$s3 = e[s]) !== null && _e$s3 !== void 0 ? _e$s3 : e[s] = {}, t.shift(), W.setPropertyValue(e[s], t, i));
9215
+ t.length === 1 ? e[s] = i : ((_e$s3 = e[s]) !== null && _e$s3 !== void 0 ? _e$s3 : e[s] = {}, t.shift(), J.setPropertyValue(e[s], t, i));
9210
9216
  }
9211
9217
  }, {
9212
9218
  key: "getObjectValue",
9213
9219
  value: function getObjectValue(e, t) {
9214
9220
  var i = t[0],
9215
9221
  s = e[i];
9216
- return s === void 0 || t.length === 1 ? s : W.getObjectValue(s, t.slice(1));
9222
+ return s === void 0 || t.length === 1 ? s : J.getObjectValue(s, t.slice(1));
9217
9223
  }
9218
9224
  }, {
9219
9225
  key: "overwritePropertyObjectFromAnother",
9220
9226
  value: function overwritePropertyObjectFromAnother(e, t, i) {
9221
- var s = W.getObjectValue(t, i);
9227
+ var s = J.getObjectValue(t, i);
9222
9228
  if (s) {
9223
- var r = _objectSpread(_objectSpread({}, s), W.getObjectValue(e, i) || {});
9224
- W.setPropertyValue(e, i, r);
9229
+ var r = _objectSpread(_objectSpread({}, s), J.getObjectValue(e, i) || {});
9230
+ J.setPropertyValue(e, i, r);
9225
9231
  }
9226
9232
  }
9227
9233
  }, {
@@ -9235,8 +9241,8 @@ var W = /*#__PURE__*/function () {
9235
9241
  }
9236
9242
  }]);
9237
9243
  }();
9238
- var Fn = "<?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>",
9239
- ws = "<?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>",
9244
+ var Un = "<?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>",
9245
+ As = "<?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>",
9240
9246
  T = /*#__PURE__*/function (_z5) {
9241
9247
  function T(e) {
9242
9248
  var _l$model;
@@ -9829,7 +9835,7 @@ var Fn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9829
9835
  });
9830
9836
  case 4:
9831
9837
  r = _context93.sent;
9832
- if (!(_typeof(r) != "object" || !W.isJson(r))) {
9838
+ if (!(_typeof(r) != "object" || !J.isJson(r))) {
9833
9839
  _context93.next = 7;
9834
9840
  break;
9835
9841
  }
@@ -9886,14 +9892,14 @@ var Fn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9886
9892
  var _t$microphone, _o$default, _a$svg, _t$toggle, _h$default, _f$svg, _u$active, _m$svg;
9887
9893
  var i, s, r, o, a, l, c, d, h, f, u, m;
9888
9894
  var t = _typeof(e) == "object" && e.buttons ? structuredClone(e.buttons) : {};
9889
- 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 = Dn), (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 = {}, (_h$default = (h = t.toggle)["default"]) !== null && _h$default !== void 0 ? _h$default : h["default"] = {}, (_f$svg = (f = t.toggle["default"]).svg) !== null && _f$svg !== void 0 ? _f$svg : f.svg = {}, t.toggle["default"].svg.content = Fn, (_u$active = (u = t.toggle).active) !== null && _u$active !== void 0 ? _u$active : u.active = {}, (_m$svg = (m = t.toggle.active).svg) !== null && _m$svg !== void 0 ? _m$svg : m.svg = {}, t.toggle.active.svg.content = ws), t;
9895
+ 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 = Fn), (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 = {}, (_h$default = (h = t.toggle)["default"]) !== null && _h$default !== void 0 ? _h$default : h["default"] = {}, (_f$svg = (f = t.toggle["default"]).svg) !== null && _f$svg !== void 0 ? _f$svg : f.svg = {}, t.toggle["default"].svg.content = Un, (_u$active = (u = t.toggle).active) !== null && _u$active !== void 0 ? _u$active : u.active = {}, (_m$svg = (m = t.toggle.active).svg) !== null && _m$svg !== void 0 ? _m$svg : m.svg = {}, t.toggle.active.svg.content = As), t;
9890
9896
  }
9891
9897
  }, {
9892
9898
  key: "createAvatar",
9893
9899
  value: function createAvatar(e) {
9894
9900
  var i;
9895
9901
  var t = document.createElement("img");
9896
- 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) || Bn, t;
9902
+ 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) || ys, t;
9897
9903
  }
9898
9904
  }, {
9899
9905
  key: "createButtonContainer",
@@ -9919,7 +9925,7 @@ var Fn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9919
9925
  }]);
9920
9926
  }(z);
9921
9927
  T.BUTTON_DEFAULT = "deep-chat-openai-realtime-button-default", T.BUTTON_LOADING = "deep-chat-openai-realtime-button-loading", T.MUTE_ACTIVE = "deep-chat-openai-realtime-mute-active", T.UNAVAILABLE = "deep-chat-openai-realtime-button-unavailable";
9922
- var As = T;
9928
+ var Ts = T;
9923
9929
  var _t = /*#__PURE__*/function (_z6) {
9924
9930
  function _t(e) {
9925
9931
  var _o$model, _a$voice;
@@ -10016,7 +10022,7 @@ var _t = /*#__PURE__*/function (_z6) {
10016
10022
  }]);
10017
10023
  }(z);
10018
10024
  _t.DEFAULT_MODEL = "tts-1", _t.DEFAULT_VOIDE = "alloy";
10019
- var Ts = _t;
10025
+ var Cs = _t;
10020
10026
  var ye = /*#__PURE__*/function (_z7) {
10021
10027
  function ye(e) {
10022
10028
  var _o$model2;
@@ -10129,7 +10135,7 @@ var ye = /*#__PURE__*/function (_z7) {
10129
10135
  }]);
10130
10136
  }(z);
10131
10137
  ye.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", ye.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", ye.DEFAULT_MODEL = "whisper-1";
10132
- var Cs = ye;
10138
+ var Ms = ye;
10133
10139
  var be = /*#__PURE__*/function () {
10134
10140
  function be() {
10135
10141
  _classCallCheck(this, be);
@@ -10406,7 +10412,7 @@ var Kt = /*#__PURE__*/function (_ea) {
10406
10412
  Kt.ENDPOINT_ERROR_MESSAGE =
10407
10413
  // eslint-disable-next-line max-len
10408
10414
  "Please define the azure endpoint. [More Information](https://deepchat.dev/docs/directConnection/Azure#Summarization)";
10409
- var Ms = Kt;
10415
+ var ks = Kt;
10410
10416
  var Ut = /*#__PURE__*/function () {
10411
10417
  function Ut() {
10412
10418
  _classCallCheck(this, Ut);
@@ -10512,19 +10518,19 @@ var Ut = /*#__PURE__*/function () {
10512
10518
  }
10513
10519
  }]);
10514
10520
  }();
10515
- var js = /*#__PURE__*/function (_z9) {
10516
- function js(e) {
10521
+ var Hs = /*#__PURE__*/function (_z9) {
10522
+ function Hs(e) {
10517
10523
  var _this48;
10518
- _classCallCheck(this, js);
10524
+ _classCallCheck(this, Hs);
10519
10525
  var i;
10520
10526
  var t = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
10521
- _this48 = _callSuper(this, js, [e, Ut.buildKeyVerificationDetails(), Ut.buildHeaders, t, {
10527
+ _this48 = _callSuper(this, Hs, [e, Ut.buildKeyVerificationDetails(), Ut.buildHeaders, t, {
10522
10528
  audio: {}
10523
- }]), _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 = js.canFileSendMessage;
10529
+ }]), _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 = Hs.canFileSendMessage;
10524
10530
  return _this48;
10525
10531
  }
10526
- _inherits(js, _z9);
10527
- return _createClass(js, [{
10532
+ _inherits(Hs, _z9);
10533
+ return _createClass(Hs, [{
10528
10534
  key: "callServiceAPI",
10529
10535
  value: function () {
10530
10536
  var _callServiceAPI15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee102(e, t, i) {
@@ -10596,20 +10602,20 @@ var js = /*#__PURE__*/function (_z9) {
10596
10602
  }
10597
10603
  }]);
10598
10604
  }(z);
10599
- var Un = /*#__PURE__*/function (_z10) {
10605
+ var jn = /*#__PURE__*/function (_z10) {
10600
10606
  // prettier-ignore
10601
- function Un(e, t, i, s, r) {
10607
+ function jn(e, t, i, s, r) {
10602
10608
  var _this49;
10603
- _classCallCheck(this, Un);
10604
- _this49 = _callSuper(this, Un, [e, be.buildSpeechKeyVerificationDetails(i), t, s, r]), _this49.insertKeyPlaceholderText = "Azure Speech Subscription Key", _this49.keyHelpUrl =
10609
+ _classCallCheck(this, jn);
10610
+ _this49 = _callSuper(this, jn, [e, be.buildSpeechKeyVerificationDetails(i), t, s, r]), _this49.insertKeyPlaceholderText = "Azure Speech Subscription Key", _this49.keyHelpUrl =
10605
10611
  // eslint-disable-next-line max-len
10606
10612
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal";
10607
10613
  return _this49;
10608
10614
  }
10609
- _inherits(Un, _z10);
10610
- return _createClass(Un);
10615
+ _inherits(jn, _z10);
10616
+ return _createClass(jn);
10611
10617
  }(z);
10612
- var tt = /*#__PURE__*/function (_Un) {
10618
+ var tt = /*#__PURE__*/function (_jn) {
10613
10619
  // prettier-ignore
10614
10620
  function tt(e) {
10615
10621
  var _a$lang, _l$name, _c$gender;
@@ -10627,7 +10633,7 @@ var tt = /*#__PURE__*/function (_Un) {
10627
10633
  }));
10628
10634
  return _this50;
10629
10635
  }
10630
- _inherits(tt, _Un);
10636
+ _inherits(tt, _jn);
10631
10637
  return _createClass(tt, [{
10632
10638
  key: "preprocessBody",
10633
10639
  value: function preprocessBody(e, t) {
@@ -10691,14 +10697,14 @@ var tt = /*#__PURE__*/function (_Un) {
10691
10697
  return extractResultData;
10692
10698
  }()
10693
10699
  }]);
10694
- }(Un);
10700
+ }(jn);
10695
10701
  tt.HELP_LINK =
10696
10702
  // eslint-disable-next-line max-len
10697
10703
  "https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest", tt.REGION_ERROR_MESSAGE =
10698
10704
  // eslint-disable-next-line max-len
10699
10705
  "Please define a region config property. [More Information](https://deepchat.dev/docs/directConnection/Azure#TextToSpeech)";
10700
- var ks = tt;
10701
- var Ge = /*#__PURE__*/function (_Un2) {
10706
+ var Rs = tt;
10707
+ var Ge = /*#__PURE__*/function (_jn2) {
10702
10708
  function Ge(e) {
10703
10709
  var _this51;
10704
10710
  _classCallCheck(this, Ge);
@@ -10725,7 +10731,7 @@ var Ge = /*#__PURE__*/function (_Un2) {
10725
10731
  }
10726
10732
  return _this51;
10727
10733
  }
10728
- _inherits(Ge, _Un2);
10734
+ _inherits(Ge, _jn2);
10729
10735
  return _createClass(Ge, [{
10730
10736
  key: "callServiceAPI",
10731
10737
  value: function () {
@@ -10791,13 +10797,13 @@ var Ge = /*#__PURE__*/function (_Un2) {
10791
10797
  return !!(t != null && t[0]);
10792
10798
  }
10793
10799
  }]);
10794
- }(Un);
10800
+ }(jn);
10795
10801
  Ge.HELP_LINK =
10796
10802
  // eslint-disable-next-line max-len
10797
10803
  "https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest", Ge.REGION_ERROR_MESSAGE =
10798
10804
  // eslint-disable-next-line max-len
10799
10805
  "Please define a region config property. [More Information](https://deepchat.dev/docs/directConnection/Azure#SpeechToText)";
10800
- var Rs = Ge;
10806
+ var Ls = Ge;
10801
10807
  var ta = /*#__PURE__*/function (_z11) {
10802
10808
  // prettier-ignore
10803
10809
  function ta(e) {
@@ -11172,21 +11178,21 @@ var wt = /*#__PURE__*/function (_z12) {
11172
11178
  }
11173
11179
  }]);
11174
11180
  }(z);
11175
- var Hs = /*#__PURE__*/function (_wt) {
11176
- function Hs(e) {
11181
+ var qs = /*#__PURE__*/function (_wt) {
11182
+ function qs(e) {
11177
11183
  var _this55;
11178
- _classCallCheck(this, Hs);
11184
+ _classCallCheck(this, qs);
11179
11185
  var o, a, l, c, d, h, f;
11180
11186
  var t = JSON.parse(JSON.stringify(e.directConnection)),
11181
11187
  i = t.azure,
11182
11188
  s = ((a = (o = t.azure) == null ? void 0 : o.openAI) == null ? void 0 : a.urlDetails) || {},
11183
11189
  r = (c = (l = t.azure) == null ? void 0 : l.openAI) == null ? void 0 : c.chat;
11184
- if (_this55 = _callSuper(this, Hs, [e, ge.buildKeyVerificationDetails(s), ge.buildHeaders, i, r]), _this55.permittedErrorPrefixes = [ge.URL_DETAILS_ERROR_MESSAGE], _this55.isTextInputDisabled = !1, _typeof(r) == "object") {
11190
+ if (_this55 = _callSuper(this, qs, [e, ge.buildKeyVerificationDetails(s), ge.buildHeaders, i, r]), _this55.permittedErrorPrefixes = [ge.URL_DETAILS_ERROR_MESSAGE], _this55.isTextInputDisabled = !1, _typeof(r) == "object") {
11185
11191
  var _ref31 = (f = (h = (d = e.directConnection) == null ? void 0 : d.azure) == null ? void 0 : h.openAI) == null ? void 0 : f.chat,
11186
11192
  u = _ref31.function_handler;
11187
11193
  u && (_this55._functionHandler = u);
11188
11194
  }
11189
- ge.validateURLDetails(s) ? _this55.url = Hs.buildURL(s) : (_this55.isTextInputDisabled = !0, _this55.canSendMessage = function () {
11195
+ ge.validateURLDetails(s) ? _this55.url = qs.buildURL(s) : (_this55.isTextInputDisabled = !0, _this55.canSendMessage = function () {
11190
11196
  return !1;
11191
11197
  }, setTimeout(function () {
11192
11198
  e.addMessage({
@@ -11195,8 +11201,8 @@ var Hs = /*#__PURE__*/function (_wt) {
11195
11201
  }));
11196
11202
  return _this55;
11197
11203
  }
11198
- _inherits(Hs, _wt);
11199
- return _createClass(Hs, null, [{
11204
+ _inherits(qs, _wt);
11205
+ return _createClass(qs, null, [{
11200
11206
  key: "buildURL",
11201
11207
  value: function buildURL(e) {
11202
11208
  var t = e.endpoint,
@@ -11357,8 +11363,8 @@ var Ee = /*#__PURE__*/function (_z13) {
11357
11363
  }]);
11358
11364
  }(z);
11359
11365
  Ee.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", Ee.IMAGE_VARIATIONS_URL = "https://api.openai.com/v1/images/variations", Ee.IMAGE_EDIT_URL = "https://api.openai.com/v1/images/edits";
11360
- var Ls = Ee;
11361
- var ia = /*#__PURE__*/function (_Us3) {
11366
+ var Is = Ee;
11367
+ var ia = /*#__PURE__*/function (_js3) {
11362
11368
  function ia(e) {
11363
11369
  var _this57$maxMessages;
11364
11370
  var _this57;
@@ -11370,7 +11376,7 @@ var ia = /*#__PURE__*/function (_Us3) {
11370
11376
  _this57 = _callSuper(this, ia, [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;
11371
11377
  return _this57;
11372
11378
  }
11373
- _inherits(ia, _Us3);
11379
+ _inherits(ia, _js3);
11374
11380
  return _createClass(ia, [{
11375
11381
  key: "preprocessBody",
11376
11382
  value: function preprocessBody(e, t) {
@@ -11440,7 +11446,7 @@ var ia = /*#__PURE__*/function (_Us3) {
11440
11446
  return extractResultData;
11441
11447
  }()
11442
11448
  }]);
11443
- }(Us);
11449
+ }(js);
11444
11450
  var Pi = /*#__PURE__*/function () {
11445
11451
  function Pi() {
11446
11452
  _classCallCheck(this, Pi);
@@ -11574,18 +11580,18 @@ var na = /*#__PURE__*/function () {
11574
11580
  r = e.webModel;
11575
11581
  if (r) return new Qt(e);
11576
11582
  if (t) {
11577
- if (t.openAI) return t.openAI.images ? new Ls(e) : t.openAI.speechToText ? new Cs(e) : t.openAI.textToSpeech ? new Ts(e) : t.openAI.assistant ? new _s(e) : t.openAI.realtime ? new As(e) : new wt(e);
11578
- if (t.assemblyAI) return new js(e);
11583
+ if (t.openAI) return t.openAI.images ? new Is(e) : t.openAI.speechToText ? new Ms(e) : t.openAI.textToSpeech ? new Cs(e) : t.openAI.assistant ? new xs(e) : t.openAI.realtime ? new Ts(e) : new wt(e);
11584
+ if (t.assemblyAI) return new Hs(e);
11579
11585
  if (t.cohere) return t.cohere.textGeneration ? new Xo(e) : t.cohere.summarization ? new Qo(e) : new ia(e);
11580
11586
  if (t.huggingFace) return t.huggingFace.textGeneration ? new $o(e) : t.huggingFace.summarization ? new Wo(e) : t.huggingFace.translation ? new Yo(e) : t.huggingFace.fillMask ? new Zo(e) : t.huggingFace.questionAnswer ? new Ko(e) : t.huggingFace.audioSpeechRecognition ? new Vo(e) : t.huggingFace.audioClassification ? new zo(e) : t.huggingFace.imageClassification ? new Go(e) : new Jo(e);
11581
11587
  if (t.azure) {
11582
11588
  if (t.azure.openAI) {
11583
- if (t.azure.openAI.chat) return new Hs(e);
11584
- if (t.azure.openAI.assistant) return new xs(e);
11589
+ if (t.azure.openAI.chat) return new qs(e);
11590
+ if (t.azure.openAI.assistant) return new ws(e);
11585
11591
  }
11586
- if (t.azure.speechToText) return new Rs(e);
11587
- if (t.azure.textToSpeech) return new ks(e);
11588
- if (t.azure.summarization) return new Ms(e);
11592
+ if (t.azure.speechToText) return new Ls(e);
11593
+ if (t.azure.textToSpeech) return new Rs(e);
11594
+ if (t.azure.summarization) return new ks(e);
11589
11595
  if (t.azure.translation) return new ta(e);
11590
11596
  }
11591
11597
  if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Mi(e) : t.stabilityAI.imageToImageUpscale ? new Ti(e) : t.stabilityAI.imageToImageMasking ? new Ci(e) : new ki(e);
@@ -11595,10 +11601,10 @@ var na = /*#__PURE__*/function () {
11595
11601
  }
11596
11602
  }]);
11597
11603
  }();
11598
- var Ks = /*#__PURE__*/_createClass(function Ks() {
11599
- _classCallCheck(this, Ks);
11604
+ var Ws = /*#__PURE__*/_createClass(function Ws() {
11605
+ _classCallCheck(this, Ws);
11600
11606
  });
11601
- Ks.attibutes = {
11607
+ Ws.attibutes = {
11602
11608
  string: function string(e) {
11603
11609
  return e;
11604
11610
  },
@@ -11618,13 +11624,13 @@ Ks.attibutes = {
11618
11624
  return new Function("return ".concat(e))();
11619
11625
  }
11620
11626
  };
11621
- var Is = Ks;
11627
+ var Ps = Ws;
11622
11628
  function _(n) {
11623
11629
  return function (e, t) {
11624
11630
  Object.defineProperty(e, t, {});
11625
11631
  var i = e.constructor,
11626
11632
  s = t.toLocaleLowerCase();
11627
- i._attributes_[s] = Is.attibutes[n], i._attributeToProperty_[s] = t;
11633
+ i._attributes_[s] = Ps.attibutes[n], i._attributeToProperty_[s] = t;
11628
11634
  };
11629
11635
  }
11630
11636
  var Oi = /*#__PURE__*/function () {
@@ -11663,11 +11669,11 @@ var Oi = /*#__PURE__*/function () {
11663
11669
  }]);
11664
11670
  }();
11665
11671
  var ra = "<?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>",
11666
- V = /*#__PURE__*/function () {
11667
- function V() {
11668
- _classCallCheck(this, V);
11672
+ $ = /*#__PURE__*/function () {
11673
+ function $() {
11674
+ _classCallCheck(this, $);
11669
11675
  }
11670
- return _createClass(V, null, [{
11676
+ return _createClass($, null, [{
11671
11677
  key: "createImage",
11672
11678
  value: function createImage(e, t, i) {
11673
11679
  var s = new Image();
@@ -11677,9 +11683,9 @@ var ra = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11677
11683
  }, {
11678
11684
  key: "createImageMessage",
11679
11685
  value: function createImageMessage(e, t, i, s) {
11680
- var r = V.createImage(t, e.elementRef, !s && !e.focusMode),
11686
+ var r = $.createImage(t, e.elementRef, !s && !e.focusMode),
11681
11687
  o = e.createNewMessageElement("", i);
11682
- return o.bubbleElement.appendChild(r), o.bubbleElement.classList.add(V.IMAGE_BUBBLE_CLASS), {
11688
+ return o.bubbleElement.appendChild(r), o.bubbleElement.classList.add($.IMAGE_BUBBLE_CLASS), {
11683
11689
  type: "image",
11684
11690
  elements: o
11685
11691
  };
@@ -11693,9 +11699,9 @@ var ra = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11693
11699
  }, {
11694
11700
  key: "createNewAudioMessage",
11695
11701
  value: function createNewAudioMessage(e, t, i, s) {
11696
- var r = V.createAudioElement(t, i),
11702
+ var r = $.createAudioElement(t, i),
11697
11703
  o = e.createMessageElementsOnOrientation("", i, s);
11698
- return o.bubbleElement.appendChild(r), o.bubbleElement.classList.add(V.AUDIO_BUBBLE_CLASS), {
11704
+ return o.bubbleElement.appendChild(r), o.bubbleElement.classList.add($.AUDIO_BUBBLE_CLASS), {
11699
11705
  type: "audio",
11700
11706
  elements: o
11701
11707
  };
@@ -11707,7 +11713,7 @@ var ra = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11707
11713
  t.classList.add("any-file-message-contents");
11708
11714
  var i = document.createElement("div");
11709
11715
  i.classList.add("any-file-message-icon-container");
11710
- var s = te.createSVGElement(ra);
11716
+ var s = ie.createSVGElement(ra);
11711
11717
  s.classList.add("any-file-message-icon"), i.appendChild(s);
11712
11718
  var r = document.createElement("div");
11713
11719
  return r.classList.add("any-file-message-text"), r.textContent = e.name || q.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), q.processContent("any", t, e.src, r.textContent);
@@ -11716,8 +11722,8 @@ var ra = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11716
11722
  key: "createNewAnyFileMessage",
11717
11723
  value: function createNewAnyFileMessage(e, t, i, s) {
11718
11724
  var r = e.createMessageElementsOnOrientation("", i, s),
11719
- o = V.createAnyFile(t);
11720
- return r.bubbleElement.classList.add(V.ANY_FILE_BUBBLE_CLASS), r.bubbleElement.appendChild(o), {
11725
+ o = $.createAnyFile(t);
11726
+ return r.bubbleElement.classList.add($.ANY_FILE_BUBBLE_CLASS), r.bubbleElement.appendChild(o), {
11721
11727
  type: "file",
11722
11728
  elements: r
11723
11729
  };
@@ -11727,14 +11733,14 @@ var ra = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11727
11733
  value: function createMessages(e, t, i) {
11728
11734
  var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
11729
11735
  return t.map(function (r) {
11730
- return r.ref && (r = q.removeFileRef(r)), q.isAudioFile(r) ? V.createNewAudioMessage(e, r, i, s) : q.isImageFile(r) ? V.createImageMessage(e, r, i, s) : V.createNewAnyFileMessage(e, r, i, s);
11736
+ return r.ref && (r = q.removeFileRef(r)), q.isAudioFile(r) ? $.createNewAudioMessage(e, r, i, s) : q.isImageFile(r) ? $.createImageMessage(e, r, i, s) : $.createNewAnyFileMessage(e, r, i, s);
11731
11737
  });
11732
11738
  }
11733
11739
  // no overwrite previous message logic as it is complex to track which files are to be overwritten
11734
11740
  }, {
11735
11741
  key: "addMessages",
11736
11742
  value: function addMessages(e, t, i, s) {
11737
- V.createMessages(e, t, i, s).forEach(function (_ref32) {
11743
+ $.createMessages(e, t, i, s).forEach(function (_ref32) {
11738
11744
  var o = _ref32.type,
11739
11745
  a = _ref32.elements;
11740
11746
  q.addMessage(e, a, o, i, s);
@@ -11742,8 +11748,8 @@ var ra = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
11742
11748
  }
11743
11749
  }]);
11744
11750
  }();
11745
- V.IMAGE_BUBBLE_CLASS = "image-message", V.AUDIO_BUBBLE_CLASS = "audio-message", V.ANY_FILE_BUBBLE_CLASS = "any-file-message";
11746
- var Ni = V;
11751
+ $.IMAGE_BUBBLE_CLASS = "image-message", $.AUDIO_BUBBLE_CLASS = "audio-message", $.ANY_FILE_BUBBLE_CLASS = "any-file-message";
11752
+ var Ni = $;
11747
11753
  var de = /*#__PURE__*/function () {
11748
11754
  function de() {
11749
11755
  _classCallCheck(this, de);
@@ -11872,13 +11878,13 @@ var pe = /*#__PURE__*/function (_me) {
11872
11878
  var s = t.permittedErrorPrefixes,
11873
11879
  r = t.introPanelMarkUp,
11874
11880
  o = t.demo;
11875
- _this59._errorMessageOverrides = (a = e.errorMessages) == null ? void 0 : a.overrides, _this59._onClearMessages = Si.onClearMessages.bind(_this59, e), _this59._onError = Si.onError.bind(_this59, e), _this59._isLoadingMessageAllowed = pe.getDefaultDisplayLoadingMessage(e, t), _typeof(e.displayLoadingBubble) == "object" && e.displayLoadingBubble.toggle && (e.displayLoadingBubble.toggle = _this59.setLoadingToggle.bind(_this59)), _this59._permittedErrorPrefixes = s, _this59.addSetupMessageIfNeeded(e, t) || _this59.populateIntroPanel(i, r, e.introPanelStyle), o && _this59.prepareDemo(ie.processDemo(o), e.loadHistory), _this59.addIntroductoryMessages(e, t), new Xt(e, _this59, t), _this59._displayServiceErrorMessages = (l = e.errorMessages) == null ? void 0 : l.displayServiceErrorMessages, e.getMessages = function () {
11881
+ _this59._errorMessageOverrides = (a = e.errorMessages) == null ? void 0 : a.overrides, _this59._onClearMessages = Si.onClearMessages.bind(_this59, e), _this59._onError = Si.onError.bind(_this59, e), _this59._isLoadingMessageAllowed = pe.getDefaultDisplayLoadingMessage(e, t), _typeof(e.displayLoadingBubble) == "object" && e.displayLoadingBubble.toggle && (e.displayLoadingBubble.toggle = _this59.setLoadingToggle.bind(_this59)), _this59._permittedErrorPrefixes = s, _this59.addSetupMessageIfNeeded(e, t) || _this59.populateIntroPanel(i, r, e.introPanelStyle), o && _this59.prepareDemo(se.processDemo(o), e.loadHistory), _this59.addIntroductoryMessages(e, t), new Xt(e, _this59, t), _this59._displayServiceErrorMessages = (l = e.errorMessages) == null ? void 0 : l.displayServiceErrorMessages, e.getMessages = function () {
11876
11882
  return JSON.parse(JSON.stringify(_this59.messageToElements.map(function (_ref35) {
11877
11883
  var _ref36 = _slicedToArray(_ref35, 1),
11878
11884
  c = _ref36[0];
11879
11885
  return c;
11880
11886
  })));
11881
- }, e.clearMessages = _this59.clearMessages.bind(_this59, t), e.refreshMessages = _this59.refreshTextMessages.bind(_this59, e.remarkable), e.scrollToBottom = Y.scrollToBottom.bind(_this59, _this59.elementRef), e.addMessage = function (c, d) {
11887
+ }, e.clearMessages = _this59.clearMessages.bind(_this59, t), e.refreshMessages = _this59.refreshTextMessages.bind(_this59, e.remarkable), e.scrollToBottom = Z.scrollToBottom.bind(_this59, _this59.elementRef), e.addMessage = function (c, d) {
11882
11888
  _this59.addAnyMessage(_objectSpread(_objectSpread({}, c), {}, {
11883
11889
  sendUpdate: !!d
11884
11890
  }), !d);
@@ -12005,8 +12011,8 @@ var pe = /*#__PURE__*/function (_me) {
12005
12011
  var o = r.bubbleElement,
12006
12012
  a = r.outerContainer;
12007
12013
  o.classList.add("error-message-text"), this.renderText(o, s);
12008
- var l = $.extractParticularSharedStyles(["fontSize", "fontFamily"], (h = this.messageStyles) == null ? void 0 : h["default"]);
12009
- $.applyCustomStylesToElements(r, !1, l), $.applyCustomStylesToElements(r, !1, (f = this.messageStyles) == null ? void 0 : f.error), i || this.appendOuterContainerElemet(a), this.textToSpeech && xt.speak(s, this.textToSpeech), (u = this._onError) == null || u.call(this, s);
12014
+ var l = K.extractParticularSharedStyles(["fontSize", "fontFamily"], (h = this.messageStyles) == null ? void 0 : h["default"]);
12015
+ K.applyCustomStylesToElements(r, !1, l), K.applyCustomStylesToElements(r, !1, (f = this.messageStyles) == null ? void 0 : f.error), i || this.appendOuterContainerElemet(a), this.textToSpeech && xt.speak(s, this.textToSpeech), (u = this._onError) == null || u.call(this, s);
12010
12016
  }
12011
12017
  }, {
12012
12018
  key: "getPermittedMessage",
@@ -12048,7 +12054,7 @@ var pe = /*#__PURE__*/function (_me) {
12048
12054
  if (me.isLoadingMessage(t) || !e && !this._isLoadingMessageAllowed) return;
12049
12055
  var i = (a = (o = (r = this.messageStyles) == null ? void 0 : r.loading) == null ? void 0 : o.message) == null ? void 0 : a.html,
12050
12056
  s = i ? Ae.createElements(this, i, v.AI_ROLE, !1) : this.addDefaultLoadingMessage();
12051
- this.appendOuterContainerElemet(s.outerContainer), s.bubbleElement.classList.add(De.BUBBLE_CLASS), this.applyCustomStyles(s, v.AI_ROLE, !1, (d = (c = (l = this.messageStyles) == null ? void 0 : l.loading) == null ? void 0 : c.message) == null ? void 0 : d.styles), this.focusMode || Y.scrollToBottom(this.elementRef);
12057
+ this.appendOuterContainerElemet(s.outerContainer), s.bubbleElement.classList.add(De.BUBBLE_CLASS), this.applyCustomStyles(s, v.AI_ROLE, !1, (d = (c = (l = this.messageStyles) == null ? void 0 : l.loading) == null ? void 0 : c.message) == null ? void 0 : d.styles), this.focusMode || Z.scrollToBottom(this.elementRef);
12052
12058
  }
12053
12059
  }, {
12054
12060
  key: "populateIntroPanel",
@@ -12173,7 +12179,7 @@ var U = /*#__PURE__*/function () {
12173
12179
  }]);
12174
12180
  }();
12175
12181
  U.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", U.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", U.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", U.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
12176
- var Ps = U;
12182
+ var Os = U;
12177
12183
  var Rt = /*#__PURE__*/function () {
12178
12184
  function Rt() {
12179
12185
  _classCallCheck(this, Rt);
@@ -12207,7 +12213,7 @@ var Rt = /*#__PURE__*/function () {
12207
12213
  }
12208
12214
  }]);
12209
12215
  }();
12210
- var dn = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
12216
+ var un = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
12211
12217
  aa = "<?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>";
12212
12218
  var ei = /*#__PURE__*/function () {
12213
12219
  function ei() {
@@ -12281,16 +12287,16 @@ var We = /*#__PURE__*/function () {
12281
12287
  }
12282
12288
  }]);
12283
12289
  }();
12284
- var qs = /*#__PURE__*/function () {
12285
- function qs(e, t) {
12290
+ var zs = /*#__PURE__*/function () {
12291
+ function zs(e, t) {
12286
12292
  var _this61 = this;
12287
- _classCallCheck(this, qs);
12293
+ _classCallCheck(this, zs);
12288
12294
  var i;
12289
- this._isOpen = !0, this._styles = t, this.elementRef = qs.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function () {
12295
+ this._isOpen = !0, this._styles = t, this.elementRef = zs.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function () {
12290
12296
  return _this61.addWindowEvents(e);
12291
12297
  });
12292
12298
  }
12293
- return _createClass(qs, [{
12299
+ return _createClass(zs, [{
12294
12300
  key: "open",
12295
12301
  value: function open() {
12296
12302
  this.elementRef.style.display = "block", this._isOpen = !0;
@@ -12347,7 +12353,7 @@ var At = /*#__PURE__*/function (_Lt2) {
12347
12353
  styles: (s = t == null ? void 0 : t.button) == null ? void 0 : s.styles
12348
12354
  }]);
12349
12355
  var i = _this62.createInnerElements(_this62._customStyles);
12350
- _this62._menu = new qs(e, t == null ? void 0 : t.menu), _this62.addClickEvent(), _this62.buttonContainer = At.createButtonContainer(), _this62.elementRef.appendChild(i.styles), _this62.buttonContainer.appendChild(_this62.elementRef), _this62.elementRef.classList.add("dropup-icon", "upload-file-button"), _this62.elementRef.children[0].id = "dropup-icon", _this62.buttonContainer.appendChild(_this62._menu.elementRef), _this62.reapplyStateStyle("styles"), _this62.addContainerEvents(e);
12356
+ _this62._menu = new zs(e, t == null ? void 0 : t.menu), _this62.addClickEvent(), _this62.buttonContainer = At.createButtonContainer(), _this62.elementRef.appendChild(i.styles), _this62.buttonContainer.appendChild(_this62.elementRef), _this62.elementRef.classList.add("dropup-icon", "upload-file-button"), _this62.elementRef.children[0].id = "dropup-icon", _this62.buttonContainer.appendChild(_this62._menu.elementRef), _this62.reapplyStateStyle("styles"), _this62.addContainerEvents(e);
12351
12357
  return _this62;
12352
12358
  }
12353
12359
  _inherits(At, _Lt2);
@@ -12361,7 +12367,7 @@ var At = /*#__PURE__*/function (_Lt2) {
12361
12367
  }, {
12362
12368
  key: "createInnerElement",
12363
12369
  value: function createInnerElement(e, t, i) {
12364
- return J.createSpecificStateElement(this.elementRef, t, i) || e;
12370
+ return Y.createSpecificStateElement(this.elementRef, t, i) || e;
12365
12371
  }
12366
12372
  }, {
12367
12373
  key: "addClickEvent",
@@ -12390,7 +12396,7 @@ var At = /*#__PURE__*/function (_Lt2) {
12390
12396
  }, {
12391
12397
  key: "createSVGIconElement",
12392
12398
  value: function createSVGIconElement() {
12393
- return te.createSVGElement(aa);
12399
+ return ie.createSVGElement(aa);
12394
12400
  }
12395
12401
  }, {
12396
12402
  key: "createButtonContainer",
@@ -12406,17 +12412,17 @@ var At = /*#__PURE__*/function (_Lt2) {
12406
12412
  }
12407
12413
  }]);
12408
12414
  }(Lt);
12409
- var X = /*#__PURE__*/function () {
12410
- function X() {
12411
- _classCallCheck(this, X);
12415
+ var Q = /*#__PURE__*/function () {
12416
+ function Q() {
12417
+ _classCallCheck(this, Q);
12412
12418
  }
12413
- return _createClass(X, null, [{
12419
+ return _createClass(Q, null, [{
12414
12420
  key: "addToDropup",
12415
12421
  value:
12416
12422
  // prettier-ignore
12417
12423
  function addToDropup(e, t, i, s) {
12418
12424
  var r = new At(i, s);
12419
- dn.forEach(function (a) {
12425
+ un.forEach(function (a) {
12420
12426
  var l = t["dropup-menu"].findIndex(function (d) {
12421
12427
  return d.buttonType === a;
12422
12428
  }),
@@ -12459,25 +12465,25 @@ var X = /*#__PURE__*/function () {
12459
12465
  }, {
12460
12466
  key: "generatePositions",
12461
12467
  value: function generatePositions(e) {
12462
- var t = X.createPositionsObj();
12468
+ var t = Q.createPositionsObj();
12463
12469
  Object.keys(e).forEach(function (s) {
12464
12470
  var o;
12465
12471
  var r = (o = e[s]) == null ? void 0 : o.button.position;
12466
- r && X.setPosition(e, s, t[r]);
12467
- }), t["inside-right"].length === 0 && e.submit && X.setPosition(e, "submit", t["inside-right"]), t["outside-right"].length === 0 && (e.submit ? X.setPosition(e, "submit", t["outside-right"]) : e.microphone ? X.setPosition(e, "microphone", t["outside-right"]) : e.camera && X.setPosition(e, "camera", t["outside-right"])), e.submit && X.setPosition(e, "submit", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]), e.microphone && X.setPosition(e, "microphone", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]);
12472
+ r && Q.setPosition(e, s, t[r]);
12473
+ }), t["inside-right"].length === 0 && e.submit && Q.setPosition(e, "submit", t["inside-right"]), t["outside-right"].length === 0 && (e.submit ? Q.setPosition(e, "submit", t["outside-right"]) : e.microphone ? Q.setPosition(e, "microphone", t["outside-right"]) : e.camera && Q.setPosition(e, "camera", t["outside-right"])), e.submit && Q.setPosition(e, "submit", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]), e.microphone && Q.setPosition(e, "microphone", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]);
12468
12474
  var i = Object.keys(e);
12469
- return i.length > 1 || t["dropup-menu"].length > 0 ? dn.forEach(function (s) {
12475
+ return i.length > 1 || t["dropup-menu"].length > 0 ? un.forEach(function (s) {
12470
12476
  e[s] && t["dropup-menu"].push(_objectSpread(_objectSpread({}, e[s]), {}, {
12471
12477
  buttonType: s
12472
12478
  }));
12473
- }) : i.length === 1 && X.setPosition(e, i[0], t["outside-right"].length === 0 ? t["outside-right"] : t["outside-left"]), t;
12479
+ }) : i.length === 1 && Q.setPosition(e, i[0], t["outside-right"].length === 0 ? t["outside-right"] : t["outside-left"]), t;
12474
12480
  }
12475
12481
  // prettier-ignore
12476
12482
  }, {
12477
12483
  key: "addButtons",
12478
12484
  value: function addButtons(e, t, i, s) {
12479
- var r = X.generatePositions(t);
12480
- return X.addToSideContainer(e, r), r["dropup-menu"].length > 0 && X.addToDropup(e, r, i, s), r;
12485
+ var r = Q.generatePositions(t);
12486
+ return Q.addToSideContainer(e, r), r["dropup-menu"].length > 0 && Q.addToDropup(e, r, i, s), r;
12481
12487
  }
12482
12488
  }]);
12483
12489
  }();
@@ -12530,7 +12536,7 @@ var ti = /*#__PURE__*/function (_Lt3) {
12530
12536
  }, {
12531
12537
  key: "createInnerElement",
12532
12538
  value: function createInnerElement(e, t, i) {
12533
- return J.createSpecificStateElement(this.elementRef, t, i) || e;
12539
+ return Y.createSpecificStateElement(this.elementRef, t, i) || e;
12534
12540
  }
12535
12541
  }, {
12536
12542
  key: "changeToActive",
@@ -12577,12 +12583,12 @@ var ti = /*#__PURE__*/function (_Lt3) {
12577
12583
  }, {
12578
12584
  key: "createSVGIconElement",
12579
12585
  value: function createSVGIconElement() {
12580
- var e = te.createSVGElement(Dn);
12586
+ var e = ie.createSVGElement(Fn);
12581
12587
  return e.id = "microphone-icon", e;
12582
12588
  }
12583
12589
  }]);
12584
12590
  }(Lt);
12585
- var jn = {},
12591
+ var Hn = {},
12586
12592
  Wi = {},
12587
12593
  Ji = {},
12588
12594
  ai = {},
@@ -12646,7 +12652,7 @@ Object.defineProperty(Ji, "__esModule", {
12646
12652
  value: !0
12647
12653
  });
12648
12654
  Ji.WebSpeechTranscript = void 0;
12649
- var hn = ai;
12655
+ var fn = ai;
12650
12656
  var ma = /*#__PURE__*/function () {
12651
12657
  function ma() {
12652
12658
  _classCallCheck(this, ma);
@@ -12657,7 +12663,7 @@ var ma = /*#__PURE__*/function () {
12657
12663
  var s = "";
12658
12664
  for (var r = e.resultIndex; r < e.results.length; ++r) {
12659
12665
  var o = e.results[r][0].transcript;
12660
- i && (o = hn.Translate.translate(o, i)), e.results[r].isFinal ? t += o : s += o;
12666
+ i && (o = fn.Translate.translate(o, i)), e.results[r].isFinal ? t += o : s += o;
12661
12667
  }
12662
12668
  return {
12663
12669
  interimTranscript: s,
@@ -12672,7 +12678,7 @@ var ma = /*#__PURE__*/function () {
12672
12678
  var r = "";
12673
12679
  for (var o = e.resultIndex; o < e.results.length; ++o) {
12674
12680
  var a = e.results[o][0].transcript;
12675
- i && (a = hn.Translate.translate(a, i)), s += a;
12681
+ i && (a = fn.Translate.translate(a, i)), s += a;
12676
12682
  }
12677
12683
  return {
12678
12684
  interimTranscript: r,
@@ -12771,11 +12777,11 @@ Object.defineProperty(di, "__esModule", {
12771
12777
  value: !0
12772
12778
  });
12773
12779
  di.AutoScroll = void 0;
12774
- var zs = /*#__PURE__*/function () {
12775
- function zs() {
12776
- _classCallCheck(this, zs);
12780
+ var Gs = /*#__PURE__*/function () {
12781
+ function Gs() {
12782
+ _classCallCheck(this, Gs);
12777
12783
  }
12778
- return _createClass(zs, null, [{
12784
+ return _createClass(Gs, null, [{
12779
12785
  key: "changeStateIfNeeded",
12780
12786
  value: function changeStateIfNeeded(e, t) {
12781
12787
  t && !e.isCursorAtEnd && (e.endPadding = "", e.scrollingSpan.innerHTML = "&nbsp;");
@@ -12802,11 +12808,11 @@ var zs = /*#__PURE__*/function () {
12802
12808
  }, {
12803
12809
  key: "isRequired",
12804
12810
  value: function isRequired(e, t) {
12805
- return e && zs.isElementOverflown(t);
12811
+ return e && Gs.isElementOverflown(t);
12806
12812
  }
12807
12813
  }]);
12808
12814
  }();
12809
- di.AutoScroll = zs;
12815
+ di.AutoScroll = Gs;
12810
12816
  var ut = {};
12811
12817
  Object.defineProperty(ut, "__esModule", {
12812
12818
  value: !0
@@ -12949,11 +12955,11 @@ Object.defineProperty(ci, "__esModule", {
12949
12955
  value: !0
12950
12956
  });
12951
12957
  ci.CommandUtils = void 0;
12952
- var un = di,
12958
+ var pn = di,
12953
12959
  va = ut,
12954
12960
  ya = It,
12955
- fn = ft,
12956
- pn = ht;
12961
+ mn = ft,
12962
+ gn = ht;
12957
12963
  var he = /*#__PURE__*/function () {
12958
12964
  function he() {
12959
12965
  _classCallCheck(this, he);
@@ -12961,7 +12967,7 @@ var he = /*#__PURE__*/function () {
12961
12967
  return _createClass(he, null, [{
12962
12968
  key: "processCommand",
12963
12969
  value: function processCommand(e, t) {
12964
- return (!t || !t.caseSensitive) && (e = e.toLowerCase()), (t == null ? void 0 : t.substrings) === !1 ? pn.Text.breakupIntoWordsArr(e) : e;
12970
+ return (!t || !t.caseSensitive) && (e = e.toLowerCase()), (t == null ? void 0 : t.substrings) === !1 ? gn.Text.breakupIntoWordsArr(e) : e;
12965
12971
  }
12966
12972
  }, {
12967
12973
  key: "process",
@@ -12987,8 +12993,8 @@ var he = /*#__PURE__*/function () {
12987
12993
  }, {
12988
12994
  key: "setText",
12989
12995
  value: function setText(e, t, i, s) {
12990
- he.toggleCommandModeOff(e), va.Elements.isPrimitiveElement(s) ? (s.value = i, e.isTargetInShadow || fn.Cursor.setOffsetForPrimitive(s, i.length, !0), ya.Browser.IS_SAFARI() && e.autoScroll && un.AutoScroll.scrollSafariPrimitiveToEnd(s)) : (s.textContent = i, e.isTargetInShadow || fn.Cursor.focusEndOfGeneric(s), setTimeout(function () {
12991
- return un.AutoScroll.scrollGeneric(e, s);
12996
+ he.toggleCommandModeOff(e), va.Elements.isPrimitiveElement(s) ? (s.value = i, e.isTargetInShadow || mn.Cursor.setOffsetForPrimitive(s, i.length, !0), ya.Browser.IS_SAFARI() && e.autoScroll && pn.AutoScroll.scrollSafariPrimitiveToEnd(s)) : (s.textContent = i, e.isTargetInShadow || mn.Cursor.focusEndOfGeneric(s), setTimeout(function () {
12997
+ return pn.AutoScroll.scrollGeneric(e, s);
12992
12998
  })), e.resetRecording(t);
12993
12999
  }
12994
13000
  }, {
@@ -13016,7 +13022,7 @@ var he = /*#__PURE__*/function () {
13016
13022
  var c = e.commands;
13017
13023
  if (!c || !s || !i) return;
13018
13024
  var d = ((o = c.settings) === null || o === void 0 ? void 0 : o.caseSensitive) === !0 ? t : t.toLowerCase(),
13019
- h = pn.Text.breakupIntoWordsArr(d),
13025
+ h = gn.Text.breakupIntoWordsArr(d),
13020
13026
  f = ((a = c.settings) === null || a === void 0 ? void 0 : a.substrings) === !1 ? he.checkIfMatchesWord : he.checkIfMatchesSubstring;
13021
13027
  if (c.commandMode && f(c.commandMode, d, h)) return e.setInterimColorToFinal(), setTimeout(function () {
13022
13028
  return he.toggleCommandModeOn(e);
@@ -13111,7 +13117,7 @@ Object.defineProperty(Qi, "__esModule", {
13111
13117
  });
13112
13118
  Qi.Padding = void 0;
13113
13119
  var Sa = ut,
13114
- mn = ft,
13120
+ bn = ft,
13115
13121
  mt = ht;
13116
13122
  var Di = /*#__PURE__*/function () {
13117
13123
  function Di() {
@@ -13138,9 +13144,9 @@ var Di = /*#__PURE__*/function () {
13138
13144
  if (document.activeElement === t) {
13139
13145
  var a = window.getSelection();
13140
13146
  if (a != null && a.focusNode) {
13141
- var l = mn.Cursor.getGenericElementCursorOffset(t, a, !0),
13147
+ var l = bn.Cursor.getGenericElementCursorOffset(t, a, !0),
13142
13148
  c = (i = t.textContent) === null || i === void 0 ? void 0 : i[l - 1],
13143
- d = mn.Cursor.getGenericElementCursorOffset(t, a, !1),
13149
+ d = bn.Cursor.getGenericElementCursorOffset(t, a, !1),
13144
13150
  h = (s = t.textContent) === null || s === void 0 ? void 0 : s[d];
13145
13151
  mt.Text.isCharDefined(c) && (e.startPadding = " "), mt.Text.isCharDefined(h) && (e.endPadding = " "), e.isCursorAtEnd = ((r = t.textContent) === null || r === void 0 ? void 0 : r.length) === d;
13146
13152
  return;
@@ -13175,15 +13181,15 @@ Object.defineProperty(li, "__esModule", {
13175
13181
  value: !0
13176
13182
  });
13177
13183
  li.Speech = void 0;
13178
- var gn = Yi,
13184
+ var vn = Yi,
13179
13185
  _a = Zi,
13180
- bn = ci,
13186
+ yn = ci,
13181
13187
  mi = di,
13182
13188
  hs = Xi,
13183
13189
  xe = ut,
13184
13190
  us = Qi,
13185
- vn = It,
13186
- yn = ft,
13191
+ En = It,
13192
+ Sn = ft,
13187
13193
  fs = ht;
13188
13194
  var xa = /*#__PURE__*/function () {
13189
13195
  function xa() {
@@ -13194,14 +13200,14 @@ var xa = /*#__PURE__*/function () {
13194
13200
  key: "prepareBeforeStart",
13195
13201
  value: function prepareBeforeStart(e) {
13196
13202
  var t, i;
13197
- if (e != null && e.element) if (gn.EventListeners.add(this, e), Array.isArray(e.element)) {
13203
+ if (e != null && e.element) if (vn.EventListeners.add(this, e), Array.isArray(e.element)) {
13198
13204
  var r = e.element.find(function (o) {
13199
13205
  return o === document.activeElement;
13200
13206
  }) || e.element[0];
13201
13207
  if (!r) return;
13202
13208
  this.prepare(r);
13203
13209
  } else this.prepare(e.element);
13204
- (e == null ? void 0 : e.displayInterimResults) !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = (t = e == null ? void 0 : e.textColor) === null || t === void 0 ? void 0 : t["final"], xe.Elements.applyCustomColors(this, e.textColor)), (e == null ? void 0 : e.insertInCursorLocation) !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), (e == null ? void 0 : e.autoScroll) !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e == null ? void 0 : e.onResult, this._onPreResult = e == null ? void 0 : e.onPreResult, this._onStart = e == null ? void 0 : e.onStart, this._onStop = e == null ? void 0 : e.onStop, this._onError = e == null ? void 0 : e.onError, this.onCommandModeTrigger = e == null ? void 0 : e.onCommandModeTrigger, this.onPauseTrigger = e == null ? void 0 : e.onPauseTrigger, this._options = e, !((i = this._options) === null || i === void 0) && i.commands && (this.commands = bn.CommandUtils.process(this._options.commands));
13210
+ (e == null ? void 0 : e.displayInterimResults) !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = (t = e == null ? void 0 : e.textColor) === null || t === void 0 ? void 0 : t["final"], xe.Elements.applyCustomColors(this, e.textColor)), (e == null ? void 0 : e.insertInCursorLocation) !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), (e == null ? void 0 : e.autoScroll) !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e == null ? void 0 : e.onResult, this._onPreResult = e == null ? void 0 : e.onPreResult, this._onStart = e == null ? void 0 : e.onStart, this._onStop = e == null ? void 0 : e.onStop, this._onError = e == null ? void 0 : e.onError, this.onCommandModeTrigger = e == null ? void 0 : e.onCommandModeTrigger, this.onPauseTrigger = e == null ? void 0 : e.onPauseTrigger, this._options = e, !((i = this._options) === null || i === void 0) && i.commands && (this.commands = yn.CommandUtils.process(this._options.commands));
13205
13211
  }
13206
13212
  }, {
13207
13213
  key: "prepare",
@@ -13224,7 +13230,7 @@ var xa = /*#__PURE__*/function () {
13224
13230
  var r = fs.Text.capitalize(t);
13225
13231
  if (this.finalTranscript === r && e === "") return;
13226
13232
  _a.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
13227
- var o = this.commands && bn.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
13233
+ var o = this.commands && yn.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
13228
13234
  if (o) {
13229
13235
  if (o.doNotProcessTranscription) return;
13230
13236
  e = "", i = "";
@@ -13243,9 +13249,9 @@ var xa = /*#__PURE__*/function () {
13243
13249
  var s = this.startPadding + this.finalTranscript + t;
13244
13250
  if (e.value = s + this.endPadding, !this.isTargetInShadow) {
13245
13251
  var r = s.length + this.numberOfSpacesAfterNewText;
13246
- yn.Cursor.setOffsetForPrimitive(e, r, this.autoScroll);
13252
+ Sn.Cursor.setOffsetForPrimitive(e, r, this.autoScroll);
13247
13253
  }
13248
- this.autoScroll && vn.Browser.IS_SAFARI() && this.isCursorAtEnd && mi.AutoScroll.scrollSafariPrimitiveToEnd(e);
13254
+ this.autoScroll && En.Browser.IS_SAFARI() && this.isCursorAtEnd && mi.AutoScroll.scrollSafariPrimitiveToEnd(e);
13249
13255
  }
13250
13256
  }, {
13251
13257
  key: "updateGenericElement",
@@ -13256,12 +13262,12 @@ var xa = /*#__PURE__*/function () {
13256
13262
  var r = mi.AutoScroll.isRequired(this.autoScroll, e);
13257
13263
  mi.AutoScroll.changeStateIfNeeded(this, r);
13258
13264
  var o = fs.Text.lineBreak(t) + (i ? "" : this.endPadding);
13259
- this.interimSpan.innerHTML = o, vn.Browser.IS_SAFARI() && this.insertInCursorLocation && yn.Cursor.setOffsetForSafariGeneric(e, s.length + o.length), r && mi.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
13265
+ this.interimSpan.innerHTML = o, En.Browser.IS_SAFARI() && this.insertInCursorLocation && Sn.Cursor.setOffsetForSafariGeneric(e, s.length + o.length), r && mi.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
13260
13266
  }
13261
13267
  }, {
13262
13268
  key: "finalise",
13263
13269
  value: function finalise(e) {
13264
- this._genericElement && (e ? (this.finalSpan = xe.Elements.createGenericSpan(), this.setInterimColorToFinal(), this.interimSpan = xe.Elements.createInterimSpan(), this.scrollingSpan = xe.Elements.createGenericSpan()) : this._genericElement.textContent = this._genericElement.textContent, this.spansPopulated = !1), gn.EventListeners.remove(this);
13270
+ this._genericElement && (e ? (this.finalSpan = xe.Elements.createGenericSpan(), this.setInterimColorToFinal(), this.interimSpan = xe.Elements.createInterimSpan(), this.scrollingSpan = xe.Elements.createGenericSpan()) : this._genericElement.textContent = this._genericElement.textContent, this.spansPopulated = !1), vn.EventListeners.remove(this);
13265
13271
  }
13266
13272
  }, {
13267
13273
  key: "setInterimColorToFinal",
@@ -13298,8 +13304,8 @@ Object.defineProperty(Wi, "__esModule", {
13298
13304
  value: !0
13299
13305
  });
13300
13306
  Wi.WebSpeech = void 0;
13301
- var En = Ji,
13302
- Sn = It,
13307
+ var _n = Ji,
13308
+ xn = It,
13303
13309
  wa = li;
13304
13310
  var Fi = /*#__PURE__*/function (_wa$Speech) {
13305
13311
  function Fi() {
@@ -13311,7 +13317,7 @@ var Fi = /*#__PURE__*/function (_wa$Speech) {
13311
13317
  key: "start",
13312
13318
  value: function start(e) {
13313
13319
  var t;
13314
- this._extractText === void 0 && (this._extractText = Sn.Browser.IS_SAFARI() ? En.WebSpeechTranscript.extractSafari : En.WebSpeechTranscript.extract), this.validate() && (this.prepareBeforeStart(e), this.instantiateService(e), (t = this._service) === null || t === void 0 || t.start(), this._translations = e == null ? void 0 : e.translations);
13320
+ this._extractText === void 0 && (this._extractText = xn.Browser.IS_SAFARI() ? _n.WebSpeechTranscript.extractSafari : _n.WebSpeechTranscript.extract), this.validate() && (this.prepareBeforeStart(e), this.instantiateService(e), (t = this._service) === null || t === void 0 || t.start(), this._translations = e == null ? void 0 : e.translations);
13315
13321
  }
13316
13322
  }, {
13317
13323
  key: "validate",
@@ -13332,7 +13338,7 @@ var Fi = /*#__PURE__*/function (_wa$Speech) {
13332
13338
  this._service && (this._service.onstart = function () {
13333
13339
  _this66.setStateOnStart();
13334
13340
  }, this._service.onerror = function (e) {
13335
- Sn.Browser.IS_SAFARI() && e.message === "Another request is started" || e.error === "aborted" && _this66.isRestarting || e.error !== "no-speech" && _this66.error(e.message || e.error);
13341
+ xn.Browser.IS_SAFARI() && e.message === "Another request is started" || e.error === "aborted" && _this66.isRestarting || e.error !== "no-speech" && _this66.error(e.message || e.error);
13336
13342
  }, this._service.onaudioend = function () {
13337
13343
  _this66.setStateOnStop();
13338
13344
  }, this._service.onend = function () {
@@ -13553,10 +13559,10 @@ Object.defineProperty(ts, "__esModule", {
13553
13559
  value: !0
13554
13560
  });
13555
13561
  ts.Azure = void 0;
13556
- var _n = is,
13557
- xn = ss,
13562
+ var wn = is,
13563
+ An = ss,
13558
13564
  gi = rs,
13559
- wn = os,
13565
+ Tn = os,
13560
13566
  Ma = li;
13561
13567
  var ji = /*#__PURE__*/function (_Ma$Speech) {
13562
13568
  function ji() {
@@ -13569,7 +13575,7 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13569
13575
  return _createClass(ji, [{
13570
13576
  key: "start",
13571
13577
  value: function start(e, t) {
13572
- this._newTextPadding = "", this.stopTimeout === void 0 && gi.StopTimeout.reset(this, e == null ? void 0 : e.stopAfterSilenceMs), this.prepareBeforeStart(e), this.startAsync(e), t || _n.PreventConnectionStop.applyPrevention(this);
13578
+ this._newTextPadding = "", this.stopTimeout === void 0 && gi.StopTimeout.reset(this, e == null ? void 0 : e.stopAfterSilenceMs), this.prepareBeforeStart(e), this.startAsync(e), t || wn.PreventConnectionStop.applyPrevention(this);
13573
13579
  }
13574
13580
  }, {
13575
13581
  key: "startAsync",
@@ -13603,7 +13609,7 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13603
13609
  }, {
13604
13610
  key: "validate",
13605
13611
  value: function validate(e) {
13606
- return ji.getAPI() ? xn.AzureSpeechConfig.validateOptions(this.error.bind(this), e) : (this.moduleNotFound(), !1);
13612
+ return ji.getAPI() ? An.AzureSpeechConfig.validateOptions(this.error.bind(this), e) : (this.moduleNotFound(), !1);
13607
13613
  }
13608
13614
  }, {
13609
13615
  key: "instantiateService",
@@ -13616,7 +13622,7 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13616
13622
  t = ji.getAPI();
13617
13623
  i = t.AudioConfig.fromDefaultMicrophoneInput();
13618
13624
  _context124.next = 4;
13619
- return xn.AzureSpeechConfig.get(t.SpeechConfig, e);
13625
+ return An.AzureSpeechConfig.get(t.SpeechConfig, e);
13620
13626
  case 4:
13621
13627
  s = _context124.sent;
13622
13628
  if (s) {
@@ -13647,10 +13653,10 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13647
13653
  key: "onRecognizing",
13648
13654
  value: function onRecognizing(e, t) {
13649
13655
  if (this._stopping) return;
13650
- var _wn$AzureTranscript$e = wn.AzureTranscript.extract(this._newTextPadding + t.result.text, this.finalTranscript, !1, this._translations),
13651
- i = _wn$AzureTranscript$e.interimTranscript,
13652
- s = _wn$AzureTranscript$e.finalTranscript,
13653
- r = _wn$AzureTranscript$e.newText;
13656
+ var _Tn$AzureTranscript$e = Tn.AzureTranscript.extract(this._newTextPadding + t.result.text, this.finalTranscript, !1, this._translations),
13657
+ i = _Tn$AzureTranscript$e.interimTranscript,
13658
+ s = _Tn$AzureTranscript$e.finalTranscript,
13659
+ r = _Tn$AzureTranscript$e.newText;
13654
13660
  gi.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(i, s, r);
13655
13661
  }
13656
13662
  // prettier-ignore
@@ -13663,10 +13669,10 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13663
13669
  break;
13664
13670
  case window.SpeechSDK.ResultReason.RecognizedSpeech:
13665
13671
  if (i.text && !this._stopping) {
13666
- var _wn$AzureTranscript$e2 = wn.AzureTranscript.extract(this._newTextPadding + i.text, this.finalTranscript, !0, this._translations),
13667
- s = _wn$AzureTranscript$e2.interimTranscript,
13668
- r = _wn$AzureTranscript$e2.finalTranscript,
13669
- o = _wn$AzureTranscript$e2.newText;
13672
+ var _Tn$AzureTranscript$e2 = Tn.AzureTranscript.extract(this._newTextPadding + i.text, this.finalTranscript, !0, this._translations),
13673
+ s = _Tn$AzureTranscript$e2.interimTranscript,
13674
+ r = _Tn$AzureTranscript$e2.finalTranscript,
13675
+ o = _Tn$AzureTranscript$e2.newText;
13670
13676
  gi.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(s, r, o), r !== "" && (this._newTextPadding = " ");
13671
13677
  }
13672
13678
  break;
@@ -13680,7 +13686,7 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13680
13686
  }, {
13681
13687
  key: "onSessionStarted",
13682
13688
  value: function onSessionStarted() {
13683
- _n.PreventConnectionStop.clearPrevention(this), this.setStateOnStart();
13689
+ wn.PreventConnectionStop.clearPrevention(this), this.setStateOnStart();
13684
13690
  }
13685
13691
  }, {
13686
13692
  key: "onSessionStopped",
@@ -13723,10 +13729,10 @@ var ji = /*#__PURE__*/function (_Ma$Speech) {
13723
13729
  }]);
13724
13730
  }(Ma.Speech);
13725
13731
  ts.Azure = ji;
13726
- Object.defineProperty(jn, "__esModule", {
13732
+ Object.defineProperty(Hn, "__esModule", {
13727
13733
  value: !0
13728
13734
  });
13729
- var An = Wi,
13735
+ var Cn = Wi,
13730
13736
  ka = ci,
13731
13737
  ve = es,
13732
13738
  Ra = ts;
@@ -13744,12 +13750,12 @@ var gt = /*#__PURE__*/function () {
13744
13750
  }, {
13745
13751
  key: "startWebSpeech",
13746
13752
  value: function startWebSpeech(e) {
13747
- gt.stop() || (ve.GlobalState.service = new An.WebSpeech(), ve.GlobalState.service.start(e));
13753
+ gt.stop() || (ve.GlobalState.service = new Cn.WebSpeech(), ve.GlobalState.service.start(e));
13748
13754
  }
13749
13755
  }, {
13750
13756
  key: "isWebSpeechSupported",
13751
13757
  value: function isWebSpeechSupported() {
13752
- return !!An.WebSpeech.getAPI();
13758
+ return !!Cn.WebSpeech.getAPI();
13753
13759
  }
13754
13760
  }, {
13755
13761
  key: "startAzure",
@@ -13770,7 +13776,7 @@ var gt = /*#__PURE__*/function () {
13770
13776
  }
13771
13777
  }]);
13772
13778
  }();
13773
- var bi = jn["default"] = gt;
13779
+ var bi = Hn["default"] = gt;
13774
13780
  var La = /*#__PURE__*/function () {
13775
13781
  function La(e, t) {
13776
13782
  _classCallCheck(this, La);
@@ -14078,7 +14084,7 @@ var Oe = /*#__PURE__*/function (_Be) {
14078
14084
  i.classList.add("audio-placeholder-text-3-digits");
14079
14085
  var s = document.createElement("div");
14080
14086
  s.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), s.appendChild(i);
14081
- var r = te.createSVGElement(ws);
14087
+ var r = ie.createSVGElement(As);
14082
14088
  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;
14083
14089
  }
14084
14090
  }, {
@@ -14131,12 +14137,12 @@ var Oe = /*#__PURE__*/function (_Be) {
14131
14137
  }, {
14132
14138
  key: "addAudioElements",
14133
14139
  value: function addAudioElements(e, t) {
14134
- var i = e.parentElement ? Y.cloneElement(e) : e,
14140
+ var i = e.parentElement ? Z.cloneElement(e) : e,
14135
14141
  s = document.createElement("audio");
14136
14142
  s.src = t;
14137
- var r = te.createSVGElement(Fn);
14143
+ var r = ie.createSVGElement(Un);
14138
14144
  r.classList.add("attachment-icon", "play-icon");
14139
- var o = te.createSVGElement(ws);
14145
+ var o = ie.createSVGElement(As);
14140
14146
  o.classList.add("attachment-icon", "stop-icon"), i.replaceChildren(r), s.onplay = function () {
14141
14147
  i.replaceChildren(o);
14142
14148
  }, s.onpause = function () {
@@ -14371,7 +14377,7 @@ var Se = /*#__PURE__*/function () {
14371
14377
  value: function createSVGButton(e) {
14372
14378
  var t = document.createElement("div");
14373
14379
  t.classList.add("modal-button", "modal-svg-button");
14374
- var i = te.createSVGElement(e);
14380
+ var i = ie.createSVGElement(e);
14375
14381
  return i.classList.add("modal-svg-button-icon"), t.appendChild(i), t;
14376
14382
  }
14377
14383
  }, {
@@ -14392,13 +14398,13 @@ var Ht = /*#__PURE__*/function (_Lt4) {
14392
14398
  function Ht(e, t, i, s, r, o) {
14393
14399
  var _this78;
14394
14400
  _classCallCheck(this, Ht);
14395
- var h, f, u, m, p, b, y, N, Z;
14401
+ var h, f, u, m, p, b, y, N, X;
14396
14402
  var a = (h = i == null ? void 0 : i.button) == null ? void 0 : h.position,
14397
14403
  l = ((m = (u = (f = i == null ? void 0 : i.button) == null ? void 0 : f.styles) == null ? void 0 : u.text) == null ? void 0 : m.content) || o;
14398
14404
  _this78 = _callSuper(this, Ht, [Ht.createButtonElement(), a, i.button, l]);
14399
14405
  var c = a === "dropup-menu",
14400
14406
  d = _this78.createInnerElements(s, r, _this78._customStyles, c);
14401
- _this78._inputElement = Ht.createInputElement((p = i == null ? void 0 : i.files) == null ? void 0 : p.acceptedFormats), _this78.addClickEvent(e, i), _this78.elementRef.replaceChildren(d.styles), _this78.reapplyStateStyle("styles"), _this78._fileAttachmentsType = t, _this78._openModalOnce = ((y = (b = i.files) == null ? void 0 : b.infoModal) == null ? void 0 : y.openModalOnce) === !1 || (Z = (N = i.files) == null ? void 0 : N.infoModal) == null ? void 0 : Z.openModalOnce;
14407
+ _this78._inputElement = Ht.createInputElement((p = i == null ? void 0 : i.files) == null ? void 0 : p.acceptedFormats), _this78.addClickEvent(e, i), _this78.elementRef.replaceChildren(d.styles), _this78.reapplyStateStyle("styles"), _this78._fileAttachmentsType = t, _this78._openModalOnce = ((y = (b = i.files) == null ? void 0 : b.infoModal) == null ? void 0 : y.openModalOnce) === !1 || (X = (N = i.files) == null ? void 0 : N.infoModal) == null ? void 0 : X.openModalOnce;
14402
14408
  return _this78;
14403
14409
  }
14404
14410
  _inherits(Ht, _Lt4);
@@ -14408,7 +14414,7 @@ var Ht = /*#__PURE__*/function (_Lt4) {
14408
14414
  var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
14409
14415
  var r = Ht.createSVGIconElement(e, t);
14410
14416
  return {
14411
- styles: J.createInnerElement(this.elementRef, r, "styles", i, s)
14417
+ styles: Y.createInnerElement(this.elementRef, r, "styles", i, s)
14412
14418
  };
14413
14419
  }
14414
14420
  }, {
@@ -14448,7 +14454,7 @@ var Ht = /*#__PURE__*/function (_Lt4) {
14448
14454
  }, {
14449
14455
  key: "createSVGIconElement",
14450
14456
  value: function createSVGIconElement(e, t) {
14451
- var i = te.createSVGElement(t);
14457
+ var i = ie.createSVGElement(t);
14452
14458
  return i.id = e, i;
14453
14459
  }
14454
14460
  }]);
@@ -14578,7 +14584,7 @@ var Je = /*#__PURE__*/function () {
14578
14584
  }, {
14579
14585
  key: "attach",
14580
14586
  value: function attach(e, t, i, s, r) {
14581
- var o = e.validateInput || ie.processValidateInput(e);
14587
+ var o = e.validateInput || se.processValidateInput(e);
14582
14588
  e._validationHandler = /*#__PURE__*/function () {
14583
14589
  var _ref39 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee129(a) {
14584
14590
  var l;
@@ -14606,11 +14612,11 @@ var Je = /*#__PURE__*/function () {
14606
14612
  }
14607
14613
  }]);
14608
14614
  }();
14609
- var Hn = /*#__PURE__*/function () {
14610
- function Hn() {
14611
- _classCallCheck(this, Hn);
14615
+ var qn = /*#__PURE__*/function () {
14616
+ function qn() {
14617
+ _classCallCheck(this, qn);
14612
14618
  }
14613
- return _createClass(Hn, null, [{
14619
+ return _createClass(qn, null, [{
14614
14620
  key: "getFileName",
14615
14621
  value: function getFileName(e, t) {
14616
14622
  var i = /* @__PURE__ */new Date(),
@@ -14671,7 +14677,7 @@ var Pa = /*#__PURE__*/function (_ti2) {
14671
14677
  var t = new Blob([e.data], {
14672
14678
  type: "audio/".concat(this._extension)
14673
14679
  }),
14674
- i = Hn.getFileName(this._newFilePrefix || "audio", this._extension),
14680
+ i = qn.getFileName(this._newFilePrefix || "audio", this._extension),
14675
14681
  s = new File([t], i, {
14676
14682
  type: t.type
14677
14683
  }),
@@ -14697,13 +14703,13 @@ var nt = /*#__PURE__*/function () {
14697
14703
  value: function overwriteDefaultStyleWithSubmit(e, t) {
14698
14704
  if (!e.submit) return;
14699
14705
  var i = JSON.parse(JSON.stringify(e[t] || {}));
14700
- W.overwritePropertyObjectFromAnother(i, e.submit, ["container", "default"]), W.overwritePropertyObjectFromAnother(i, e.submit, ["text", "styles", "default"]), W.overwritePropertyObjectFromAnother(i, e.submit, ["svg", "styles", "default"]), e[t] = i;
14706
+ J.overwritePropertyObjectFromAnother(i, e.submit, ["container", "default"]), J.overwritePropertyObjectFromAnother(i, e.submit, ["text", "styles", "default"]), J.overwritePropertyObjectFromAnother(i, e.submit, ["svg", "styles", "default"]), e[t] = i;
14701
14707
  }
14702
14708
  // prettier-ignore
14703
14709
  }, {
14704
14710
  key: "setUpDisabledButton",
14705
14711
  value: function setUpDisabledButton(e) {
14706
- W.setPropertyValueIfDoesNotExist(e, ["submit", "container", "default", "backgroundColor"], ""), W.setPropertyValueIfDoesNotExist(e, ["disabled", "container", "default", "backgroundColor"], "unset"), W.setPropertyValueIfDoesNotExist(e.submit, ["svg", "styles", "default", "filter"], ""), W.setPropertyValueIfDoesNotExist(e.disabled, ["svg", "styles", "default", "filter"], "brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(5564%) hue-rotate(207deg) brightness(100%) contrast(97%)"), nt.overwriteDefaultStyleWithSubmit(e, "disabled");
14712
+ J.setPropertyValueIfDoesNotExist(e, ["submit", "container", "default", "backgroundColor"], ""), J.setPropertyValueIfDoesNotExist(e, ["disabled", "container", "default", "backgroundColor"], "unset"), J.setPropertyValueIfDoesNotExist(e.submit, ["svg", "styles", "default", "filter"], ""), J.setPropertyValueIfDoesNotExist(e.disabled, ["svg", "styles", "default", "filter"], "brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(5564%) hue-rotate(207deg) brightness(100%) contrast(97%)"), nt.overwriteDefaultStyleWithSubmit(e, "disabled");
14707
14713
  }
14708
14714
  }, {
14709
14715
  key: "process",
@@ -14750,21 +14756,21 @@ var I = /*#__PURE__*/function (_Lt5) {
14750
14756
  key: "createCustomElements",
14751
14757
  value: function createCustomElements() {
14752
14758
  var _this84 = this;
14753
- var e = J.createSpecificStateElement(this.elementRef, "submit", this._customStyles),
14759
+ var e = Y.createSpecificStateElement(this.elementRef, "submit", this._customStyles),
14754
14760
  t = {
14755
14761
  loading: void 0,
14756
14762
  stop: void 0
14757
14763
  };
14758
14764
  return Object.keys(t).forEach(function (i) {
14759
14765
  var s = i,
14760
- r = J.createCustomElement(s, _this84._customStyles);
14766
+ r = Y.createCustomElement(s, _this84._customStyles);
14761
14767
  r && (t[s] = r);
14762
14768
  }), t.submit = e, t;
14763
14769
  }
14764
14770
  }, {
14765
14771
  key: "createDisabledIconElement",
14766
14772
  value: function createDisabledIconElement(e) {
14767
- return J.createCustomElement("disabled", this._customStyles) || e.cloneNode(!0);
14773
+ return Y.createCustomElement("disabled", this._customStyles) || e.cloneNode(!0);
14768
14774
  }
14769
14775
  // prettier-ignore
14770
14776
  }, {
@@ -14842,7 +14848,7 @@ var I = /*#__PURE__*/function (_Lt5) {
14842
14848
  return _regeneratorRuntime().wrap(function _callee131$(_context131) {
14843
14849
  while (1) switch (_context131.prev = _context131.next) {
14844
14850
  case 0:
14845
- typeof e == "string" && (e = ie.processSubmitUserMessage(e));
14851
+ typeof e == "string" && (e = se.processSubmitUserMessage(e));
14846
14852
  t = {
14847
14853
  text: e.text
14848
14854
  };
@@ -15011,7 +15017,7 @@ var I = /*#__PURE__*/function (_Lt5) {
15011
15017
  }, {
15012
15018
  key: "createSubmitIconElement",
15013
15019
  value: function createSubmitIconElement() {
15014
- var e = te.createSVGElement(Oa);
15020
+ var e = ie.createSVGElement(Oa);
15015
15021
  return e.id = "submit-icon", e;
15016
15022
  }
15017
15023
  }, {
@@ -15029,25 +15035,25 @@ var I = /*#__PURE__*/function (_Lt5) {
15029
15035
  }]);
15030
15036
  }(Lt);
15031
15037
  I.SUBMIT_CLASS = "submit-button", I.LOADING_CLASS = "loading-button", I.DISABLED_CLASS = "disabled-button";
15032
- var Os = I;
15038
+ var Ns = I;
15033
15039
  var Na = "<?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",
15034
15040
  Ba = "<?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",
15035
15041
  Da = "<?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>",
15036
15042
  Fa = "<?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>";
15037
- var Gs = /*#__PURE__*/function (_st) {
15043
+ var Vs = /*#__PURE__*/function (_st) {
15038
15044
  // prettier-ignore
15039
- function Gs(e, t, i, s) {
15045
+ function Vs(e, t, i, s) {
15040
15046
  var _this87;
15041
- _classCallCheck(this, Gs);
15042
- _this87 = _callSuper(this, Gs, [e, ["modal-content", "modal-camera-content"], i]), _this87._stopped = !1, _this87._format = "image/png", _this87._canvas = document.createElement("canvas"), _this87._canvas.classList.add("camera-modal-canvas");
15047
+ _classCallCheck(this, Vs);
15048
+ _this87 = _callSuper(this, Vs, [e, ["modal-content", "modal-camera-content"], i]), _this87._stopped = !1, _this87._format = "image/png", _this87._canvas = document.createElement("canvas"), _this87._canvas.classList.add("camera-modal-canvas");
15043
15049
  var _this87$addButtonsAnd = _this87.addButtonsAndTheirEvents(t),
15044
15050
  r = _this87$addButtonsAnd.captureButton,
15045
15051
  o = _this87$addButtonsAnd.submitButton;
15046
- _this87._captureButton = r, _this87._submitButton = o, _this87._captureIcon = _this87._captureButton.children[0], _this87._refreshIcon = te.createSVGElement(Na), _this87._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this87._format = "image/jpeg"), s != null && s.dimensions && (_this87._dimensions = s.dimensions), _this87._contentRef.appendChild(_this87._canvas), _this87.extensionCloseCallback = _this87.stop;
15052
+ _this87._captureButton = r, _this87._submitButton = o, _this87._captureIcon = _this87._captureButton.children[0], _this87._refreshIcon = ie.createSVGElement(Na), _this87._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this87._format = "image/jpeg"), s != null && s.dimensions && (_this87._dimensions = s.dimensions), _this87._contentRef.appendChild(_this87._canvas), _this87.extensionCloseCallback = _this87.stop;
15047
15053
  return _this87;
15048
15054
  }
15049
- _inherits(Gs, _st);
15050
- return _createClass(Gs, [{
15055
+ _inherits(Vs, _st);
15056
+ return _createClass(Vs, [{
15051
15057
  key: "addButtonsAndTheirEvents",
15052
15058
  value: function addButtonsAndTheirEvents(e) {
15053
15059
  var t = st.createSVGButton(Ba);
@@ -15115,7 +15121,7 @@ var Gs = /*#__PURE__*/function (_st) {
15115
15121
  type: this._format
15116
15122
  }),
15117
15123
  r = this._format === "image/jpeg" ? "jpeg" : "png",
15118
- o = Hn.getFileName(this._newFilePrefix || "photo", r);
15124
+ o = qn.getFileName(this._newFilePrefix || "photo", r);
15119
15125
  return new File([s], o, {
15120
15126
  type: s.type
15121
15127
  });
@@ -15142,7 +15148,7 @@ var Gs = /*#__PURE__*/function (_st) {
15142
15148
  }], [{
15143
15149
  key: "createCameraModalFunc",
15144
15150
  value: function createCameraModalFunc(e, t, i, s) {
15145
- var r = new Gs(e, t, i, s);
15151
+ var r = new Vs(e, t, i, s);
15146
15152
  return r.openCameraModal.bind(r, r);
15147
15153
  }
15148
15154
  }]);
@@ -15167,7 +15173,7 @@ var Hi = /*#__PURE__*/function (_Lt6) {
15167
15173
  value: function createInnerElements(e) {
15168
15174
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
15169
15175
  return {
15170
- styles: J.createInnerElement(this.elementRef, Hi.createSVGIconElement(), "styles", e, t)
15176
+ styles: Y.createInnerElement(this.elementRef, Hi.createSVGIconElement(), "styles", e, t)
15171
15177
  };
15172
15178
  }
15173
15179
  }, {
@@ -15175,7 +15181,7 @@ var Hi = /*#__PURE__*/function (_Lt6) {
15175
15181
  value:
15176
15182
  // prettier-ignore
15177
15183
  function addClickEvent(e, t, i, s) {
15178
- var r = Gs.createCameraModalFunc(e, t, i, s);
15184
+ var r = Vs.createCameraModalFunc(e, t, i, s);
15179
15185
  this.elementRef.onclick = r;
15180
15186
  }
15181
15187
  }], [{
@@ -15187,7 +15193,7 @@ var Hi = /*#__PURE__*/function (_Lt6) {
15187
15193
  }, {
15188
15194
  key: "createSVGIconElement",
15189
15195
  value: function createSVGIconElement() {
15190
- var e = te.createSVGElement(Ua);
15196
+ var e = ie.createSVGElement(Ua);
15191
15197
  return e.id = "camera-icon", e;
15192
15198
  }
15193
15199
  }]);
@@ -15202,7 +15208,7 @@ var qt = /*#__PURE__*/function () {
15202
15208
  e.speechToText && !r.microphone && (r.microphone = {
15203
15209
  button: new ii(e, a, t.addNewErrorMessage.bind(t))
15204
15210
  });
15205
- var l = new Os(e, a, t, i, o, r);
15211
+ var l = new Ns(e, a, t, i, o, r);
15206
15212
  a.submit = l.submitFromInput.bind(l), Je.attach(e, i, a, o, l), e.submitUserMessage = l.programmaticSubmit.bind(l), r.submit = {
15207
15213
  button: l
15208
15214
  }, qt.addElements(this.elementRef, a, r, s, o, e.dropupStyles);
@@ -15259,18 +15265,18 @@ var qt = /*#__PURE__*/function () {
15259
15265
  }, {
15260
15266
  key: "addElements",
15261
15267
  value: function addElements(e, t, i, s, r, o) {
15262
- Y.addElements(e, t.elementRef);
15268
+ Z.addElements(e, t.elementRef);
15263
15269
  var a = Rt.create(),
15264
- l = X.addButtons(a, i, s, o);
15265
- Ps.set(t.inputElementRef, a, r.elementRef, l), Rt.add(e, a);
15270
+ l = Q.addButtons(a, i, s, o);
15271
+ Os.set(t.inputElementRef, a, r.elementRef, l), Rt.add(e, a);
15266
15272
  }
15267
15273
  }]);
15268
15274
  }();
15269
- var Vs = /*#__PURE__*/function () {
15270
- function Vs() {
15271
- _classCallCheck(this, Vs);
15275
+ var $s = /*#__PURE__*/function () {
15276
+ function $s() {
15277
+ _classCallCheck(this, $s);
15272
15278
  }
15273
- return _createClass(Vs, null, [{
15279
+ return _createClass($s, null, [{
15274
15280
  key: "createElements",
15275
15281
  value: function createElements(e, t, i) {
15276
15282
  var s = document.createElement("div");
@@ -15278,12 +15284,12 @@ var Vs = /*#__PURE__*/function () {
15278
15284
  var r = new pe(e, t, i);
15279
15285
  t.websocket && H.createConnection(t, r);
15280
15286
  var o = new qt(e, r, t, s);
15281
- return Y.addElements(s, r.elementRef, o.elementRef), s;
15287
+ return Z.addElements(s, r.elementRef, o.elementRef), s;
15282
15288
  }
15283
15289
  }, {
15284
15290
  key: "render",
15285
15291
  value: function render(e, t, i, s) {
15286
- var r = Vs.createElements(e, i, s);
15292
+ var r = $s.createElements(e, i, s);
15287
15293
  t.replaceChildren(r), i.isCustomView() && i.setUpView(r, t);
15288
15294
  }
15289
15295
  }]);
@@ -15294,7 +15300,7 @@ var Ha = Object.defineProperty,
15294
15300
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);
15295
15301
  return s && Ha(e, t, s), s;
15296
15302
  };
15297
- var S = /*#__PURE__*/function (_Es) {
15303
+ var S = /*#__PURE__*/function (_Ss) {
15298
15304
  function S() {
15299
15305
  var _this92;
15300
15306
  _classCallCheck(this, S);
@@ -15313,7 +15319,7 @@ var S = /*#__PURE__*/function (_Es) {
15313
15319
  }, 20);
15314
15320
  return _this92;
15315
15321
  }
15316
- _inherits(S, _Es);
15322
+ _inherits(S, _Ss);
15317
15323
  return _createClass(S, [{
15318
15324
  key: "changeToChatView",
15319
15325
  value: function changeToChatView() {
@@ -15324,7 +15330,7 @@ var S = /*#__PURE__*/function (_Es) {
15324
15330
  key: "onRender",
15325
15331
  value: function onRender() {
15326
15332
  var _this$_childElement;
15327
- yi.attemptAppendStyleSheetToHead(this.style), ie.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = na.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Bt.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Bt.applyDefaultStyleToComponent(this.style, this.chatStyle), ie.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? vi.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof z) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], Vs.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof z && G.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered || Si.onRender(this), this._hasBeenRendered = !0;
15333
+ yi.attemptAppendStyleSheetToHead(this.style), se.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = na.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Bt.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Bt.applyDefaultStyleToComponent(this.style, this.chatStyle), se.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? vi.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof z) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], $s.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof z && G.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered || Si.onRender(this), this._hasBeenRendered = !0;
15328
15334
  }
15329
15335
  }, {
15330
15336
  key: "disconnectedCallback",
@@ -15332,7 +15338,7 @@ var S = /*#__PURE__*/function (_Es) {
15332
15338
  Qt.chat = void 0;
15333
15339
  }
15334
15340
  }]);
15335
- }(Es);
15341
+ }(Ss);
15336
15342
  x([_("object")], S.prototype, "connect");
15337
15343
  x([_("object")], S.prototype, "directConnection");
15338
15344
  x([_("object")], S.prototype, "webModel");