@n8n/chat 0.68.6 → 0.68.7

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/chat.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Package version @n8n/chat@0.68.6 */
1
+ /*! Package version @n8n/chat@0.68.7 */
2
2
  import * as Vue from "vue";
3
3
  import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onDeactivated, onMounted, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useSlots, vModelText, vShow, warn, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
4
4
  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) => {
@@ -647,7 +647,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
647
647
  let n = e && e.exec(t);
648
648
  return n && n.index === 0;
649
649
  }
650
- var F7 = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
650
+ var F7 = new RegExp(M7(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
651
651
  function I7(e, { joinWith: t }) {
652
652
  let n = 0;
653
653
  return e.map((e) => {
@@ -659,7 +659,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
659
659
  i += r;
660
660
  break;
661
661
  }
662
- i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
662
+ i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], (e[0] === "(" || /^\(\?[<']/.test(e[0])) && n++);
663
663
  }
664
664
  return i;
665
665
  }).map((e) => `(${e})`).join(t);
@@ -719,18 +719,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
719
719
  begin: H7,
720
720
  relevance: 0
721
721
  }, n9 = {
722
- begin: /(?=\/[^/\n]*\/)/,
723
- contains: [{
724
- scope: "regexp",
725
- begin: /\//,
726
- end: /\/[gimuy]*/,
727
- illegal: /\n/,
728
- contains: [G7, {
729
- begin: /\[/,
730
- end: /\]/,
731
- relevance: 0,
732
- contains: [G7]
733
- }]
722
+ scope: "regexp",
723
+ begin: /\/(?=[^/\n]*\/)/,
724
+ end: /\/[gimuy]*/,
725
+ contains: [G7, {
726
+ begin: /\[/,
727
+ end: /\]/,
728
+ relevance: 0,
729
+ contains: [G7]
734
730
  }]
735
731
  }, r9 = {
736
732
  scope: "title",
@@ -745,29 +741,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
745
741
  relevance: 0
746
742
  }, o9 = /* @__PURE__ */ Object.freeze({
747
743
  __proto__: null,
748
- MATCH_NOTHING_RE: L7,
749
- IDENT_RE: R7,
750
- UNDERSCORE_IDENT_RE: z7,
751
- NUMBER_RE: B7,
752
- C_NUMBER_RE: V7,
753
- BINARY_NUMBER_RE: H7,
754
- RE_STARTERS_RE: U7,
755
- SHEBANG: W7,
756
- BACKSLASH_ESCAPE: G7,
757
744
  APOS_STRING_MODE: K7,
758
- QUOTE_STRING_MODE: q7,
759
- PHRASAL_WORDS_MODE: J7,
745
+ BACKSLASH_ESCAPE: G7,
746
+ BINARY_NUMBER_MODE: t9,
747
+ BINARY_NUMBER_RE: H7,
760
748
  COMMENT: Y7,
761
- C_LINE_COMMENT_MODE: X7,
762
749
  C_BLOCK_COMMENT_MODE: Z7,
763
- HASH_COMMENT_MODE: Q7,
764
- NUMBER_MODE: $7,
750
+ C_LINE_COMMENT_MODE: X7,
765
751
  C_NUMBER_MODE: e9,
766
- BINARY_NUMBER_MODE: t9,
767
- REGEXP_MODE: n9,
768
- TITLE_MODE: r9,
769
- UNDERSCORE_TITLE_MODE: i9,
770
- METHOD_GUARD: a9,
752
+ C_NUMBER_RE: V7,
771
753
  END_SAME_AS_BEGIN: function(e) {
772
754
  return Object.assign(e, {
773
755
  "on:begin": (e, t) => {
@@ -777,7 +759,21 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
777
759
  t.data._beginMatch !== e[1] && t.ignoreMatch();
778
760
  }
779
761
  });
780
- }
762
+ },
763
+ HASH_COMMENT_MODE: Q7,
764
+ IDENT_RE: R7,
765
+ MATCH_NOTHING_RE: L7,
766
+ METHOD_GUARD: a9,
767
+ NUMBER_MODE: $7,
768
+ NUMBER_RE: B7,
769
+ PHRASAL_WORDS_MODE: J7,
770
+ QUOTE_STRING_MODE: q7,
771
+ REGEXP_MODE: n9,
772
+ RE_STARTERS_RE: U7,
773
+ SHEBANG: W7,
774
+ TITLE_MODE: r9,
775
+ UNDERSCORE_IDENT_RE: z7,
776
+ UNDERSCORE_TITLE_MODE: i9
781
777
  });
782
778
  function s9(e, t) {
783
779
  e.input[e.index - 1] === "." && t.ignoreMatch();
@@ -962,7 +958,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
962
958
  return o(e, { variants: null }, t);
963
959
  })), e.cachedVariants ? e.cachedVariants : A9(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
964
960
  }
965
- var M9 = "11.8.0", N9 = class extends Error {
961
+ var M9 = "11.12.0", N9 = class extends Error {
966
962
  constructor(e, t) {
967
963
  super(e), this.name = "HTMLInjectionError", this.html = t;
968
964
  }
@@ -989,10 +985,10 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
989
985
  t += e.parentNode ? e.parentNode.className : "";
990
986
  let n = f.languageDetectRe.exec(t);
991
987
  if (n) {
992
- let t = q7(n[1]);
988
+ let t = K7(n[1]);
993
989
  return t || (x9(l.replace("{}", n[1])), x9("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
994
990
  }
995
- return t.split(/\s+/).find((e) => p(e) || q7(e));
991
+ return t.split(/\s+/).find((e) => p(e) || K7(e));
996
992
  }
997
993
  function x(e, t, n) {
998
994
  let r = "", i = "";
@@ -1001,9 +997,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1001
997
  code: r,
1002
998
  language: i
1003
999
  };
1004
- $7("before:highlight", o);
1000
+ Q7("before:highlight", o);
1005
1001
  let s = o.result ? o.result : j7(o.language, o.code, n);
1006
- return s.code = o.code, $7("after:highlight", s), s;
1002
+ return s.code = o.code, Q7("after:highlight", s), s;
1007
1003
  }
1008
1004
  function j7(e, n, i, o) {
1009
1005
  let d = Object.create(null);
@@ -1012,14 +1008,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1012
1008
  }
1013
1009
  function _() {
1014
1010
  if (!U7.keywords) {
1015
- G7.addText(K7);
1011
+ G7.addText(q7);
1016
1012
  return;
1017
1013
  }
1018
1014
  let e = 0;
1019
1015
  U7.keywordPatternRe.lastIndex = 0;
1020
- let t = U7.keywordPatternRe.exec(K7), n = "";
1016
+ let t = U7.keywordPatternRe.exec(q7), n = "";
1021
1017
  for (; t;) {
1022
- n += K7.substring(e, t.index);
1018
+ n += q7.substring(e, t.index);
1023
1019
  let r = B7.case_insensitive ? t[0].toLowerCase() : t[0], i = p(U7, r);
1024
1020
  if (i) {
1025
1021
  let [e, o] = i;
@@ -1029,24 +1025,24 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1029
1025
  w(t[0], n);
1030
1026
  }
1031
1027
  } else n += t[0];
1032
- e = U7.keywordPatternRe.lastIndex, t = U7.keywordPatternRe.exec(K7);
1028
+ e = U7.keywordPatternRe.lastIndex, t = U7.keywordPatternRe.exec(q7);
1033
1029
  }
1034
- n += K7.substring(e), G7.addText(n);
1030
+ n += q7.substring(e), G7.addText(n);
1035
1031
  }
1036
1032
  function y() {
1037
- if (K7 === "") return;
1033
+ if (q7 === "") return;
1038
1034
  let e = null;
1039
1035
  if (typeof U7.subLanguage == "string") {
1040
1036
  if (!t[U7.subLanguage]) {
1041
- G7.addText(K7);
1037
+ G7.addText(q7);
1042
1038
  return;
1043
1039
  }
1044
- e = j7(U7.subLanguage, K7, !0, W7[U7.subLanguage]), W7[U7.subLanguage] = e._top;
1045
- } else e = F7(K7, U7.subLanguage.length ? U7.subLanguage : null);
1040
+ e = j7(U7.subLanguage, q7, !0, W7[U7.subLanguage]), W7[U7.subLanguage] = e._top;
1041
+ } else e = F7(q7, U7.subLanguage.length ? U7.subLanguage : null);
1046
1042
  U7.relevance > 0 && (J7 += e.relevance), G7.__addSublanguage(e._emitter, e.language);
1047
1043
  }
1048
1044
  function x() {
1049
- U7.subLanguage == null ? _() : y(), K7 = "";
1045
+ U7.subLanguage == null ? _() : y(), q7 = "";
1050
1046
  }
1051
1047
  function w(e, t) {
1052
1048
  e !== "" && (G7.startScope(t), G7.addText(e), G7.endScope());
@@ -1059,11 +1055,11 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1059
1055
  continue;
1060
1056
  }
1061
1057
  let r = B7.classNameAliases[e[n]] || e[n], i = t[n];
1062
- r ? w(i, r) : (K7 = i, _(), K7 = ""), n++;
1058
+ r ? w(i, r) : (q7 = i, _(), q7 = ""), n++;
1063
1059
  }
1064
1060
  }
1065
1061
  function $(e, t) {
1066
- return e.scope && typeof e.scope == "string" && G7.openNode(B7.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (w(K7, B7.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), K7 = "") : e.beginScope._multi && (k(e.beginScope, t), K7 = "")), U7 = Object.create(e, { parent: { value: U7 } }), U7;
1062
+ return e.scope && typeof e.scope == "string" && G7.openNode(B7.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (w(q7, B7.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), q7 = "") : e.beginScope._multi && (k(e.beginScope, t), q7 = "")), U7 = Object.create(e, { parent: { value: U7 } }), U7;
1067
1063
  }
1068
1064
  function A7(e, t, n) {
1069
1065
  let i = P7(e.endRe, n);
@@ -1080,18 +1076,18 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1080
1076
  if (e.endsWithParent) return A7(e.parent, t, n);
1081
1077
  }
1082
1078
  function M7(e) {
1083
- return U7.matcher.regexIndex === 0 ? (K7 += e[0], 1) : (Z7 = !0, 0);
1079
+ return U7.matcher.regexIndex === 0 ? (q7 += e[0], 1) : (Z7 = !0, 0);
1084
1080
  }
1085
1081
  function N7(e) {
1086
1082
  let t = e[0], n = e.rule, i = new r(n), o = [n.__beforeBegin, n["on:begin"]];
1087
1083
  for (let n of o) if (n && (n(e, i), i.isMatchIgnored)) return M7(t);
1088
- return n.skip ? K7 += t : (n.excludeBegin && (K7 += t), x(), !n.returnBegin && !n.excludeBegin && (K7 = t)), $(n, e), n.returnBegin ? 0 : t.length;
1084
+ return n.skip ? q7 += t : (n.excludeBegin && (q7 += t), x(), !n.returnBegin && !n.excludeBegin && (q7 = t)), $(n, e), n.returnBegin ? 0 : t.length;
1089
1085
  }
1090
1086
  function I7(e) {
1091
1087
  let t = e[0], r = n.substring(e.index), i = A7(U7, e, r);
1092
1088
  if (!i) return I9;
1093
1089
  let o = U7;
1094
- U7.endScope && U7.endScope._wrap ? (x(), w(t, U7.endScope._wrap)) : U7.endScope && U7.endScope._multi ? (x(), k(U7.endScope, e)) : o.skip ? K7 += t : (o.returnEnd || o.excludeEnd || (K7 += t), x(), o.excludeEnd && (K7 = t));
1090
+ U7.endScope && U7.endScope._wrap ? (x(), w(t, U7.endScope._wrap)) : U7.endScope && U7.endScope._multi ? (x(), k(U7.endScope, e)) : o.skip ? q7 += t : (o.returnEnd || o.excludeEnd || (q7 += t), x(), o.excludeEnd && (q7 = t));
1095
1091
  do
1096
1092
  U7.scope && G7.closeNode(), !U7.skip && !U7.subLanguage && (J7 += U7.relevance), U7 = U7.parent;
1097
1093
  while (U7 !== i.parent);
@@ -1105,9 +1101,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1105
1101
  let R7 = {};
1106
1102
  function z7(t, r) {
1107
1103
  let o = r && r[0];
1108
- if (K7 += t, o == null) return x(), 0;
1104
+ if (q7 += t, o == null) return x(), 0;
1109
1105
  if (R7.type === "begin" && r.type === "end" && R7.index === r.index && o === "") {
1110
- if (K7 += n.slice(r.index, r.index + 1), !s) {
1106
+ if (q7 += n.slice(r.index, r.index + 1), !s) {
1111
1107
  let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
1112
1108
  throw t.languageName = e, t.badRule = R7.rule, t;
1113
1109
  }
@@ -1121,15 +1117,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1121
1117
  let e = I7(r);
1122
1118
  if (e !== I9) return e;
1123
1119
  }
1124
- if (r.type === "illegal" && o === "") return 1;
1120
+ if (r.type === "illegal" && o === "") return r.index === n.length || (q7 += "\n"), 1;
1125
1121
  if (X7 > 1e5 && X7 > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
1126
- return K7 += o, o.length;
1122
+ return q7 += o, o.length;
1127
1123
  }
1128
- let B7 = q7(e);
1124
+ let B7 = K7(e);
1129
1125
  if (!B7) throw b9(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
1130
1126
  let V7 = k9(B7), H7 = "", U7 = o || V7, W7 = {}, G7 = new f.__emitter(f);
1131
1127
  L7();
1132
- let K7 = "", J7 = 0, Y7 = 0, X7 = 0, Z7 = !1;
1128
+ let q7 = "", J7 = 0, Y7 = 0, X7 = 0, Z7 = !1;
1133
1129
  try {
1134
1130
  if (B7.__emitTokens) B7.__emitTokens(n, G7);
1135
1131
  else {
@@ -1189,13 +1185,13 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1189
1185
  }
1190
1186
  function F7(e, n) {
1191
1187
  n = n || f.languages || Object.keys(t);
1192
- let r = N7(e), i = n.filter(q7).filter(Y7).map((t) => j7(t, e, !1));
1188
+ let r = N7(e), i = n.filter(K7).filter(J7).map((t) => j7(t, e, !1));
1193
1189
  i.unshift(r);
1194
1190
  let [o, s] = i.sort((e, t) => {
1195
1191
  if (e.relevance !== t.relevance) return t.relevance - e.relevance;
1196
1192
  if (e.language && t.language) {
1197
- if (q7(e.language).supersetOf === t.language) return 1;
1198
- if (q7(t.language).supersetOf === e.language) return -1;
1193
+ if (K7(e.language).supersetOf === t.language) return 1;
1194
+ if (K7(t.language).supersetOf === e.language) return -1;
1199
1195
  }
1200
1196
  return 0;
1201
1197
  }), l = o;
@@ -1208,23 +1204,27 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1208
1204
  function L7(e) {
1209
1205
  let t = null, n = _(e);
1210
1206
  if (p(n)) return;
1211
- if ($7("before:highlightElement", {
1207
+ if (Q7("before:highlightElement", {
1212
1208
  el: e,
1213
1209
  language: n
1214
- }), e.children.length > 0 && (f.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), f.throwUnescapedHTML)) throw new N9("One of your code blocks includes unescaped HTML.", e.innerHTML);
1210
+ }), e.dataset.highlighted) {
1211
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
1212
+ return;
1213
+ }
1214
+ if (e.children.length > 0 && (f.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), f.throwUnescapedHTML)) throw new N9("One of your code blocks includes unescaped HTML.", e.innerHTML);
1215
1215
  t = e;
1216
1216
  let r = t.textContent, i = n ? x(r, {
1217
1217
  language: n,
1218
1218
  ignoreIllegals: !0
1219
1219
  }) : F7(r);
1220
- e.innerHTML = i.value, I7(e, n, i.language), e.result = {
1220
+ e.innerHTML = i.value, e.dataset.highlighted = "yes", I7(e, n, i.language), e.result = {
1221
1221
  language: i.language,
1222
1222
  re: i.relevance,
1223
1223
  relevance: i.relevance
1224
1224
  }, i.secondBest && (e.secondBest = {
1225
1225
  language: i.secondBest.language,
1226
1226
  relevance: i.secondBest.relevance
1227
- }), $7("after:highlightElement", {
1227
+ }), Q7("after:highlightElement", {
1228
1228
  el: e,
1229
1229
  result: i,
1230
1230
  text: r
@@ -1241,17 +1241,16 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1241
1241
  }
1242
1242
  let V7 = !1;
1243
1243
  function H7() {
1244
+ function e() {
1245
+ H7();
1246
+ }
1244
1247
  if (document.readyState === "loading") {
1245
- V7 = !0;
1248
+ V7 || window.addEventListener("DOMContentLoaded", e, !1), V7 = !0;
1246
1249
  return;
1247
1250
  }
1248
1251
  document.querySelectorAll(f.cssSelector).forEach(L7);
1249
1252
  }
1250
- function U7() {
1251
- V7 && H7();
1252
- }
1253
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", U7, !1);
1254
- function W7(n, r) {
1253
+ function U7(n, r) {
1255
1254
  let i = null;
1256
1255
  try {
1257
1256
  i = r(e);
@@ -1260,48 +1259,48 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1260
1259
  else throw e;
1261
1260
  i = d;
1262
1261
  }
1263
- i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && J7(i.aliases, { languageName: n });
1262
+ i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && q7(i.aliases, { languageName: n });
1264
1263
  }
1265
- function G7(e) {
1264
+ function W7(e) {
1266
1265
  delete t[e];
1267
1266
  for (let t of Object.keys(i)) i[t] === e && delete i[t];
1268
1267
  }
1269
- function K7() {
1268
+ function G7() {
1270
1269
  return Object.keys(t);
1271
1270
  }
1272
- function q7(e) {
1271
+ function K7(e) {
1273
1272
  return e = (e || "").toLowerCase(), t[e] || t[i[e]];
1274
1273
  }
1275
- function J7(e, { languageName: t }) {
1274
+ function q7(e, { languageName: t }) {
1276
1275
  typeof e == "string" && (e = [e]), e.forEach((e) => {
1277
1276
  i[e.toLowerCase()] = t;
1278
1277
  });
1279
1278
  }
1280
- function Y7(e) {
1281
- let t = q7(e);
1279
+ function J7(e) {
1280
+ let t = K7(e);
1282
1281
  return t && !t.disableAutodetect;
1283
1282
  }
1284
- function X7(e) {
1283
+ function Y7(e) {
1285
1284
  e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
1286
1285
  e["before:highlightBlock"](Object.assign({ block: t.el }, t));
1287
1286
  }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
1288
1287
  e["after:highlightBlock"](Object.assign({ block: t.el }, t));
1289
1288
  });
1290
1289
  }
1291
- function Z7(e) {
1292
- X7(e), o.push(e);
1290
+ function X7(e) {
1291
+ Y7(e), o.push(e);
1293
1292
  }
1294
- function Q7(e) {
1293
+ function Z7(e) {
1295
1294
  let t = o.indexOf(e);
1296
1295
  t !== -1 && o.splice(t, 1);
1297
1296
  }
1298
- function $7(e, t) {
1297
+ function Q7(e, t) {
1299
1298
  let n = e;
1300
1299
  o.forEach(function(e) {
1301
1300
  e[n] && e[n](t);
1302
1301
  });
1303
1302
  }
1304
- function e9(e) {
1303
+ function $7(e) {
1305
1304
  return S9("10.7.0", "highlightBlock will be removed entirely in v12.0"), S9("10.7.0", "Please use highlightElement now."), L7(e);
1306
1305
  }
1307
1306
  for (let t in Object.assign(e, {
@@ -1309,19 +1308,19 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1309
1308
  highlightAuto: F7,
1310
1309
  highlightAll: H7,
1311
1310
  highlightElement: L7,
1312
- highlightBlock: e9,
1311
+ highlightBlock: $7,
1313
1312
  configure: R7,
1314
1313
  initHighlighting: z7,
1315
1314
  initHighlightingOnLoad: B7,
1316
- registerLanguage: W7,
1317
- unregisterLanguage: G7,
1318
- listLanguages: K7,
1319
- getLanguage: q7,
1320
- registerAliases: J7,
1321
- autoDetection: Y7,
1315
+ registerLanguage: U7,
1316
+ unregisterLanguage: W7,
1317
+ listLanguages: G7,
1318
+ getLanguage: K7,
1319
+ registerAliases: q7,
1320
+ autoDetection: J7,
1322
1321
  inherit: F9,
1323
- addPlugin: Z7,
1324
- removePlugin: Q7
1322
+ addPlugin: X7,
1323
+ removePlugin: Z7
1325
1324
  }), e.debugMode = function() {
1326
1325
  s = !1;
1327
1326
  }, e.safeMode = function() {
@@ -1336,7 +1335,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1336
1335
  return Object.assign(e, o9), e;
1337
1336
  }, z9 = R9({});
1338
1337
  z9.newInstance = () => R9({}), t.exports = z9, z9.HighlightJS = z9, z9.default = z9;
1339
- })))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS$1 = [
1338
+ })))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS$1 = [
1340
1339
  "true",
1341
1340
  "false",
1342
1341
  "null",
@@ -1380,6 +1379,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
1380
1379
  "localStorage",
1381
1380
  "sessionStorage",
1382
1381
  "module",
1382
+ "self",
1383
1383
  "global"
1384
1384
  ], BUILT_INS$1 = [].concat(BUILT_IN_GLOBALS$1, TYPES$1, ERROR_TYPES$1);
1385
1385
  function javascript(e) {
@@ -1434,7 +1434,7 @@ function javascript(e) {
1434
1434
  keywords: l,
1435
1435
  contains: []
1436
1436
  }, x = {
1437
- begin: "html`",
1437
+ begin: ".?html`",
1438
1438
  end: "",
1439
1439
  starts: {
1440
1440
  end: "`",
@@ -1443,7 +1443,7 @@ function javascript(e) {
1443
1443
  subLanguage: "xml"
1444
1444
  }
1445
1445
  }, w = {
1446
- begin: "css`",
1446
+ begin: ".?css`",
1447
1447
  end: "",
1448
1448
  starts: {
1449
1449
  end: "`",
@@ -1452,7 +1452,7 @@ function javascript(e) {
1452
1452
  subLanguage: "css"
1453
1453
  }
1454
1454
  }, k = {
1455
- begin: "gql`",
1455
+ begin: ".?gql`",
1456
1456
  end: "",
1457
1457
  starts: {
1458
1458
  end: "`",
@@ -1519,13 +1519,13 @@ function javascript(e) {
1519
1519
  contains: ["self"].concat(j7)
1520
1520
  });
1521
1521
  let M7 = [].concat(A7, y.contains), N7 = M7.concat([{
1522
- begin: /\(/,
1522
+ begin: /(\s*)\(/,
1523
1523
  end: /\)/,
1524
1524
  keywords: l,
1525
1525
  contains: ["self"].concat(M7)
1526
1526
  }]), P7 = {
1527
1527
  className: "params",
1528
- begin: /\(/,
1528
+ begin: /(\s*)\(/,
1529
1529
  end: /\)/,
1530
1530
  excludeBegin: !0,
1531
1531
  excludeEnd: !0,
@@ -1593,8 +1593,9 @@ function javascript(e) {
1593
1593
  match: t.concat(/\b/, B7([
1594
1594
  ...BUILT_IN_GLOBALS$1,
1595
1595
  "super",
1596
- "import"
1597
- ]), r, t.lookahead(/\(/)),
1596
+ "import",
1597
+ "await"
1598
+ ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
1598
1599
  className: "title.function",
1599
1600
  relevance: 0
1600
1601
  }, H7 = {
@@ -1646,7 +1647,7 @@ function javascript(e) {
1646
1647
  PARAMS_CONTAINS: N7,
1647
1648
  CLASS_REFERENCE: I7
1648
1649
  },
1649
- illegal: /#(?![$_A-z])/,
1650
+ illegal: /#(?![$_A-Za-z])/,
1650
1651
  contains: [
1651
1652
  e.SHEBANG({
1652
1653
  label: "shebang",
@@ -1665,8 +1666,8 @@ function javascript(e) {
1665
1666
  _,
1666
1667
  I7,
1667
1668
  {
1668
- className: "attr",
1669
- begin: r + t.lookahead(":"),
1669
+ scope: "attr",
1670
+ match: r + t.lookahead(":"),
1670
1671
  relevance: 0
1671
1672
  },
1672
1673
  G7,
@@ -1695,7 +1696,7 @@ function javascript(e) {
1695
1696
  skip: !0
1696
1697
  },
1697
1698
  {
1698
- begin: /\(/,
1699
+ begin: /(\s*)\(/,
1699
1700
  end: /\)/,
1700
1701
  excludeBegin: !0,
1701
1702
  excludeEnd: !0,
@@ -1882,7 +1883,7 @@ function xml(e) {
1882
1883
  starts: {
1883
1884
  end: /<\/style>/,
1884
1885
  returnEnd: !0,
1885
- subLanguage: ["css", "xml"]
1886
+ subLanguage: "css"
1886
1887
  }
1887
1888
  },
1888
1889
  {
@@ -1894,11 +1895,7 @@ function xml(e) {
1894
1895
  starts: {
1895
1896
  end: /<\/script>/,
1896
1897
  returnEnd: !0,
1897
- subLanguage: [
1898
- "javascript",
1899
- "handlebars",
1900
- "xml"
1901
- ]
1898
+ subLanguage: "javascript"
1902
1899
  }
1903
1900
  },
1904
1901
  {
@@ -22166,7 +22163,7 @@ var entities_exports = /* @__PURE__ */ __export({
22166
22163
  t.src_Cc
22167
22164
  ].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
22168
22165
  let r = "[><|]";
22169
- 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;
22166
+ 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}|[@/\\[\\]()]).){1,50}@)?`, 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}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${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_]{0,63}", 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 = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`, t.tpl_link_no_ip_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`, t;
22170
22167
  }
22171
22168
  function i(e) {
22172
22169
  return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
@@ -22206,17 +22203,17 @@ var entities_exports = /* @__PURE__ */ __export({
22206
22203
  var x = {
22207
22204
  "http:": { validate: function(e, t, n) {
22208
22205
  let r = e.slice(t);
22209
- 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;
22206
+ 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;
22210
22207
  } },
22211
22208
  "https:": "http:",
22212
22209
  "ftp:": "http:",
22213
22210
  "//": { validate: function(e, t, n) {
22214
22211
  let r = e.slice(t);
22215
- 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;
22212
+ 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;
22216
22213
  } },
22217
22214
  "mailto:": { validate: function(e, t, n) {
22218
22215
  let r = e.slice(t);
22219
- 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;
22216
+ 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;
22220
22217
  } }
22221
22218
  }, w = "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]", k = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
22222
22219
  function $(e) {
@@ -22240,7 +22237,7 @@ var entities_exports = /* @__PURE__ */ __export({
22240
22237
  let o = [];
22241
22238
  e.__compiled__ = {};
22242
22239
  function _(e, t) {
22243
- throw Error("(LinkifyIt) Invalid schema \"" + e + "\": " + t);
22240
+ throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`);
22244
22241
  }
22245
22242
  Object.keys(e.__schemas__).forEach(function(t) {
22246
22243
  let n = e.__schemas__[t];
@@ -22267,7 +22264,7 @@ var entities_exports = /* @__PURE__ */ __export({
22267
22264
  let y = Object.keys(e.__compiled__).filter(function(t) {
22268
22265
  return t.length > 0 && e.__compiled__[t];
22269
22266
  }).map(p).join("|");
22270
- e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + y + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + y + ")", "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");
22267
+ e.re.schema_test = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${y})`, "i"), e.re.schema_search = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${y})`, "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");
22271
22268
  }
22272
22269
  function M7(e, t, n, r) {
22273
22270
  let i = e.slice(n, r);
@@ -22343,7 +22340,7 @@ var entities_exports = /* @__PURE__ */ __export({
22343
22340
  return e !== n[t - 1];
22344
22341
  }).reverse(), j7(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, j7(this), this);
22345
22342
  }, N7.prototype.normalize = function(e) {
22346
- e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
22343
+ e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
22347
22344
  }, N7.prototype.onCompile = function() {}, t.exports = N7;
22348
22345
  })), require_punycode = /* @__PURE__ */ __commonJSMin(((e, t) => {
22349
22346
  (function(n) {
@@ -27260,14 +27257,17 @@ function bash(e) {
27260
27257
  begin: /\$\(/,
27261
27258
  end: /\)/,
27262
27259
  contains: [e.BACKSLASH_ESCAPE]
27263
- }, o = {
27260
+ }, o = e.inherit(e.COMMENT(), {
27261
+ match: [/(^|\s)/, /#.*$/],
27262
+ scope: { 2: "comment" }
27263
+ }), s = {
27264
27264
  begin: /<<-?\s*(?=\w+)/,
27265
27265
  starts: { contains: [e.END_SAME_AS_BEGIN({
27266
27266
  begin: /(\w+)/,
27267
27267
  end: /(\w+)/,
27268
27268
  className: "string"
27269
27269
  })] }
27270
- }, s = {
27270
+ }, l = {
27271
27271
  className: "string",
27272
27272
  begin: /"/,
27273
27273
  end: /"/,
@@ -27277,15 +27277,12 @@ function bash(e) {
27277
27277
  i
27278
27278
  ]
27279
27279
  };
27280
- i.contains.push(s);
27281
- let l = {
27282
- className: "",
27283
- begin: /\\"/
27284
- }, d = {
27280
+ i.contains.push(l);
27281
+ let d = { match: /\\"/ }, f = {
27285
27282
  className: "string",
27286
27283
  begin: /'/,
27287
27284
  end: /'/
27288
- }, f = {
27285
+ }, p = { match: /\\'/ }, _ = {
27289
27286
  begin: /\$?\(\(/,
27290
27287
  end: /\)\)/,
27291
27288
  contains: [
@@ -27296,7 +27293,7 @@ function bash(e) {
27296
27293
  e.NUMBER_MODE,
27297
27294
  n
27298
27295
  ]
27299
- }, p = e.SHEBANG({
27296
+ }, y = e.SHEBANG({
27300
27297
  binary: `(${[
27301
27298
  "fish",
27302
27299
  "bash",
@@ -27309,18 +27306,19 @@ function bash(e) {
27309
27306
  "scsh"
27310
27307
  ].join("|")})`,
27311
27308
  relevance: 10
27312
- }), _ = {
27309
+ }), x = {
27313
27310
  className: "function",
27314
27311
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
27315
27312
  returnBegin: !0,
27316
27313
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
27317
27314
  relevance: 0
27318
- }, y = [
27315
+ }, w = [
27319
27316
  "if",
27320
27317
  "then",
27321
27318
  "else",
27322
27319
  "elif",
27323
27320
  "fi",
27321
+ "time",
27324
27322
  "for",
27325
27323
  "while",
27326
27324
  "until",
@@ -27329,9 +27327,10 @@ function bash(e) {
27329
27327
  "done",
27330
27328
  "case",
27331
27329
  "esac",
27330
+ "coproc",
27332
27331
  "function",
27333
27332
  "select"
27334
- ], x = ["true", "false"], w = { match: /(\/[a-z._-]+)+/ }, k = [
27333
+ ], k = ["true", "false"], $ = { match: /(\/[a-z._-]+)+/ }, A7 = [
27335
27334
  "break",
27336
27335
  "cd",
27337
27336
  "continue",
@@ -27350,7 +27349,7 @@ function bash(e) {
27350
27349
  "trap",
27351
27350
  "umask",
27352
27351
  "unset"
27353
- ], $ = [
27352
+ ], j7 = [
27354
27353
  "alias",
27355
27354
  "bind",
27356
27355
  "builtin",
@@ -27368,47 +27367,49 @@ function bash(e) {
27368
27367
  "read",
27369
27368
  "readarray",
27370
27369
  "source",
27370
+ "sudo",
27371
27371
  "type",
27372
27372
  "typeset",
27373
27373
  "ulimit",
27374
27374
  "unalias"
27375
- ], A7 = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), j7 = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
27375
+ ], M7 = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), N7 = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
27376
27376
  return {
27377
27377
  name: "Bash",
27378
- aliases: ["sh"],
27378
+ aliases: ["sh", "zsh"],
27379
27379
  keywords: {
27380
27380
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
27381
- keyword: y,
27382
- literal: x,
27381
+ keyword: w,
27382
+ literal: k,
27383
27383
  built_in: [
27384
- ...k,
27385
- ...$,
27384
+ ...A7,
27385
+ ...j7,
27386
27386
  "set",
27387
27387
  "shopt",
27388
- ...A7,
27389
- ...j7
27388
+ ...M7,
27389
+ ...N7
27390
27390
  ]
27391
27391
  },
27392
27392
  contains: [
27393
- p,
27393
+ y,
27394
27394
  e.SHEBANG(),
27395
+ x,
27395
27396
  _,
27396
- f,
27397
- e.HASH_COMMENT_MODE,
27398
27397
  o,
27399
- w,
27400
27398
  s,
27399
+ $,
27401
27400
  l,
27402
27401
  d,
27402
+ f,
27403
+ p,
27403
27404
  n
27404
27405
  ]
27405
27406
  };
27406
27407
  }
27407
27408
  function python(e) {
27408
- let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
27409
+ let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
27409
27410
  $pattern: /[A-Za-z]\w+|__\w+__/,
27410
27411
  keyword: r,
27411
- built_in: /* @__PURE__ */ "__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
27412
+ built_in: /* @__PURE__ */ "__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
27412
27413
  literal: [
27413
27414
  "__debug__",
27414
27415
  "Ellipsis",
@@ -27461,7 +27462,7 @@ function python(e) {
27461
27462
  relevance: 10
27462
27463
  },
27463
27464
  {
27464
- begin: /([fF][rR]|[rR][fF]|[fF])'''/,
27465
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
27465
27466
  end: /'''/,
27466
27467
  contains: [
27467
27468
  e.BACKSLASH_ESCAPE,
@@ -27471,7 +27472,7 @@ function python(e) {
27471
27472
  ]
27472
27473
  },
27473
27474
  {
27474
- begin: /([fF][rR]|[rR][fF]|[fF])"""/,
27475
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
27475
27476
  end: /"""/,
27476
27477
  contains: [
27477
27478
  e.BACKSLASH_ESCAPE,
@@ -27499,7 +27500,7 @@ function python(e) {
27499
27500
  end: /"/
27500
27501
  },
27501
27502
  {
27502
- begin: /([fF][rR]|[rR][fF]|[fF])'/,
27503
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
27503
27504
  end: /'/,
27504
27505
  contains: [
27505
27506
  e.BACKSLASH_ESCAPE,
@@ -27508,7 +27509,7 @@ function python(e) {
27508
27509
  ]
27509
27510
  },
27510
27511
  {
27511
- begin: /([fF][rR]|[rR][fF]|[fF])"/,
27512
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
27512
27513
  end: /"/,
27513
27514
  contains: [
27514
27515
  e.BACKSLASH_ESCAPE,
@@ -27579,11 +27580,18 @@ function python(e) {
27579
27580
  contains: [
27580
27581
  o,
27581
27582
  y,
27582
- { begin: /\bself\b/ },
27583
+ {
27584
+ scope: "variable.language",
27585
+ match: /\bself\b/
27586
+ },
27583
27587
  {
27584
27588
  beginKeywords: "if",
27585
27589
  relevance: 0
27586
27590
  },
27591
+ {
27592
+ match: /\bor\b/,
27593
+ scope: "keyword"
27594
+ },
27587
27595
  d,
27588
27596
  x,
27589
27597
  e.HASH_COMMENT_MODE,
@@ -27632,7 +27640,7 @@ function python(e) {
27632
27640
  ]
27633
27641
  };
27634
27642
  }
27635
- var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS = [
27643
+ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS = [
27636
27644
  "true",
27637
27645
  "false",
27638
27646
  "null",
@@ -27676,6 +27684,7 @@ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.
27676
27684
  "localStorage",
27677
27685
  "sessionStorage",
27678
27686
  "module",
27687
+ "self",
27679
27688
  "global"
27680
27689
  ], BUILT_INS = [].concat(BUILT_IN_GLOBALS, TYPES, ERROR_TYPES);
27681
27690
  function javascript$1(e) {
@@ -27730,7 +27739,7 @@ function javascript$1(e) {
27730
27739
  keywords: l,
27731
27740
  contains: []
27732
27741
  }, x = {
27733
- begin: "html`",
27742
+ begin: ".?html`",
27734
27743
  end: "",
27735
27744
  starts: {
27736
27745
  end: "`",
@@ -27739,7 +27748,7 @@ function javascript$1(e) {
27739
27748
  subLanguage: "xml"
27740
27749
  }
27741
27750
  }, w = {
27742
- begin: "css`",
27751
+ begin: ".?css`",
27743
27752
  end: "",
27744
27753
  starts: {
27745
27754
  end: "`",
@@ -27748,7 +27757,7 @@ function javascript$1(e) {
27748
27757
  subLanguage: "css"
27749
27758
  }
27750
27759
  }, k = {
27751
- begin: "gql`",
27760
+ begin: ".?gql`",
27752
27761
  end: "",
27753
27762
  starts: {
27754
27763
  end: "`",
@@ -27815,13 +27824,13 @@ function javascript$1(e) {
27815
27824
  contains: ["self"].concat(j7)
27816
27825
  });
27817
27826
  let M7 = [].concat(A7, y.contains), N7 = M7.concat([{
27818
- begin: /\(/,
27827
+ begin: /(\s*)\(/,
27819
27828
  end: /\)/,
27820
27829
  keywords: l,
27821
27830
  contains: ["self"].concat(M7)
27822
27831
  }]), P7 = {
27823
27832
  className: "params",
27824
- begin: /\(/,
27833
+ begin: /(\s*)\(/,
27825
27834
  end: /\)/,
27826
27835
  excludeBegin: !0,
27827
27836
  excludeEnd: !0,
@@ -27889,8 +27898,9 @@ function javascript$1(e) {
27889
27898
  match: t.concat(/\b/, B7([
27890
27899
  ...BUILT_IN_GLOBALS,
27891
27900
  "super",
27892
- "import"
27893
- ]), r, t.lookahead(/\(/)),
27901
+ "import",
27902
+ "await"
27903
+ ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
27894
27904
  className: "title.function",
27895
27905
  relevance: 0
27896
27906
  }, H7 = {
@@ -27942,7 +27952,7 @@ function javascript$1(e) {
27942
27952
  PARAMS_CONTAINS: N7,
27943
27953
  CLASS_REFERENCE: I7
27944
27954
  },
27945
- illegal: /#(?![$_A-z])/,
27955
+ illegal: /#(?![$_A-Za-z])/,
27946
27956
  contains: [
27947
27957
  e.SHEBANG({
27948
27958
  label: "shebang",
@@ -27961,8 +27971,8 @@ function javascript$1(e) {
27961
27971
  _,
27962
27972
  I7,
27963
27973
  {
27964
- className: "attr",
27965
- begin: r + t.lookahead(":"),
27974
+ scope: "attr",
27975
+ match: r + t.lookahead(":"),
27966
27976
  relevance: 0
27967
27977
  },
27968
27978
  G7,
@@ -27991,7 +28001,7 @@ function javascript$1(e) {
27991
28001
  skip: !0
27992
28002
  },
27993
28003
  {
27994
- begin: /\(/,
28004
+ begin: /(\s*)\(/,
27995
28005
  end: /\)/,
27996
28006
  excludeBegin: !0,
27997
28007
  excludeEnd: !0,
@@ -28066,7 +28076,7 @@ function javascript$1(e) {
28066
28076
  };
28067
28077
  }
28068
28078
  function typescript(e) {
28069
- let t = javascript$1(e), n = IDENT_RE, r = [
28079
+ let t = e.regex, n = javascript$1(e), r = IDENT_RE, i = [
28070
28080
  "any",
28071
28081
  "void",
28072
28082
  "number",
@@ -28077,29 +28087,33 @@ function typescript(e) {
28077
28087
  "symbol",
28078
28088
  "bigint",
28079
28089
  "unknown"
28080
- ], i = {
28081
- beginKeywords: "namespace",
28082
- end: /\{/,
28083
- excludeEnd: !0,
28084
- contains: [t.exports.CLASS_REFERENCE]
28085
- }, o = {
28090
+ ], o = {
28091
+ begin: [
28092
+ /namespace/,
28093
+ /\s+/,
28094
+ e.IDENT_RE
28095
+ ],
28096
+ beginScope: {
28097
+ 1: "keyword",
28098
+ 3: "title.class"
28099
+ }
28100
+ }, s = {
28086
28101
  beginKeywords: "interface",
28087
28102
  end: /\{/,
28088
28103
  excludeEnd: !0,
28089
28104
  keywords: {
28090
28105
  keyword: "interface extends",
28091
- built_in: r
28106
+ built_in: i
28092
28107
  },
28093
- contains: [t.exports.CLASS_REFERENCE]
28094
- }, s = {
28108
+ contains: [n.exports.CLASS_REFERENCE]
28109
+ }, l = {
28095
28110
  className: "meta",
28096
28111
  relevance: 10,
28097
28112
  begin: /^\s*['"]use strict['"]/
28098
- }, l = {
28113
+ }, d = {
28099
28114
  $pattern: IDENT_RE,
28100
28115
  keyword: KEYWORDS.concat([
28101
28116
  "type",
28102
- "namespace",
28103
28117
  "interface",
28104
28118
  "public",
28105
28119
  "private",
@@ -28109,26 +28123,34 @@ function typescript(e) {
28109
28123
  "abstract",
28110
28124
  "readonly",
28111
28125
  "enum",
28112
- "override"
28126
+ "override",
28127
+ "satisfies"
28113
28128
  ]),
28114
28129
  literal: LITERALS,
28115
- built_in: BUILT_INS.concat(r),
28130
+ built_in: BUILT_INS.concat(i),
28116
28131
  "variable.language": BUILT_IN_VARIABLES
28117
- }, d = {
28132
+ }, f = {
28118
28133
  className: "meta",
28119
- begin: "@" + n
28120
- }, f = (e, t, n) => {
28134
+ begin: "@" + r
28135
+ }, p = (e, t, n) => {
28121
28136
  let r = e.contains.findIndex((e) => e.label === t);
28122
28137
  if (r === -1) throw Error("can not find mode to replace");
28123
28138
  e.contains.splice(r, 1, n);
28124
28139
  };
28125
- Object.assign(t.keywords, l), t.exports.PARAMS_CONTAINS.push(d), t.contains = t.contains.concat([
28126
- d,
28127
- i,
28128
- o
28129
- ]), f(t, "shebang", e.SHEBANG()), f(t, "use_strict", s);
28130
- let p = t.contains.find((e) => e.label === "func.def");
28131
- return p.relevance = 0, Object.assign(t, {
28140
+ Object.assign(n.keywords, d), n.exports.PARAMS_CONTAINS.push(f);
28141
+ let _ = n.contains.find((e) => e.scope === "attr"), y = Object.assign({}, _, { match: t.concat(r, t.lookahead(/\s*\?:/)) });
28142
+ n.exports.PARAMS_CONTAINS.push([
28143
+ n.exports.CLASS_REFERENCE,
28144
+ _,
28145
+ y
28146
+ ]), n.contains = n.contains.concat([
28147
+ f,
28148
+ o,
28149
+ s,
28150
+ y
28151
+ ]), p(n, "shebang", e.SHEBANG()), p(n, "use_strict", l);
28152
+ let x = n.contains.find((e) => e.label === "func.def");
28153
+ return x.relevance = 0, Object.assign(n, {
28132
28154
  name: "TypeScript",
28133
28155
  aliases: [
28134
28156
  "ts",
@@ -28136,7 +28158,7 @@ function typescript(e) {
28136
28158
  "mts",
28137
28159
  "cts"
28138
28160
  ]
28139
- }), t;
28161
+ }), n;
28140
28162
  }
28141
28163
  var import_markdown_it = /* @__PURE__ */ __toESM(require_markdown_it()), VueMarkdown_default = defineComponent({
28142
28164
  name: "VueMarkdown",