deep-chat-dev 9.0.265 → 9.0.266

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 Un = /*#__PURE__*/function () {
35
- function Un() {
36
- _classCallCheck(this, Un);
34
+ var qn = /*#__PURE__*/function () {
35
+ function qn() {
36
+ _classCallCheck(this, qn);
37
37
  }
38
- return _createClass(Un, null, [{
38
+ return _createClass(qn, null, [{
39
39
  key: "render",
40
40
  value: function render(e, t) {
41
41
  var i = document.createElement("div");
@@ -64,7 +64,7 @@ var gi = /*#__PURE__*/function () {
64
64
  var s = gi.createElements(),
65
65
  r = {
66
66
  onSuccess: t,
67
- onFail: Un.render.bind(this, e, "Your 'key' has failed authentication"),
67
+ onFail: qn.render.bind(this, e, "Your 'key' has failed authentication"),
68
68
  onLoad: gi.onLoad.bind(this, s)
69
69
  };
70
70
  i.key && i.verifyKey(i.key, r), e.replaceChildren(s);
@@ -252,12 +252,12 @@ var Xe = /*#__PURE__*/function () {
252
252
  }]);
253
253
  }();
254
254
  Xe.PERMITTED_KEYS = /* @__PURE__ */new Set([U.BACKSPACE, U.DELETE, U.ARROW_RIGHT, U.ARROW_LEFT, U.ARROW_DOWN, U.ARROW_UP, U.META, U.CONTROL, U.ENTER]);
255
- var Yi = Xe;
256
- var jn = /*#__PURE__*/function () {
257
- function jn() {
258
- _classCallCheck(this, jn);
255
+ var Qi = Xe;
256
+ var Hn = /*#__PURE__*/function () {
257
+ function Hn() {
258
+ _classCallCheck(this, Hn);
259
259
  }
260
- return _createClass(jn, null, [{
260
+ return _createClass(Hn, null, [{
261
261
  key: "sanitizePastedTextContent",
262
262
  value: function sanitizePastedTextContent(e) {
263
263
  var i, s;
@@ -275,7 +275,7 @@ var Ye = /*#__PURE__*/function () {
275
275
  this._isComposing = !1;
276
276
  var s = Ye.processConfig(t, e.textInput);
277
277
  this.elementRef = Ye.createContainerElement((r = s == null ? void 0 : s.styles) == null ? void 0 : r.container), this._config = s, this.inputElementRef = this.createInputElement(), this.elementRef.appendChild(this.inputElementRef), e.setPlaceholderText = this.setPlaceholderText.bind(this), e.setPlaceholderText(((o = this._config.placeholder) == null ? void 0 : o.text) || "Ask me anything!"), setTimeout(function () {
278
- Yi.add(_this.inputElementRef, i, _this._config.characterLimit, e._validationHandler);
278
+ Qi.add(_this.inputElementRef, i, _this._config.characterLimit, e._validationHandler);
279
279
  });
280
280
  }
281
281
  return _createClass(Ye, [{
@@ -310,7 +310,7 @@ var Ye = /*#__PURE__*/function () {
310
310
  (t = this._config.styles) != null && t.focus && (e.onfocus = function () {
311
311
  var s;
312
312
  return Object.assign(_this2.elementRef.style, (s = _this2._config.styles) == null ? void 0 : s.focus);
313
- }, 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", jn.sanitizePastedTextContent), e.addEventListener("compositionstart", function () {
313
+ }, 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", Hn.sanitizePastedTextContent), e.addEventListener("compositionstart", function () {
314
314
  return _this2._isComposing = !0;
315
315
  }), e.addEventListener("compositionend", function () {
316
316
  return _this2._isComposing = !1;
@@ -397,46 +397,46 @@ var ai = /*#__PURE__*/function () {
397
397
  }
398
398
  }]);
399
399
  }();
400
- function Os(n) {
400
+ function Ns(n) {
401
401
  return n.charAt(0).toUpperCase() + n.slice(1);
402
402
  }
403
- function qn(n) {
403
+ function zn(n) {
404
404
  return n && JSON.stringify(n);
405
405
  }
406
- function bs(n, e, t, i) {
407
- var s = "\n".concat(Os(e), " message: ").concat(JSON.stringify(n), " \n"),
408
- r = t ? "".concat(Os(e), " message after interceptor: ").concat(qn(i), " \n") : "";
406
+ function ys(n, e, t, i) {
407
+ var s = "\n".concat(Ns(e), " message: ").concat(JSON.stringify(n), " \n"),
408
+ r = t ? "".concat(Ns(e), " message after interceptor: ").concat(zn(i), " \n") : "";
409
409
  return s + r;
410
410
  }
411
- function Hn(n, e, t, i) {
412
- 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");
411
+ function Gn(n, e, t, i) {
412
+ return "".concat(ys(n, e, t, i), "Make sure the ").concat(e, " message is using the Response format: https://deepchat.dev/docs/connect/#Response \nYou can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor");
413
413
  }
414
- function zn(n, e, t) {
414
+ function Vn(n, e, t) {
415
415
  var i = "response";
416
- return "".concat(bs(n, i, e, t), "Make sure the ").concat(i, " message is using the {text: string} format, e.g: {text: \"Model Response\"}");
416
+ return "".concat(ys(n, i, e, t), "Make sure the ").concat(i, " message is using the {text: string} format, e.g: {text: \"Model Response\"}");
417
417
  }
418
- function Gn(n, e) {
418
+ function Kn(n, e) {
419
419
  var t = "request";
420
- 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\"}}");
420
+ return "".concat(ys(n, t, e), "Make sure the ").concat(t, " message is using the {body: {text: string}} format, e.g: {body: {text: \"Model Response\"}}");
421
421
  }
422
- var Ps = "Make sure the events are using {text: string} or {html: string} format.\nYou can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor",
422
+ var Ds = "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",
423
423
  k = {
424
424
  INVALID_KEY: "Invalid API Key",
425
425
  CONNECTION_FAILED: "Failed to connect",
426
- INVALID_RESPONSE: Hn,
427
- INVALID_MODEL_REQUEST: Gn,
428
- INVALID_MODEL_RESPONSE: zn,
426
+ INVALID_RESPONSE: Gn,
427
+ INVALID_MODEL_REQUEST: Kn,
428
+ INVALID_MODEL_RESPONSE: Vn,
429
429
  INVALID_STREAM_ARRAY_RESPONSE: "Multi-response arrays are not supported for streaming",
430
- INVALID_STREAM_EVENT: Ps,
430
+ INVALID_STREAM_EVENT: Ds,
431
431
  INVALID_STREAM_EVENT_MIX: "Cannot mix {text: string} and {html: string} responses.",
432
- NO_VALID_STREAM_EVENTS_SENT: "No valid stream events were sent.\n".concat(Ps),
432
+ NO_VALID_STREAM_EVENTS_SENT: "No valid stream events were sent.\n".concat(Ds),
433
433
  READABLE_STREAM_CONNECTION_ERROR: "Readable Stream connection error."
434
434
  },
435
- Di = /*#__PURE__*/function () {
436
- function Di() {
437
- _classCallCheck(this, Di);
435
+ Bi = /*#__PURE__*/function () {
436
+ function Bi() {
437
+ _classCallCheck(this, Bi);
438
438
  }
439
- return _createClass(Di, null, [{
439
+ return _createClass(Bi, null, [{
440
440
  key: "addElements",
441
441
  value: function addElements(e) {
442
442
  for (var _len = arguments.length, t = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -453,7 +453,7 @@ var Ps = "Make sure the events are using {text: string} or {html: string} format
453
453
  i = e.clientHeight,
454
454
  s = e.scrollTop,
455
455
  r = t - i;
456
- return s >= r - Di.CODE_SNIPPET_GENERATION_JUMP;
456
+ return s >= r - Bi.CODE_SNIPPET_GENERATION_JUMP;
457
457
  }
458
458
  }, {
459
459
  key: "cloneElement",
@@ -478,13 +478,13 @@ var Ps = "Make sure the events are using {text: string} or {html: string} format
478
478
  }
479
479
  }]);
480
480
  }();
481
- Di.CODE_SNIPPET_GENERATION_JUMP = 0.5;
482
- var G = Di;
483
- var Bi = /*#__PURE__*/function () {
484
- function Bi() {
485
- _classCallCheck(this, Bi);
481
+ Bi.CODE_SNIPPET_GENERATION_JUMP = 0.5;
482
+ var G = Bi;
483
+ var Fi = /*#__PURE__*/function () {
484
+ function Fi() {
485
+ _classCallCheck(this, Fi);
486
486
  }
487
- return _createClass(Bi, null, [{
487
+ return _createClass(Fi, null, [{
488
488
  key: "speak",
489
489
  value: function speak(e, t) {
490
490
  if (window.SpeechSynthesisUtterance) {
@@ -505,12 +505,12 @@ var Bi = /*#__PURE__*/function () {
505
505
  s && (i.voice = s);
506
506
  }
507
507
  t(i);
508
- }, Bi.LOAD_VOICES_MS);
508
+ }, Fi.LOAD_VOICES_MS);
509
509
  }
510
510
  }]);
511
511
  }();
512
- Bi.LOAD_VOICES_MS = 200;
513
- var gt = Bi;
512
+ Fi.LOAD_VOICES_MS = 200;
513
+ var gt = Fi;
514
514
  var ut = /*#__PURE__*/function () {
515
515
  function ut() {
516
516
  _classCallCheck(this, ut);
@@ -774,9 +774,9 @@ var $e = /*#__PURE__*/function () {
774
774
  }
775
775
  }]);
776
776
  }();
777
- var Vn = "deep-chat-temporary-message",
778
- Kn = "deep-chat-suggestion-button",
779
- Zi = {
777
+ var $n = "deep-chat-temporary-message",
778
+ Wn = "deep-chat-suggestion-button",
779
+ es = {
780
780
  "deep-chat-button": {
781
781
  styles: {
782
782
  "default": {
@@ -797,7 +797,7 @@ var Vn = "deep-chat-temporary-message",
797
797
  }
798
798
  }
799
799
  },
800
- Ns = Object.keys(Zi);
800
+ Bs = Object.keys(es);
801
801
  var Se = /*#__PURE__*/function () {
802
802
  function Se() {
803
803
  _classCallCheck(this, Se);
@@ -818,19 +818,19 @@ var Se = /*#__PURE__*/function () {
818
818
  key: "isElementTemporary",
819
819
  value: function isElementTemporary(e) {
820
820
  var t;
821
- return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains(Vn) : !1;
821
+ return e ? (t = e.bubbleElement.children[0]) == null ? void 0 : t.classList.contains($n) : !1;
822
822
  }
823
823
  }, {
824
824
  key: "doesElementContainDeepChatClass",
825
825
  value: function doesElementContainDeepChatClass(e) {
826
- return Ns.find(function (t) {
826
+ return Bs.find(function (t) {
827
827
  return e.classList.contains(t);
828
828
  });
829
829
  }
830
830
  }, {
831
831
  key: "applyEvents",
832
832
  value: function applyEvents(e, t) {
833
- var i = Zi[t].events;
833
+ var i = es[t].events;
834
834
  Object.keys(i || []).forEach(function (s) {
835
835
  e.addEventListener(s, i == null ? void 0 : i[s]);
836
836
  });
@@ -843,7 +843,7 @@ var Se = /*#__PURE__*/function () {
843
843
  var c = (d = e[l]) == null ? void 0 : d.styles;
844
844
  return c && e[l].styles && a.push(c), a;
845
845
  }, []),
846
- r = Zi[i].styles;
846
+ r = es[i].styles;
847
847
  if (r) {
848
848
  var a = JSON.parse(JSON.stringify(r));
849
849
  a["default"] && I.overwriteDefaultWithAlreadyApplied(a, t), s.unshift(a);
@@ -854,14 +854,14 @@ var Se = /*#__PURE__*/function () {
854
854
  }, {
855
855
  key: "applyDeepChatUtilities",
856
856
  value: function applyDeepChatUtilities(e, t, i) {
857
- Ns.forEach(function (r) {
857
+ Bs.forEach(function (r) {
858
858
  var o = i.getElementsByClassName(r);
859
859
  Array.from(o || []).forEach(function (a) {
860
860
  var l = Se.getProcessedStyles(t, a, r);
861
861
  X.applyStylesToElement(a, l), Se.applyEvents(a, r);
862
862
  });
863
863
  });
864
- var s = i.getElementsByClassName(Kn);
864
+ var s = i.getElementsByClassName(Wn);
865
865
  Array.from(s).forEach(function (r) {
866
866
  return Se.applySuggestionEvent(e, r);
867
867
  });
@@ -999,14 +999,14 @@ var ke = /*#__PURE__*/function () {
999
999
  ke.HTML_BUBBLE_CLASS = "html-message";
1000
1000
  var _e = ke;
1001
1001
  var hi;
1002
- function En(n) {
1002
+ function _n(n) {
1003
1003
  return hi = hi || document.createElement("textarea"), hi.innerHTML = "&" + n + ";", hi.value;
1004
1004
  }
1005
- var $n = Object.prototype.hasOwnProperty;
1006
- function Wn(n, e) {
1007
- return n ? $n.call(n, e) : !1;
1005
+ var Jn = Object.prototype.hasOwnProperty;
1006
+ function Xn(n, e) {
1007
+ return n ? Jn.call(n, e) : !1;
1008
1008
  }
1009
- function Sn(n) {
1009
+ function xn(n) {
1010
1010
  var e = [].slice.call(arguments, 1);
1011
1011
  return e.forEach(function (t) {
1012
1012
  if (t) {
@@ -1017,14 +1017,14 @@ function Sn(n) {
1017
1017
  }
1018
1018
  }), n;
1019
1019
  }
1020
- var Jn = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
1020
+ var Yn = /\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
1021
1021
  function Qt(n) {
1022
- return n.indexOf("\\") < 0 ? n : n.replace(Jn, "$1");
1022
+ return n.indexOf("\\") < 0 ? n : n.replace(Yn, "$1");
1023
1023
  }
1024
- function _n(n) {
1024
+ function wn(n) {
1025
1025
  return !(n >= 55296 && n <= 57343 || n >= 64976 && n <= 65007 || (n & 65535) === 65535 || (n & 65535) === 65534 || n >= 0 && n <= 8 || n === 11 || n >= 14 && n <= 31 || n >= 127 && n <= 159 || n > 1114111);
1026
1026
  }
1027
- function Qi(n) {
1027
+ function ts(n) {
1028
1028
  if (n > 65535) {
1029
1029
  n -= 65536;
1030
1030
  var e = 55296 + (n >> 10),
@@ -1033,29 +1033,29 @@ function Qi(n) {
1033
1033
  }
1034
1034
  return String.fromCharCode(n);
1035
1035
  }
1036
- var Xn = /&([a-z#][a-z0-9]{1,31});/gi,
1037
- Yn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1038
- function Zn(n, e) {
1036
+ var Zn = /&([a-z#][a-z0-9]{1,31});/gi,
1037
+ Qn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1038
+ function er(n, e) {
1039
1039
  var t = 0,
1040
- i = En(e);
1041
- return e !== i ? i : e.charCodeAt(0) === 35 && Yn.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), _n(t)) ? Qi(t) : n;
1040
+ i = _n(e);
1041
+ return e !== i ? i : e.charCodeAt(0) === 35 && Qn.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), wn(t)) ? ts(t) : n;
1042
1042
  }
1043
1043
  function nt(n) {
1044
- return n.indexOf("&") < 0 ? n : n.replace(Xn, Zn);
1044
+ return n.indexOf("&") < 0 ? n : n.replace(Zn, er);
1045
1045
  }
1046
- var Qn = /[&<>"]/,
1047
- er = /[&<>"]/g,
1048
- tr = {
1046
+ var tr = /[&<>"]/,
1047
+ ir = /[&<>"]/g,
1048
+ sr = {
1049
1049
  "&": "&amp;",
1050
1050
  "<": "&lt;",
1051
1051
  ">": "&gt;",
1052
1052
  '"': "&quot;"
1053
1053
  };
1054
- function ir(n) {
1055
- return tr[n];
1054
+ function nr(n) {
1055
+ return sr[n];
1056
1056
  }
1057
1057
  function ee(n) {
1058
- return Qn.test(n) ? n.replace(er, ir) : n;
1058
+ return tr.test(n) ? n.replace(ir, nr) : n;
1059
1059
  }
1060
1060
  var v = {};
1061
1061
  v.blockquote_open = function () {
@@ -1076,7 +1076,7 @@ v.fence = function (n, e, t, i, s) {
1076
1076
  d,
1077
1077
  u;
1078
1078
  if (r.params) {
1079
- if (c = r.params.split(/\s+/g), d = c.join(" "), Wn(s.rules.fence_custom, c[0])) return s.rules.fence_custom[c[0]](n, e, t, i, s);
1079
+ 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);
1080
1080
  l = ee(nt(Qt(d))), o = ' class="' + a + l + '"';
1081
1081
  }
1082
1082
  return t.highlight ? u = t.highlight.apply(t.highlight, [r.content].concat(c)) || ee(r.content) : u = ee(r.content), "<pre><code" + o + ">" + u + "</code></pre>" + ot(n, e);
@@ -1270,20 +1270,20 @@ v.dt_close = function () {
1270
1270
  v.dd_close = function () {
1271
1271
  return "</dd>\n";
1272
1272
  };
1273
- function xn(n, e) {
1274
- return ++e >= n.length - 2 ? e : n[e].type === "paragraph_open" && n[e].tight && n[e + 1].type === "inline" && n[e + 1].content.length === 0 && n[e + 2].type === "paragraph_close" && n[e + 2].tight ? xn(n, e + 2) : e;
1273
+ function An(n, e) {
1274
+ return ++e >= n.length - 2 ? e : n[e].type === "paragraph_open" && n[e].tight && n[e + 1].type === "inline" && n[e + 1].content.length === 0 && n[e + 2].type === "paragraph_close" && n[e + 2].tight ? An(n, e + 2) : e;
1275
1275
  }
1276
1276
  var ot = v.getBreak = function (e, t) {
1277
- return t = xn(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
1277
+ return t = An(e, t), t < e.length && e[t].type === "list_item_close" ? "" : "\n";
1278
1278
  };
1279
- function vs() {
1280
- this.rules = Sn({}, v), this.getBreak = v.getBreak;
1279
+ function Es() {
1280
+ this.rules = xn({}, v), this.getBreak = v.getBreak;
1281
1281
  }
1282
- vs.prototype.renderInline = function (n, e, t) {
1282
+ Es.prototype.renderInline = function (n, e, t) {
1283
1283
  for (var i = this.rules, s = n.length, r = 0, o = ""; s--;) o += i[n[r].type](n, r++, e, t, this);
1284
1284
  return o;
1285
1285
  };
1286
- vs.prototype.render = function (n, e, t) {
1286
+ Es.prototype.render = function (n, e, t) {
1287
1287
  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);
1288
1288
  return o;
1289
1289
  };
@@ -1363,7 +1363,7 @@ oe.prototype.disable = function (n) {
1363
1363
  oe.prototype.getRules = function (n) {
1364
1364
  return this.__cache__ === null && this.__compile__(), this.__cache__[n] || [];
1365
1365
  };
1366
- function sr(n) {
1366
+ function rr(n) {
1367
1367
  n.inlineMode ? n.tokens.push({
1368
1368
  type: "inline",
1369
1369
  content: n.src.replace(/\n/g, " ").trim(),
@@ -1411,13 +1411,13 @@ function ei(n, e) {
1411
1411
  }
1412
1412
  return i ? (r = n.pos, n.labelUnmatchedScopes = 0) : n.labelUnmatchedScopes = t - 1, n.pos = a, n.isInLabel = l, r;
1413
1413
  }
1414
- function nr(n, e, t, i) {
1414
+ function or(n, e, t, i) {
1415
1415
  var s, r, o, a, l, c;
1416
1416
  if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (s = new at(n, e, t, i, []), r = ei(s, 1), r < 0 || n.charCodeAt(r + 1) !== 58)) return -1;
1417
1417
  for (a = s.posMax, o = r + 2; o < a && s.src.charCodeAt(o) !== 10; o++);
1418
1418
  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);
1419
1419
  }
1420
- function rr(n) {
1420
+ function ar(n) {
1421
1421
  var e = n.tokens,
1422
1422
  t,
1423
1423
  i,
@@ -1425,19 +1425,19 @@ function rr(n) {
1425
1425
  r;
1426
1426
  if (!n.inlineMode) {
1427
1427
  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") {
1428
- for (s = e[t].content; s.length && (r = nr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1428
+ for (s = e[t].content; s.length && (r = or(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1429
1429
  e[t].content = s, s.length || (e[t - 1].tight = !0, e[t + 1].tight = !0);
1430
1430
  }
1431
1431
  }
1432
1432
  }
1433
- function es(n) {
1433
+ function is(n) {
1434
1434
  var e = nt(n);
1435
1435
  try {
1436
1436
  e = decodeURI(e);
1437
1437
  } catch (_unused3) {}
1438
1438
  return encodeURI(e);
1439
1439
  }
1440
- function wn(n, e) {
1440
+ function Tn(n, e) {
1441
1441
  var t,
1442
1442
  i,
1443
1443
  s,
@@ -1446,7 +1446,7 @@ function wn(n, e) {
1446
1446
  if (n.src.charCodeAt(e) === 60) {
1447
1447
  for (e++; e < o;) {
1448
1448
  if (t = n.src.charCodeAt(e), t === 10) return !1;
1449
- if (t === 62) return s = es(Qt(n.src.slice(r + 1, e))), n.parser.validateLink(s) ? (n.pos = e + 1, n.linkContent = s, !0) : !1;
1449
+ if (t === 62) return s = is(Qt(n.src.slice(r + 1, e))), n.parser.validateLink(s) ? (n.pos = e + 1, n.linkContent = s, !0) : !1;
1450
1450
  if (t === 92 && e + 1 < o) {
1451
1451
  e += 2;
1452
1452
  continue;
@@ -1465,7 +1465,7 @@ function wn(n, e) {
1465
1465
  }
1466
1466
  return r === e || (s = Qt(n.src.slice(r, e)), !n.parser.validateLink(s)) ? !1 : (n.linkContent = s, n.pos = e, !0);
1467
1467
  }
1468
- function An(n, e) {
1468
+ function Cn(n, e) {
1469
1469
  var t,
1470
1470
  i = e,
1471
1471
  s = n.posMax,
@@ -1481,22 +1481,22 @@ function An(n, e) {
1481
1481
  }
1482
1482
  return !1;
1483
1483
  }
1484
- function Tn(n) {
1484
+ function Rn(n) {
1485
1485
  return n.trim().replace(/\s+/g, " ").toUpperCase();
1486
1486
  }
1487
- function or(n, e, t, i) {
1487
+ function lr(n, e, t, i) {
1488
1488
  var s, r, o, a, l, c, d, u, h;
1489
1489
  if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (s = new at(n, e, t, i, []), r = ei(s, 0), r < 0 || n.charCodeAt(r + 1) !== 58)) return -1;
1490
1490
  for (a = s.posMax, o = r + 2; o < a && (l = s.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++);
1491
- if (!wn(s, o)) return -1;
1491
+ if (!Tn(s, o)) return -1;
1492
1492
  for (d = s.linkContent, o = s.pos, c = o, o = o + 1; o < a && (l = s.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++);
1493
- for (o < a && c !== o && An(s, o) ? (u = s.linkContent, o = s.pos) : (u = "", o = c); o < a && s.src.charCodeAt(o) === 32;) o++;
1494
- return o < a && s.src.charCodeAt(o) !== 10 ? -1 : (h = Tn(n.slice(1, r)), _typeof(i.references[h]) > "u" && (i.references[h] = {
1493
+ for (o < a && c !== o && Cn(s, o) ? (u = s.linkContent, o = s.pos) : (u = "", o = c); o < a && s.src.charCodeAt(o) === 32;) o++;
1494
+ return o < a && s.src.charCodeAt(o) !== 10 ? -1 : (h = Rn(n.slice(1, r)), _typeof(i.references[h]) > "u" && (i.references[h] = {
1495
1495
  title: u,
1496
1496
  href: d
1497
1497
  }), o);
1498
1498
  }
1499
- function ar(n) {
1499
+ function cr(n) {
1500
1500
  var e = n.tokens,
1501
1501
  t,
1502
1502
  i,
@@ -1504,19 +1504,19 @@ function ar(n) {
1504
1504
  r;
1505
1505
  if (n.env.references = n.env.references || {}, !n.inlineMode) {
1506
1506
  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") {
1507
- for (s = e[t].content; s.length && (r = or(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1507
+ for (s = e[t].content; s.length && (r = lr(s, n.inline, n.options, n.env), !(r < 0));) s = s.slice(r).trim();
1508
1508
  e[t].content = s, s.length || (e[t - 1].tight = !0, e[t + 1].tight = !0);
1509
1509
  }
1510
1510
  }
1511
1511
  }
1512
- function lr(n) {
1512
+ function dr(n) {
1513
1513
  var e = n.tokens,
1514
1514
  t,
1515
1515
  i,
1516
1516
  s;
1517
1517
  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);
1518
1518
  }
1519
- function cr(n) {
1519
+ function hr(n) {
1520
1520
  var e,
1521
1521
  t,
1522
1522
  i,
@@ -1570,11 +1570,11 @@ function cr(n) {
1570
1570
  });
1571
1571
  }
1572
1572
  }
1573
- var Ds = " \n()[]'\".,!?-";
1574
- function $i(n) {
1573
+ var Fs = " \n()[]'\".,!?-";
1574
+ function Ji(n) {
1575
1575
  return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
1576
1576
  }
1577
- function dr(n) {
1577
+ function ur(n) {
1578
1578
  var e,
1579
1579
  t,
1580
1580
  i,
@@ -1589,11 +1589,11 @@ function dr(n) {
1589
1589
  h,
1590
1590
  f = n.tokens;
1591
1591
  if (n.env.abbreviations) {
1592
- for (n.env.abbrRegExp || (h = "(^|[" + Ds.split("").map($i).join("") + "])(" + Object.keys(n.env.abbreviations).map(function (m) {
1592
+ for (n.env.abbrRegExp || (h = "(^|[" + Fs.split("").map(Ji).join("") + "])(" + Object.keys(n.env.abbreviations).map(function (m) {
1593
1593
  return m.substr(1);
1594
1594
  }).sort(function (m, p) {
1595
1595
  return p.length - m.length;
1596
- }).map($i).join("|") + ")($|[" + Ds.split("").map($i).join("") + "])", n.env.abbrRegExp = new RegExp(h, "g")), d = n.env.abbrRegExp, t = 0, i = f.length; t < i; t++) if (f[t].type === "inline") {
1596
+ }).map(Ji).join("|") + ")($|[" + Fs.split("").map(Ji).join("") + "])", n.env.abbrRegExp = new RegExp(h, "g")), d = n.env.abbrRegExp, t = 0, i = f.length; t < i; t++) if (f[t].type === "inline") {
1597
1597
  for (s = f[t].children, e = s.length - 1; e >= 0; e--) if (r = s[e], r.type === "text") {
1598
1598
  for (l = 0, o = r.content, d.lastIndex = 0, c = r.level, a = []; u = d.exec(o);) d.lastIndex > l && a.push({
1599
1599
  type: "text",
@@ -1620,45 +1620,45 @@ function dr(n) {
1620
1620
  }
1621
1621
  }
1622
1622
  }
1623
- var hr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
1624
- ur = /\((c|tm|r|p)\)/ig,
1625
- fr = {
1623
+ var fr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
1624
+ pr = /\((c|tm|r|p)\)/ig,
1625
+ mr = {
1626
1626
  c: "©",
1627
1627
  r: "®",
1628
1628
  p: "§",
1629
1629
  tm: "™"
1630
1630
  };
1631
- function pr(n) {
1632
- return n.indexOf("(") < 0 ? n : n.replace(ur, function (e, t) {
1633
- return fr[t.toLowerCase()];
1631
+ function gr(n) {
1632
+ return n.indexOf("(") < 0 ? n : n.replace(pr, function (e, t) {
1633
+ return mr[t.toLowerCase()];
1634
1634
  });
1635
1635
  }
1636
- function mr(n) {
1636
+ function br(n) {
1637
1637
  var e, t, i, s, r;
1638
1638
  if (n.options.typographer) {
1639
- 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 = pr(i), hr.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);
1639
+ 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 = gr(i), fr.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);
1640
1640
  }
1641
1641
  }
1642
- var gr = /['"]/,
1643
- Bs = /['"]/g,
1644
- br = /[-\s()\[\]]/,
1645
- Fs = "’";
1646
- function Us(n, e) {
1647
- return e < 0 || e >= n.length ? !1 : !br.test(n[e]);
1642
+ var vr = /['"]/,
1643
+ Us = /['"]/g,
1644
+ yr = /[-\s()\[\]]/,
1645
+ js = "’";
1646
+ function qs(n, e) {
1647
+ return e < 0 || e >= n.length ? !1 : !yr.test(n[e]);
1648
1648
  }
1649
1649
  function dt(n, e, t) {
1650
1650
  return n.substr(0, e) + t + n.substr(e + 1);
1651
1651
  }
1652
- function vr(n) {
1652
+ function Er(n) {
1653
1653
  var e, t, i, s, r, o, a, l, c, d, u, h, f, m, p, g, b;
1654
1654
  if (n.options.typographer) {
1655
1655
  for (b = [], p = n.tokens.length - 1; p >= 0; p--) if (n.tokens[p].type === "inline") {
1656
- for (g = n.tokens[p].children, b.length = 0, e = 0; e < g.length; e++) if (t = g[e], !(t.type !== "text" || gr.test(t.text))) {
1656
+ for (g = n.tokens[p].children, b.length = 0, e = 0; e < g.length; e++) if (t = g[e], !(t.type !== "text" || vr.test(t.text))) {
1657
1657
  for (a = g[e].level, f = b.length - 1; f >= 0 && !(b[f].level <= a); f--);
1658
1658
  b.length = f + 1, i = t.content, r = 0, o = i.length;
1659
- e: for (; r < o && (Bs.lastIndex = r, s = Bs.exec(i), !!s);) {
1660
- if (l = !Us(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !Us(i, r), !c && !l) {
1661
- m && (t.content = dt(t.content, s.index, Fs));
1659
+ e: for (; r < o && (Us.lastIndex = r, s = Us.exec(i), !!s);) {
1660
+ if (l = !qs(i, s.index - 1), r = s.index + 1, m = s[0] === "'", c = !qs(i, r), !c && !l) {
1661
+ m && (t.content = dt(t.content, s.index, js));
1662
1662
  continue;
1663
1663
  }
1664
1664
  if (u = !c, h = !l, h) {
@@ -1672,18 +1672,18 @@ function vr(n) {
1672
1672
  pos: s.index,
1673
1673
  single: m,
1674
1674
  level: a
1675
- }) : h && m && (t.content = dt(t.content, s.index, Fs));
1675
+ }) : h && m && (t.content = dt(t.content, s.index, js));
1676
1676
  }
1677
1677
  }
1678
1678
  }
1679
1679
  }
1680
1680
  }
1681
- var Wi = [["block", sr], ["abbr", rr], ["references", ar], ["inline", lr], ["footnote_tail", cr], ["abbr2", dr], ["replacements", mr], ["smartquotes", vr]];
1682
- function Cn() {
1681
+ var Xi = [["block", rr], ["abbr", ar], ["references", cr], ["inline", dr], ["footnote_tail", hr], ["abbr2", ur], ["replacements", br], ["smartquotes", Er]];
1682
+ function Mn() {
1683
1683
  this.options = {}, this.ruler = new oe();
1684
- for (var n = 0; n < Wi.length; n++) this.ruler.push(Wi[n][0], Wi[n][1]);
1684
+ for (var n = 0; n < Xi.length; n++) this.ruler.push(Xi[n][0], Xi[n][1]);
1685
1685
  }
1686
- Cn.prototype.process = function (n) {
1686
+ Mn.prototype.process = function (n) {
1687
1687
  var e, t, i;
1688
1688
  for (i = this.ruler.getRules(""), e = 0, t = i.length; e < t; e++) i[e](n);
1689
1689
  };
@@ -1730,7 +1730,7 @@ lt.prototype.getLines = function (e, t, i, s) {
1730
1730
  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);
1731
1731
  return l.join("");
1732
1732
  };
1733
- function yr(n, e, t) {
1733
+ function Sr(n, e, t) {
1734
1734
  var i, s;
1735
1735
  if (n.tShift[e] - n.blkIndent < 4) return !1;
1736
1736
  for (s = i = e + 1; i < t;) {
@@ -1752,7 +1752,7 @@ function yr(n, e, t) {
1752
1752
  level: n.level
1753
1753
  }), !0;
1754
1754
  }
1755
- function Er(n, e, t, i) {
1755
+ function _r(n, e, t, i) {
1756
1756
  var s,
1757
1757
  r,
1758
1758
  o,
@@ -1775,7 +1775,7 @@ function Er(n, e, t, i) {
1775
1775
  level: n.level
1776
1776
  }), !0;
1777
1777
  }
1778
- function Sr(n, e, t, i) {
1778
+ function xr(n, e, t, i) {
1779
1779
  var s,
1780
1780
  r,
1781
1781
  o,
@@ -1814,7 +1814,7 @@ function Sr(n, e, t, i) {
1814
1814
  }), n.parentType = c, d[1] = n.line, h = 0; h < o.length; h++) n.bMarks[h + e] = a[h], n.tShift[h + e] = o[h];
1815
1815
  return n.blkIndent = l, !0;
1816
1816
  }
1817
- function _r(n, e, t, i) {
1817
+ function wr(n, e, t, i) {
1818
1818
  var s,
1819
1819
  r,
1820
1820
  o,
@@ -1831,11 +1831,11 @@ function _r(n, e, t, i) {
1831
1831
  level: n.level
1832
1832
  })), !0);
1833
1833
  }
1834
- function js(n, e) {
1834
+ function Hs(n, e) {
1835
1835
  var t, i, s;
1836
1836
  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;
1837
1837
  }
1838
- function qs(n, e) {
1838
+ function zs(n, e) {
1839
1839
  var t,
1840
1840
  i = n.bMarks[e] + n.tShift[e],
1841
1841
  s = n.eMarks[e];
@@ -1849,13 +1849,13 @@ function qs(n, e) {
1849
1849
  }
1850
1850
  return i < s && n.src.charCodeAt(i) !== 32 ? -1 : i;
1851
1851
  }
1852
- function xr(n, e) {
1852
+ function Ar(n, e) {
1853
1853
  var t,
1854
1854
  i,
1855
1855
  s = n.level + 2;
1856
1856
  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);
1857
1857
  }
1858
- function wr(n, e, t, i) {
1858
+ function Tr(n, e, t, i) {
1859
1859
  var s,
1860
1860
  r,
1861
1861
  o,
@@ -1877,9 +1877,9 @@ function wr(n, e, t, i) {
1877
1877
  Ce = !0,
1878
1878
  ye,
1879
1879
  ie,
1880
- Is,
1881
- Ki;
1882
- if ((u = qs(n, e)) >= 0) g = !0;else if ((u = js(n, e)) >= 0) g = !1;else return !1;
1880
+ Ps,
1881
+ Wi;
1882
+ if ((u = zs(n, e)) >= 0) g = !0;else if ((u = Hs(n, e)) >= 0) g = !1;else return !1;
1883
1883
  if (n.level >= n.options.maxNesting) return !1;
1884
1884
  if (p = n.src.charCodeAt(u - 1), i) return !0;
1885
1885
  for (M = n.tokens.length, g ? (d = n.bMarks[e] + n.tShift[e], m = Number(n.src.substr(d, u - d - 1)), n.tokens.push({
@@ -1899,22 +1899,22 @@ function wr(n, e, t, i) {
1899
1899
  type: "list_item_close",
1900
1900
  level: --n.level
1901
1901
  }), s = e = n.line, ae[1] = s, b = n.bMarks[e], !(s >= t || n.isEmpty(s) || n.tShift[s] < n.blkIndent));) {
1902
- for (Ki = !1, ie = 0, Is = ye.length; ie < Is; ie++) if (ye[ie](n, s, t, !0)) {
1903
- Ki = !0;
1902
+ for (Wi = !1, ie = 0, Ps = ye.length; ie < Ps; ie++) if (ye[ie](n, s, t, !0)) {
1903
+ Wi = !0;
1904
1904
  break;
1905
1905
  }
1906
- if (Ki) break;
1906
+ if (Wi) break;
1907
1907
  if (g) {
1908
- if (u = qs(n, s), u < 0) break;
1909
- } else if (u = js(n, s), u < 0) break;
1908
+ if (u = zs(n, s), u < 0) break;
1909
+ } else if (u = Hs(n, s), u < 0) break;
1910
1910
  if (p !== n.src.charCodeAt(u - 1)) break;
1911
1911
  }
1912
1912
  return n.tokens.push({
1913
1913
  type: g ? "ordered_list_close" : "bullet_list_close",
1914
1914
  level: --n.level
1915
- }), qe[1] = s, n.line = s, Ce && xr(n, M), !0;
1915
+ }), qe[1] = s, n.line = s, Ce && Ar(n, M), !0;
1916
1916
  }
1917
- function Ar(n, e, t, i) {
1917
+ function Cr(n, e, t, i) {
1918
1918
  var s,
1919
1919
  r,
1920
1920
  o,
@@ -1936,7 +1936,7 @@ function Ar(n, e, t, i) {
1936
1936
  level: --n.level
1937
1937
  })), !0);
1938
1938
  }
1939
- function Tr(n, e, t, i) {
1939
+ function Rr(n, e, t, i) {
1940
1940
  var s,
1941
1941
  r,
1942
1942
  o,
@@ -1961,7 +1961,7 @@ function Tr(n, e, t, i) {
1961
1961
  level: n.level
1962
1962
  })), !0);
1963
1963
  }
1964
- function Cr(n, e, t) {
1964
+ function Mr(n, e, t) {
1965
1965
  var i,
1966
1966
  s,
1967
1967
  r,
@@ -1983,17 +1983,17 @@ function Cr(n, e, t) {
1983
1983
  level: n.level
1984
1984
  }), !0);
1985
1985
  }
1986
- var Rn = {};
1986
+ var kn = {};
1987
1987
  ["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) {
1988
- Rn[n] = !0;
1988
+ kn[n] = !0;
1989
1989
  });
1990
- var Rr = /^<([a-zA-Z]{1,15})[\s\/>]/,
1991
- Mr = /^<\/([a-zA-Z]{1,15})[\s>]/;
1992
- function kr(n) {
1990
+ var kr = /^<([a-zA-Z]{1,15})[\s\/>]/,
1991
+ Lr = /^<\/([a-zA-Z]{1,15})[\s>]/;
1992
+ function Ir(n) {
1993
1993
  var e = n | 32;
1994
1994
  return e >= 97 && e <= 122;
1995
1995
  }
1996
- function Lr(n, e, t, i) {
1996
+ function Or(n, e, t, i) {
1997
1997
  var s,
1998
1998
  r,
1999
1999
  o,
@@ -2003,11 +2003,11 @@ function Lr(n, e, t, i) {
2003
2003
  if (a += c, !n.options.html || c > 3 || a + 2 >= l || n.src.charCodeAt(a) !== 60) return !1;
2004
2004
  if (s = n.src.charCodeAt(a + 1), s === 33 || s === 63) {
2005
2005
  if (i) return !0;
2006
- } else if (s === 47 || kr(s)) {
2006
+ } else if (s === 47 || Ir(s)) {
2007
2007
  if (s === 47) {
2008
- if (r = n.src.slice(a, l).match(Mr), !r) return !1;
2009
- } else if (r = n.src.slice(a, l).match(Rr), !r) return !1;
2010
- if (Rn[r[1].toLowerCase()] !== !0) return !1;
2008
+ if (r = n.src.slice(a, l).match(Lr), !r) return !1;
2009
+ } else if (r = n.src.slice(a, l).match(kr), !r) return !1;
2010
+ if (kn[r[1].toLowerCase()] !== !0) return !1;
2011
2011
  if (i) return !0;
2012
2012
  } else return !1;
2013
2013
  for (o = e + 1; o < n.lineMax && !n.isEmpty(o);) o++;
@@ -2018,14 +2018,14 @@ function Lr(n, e, t, i) {
2018
2018
  content: n.getLines(e, o, 0, !0)
2019
2019
  }), !0;
2020
2020
  }
2021
- function Ji(n, e) {
2021
+ function Yi(n, e) {
2022
2022
  var t = n.bMarks[e] + n.blkIndent,
2023
2023
  i = n.eMarks[e];
2024
2024
  return n.src.substr(t, i - t);
2025
2025
  }
2026
- function Ir(n, e, t, i) {
2026
+ function Pr(n, e, t, i) {
2027
2027
  var s, r, o, a, l, c, d, u, h, f, m;
2028
- if (e + 2 > t || (l = e + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (s = n.src.charCodeAt(o), s !== 124 && s !== 45 && s !== 58) || (r = Ji(n, e + 1), !/^[-:| ]+$/.test(r)) || (c = r.split("|"), c <= 2)) return !1;
2028
+ 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 = Yi(n, e + 1), !/^[-:| ]+$/.test(r)) || (c = r.split("|"), c <= 2)) return !1;
2029
2029
  for (u = [], a = 0; a < c.length; a++) {
2030
2030
  if (h = c[a].trim(), !h) {
2031
2031
  if (a === 0 || a === c.length - 1) continue;
@@ -2034,7 +2034,7 @@ function Ir(n, e, t, i) {
2034
2034
  if (!/^:?-+:?$/.test(h)) return !1;
2035
2035
  h.charCodeAt(h.length - 1) === 58 ? u.push(h.charCodeAt(0) === 58 ? "center" : "right") : h.charCodeAt(0) === 58 ? u.push("left") : u.push("");
2036
2036
  }
2037
- if (r = Ji(n, e).trim(), r.indexOf("|") === -1 || (c = r.replace(/^\||\|$/g, "").split("|"), u.length !== c.length)) return !1;
2037
+ if (r = Yi(n, e).trim(), r.indexOf("|") === -1 || (c = r.replace(/^\||\|$/g, "").split("|"), u.length !== c.length)) return !1;
2038
2038
  if (i) return !0;
2039
2039
  for (n.tokens.push({
2040
2040
  type: "table_open",
@@ -2073,7 +2073,7 @@ function Ir(n, e, t, i) {
2073
2073
  type: "tbody_open",
2074
2074
  lines: m = [e + 2, 0],
2075
2075
  level: n.level++
2076
- }), l = e + 2; l < t && !(n.tShift[l] < n.blkIndent || (r = Ji(n, l).trim(), r.indexOf("|") === -1)); l++) {
2076
+ }), l = e + 2; l < t && !(n.tShift[l] < n.blkIndent || (r = Yi(n, l).trim(), r.indexOf("|") === -1)); l++) {
2077
2077
  for (c = r.replace(/^\||\|$/g, "").split("|"), n.tokens.push({
2078
2078
  type: "tr_open",
2079
2079
  level: n.level++
@@ -2110,13 +2110,13 @@ function ui(n, e) {
2110
2110
  r = n.eMarks[e];
2111
2111
  return s >= r || (i = n.src.charCodeAt(s++), i !== 126 && i !== 58) || (t = n.skipSpaces(s), s === t) || t >= r ? -1 : t;
2112
2112
  }
2113
- function Or(n, e) {
2113
+ function Nr(n, e) {
2114
2114
  var t,
2115
2115
  i,
2116
2116
  s = n.level + 2;
2117
2117
  for (t = e + 2, i = n.tokens.length - 2; t < i; t++) n.tokens[t].level === s && n.tokens[t].type === "paragraph_open" && (n.tokens[t + 2].tight = !0, n.tokens[t].tight = !0, t += 2);
2118
2118
  }
2119
- function Pr(n, e, t, i) {
2119
+ function Dr(n, e, t, i) {
2120
2120
  var s, r, o, a, l, c, d, u, h, f, m, p, g, b;
2121
2121
  if (i) return n.ddIndent < 0 ? !1 : ui(n, e) >= 0;
2122
2122
  if (d = e + 1, n.isEmpty(d) && ++d > t || n.tShift[d] < n.blkIndent || (s = ui(n, d), s < 0) || n.level >= n.options.maxNesting) return !1;
@@ -2156,9 +2156,9 @@ function Pr(n, e, t, i) {
2156
2156
  return n.tokens.push({
2157
2157
  type: "dl_close",
2158
2158
  level: --n.level
2159
- }), l[1] = d, n.line = d, b && Or(n, c), !0;
2159
+ }), l[1] = d, n.line = d, b && Nr(n, c), !0;
2160
2160
  }
2161
- function Nr(n, e) {
2161
+ function Br(n, e) {
2162
2162
  var t,
2163
2163
  i,
2164
2164
  s,
@@ -2192,14 +2192,14 @@ function Nr(n, e) {
2192
2192
  level: n.level
2193
2193
  })), !0;
2194
2194
  }
2195
- var fi = [["code", yr], ["fences", Er, ["paragraph", "blockquote", "list"]], ["blockquote", Sr, ["paragraph", "blockquote", "list"]], ["hr", _r, ["paragraph", "blockquote", "list"]], ["list", wr, ["paragraph", "blockquote"]], ["footnote", Ar, ["paragraph"]], ["heading", Tr, ["paragraph", "blockquote"]], ["lheading", Cr], ["htmlblock", Lr, ["paragraph", "blockquote"]], ["table", Ir, ["paragraph"]], ["deflist", Pr, ["paragraph"]], ["paragraph", Nr]];
2196
- function ys() {
2195
+ var fi = [["code", Sr], ["fences", _r, ["paragraph", "blockquote", "list"]], ["blockquote", xr, ["paragraph", "blockquote", "list"]], ["hr", wr, ["paragraph", "blockquote", "list"]], ["list", Tr, ["paragraph", "blockquote"]], ["footnote", Cr, ["paragraph"]], ["heading", Rr, ["paragraph", "blockquote"]], ["lheading", Mr], ["htmlblock", Or, ["paragraph", "blockquote"]], ["table", Pr, ["paragraph"]], ["deflist", Dr, ["paragraph"]], ["paragraph", Br]];
2196
+ function Ss() {
2197
2197
  this.ruler = new oe();
2198
2198
  for (var n = 0; n < fi.length; n++) this.ruler.push(fi[n][0], fi[n][1], {
2199
2199
  alt: (fi[n][2] || []).slice()
2200
2200
  });
2201
2201
  }
2202
- ys.prototype.tokenize = function (n, e, t) {
2202
+ Ss.prototype.tokenize = function (n, e, t) {
2203
2203
  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));) {
2204
2204
  for (l = 0; l < s && (a = i[l](n, r, t, !1), !a); l++);
2205
2205
  if (n.tight = !o, n.isEmpty(n.line - 1) && (o = !0), r = n.line, r < t && n.isEmpty(r)) {
@@ -2208,20 +2208,20 @@ ys.prototype.tokenize = function (n, e, t) {
2208
2208
  }
2209
2209
  }
2210
2210
  };
2211
- var Dr = /[\n\t]/g,
2212
- Br = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
2213
- Fr = /\u00a0/g;
2214
- ys.prototype.parse = function (n, e, t, i) {
2211
+ var Fr = /[\n\t]/g,
2212
+ Ur = /\r[\n\u0085]|[\u2424\u2028\u0085]/g,
2213
+ jr = /\u00a0/g;
2214
+ Ss.prototype.parse = function (n, e, t, i) {
2215
2215
  var s,
2216
2216
  r = 0,
2217
2217
  o = 0;
2218
2218
  if (!n) return [];
2219
- n = n.replace(Fr, " "), n = n.replace(Br, "\n"), n.indexOf(" ") >= 0 && (n = n.replace(Dr, function (a, l) {
2219
+ n = n.replace(jr, " "), n = n.replace(Ur, "\n"), n.indexOf(" ") >= 0 && (n = n.replace(Fr, function (a, l) {
2220
2220
  var c;
2221
2221
  return n.charCodeAt(l) === 10 ? (r = l + 1, o = 0, a) : (c = " ".slice((l - r - o) % 4), o = l - r + 1, c);
2222
2222
  })), s = new lt(n, this, e, t, i), this.tokenize(s, s.line, s.lineMax);
2223
2223
  };
2224
- function Ur(n) {
2224
+ function qr(n) {
2225
2225
  switch (n) {
2226
2226
  case 10:
2227
2227
  case 92:
@@ -2249,11 +2249,11 @@ function Ur(n) {
2249
2249
  return !1;
2250
2250
  }
2251
2251
  }
2252
- function jr(n, e) {
2253
- for (var t = n.pos; t < n.posMax && !Ur(n.src.charCodeAt(t));) t++;
2252
+ function Hr(n, e) {
2253
+ for (var t = n.pos; t < n.posMax && !qr(n.src.charCodeAt(t));) t++;
2254
2254
  return t === n.pos ? !1 : (e || (n.pending += n.src.slice(n.pos, t)), n.pos = t, !0);
2255
2255
  }
2256
- function qr(n, e) {
2256
+ function zr(n, e) {
2257
2257
  var t,
2258
2258
  i,
2259
2259
  s = n.pos;
@@ -2279,18 +2279,18 @@ function qr(n, e) {
2279
2279
  for (s++; s < i && n.src.charCodeAt(s) === 32;) s++;
2280
2280
  return n.pos = s, !0;
2281
2281
  }
2282
- var Es = [];
2283
- for (var Hs = 0; Hs < 256; Hs++) Es.push(0);
2282
+ var _s = [];
2283
+ for (var Gs = 0; Gs < 256; Gs++) _s.push(0);
2284
2284
  "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function (n) {
2285
- Es[n.charCodeAt(0)] = 1;
2285
+ _s[n.charCodeAt(0)] = 1;
2286
2286
  });
2287
- function Hr(n, e) {
2287
+ function Gr(n, e) {
2288
2288
  var t,
2289
2289
  i = n.pos,
2290
2290
  s = n.posMax;
2291
2291
  if (n.src.charCodeAt(i) !== 92) return !1;
2292
2292
  if (i++, i < s) {
2293
- if (t = n.src.charCodeAt(i), t < 256 && Es[t] !== 0) return e || (n.pending += n.src[i]), n.pos += 2, !0;
2293
+ if (t = n.src.charCodeAt(i), t < 256 && _s[t] !== 0) return e || (n.pending += n.src[i]), n.pos += 2, !0;
2294
2294
  if (t === 10) {
2295
2295
  for (e || n.push({
2296
2296
  type: "hardbreak",
@@ -2301,7 +2301,7 @@ function Hr(n, e) {
2301
2301
  }
2302
2302
  return e || (n.pending += "\\"), n.pos++, !0;
2303
2303
  }
2304
- function zr(n, e) {
2304
+ function Vr(n, e) {
2305
2305
  var t,
2306
2306
  i,
2307
2307
  s,
@@ -2322,7 +2322,7 @@ function zr(n, e) {
2322
2322
  }
2323
2323
  return e || (n.pending += s), n.pos += s.length, !0;
2324
2324
  }
2325
- function Gr(n, e) {
2325
+ function Kr(n, e) {
2326
2326
  var t,
2327
2327
  i,
2328
2328
  s,
@@ -2348,7 +2348,7 @@ function Gr(n, e) {
2348
2348
  level: --n.level
2349
2349
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2350
2350
  }
2351
- function Vr(n, e) {
2351
+ function $r(n, e) {
2352
2352
  var t,
2353
2353
  i,
2354
2354
  s,
@@ -2374,7 +2374,7 @@ function Vr(n, e) {
2374
2374
  level: --n.level
2375
2375
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2376
2376
  }
2377
- function Kr(n, e) {
2377
+ function Wr(n, e) {
2378
2378
  var t,
2379
2379
  i,
2380
2380
  s,
@@ -2400,10 +2400,10 @@ function Kr(n, e) {
2400
2400
  level: --n.level
2401
2401
  })), n.pos = n.posMax + 2, n.posMax = r, !0) : (n.pos = o, !1);
2402
2402
  }
2403
- function zs(n) {
2403
+ function Vs(n) {
2404
2404
  return n >= 48 && n <= 57 || n >= 65 && n <= 90 || n >= 97 && n <= 122;
2405
2405
  }
2406
- function Gs(n, e) {
2406
+ function Ks(n, e) {
2407
2407
  var t = e,
2408
2408
  i,
2409
2409
  s,
@@ -2413,13 +2413,13 @@ function Gs(n, e) {
2413
2413
  l = n.posMax,
2414
2414
  c = n.src.charCodeAt(e);
2415
2415
  for (i = e > 0 ? n.src.charCodeAt(e - 1) : -1; t < l && n.src.charCodeAt(t) === c;) t++;
2416
- 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 && (zs(i) && (o = !1), zs(s) && (a = !1))), {
2416
+ 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 && (Vs(i) && (o = !1), Vs(s) && (a = !1))), {
2417
2417
  can_open: o,
2418
2418
  can_close: a,
2419
2419
  delims: r
2420
2420
  };
2421
2421
  }
2422
- function $r(n, e) {
2422
+ function Jr(n, e) {
2423
2423
  var t,
2424
2424
  i,
2425
2425
  s,
@@ -2431,11 +2431,11 @@ function $r(n, e) {
2431
2431
  d = n.pos,
2432
2432
  u = n.src.charCodeAt(d);
2433
2433
  if (u !== 95 && u !== 42 || e) return !1;
2434
- if (l = Gs(n, d), t = l.delims, !l.can_open) return n.pos += t, e || (n.pending += n.src.slice(d, n.pos)), !0;
2434
+ if (l = Ks(n, d), t = l.delims, !l.can_open) return n.pos += t, e || (n.pending += n.src.slice(d, n.pos)), !0;
2435
2435
  if (n.level >= n.options.maxNesting) return !1;
2436
2436
  for (n.pos = d + t, a = [t]; n.pos < c;) {
2437
2437
  if (n.src.charCodeAt(n.pos) === u) {
2438
- if (l = Gs(n, n.pos), i = l.delims, l.can_close) {
2438
+ if (l = Ks(n, n.pos), i = l.delims, l.can_close) {
2439
2439
  for (r = a.pop(), o = i; r !== o;) {
2440
2440
  if (o < r) {
2441
2441
  a.push(r - o);
@@ -2470,8 +2470,8 @@ function $r(n, e) {
2470
2470
  level: --n.level
2471
2471
  })), n.pos = n.posMax + t, n.posMax = c, !0) : (n.pos = d, !1);
2472
2472
  }
2473
- var Wr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2474
- function Jr(n, e) {
2473
+ var Xr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2474
+ function Yr(n, e) {
2475
2475
  var t,
2476
2476
  i,
2477
2477
  s = n.posMax,
@@ -2487,11 +2487,11 @@ function Jr(n, e) {
2487
2487
  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({
2488
2488
  type: "sub",
2489
2489
  level: n.level,
2490
- content: i.replace(Wr, "$1")
2490
+ content: i.replace(Xr, "$1")
2491
2491
  }), n.pos = n.posMax + 1, n.posMax = s, !0);
2492
2492
  }
2493
- var Xr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2494
- function Yr(n, e) {
2493
+ var Zr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2494
+ function Qr(n, e) {
2495
2495
  var t,
2496
2496
  i,
2497
2497
  s = n.posMax,
@@ -2507,10 +2507,10 @@ function Yr(n, e) {
2507
2507
  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({
2508
2508
  type: "sup",
2509
2509
  level: n.level,
2510
- content: i.replace(Xr, "$1")
2510
+ content: i.replace(Zr, "$1")
2511
2511
  }), n.pos = n.posMax + 1, n.posMax = s, !0);
2512
2512
  }
2513
- function Zr(n, e) {
2513
+ function eo(n, e) {
2514
2514
  var t,
2515
2515
  i,
2516
2516
  s,
@@ -2528,14 +2528,14 @@ function Zr(n, e) {
2528
2528
  if (a = i + 1, a < h && n.src.charCodeAt(a) === 40) {
2529
2529
  for (a++; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2530
2530
  if (a >= h) return !1;
2531
- for (f = a, wn(n, a) ? (r = n.linkContent, a = n.pos) : r = "", f = a; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2532
- if (a < h && f !== a && An(n, a)) for (o = n.linkContent, a = n.pos; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
2531
+ for (f = a, Tn(n, a) ? (r = n.linkContent, a = n.pos) : r = "", f = a; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2532
+ if (a < h && f !== a && Cn(n, a)) for (o = n.linkContent, a = n.pos; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);else o = "";
2533
2533
  if (a >= h || n.src.charCodeAt(a) !== 41) return n.pos = u, !1;
2534
2534
  a++;
2535
2535
  } else {
2536
2536
  if (n.linkLevel > 0) return !1;
2537
2537
  for (; a < h && (c = n.src.charCodeAt(a), !(c !== 32 && c !== 10)); a++);
2538
- if (a < h && n.src.charCodeAt(a) === 91 && (f = a + 1, a = ei(n, a), a >= 0 ? s = n.src.slice(f, a++) : a = f - 1), s || (_typeof(s) > "u" && (a = i + 1), s = n.src.slice(t, i)), l = n.env.references[Tn(s)], !l) return n.pos = u, !1;
2538
+ if (a < h && n.src.charCodeAt(a) === 91 && (f = a + 1, a = ei(n, a), a >= 0 ? s = n.src.slice(f, a++) : a = f - 1), s || (_typeof(s) > "u" && (a = i + 1), s = n.src.slice(t, i)), l = n.env.references[Rn(s)], !l) return n.pos = u, !1;
2539
2539
  r = l.href, o = l.title;
2540
2540
  }
2541
2541
  return e || (n.pos = t, n.posMax = i, d ? n.push({
@@ -2554,7 +2554,7 @@ function Zr(n, e) {
2554
2554
  level: --n.level
2555
2555
  }))), n.pos = a, n.posMax = h, !0;
2556
2556
  }
2557
- function Qr(n, e) {
2557
+ function to(n, e) {
2558
2558
  var t,
2559
2559
  i,
2560
2560
  s,
@@ -2569,7 +2569,7 @@ function Qr(n, e) {
2569
2569
  tokens: n.tokens.splice(r)
2570
2570
  }, n.linkLevel--), n.pos = i + 1, n.posMax = o, !0);
2571
2571
  }
2572
- function eo(n, e) {
2572
+ function io(n, e) {
2573
2573
  var t,
2574
2574
  i,
2575
2575
  s,
@@ -2591,17 +2591,17 @@ function eo(n, e) {
2591
2591
  level: n.level
2592
2592
  })), n.pos = i, n.posMax = o, !0);
2593
2593
  }
2594
- var to = ["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"],
2595
- io = /^<([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])?)*)>/,
2596
- so = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2597
- function no(n, e) {
2594
+ var so = ["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"],
2595
+ no = /^<([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])?)*)>/,
2596
+ ro = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2597
+ function oo(n, e) {
2598
2598
  var t,
2599
2599
  i,
2600
2600
  s,
2601
2601
  r,
2602
2602
  o,
2603
2603
  a = n.pos;
2604
- return n.src.charCodeAt(a) !== 60 || (t = n.src.slice(a), t.indexOf(">") < 0) ? !1 : (i = t.match(so), i ? to.indexOf(i[1].toLowerCase()) < 0 || (r = i[0].slice(1, -1), o = es(r), !n.parser.validateLink(r)) ? !1 : (e || (n.push({
2604
+ return n.src.charCodeAt(a) !== 60 || (t = n.src.slice(a), t.indexOf(">") < 0) ? !1 : (i = t.match(ro), i ? so.indexOf(i[1].toLowerCase()) < 0 || (r = i[0].slice(1, -1), o = is(r), !n.parser.validateLink(r)) ? !1 : (e || (n.push({
2605
2605
  type: "link_open",
2606
2606
  href: o,
2607
2607
  level: n.level
@@ -2612,7 +2612,7 @@ function no(n, e) {
2612
2612
  }), n.push({
2613
2613
  type: "link_close",
2614
2614
  level: n.level
2615
- })), n.pos += i[0].length, !0) : (s = t.match(io), s ? (r = s[0].slice(1, -1), o = es("mailto:" + r), n.parser.validateLink(o) ? (e || (n.push({
2615
+ })), n.pos += i[0].length, !0) : (s = t.match(no), s ? (r = s[0].slice(1, -1), o = is("mailto:" + r), n.parser.validateLink(o) ? (e || (n.push({
2616
2616
  type: "link_open",
2617
2617
  href: o,
2618
2618
  level: n.level
@@ -2625,42 +2625,42 @@ function no(n, e) {
2625
2625
  level: n.level
2626
2626
  })), n.pos += s[0].length, !0) : !1) : !1));
2627
2627
  }
2628
- function Ui(n, e) {
2628
+ function qi(n, e) {
2629
2629
  return n = n.source, e = e || "", function t(i, s) {
2630
2630
  return i ? (s = s.source || s, n = n.replace(i, s), t) : new RegExp(n, e);
2631
2631
  };
2632
2632
  }
2633
- var ro = /[a-zA-Z_:][a-zA-Z0-9:._-]*/,
2634
- oo = /[^"'=<>`\x00-\x20]+/,
2635
- ao = /'[^']*'/,
2636
- lo = /"[^"]*"/,
2637
- co = Ui(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", oo)("single_quoted", ao)("double_quoted", lo)(),
2638
- ho = Ui(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", ro)("attr_value", co)(),
2639
- uo = Ui(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", ho)(),
2640
- fo = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
2641
- po = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,
2642
- mo = /<[?].*?[?]>/,
2643
- go = /<![A-Z]+\s+[^>]*>/,
2644
- bo = /<!\[CDATA\[[\s\S]*?\]\]>/,
2645
- vo = Ui(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", uo)("close_tag", fo)("comment", po)("processing", mo)("declaration", go)("cdata", bo)();
2646
- function yo(n) {
2633
+ var ao = /[a-zA-Z_:][a-zA-Z0-9:._-]*/,
2634
+ lo = /[^"'=<>`\x00-\x20]+/,
2635
+ co = /'[^']*'/,
2636
+ ho = /"[^"]*"/,
2637
+ uo = qi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", lo)("single_quoted", co)("double_quoted", ho)(),
2638
+ fo = qi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", ao)("attr_value", uo)(),
2639
+ po = qi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", fo)(),
2640
+ mo = /<\/[A-Za-z][A-Za-z0-9]*\s*>/,
2641
+ go = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,
2642
+ bo = /<[?].*?[?]>/,
2643
+ vo = /<![A-Z]+\s+[^>]*>/,
2644
+ yo = /<!\[CDATA\[[\s\S]*?\]\]>/,
2645
+ Eo = qi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", po)("close_tag", mo)("comment", go)("processing", bo)("declaration", vo)("cdata", yo)();
2646
+ function So(n) {
2647
2647
  var e = n | 32;
2648
2648
  return e >= 97 && e <= 122;
2649
2649
  }
2650
- function Eo(n, e) {
2650
+ function _o(n, e) {
2651
2651
  var t,
2652
2652
  i,
2653
2653
  s,
2654
2654
  r = n.pos;
2655
- 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 && !yo(t)) || (i = n.src.slice(r).match(vo), !i) ? !1 : (e || n.push({
2655
+ 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 && !So(t)) || (i = n.src.slice(r).match(Eo), !i) ? !1 : (e || n.push({
2656
2656
  type: "htmltag",
2657
2657
  content: n.src.slice(r, r + i[0].length),
2658
2658
  level: n.level
2659
2659
  }), n.pos += i[0].length, !0);
2660
2660
  }
2661
- var So = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
2662
- _o = /^&([a-z][a-z0-9]{1,31});/i;
2663
- function xo(n, e) {
2661
+ var xo = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,
2662
+ wo = /^&([a-z][a-z0-9]{1,31});/i;
2663
+ function Ao(n, e) {
2664
2664
  var t,
2665
2665
  i,
2666
2666
  s,
@@ -2669,21 +2669,21 @@ function xo(n, e) {
2669
2669
  if (n.src.charCodeAt(r) !== 38) return !1;
2670
2670
  if (r + 1 < o) {
2671
2671
  if (t = n.src.charCodeAt(r + 1), t === 35) {
2672
- if (s = n.src.slice(r).match(So), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += _n(i) ? Qi(i) : Qi(65533)), n.pos += s[0].length, !0;
2673
- } else if (s = n.src.slice(r).match(_o), s) {
2674
- var a = En(s[1]);
2672
+ if (s = n.src.slice(r).match(xo), s) return e || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), n.pending += wn(i) ? ts(i) : ts(65533)), n.pos += s[0].length, !0;
2673
+ } else if (s = n.src.slice(r).match(wo), s) {
2674
+ var a = _n(s[1]);
2675
2675
  if (s[1] !== a) return e || (n.pending += a), n.pos += s[0].length, !0;
2676
2676
  }
2677
2677
  }
2678
2678
  return e || (n.pending += "&"), n.pos++, !0;
2679
2679
  }
2680
- var Xi = [["text", jr], ["newline", qr], ["escape", Hr], ["backticks", zr], ["del", Gr], ["ins", Vr], ["mark", Kr], ["emphasis", $r], ["sub", Jr], ["sup", Yr], ["links", Zr], ["footnote_inline", Qr], ["footnote_ref", eo], ["autolink", no], ["htmltag", Eo], ["entity", xo]];
2681
- function ji() {
2680
+ var Zi = [["text", Hr], ["newline", zr], ["escape", Gr], ["backticks", Vr], ["del", Kr], ["ins", $r], ["mark", Wr], ["emphasis", Jr], ["sub", Yr], ["sup", Qr], ["links", eo], ["footnote_inline", to], ["footnote_ref", io], ["autolink", oo], ["htmltag", _o], ["entity", Ao]];
2681
+ function Hi() {
2682
2682
  this.ruler = new oe();
2683
- for (var n = 0; n < Xi.length; n++) this.ruler.push(Xi[n][0], Xi[n][1]);
2684
- this.validateLink = wo;
2683
+ for (var n = 0; n < Zi.length; n++) this.ruler.push(Zi[n][0], Zi[n][1]);
2684
+ this.validateLink = To;
2685
2685
  }
2686
- ji.prototype.skipToken = function (n) {
2686
+ Hi.prototype.skipToken = function (n) {
2687
2687
  var e = this.ruler.getRules(""),
2688
2688
  t = e.length,
2689
2689
  i = n.pos,
@@ -2699,7 +2699,7 @@ ji.prototype.skipToken = function (n) {
2699
2699
  }
2700
2700
  n.pos++, n.cacheSet(i, n.pos);
2701
2701
  };
2702
- ji.prototype.tokenize = function (n) {
2702
+ Hi.prototype.tokenize = function (n) {
2703
2703
  for (var e = this.ruler.getRules(""), t = e.length, i = n.posMax, s, r; n.pos < i;) {
2704
2704
  for (r = 0; r < t && (s = e[r](n, !1), !s); r++);
2705
2705
  if (s) {
@@ -2710,16 +2710,16 @@ ji.prototype.tokenize = function (n) {
2710
2710
  }
2711
2711
  n.pending && n.pushPending();
2712
2712
  };
2713
- ji.prototype.parse = function (n, e, t, i) {
2713
+ Hi.prototype.parse = function (n, e, t, i) {
2714
2714
  var s = new at(n, this, e, t, i);
2715
2715
  this.tokenize(s);
2716
2716
  };
2717
- function wo(n) {
2717
+ function To(n) {
2718
2718
  var e = ["vbscript", "javascript", "file", "data"],
2719
2719
  t = n.trim().toLowerCase();
2720
2720
  return t = nt(t), !(t.indexOf(":") !== -1 && e.indexOf(t.split(":")[0]) !== -1);
2721
2721
  }
2722
- var Ao = {
2722
+ var Co = {
2723
2723
  options: {
2724
2724
  html: !1,
2725
2725
  // Enable HTML tags in source
@@ -2757,7 +2757,7 @@ var Ao = {
2757
2757
  }
2758
2758
  }
2759
2759
  },
2760
- To = {
2760
+ Ro = {
2761
2761
  options: {
2762
2762
  html: !1,
2763
2763
  // Enable HTML tags in source
@@ -2790,7 +2790,7 @@ var Ao = {
2790
2790
  inline: {}
2791
2791
  }
2792
2792
  },
2793
- Co = {
2793
+ Mo = {
2794
2794
  options: {
2795
2795
  html: !0,
2796
2796
  // Enable HTML tags in source
@@ -2828,19 +2828,19 @@ var Ao = {
2828
2828
  }
2829
2829
  }
2830
2830
  },
2831
- Ro = {
2832
- "default": Ao,
2833
- full: To,
2834
- commonmark: Co
2831
+ ko = {
2832
+ "default": Co,
2833
+ full: Ro,
2834
+ commonmark: Mo
2835
2835
  };
2836
- function Mn(n, e, t) {
2836
+ function Ln(n, e, t) {
2837
2837
  this.src = e, this.env = t, this.options = n.options, this.tokens = [], this.inlineMode = !1, this.inline = n.inline, this.block = n.block, this.renderer = n.renderer, this.typographer = n.typographer;
2838
2838
  }
2839
2839
  function xe(n, e) {
2840
- typeof n != "string" && (e = n, n = "default"), e && e.linkify != null && console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"), this.inline = new ji(), this.block = new ys(), this.core = new Cn(), this.renderer = new vs(), this.ruler = new oe(), this.options = {}, this.configure(Ro[n]), this.set(e || {});
2840
+ typeof n != "string" && (e = n, n = "default"), e && e.linkify != null && console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"), this.inline = new Hi(), this.block = new Ss(), this.core = new Mn(), this.renderer = new Es(), this.ruler = new oe(), this.options = {}, this.configure(ko[n]), this.set(e || {});
2841
2841
  }
2842
2842
  xe.prototype.set = function (n) {
2843
- Sn(this.options, n);
2843
+ xn(this.options, n);
2844
2844
  };
2845
2845
  xe.prototype.configure = function (n) {
2846
2846
  var e = this;
@@ -2853,14 +2853,14 @@ xe.prototype.use = function (n, e) {
2853
2853
  return n(this, e), this;
2854
2854
  };
2855
2855
  xe.prototype.parse = function (n, e) {
2856
- var t = new Mn(this, n, e);
2856
+ var t = new Ln(this, n, e);
2857
2857
  return this.core.process(t), t.tokens;
2858
2858
  };
2859
2859
  xe.prototype.render = function (n, e) {
2860
2860
  return e = e || {}, this.renderer.render(this.parse(n, e), this.options, e);
2861
2861
  };
2862
2862
  xe.prototype.parseInline = function (n, e) {
2863
- var t = new Mn(this, n, e);
2863
+ var t = new Ln(this, n, e);
2864
2864
  return t.inlineMode = !0, this.core.process(t), t.tokens;
2865
2865
  };
2866
2866
  xe.prototype.renderInline = function (n, e) {
@@ -3121,14 +3121,14 @@ var Wt = /*#__PURE__*/function () {
3121
3121
  }();
3122
3122
  Wt.DEFAULT_FADE_MS = 500;
3123
3123
  var Ei = Wt;
3124
- var Vs = "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",
3125
- ts = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==";
3126
- var kn = /*#__PURE__*/function () {
3127
- function kn(e) {
3128
- _classCallCheck(this, kn);
3124
+ var $s = "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",
3125
+ ss = "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==";
3126
+ var In = /*#__PURE__*/function () {
3127
+ function In(e) {
3128
+ _classCallCheck(this, In);
3129
3129
  this.className = e;
3130
3130
  }
3131
- return _createClass(kn, [{
3131
+ return _createClass(In, [{
3132
3132
  key: "tryHide",
3133
3133
  value: function tryHide(e) {
3134
3134
  var t;
@@ -3146,14 +3146,14 @@ var kn = /*#__PURE__*/function () {
3146
3146
  }
3147
3147
  }]);
3148
3148
  }();
3149
- var Re = /*#__PURE__*/function (_kn) {
3149
+ var Re = /*#__PURE__*/function (_In) {
3150
3150
  function Re(e) {
3151
3151
  var _this3;
3152
3152
  _classCallCheck(this, Re);
3153
3153
  _this3 = _callSuper(this, Re, ["avatar-container"]), _this3._avatars = e;
3154
3154
  return _this3;
3155
3155
  }
3156
- _inherits(Re, _kn);
3156
+ _inherits(Re, _In);
3157
3157
  return _createClass(Re, [{
3158
3158
  key: "addBesideMsg",
3159
3159
  value: function addBesideMsg(e, t) {
@@ -3167,7 +3167,7 @@ var Re = /*#__PURE__*/function (_kn) {
3167
3167
  value: function createAvatar(e, t) {
3168
3168
  var r, o, a, l, c;
3169
3169
  var i = document.createElement("img");
3170
- e === y.USER_ROLE ? (i.src = ((r = t == null ? void 0 : t.user) == null ? void 0 : r.src) || ((o = t == null ? void 0 : t["default"]) == null ? void 0 : o.src) || ts, i.onerror = Re.errorFallback.bind(this, ts)) : (i.src = ((a = t == null ? void 0 : t[e]) == null ? void 0 : a.src) || ((l = t == null ? void 0 : t.ai) == null ? void 0 : l.src) || ((c = t == null ? void 0 : t["default"]) == null ? void 0 : c.src) || Vs, i.onerror = Re.errorFallback.bind(this, Vs)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3170
+ e === y.USER_ROLE ? (i.src = ((r = t == null ? void 0 : t.user) == null ? void 0 : r.src) || ((o = t == null ? void 0 : t["default"]) == null ? void 0 : o.src) || ss, i.onerror = Re.errorFallback.bind(this, ss)) : (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) || $s, i.onerror = Re.errorFallback.bind(this, $s)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
3171
3171
  var s = document.createElement("div");
3172
3172
  return s.classList.add(this.className), s.appendChild(i), t && Re.applyCustomStyles(s, i, t, e), s;
3173
3173
  }
@@ -3200,15 +3200,15 @@ var Re = /*#__PURE__*/function (_kn) {
3200
3200
  }
3201
3201
  }
3202
3202
  }]);
3203
- }(kn);
3204
- var zt = /*#__PURE__*/function (_kn2) {
3203
+ }(In);
3204
+ var zt = /*#__PURE__*/function (_In2) {
3205
3205
  function zt(e) {
3206
3206
  var _this4;
3207
3207
  _classCallCheck(this, zt);
3208
3208
  _this4 = _callSuper(this, zt, ["name"]), _this4._names = e;
3209
3209
  return _this4;
3210
3210
  }
3211
- _inherits(zt, _kn2);
3211
+ _inherits(zt, _In2);
3212
3212
  return _createClass(zt, [{
3213
3213
  key: "addBesideMsg",
3214
3214
  value: function addBesideMsg(e, t) {
@@ -3243,7 +3243,7 @@ var zt = /*#__PURE__*/function (_kn2) {
3243
3243
  return e === y.USER_ROLE ? ((i = t.user) == null ? void 0 : i.text) || ((s = t["default"]) == null ? void 0 : s.text) || "User" : e === y.AI_ROLE ? ((r = t.ai) == null ? void 0 : r.text) || ((o = t["default"]) == null ? void 0 : o.text) || "AI" : ((a = t[e]) == null ? void 0 : a.text) || ((l = t["default"]) == null ? void 0 : l.text) || e;
3244
3244
  }
3245
3245
  }]);
3246
- }(kn);
3246
+ }(In);
3247
3247
  var Z = /*#__PURE__*/function () {
3248
3248
  function Z(e) {
3249
3249
  var _this5 = this;
@@ -4002,11 +4002,11 @@ var He = /*#__PURE__*/function () {
4002
4002
  }();
4003
4003
  He.CONTENT_TYPE = "Content-Type";
4004
4004
  var E = He;
4005
- function Mo(_x14, _x15) {
4006
- return _Mo.apply(this, arguments);
4005
+ function Lo(_x14, _x15) {
4006
+ return _Lo.apply(this, arguments);
4007
4007
  }
4008
- function _Mo() {
4009
- _Mo = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee136(n, e) {
4008
+ function _Lo() {
4009
+ _Lo = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee136(n, e) {
4010
4010
  var t, i;
4011
4011
  return _regeneratorRuntime().wrap(function _callee136$(_context136) {
4012
4012
  while (1) switch (_context136.prev = _context136.next) {
@@ -4030,15 +4030,15 @@ function _Mo() {
4030
4030
  }
4031
4031
  }, _callee136);
4032
4032
  }));
4033
- return _Mo.apply(this, arguments);
4033
+ return _Lo.apply(this, arguments);
4034
4034
  }
4035
- function ko(n) {
4035
+ function Io(n) {
4036
4036
  var e,
4037
4037
  t,
4038
4038
  i,
4039
4039
  s = !1;
4040
4040
  return function (o) {
4041
- e === void 0 ? (e = o, t = 0, i = -1) : e = Io(e, o);
4041
+ e === void 0 ? (e = o, t = 0, i = -1) : e = Po(e, o);
4042
4042
  var a = e.length;
4043
4043
  var l = 0;
4044
4044
  for (; t < a;) {
@@ -4060,11 +4060,11 @@ function ko(n) {
4060
4060
  l === a ? e = void 0 : l !== 0 && (e = e.subarray(l), t -= l);
4061
4061
  };
4062
4062
  }
4063
- function Lo(n, e, t) {
4064
- var i = Ks();
4063
+ function Oo(n, e, t) {
4064
+ var i = Ws();
4065
4065
  var s = new TextDecoder();
4066
4066
  return function (o, a) {
4067
- if (o.length === 0) t == null || t(i), i = Ks();else if (a > 0) {
4067
+ if (o.length === 0) t == null || t(i), i = Ws();else if (a > 0) {
4068
4068
  var l = s.decode(o.subarray(0, a)),
4069
4069
  c = a + (o[a + 1] === 32 ? 2 : 1),
4070
4070
  d = s.decode(o.subarray(c));
@@ -4086,11 +4086,11 @@ function Lo(n, e, t) {
4086
4086
  }
4087
4087
  };
4088
4088
  }
4089
- function Io(n, e) {
4089
+ function Po(n, e) {
4090
4090
  var t = new Uint8Array(n.length + e.length);
4091
4091
  return t.set(n), t.set(e, n.length), t;
4092
4092
  }
4093
- function Ks() {
4093
+ function Ws() {
4094
4094
  return {
4095
4095
  data: "",
4096
4096
  event: "",
@@ -4098,16 +4098,16 @@ function Ks() {
4098
4098
  retry: void 0
4099
4099
  };
4100
4100
  }
4101
- var Oo = function Oo(n, e) {
4101
+ var No = function No(n, e) {
4102
4102
  var t = {};
4103
4103
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
4104
4104
  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]]);
4105
4105
  return t;
4106
4106
  };
4107
- var is = "text/event-stream",
4108
- Po = 1e3,
4109
- $s = "last-event-id";
4110
- function No(n, e) {
4107
+ var ns = "text/event-stream",
4108
+ Do = 1e3,
4109
+ Js = "last-event-id";
4110
+ function Bo(n, e) {
4111
4111
  var t = e.signal,
4112
4112
  i = e.headers,
4113
4113
  s = e.onopen,
@@ -4116,16 +4116,16 @@ function No(n, e) {
4116
4116
  a = e.onerror,
4117
4117
  l = e.openWhenHidden,
4118
4118
  c = e.fetch,
4119
- d = Oo(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
4119
+ d = No(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
4120
4120
  return new Promise(function (u, h) {
4121
4121
  var f = Object.assign({}, i);
4122
- f.accept || (f.accept = is);
4122
+ f.accept || (f.accept = ns);
4123
4123
  var m;
4124
4124
  function p() {
4125
4125
  m.abort(), document.hidden || ae();
4126
4126
  }
4127
4127
  l || document.addEventListener("visibilitychange", p);
4128
- var g = Po,
4128
+ var g = Do,
4129
4129
  b = 0;
4130
4130
  function M() {
4131
4131
  document.removeEventListener("visibilitychange", p), window.clearTimeout(b), m.abort();
@@ -4134,7 +4134,7 @@ function No(n, e) {
4134
4134
  M(), u();
4135
4135
  });
4136
4136
  var Y = c !== null && c !== void 0 ? c : window.fetch,
4137
- qe = s !== null && s !== void 0 ? s : Do;
4137
+ qe = s !== null && s !== void 0 ? s : Fo;
4138
4138
  function ae() {
4139
4139
  return _ae.apply(this, arguments);
4140
4140
  }
@@ -4157,8 +4157,8 @@ function No(n, e) {
4157
4157
  return qe(ye);
4158
4158
  case 7:
4159
4159
  _context6.next = 9;
4160
- return Mo(ye.body, ko(Lo(function (ie) {
4161
- ie ? f[$s] = ie : delete f[$s];
4160
+ return Lo(ye.body, Io(Oo(function (ie) {
4161
+ ie ? f[Js] = ie : delete f[Js];
4162
4162
  }, function (ie) {
4163
4163
  g = ie;
4164
4164
  }, r)));
@@ -4188,9 +4188,9 @@ function No(n, e) {
4188
4188
  ae();
4189
4189
  });
4190
4190
  }
4191
- function Do(n) {
4191
+ function Fo(n) {
4192
4192
  var e = n.headers.get("content-type");
4193
- if (!(e != null && e.startsWith(is))) throw new Error("Expected content-type to be ".concat(is, ", Actual: ").concat(e));
4193
+ if (!(e != null && e.startsWith(ns))) throw new Error("Expected content-type to be ".concat(ns, ", Actual: ").concat(e));
4194
4194
  }
4195
4195
  var A = /*#__PURE__*/function () {
4196
4196
  function A() {
@@ -4357,7 +4357,7 @@ var A = /*#__PURE__*/function () {
4357
4357
  l = _e$streamHandlers2.onOpen,
4358
4358
  c = _e$streamHandlers2.onClose,
4359
4359
  d = _e$streamHandlers2.abortStream;
4360
- No(((u = e.connectSettings) == null ? void 0 : u.url) || e.url || "", _objectSpread(_objectSpread({}, s), {}, {
4360
+ Bo(((u = e.connectSettings) == null ? void 0 : u.url) || e.url || "", _objectSpread(_objectSpread({}, s), {}, {
4361
4361
  openWhenHidden: !0,
4362
4362
  // keep stream open when browser tab not open
4363
4363
  onopen: function onopen(h) {
@@ -6038,9 +6038,9 @@ var Ie = /*#__PURE__*/function (_HTMLElement) {
6038
6038
  }]);
6039
6039
  }(/*#__PURE__*/_wrapNativeSuper(HTMLElement));
6040
6040
  Ie._attributes_ = {}, Ie._attributeToProperty_ = {};
6041
- var ss = Ie;
6042
- var Bo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path d=\"\n\t\t\tM669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536\n\t\t\tc-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764\n\t\t\tc59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033\n\t\t\tl-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888\n\t\t\tc0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541\n\t\t\tc103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174\n\t\t\tc31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763\n\t\t\tc-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z\n\t\t\tM599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897\n\t\t\tc0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854\n\t\t\tc-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513\n\t\t\tL638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z\"\n\t\t\t/>\n</svg>\n",
6043
- Fo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path id=\"path6686\" inkscape:connector-curvature=\"0\" d=\"M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612\n\t\t\tc-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612\n\t\t\tC699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557\n\t\t\tc-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763\n\t\t\tc59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557\n\t\t\tc103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179\n\t\t\tc31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764\n\t\t\tc-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769\n\t\t\tc156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02\n\t\t\tC317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z\"/>\n</svg>\n";
6041
+ var rs = Ie;
6042
+ var Uo = "<?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",
6043
+ jo = "<?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";
6044
6044
  var Ue = /*#__PURE__*/function () {
6045
6045
  function Ue() {
6046
6046
  _classCallCheck(this, Ue);
@@ -6075,15 +6075,15 @@ var Ge = /*#__PURE__*/function () {
6075
6075
  value: function create(e) {
6076
6076
  var t = document.createElement("div");
6077
6077
  t.id = "visibility-icon-container";
6078
- var i = Ge.createIconElement(Fo, Ge.VISIBLE_ICON_ID);
6078
+ var i = Ge.createIconElement(jo, Ge.VISIBLE_ICON_ID);
6079
6079
  i.style.display = "none", t.appendChild(i);
6080
- var s = Ge.createIconElement(Bo, "not-visible-icon");
6080
+ var s = Ge.createIconElement(Uo, "not-visible-icon");
6081
6081
  return t.appendChild(s), t.onclick = Ge.changeVisibility.bind(this, e, i, s), t;
6082
6082
  }
6083
6083
  }]);
6084
6084
  }();
6085
6085
  Ge.VISIBLE_ICON_ID = "visible-icon";
6086
- var ns = Ge;
6086
+ var os = Ge;
6087
6087
  var K = /*#__PURE__*/function () {
6088
6088
  function K() {
6089
6089
  _classCallCheck(this, K);
@@ -6187,7 +6187,7 @@ var K = /*#__PURE__*/function () {
6187
6187
  i.id = "insert-key-contents";
6188
6188
  var s = K.createInput(t.insertKeyPlaceholderText),
6189
6189
  r = s.children[0],
6190
- o = ns.create(r);
6190
+ o = os.create(r);
6191
6191
  s.appendChild(o), i.appendChild(s);
6192
6192
  var a = K.createStartButton(),
6193
6193
  _K$createHelpTextCont = K.createHelpTextContainer(t.keyHelpUrl, (d = t.deepChat._insertKeyViewStyles) == null ? void 0 : d.displayCautionText),
@@ -6277,7 +6277,7 @@ var se = /*#__PURE__*/function () {
6277
6277
  }();
6278
6278
  se.DOWNLOAD_BUTTON_CLASS = "deep-chat-download-button", se.UPLOAD_BUTTON_CLASS = "deep-chat-upload-button", se.FILE_INPUT_CLASS = "deep-chat-file-input", se.EXPORT_BUTTON_CLASS = "deep-chat-export-button";
6279
6279
  var _i = se;
6280
- var Ws = {
6280
+ var Xs = {
6281
6281
  model_list: [
6282
6282
  // Llama-2
6283
6283
  {
@@ -6536,7 +6536,7 @@ var Ws = {
6536
6536
  }
6537
6537
  if (this._isModelLoaded || this._isModelLoading) return;
6538
6538
  var e = this._webModel.worker;
6539
- return Ws.use_web_worker && e ? new window.webLLM.ChatWorkerClient(e) : new window.webLLM.ChatModule();
6539
+ return Xs.use_web_worker && e ? new window.webLLM.ChatWorkerClient(e) : new window.webLLM.ChatModule();
6540
6540
  }
6541
6541
  }, {
6542
6542
  key: "getConfig",
@@ -6544,7 +6544,7 @@ var Ws = {
6544
6544
  var i;
6545
6545
  var e = T.DEFAULT_MODEL;
6546
6546
  this._webModel.model && (e = this._webModel.model);
6547
- var t = JSON.parse(JSON.stringify(Ws));
6547
+ var t = JSON.parse(JSON.stringify(Xs));
6548
6548
  if (this._webModel.urls) {
6549
6549
  var s = t.model_list.find(function (r) {
6550
6550
  return r.local_id = e;
@@ -7087,19 +7087,19 @@ var li = /*#__PURE__*/function (_je) {
7087
7087
  }
7088
7088
  }]);
7089
7089
  }(je);
7090
- var Uo = /*#__PURE__*/function (_li) {
7090
+ var qo = /*#__PURE__*/function (_li) {
7091
7091
  // prettier-ignore
7092
- function Uo(e) {
7093
- _classCallCheck(this, Uo);
7092
+ function qo(e) {
7093
+ _classCallCheck(this, qo);
7094
7094
  var s, r, o;
7095
7095
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.audioClassification,
7096
7096
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7097
- return _callSuper(this, Uo, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", t, i, {
7097
+ return _callSuper(this, qo, [e, "Attach an audio file", "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", t, i, {
7098
7098
  audio: {}
7099
7099
  }]);
7100
7100
  }
7101
- _inherits(Uo, _li);
7102
- return _createClass(Uo, [{
7101
+ _inherits(qo, _li);
7102
+ return _createClass(qo, [{
7103
7103
  key: "extractPollResultData",
7104
7104
  value: function () {
7105
7105
  var _extractPollResultData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee46(e) {
@@ -7137,18 +7137,18 @@ var Uo = /*#__PURE__*/function (_li) {
7137
7137
  }()
7138
7138
  }]);
7139
7139
  }(li);
7140
- var jo = /*#__PURE__*/function (_li2) {
7141
- function jo(e) {
7142
- _classCallCheck(this, jo);
7140
+ var Ho = /*#__PURE__*/function (_li2) {
7141
+ function Ho(e) {
7142
+ _classCallCheck(this, Ho);
7143
7143
  var s, r, o;
7144
7144
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.imageClassification,
7145
7145
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7146
- return _callSuper(this, jo, [e, "Attach an image file", "google/vit-base-patch16-224", t, i, {
7146
+ return _callSuper(this, Ho, [e, "Attach an image file", "google/vit-base-patch16-224", t, i, {
7147
7147
  images: {}
7148
7148
  }]);
7149
7149
  }
7150
- _inherits(jo, _li2);
7151
- return _createClass(jo, [{
7150
+ _inherits(Ho, _li2);
7151
+ return _createClass(Ho, [{
7152
7152
  key: "extractPollResultData",
7153
7153
  value: function () {
7154
7154
  var _extractPollResultData2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee47(e) {
@@ -7216,18 +7216,18 @@ var Te = /*#__PURE__*/function () {
7216
7216
  }
7217
7217
  }]);
7218
7218
  }();
7219
- var qi = /*#__PURE__*/function (_V2) {
7219
+ var zi = /*#__PURE__*/function (_V2) {
7220
7220
  // prettier-ignore
7221
- function qi(e, t, i, s, r) {
7221
+ function zi(e, t, i, s, r) {
7222
7222
  var _this23;
7223
- _classCallCheck(this, qi);
7224
- _this23 = _callSuper(this, qi, [e, t, i, s, r]), _this23.insertKeyPlaceholderText = "Stability AI API Key", _this23.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", _this23.permittedErrorPrefixes = ["Incorrect", "invalid_"];
7223
+ _classCallCheck(this, zi);
7224
+ _this23 = _callSuper(this, zi, [e, t, i, s, r]), _this23.insertKeyPlaceholderText = "Stability AI API Key", _this23.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", _this23.permittedErrorPrefixes = ["Incorrect", "invalid_"];
7225
7225
  return _this23;
7226
7226
  }
7227
- _inherits(qi, _V2);
7228
- return _createClass(qi);
7227
+ _inherits(zi, _V2);
7228
+ return _createClass(zi);
7229
7229
  }(V);
7230
- var wi = /*#__PURE__*/function (_qi) {
7230
+ var wi = /*#__PURE__*/function (_zi) {
7231
7231
  function wi(e) {
7232
7232
  var _this24;
7233
7233
  _classCallCheck(this, wi);
@@ -7247,7 +7247,7 @@ var wi = /*#__PURE__*/function (_qi) {
7247
7247
  _typeof(r) == "object" && (r.engine_id && (_this24.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/upscale")), wi.cleanConfig(r), Object.assign(_this24.rawBody, r)), _this24.canSendMessage = wi.canSendFileMessage;
7248
7248
  return _this24;
7249
7249
  }
7250
- _inherits(wi, _qi);
7250
+ _inherits(wi, _zi);
7251
7251
  return _createClass(wi, [{
7252
7252
  key: "createFormDataBody",
7253
7253
  value: function createFormDataBody(e, t) {
@@ -7333,8 +7333,8 @@ var wi = /*#__PURE__*/function (_qi) {
7333
7333
  return !!(t != null && t[0]);
7334
7334
  }
7335
7335
  }]);
7336
- }(qi);
7337
- var Ai = /*#__PURE__*/function (_qi2) {
7336
+ }(zi);
7337
+ var Ai = /*#__PURE__*/function (_zi2) {
7338
7338
  function Ai(e) {
7339
7339
  var _this25;
7340
7340
  _classCallCheck(this, Ai);
@@ -7354,7 +7354,7 @@ var Ai = /*#__PURE__*/function (_qi2) {
7354
7354
  _typeof(r) == "object" && (r.engine_id && (_this25.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/masking")), r.weight !== void 0 && r.weight !== null && (_this25._imageWeight = r.weight), r.mask_source !== void 0 && r.mask_source !== null && (_this25._maskSource = r.mask_source), Ai.cleanConfig(r), Object.assign(_this25.rawBody, r)), _this25.canSendMessage = Ai.canSendFileTextMessage;
7355
7355
  return _this25;
7356
7356
  }
7357
- _inherits(Ai, _qi2);
7357
+ _inherits(Ai, _zi2);
7358
7358
  return _createClass(Ai, [{
7359
7359
  key: "createFormDataBody",
7360
7360
  value: function createFormDataBody(e, t, i, s) {
@@ -7440,19 +7440,19 @@ var Ai = /*#__PURE__*/function (_qi2) {
7440
7440
  return !!(t != null && t[0]) && !!(e && e.trim() !== "");
7441
7441
  }
7442
7442
  }]);
7443
- }(qi);
7444
- var qo = /*#__PURE__*/function (_li3) {
7445
- function qo(e) {
7446
- _classCallCheck(this, qo);
7443
+ }(zi);
7444
+ var zo = /*#__PURE__*/function (_li3) {
7445
+ function zo(e) {
7446
+ _classCallCheck(this, zo);
7447
7447
  var s, r, o;
7448
7448
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.audioSpeechRecognition,
7449
7449
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7450
- return _callSuper(this, qo, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", t, i, {
7450
+ return _callSuper(this, zo, [e, "Attach an audio file", "facebook/wav2vec2-large-960h-lv60-self", t, i, {
7451
7451
  audio: {}
7452
7452
  }]);
7453
7453
  }
7454
- _inherits(qo, _li3);
7455
- return _createClass(qo, [{
7454
+ _inherits(zo, _li3);
7455
+ return _createClass(zo, [{
7456
7456
  key: "extractPollResultData",
7457
7457
  value: function () {
7458
7458
  var _extractPollResultData3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee52(e) {
@@ -7489,16 +7489,16 @@ var qo = /*#__PURE__*/function (_li3) {
7489
7489
  }()
7490
7490
  }]);
7491
7491
  }(li);
7492
- var Ho = /*#__PURE__*/function (_je2) {
7493
- function Ho(e) {
7494
- _classCallCheck(this, Ho);
7492
+ var Go = /*#__PURE__*/function (_je2) {
7493
+ function Go(e) {
7494
+ _classCallCheck(this, Go);
7495
7495
  var s, r, o;
7496
7496
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.textGeneration,
7497
7497
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7498
- return _callSuper(this, Ho, [e, "Once upon a time", "gpt2", t, i]);
7498
+ return _callSuper(this, Go, [e, "Once upon a time", "gpt2", t, i]);
7499
7499
  }
7500
- _inherits(Ho, _je2);
7501
- return _createClass(Ho, [{
7500
+ _inherits(Go, _je2);
7501
+ return _createClass(Go, [{
7502
7502
  key: "extractResultData",
7503
7503
  value: function () {
7504
7504
  var _extractResultData4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee53(e) {
@@ -7528,18 +7528,18 @@ var Ho = /*#__PURE__*/function (_je2) {
7528
7528
  }()
7529
7529
  }]);
7530
7530
  }(je);
7531
- var zo = /*#__PURE__*/function (_je3) {
7532
- function zo(e) {
7531
+ var Vo = /*#__PURE__*/function (_je3) {
7532
+ function Vo(e) {
7533
7533
  var _this26;
7534
- _classCallCheck(this, zo);
7534
+ _classCallCheck(this, Vo);
7535
7535
  var s, r, o;
7536
7536
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.questionAnswer,
7537
7537
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7538
- _this26 = _callSuper(this, zo, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", t, i]), _this26.permittedErrorPrefixes = ["Authorization header", "Error in"], _this26._context = t.context;
7538
+ _this26 = _callSuper(this, Vo, [e, "Ask a question", "bert-large-uncased-whole-word-masking-finetuned-squad", t, i]), _this26.permittedErrorPrefixes = ["Authorization header", "Error in"], _this26._context = t.context;
7539
7539
  return _this26;
7540
7540
  }
7541
- _inherits(zo, _je3);
7542
- return _createClass(zo, [{
7541
+ _inherits(Vo, _je3);
7542
+ return _createClass(Vo, [{
7543
7543
  key: "preprocessBody",
7544
7544
  value: function preprocessBody(e, t) {
7545
7545
  var i = t[t.length - 1].text;
@@ -7582,16 +7582,16 @@ var zo = /*#__PURE__*/function (_je3) {
7582
7582
  }()
7583
7583
  }]);
7584
7584
  }(je);
7585
- var Go = /*#__PURE__*/function (_je4) {
7586
- function Go(e) {
7587
- _classCallCheck(this, Go);
7585
+ var Ko = /*#__PURE__*/function (_je4) {
7586
+ function Ko(e) {
7587
+ _classCallCheck(this, Ko);
7588
7588
  var s, r, o;
7589
7589
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.summarization,
7590
7590
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7591
- return _callSuper(this, Go, [e, "Insert text to summarize", "facebook/bart-large-cnn", t, i]);
7591
+ return _callSuper(this, Ko, [e, "Insert text to summarize", "facebook/bart-large-cnn", t, i]);
7592
7592
  }
7593
- _inherits(Go, _je4);
7594
- return _createClass(Go, [{
7593
+ _inherits(Ko, _je4);
7594
+ return _createClass(Ko, [{
7595
7595
  key: "extractResultData",
7596
7596
  value: function () {
7597
7597
  var _extractResultData6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee55(e) {
@@ -7621,20 +7621,20 @@ var Go = /*#__PURE__*/function (_je4) {
7621
7621
  }()
7622
7622
  }]);
7623
7623
  }(je);
7624
- var Vo = /*#__PURE__*/function (_je5) {
7625
- function Vo(e) {
7624
+ var $o = /*#__PURE__*/function (_je5) {
7625
+ function $o(e) {
7626
7626
  var _this27$maxMessages;
7627
7627
  var _this27;
7628
- _classCallCheck(this, Vo);
7628
+ _classCallCheck(this, $o);
7629
7629
  var s, r, o;
7630
7630
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.conversation,
7631
7631
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7632
- _this27 = _callSuper(this, Vo, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", t, i]), (_this27$maxMessages = _this27.maxMessages) !== null && _this27$maxMessages !== void 0 ? _this27$maxMessages : _this27.maxMessages = -1;
7632
+ _this27 = _callSuper(this, $o, [e, "Ask me anything!", "facebook/blenderbot-400M-distill", t, i]), (_this27$maxMessages = _this27.maxMessages) !== null && _this27$maxMessages !== void 0 ? _this27$maxMessages : _this27.maxMessages = -1;
7633
7633
  return _this27;
7634
7634
  }
7635
7635
  // prettier-ignore
7636
- _inherits(Vo, _je5);
7637
- return _createClass(Vo, [{
7636
+ _inherits($o, _je5);
7637
+ return _createClass($o, [{
7638
7638
  key: "processMessages",
7639
7639
  value: function processMessages(e) {
7640
7640
  var t = e.filter(function (a) {
@@ -7703,7 +7703,7 @@ var Vo = /*#__PURE__*/function (_je5) {
7703
7703
  }()
7704
7704
  }]);
7705
7705
  }(je);
7706
- var Ti = /*#__PURE__*/function (_qi3) {
7706
+ var Ti = /*#__PURE__*/function (_zi3) {
7707
7707
  function Ti(e) {
7708
7708
  var _this28;
7709
7709
  _classCallCheck(this, Ti);
@@ -7723,7 +7723,7 @@ var Ti = /*#__PURE__*/function (_qi3) {
7723
7723
  _typeof(r) == "object" && (r.engine_id && (_this28.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/text-to-image")), r.weight !== void 0 && r.weight !== null && (_this28._imageWeight = r.weight), Ti.cleanConfig(r), Object.assign(_this28.rawBody, r)), _this28.canSendMessage = Ti.canSendFileTextMessage;
7724
7724
  return _this28;
7725
7725
  }
7726
- _inherits(Ti, _qi3);
7726
+ _inherits(Ti, _zi3);
7727
7727
  return _createClass(Ti, [{
7728
7728
  key: "createFormDataBody",
7729
7729
  value: function createFormDataBody(e, t, i) {
@@ -7809,17 +7809,17 @@ var Ti = /*#__PURE__*/function (_qi3) {
7809
7809
  return !!(t != null && t[0]) && !!(e && e.trim() !== "");
7810
7810
  }
7811
7811
  }]);
7812
- }(qi);
7813
- var Ko = /*#__PURE__*/function (_je6) {
7814
- function Ko(e) {
7815
- _classCallCheck(this, Ko);
7812
+ }(zi);
7813
+ var Wo = /*#__PURE__*/function (_je6) {
7814
+ function Wo(e) {
7815
+ _classCallCheck(this, Wo);
7816
7816
  var s, r, o;
7817
7817
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.translation,
7818
7818
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7819
- return _callSuper(this, Ko, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
7819
+ return _callSuper(this, Wo, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
7820
7820
  }
7821
- _inherits(Ko, _je6);
7822
- return _createClass(Ko, [{
7821
+ _inherits(Wo, _je6);
7822
+ return _createClass(Wo, [{
7823
7823
  key: "extractResultData",
7824
7824
  value: function () {
7825
7825
  var _extractResultData9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee59(e) {
@@ -7849,7 +7849,7 @@ var Ko = /*#__PURE__*/function (_je6) {
7849
7849
  }()
7850
7850
  }]);
7851
7851
  }(je);
7852
- var Ci = /*#__PURE__*/function (_qi4) {
7852
+ var Ci = /*#__PURE__*/function (_zi4) {
7853
7853
  function Ci(e) {
7854
7854
  var _this29;
7855
7855
  _classCallCheck(this, Ci);
@@ -7861,7 +7861,7 @@ var Ci = /*#__PURE__*/function (_qi4) {
7861
7861
  _typeof(s) == "object" && (s.engine_id && (_this29.url = "https://api.stability.ai/v1/generation/".concat(s.engine_id, "/text-to-image")), s.weight !== void 0 && s.weight !== null && (_this29._imageWeight = s.weight), Ci.cleanConfig(s), Object.assign(_this29.rawBody, s)), _this29.canSendMessage = Ci.canSendTextMessage;
7862
7862
  return _this29;
7863
7863
  }
7864
- _inherits(Ci, _qi4);
7864
+ _inherits(Ci, _zi4);
7865
7865
  return _createClass(Ci, [{
7866
7866
  key: "preprocessBody",
7867
7867
  value: function preprocessBody(e, t) {
@@ -7941,19 +7941,19 @@ var Ci = /*#__PURE__*/function (_qi4) {
7941
7941
  return !!(e && e.trim() !== "");
7942
7942
  }
7943
7943
  }]);
7944
- }(qi);
7945
- var $o = /*#__PURE__*/function (_je7) {
7946
- function $o(e) {
7944
+ }(zi);
7945
+ var Jo = /*#__PURE__*/function (_je7) {
7946
+ function Jo(e) {
7947
7947
  var _this30;
7948
- _classCallCheck(this, $o);
7948
+ _classCallCheck(this, Jo);
7949
7949
  var s, r, o;
7950
7950
  var t = (r = (s = e.directConnection) == null ? void 0 : s.huggingFace) == null ? void 0 : r.fillMask,
7951
7951
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
7952
- _this30 = _callSuper(this, $o, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this30.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this30.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
7952
+ _this30 = _callSuper(this, Jo, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this30.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this30.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
7953
7953
  return _this30;
7954
7954
  }
7955
- _inherits($o, _je7);
7956
- return _createClass($o, [{
7955
+ _inherits(Jo, _je7);
7956
+ return _createClass(Jo, [{
7957
7957
  key: "extractResultData",
7958
7958
  value: function () {
7959
7959
  var _extractResultData1 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee62(e) {
@@ -9017,17 +9017,17 @@ var Ve = /*#__PURE__*/function (_V3) {
9017
9017
  }(V);
9018
9018
  Ve.POLLING_TIMEOUT_MS = 500;
9019
9019
  var Ri = Ve;
9020
- var Ss = /*#__PURE__*/function (_Ri) {
9021
- function Ss(e) {
9020
+ var xs = /*#__PURE__*/function (_Ri) {
9021
+ function xs(e) {
9022
9022
  var _a$headers, _l$OpenAIBeta;
9023
9023
  var _this34;
9024
- _classCallCheck(this, Ss);
9024
+ _classCallCheck(this, xs);
9025
9025
  var o, a, l, c, d;
9026
9026
  var t = JSON.parse(JSON.stringify(e.directConnection)),
9027
9027
  i = t.openAI,
9028
9028
  s = (o = t.openAI) == null ? void 0 : o.assistant,
9029
- r = Ss.buildUrlSegments(s);
9030
- if (_this34 = _callSuper(this, Ss, [e, s, r, L.buildKeyVerificationDetails(), L.buildHeaders, i]), (_a$headers = (a = _this34.connectSettings).headers) !== null && _a$headers !== void 0 ? _a$headers : a.headers = {}, (_l$OpenAIBeta = (l = _this34.connectSettings.headers)["OpenAI-Beta"]) !== null && _l$OpenAIBeta !== void 0 ? _l$OpenAIBeta : l["OpenAI-Beta"] = "assistants=v2", _this34.shouldFetchHistory && _this34.sessionId && (_this34.fetchHistory = _this34.fetchHistoryFunc.bind(_assertThisInitialized(_this34))), _typeof(s) == "object") {
9029
+ r = xs.buildUrlSegments(s);
9030
+ if (_this34 = _callSuper(this, xs, [e, s, r, L.buildKeyVerificationDetails(), L.buildHeaders, i]), (_a$headers = (a = _this34.connectSettings).headers) !== null && _a$headers !== void 0 ? _a$headers : a.headers = {}, (_l$OpenAIBeta = (l = _this34.connectSettings.headers)["OpenAI-Beta"]) !== null && _l$OpenAIBeta !== void 0 ? _l$OpenAIBeta : l["OpenAI-Beta"] = "assistants=v2", _this34.shouldFetchHistory && _this34.sessionId && (_this34.fetchHistory = _this34.fetchHistoryFunc.bind(_assertThisInitialized(_this34))), _typeof(s) == "object") {
9031
9031
  var _ref24 = (d = (c = e.directConnection) == null ? void 0 : c.openAI) == null ? void 0 : d.assistant,
9032
9032
  u = _ref24.function_handler,
9033
9033
  h = _ref24.files_tool_type;
@@ -9035,8 +9035,8 @@ var Ss = /*#__PURE__*/function (_Ri) {
9035
9035
  }
9036
9036
  return _this34;
9037
9037
  }
9038
- _inherits(Ss, _Ri);
9039
- return _createClass(Ss, null, [{
9038
+ _inherits(xs, _Ri);
9039
+ return _createClass(xs, null, [{
9040
9040
  key: "buildUrlSegments",
9041
9041
  value: function buildUrlSegments(e) {
9042
9042
  var t = _typeof(e) == "object" && e.custom_base_url || "https://api.openai.com/v1";
@@ -9087,26 +9087,26 @@ var Mi = /*#__PURE__*/function () {
9087
9087
  }
9088
9088
  }]);
9089
9089
  }();
9090
- var _s = /*#__PURE__*/function (_V4) {
9091
- function _s(e, t, i, s, r) {
9090
+ var ws = /*#__PURE__*/function (_V4) {
9091
+ function ws(e, t, i, s, r) {
9092
9092
  var _this35;
9093
- _classCallCheck(this, _s);
9094
- _this35 = _callSuper(this, _s, [e, Mi.buildKeyVerificationDetails(), Mi.buildHeaders, r]), _this35.insertKeyPlaceholderText = "Cohere API Key", _this35.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", _this35.permittedErrorPrefixes = ["invalid"], _this35.url = t, _this35.textInputPlaceholderText = i, s && _typeof(s) == "object" && Object.assign(_this35.rawBody, s);
9093
+ _classCallCheck(this, ws);
9094
+ _this35 = _callSuper(this, ws, [e, Mi.buildKeyVerificationDetails(), Mi.buildHeaders, r]), _this35.insertKeyPlaceholderText = "Cohere API Key", _this35.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", _this35.permittedErrorPrefixes = ["invalid"], _this35.url = t, _this35.textInputPlaceholderText = i, s && _typeof(s) == "object" && Object.assign(_this35.rawBody, s);
9095
9095
  return _this35;
9096
9096
  }
9097
- _inherits(_s, _V4);
9098
- return _createClass(_s);
9097
+ _inherits(ws, _V4);
9098
+ return _createClass(ws);
9099
9099
  }(V);
9100
- var Wo = /*#__PURE__*/function (_s3) {
9101
- function Wo(e) {
9102
- _classCallCheck(this, Wo);
9100
+ var Xo = /*#__PURE__*/function (_ws) {
9101
+ function Xo(e) {
9102
+ _classCallCheck(this, Xo);
9103
9103
  var s, r, o;
9104
9104
  var t = (r = (s = e.directConnection) == null ? void 0 : s.cohere) == null ? void 0 : r.textGeneration,
9105
9105
  i = (o = e.directConnection) == null ? void 0 : o.cohere;
9106
- return _callSuper(this, Wo, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
9106
+ return _callSuper(this, Xo, [e, "https://api.cohere.ai/v1/generate", "Once upon a time", t, i]);
9107
9107
  }
9108
- _inherits(Wo, _s3);
9109
- return _createClass(Wo, [{
9108
+ _inherits(Xo, _ws);
9109
+ return _createClass(Xo, [{
9110
9110
  key: "preprocessBody",
9111
9111
  value: function preprocessBody(e, t) {
9112
9112
  var i = JSON.parse(JSON.stringify(e)),
@@ -9171,12 +9171,12 @@ var Wo = /*#__PURE__*/function (_s3) {
9171
9171
  return extractResultData;
9172
9172
  }()
9173
9173
  }]);
9174
- }(_s);
9175
- var ks = /*#__PURE__*/function () {
9176
- function ks() {
9177
- _classCallCheck(this, ks);
9174
+ }(ws);
9175
+ var Is = /*#__PURE__*/function () {
9176
+ function Is() {
9177
+ _classCallCheck(this, Is);
9178
9178
  }
9179
- return _createClass(ks, null, [{
9179
+ return _createClass(Is, null, [{
9180
9180
  key: "buildHeaders",
9181
9181
  value: function buildHeaders(e) {
9182
9182
  return {
@@ -9203,8 +9203,8 @@ var ks = /*#__PURE__*/function () {
9203
9203
  }
9204
9204
  }]);
9205
9205
  }();
9206
- ks.URL_DETAILS_ERROR_MESSAGE = "Please define the Azure URL Details. [More Information](https://deepchat.dev/docs/directConnection/Azure)";
9207
- var ue = ks;
9206
+ Is.URL_DETAILS_ERROR_MESSAGE = "Please define the Azure URL Details. [More Information](https://deepchat.dev/docs/directConnection/Azure)";
9207
+ var ue = Is;
9208
9208
  var pt = /*#__PURE__*/function (_Ri2) {
9209
9209
  function pt(e) {
9210
9210
  var _g$headers;
@@ -9246,17 +9246,17 @@ var pt = /*#__PURE__*/function (_Ri2) {
9246
9246
  return _createClass(pt);
9247
9247
  }(Ri);
9248
9248
  pt.THREAD_RESOURCE = "threads", pt.NEW_ASSISTANT_RESOURCE = "assistants";
9249
- var rs = pt;
9250
- var Jo = /*#__PURE__*/function (_s4) {
9251
- function Jo(e) {
9252
- _classCallCheck(this, Jo);
9249
+ var as = pt;
9250
+ var Yo = /*#__PURE__*/function (_ws2) {
9251
+ function Yo(e) {
9252
+ _classCallCheck(this, Yo);
9253
9253
  var s, r, o;
9254
9254
  var t = (r = (s = e.directConnection) == null ? void 0 : s.cohere) == null ? void 0 : r.summarization,
9255
9255
  i = (o = e.directConnection) == null ? void 0 : o.cohere;
9256
- return _callSuper(this, Jo, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
9256
+ return _callSuper(this, Yo, [e, "https://api.cohere.ai/v1/summarize", "Insert text to summarize", t, i]);
9257
9257
  }
9258
- _inherits(Jo, _s4);
9259
- return _createClass(Jo, [{
9258
+ _inherits(Yo, _ws2);
9259
+ return _createClass(Yo, [{
9260
9260
  key: "preprocessBody",
9261
9261
  value: function preprocessBody(e, t) {
9262
9262
  var i = JSON.parse(JSON.stringify(e)),
@@ -9320,7 +9320,7 @@ var Jo = /*#__PURE__*/function (_s4) {
9320
9320
  return extractResultData;
9321
9321
  }()
9322
9322
  }]);
9323
- }(_s);
9323
+ }(ws);
9324
9324
  var N = /*#__PURE__*/function () {
9325
9325
  function N() {
9326
9326
  _classCallCheck(this, N);
@@ -9357,7 +9357,7 @@ var N = /*#__PURE__*/function () {
9357
9357
  }
9358
9358
  }]);
9359
9359
  }();
9360
- var Ln = "<?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",
9360
+ var On = "<?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",
9361
9361
  re = /*#__PURE__*/function () {
9362
9362
  function re() {
9363
9363
  _classCallCheck(this, re);
@@ -9530,17 +9530,17 @@ var ct = /*#__PURE__*/function () {
9530
9530
  }
9531
9531
  }]);
9532
9532
  }();
9533
- var Fi = /*#__PURE__*/function (_ct) {
9534
- function Fi(e) {
9533
+ var Ui = /*#__PURE__*/function (_ct) {
9534
+ function Ui(e) {
9535
9535
  var _this37;
9536
- _classCallCheck(this, Fi);
9536
+ _classCallCheck(this, Ui);
9537
9537
  var i, s;
9538
- var t = ((s = (i = e == null ? void 0 : e["default"]) == null ? void 0 : i.svg) == null ? void 0 : s.content) || Fi.EMPTY_SVG;
9539
- _this37 = _callSuper(this, Fi, [document.createElement("div"), t, void 0, e]), _this37.isActive = !1, _this37._innerElements = _this37.createInnerElementsForStates(_this37.customStyles), _this37.changeToDefault();
9538
+ var t = ((s = (i = e == null ? void 0 : e["default"]) == null ? void 0 : i.svg) == null ? void 0 : s.content) || Ui.EMPTY_SVG;
9539
+ _this37 = _callSuper(this, Ui, [document.createElement("div"), t, void 0, e]), _this37.isActive = !1, _this37._innerElements = _this37.createInnerElementsForStates(_this37.customStyles), _this37.changeToDefault();
9540
9540
  return _this37;
9541
9541
  }
9542
- _inherits(Fi, _ct);
9543
- return _createClass(Fi, [{
9542
+ _inherits(Ui, _ct);
9543
+ return _createClass(Ui, [{
9544
9544
  key: "createInnerElementsForStates",
9545
9545
  value: function createInnerElementsForStates(e) {
9546
9546
  return {
@@ -9578,8 +9578,8 @@ var Fi = /*#__PURE__*/function (_ct) {
9578
9578
  }
9579
9579
  }]);
9580
9580
  }(ct);
9581
- Fi.EMPTY_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"></svg>';
9582
- var ki = Fi;
9581
+ Ui.EMPTY_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"></svg>';
9582
+ var ki = Ui;
9583
9583
  var z = /*#__PURE__*/function () {
9584
9584
  function z() {
9585
9585
  _classCallCheck(this, z);
@@ -9632,8 +9632,13 @@ var z = /*#__PURE__*/function () {
9632
9632
  }
9633
9633
  }]);
9634
9634
  }();
9635
- var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z\"></path>\n</svg>",
9636
- os = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z\"></path>\n</svg>",
9635
+ var ji = /*#__PURE__*/_createClass(function ji() {
9636
+ _classCallCheck(this, ji);
9637
+ });
9638
+ ji.SESSION_STARTED = "sts-session-started", ji.SESSION_STOPPED = "sts-session-stopped";
9639
+ var Li = ji;
9640
+ var Pn = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z\"></path>\n</svg>",
9641
+ ls = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n<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>",
9637
9642
  C = /*#__PURE__*/function (_V5) {
9638
9643
  function C(e) {
9639
9644
  var _l$model;
@@ -9650,7 +9655,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9650
9655
  _this38._avatarConfig = s.avatar, _this38._ephemeralKey = s.ephemeralKey, _this38._errorConfig = s.error, _this38._loadingConfig = s.loading, Object.assign(_this38.rawBody, s.config);
9651
9656
  var _ref26 = ((a = (o = e.directConnection) == null ? void 0 : o.openAI) == null ? void 0 : a.realtime).config || {},
9652
9657
  c = _ref26.function_handler;
9653
- c && (_this38._functionHandler = c);
9658
+ c && (_this38._functionHandler = c), _this38._events = s.events;
9654
9659
  }
9655
9660
  (_l$model = (l = _this38.rawBody).model) !== null && _l$model !== void 0 ? _l$model : l.model = "gpt-4o-realtime-preview-2024-12-17", _this38._avatarConfig = C.buildAvatarConfig(s), _this38._buttonsConfig = C.buildButtonsConfig(s), _this38._avatarEl = C.createAvatar(_this38._avatarConfig), _this38._containerEl = _this38.createContainer(), _this38._deepChat = e;
9656
9661
  return _this38;
@@ -9986,7 +9991,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9986
9991
  a = this._pc.createDataChannel("oai-events");
9987
9992
  a.addEventListener("message", /*#__PURE__*/function () {
9988
9993
  var _ref29 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee93(l) {
9989
- var d, c, h, f, m;
9994
+ var d, u, h, c, m, p, g;
9990
9995
  return _regeneratorRuntime().wrap(function _callee93$(_context93) {
9991
9996
  while (1) switch (_context93.prev = _context93.next) {
9992
9997
  case 0:
@@ -9995,7 +10000,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
9995
10000
  _context93.next = 5;
9996
10001
  break;
9997
10002
  }
9998
- _this41.removeUnavailable(), _this41._toggleButton && (N.removeAriaAttributes(_this41._toggleButton.elementRef), _this41._toggleButton.changeToActive()), _this41.hideLoading();
10003
+ _this41.removeUnavailable(), _this41._toggleButton && (N.removeAriaAttributes(_this41._toggleButton.elementRef), _this41._toggleButton.changeToActive()), (u = (d = _this41._events) == null ? void 0 : d.started) == null || u.call(d), _this41._deepChat.dispatchEvent(new CustomEvent(Li.SESSION_STARTED)), _this41.hideLoading();
9999
10004
  _context93.next = 20;
10000
10005
  break;
10001
10006
  case 5:
@@ -10003,15 +10008,15 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
10003
10008
  _context93.next = 19;
10004
10009
  break;
10005
10010
  }
10006
- h = (d = JSON.parse(l.data).response.output) == null ? void 0 : d[0];
10007
- if (!((h == null ? void 0 : h.type) === "function_call")) {
10011
+ m = (h = JSON.parse(l.data).response.output) == null ? void 0 : h[0];
10012
+ if (!((m == null ? void 0 : m.type) === "function_call")) {
10008
10013
  _context93.next = 17;
10009
10014
  break;
10010
10015
  }
10011
- f = h.name, m = h.call_id;
10016
+ p = m.name, g = m.call_id;
10012
10017
  _context93.prev = 9;
10013
10018
  _context93.next = 12;
10014
- return _this41.handleTool(f, h.arguments, m, a);
10019
+ return _this41.handleTool(p, m.arguments, g, a);
10015
10020
  case 12:
10016
10021
  _context93.next = 17;
10017
10022
  break;
@@ -10143,15 +10148,15 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
10143
10148
  }, {
10144
10149
  key: "stopOnError",
10145
10150
  value: function stopOnError(e) {
10146
- this.stop(), console.error(e), this.displayError();
10151
+ this.stop(), this._deepChat.dispatchEvent(new CustomEvent(Li.SESSION_STOPPED)), console.error(e), this.displayError();
10147
10152
  }
10148
10153
  }, {
10149
10154
  key: "stop",
10150
10155
  value: function stop() {
10151
- var e;
10152
- (e = this._mediaStream) == null || e.getTracks().forEach(function (t) {
10153
- return t.stop();
10154
- }), this._mediaStream = null, this._pc && (this._pc.close(), this._pc = null);
10156
+ var e, t, i;
10157
+ (e = this._mediaStream) == null || e.getTracks().forEach(function (s) {
10158
+ return s.stop();
10159
+ }), this._mediaStream = null, this._pc && (this._pc.close(), this._pc = null, (i = (t = this._events) == null ? void 0 : t.stopped) == null || i.call(t));
10155
10160
  }
10156
10161
  }, {
10157
10162
  key: "changeToUnavailable",
@@ -10281,14 +10286,14 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
10281
10286
  var _t$microphone, _o$default, _a$svg, _l$content, _t$toggle, _h$default, _f$svg, _m$content, _p$active, _g$svg, _b$content;
10282
10287
  var i, s, r, o, a, l, c, d, u, h, f, m, p, g, b;
10283
10288
  var t = _typeof(e) == "object" && e.buttons ? JSON.parse(JSON.stringify(e.buttons)) : {};
10284
- return (r = (s = (i = t.microphone) == null ? void 0 : i["default"]) == null ? void 0 : s.text) != null && r.content || ((_t$microphone = t.microphone) !== null && _t$microphone !== void 0 ? _t$microphone : t.microphone = {}, (_o$default = (o = t.microphone)["default"]) !== null && _o$default !== void 0 ? _o$default : o["default"] = {}, (_a$svg = (a = t.microphone["default"]).svg) !== null && _a$svg !== void 0 ? _a$svg : a.svg = {}, (_l$content = (l = t.microphone["default"].svg).content) !== null && _l$content !== void 0 ? _l$content : l.content = Ln), (u = (d = (c = t.toggle) == null ? void 0 : c["default"]) == null ? void 0 : d.text) != null && u.content || ((_t$toggle = t.toggle) !== null && _t$toggle !== void 0 ? _t$toggle : t.toggle = {}, (_h$default = (h = t.toggle)["default"]) !== null && _h$default !== void 0 ? _h$default : h["default"] = {}, (_f$svg = (f = t.toggle["default"]).svg) !== null && _f$svg !== void 0 ? _f$svg : f.svg = {}, (_m$content = (m = t.toggle["default"].svg).content) !== null && _m$content !== void 0 ? _m$content : m.content = In, (_p$active = (p = t.toggle).active) !== null && _p$active !== void 0 ? _p$active : p.active = {}, (_g$svg = (g = t.toggle.active).svg) !== null && _g$svg !== void 0 ? _g$svg : g.svg = {}, (_b$content = (b = t.toggle.active.svg).content) !== null && _b$content !== void 0 ? _b$content : b.content = os), t;
10289
+ return (r = (s = (i = t.microphone) == null ? void 0 : i["default"]) == null ? void 0 : s.text) != null && r.content || ((_t$microphone = t.microphone) !== null && _t$microphone !== void 0 ? _t$microphone : t.microphone = {}, (_o$default = (o = t.microphone)["default"]) !== null && _o$default !== void 0 ? _o$default : o["default"] = {}, (_a$svg = (a = t.microphone["default"]).svg) !== null && _a$svg !== void 0 ? _a$svg : a.svg = {}, (_l$content = (l = t.microphone["default"].svg).content) !== null && _l$content !== void 0 ? _l$content : l.content = On), (u = (d = (c = t.toggle) == null ? void 0 : c["default"]) == null ? void 0 : d.text) != null && u.content || ((_t$toggle = t.toggle) !== null && _t$toggle !== void 0 ? _t$toggle : t.toggle = {}, (_h$default = (h = t.toggle)["default"]) !== null && _h$default !== void 0 ? _h$default : h["default"] = {}, (_f$svg = (f = t.toggle["default"]).svg) !== null && _f$svg !== void 0 ? _f$svg : f.svg = {}, (_m$content = (m = t.toggle["default"].svg).content) !== null && _m$content !== void 0 ? _m$content : m.content = Pn, (_p$active = (p = t.toggle).active) !== null && _p$active !== void 0 ? _p$active : p.active = {}, (_g$svg = (g = t.toggle.active).svg) !== null && _g$svg !== void 0 ? _g$svg : g.svg = {}, (_b$content = (b = t.toggle.active.svg).content) !== null && _b$content !== void 0 ? _b$content : b.content = ls), t;
10285
10290
  }
10286
10291
  }, {
10287
10292
  key: "createAvatar",
10288
10293
  value: function createAvatar(e) {
10289
10294
  var i;
10290
10295
  var t = document.createElement("img");
10291
- return t.id = "deep-chat-openai-realtime-avatar", Object.assign(t.style, (i = e == null ? void 0 : e.styles) == null ? void 0 : i.image), t.src = (e == null ? void 0 : e.src) || ts, t;
10296
+ return t.id = "deep-chat-openai-realtime-avatar", Object.assign(t.style, (i = e == null ? void 0 : e.styles) == null ? void 0 : i.image), t.src = (e == null ? void 0 : e.src) || ss, t;
10292
10297
  }
10293
10298
  }, {
10294
10299
  key: "createButtonContainer",
@@ -10314,7 +10319,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
10314
10319
  }]);
10315
10320
  }(V);
10316
10321
  C.BUTTON_DEFAULT = "deep-chat-openai-realtime-button-default", C.BUTTON_LOADING = "deep-chat-openai-realtime-button-loading", C.MICROPHONE_ACTIVE = "deep-chat-openai-realtime-microphone-active", C.UNAVAILABLE = "deep-chat-openai-realtime-button-unavailable";
10317
- var as = C;
10322
+ var cs = C;
10318
10323
  var mt = /*#__PURE__*/function (_V6) {
10319
10324
  function mt(e) {
10320
10325
  var _o$model, _a$voice;
@@ -10411,7 +10416,7 @@ var mt = /*#__PURE__*/function (_V6) {
10411
10416
  }]);
10412
10417
  }(V);
10413
10418
  mt.DEFAULT_MODEL = "tts-1", mt.DEFAULT_VOIDE = "alloy";
10414
- var ls = mt;
10419
+ var ds = mt;
10415
10420
  var pe = /*#__PURE__*/function (_V7) {
10416
10421
  function pe(e) {
10417
10422
  var _o$model2;
@@ -10524,7 +10529,7 @@ var pe = /*#__PURE__*/function (_V7) {
10524
10529
  }]);
10525
10530
  }(V);
10526
10531
  pe.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", pe.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", pe.DEFAULT_MODEL = "whisper-1";
10527
- var cs = pe;
10532
+ var hs = pe;
10528
10533
  var fe = /*#__PURE__*/function () {
10529
10534
  function fe() {
10530
10535
  _classCallCheck(this, fe);
@@ -10626,20 +10631,20 @@ var fe = /*#__PURE__*/function () {
10626
10631
  }
10627
10632
  }]);
10628
10633
  }();
10629
- var Xo = /*#__PURE__*/function (_V8) {
10634
+ var Zo = /*#__PURE__*/function (_V8) {
10630
10635
  // prettier-ignore
10631
- function Xo(e, t, i, s, r) {
10636
+ function Zo(e, t, i, s, r) {
10632
10637
  var _this45;
10633
- _classCallCheck(this, Xo);
10634
- _this45 = _callSuper(this, Xo, [e, fe.buildLanguageKeyVerificationDetails(i), t, s, r]), _this45.insertKeyPlaceholderText = "Azure Language Subscription Key", _this45.keyHelpUrl =
10638
+ _classCallCheck(this, Zo);
10639
+ _this45 = _callSuper(this, Zo, [e, fe.buildLanguageKeyVerificationDetails(i), t, s, r]), _this45.insertKeyPlaceholderText = "Azure Language Subscription Key", _this45.keyHelpUrl =
10635
10640
  // eslint-disable-next-line max-len
10636
10641
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", _this45.permittedErrorPrefixes = ["Access"];
10637
10642
  return _this45;
10638
10643
  }
10639
- _inherits(Xo, _V8);
10640
- return _createClass(Xo);
10644
+ _inherits(Zo, _V8);
10645
+ return _createClass(Zo);
10641
10646
  }(V);
10642
- var Yt = /*#__PURE__*/function (_Xo) {
10647
+ var Yt = /*#__PURE__*/function (_Zo) {
10643
10648
  function Yt(e) {
10644
10649
  var _a$language;
10645
10650
  var _this46;
@@ -10656,7 +10661,7 @@ var Yt = /*#__PURE__*/function (_Xo) {
10656
10661
  }));
10657
10662
  return _this46;
10658
10663
  }
10659
- _inherits(Yt, _Xo);
10664
+ _inherits(Yt, _Zo);
10660
10665
  return _createClass(Yt, [{
10661
10666
  key: "preprocessBody",
10662
10667
  value: function preprocessBody(e, t) {
@@ -10797,11 +10802,11 @@ var Yt = /*#__PURE__*/function (_Xo) {
10797
10802
  return extractPollResultData;
10798
10803
  }()
10799
10804
  }]);
10800
- }(Xo);
10805
+ }(Zo);
10801
10806
  Yt.ENDPOINT_ERROR_MESSAGE =
10802
10807
  // eslint-disable-next-line max-len
10803
10808
  "Please define the azure endpoint. [More Information](https://deepchat.dev/docs/directConnection/Azure#Summarization)";
10804
- var ds = Yt;
10809
+ var us = Yt;
10805
10810
  var Vt = /*#__PURE__*/function () {
10806
10811
  function Vt() {
10807
10812
  _classCallCheck(this, Vt);
@@ -10907,19 +10912,19 @@ var Vt = /*#__PURE__*/function () {
10907
10912
  }
10908
10913
  }]);
10909
10914
  }();
10910
- var xs = /*#__PURE__*/function (_V9) {
10911
- function xs(e) {
10915
+ var As = /*#__PURE__*/function (_V9) {
10916
+ function As(e) {
10912
10917
  var _this47;
10913
- _classCallCheck(this, xs);
10918
+ _classCallCheck(this, As);
10914
10919
  var i;
10915
10920
  var t = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
10916
- _this47 = _callSuper(this, xs, [e, Vt.buildKeyVerificationDetails(), Vt.buildHeaders, t, {
10921
+ _this47 = _callSuper(this, As, [e, Vt.buildKeyVerificationDetails(), Vt.buildHeaders, t, {
10917
10922
  audio: {}
10918
- }]), _this47.insertKeyPlaceholderText = "AssemblyAI API Key", _this47.keyHelpUrl = "https://www.assemblyai.com/app/account", _this47.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>", _this47.url = "https://api.assemblyai.com/v2/upload", _this47.isTextInputDisabled = !0, _this47.textInputPlaceholderText = "Upload an audio file", _this47.permittedErrorPrefixes = ["Authentication", "Invalid"], _this47.canSendMessage = xs.canFileSendMessage;
10923
+ }]), _this47.insertKeyPlaceholderText = "AssemblyAI API Key", _this47.keyHelpUrl = "https://www.assemblyai.com/app/account", _this47.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>", _this47.url = "https://api.assemblyai.com/v2/upload", _this47.isTextInputDisabled = !0, _this47.textInputPlaceholderText = "Upload an audio file", _this47.permittedErrorPrefixes = ["Authentication", "Invalid"], _this47.canSendMessage = As.canFileSendMessage;
10919
10924
  return _this47;
10920
10925
  }
10921
- _inherits(xs, _V9);
10922
- return _createClass(xs, [{
10926
+ _inherits(As, _V9);
10927
+ return _createClass(As, [{
10923
10928
  key: "callServiceAPI",
10924
10929
  value: function () {
10925
10930
  var _callServiceAPI13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee104(e, t, i) {
@@ -10991,20 +10996,20 @@ var xs = /*#__PURE__*/function (_V9) {
10991
10996
  }
10992
10997
  }]);
10993
10998
  }(V);
10994
- var On = /*#__PURE__*/function (_V0) {
10999
+ var Nn = /*#__PURE__*/function (_V0) {
10995
11000
  // prettier-ignore
10996
- function On(e, t, i, s, r) {
11001
+ function Nn(e, t, i, s, r) {
10997
11002
  var _this48;
10998
- _classCallCheck(this, On);
10999
- _this48 = _callSuper(this, On, [e, fe.buildSpeechKeyVerificationDetails(i), t, s, r]), _this48.insertKeyPlaceholderText = "Azure Speech Subscription Key", _this48.keyHelpUrl =
11003
+ _classCallCheck(this, Nn);
11004
+ _this48 = _callSuper(this, Nn, [e, fe.buildSpeechKeyVerificationDetails(i), t, s, r]), _this48.insertKeyPlaceholderText = "Azure Speech Subscription Key", _this48.keyHelpUrl =
11000
11005
  // eslint-disable-next-line max-len
11001
11006
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal";
11002
11007
  return _this48;
11003
11008
  }
11004
- _inherits(On, _V0);
11005
- return _createClass(On);
11009
+ _inherits(Nn, _V0);
11010
+ return _createClass(Nn);
11006
11011
  }(V);
11007
- var Qe = /*#__PURE__*/function (_On) {
11012
+ var Qe = /*#__PURE__*/function (_Nn) {
11008
11013
  // prettier-ignore
11009
11014
  function Qe(e) {
11010
11015
  var _a$lang, _l$name, _c$gender;
@@ -11022,7 +11027,7 @@ var Qe = /*#__PURE__*/function (_On) {
11022
11027
  }));
11023
11028
  return _this49;
11024
11029
  }
11025
- _inherits(Qe, _On);
11030
+ _inherits(Qe, _Nn);
11026
11031
  return _createClass(Qe, [{
11027
11032
  key: "preprocessBody",
11028
11033
  value: function preprocessBody(e, t) {
@@ -11086,14 +11091,14 @@ var Qe = /*#__PURE__*/function (_On) {
11086
11091
  return extractResultData;
11087
11092
  }()
11088
11093
  }]);
11089
- }(On);
11094
+ }(Nn);
11090
11095
  Qe.HELP_LINK =
11091
11096
  // eslint-disable-next-line max-len
11092
11097
  "https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest", Qe.REGION_ERROR_MESSAGE =
11093
11098
  // eslint-disable-next-line max-len
11094
11099
  "Please define a region config property. [More Information](https://deepchat.dev/docs/directConnection/Azure#TextToSpeech)";
11095
- var hs = Qe;
11096
- var Ke = /*#__PURE__*/function (_On2) {
11100
+ var fs = Qe;
11101
+ var Ke = /*#__PURE__*/function (_Nn2) {
11097
11102
  function Ke(e) {
11098
11103
  var _this50;
11099
11104
  _classCallCheck(this, Ke);
@@ -11120,7 +11125,7 @@ var Ke = /*#__PURE__*/function (_On2) {
11120
11125
  }
11121
11126
  return _this50;
11122
11127
  }
11123
- _inherits(Ke, _On2);
11128
+ _inherits(Ke, _Nn2);
11124
11129
  return _createClass(Ke, [{
11125
11130
  key: "callServiceAPI",
11126
11131
  value: function () {
@@ -11186,28 +11191,28 @@ var Ke = /*#__PURE__*/function (_On2) {
11186
11191
  return !!(t != null && t[0]);
11187
11192
  }
11188
11193
  }]);
11189
- }(On);
11194
+ }(Nn);
11190
11195
  Ke.HELP_LINK =
11191
11196
  // eslint-disable-next-line max-len
11192
11197
  "https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest", Ke.REGION_ERROR_MESSAGE =
11193
11198
  // eslint-disable-next-line max-len
11194
11199
  "Please define a region config property. [More Information](https://deepchat.dev/docs/directConnection/Azure#SpeechToText)";
11195
- var us = Ke;
11196
- var Yo = /*#__PURE__*/function (_V1) {
11200
+ var ps = Ke;
11201
+ var Qo = /*#__PURE__*/function (_V1) {
11197
11202
  // prettier-ignore
11198
- function Yo(e) {
11203
+ function Qo(e) {
11199
11204
  var _this51;
11200
- _classCallCheck(this, Yo);
11205
+ _classCallCheck(this, Qo);
11201
11206
  var s, r, o;
11202
11207
  var t = (r = (s = e.directConnection) == null ? void 0 : s.azure) == null ? void 0 : r.translation,
11203
11208
  i = (o = e.directConnection) == null ? void 0 : o.azure;
11204
- _this51 = _callSuper(this, Yo, [e, fe.buildTranslationKeyVerificationDetails(t.region), fe.buildTranslationHeaders.bind({}, t == null ? void 0 : t.region), i]), _this51.insertKeyPlaceholderText = "Azure Translate Subscription Key", _this51.keyHelpUrl =
11209
+ _this51 = _callSuper(this, Qo, [e, fe.buildTranslationKeyVerificationDetails(t.region), fe.buildTranslationHeaders.bind({}, t == null ? void 0 : t.region), i]), _this51.insertKeyPlaceholderText = "Azure Translate Subscription Key", _this51.keyHelpUrl =
11205
11210
  // eslint-disable-next-line max-len
11206
11211
  "https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", _this51.url = "", _this51.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(t.language || "es");
11207
11212
  return _this51;
11208
11213
  }
11209
- _inherits(Yo, _V1);
11210
- return _createClass(Yo, [{
11214
+ _inherits(Qo, _V1);
11215
+ return _createClass(Qo, [{
11211
11216
  key: "preprocessBody",
11212
11217
  value: function preprocessBody(e) {
11213
11218
  var t = e[e.length - 1].text;
@@ -11566,21 +11571,21 @@ var bt = /*#__PURE__*/function (_V10) {
11566
11571
  }
11567
11572
  }]);
11568
11573
  }(V);
11569
- var ws = /*#__PURE__*/function (_bt) {
11570
- function ws(e) {
11574
+ var Ts = /*#__PURE__*/function (_bt) {
11575
+ function Ts(e) {
11571
11576
  var _this54;
11572
- _classCallCheck(this, ws);
11577
+ _classCallCheck(this, Ts);
11573
11578
  var o, a, l, c, d, u, h;
11574
11579
  var t = JSON.parse(JSON.stringify(e.directConnection)),
11575
11580
  i = t.azure,
11576
11581
  s = ((a = (o = t.azure) == null ? void 0 : o.openAI) == null ? void 0 : a.urlDetails) || {},
11577
11582
  r = (c = (l = t.azure) == null ? void 0 : l.openAI) == null ? void 0 : c.chat;
11578
- if (_this54 = _callSuper(this, ws, [e, ue.buildKeyVerificationDetails(s), ue.buildHeaders, i, r]), _this54.permittedErrorPrefixes = [ue.URL_DETAILS_ERROR_MESSAGE], _this54.isTextInputDisabled = !1, _typeof(r) == "object") {
11583
+ if (_this54 = _callSuper(this, Ts, [e, ue.buildKeyVerificationDetails(s), ue.buildHeaders, i, r]), _this54.permittedErrorPrefixes = [ue.URL_DETAILS_ERROR_MESSAGE], _this54.isTextInputDisabled = !1, _typeof(r) == "object") {
11579
11584
  var _ref31 = (h = (u = (d = e.directConnection) == null ? void 0 : d.azure) == null ? void 0 : u.openAI) == null ? void 0 : h.chat,
11580
11585
  f = _ref31.function_handler;
11581
11586
  f && (_this54._functionHandler = f);
11582
11587
  }
11583
- ue.validateURLDetails(s) ? _this54.url = ws.buildURL(s) : (_this54.isTextInputDisabled = !0, _this54.canSendMessage = function () {
11588
+ ue.validateURLDetails(s) ? _this54.url = Ts.buildURL(s) : (_this54.isTextInputDisabled = !0, _this54.canSendMessage = function () {
11584
11589
  return !1;
11585
11590
  }, setTimeout(function () {
11586
11591
  e.addMessage({
@@ -11589,8 +11594,8 @@ var ws = /*#__PURE__*/function (_bt) {
11589
11594
  }));
11590
11595
  return _this54;
11591
11596
  }
11592
- _inherits(ws, _bt);
11593
- return _createClass(ws, null, [{
11597
+ _inherits(Ts, _bt);
11598
+ return _createClass(Ts, null, [{
11594
11599
  key: "buildURL",
11595
11600
  value: function buildURL(e) {
11596
11601
  var t = e.endpoint,
@@ -11751,21 +11756,21 @@ var me = /*#__PURE__*/function (_V11) {
11751
11756
  }]);
11752
11757
  }(V);
11753
11758
  me.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", me.IMAGE_VARIATIONS_URL = "https://api.openai.com/v1/images/variations", me.IMAGE_EDIT_URL = "https://api.openai.com/v1/images/edits";
11754
- var fs = me;
11755
- var Zo = /*#__PURE__*/function (_s5) {
11756
- function Zo(e) {
11759
+ var ms = me;
11760
+ var ea = /*#__PURE__*/function (_ws3) {
11761
+ function ea(e) {
11757
11762
  var _this56$maxMessages;
11758
11763
  var _this56;
11759
- _classCallCheck(this, Zo);
11764
+ _classCallCheck(this, ea);
11760
11765
  var r;
11761
11766
  var t = JSON.parse(JSON.stringify(e.directConnection)),
11762
11767
  i = (r = t.cohere) == null ? void 0 : r.chat,
11763
11768
  s = t.cohere;
11764
- _this56 = _callSuper(this, Zo, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", i, s]), _typeof(i) == "object" && Object.assign(_this56.rawBody, i), (_this56$maxMessages = _this56.maxMessages) !== null && _this56$maxMessages !== void 0 ? _this56$maxMessages : _this56.maxMessages = -1;
11769
+ _this56 = _callSuper(this, ea, [e, "https://api.cohere.ai/v1/chat", "Ask me anything!", i, s]), _typeof(i) == "object" && Object.assign(_this56.rawBody, i), (_this56$maxMessages = _this56.maxMessages) !== null && _this56$maxMessages !== void 0 ? _this56$maxMessages : _this56.maxMessages = -1;
11765
11770
  return _this56;
11766
11771
  }
11767
- _inherits(Zo, _s5);
11768
- return _createClass(Zo, [{
11772
+ _inherits(ea, _ws3);
11773
+ return _createClass(ea, [{
11769
11774
  key: "preprocessBody",
11770
11775
  value: function preprocessBody(e, t) {
11771
11776
  var i = JSON.parse(JSON.stringify(e)),
@@ -11834,12 +11839,12 @@ var Zo = /*#__PURE__*/function (_s5) {
11834
11839
  return extractResultData;
11835
11840
  }()
11836
11841
  }]);
11837
- }(_s);
11838
- var Li = /*#__PURE__*/function () {
11839
- function Li() {
11840
- _classCallCheck(this, Li);
11842
+ }(ws);
11843
+ var Ii = /*#__PURE__*/function () {
11844
+ function Ii() {
11845
+ _classCallCheck(this, Ii);
11841
11846
  }
11842
- return _createClass(Li, null, [{
11847
+ return _createClass(Ii, null, [{
11843
11848
  key: "buildHeaders",
11844
11849
  value: function buildHeaders(e) {
11845
11850
  return {
@@ -11861,23 +11866,23 @@ var Li = /*#__PURE__*/function () {
11861
11866
  return {
11862
11867
  url: "https://api.mistral.ai/v1/models",
11863
11868
  method: "GET",
11864
- handleVerificationResult: Li.handleVerificationResult
11869
+ handleVerificationResult: Ii.handleVerificationResult
11865
11870
  };
11866
11871
  }
11867
11872
  }]);
11868
11873
  }();
11869
- var Qo = /*#__PURE__*/function (_V12) {
11870
- function Qo(e) {
11874
+ var ta = /*#__PURE__*/function (_V12) {
11875
+ function ta(e) {
11871
11876
  var _this57$maxMessages, _s$model;
11872
11877
  var _this57;
11873
- _classCallCheck(this, Qo);
11878
+ _classCallCheck(this, ta);
11874
11879
  var s;
11875
11880
  var i = JSON.parse(JSON.stringify(e.directConnection)).mistral;
11876
- _this57 = _callSuper(this, Qo, [e, Li.buildKeyVerificationDetails(), Li.buildHeaders, i]), _this57.insertKeyPlaceholderText = "Mistral API Key", _this57.keyHelpUrl = "https://console.mistral.ai/api-keys/", _this57.url = "https://api.mistral.ai/v1/chat/completions", _this57.permittedErrorPrefixes = ["invalid"], i && (_this57.cleanConfig(i), Object.assign(_this57.rawBody, i)), (_this57$maxMessages = _this57.maxMessages) !== null && _this57$maxMessages !== void 0 ? _this57$maxMessages : _this57.maxMessages = -1, (_s$model = (s = _this57.rawBody).model) !== null && _s$model !== void 0 ? _s$model : s.model = "open-mistral-7b";
11881
+ _this57 = _callSuper(this, ta, [e, Ii.buildKeyVerificationDetails(), Ii.buildHeaders, i]), _this57.insertKeyPlaceholderText = "Mistral API Key", _this57.keyHelpUrl = "https://console.mistral.ai/api-keys/", _this57.url = "https://api.mistral.ai/v1/chat/completions", _this57.permittedErrorPrefixes = ["invalid"], i && (_this57.cleanConfig(i), Object.assign(_this57.rawBody, i)), (_this57$maxMessages = _this57.maxMessages) !== null && _this57$maxMessages !== void 0 ? _this57$maxMessages : _this57.maxMessages = -1, (_s$model = (s = _this57.rawBody).model) !== null && _s$model !== void 0 ? _s$model : s.model = "open-mistral-7b";
11877
11882
  return _this57;
11878
11883
  }
11879
- _inherits(Qo, _V12);
11880
- return _createClass(Qo, [{
11884
+ _inherits(ta, _V12);
11885
+ return _createClass(ta, [{
11881
11886
  key: "cleanConfig",
11882
11887
  value: function cleanConfig(e) {
11883
11888
  delete e.key;
@@ -11953,11 +11958,11 @@ var Qo = /*#__PURE__*/function (_V12) {
11953
11958
  }()
11954
11959
  }]);
11955
11960
  }(V);
11956
- var ea = /*#__PURE__*/function () {
11957
- function ea() {
11958
- _classCallCheck(this, ea);
11961
+ var ia = /*#__PURE__*/function () {
11962
+ function ia() {
11963
+ _classCallCheck(this, ia);
11959
11964
  }
11960
- return _createClass(ea, null, [{
11965
+ return _createClass(ia, null, [{
11961
11966
  key: "create",
11962
11967
  value:
11963
11968
  // this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
@@ -11968,31 +11973,31 @@ var ea = /*#__PURE__*/function () {
11968
11973
  r = e.webModel;
11969
11974
  if (r) return new si(e);
11970
11975
  if (t) {
11971
- if (t.openAI) return t.openAI.images ? new fs(e) : t.openAI.speechToText ? new cs(e) : t.openAI.textToSpeech ? new ls(e) : t.openAI.assistant ? new Ss(e) : t.openAI.realtime ? new as(e) : new bt(e);
11972
- if (t.assemblyAI) return new xs(e);
11973
- if (t.cohere) return t.cohere.textGeneration ? new Wo(e) : t.cohere.summarization ? new Jo(e) : new Zo(e);
11974
- if (t.huggingFace) return t.huggingFace.textGeneration ? new Ho(e) : t.huggingFace.summarization ? new Go(e) : t.huggingFace.translation ? new Ko(e) : t.huggingFace.fillMask ? new $o(e) : t.huggingFace.questionAnswer ? new zo(e) : t.huggingFace.audioSpeechRecognition ? new qo(e) : t.huggingFace.audioClassification ? new Uo(e) : t.huggingFace.imageClassification ? new jo(e) : new Vo(e);
11976
+ if (t.openAI) return t.openAI.images ? new ms(e) : t.openAI.speechToText ? new hs(e) : t.openAI.textToSpeech ? new ds(e) : t.openAI.assistant ? new xs(e) : t.openAI.realtime ? new cs(e) : new bt(e);
11977
+ if (t.assemblyAI) return new As(e);
11978
+ if (t.cohere) return t.cohere.textGeneration ? new Xo(e) : t.cohere.summarization ? new Yo(e) : new ea(e);
11979
+ if (t.huggingFace) return t.huggingFace.textGeneration ? new Go(e) : t.huggingFace.summarization ? new Ko(e) : t.huggingFace.translation ? new Wo(e) : t.huggingFace.fillMask ? new Jo(e) : t.huggingFace.questionAnswer ? new Vo(e) : t.huggingFace.audioSpeechRecognition ? new zo(e) : t.huggingFace.audioClassification ? new qo(e) : t.huggingFace.imageClassification ? new Ho(e) : new $o(e);
11975
11980
  if (t.azure) {
11976
11981
  if (t.azure.openAI) {
11977
- if (t.azure.openAI.chat) return new ws(e);
11978
- if (t.azure.openAI.assistant) return new rs(e);
11982
+ if (t.azure.openAI.chat) return new Ts(e);
11983
+ if (t.azure.openAI.assistant) return new as(e);
11979
11984
  }
11980
- if (t.azure.speechToText) return new us(e);
11981
- if (t.azure.textToSpeech) return new hs(e);
11982
- if (t.azure.summarization) return new ds(e);
11983
- if (t.azure.translation) return new Yo(e);
11985
+ if (t.azure.speechToText) return new ps(e);
11986
+ if (t.azure.textToSpeech) return new fs(e);
11987
+ if (t.azure.summarization) return new us(e);
11988
+ if (t.azure.translation) return new Qo(e);
11984
11989
  }
11985
11990
  if (t.stabilityAI) return t.stabilityAI.imageToImage ? new Ti(e) : t.stabilityAI.imageToImageUpscale ? new wi(e) : t.stabilityAI.imageToImageMasking ? new Ai(e) : new Ci(e);
11986
- if (t.mistral) return new Qo(e);
11991
+ if (t.mistral) return new ta(e);
11987
11992
  }
11988
11993
  return i && Object.keys(i).length > 0 && !s ? new rt(e) : new rt(e, void 0, s || !0);
11989
11994
  }
11990
11995
  }]);
11991
11996
  }();
11992
- var Ls = /*#__PURE__*/_createClass(function Ls() {
11993
- _classCallCheck(this, Ls);
11997
+ var Os = /*#__PURE__*/_createClass(function Os() {
11998
+ _classCallCheck(this, Os);
11994
11999
  });
11995
- Ls.attibutes = {
12000
+ Os.attibutes = {
11996
12001
  string: function string(e) {
11997
12002
  return e;
11998
12003
  },
@@ -12012,30 +12017,30 @@ Ls.attibutes = {
12012
12017
  return new Function("return ".concat(e))();
12013
12018
  }
12014
12019
  };
12015
- var ps = Ls;
12020
+ var gs = Os;
12016
12021
  function x(n) {
12017
12022
  return function (e, t) {
12018
12023
  Object.defineProperty(e, t, {});
12019
12024
  var i = e.constructor,
12020
12025
  s = t.toLocaleLowerCase();
12021
- i._attributes_[s] = ps.attibutes[n], i._attributeToProperty_[s] = t;
12026
+ i._attributes_[s] = gs.attibutes[n], i._attributeToProperty_[s] = t;
12022
12027
  };
12023
12028
  }
12024
- var Ii = /*#__PURE__*/function () {
12025
- function Ii(e, t, i) {
12026
- _classCallCheck(this, Ii);
12029
+ var Oi = /*#__PURE__*/function () {
12030
+ function Oi(e, t, i) {
12031
+ _classCallCheck(this, Oi);
12027
12032
  this._isDisplayed = !1, e ? (this._elementRef = this.createIntroPanelWithChild(e, i), this._isDisplayed = !0) : t && (this._elementRef = this.createInternalIntroPanel(t, i), this._isDisplayed = !0);
12028
12033
  }
12029
- return _createClass(Ii, [{
12034
+ return _createClass(Oi, [{
12030
12035
  key: "createIntroPanelWithChild",
12031
12036
  value: function createIntroPanelWithChild(e, t) {
12032
- var i = Ii.createIntroPanel(t);
12037
+ var i = Oi.createIntroPanel(t);
12033
12038
  return e.style.display === "none" && (e.style.display = "block"), i.appendChild(e), i;
12034
12039
  }
12035
12040
  }, {
12036
12041
  key: "createInternalIntroPanel",
12037
12042
  value: function createInternalIntroPanel(e, t) {
12038
- var i = Ii.createIntroPanel(t);
12043
+ var i = Oi.createIntroPanel(t);
12039
12044
  return i.id = "internal-intro-panel", i.innerHTML = e, i;
12040
12045
  }
12041
12046
  }, {
@@ -12056,7 +12061,7 @@ var Ii = /*#__PURE__*/function () {
12056
12061
  }
12057
12062
  }]);
12058
12063
  }();
12059
- var ta = "<?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>",
12064
+ var sa = "<?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>",
12060
12065
  W = /*#__PURE__*/function () {
12061
12066
  function W() {
12062
12067
  _classCallCheck(this, W);
@@ -12101,7 +12106,7 @@ var ta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
12101
12106
  t.classList.add("any-file-message-contents");
12102
12107
  var i = document.createElement("div");
12103
12108
  i.classList.add("any-file-message-icon-container");
12104
- var s = Ue.createSVGElement(ta);
12109
+ var s = Ue.createSVGElement(sa);
12105
12110
  s.classList.add("any-file-message-icon"), i.appendChild(s);
12106
12111
  var r = document.createElement("div");
12107
12112
  return r.classList.add("any-file-message-text"), r.textContent = e.name || H.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), H.processContent("any", t, e.src, r.textContent);
@@ -12137,7 +12142,7 @@ var ta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
12137
12142
  }]);
12138
12143
  }();
12139
12144
  W.IMAGE_BUBBLE_CLASS = "image-message", W.AUDIO_BUBBLE_CLASS = "audio-message", W.ANY_FILE_BUBBLE_CLASS = "any-file-message";
12140
- var Oi = W;
12145
+ var Pi = W;
12141
12146
  var le = /*#__PURE__*/function () {
12142
12147
  function le() {
12143
12148
  _classCallCheck(this, le);
@@ -12187,7 +12192,7 @@ var le = /*#__PURE__*/function () {
12187
12192
  value: function updateFileMessages(e, t, i) {
12188
12193
  var u, h;
12189
12194
  var s = t[0].role,
12190
- r = Oi.createMessages(e, i, s),
12195
+ r = Pi.createMessages(e, i, s),
12191
12196
  o = t[1].html,
12192
12197
  a = ((h = t[1].files) == null ? void 0 : h[((u = t[1].files) == null ? void 0 : u.length) - 1]) || t[1].text,
12193
12198
  l = o || a;
@@ -12243,11 +12248,11 @@ var le = /*#__PURE__*/function () {
12243
12248
  }
12244
12249
  }]);
12245
12250
  }();
12246
- var ia = /*#__PURE__*/function () {
12247
- function ia() {
12248
- _classCallCheck(this, ia);
12251
+ var na = /*#__PURE__*/function () {
12252
+ function na() {
12253
+ _classCallCheck(this, na);
12249
12254
  }
12250
- return _createClass(ia, null, [{
12255
+ return _createClass(na, null, [{
12251
12256
  key: "getText",
12252
12257
  value: function getText(e, t) {
12253
12258
  var i;
@@ -12309,7 +12314,7 @@ var de = /*#__PURE__*/function (_he) {
12309
12314
  }, {
12310
12315
  key: "addSetupMessageIfNeeded",
12311
12316
  value: function addSetupMessageIfNeeded(e, t) {
12312
- var i = ia.getText(e, t);
12317
+ var i = na.getText(e, t);
12313
12318
  if (i) {
12314
12319
  var s = this.createAndAppendNewMessageElement(i, y.AI_ROLE);
12315
12320
  this.applyCustomStyles(s, y.AI_ROLE, !1);
@@ -12364,7 +12369,7 @@ var de = /*#__PURE__*/function (_he) {
12364
12369
  key: "tryAddFileMessages",
12365
12370
  value: function tryAddFileMessages(e) {
12366
12371
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
12367
- e.files && Array.isArray(e.files) && Oi.addMessages(this, e.files, e.role, t);
12372
+ e.files && Array.isArray(e.files) && Pi.addMessages(this, e.files, e.role, t);
12368
12373
  }
12369
12374
  }, {
12370
12375
  key: "tryAddHTMLMessage",
@@ -12477,7 +12482,7 @@ var de = /*#__PURE__*/function (_he) {
12477
12482
  }, {
12478
12483
  key: "populateIntroPanel",
12479
12484
  value: function populateIntroPanel(e, t, i) {
12480
- (e || t) && (this._introPanel = new Ii(e, t, i), this._introPanel._elementRef && (X.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
12485
+ (e || t) && (this._introPanel = new Oi(e, t, i), this._introPanel._elementRef && (X.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
12481
12486
  }
12482
12487
  }, {
12483
12488
  key: "addMultipleFiles",
@@ -12598,7 +12603,7 @@ var j = /*#__PURE__*/function () {
12598
12603
  }]);
12599
12604
  }();
12600
12605
  j.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", j.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", j.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", j.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
12601
- var ms = j;
12606
+ var bs = j;
12602
12607
  var yt = /*#__PURE__*/function () {
12603
12608
  function yt() {
12604
12609
  _classCallCheck(this, yt);
@@ -12632,8 +12637,8 @@ var yt = /*#__PURE__*/function () {
12632
12637
  }
12633
12638
  }]);
12634
12639
  }();
12635
- var Js = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
12636
- sa = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 22 22\" fill=\"none\">\n <rect x=\"2.5\" y=\"2.5\" width=\"17\" height=\"17\" rx=\"2\" stroke=\"#000000\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n",
12640
+ var Ys = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
12641
+ ra = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 22 22\" fill=\"none\">\n <rect x=\"2.5\" y=\"2.5\" width=\"17\" height=\"17\" rx=\"2\" stroke=\"#000000\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n",
12637
12642
  Q = /*#__PURE__*/function () {
12638
12643
  function Q() {
12639
12644
  _classCallCheck(this, Q);
@@ -12698,7 +12703,7 @@ var O = /*#__PURE__*/function (_ct2) {
12698
12703
  _classCallCheck(this, O);
12699
12704
  var a, l, c, d, u, h;
12700
12705
  var r = ((d = (c = (l = (a = e == null ? void 0 : e.styles) == null ? void 0 : a.button) == null ? void 0 : l["default"]) == null ? void 0 : c.text) == null ? void 0 : d.content) || "Custom ".concat(t),
12701
- o = sa;
12706
+ o = ra;
12702
12707
  _this61 = _callSuper(this, O, [O.createButtonElement(), o, e == null ? void 0 : e.position, (u = e == null ? void 0 : e.styles) == null ? void 0 : u.button, r]), _this61._state = "default", _this61.isCustom = !0, _this61._innerElements = _this61.createInnerElementsForStates(_this61.customStyles), _this61._menuStyles = s, _this61._onClick = e.onClick, _this61._dropupStyles = (h = e.styles) == null ? void 0 : h.dropup, _this61.setSetState(e), _this61.addClickListener(i), _this61.changeState(e.initialState, !0);
12703
12708
  return _this61;
12704
12709
  }
@@ -12839,7 +12844,7 @@ var O = /*#__PURE__*/function (_ct2) {
12839
12844
  }(ct);
12840
12845
  O.INDICATOR_PREFIX = "custom", O.BUTTON_CLASS = "custom-button", O.DISABLED_CONTAINER_CLASS = "custom-button-container-disabled", O.DEFAULT_CONTAINER_CLASS = "custom-button-container-default", O.ACTIVE_CONTAINER_CLASS = "custom-button-container-active";
12841
12846
  var st = O;
12842
- var na = "<?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>";
12847
+ var oa = "<?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>";
12843
12848
  var ni = /*#__PURE__*/function () {
12844
12849
  function ni() {
12845
12850
  _classCallCheck(this, ni);
@@ -12861,16 +12866,16 @@ var ni = /*#__PURE__*/function () {
12861
12866
  }
12862
12867
  }]);
12863
12868
  }();
12864
- var As = /*#__PURE__*/function () {
12865
- function As(e, t) {
12869
+ var Cs = /*#__PURE__*/function () {
12870
+ function Cs(e, t) {
12866
12871
  var _this64 = this;
12867
- _classCallCheck(this, As);
12872
+ _classCallCheck(this, Cs);
12868
12873
  var i;
12869
- this._isOpen = !0, this._styles = t, this.elementRef = As.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function () {
12874
+ this._isOpen = !0, this._styles = t, this.elementRef = Cs.createElement((i = this._styles) == null ? void 0 : i.container), this.close(), setTimeout(function () {
12870
12875
  return _this64.addWindowEvents(e);
12871
12876
  });
12872
12877
  }
12873
- return _createClass(As, [{
12878
+ return _createClass(Cs, [{
12874
12879
  key: "open",
12875
12880
  value: function open() {
12876
12881
  this.elementRef.style.display = "block", this._isOpen = !0;
@@ -12923,11 +12928,11 @@ var et = /*#__PURE__*/function (_ct3) {
12923
12928
  var _this65;
12924
12929
  _classCallCheck(this, et);
12925
12930
  var s;
12926
- _this65 = _callSuper(this, et, [et.createButtonElement(), na, void 0, {
12931
+ _this65 = _callSuper(this, et, [et.createButtonElement(), oa, void 0, {
12927
12932
  styles: (s = t == null ? void 0 : t.button) == null ? void 0 : s.styles
12928
12933
  }]);
12929
12934
  var i = _this65.createInnerElementsForStates(_this65.customStyles);
12930
- _this65._menu = new As(e, t == null ? void 0 : t.menu), _this65.addClickEvent(), _this65.buttonContainer = et.createButtonContainer(), _this65.changeElementsByState(i.styles), _this65.buttonContainer.appendChild(_this65.elementRef), _this65.elementRef.classList.add(et.BUTTON_ICON_CLASS), _this65.buttonContainer.appendChild(_this65._menu.elementRef), _this65.reapplyStateStyle("styles"), _this65.addContainerEvents(e);
12935
+ _this65._menu = new Cs(e, t == null ? void 0 : t.menu), _this65.addClickEvent(), _this65.buttonContainer = et.createButtonContainer(), _this65.changeElementsByState(i.styles), _this65.buttonContainer.appendChild(_this65.elementRef), _this65.elementRef.classList.add(et.BUTTON_ICON_CLASS), _this65.buttonContainer.appendChild(_this65._menu.elementRef), _this65.reapplyStateStyle("styles"), _this65.addContainerEvents(e);
12931
12936
  return _this65;
12932
12937
  }
12933
12938
  _inherits(et, _ct3);
@@ -12978,7 +12983,7 @@ var et = /*#__PURE__*/function (_ct3) {
12978
12983
  }]);
12979
12984
  }(ct);
12980
12985
  et.BUTTON_ICON_CLASS = "dropup-button";
12981
- var Pi = et;
12986
+ var Ni = et;
12982
12987
  var $ = /*#__PURE__*/function () {
12983
12988
  function $() {
12984
12989
  _classCallCheck(this, $);
@@ -12988,8 +12993,8 @@ var $ = /*#__PURE__*/function () {
12988
12993
  value:
12989
12994
  // prettier-ignore
12990
12995
  function addToDropup(e, t, i, s) {
12991
- var r = new Pi(i, s);
12992
- Js.forEach(function (a) {
12996
+ var r = new Ni(i, s);
12997
+ Ys.forEach(function (a) {
12993
12998
  var l = t["dropup-menu"].findIndex(function (d) {
12994
12999
  return d.buttonType === a;
12995
13000
  }),
@@ -12999,7 +13004,7 @@ var $ = /*#__PURE__*/function () {
12999
13004
  var a = _ref38.button;
13000
13005
  return r.addItem(a);
13001
13006
  });
13002
- var o = Pi.getPosition(t, s);
13007
+ var o = Ni.getPosition(t, s);
13003
13008
  yt.addButton(e, r.buttonContainer, o), t[o].push({});
13004
13009
  }
13005
13010
  }, {
@@ -13042,7 +13047,7 @@ var $ = /*#__PURE__*/function () {
13042
13047
  r && $.setPosition(e, s, t[r]);
13043
13048
  }), t["inside-right"].length === 0 && e.submit && $.setPosition(e, "submit", t["inside-right"]), t["outside-right"].length === 0 && (e.submit ? $.setPosition(e, "submit", t["outside-right"]) : e.microphone ? $.setPosition(e, "microphone", t["outside-right"]) : e.camera ? $.setPosition(e, "camera", t["outside-right"]) : e["".concat(st.INDICATOR_PREFIX, "1")] && $.setPosition(e, "".concat(st.INDICATOR_PREFIX, "1"), t["outside-right"])), e.submit && $.setPosition(e, "submit", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]), e.microphone && $.setPosition(e, "microphone", t["outside-left"].length === 0 ? t["outside-left"] : t["inside-right"]);
13044
13049
  var i = Object.keys(e);
13045
- return i.length > 1 || t["dropup-menu"].length > 0 ? (Js.forEach(function (s) {
13050
+ return i.length > 1 || t["dropup-menu"].length > 0 ? (Ys.forEach(function (s) {
13046
13051
  e[s] && t["dropup-menu"].push(_objectSpread(_objectSpread({}, e[s]), {}, {
13047
13052
  buttonType: s
13048
13053
  }));
@@ -13062,41 +13067,41 @@ var $ = /*#__PURE__*/function () {
13062
13067
  }
13063
13068
  }]);
13064
13069
  }();
13065
- var ra = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>",
13066
- oa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z\"/>\n</svg>\n",
13067
- aa = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"-49.49 -49.49 593.87 593.87\" stroke-width=\"3.95908\" transform=\"rotate(0)\">\n <g stroke-width=\"0\"></g>\n <g stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.98977\"></g>\n <g>\n <g>\n <g>\n <path d=\"M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z\">\n </path>\n </g>\n </g>\n </g>\n</svg>",
13068
- la = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 5.9266752 5.6408391\" height=\"21.31971\" width=\"22.4\">\n <g>\n <path d=\"m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z\"/>\n <path d=\"m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z\"/>\n </g>\n</svg>\n",
13069
- ca = {
13070
+ var aa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>",
13071
+ la = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z\"/>\n</svg>\n",
13072
+ ca = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"-49.49 -49.49 593.87 593.87\" stroke-width=\"3.95908\" transform=\"rotate(0)\">\n <g stroke-width=\"0\"></g>\n <g stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.98977\"></g>\n <g>\n <g>\n <g>\n <path d=\"M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z\">\n </path>\n </g>\n </g>\n </g>\n</svg>",
13073
+ da = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 5.9266752 5.6408391\" height=\"21.31971\" width=\"22.4\">\n <g>\n <path d=\"m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z\"/>\n <path d=\"m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z\"/>\n </g>\n</svg>\n",
13074
+ ha = {
13070
13075
  images: {
13071
13076
  id: "upload-images-icon",
13072
- svgString: oa,
13077
+ svgString: la,
13073
13078
  dropupText: "Image"
13074
13079
  },
13075
13080
  gifs: {
13076
13081
  id: "upload-gifs-icon",
13077
- svgString: la,
13082
+ svgString: da,
13078
13083
  dropupText: "GIF"
13079
13084
  },
13080
13085
  audio: {
13081
13086
  id: "upload-audio-icon",
13082
- svgString: aa,
13087
+ svgString: ca,
13083
13088
  dropupText: "Audio"
13084
13089
  },
13085
13090
  mixedFiles: {
13086
13091
  id: "upload-mixed-files-icon",
13087
- svgString: ra,
13092
+ svgString: aa,
13088
13093
  dropupText: "File"
13089
13094
  }
13090
13095
  };
13091
- var Hi = /*#__PURE__*/function (_ct4) {
13092
- function Hi(e) {
13096
+ var Gi = /*#__PURE__*/function (_ct4) {
13097
+ function Gi(e) {
13093
13098
  var _this67;
13094
- _classCallCheck(this, Hi);
13095
- (e == null ? void 0 : e.position) === "dropup-menu" && (e.position = "outside-right"), _this67 = _callSuper(this, Hi, [Hi.createMicrophoneElement(), Ln, e == null ? void 0 : e.position, e]), _this67.isActive = !1, _this67._innerElements = _this67.createInnerElementsForStates(_this67.customStyles), _this67.changeToDefault();
13099
+ _classCallCheck(this, Gi);
13100
+ (e == null ? void 0 : e.position) === "dropup-menu" && (e.position = "outside-right"), _this67 = _callSuper(this, Gi, [Gi.createMicrophoneElement(), On, e == null ? void 0 : e.position, e]), _this67.isActive = !1, _this67._innerElements = _this67.createInnerElementsForStates(_this67.customStyles), _this67.changeToDefault();
13096
13101
  return _this67;
13097
13102
  }
13098
- _inherits(Hi, _ct4);
13099
- return _createClass(Hi, [{
13103
+ _inherits(Gi, _ct4);
13104
+ return _createClass(Gi, [{
13100
13105
  key: "createInnerElementsForStates",
13101
13106
  value: function createInnerElementsForStates(e) {
13102
13107
  var t = "microphone-icon";
@@ -13151,7 +13156,7 @@ var Hi = /*#__PURE__*/function (_ct4) {
13151
13156
  }
13152
13157
  }]);
13153
13158
  }(ct);
13154
- function da(n) {
13159
+ function ua(n) {
13155
13160
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n["default"] : n;
13156
13161
  }
13157
13162
  var pi = {},
@@ -13159,10 +13164,10 @@ var pi = {},
13159
13164
  St = {},
13160
13165
  _t = {},
13161
13166
  xt = {},
13162
- Xs;
13163
- function zi() {
13164
- if (Xs) return xt;
13165
- Xs = 1, Object.defineProperty(xt, "__esModule", {
13167
+ Zs;
13168
+ function Vi() {
13169
+ if (Zs) return xt;
13170
+ Zs = 1, Object.defineProperty(xt, "__esModule", {
13166
13171
  value: !0
13167
13172
  }), xt.Text = void 0;
13168
13173
  var n = /*#__PURE__*/function () {
@@ -13195,13 +13200,13 @@ function zi() {
13195
13200
  }();
13196
13201
  return xt.Text = n, n.FIRST_CHAR_REGEX = /\S/, n.DOUBLE_LINE = /\n\n/g, n.ONE_LINE = /\n/g, xt;
13197
13202
  }
13198
- var Ys;
13199
- function Pn() {
13200
- if (Ys) return _t;
13201
- Ys = 1, Object.defineProperty(_t, "__esModule", {
13203
+ var Qs;
13204
+ function Dn() {
13205
+ if (Qs) return _t;
13206
+ Qs = 1, Object.defineProperty(_t, "__esModule", {
13202
13207
  value: !0
13203
13208
  }), _t.Translate = void 0;
13204
- var n = zi();
13209
+ var n = Vi();
13205
13210
  var e = /*#__PURE__*/function () {
13206
13211
  function e() {
13207
13212
  _classCallCheck(this, e);
@@ -13217,13 +13222,13 @@ function Pn() {
13217
13222
  }();
13218
13223
  return _t.Translate = e, _t;
13219
13224
  }
13220
- var Zs;
13221
- function ha() {
13222
- if (Zs) return St;
13223
- Zs = 1, Object.defineProperty(St, "__esModule", {
13225
+ var en;
13226
+ function fa() {
13227
+ if (en) return St;
13228
+ en = 1, Object.defineProperty(St, "__esModule", {
13224
13229
  value: !0
13225
13230
  }), St.WebSpeechTranscript = void 0;
13226
- var n = Pn();
13231
+ var n = Dn();
13227
13232
  var e = /*#__PURE__*/function () {
13228
13233
  function e() {
13229
13234
  _classCallCheck(this, e);
@@ -13262,10 +13267,10 @@ function ha() {
13262
13267
  return St.WebSpeechTranscript = e, St;
13263
13268
  }
13264
13269
  var wt = {},
13265
- Qs;
13266
- function Ts() {
13267
- if (Qs) return wt;
13268
- Qs = 1, Object.defineProperty(wt, "__esModule", {
13270
+ tn;
13271
+ function Rs() {
13272
+ if (tn) return wt;
13273
+ tn = 1, Object.defineProperty(wt, "__esModule", {
13269
13274
  value: !0
13270
13275
  }), wt.Browser = void 0;
13271
13276
  var n = /*#__PURE__*/_createClass(function n() {
@@ -13277,10 +13282,10 @@ function Ts() {
13277
13282
  }
13278
13283
  var At = {},
13279
13284
  Tt = {},
13280
- en;
13281
- function ua() {
13282
- if (en) return Tt;
13283
- en = 1, Object.defineProperty(Tt, "__esModule", {
13285
+ sn;
13286
+ function pa() {
13287
+ if (sn) return Tt;
13288
+ sn = 1, Object.defineProperty(Tt, "__esModule", {
13284
13289
  value: !0
13285
13290
  }), Tt.EventListeners = void 0;
13286
13291
  var n = /*#__PURE__*/function () {
@@ -13328,10 +13333,10 @@ function ua() {
13328
13333
  return Tt.EventListeners = n, n.KEY_DOWN_TIMEOUT = null, Tt;
13329
13334
  }
13330
13335
  var Ct = {},
13331
- tn;
13332
- function fa() {
13333
- if (tn) return Ct;
13334
- tn = 1, Object.defineProperty(Ct, "__esModule", {
13336
+ nn;
13337
+ function ma() {
13338
+ if (nn) return Ct;
13339
+ nn = 1, Object.defineProperty(Ct, "__esModule", {
13335
13340
  value: !0
13336
13341
  }), Ct.PreResultUtils = void 0;
13337
13342
  var n = /*#__PURE__*/function () {
@@ -13352,10 +13357,10 @@ function fa() {
13352
13357
  }
13353
13358
  var Rt = {},
13354
13359
  Mt = {},
13355
- sn;
13356
- function Nn() {
13357
- if (sn) return Mt;
13358
- sn = 1, Object.defineProperty(Mt, "__esModule", {
13360
+ rn;
13361
+ function Bn() {
13362
+ if (rn) return Mt;
13363
+ rn = 1, Object.defineProperty(Mt, "__esModule", {
13359
13364
  value: !0
13360
13365
  }), Mt.AutoScroll = void 0;
13361
13366
  var n = /*#__PURE__*/function () {
@@ -13396,10 +13401,10 @@ function Nn() {
13396
13401
  return Mt.AutoScroll = n, Mt;
13397
13402
  }
13398
13403
  var kt = {},
13399
- nn;
13400
- function Gi() {
13401
- if (nn) return kt;
13402
- nn = 1, Object.defineProperty(kt, "__esModule", {
13404
+ on;
13405
+ function Ki() {
13406
+ if (on) return kt;
13407
+ on = 1, Object.defineProperty(kt, "__esModule", {
13403
13408
  value: !0
13404
13409
  }), kt.Elements = void 0;
13405
13410
  var n = /*#__PURE__*/function () {
@@ -13451,10 +13456,10 @@ function Gi() {
13451
13456
  return kt.Elements = n, kt;
13452
13457
  }
13453
13458
  var Lt = {},
13454
- rn;
13455
- function Vi() {
13456
- if (rn) return Lt;
13457
- rn = 1, Object.defineProperty(Lt, "__esModule", {
13459
+ an;
13460
+ function $i() {
13461
+ if (an) return Lt;
13462
+ an = 1, Object.defineProperty(Lt, "__esModule", {
13458
13463
  value: !0
13459
13464
  }), Lt.Cursor = void 0;
13460
13465
  var n = /*#__PURE__*/function () {
@@ -13539,17 +13544,17 @@ function Vi() {
13539
13544
  }();
13540
13545
  return Lt.Cursor = n, Lt;
13541
13546
  }
13542
- var on;
13543
- function Dn() {
13544
- if (on) return Rt;
13545
- on = 1, Object.defineProperty(Rt, "__esModule", {
13547
+ var ln;
13548
+ function Fn() {
13549
+ if (ln) return Rt;
13550
+ ln = 1, Object.defineProperty(Rt, "__esModule", {
13546
13551
  value: !0
13547
13552
  }), Rt.CommandUtils = void 0;
13548
- var n = Nn(),
13549
- e = Gi(),
13550
- t = Ts(),
13551
- i = Vi(),
13552
- s = zi();
13553
+ var n = Bn(),
13554
+ e = Ki(),
13555
+ t = Rs(),
13556
+ i = $i(),
13557
+ s = Vi();
13553
13558
  var r = /*#__PURE__*/function () {
13554
13559
  function r() {
13555
13560
  _classCallCheck(this, r);
@@ -13647,14 +13652,14 @@ function Dn() {
13647
13652
  return Rt.CommandUtils = r, Rt;
13648
13653
  }
13649
13654
  var It = {},
13650
- an;
13651
- function pa() {
13652
- if (an) return It;
13653
- an = 1, Object.defineProperty(It, "__esModule", {
13655
+ cn;
13656
+ function ga() {
13657
+ if (cn) return It;
13658
+ cn = 1, Object.defineProperty(It, "__esModule", {
13654
13659
  value: !0
13655
13660
  }), It.Highlight = void 0;
13656
- var n = Gi(),
13657
- e = Vi();
13661
+ var n = Ki(),
13662
+ e = $i();
13658
13663
  var t = /*#__PURE__*/function () {
13659
13664
  function t() {
13660
13665
  _classCallCheck(this, t);
@@ -13706,15 +13711,15 @@ function pa() {
13706
13711
  return It.Highlight = t, It;
13707
13712
  }
13708
13713
  var Ot = {},
13709
- ln;
13710
- function ma() {
13711
- if (ln) return Ot;
13712
- ln = 1, Object.defineProperty(Ot, "__esModule", {
13714
+ dn;
13715
+ function ba() {
13716
+ if (dn) return Ot;
13717
+ dn = 1, Object.defineProperty(Ot, "__esModule", {
13713
13718
  value: !0
13714
13719
  }), Ot.Padding = void 0;
13715
- var n = Gi(),
13716
- e = Vi(),
13717
- t = zi();
13720
+ var n = Ki(),
13721
+ e = $i(),
13722
+ t = Vi();
13718
13723
  var i = /*#__PURE__*/function () {
13719
13724
  function i() {
13720
13725
  _classCallCheck(this, i);
@@ -13774,22 +13779,22 @@ function ma() {
13774
13779
  }();
13775
13780
  return Ot.Padding = i, Ot;
13776
13781
  }
13777
- var cn;
13778
- function Bn() {
13779
- if (cn) return At;
13780
- cn = 1, Object.defineProperty(At, "__esModule", {
13782
+ var hn;
13783
+ function Un() {
13784
+ if (hn) return At;
13785
+ hn = 1, Object.defineProperty(At, "__esModule", {
13781
13786
  value: !0
13782
13787
  }), At.Speech = void 0;
13783
- var n = ua(),
13784
- e = fa(),
13785
- t = Dn(),
13786
- i = Nn(),
13787
- s = pa(),
13788
- r = Gi(),
13789
- o = ma(),
13790
- a = Ts(),
13791
- l = Vi(),
13792
- c = zi();
13788
+ var n = pa(),
13789
+ e = ma(),
13790
+ t = Fn(),
13791
+ i = Bn(),
13792
+ s = ga(),
13793
+ r = Ki(),
13794
+ o = ba(),
13795
+ a = Rs(),
13796
+ l = $i(),
13797
+ c = Vi();
13793
13798
  var d = /*#__PURE__*/function () {
13794
13799
  function d() {
13795
13800
  _classCallCheck(this, d);
@@ -13900,15 +13905,15 @@ function Bn() {
13900
13905
  }();
13901
13906
  return At.Speech = d, At;
13902
13907
  }
13903
- var dn;
13904
- function ga() {
13905
- if (dn) return Et;
13906
- dn = 1, Object.defineProperty(Et, "__esModule", {
13908
+ var un;
13909
+ function va() {
13910
+ if (un) return Et;
13911
+ un = 1, Object.defineProperty(Et, "__esModule", {
13907
13912
  value: !0
13908
13913
  }), Et.WebSpeech = void 0;
13909
- var n = ha(),
13910
- e = Ts(),
13911
- t = Bn();
13914
+ var n = fa(),
13915
+ e = Rs(),
13916
+ t = Un();
13912
13917
  var i = /*#__PURE__*/function (_t$Speech) {
13913
13918
  function i() {
13914
13919
  _classCallCheck(this, i);
@@ -13976,10 +13981,10 @@ function ga() {
13976
13981
  return Et.WebSpeech = i, Et;
13977
13982
  }
13978
13983
  var Pt = {},
13979
- hn;
13980
- function ba() {
13981
- if (hn) return Pt;
13982
- hn = 1, Object.defineProperty(Pt, "__esModule", {
13984
+ fn;
13985
+ function ya() {
13986
+ if (fn) return Pt;
13987
+ fn = 1, Object.defineProperty(Pt, "__esModule", {
13983
13988
  value: !0
13984
13989
  }), Pt.GlobalState = void 0;
13985
13990
  var n = /*#__PURE__*/function () {
@@ -13999,10 +14004,10 @@ function ba() {
13999
14004
  }
14000
14005
  var Nt = {},
14001
14006
  Dt = {},
14002
- un;
14003
- function va() {
14004
- if (un) return Dt;
14005
- un = 1, Object.defineProperty(Dt, "__esModule", {
14007
+ pn;
14008
+ function Ea() {
14009
+ if (pn) return Dt;
14010
+ pn = 1, Object.defineProperty(Dt, "__esModule", {
14006
14011
  value: !0
14007
14012
  }), Dt.PreventConnectionStop = void 0;
14008
14013
  var n = /*#__PURE__*/function () {
@@ -14027,19 +14032,19 @@ function va() {
14027
14032
  }
14028
14033
  var Bt = {},
14029
14034
  Ft = {},
14030
- fn;
14031
- function ya() {
14032
- return fn || (fn = 1, Object.defineProperty(Ft, "__esModule", {
14035
+ mn;
14036
+ function Sa() {
14037
+ return mn || (mn = 1, Object.defineProperty(Ft, "__esModule", {
14033
14038
  value: !0
14034
14039
  }), Ft.README_URL = void 0, Ft.README_URL = "https://github.com/OvidijusParsiunas/speech-to-element"), Ft;
14035
14040
  }
14036
- var pn;
14037
- function Ea() {
14038
- if (pn) return Bt;
14039
- pn = 1, Object.defineProperty(Bt, "__esModule", {
14041
+ var gn;
14042
+ function _a() {
14043
+ if (gn) return Bt;
14044
+ gn = 1, Object.defineProperty(Bt, "__esModule", {
14040
14045
  value: !0
14041
14046
  }), Bt.AzureSpeechConfig = void 0;
14042
- var n = ya();
14047
+ var n = Sa();
14043
14048
  var e = /*#__PURE__*/function () {
14044
14049
  function e() {
14045
14050
  _classCallCheck(this, e);
@@ -14110,10 +14115,10 @@ function Ea() {
14110
14115
  return Bt.AzureSpeechConfig = e, Bt;
14111
14116
  }
14112
14117
  var Ut = {},
14113
- mn;
14114
- function Sa() {
14115
- if (mn) return Ut;
14116
- mn = 1, Object.defineProperty(Ut, "__esModule", {
14118
+ bn;
14119
+ function xa() {
14120
+ if (bn) return Ut;
14121
+ bn = 1, Object.defineProperty(Ut, "__esModule", {
14117
14122
  value: !0
14118
14123
  }), Ut.StopTimeout = void 0;
14119
14124
  var n = /*#__PURE__*/function () {
@@ -14142,10 +14147,10 @@ function Sa() {
14142
14147
  return Ut.StopTimeout = n, n.DEFAULT_MS = 2e4, Ut;
14143
14148
  }
14144
14149
  var jt = {},
14145
- gn;
14146
- function _a() {
14147
- if (gn) return jt;
14148
- gn = 1, Object.defineProperty(jt, "__esModule", {
14150
+ vn;
14151
+ function wa() {
14152
+ if (vn) return jt;
14153
+ vn = 1, Object.defineProperty(jt, "__esModule", {
14149
14154
  value: !0
14150
14155
  }), jt.AzureAudioConfig = void 0;
14151
14156
  var n = /*#__PURE__*/function () {
@@ -14162,13 +14167,13 @@ function _a() {
14162
14167
  return jt.AzureAudioConfig = n, jt;
14163
14168
  }
14164
14169
  var qt = {},
14165
- bn;
14166
- function xa() {
14167
- if (bn) return qt;
14168
- bn = 1, Object.defineProperty(qt, "__esModule", {
14170
+ yn;
14171
+ function Aa() {
14172
+ if (yn) return qt;
14173
+ yn = 1, Object.defineProperty(qt, "__esModule", {
14169
14174
  value: !0
14170
14175
  }), qt.AzureTranscript = void 0;
14171
- var n = Pn();
14176
+ var n = Dn();
14172
14177
  var e = /*#__PURE__*/function () {
14173
14178
  function e() {
14174
14179
  _classCallCheck(this, e);
@@ -14192,18 +14197,18 @@ function xa() {
14192
14197
  }();
14193
14198
  return qt.AzureTranscript = e, qt;
14194
14199
  }
14195
- var vn;
14196
- function wa() {
14197
- if (vn) return Nt;
14198
- vn = 1, Object.defineProperty(Nt, "__esModule", {
14200
+ var En;
14201
+ function Ta() {
14202
+ if (En) return Nt;
14203
+ En = 1, Object.defineProperty(Nt, "__esModule", {
14199
14204
  value: !0
14200
14205
  }), Nt.Azure = void 0;
14201
- var n = va(),
14202
- e = Ea(),
14203
- t = Sa(),
14204
- i = _a(),
14205
- s = xa(),
14206
- r = Bn();
14206
+ var n = Ea(),
14207
+ e = _a(),
14208
+ t = xa(),
14209
+ i = wa(),
14210
+ s = Aa(),
14211
+ r = Un();
14207
14212
  var o = /*#__PURE__*/function (_r$Speech) {
14208
14213
  function o() {
14209
14214
  var _this70;
@@ -14370,16 +14375,16 @@ function wa() {
14370
14375
  }(r.Speech);
14371
14376
  return Nt.Azure = o, Nt;
14372
14377
  }
14373
- var yn;
14374
- function Aa() {
14375
- if (yn) return pi;
14376
- yn = 1, Object.defineProperty(pi, "__esModule", {
14378
+ var Sn;
14379
+ function Ca() {
14380
+ if (Sn) return pi;
14381
+ Sn = 1, Object.defineProperty(pi, "__esModule", {
14377
14382
  value: !0
14378
14383
  });
14379
- var n = ga(),
14380
- e = Dn(),
14381
- t = ba(),
14382
- i = wa();
14384
+ var n = va(),
14385
+ e = Fn(),
14386
+ t = ya(),
14387
+ i = Ta();
14383
14388
  var s = /*#__PURE__*/function () {
14384
14389
  function s() {
14385
14390
  _classCallCheck(this, s);
@@ -14422,14 +14427,14 @@ function Aa() {
14422
14427
  }();
14423
14428
  return pi["default"] = s, pi;
14424
14429
  }
14425
- var Ta = Aa();
14426
- var mi = /* @__PURE__ */da(Ta);
14427
- var Ca = /*#__PURE__*/function () {
14428
- function Ca(e, t) {
14429
- _classCallCheck(this, Ca);
14430
+ var Ra = Ca();
14431
+ var mi = /* @__PURE__ */ua(Ra);
14432
+ var Ma = /*#__PURE__*/function () {
14433
+ function Ma(e, t) {
14434
+ _classCallCheck(this, Ma);
14430
14435
  this._silenceMS = 2e3, this._stop = !0, typeof t == "boolean" && t === !1 && (this._stop = !1), typeof e == "number" && (this._silenceMS = e);
14431
14436
  }
14432
- return _createClass(Ca, [{
14437
+ return _createClass(Ma, [{
14433
14438
  key: "setSilenceTimeout",
14434
14439
  value: function setSilenceTimeout(e, t) {
14435
14440
  var _this72 = this;
@@ -14455,7 +14460,7 @@ var Ca = /*#__PURE__*/function () {
14455
14460
  }
14456
14461
  }]);
14457
14462
  }();
14458
- var Zt = /*#__PURE__*/function (_Hi) {
14463
+ var Zt = /*#__PURE__*/function (_Gi) {
14459
14464
  function Zt(e, t, i) {
14460
14465
  var _this73;
14461
14466
  _classCallCheck(this, Zt);
@@ -14474,7 +14479,7 @@ var Zt = /*#__PURE__*/function (_Hi) {
14474
14479
  return _this73;
14475
14480
  }
14476
14481
  // prettier-ignore
14477
- _inherits(Zt, _Hi);
14482
+ _inherits(Zt, _Gi);
14478
14483
  return _createClass(Zt, [{
14479
14484
  key: "processConfiguration",
14480
14485
  value: function processConfiguration(e, t) {
@@ -14499,7 +14504,7 @@ var Zt = /*#__PURE__*/function (_Hi) {
14499
14504
  restart: !0,
14500
14505
  removeNewText: !0
14501
14506
  }) : null;
14502
- }), i.submitAfterSilence && (this._silenceSubmit = new Ca(i.submitAfterSilence, i.stopAfterSubmit)), {
14507
+ }), i.submitAfterSilence && (this._silenceSubmit = new Ma(i.submitAfterSilence, i.stopAfterSubmit)), {
14503
14508
  serviceName: Zt.getServiceName(i),
14504
14509
  processedConfig: o
14505
14510
  };
@@ -14566,7 +14571,7 @@ var Zt = /*#__PURE__*/function (_Hi) {
14566
14571
  }, Zt.MICROPHONE_RESET_TIMEOUT_MS);
14567
14572
  }
14568
14573
  }]);
14569
- }(Hi);
14574
+ }(Gi);
14570
14575
  Zt.MICROPHONE_RESET_TIMEOUT_MS = 300;
14571
14576
  var ri = Zt;
14572
14577
  var Ne = /*#__PURE__*/function () {
@@ -14750,7 +14755,7 @@ var Oe = /*#__PURE__*/function (_Ne) {
14750
14755
  i.classList.add("audio-placeholder-text-3-digits");
14751
14756
  var s = document.createElement("div");
14752
14757
  s.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), s.appendChild(i);
14753
- var r = Ue.createSVGElement(os);
14758
+ var r = Ue.createSVGElement(ls);
14754
14759
  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;
14755
14760
  }
14756
14761
  }, {
@@ -14806,9 +14811,9 @@ var Oe = /*#__PURE__*/function (_Ne) {
14806
14811
  var i = e.parentElement ? G.cloneElement(e) : e,
14807
14812
  s = document.createElement("audio");
14808
14813
  s.src = t;
14809
- var r = Ue.createSVGElement(In);
14814
+ var r = Ue.createSVGElement(Pn);
14810
14815
  r.classList.add("attachment-icon", "play-icon");
14811
- var o = Ue.createSVGElement(os);
14816
+ var o = Ue.createSVGElement(ls);
14812
14817
  o.classList.add("attachment-icon", "stop-icon"), i.replaceChildren(r), s.onplay = function () {
14813
14818
  i.replaceChildren(o);
14814
14819
  }, s.onpause = function () {
@@ -14835,11 +14840,11 @@ var Oe = /*#__PURE__*/function (_Ne) {
14835
14840
  }(Ne);
14836
14841
  Oe.TIMER_LIMIT_S = 5999;
14837
14842
  var oi = Oe;
14838
- var Ra = /*#__PURE__*/function () {
14839
- function Ra() {
14840
- _classCallCheck(this, Ra);
14843
+ var ka = /*#__PURE__*/function () {
14844
+ function ka() {
14845
+ _classCallCheck(this, ka);
14841
14846
  }
14842
- return _createClass(Ra, null, [{
14847
+ return _createClass(ka, null, [{
14843
14848
  key: "create",
14844
14849
  value:
14845
14850
  // prettier-ignore
@@ -14859,7 +14864,7 @@ var di = /*#__PURE__*/function () {
14859
14864
  return _createClass(di, [{
14860
14865
  key: "addType",
14861
14866
  value: function addType(e, t, i) {
14862
- var s = Ra.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, i);
14867
+ var s = ka.create(e, t, this.toggleContainerDisplay.bind(this), this.elementRef, i);
14863
14868
  return this._fileAttachmentsTypes.push(s), s;
14864
14869
  }
14865
14870
  }, {
@@ -15073,21 +15078,21 @@ var ge = /*#__PURE__*/function () {
15073
15078
  }();
15074
15079
  ge.MODAL_CLOSE_TIMEOUT_MS = 190;
15075
15080
  var tt = ge;
15076
- var Ni = /*#__PURE__*/function (_ct5) {
15081
+ var Di = /*#__PURE__*/function (_ct5) {
15077
15082
  // prettier-ignore
15078
- function Ni(e, t, i, s, r, o) {
15083
+ function Di(e, t, i, s, r, o) {
15079
15084
  var _this83;
15080
- _classCallCheck(this, Ni);
15085
+ _classCallCheck(this, Di);
15081
15086
  var d, u, h, f, m, p, g, b, M;
15082
15087
  var a = (d = i == null ? void 0 : i.button) == null ? void 0 : d.position,
15083
15088
  l = ((f = (h = (u = i == null ? void 0 : i.button) == null ? void 0 : u.styles) == null ? void 0 : h.text) == null ? void 0 : f.content) || o;
15084
- _this83 = _callSuper(this, Ni, [Ni.createButtonElement(), r, a, i.button, l]);
15089
+ _this83 = _callSuper(this, Di, [Di.createButtonElement(), r, a, i.button, l]);
15085
15090
  var c = _this83.createInnerElementsForStates(s, _this83.customStyles);
15086
- _this83._inputElement = Ni.createInputElement((m = i == null ? void 0 : i.files) == null ? void 0 : m.acceptedFormats), _this83.addClickEvent(e, i), _this83.changeElementsByState(c.styles), _this83.reapplyStateStyle("styles"), _this83._fileAttachmentsType = t, _this83._openModalOnce = ((g = (p = i.files) == null ? void 0 : p.infoModal) == null ? void 0 : g.openModalOnce) === !1 || (M = (b = i.files) == null ? void 0 : b.infoModal) == null ? void 0 : M.openModalOnce;
15091
+ _this83._inputElement = Di.createInputElement((m = i == null ? void 0 : i.files) == null ? void 0 : m.acceptedFormats), _this83.addClickEvent(e, i), _this83.changeElementsByState(c.styles), _this83.reapplyStateStyle("styles"), _this83._fileAttachmentsType = t, _this83._openModalOnce = ((g = (p = i.files) == null ? void 0 : p.infoModal) == null ? void 0 : g.openModalOnce) === !1 || (M = (b = i.files) == null ? void 0 : b.infoModal) == null ? void 0 : M.openModalOnce;
15087
15092
  return _this83;
15088
15093
  }
15089
- _inherits(Ni, _ct5);
15090
- return _createClass(Ni, [{
15094
+ _inherits(Di, _ct5);
15095
+ return _createClass(Di, [{
15091
15096
  key: "createInnerElementsForStates",
15092
15097
  value: function createInnerElementsForStates(e, t) {
15093
15098
  return {
@@ -15285,11 +15290,11 @@ var We = /*#__PURE__*/function () {
15285
15290
  }
15286
15291
  }]);
15287
15292
  }();
15288
- var Fn = /*#__PURE__*/function () {
15289
- function Fn() {
15290
- _classCallCheck(this, Fn);
15293
+ var jn = /*#__PURE__*/function () {
15294
+ function jn() {
15295
+ _classCallCheck(this, jn);
15291
15296
  }
15292
- return _createClass(Fn, null, [{
15297
+ return _createClass(jn, null, [{
15293
15298
  key: "getFileName",
15294
15299
  value: function getFileName(e, t) {
15295
15300
  var i = /* @__PURE__ */new Date(),
@@ -15300,16 +15305,16 @@ var Fn = /*#__PURE__*/function () {
15300
15305
  }
15301
15306
  }]);
15302
15307
  }();
15303
- var Ma = /*#__PURE__*/function (_Hi2) {
15304
- function Ma(e, t) {
15308
+ var La = /*#__PURE__*/function (_Gi2) {
15309
+ function La(e, t) {
15305
15310
  var _this84;
15306
- _classCallCheck(this, Ma);
15311
+ _classCallCheck(this, La);
15307
15312
  var i, s;
15308
- _this84 = _callSuper(this, Ma, [t.button]), _this84._waitingForBrowserApproval = !1, _this84._audioType = e, _this84._extension = ((i = t.files) == null ? void 0 : i.format) || "mp3", _this84._maxDurationSeconds = (s = t.files) == null ? void 0 : s.maxDurationSeconds, _this84.elementRef.onclick = _this84.buttonClick.bind(_assertThisInitialized(_this84));
15313
+ _this84 = _callSuper(this, La, [t.button]), _this84._waitingForBrowserApproval = !1, _this84._audioType = e, _this84._extension = ((i = t.files) == null ? void 0 : i.format) || "mp3", _this84._maxDurationSeconds = (s = t.files) == null ? void 0 : s.maxDurationSeconds, _this84.elementRef.onclick = _this84.buttonClick.bind(_assertThisInitialized(_this84));
15309
15314
  return _this84;
15310
15315
  }
15311
- _inherits(Ma, _Hi2);
15312
- return _createClass(Ma, [{
15316
+ _inherits(La, _Gi2);
15317
+ return _createClass(La, [{
15313
15318
  key: "buttonClick",
15314
15319
  value: function buttonClick() {
15315
15320
  this._waitingForBrowserApproval || (this.isActive ? this.stop() : (this._waitingForBrowserApproval = !0, this.record()));
@@ -15350,7 +15355,7 @@ var Ma = /*#__PURE__*/function (_Hi2) {
15350
15355
  var t = new Blob([e.data], {
15351
15356
  type: "audio/".concat(this._extension)
15352
15357
  }),
15353
- i = Fn.getFileName(this._newFilePrefix || "audio", this._extension),
15358
+ i = jn.getFileName(this._newFilePrefix || "audio", this._extension),
15354
15359
  s = new File([t], i, {
15355
15360
  type: t.type
15356
15361
  }),
@@ -15360,8 +15365,8 @@ var Ma = /*#__PURE__*/function (_Hi2) {
15360
15365
  };
15361
15366
  }
15362
15367
  }]);
15363
- }(Hi);
15364
- var ka = "<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\"currentColor\" fill=\"none\" stroke-width=\"1\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"14\"></line>\n <polygon points=\"22 2 15 22 11 14 2 10 22 2\"></polygon>\n</svg>\n";
15368
+ }(Gi);
15369
+ var Ia = "<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\"currentColor\" fill=\"none\" stroke-width=\"1\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"14\"></line>\n <polygon points=\"22 2 15 22 11 14 2 10 22 2\"></polygon>\n</svg>\n";
15365
15370
  var it = /*#__PURE__*/function () {
15366
15371
  function it() {
15367
15372
  _classCallCheck(this, it);
@@ -15398,7 +15403,7 @@ var P = /*#__PURE__*/function (_ct6) {
15398
15403
  var _this88;
15399
15404
  _classCallCheck(this, P);
15400
15405
  var a = it.process(e.submitButtonStyles),
15401
- l = ka;
15406
+ l = Ia;
15402
15407
  _this88 = _callSuper(this, P, [P.createButtonContainerElement(), l, a == null ? void 0 : a.position, a]), _this88._isSVGLoadingIconOverriden = !1, _this88.status = {
15403
15408
  requestInProgress: !1,
15404
15409
  loadingActive: !1
@@ -15703,32 +15708,32 @@ var P = /*#__PURE__*/function (_ct6) {
15703
15708
  }]);
15704
15709
  }(ct);
15705
15710
  P.SUBMIT_CLASS = "submit-button", P.LOADING_CLASS = "loading-button", P.DISABLED_CLASS = "disabled-button";
15706
- var gs = P;
15707
- var La = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z\"/>\n</svg>\n",
15708
- Ia = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z\"></path>\n</svg>\n",
15709
- Oa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z\"/>\n</svg>",
15710
- Pa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.89163 13.2687L9.16582 17.5427L18.7085 8\" stroke=\"#000000\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
15711
- var Cs = /*#__PURE__*/function (_tt) {
15711
+ var vs = P;
15712
+ var Oa = "<?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",
15713
+ Pa = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z\"></path>\n</svg>\n",
15714
+ Na = "<?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>",
15715
+ Da = "<?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>";
15716
+ var Ms = /*#__PURE__*/function (_tt) {
15712
15717
  // prettier-ignore
15713
- function Cs(e, t, i, s) {
15718
+ function Ms(e, t, i, s) {
15714
15719
  var _this92;
15715
- _classCallCheck(this, Cs);
15716
- _this92 = _callSuper(this, Cs, [e, ["modal-content", "modal-camera-content"], i]), _this92._stopped = !1, _this92._format = "image/png", _this92._canvas = document.createElement("canvas"), _this92._canvas.classList.add("camera-modal-canvas");
15720
+ _classCallCheck(this, Ms);
15721
+ _this92 = _callSuper(this, Ms, [e, ["modal-content", "modal-camera-content"], i]), _this92._stopped = !1, _this92._format = "image/png", _this92._canvas = document.createElement("canvas"), _this92._canvas.classList.add("camera-modal-canvas");
15717
15722
  var _this92$addButtonsAnd = _this92.addButtonsAndTheirEvents(t),
15718
15723
  r = _this92$addButtonsAnd.captureButton,
15719
15724
  o = _this92$addButtonsAnd.submitButton;
15720
- _this92._captureButton = r, _this92._submitButton = o, _this92._captureIcon = _this92._captureButton.children[0], _this92._refreshIcon = Ue.createSVGElement(La), _this92._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this92._format = "image/jpeg"), s != null && s.dimensions && (_this92._dimensions = s.dimensions), _this92._contentRef.appendChild(_this92._canvas), _this92.extensionCloseCallback = _this92.stop;
15725
+ _this92._captureButton = r, _this92._submitButton = o, _this92._captureIcon = _this92._captureButton.children[0], _this92._refreshIcon = Ue.createSVGElement(Oa), _this92._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this92._format = "image/jpeg"), s != null && s.dimensions && (_this92._dimensions = s.dimensions), _this92._contentRef.appendChild(_this92._canvas), _this92.extensionCloseCallback = _this92.stop;
15721
15726
  return _this92;
15722
15727
  }
15723
- _inherits(Cs, _tt);
15724
- return _createClass(Cs, [{
15728
+ _inherits(Ms, _tt);
15729
+ return _createClass(Ms, [{
15725
15730
  key: "addButtonsAndTheirEvents",
15726
15731
  value: function addButtonsAndTheirEvents(e) {
15727
- var t = tt.createSVGButton(Ia);
15732
+ var t = tt.createSVGButton(Pa);
15728
15733
  t.classList.add("modal-svg-camera-button"), t.children[0].classList.add("modal-svg-camera-icon");
15729
- var i = this.addCloseButton(Oa, !0);
15734
+ var i = this.addCloseButton(Na, !0);
15730
15735
  i.classList.add("modal-svg-close-button"), i.children[0].classList.add("modal-svg-close-icon");
15731
- var s = tt.createSVGButton(Pa);
15736
+ var s = tt.createSVGButton(Da);
15732
15737
  return s.classList.add("modal-svg-submit-button"), this.addButtons(t, s), this.addButtonEvents(t, i, s, e), {
15733
15738
  captureButton: t,
15734
15739
  submitButton: s
@@ -15789,7 +15794,7 @@ var Cs = /*#__PURE__*/function (_tt) {
15789
15794
  type: this._format
15790
15795
  }),
15791
15796
  r = this._format === "image/jpeg" ? "jpeg" : "png",
15792
- o = Fn.getFileName(this._newFilePrefix || "photo", r);
15797
+ o = jn.getFileName(this._newFilePrefix || "photo", r);
15793
15798
  return new File([s], o, {
15794
15799
  type: s.type
15795
15800
  });
@@ -15816,26 +15821,26 @@ var Cs = /*#__PURE__*/function (_tt) {
15816
15821
  }], [{
15817
15822
  key: "createCameraModalFunc",
15818
15823
  value: function createCameraModalFunc(e, t, i, s) {
15819
- var r = new Cs(e, t, i, s);
15824
+ var r = new Ms(e, t, i, s);
15820
15825
  return r.openCameraModal.bind(r, r);
15821
15826
  }
15822
15827
  }]);
15823
15828
  }(tt);
15824
- var Na = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z\"></path>\n</svg>";
15825
- var Rs = /*#__PURE__*/function (_ct7) {
15826
- function Rs(e, t, i) {
15829
+ var 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 <path d=\"M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z\"></path>\n</svg>";
15830
+ var ks = /*#__PURE__*/function (_ct7) {
15831
+ function ks(e, t, i) {
15827
15832
  var _this96;
15828
- _classCallCheck(this, Rs);
15833
+ _classCallCheck(this, ks);
15829
15834
  var a, l, c, d;
15830
15835
  var s = (a = i == null ? void 0 : i.button) == null ? void 0 : a.position,
15831
15836
  r = ((d = (c = (l = i == null ? void 0 : i.button) == null ? void 0 : l.styles) == null ? void 0 : c.text) == null ? void 0 : d.content) || "Photo";
15832
- _this96 = _callSuper(this, Rs, [Rs.createButtonElement(), Na, s, (i == null ? void 0 : i.button) || {}, r]);
15837
+ _this96 = _callSuper(this, ks, [ks.createButtonElement(), Ba, s, (i == null ? void 0 : i.button) || {}, r]);
15833
15838
  var o = _this96.createInnerElementsForStates(_this96.customStyles);
15834
15839
  i && _this96.addClickEvent(e, t, i.modalContainerStyle, i.files), _this96.changeElementsByState(o.styles), _this96.reapplyStateStyle("styles");
15835
15840
  return _this96;
15836
15841
  }
15837
- _inherits(Rs, _ct7);
15838
- return _createClass(Rs, [{
15842
+ _inherits(ks, _ct7);
15843
+ return _createClass(ks, [{
15839
15844
  key: "createInnerElementsForStates",
15840
15845
  value: function createInnerElementsForStates(e) {
15841
15846
  return {
@@ -15847,7 +15852,7 @@ var Rs = /*#__PURE__*/function (_ct7) {
15847
15852
  value:
15848
15853
  // prettier-ignore
15849
15854
  function addClickEvent(e, t, i, s) {
15850
- var r = Cs.createCameraModalFunc(e, t, i, s);
15855
+ var r = Ms.createCameraModalFunc(e, t, i, s);
15851
15856
  this.elementRef.onclick = r;
15852
15857
  }
15853
15858
  }], [{
@@ -15868,7 +15873,7 @@ var Kt = /*#__PURE__*/function () {
15868
15873
  e.speechToText && !r.microphone && (r.microphone = {
15869
15874
  button: new ri(e, a, t.addNewErrorMessage.bind(t))
15870
15875
  });
15871
- var l = new gs(e, a, t, i, o, r);
15876
+ var l = new vs(e, a, t, i, o, r);
15872
15877
  a.submit = l.submitFromInput.bind(l), We.attach(e, i, a, o, l), e.submitUserMessage = l.programmaticSubmit.bind(l), r.submit = {
15873
15878
  button: l
15874
15879
  }, e.customButtons && st.add(e, r), Kt.addElements(this.elementRef, a, r, s, o, e.dropupStyles);
@@ -15883,13 +15888,13 @@ var Kt = /*#__PURE__*/function () {
15883
15888
  if (Kt.createUploadButtons(e, t.fileTypes || {}, r, i, s), (o = t.camera) != null && o.files) {
15884
15889
  var d = ((a = s.images) == null ? void 0 : a.fileType) || r.addType(e, t.camera.files, "images");
15885
15890
  s.camera = {
15886
- button: new Rs(i, d, t.camera)
15891
+ button: new ks(i, d, t.camera)
15887
15892
  };
15888
15893
  }
15889
15894
  if ((l = t.recordAudio) != null && l.files) {
15890
15895
  var _d = ((c = s.audio) == null ? void 0 : c.fileType) || r.addType(e, t.recordAudio.files, "audio");
15891
15896
  s.microphone = {
15892
- button: new Ma(_d, t.recordAudio)
15897
+ button: new La(_d, t.recordAudio)
15893
15898
  };
15894
15899
  }
15895
15900
  return Pe.isEnabled(r, e.dragAndDrop) && Pe.create(i, r, e.dragAndDrop), r;
@@ -15909,11 +15914,11 @@ var Kt = /*#__PURE__*/function () {
15909
15914
  l = t[a];
15910
15915
  if (l.files) {
15911
15916
  var c = i.addType(e, l.files, a),
15912
- _ca$a = ca[a],
15913
- d = _ca$a.id,
15914
- u = _ca$a.svgString,
15915
- h = _ca$a.dropupText,
15916
- f = new Ni(s, c, l, d, u, h);
15917
+ _ha$a = ha[a],
15918
+ d = _ha$a.id,
15919
+ u = _ha$a.svgString,
15920
+ h = _ha$a.dropupText,
15921
+ f = new Di(s, c, l, d, u, h);
15917
15922
  r[a] = {
15918
15923
  button: f,
15919
15924
  fileType: c
@@ -15928,15 +15933,15 @@ var Kt = /*#__PURE__*/function () {
15928
15933
  G.addElements(e, t.elementRef);
15929
15934
  var a = yt.create(),
15930
15935
  l = $.addButtons(a, i, s, o);
15931
- ms.set(t.inputElementRef, a, r.elementRef, l), yt.add(e, a);
15936
+ bs.set(t.inputElementRef, a, r.elementRef, l), yt.add(e, a);
15932
15937
  }
15933
15938
  }]);
15934
15939
  }();
15935
- var Ms = /*#__PURE__*/function () {
15936
- function Ms() {
15937
- _classCallCheck(this, Ms);
15940
+ var Ls = /*#__PURE__*/function () {
15941
+ function Ls() {
15942
+ _classCallCheck(this, Ls);
15938
15943
  }
15939
- return _createClass(Ms, null, [{
15944
+ return _createClass(Ls, null, [{
15940
15945
  key: "createElements",
15941
15946
  value: function createElements(e, t, i) {
15942
15947
  var s = document.createElement("div");
@@ -15949,18 +15954,18 @@ var Ms = /*#__PURE__*/function () {
15949
15954
  }, {
15950
15955
  key: "render",
15951
15956
  value: function render(e, t, i, s) {
15952
- var r = Ms.createElements(e, i, s);
15957
+ var r = Ls.createElements(e, i, s);
15953
15958
  t.replaceChildren(r), i.isCustomView() && i.setUpView(r, t);
15954
15959
  }
15955
15960
  }]);
15956
15961
  }();
15957
- var Da = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#loading-validate-key-property{display:inline-block;width:50px;height:50px}#loading-validate-key-property:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:loading-spinner 1.4s linear infinite}#deep-chat-openai-realtime-container{height:100%;width:100%}#deep-chat-openai-realtime-avatar-container{height:60%;width:100%;display:flex;justify-content:center;align-items:center}#deep-chat-openai-realtime-avatar{border-radius:50%;height:110px;border:1px solid rgb(215,215,215);padding:8px;-webkit-user-select:none;user-select:none;margin-top:20px}#deep-chat-openai-realtime-buttons-container{height:40%;display:flex;position:relative}.deep-chat-openai-realtime-button-container{height:100%;width:50%;display:flex;justify-content:center;align-items:center}.deep-chat-openai-realtime-button{width:70px;height:70px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer}.deep-chat-openai-realtime-button-default{background-color:#e3e3e3}.deep-chat-openai-realtime-button-default:hover{background-color:#d4d4d4}.deep-chat-openai-realtime-button-default:active{background-color:#c5c5c5}.deep-chat-openai-realtime-button-loading{opacity:.7;pointer-events:none}.deep-chat-openai-realtime-microphone-active{background-color:#ffe7e7}.deep-chat-openai-realtime-microphone-active:hover{background-color:#ffdede}.deep-chat-openai-realtime-microphone-active:active{background-color:#ffd2d2}.deep-chat-openai-realtime-microphone>*{height:30px;width:30px}.deep-chat-openai-realtime-microphone-active>*{filter:brightness(0) saturate(100%) invert(35%) sepia(60%) saturate(1360%) hue-rotate(325deg) brightness(95%) contrast(92%)}.deep-chat-openai-realtime-toggle>*{height:32px;width:32px;padding-left:3px;filter:brightness(0) saturate(100%) invert(22%) sepia(0%) saturate(4537%) hue-rotate(208deg) brightness(105%) contrast(91%)}.deep-chat-openai-realtime-button-unavailable{opacity:.45;pointer-events:none}#deep-chat-openai-realtime-error{color:red;position:absolute;top:calc(50% + 40px);left:50%;transform:translate(-50%,-50%);font-size:17px}#deep-chat-openai-realtime-loading{position:absolute;font-size:15px;top:50%;left:50%;transform:translate(-50%,-50%)}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-key{display:inline-block;width:16px;height:16px}#loading-key:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-spinner 1.2s linear infinite}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}@keyframes loading-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.deep-chat-last-group-messages-active{height:100%}.loading-history-message-full-view{position:absolute;height:70%;width:100%;display:flex;align-items:center}.loading-history-message-small{height:20px;margin-bottom:30px}.loading-history-message-small>div>div{scale:.6}.loading-history-message{margin-top:0;width:100%;max-width:100%;display:flex;justify-content:center;background-color:unset}.loading-history{width:70px}.loading-history div{position:absolute;width:var(--loading-history-width);height:var(--loading-history-height);margin:var(--loading-history-margin);border:var(--loading-history-border);border-radius:50%;animation:loading-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--loading-history-color) transparent transparent transparent}.loading-history div:nth-child(1){animation-delay:-.45s}.loading-history div:nth-child(2){animation-delay:-.3s}.loading-history div:nth-child(3){animation-delay:-.15s}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.deep-chat-loading-message-dots-container{width:1em;padding:.6em .75em .6em 1.3em}.loading-message-dots{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite linear alternate;animation-delay:.5s}.loading-message-dots:before,.loading-message-dots:after{content:\"\";display:inline-block;position:absolute;top:0}.loading-message-dots:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:0s}.loading-message-dots:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:1s}@keyframes loading-message-dots{0%{background-color:var(--loading-message-color)}50%,to{background-color:var(--loading-message-color-fade)}}.message-bubble>p:first-child,.message-bubble>.partial-render-message>p:first-child{margin-top:0}.message-bubble>p:last-child,.message-bubble>.partial-render-message:last-child>p{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.role-hidden{display:none}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:3}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:2;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.loading-submit-button{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:loading-submit-button 1.5s infinite linear;bottom:-.75em}@keyframes loading-submit-button{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button-svg-text{padding:1px;height:1.65em;display:flex}.input-button-svg-text>svg{padding:.22rem}.input-button-svg-text>div{margin-left:2px}.input-button:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.input-button:active:not(:hover){background-color:transparent}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em;width:max-content}#custom-icon{height:100%;width:1.2em}.custom-button-container-default{color:#505050}.custom-button-container-default>.dropup-menu-item-icon{color:unset}.custom-button-container-default>svg{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%)}.custom-button-container-default>.dropup-menu-item-icon>svg{position:absolute;left:.2em}.custom-button-container-active{background-color:#edf7ff;color:#0285ff}.custom-button-container-active:hover,.custom-button-container-active:focus-visible{background-color:#def0ff}.custom-button-container-active:active{background-color:#d2eaff}.custom-button-container-active>svg{filter:brightness(0) saturate(100%) invert(32%) sepia(34%) saturate(4196%) hue-rotate(196deg) brightness(107%) contrast(104%)}.custom-button-container-disabled{color:#aeaeae;cursor:auto}.custom-button-container-disabled>div{pointer-events:none}.custom-button-container-disabled:hover,.custom-button-container-disabled:focus-visible{background-color:transparent}.custom-button-container-disabled:active{background-color:transparent}.custom-button-container-disabled>svg{filter:brightness(0) saturate(100%) invert(67%) sepia(0%) saturate(818%) hue-rotate(28deg) brightness(102%) contrast(100%)}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}[contenteditable]:empty:before{content:attr(deep-chat-placeholder-text);pointer-events:none}[contenteditable][textcolor]:empty:before{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}.dropup-button>*{pointer-events:none}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:hover,.dropup-menu-item:focus-visible{background-color:#f3f3f3}.dropup-menu-item:active{background-color:#ebebeb}.dropup-menu-item:active:not(:hover){background-color:transparent}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}#dropup-menu-item-icon-element-custom{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.28em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%)}.dropup-menu-item-text{margin-left:.56em;margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
15958
- var Ba = Object.defineProperty,
15962
+ var Fa = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#loading-validate-key-property{display:inline-block;width:50px;height:50px}#loading-validate-key-property:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:loading-spinner 1.4s linear infinite}#deep-chat-openai-realtime-container{height:100%;width:100%}#deep-chat-openai-realtime-avatar-container{height:60%;width:100%;display:flex;justify-content:center;align-items:center}#deep-chat-openai-realtime-avatar{border-radius:50%;height:110px;border:1px solid rgb(215,215,215);padding:8px;-webkit-user-select:none;user-select:none;margin-top:20px}#deep-chat-openai-realtime-buttons-container{height:40%;display:flex;position:relative}.deep-chat-openai-realtime-button-container{height:100%;width:50%;display:flex;justify-content:center;align-items:center}.deep-chat-openai-realtime-button{width:70px;height:70px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer}.deep-chat-openai-realtime-button-default{background-color:#e3e3e3}.deep-chat-openai-realtime-button-default:hover{background-color:#d4d4d4}.deep-chat-openai-realtime-button-default:active{background-color:#c5c5c5}.deep-chat-openai-realtime-button-loading{opacity:.7;pointer-events:none}.deep-chat-openai-realtime-microphone-active{background-color:#ffe7e7}.deep-chat-openai-realtime-microphone-active:hover{background-color:#ffdede}.deep-chat-openai-realtime-microphone-active:active{background-color:#ffd2d2}.deep-chat-openai-realtime-microphone>*{height:30px;width:30px}.deep-chat-openai-realtime-microphone-active>*{filter:brightness(0) saturate(100%) invert(35%) sepia(60%) saturate(1360%) hue-rotate(325deg) brightness(95%) contrast(92%)}.deep-chat-openai-realtime-toggle>*{height:32px;width:32px;padding-left:3px;filter:brightness(0) saturate(100%) invert(22%) sepia(0%) saturate(4537%) hue-rotate(208deg) brightness(105%) contrast(91%)}.deep-chat-openai-realtime-button-unavailable{opacity:.45;pointer-events:none}#deep-chat-openai-realtime-error{color:red;position:absolute;top:calc(50% + 40px);left:50%;transform:translate(-50%,-50%);font-size:17px}#deep-chat-openai-realtime-loading{position:absolute;font-size:15px;top:50%;left:50%;transform:translate(-50%,-50%)}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-key{display:inline-block;width:16px;height:16px}#loading-key:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-spinner 1.2s linear infinite}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}@keyframes loading-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.deep-chat-last-group-messages-active{height:100%}.loading-history-message-full-view{position:absolute;height:70%;width:100%;display:flex;align-items:center}.loading-history-message-small{height:20px;margin-bottom:30px}.loading-history-message-small>div>div{scale:.6}.loading-history-message{margin-top:0;width:100%;max-width:100%;display:flex;justify-content:center;background-color:unset}.loading-history{width:70px}.loading-history div{position:absolute;width:var(--loading-history-width);height:var(--loading-history-height);margin:var(--loading-history-margin);border:var(--loading-history-border);border-radius:50%;animation:loading-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--loading-history-color) transparent transparent transparent}.loading-history div:nth-child(1){animation-delay:-.45s}.loading-history div:nth-child(2){animation-delay:-.3s}.loading-history div:nth-child(3){animation-delay:-.15s}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.deep-chat-loading-message-dots-container{width:1em;padding:.6em .75em .6em 1.3em}.loading-message-dots{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite linear alternate;animation-delay:.5s}.loading-message-dots:before,.loading-message-dots:after{content:\"\";display:inline-block;position:absolute;top:0}.loading-message-dots:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:0s}.loading-message-dots:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:1s}@keyframes loading-message-dots{0%{background-color:var(--loading-message-color)}50%,to{background-color:var(--loading-message-color-fade)}}.message-bubble>p:first-child,.message-bubble>.partial-render-message>p:first-child{margin-top:0}.message-bubble>p:last-child,.message-bubble>.partial-render-message:last-child>p{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.role-hidden{display:none}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:3}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:2;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.loading-submit-button{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:loading-submit-button 1.5s infinite linear;bottom:-.75em}@keyframes loading-submit-button{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button-svg-text{padding:1px;height:1.65em;display:flex}.input-button-svg-text>svg{padding:.22rem}.input-button-svg-text>div{margin-left:2px}.input-button:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.input-button:active:not(:hover){background-color:transparent}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em;width:max-content}#custom-icon{height:100%;width:1.2em}.custom-button-container-default{color:#505050}.custom-button-container-default>.dropup-menu-item-icon{color:unset}.custom-button-container-default>svg{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%)}.custom-button-container-default>.dropup-menu-item-icon>svg{position:absolute;left:.2em}.custom-button-container-active{background-color:#edf7ff;color:#0285ff}.custom-button-container-active:hover,.custom-button-container-active:focus-visible{background-color:#def0ff}.custom-button-container-active:active{background-color:#d2eaff}.custom-button-container-active>svg{filter:brightness(0) saturate(100%) invert(32%) sepia(34%) saturate(4196%) hue-rotate(196deg) brightness(107%) contrast(104%)}.custom-button-container-disabled{color:#aeaeae;cursor:auto}.custom-button-container-disabled>div{pointer-events:none}.custom-button-container-disabled:hover,.custom-button-container-disabled:focus-visible{background-color:transparent}.custom-button-container-disabled:active{background-color:transparent}.custom-button-container-disabled>svg{filter:brightness(0) saturate(100%) invert(67%) sepia(0%) saturate(818%) hue-rotate(28deg) brightness(102%) contrast(100%)}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}[contenteditable]:empty:before{content:attr(deep-chat-placeholder-text);pointer-events:none}[contenteditable][textcolor]:empty:before{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}.dropup-button>*{pointer-events:none}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:hover,.dropup-menu-item:focus-visible{background-color:#f3f3f3}.dropup-menu-item:active{background-color:#ebebeb}.dropup-menu-item:active:not(:hover){background-color:transparent}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}#dropup-menu-item-icon-element-custom{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.28em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%)}.dropup-menu-item-text{margin-left:.56em;margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
15963
+ var Ua = Object.defineProperty,
15959
15964
  w = function w(n, e, t, i) {
15960
15965
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);
15961
- return s && Ba(e, t, s), s;
15966
+ return s && Ua(e, t, s), s;
15962
15967
  };
15963
- var _ = /*#__PURE__*/function (_ss) {
15968
+ var _ = /*#__PURE__*/function (_rs) {
15964
15969
  function _() {
15965
15970
  var _this97;
15966
15971
  _classCallCheck(this, _);
@@ -15974,12 +15979,12 @@ var _ = /*#__PURE__*/function (_ss) {
15974
15979
  return ai.focusFromParentElement(_this97._elementRef);
15975
15980
  }, _this97.refreshMessages = function () {}, _this97.scrollToBottom = function () {}, _this97.disableSubmitButton = function () {}, _this97.setPlaceholderText = function () {}, _this97._hasBeenRendered = !1, _this97._auxiliaryStyleApplied = !1, _this97._elementRef = document.createElement("div"), _this97._elementRef.id = "container", _this97.attachShadow({
15976
15981
  mode: "open"
15977
- }).appendChild(_this97._elementRef), Ht.apply(Da, _this97.shadowRoot), setTimeout(function () {
15982
+ }).appendChild(_this97._elementRef), Ht.apply(Fa, _this97.shadowRoot), setTimeout(function () {
15978
15983
  _this97._hasBeenRendered || _this97.onRender();
15979
15984
  }, 20);
15980
15985
  return _this97;
15981
15986
  }
15982
- _inherits(_, _ss);
15987
+ _inherits(_, _rs);
15983
15988
  return _createClass(_, [{
15984
15989
  key: "changeToChatView",
15985
15990
  value: function changeToChatView() {
@@ -15990,7 +15995,7 @@ var _ = /*#__PURE__*/function (_ss) {
15990
15995
  key: "onRender",
15991
15996
  value: function onRender() {
15992
15997
  var _this$_childElement;
15993
- bi.attemptAppendStyleSheetToHead(this.style), te.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = ea.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Ht.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Ht.applyDefaultStyleToComponent(this.style, this.chatStyle), te.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? gi.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof V) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], Ms.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof V && K.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered || yi.onRender(this), this._hasBeenRendered = !0;
15998
+ bi.attemptAppendStyleSheetToHead(this.style), te.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = ia.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Ht.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Ht.applyDefaultStyleToComponent(this.style, this.chatStyle), te.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? gi.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof V) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], Ls.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof V && K.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered || yi.onRender(this), this._hasBeenRendered = !0;
15994
15999
  }
15995
16000
  }, {
15996
16001
  key: "disconnectedCallback",
@@ -15998,7 +16003,7 @@ var _ = /*#__PURE__*/function (_ss) {
15998
16003
  si.chat = void 0;
15999
16004
  }
16000
16005
  }]);
16001
- }(ss);
16006
+ }(rs);
16002
16007
  w([x("object")], _.prototype, "connect");
16003
16008
  w([x("object")], _.prototype, "directConnection");
16004
16009
  w([x("object")], _.prototype, "webModel");