@n8n/chat 0.68.5 → 0.68.6

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.
@@ -1,4 +1,4 @@
1
- /*! Package version @n8n/chat@0.68.5 */
1
+ /*! Package version @n8n/chat@0.68.6 */
2
2
  var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp$1 = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e) => {
3
3
  let n = {};
4
4
  for (var r in e) __defProp$1(n, r, {
@@ -24072,168 +24072,194 @@ var entities_exports = /* @__PURE__ */ __export({
24072
24072
  var i, o, s, c = new this.State(e, t, n, r);
24073
24073
  for (this.tokenize(c), o = this.ruler2.getRules(""), s = o.length, i = 0; i < s; i++) o[i](c);
24074
24074
  }, o.prototype.State = require_state_inline(), t.exports = o;
24075
- })), require_re = /* @__PURE__ */ __commonJSMin(((e, t) => {
24076
- t.exports = function(e) {
24077
- var t = {};
24078
- e ||= {}, t.src_Any = require_regex$3().source, t.src_Cc = require_regex$2().source, t.src_Z = require_regex().source, t.src_P = require_regex$4().source, t.src_ZPCc = [
24075
+ })), require_index_cjs$1 = /* @__PURE__ */ __commonJSMin(((e) => {
24076
+ e.Any = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, e.Cc = /[\0-\x1F\x7F-\x9F]/, e.Cf = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, e.P = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, e.S = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, e.Z = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
24077
+ })), require_index_cjs = /* @__PURE__ */ __commonJSMin(((e, t) => {
24078
+ var n = require_index_cjs$1();
24079
+ function r(e) {
24080
+ let t = {};
24081
+ e ||= {}, t.src_Any = n.Any.source, t.src_Cc = n.Cc.source, t.src_Z = n.Z.source, t.src_P = n.P.source, t.src_ZPCc = [
24079
24082
  t.src_Z,
24080
24083
  t.src_P,
24081
24084
  t.src_Cc
24082
24085
  ].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
24083
- var n = "[><|]";
24084
- return t.src_pseudo_letter = "(?:(?!" + n + "|" + t.src_ZPCc + ")" + t.src_Any + ")", t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = "(?:(?:(?!" + t.src_ZCc + "|[@/\\[\\]()]).)+@)?", t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = "(?=$|" + n + "|" + t.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + t.src_ZPCc + "))", t.src_path = "(?:[/?#](?:(?!" + t.src_ZCc + "|" + n + "|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!" + t.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + t.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + t.src_ZCc + "|[}]).)*\\}|\\\"(?:(?!" + t.src_ZCc + "|[\"]).)+\\\"|\\'(?:(?!" + t.src_ZCc + "|[']).)+\\'|\\'(?=" + t.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + t.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + t.src_ZCc + "|$)|;(?!" + t.src_ZCc + "|$)|\\!+(?!" + t.src_ZCc + "|[!]|$)|\\?(?!" + t.src_ZCc + "|[?]|$))+|\\/)?", t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]*", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + "|" + t.src_pseudo_letter + "{1,63})", t.src_domain = "(?:" + t.src_xn + "|(?:" + t.src_pseudo_letter + ")|(?:" + t.src_pseudo_letter + "(?:-|" + t.src_pseudo_letter + "){0,61}" + t.src_pseudo_letter + "))", t.src_host = "(?:(?:(?:(?:" + t.src_domain + ")\\.)*" + t.src_domain + "))", t.tpl_host_fuzzy = "(?:" + t.src_ip4 + "|(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%)))", t.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%))", t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + t.src_ZPCc + "|>|$))", t.tpl_email_fuzzy = "(^|" + n + "|\"|\\(|" + t.src_ZCc + ")(" + t.src_email_name + "@" + t.tpl_host_fuzzy_strict + ")", t.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
24085
- };
24086
- })), require_linkify_it = /* @__PURE__ */ __commonJSMin(((e, t) => {
24087
- function n(e) {
24086
+ let r = "[><|]";
24087
+ return t.src_pseudo_letter = "(?:(?!" + r + "|" + t.src_ZPCc + ")" + t.src_Any + ")", t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = "(?:(?:(?!" + t.src_ZCc + "|[@/\\[\\]()]).)+@)?", t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = "(?=$|" + r + "|" + t.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + t.src_ZPCc + "))", t.src_path = "(?:[/?#](?:(?!" + t.src_ZCc + "|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!" + t.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + t.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + t.src_ZCc + "|[}]).)*\\}|\\\"(?:(?!" + t.src_ZCc + "|[\"]).)+\\\"|\\'(?:(?!" + t.src_ZCc + "|[']).)+\\'|\\'(?=" + t.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + t.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + t.src_ZCc + "|$)|;(?!" + t.src_ZCc + "|$)|\\!+(?!" + t.src_ZCc + "|[!]|$)|\\?(?!" + t.src_ZCc + "|[?]|$))+|\\/)?", t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]*", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + "|" + t.src_pseudo_letter + "{1,63})", t.src_domain = "(?:" + t.src_xn + "|(?:" + t.src_pseudo_letter + ")|(?:" + t.src_pseudo_letter + "(?:-|" + t.src_pseudo_letter + "){0,61}" + t.src_pseudo_letter + "))", t.src_host = "(?:(?:(?:(?:" + t.src_domain + ")\\.)*" + t.src_domain + "))", t.tpl_host_fuzzy = "(?:" + t.src_ip4 + "|(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%)))", t.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%))", t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + t.src_ZPCc + "|>|$))", t.tpl_email_fuzzy = "(^|" + r + "|\"|\\(|" + t.src_ZCc + ")(" + t.src_email_name + "@" + t.tpl_host_fuzzy_strict + ")", t.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
24088
+ }
24089
+ function i(e) {
24088
24090
  return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
24089
24091
  t && Object.keys(t).forEach(function(n) {
24090
24092
  e[n] = t[n];
24091
24093
  });
24092
24094
  }), e;
24093
24095
  }
24094
- function r(e) {
24095
- return Object.prototype.toString.call(e);
24096
- }
24097
- function i(e) {
24098
- return r(e) === "[object String]";
24099
- }
24100
24096
  function o(e) {
24101
- return r(e) === "[object Object]";
24097
+ return Object.prototype.toString.call(e);
24102
24098
  }
24103
24099
  function s(e) {
24104
- return r(e) === "[object RegExp]";
24100
+ return o(e) === "[object String]";
24105
24101
  }
24106
24102
  function c(e) {
24107
- return r(e) === "[object Function]";
24103
+ return o(e) === "[object Object]";
24108
24104
  }
24109
24105
  function l(e) {
24106
+ return o(e) === "[object RegExp]";
24107
+ }
24108
+ function u(e) {
24109
+ return o(e) === "[object Function]";
24110
+ }
24111
+ function d(e) {
24110
24112
  return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
24111
24113
  }
24112
- var u = {
24114
+ var f = {
24113
24115
  fuzzyLink: !0,
24114
24116
  fuzzyEmail: !0,
24115
24117
  fuzzyIP: !1
24116
24118
  };
24117
- function d(e) {
24119
+ function g(e) {
24118
24120
  return Object.keys(e || {}).reduce(function(e, t) {
24119
- return e || u.hasOwnProperty(t);
24121
+ return e || f.hasOwnProperty(t);
24120
24122
  }, !1);
24121
24123
  }
24122
- var f = {
24124
+ var _ = {
24123
24125
  "http:": { validate: function(e, t, n) {
24124
- var r = e.slice(t);
24126
+ let r = e.slice(t);
24125
24127
  return n.re.http || (n.re.http = RegExp("^\\/\\/" + n.re.src_auth + n.re.src_host_port_strict + n.re.src_path, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
24126
24128
  } },
24127
24129
  "https:": "http:",
24128
24130
  "ftp:": "http:",
24129
24131
  "//": { validate: function(e, t, n) {
24130
- var r = e.slice(t);
24132
+ let r = e.slice(t);
24131
24133
  return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + "(?:localhost|(?:(?:" + n.re.src_domain + ")\\.)+" + n.re.src_domain_root + ")" + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
24132
24134
  } },
24133
24135
  "mailto:": { validate: function(e, t, n) {
24134
- var r = e.slice(t);
24136
+ let r = e.slice(t);
24135
24137
  return n.re.mailto || (n.re.mailto = RegExp("^" + n.re.src_email_name + "@" + n.re.src_host_strict, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
24136
24138
  } }
24137
- }, g = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", _ = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
24138
- function y(e) {
24139
- e.__index__ = -1, e.__text_cache__ = "";
24140
- }
24141
- function x(e) {
24139
+ }, y = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", x = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
24140
+ function S(e) {
24142
24141
  return function(t, n) {
24143
- var r = t.slice(n);
24142
+ let r = t.slice(n);
24144
24143
  return e.test(r) ? r.match(e)[0].length : 0;
24145
24144
  };
24146
24145
  }
24147
- function S() {
24146
+ function C() {
24148
24147
  return function(e, t) {
24149
24148
  t.normalize(e);
24150
24149
  };
24151
24150
  }
24152
- function C(e) {
24153
- var t = e.re = require_re()(e.__opts__), n = e.__tlds__.slice();
24154
- e.onCompile(), e.__tlds_replaced__ || n.push(g), n.push(t.src_xn), t.src_tlds = n.join("|");
24155
- function r(e) {
24151
+ function w(e) {
24152
+ let t = e.re = r(e.__opts__), n = e.__tlds__.slice();
24153
+ e.onCompile(), e.__tlds_replaced__ || n.push(y), n.push(t.src_xn), t.src_tlds = n.join("|");
24154
+ function i(e) {
24156
24155
  return e.replace("%TLDS%", t.src_tlds);
24157
24156
  }
24158
- t.email_fuzzy = RegExp(r(t.tpl_email_fuzzy), "i"), t.link_fuzzy = RegExp(r(t.tpl_link_fuzzy), "i"), t.link_no_ip_fuzzy = RegExp(r(t.tpl_link_no_ip_fuzzy), "i"), t.host_fuzzy_test = RegExp(r(t.tpl_host_fuzzy_test), "i");
24159
- var u = [];
24157
+ t.email_fuzzy = RegExp(i(t.tpl_email_fuzzy), "i"), t.email_fuzzy_global = RegExp(i(t.tpl_email_fuzzy), "ig"), t.link_fuzzy = RegExp(i(t.tpl_link_fuzzy), "i"), t.link_fuzzy_global = RegExp(i(t.tpl_link_fuzzy), "ig"), t.link_no_ip_fuzzy = RegExp(i(t.tpl_link_no_ip_fuzzy), "i"), t.link_no_ip_fuzzy_global = RegExp(i(t.tpl_link_no_ip_fuzzy), "ig"), t.host_fuzzy_test = RegExp(i(t.tpl_host_fuzzy_test), "i");
24158
+ let o = [];
24160
24159
  e.__compiled__ = {};
24161
- function d(e, t) {
24160
+ function f(e, t) {
24162
24161
  throw Error("(LinkifyIt) Invalid schema \"" + e + "\": " + t);
24163
24162
  }
24164
24163
  Object.keys(e.__schemas__).forEach(function(t) {
24165
- var n = e.__schemas__[t];
24166
- if (n !== null) {
24167
- var r = {
24168
- validate: null,
24169
- link: null
24170
- };
24171
- if (e.__compiled__[t] = r, o(n)) {
24172
- s(n.validate) ? r.validate = x(n.validate) : c(n.validate) ? r.validate = n.validate : d(t, n), c(n.normalize) ? r.normalize = n.normalize : n.normalize ? d(t, n) : r.normalize = S();
24173
- return;
24174
- }
24175
- if (i(n)) {
24176
- u.push(t);
24177
- return;
24178
- }
24179
- d(t, n);
24164
+ let n = e.__schemas__[t];
24165
+ if (n === null) return;
24166
+ let r = {
24167
+ validate: null,
24168
+ link: null
24169
+ };
24170
+ if (e.__compiled__[t] = r, c(n)) {
24171
+ l(n.validate) ? r.validate = S(n.validate) : u(n.validate) ? r.validate = n.validate : f(t, n), u(n.normalize) ? r.normalize = n.normalize : n.normalize ? f(t, n) : r.normalize = C();
24172
+ return;
24180
24173
  }
24181
- }), u.forEach(function(t) {
24174
+ if (s(n)) {
24175
+ o.push(t);
24176
+ return;
24177
+ }
24178
+ f(t, n);
24179
+ }), o.forEach(function(t) {
24182
24180
  e.__compiled__[e.__schemas__[t]] && (e.__compiled__[t].validate = e.__compiled__[e.__schemas__[t]].validate, e.__compiled__[t].normalize = e.__compiled__[e.__schemas__[t]].normalize);
24183
24181
  }), e.__compiled__[""] = {
24184
24182
  validate: null,
24185
- normalize: S()
24183
+ normalize: C()
24186
24184
  };
24187
- var f = Object.keys(e.__compiled__).filter(function(t) {
24185
+ let g = Object.keys(e.__compiled__).filter(function(t) {
24188
24186
  return t.length > 0 && e.__compiled__[t];
24189
- }).map(l).join("|");
24190
- e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + f + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + f + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp("(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i"), y(e);
24191
- }
24192
- function w(e, t) {
24193
- var n = e.__index__, r = e.__last_index__, i = e.__text_cache__.slice(n, r);
24194
- this.schema = e.__schema__.toLowerCase(), this.index = n + t, this.lastIndex = r + t, this.raw = i, this.text = i, this.url = i;
24187
+ }).map(d).join("|");
24188
+ e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + g + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + g + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp("(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i");
24195
24189
  }
24196
- function T(e, t) {
24197
- var n = new w(e, t);
24198
- return e.__compiled__[n.schema].normalize(n, e), n;
24190
+ function T(e, t, n, r) {
24191
+ let i = e.slice(n, r);
24192
+ this.schema = t.toLowerCase(), this.index = n, this.lastIndex = r, this.raw = i, this.text = i, this.url = i;
24199
24193
  }
24200
24194
  function E(e, t) {
24201
24195
  if (!(this instanceof E)) return new E(e, t);
24202
- t || d(e) && (t = e, e = {}), this.__opts__ = n({}, u, t), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = n({}, f, e), this.__compiled__ = {}, this.__tlds__ = _, this.__tlds_replaced__ = !1, this.re = {}, C(this);
24196
+ t || g(e) && (t = e, e = {}), this.__opts__ = i({}, f, t), this.__schemas__ = i({}, _, e), this.__compiled__ = {}, this.__tlds__ = x, this.__tlds_replaced__ = !1, this.re = {}, w(this);
24203
24197
  }
24204
24198
  E.prototype.add = function(e, t) {
24205
- return this.__schemas__[e] = t, C(this), this;
24199
+ return this.__schemas__[e] = t, w(this), this;
24206
24200
  }, E.prototype.set = function(e) {
24207
- return this.__opts__ = n(this.__opts__, e), this;
24201
+ return this.__opts__ = i(this.__opts__, e), this;
24208
24202
  }, E.prototype.test = function(e) {
24209
- if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return !1;
24210
- var t, n, r, i, o, s, c, l, u;
24203
+ if (!e.length) return !1;
24204
+ let t, n;
24211
24205
  if (this.re.schema_test.test(e)) {
24212
- for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(e)) !== null;) if (i = this.testSchemaAt(e, t[2], c.lastIndex), i) {
24213
- this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + i;
24214
- break;
24215
- }
24206
+ for (n = this.re.schema_search, n.lastIndex = 0; (t = n.exec(e)) !== null;) if (this.testSchemaAt(e, t[2], n.lastIndex)) return !0;
24216
24207
  }
24217
- return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (l = e.search(this.re.host_fuzzy_test), l >= 0 && (this.__index__ < 0 || l < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (o = n.index + n[1].length, (this.__index__ < 0 || o < this.__index__) && (this.__schema__ = "", this.__index__ = o, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (u = e.indexOf("@"), u >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (o = r.index + r[1].length, s = r.index + r[0].length, (this.__index__ < 0 || o < this.__index__ || o === this.__index__ && s > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = o, this.__last_index__ = s))), this.__index__ >= 0;
24208
+ return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && e.search(this.re.host_fuzzy_test) >= 0 && e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && e.indexOf("@") >= 0 && e.match(this.re.email_fuzzy) !== null);
24218
24209
  }, E.prototype.pretest = function(e) {
24219
24210
  return this.re.pretest.test(e);
24220
24211
  }, E.prototype.testSchemaAt = function(e, t, n) {
24221
24212
  return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
24222
24213
  }, E.prototype.match = function(e) {
24223
- var t = 0, n = [];
24224
- this.__index__ >= 0 && this.__text_cache__ === e && (n.push(T(this, t)), t = this.__last_index__);
24225
- for (var r = t ? e.slice(t) : e; this.test(r);) n.push(T(this, t)), r = r.slice(this.__last_index__), t += this.__last_index__;
24226
- return n.length ? n : null;
24214
+ let t = [], n = [], r = [], i = [], o, s, c;
24215
+ function l(e, t) {
24216
+ return e ? t ? e.index === t.index ? e.lastIndex >= t.lastIndex ? e : t : e.index < t.index ? e : t : e : t;
24217
+ }
24218
+ if (!e.length) return null;
24219
+ if (this.re.schema_test.test(e)) for (c = this.re.schema_search, c.lastIndex = 0; (o = c.exec(e)) !== null;) s = this.testSchemaAt(e, o[2], c.lastIndex), s && n.push({
24220
+ schema: o[2],
24221
+ index: o.index + o[1].length,
24222
+ lastIndex: o.index + o[0].length + s
24223
+ });
24224
+ if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) for (c = this.__opts__.fuzzyIP ? this.re.link_fuzzy_global : this.re.link_no_ip_fuzzy_global, c.lastIndex = 0; (o = c.exec(e)) !== null;) r.push({
24225
+ schema: "",
24226
+ index: o.index + o[1].length,
24227
+ lastIndex: o.index + o[0].length
24228
+ });
24229
+ if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) for (c = this.re.email_fuzzy_global, c.lastIndex = 0; (o = c.exec(e)) !== null;) i.push({
24230
+ schema: "mailto:",
24231
+ index: o.index + o[1].length,
24232
+ lastIndex: o.index + o[0].length
24233
+ });
24234
+ let u = [
24235
+ 0,
24236
+ 0,
24237
+ 0
24238
+ ], d = 0;
24239
+ for (;;) {
24240
+ let o = [
24241
+ n[u[0]],
24242
+ i[u[1]],
24243
+ r[u[2]]
24244
+ ], s = l(l(o[0], o[1]), o[2]);
24245
+ if (!s) break;
24246
+ if (s === o[0] ? u[0]++ : s === o[1] ? u[1]++ : u[2]++, s.index < d) continue;
24247
+ let c = new T(e, s.schema, s.index, s.lastIndex);
24248
+ this.__compiled__[c.schema].normalize(c, this), t.push(c), d = s.lastIndex;
24249
+ }
24250
+ return t.length ? t : null;
24227
24251
  }, E.prototype.matchAtStart = function(e) {
24228
- if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
24229
- var t = this.re.schema_at_start.exec(e);
24252
+ if (!e.length) return null;
24253
+ let t = this.re.schema_at_start.exec(e);
24230
24254
  if (!t) return null;
24231
- var n = this.testSchemaAt(e, t[2], t[0].length);
24232
- return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, T(this, 0)) : null;
24255
+ let n = this.testSchemaAt(e, t[2], t[0].length);
24256
+ if (!n) return null;
24257
+ let r = new T(e, t[2], t.index + t[1].length, t.index + t[0].length + n);
24258
+ return this.__compiled__[r.schema].normalize(r, this), r;
24233
24259
  }, E.prototype.tlds = function(e, t) {
24234
24260
  return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(e, t, n) {
24235
24261
  return e !== n[t - 1];
24236
- }).reverse(), C(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, C(this), this);
24262
+ }).reverse(), w(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, w(this), this);
24237
24263
  }, E.prototype.normalize = function(e) {
24238
24264
  e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
24239
24265
  }, E.prototype.onCompile = function() {}, t.exports = E;
@@ -24429,7 +24455,7 @@ var entities_exports = /* @__PURE__ */ __export({
24429
24455
  }
24430
24456
  };
24431
24457
  })), require_lib = /* @__PURE__ */ __commonJSMin(((e, t) => {
24432
- var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), c = require_parser_inline(), l = require_linkify_it(), u = require_mdurl(), d = require_punycode(), f = {
24458
+ var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), c = require_parser_inline(), l = require_index_cjs(), u = require_mdurl(), d = require_punycode(), f = {
24433
24459
  default: require_default(),
24434
24460
  zero: require_zero(),
24435
24461
  commonmark: require_commonmark()