@blueking/ai-blueking 2.0.0-dev.26 → 2.0.0-dev.27

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.
@@ -742,21 +742,21 @@ var _hoisted_1$43 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
742
742
  H && clearTimeout(H), H = window.setTimeout(() => {
743
743
  L();
744
744
  }, e);
745
- }, Og = () => {
745
+ }, Eg = () => {
746
746
  G(200);
747
747
  }, q = () => {
748
748
  G(300);
749
749
  }, J = (e) => {
750
750
  i.value && l.value?.contains(e.target) || z();
751
- }, Ag = (e) => {
751
+ }, Og = (e) => {
752
752
  !k.value || !i.value || e.target instanceof HTMLElement && e.target.contains(k.value?.anchorNode) && z();
753
753
  }, $ = () => {
754
754
  d.value?.show();
755
755
  };
756
756
  return onMounted(() => {
757
- document.addEventListener("selectionchange", q), document.addEventListener("mouseup", Og), document.addEventListener("mousedown", J), document.addEventListener("scroll", Ag, !0), window.addEventListener("resize", z), window.addEventListener("blur", z);
757
+ document.addEventListener("selectionchange", q), document.addEventListener("mouseup", Eg), document.addEventListener("mousedown", J), document.addEventListener("scroll", Og, !0), window.addEventListener("resize", z), window.addEventListener("blur", z);
758
758
  }), onUnmounted(() => {
759
- document.removeEventListener("selectionchange", q), document.removeEventListener("mouseup", Og), document.removeEventListener("mousedown", J), document.removeEventListener("scroll", Ag, !0), window.removeEventListener("resize", z), window.removeEventListener("blur", z);
759
+ document.removeEventListener("selectionchange", q), document.removeEventListener("mouseup", Eg), document.removeEventListener("mousedown", J), document.removeEventListener("scroll", Og, !0), window.removeEventListener("resize", z), window.removeEventListener("blur", z);
760
760
  }), (n, r) => (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, { name: "ai-fade" }, {
761
761
  default: withCtx(() => [i.value ? (openBlock(), createElementBlock("div", {
762
762
  key: 0,
@@ -1133,7 +1133,7 @@ var _hoisted_1$41 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1133
1133
  function K() {
1134
1134
  v !== void 0 && clearTimeout(v), E = 0, d = T = m = v = void 0;
1135
1135
  }
1136
- function Og() {
1136
+ function Eg() {
1137
1137
  return v === void 0 ? _ : G(i());
1138
1138
  }
1139
1139
  function q() {
@@ -1144,7 +1144,7 @@ var _hoisted_1$41 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1144
1144
  }
1145
1145
  return v === void 0 && (v = setTimeout(H, n)), _;
1146
1146
  }
1147
- return q.cancel = K, q.flush = Og, q;
1147
+ return q.cancel = K, q.flush = Eg, q;
1148
1148
  }
1149
1149
  n.exports = u;
1150
1150
  })), require_throttle = /* @__PURE__ */ __commonJSMin(((e, n) => {
@@ -4832,7 +4832,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4832
4832
  return a;
4833
4833
  }).map((e) => `(${e})`).join(n);
4834
4834
  }
4835
- var G = /\b\B/, K = "[a-zA-Z]\\w*", Og = "[a-zA-Z_]\\w*", q = "\\b\\d+(\\.\\d+)?", kg = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", J = "\\b(0b[01]+)", Z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Ag = (e = {}) => {
4835
+ var G = /\b\B/, K = "[a-zA-Z]\\w*", Eg = "[a-zA-Z_]\\w*", q = "\\b\\d+(\\.\\d+)?", Dg = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", J = "\\b(0b[01]+)", Z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Og = (e = {}) => {
4836
4836
  let n = /^#![ ]*\//;
4837
4837
  return e.binary && (e.begin = k(n, /.*\b/, e.binary, /\b.*/)), o({
4838
4838
  scope: "meta",
@@ -4846,7 +4846,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4846
4846
  }, Q = {
4847
4847
  begin: "\\\\[\\s\\S]",
4848
4848
  relevance: 0
4849
- }, jg = {
4849
+ }, kg = {
4850
4850
  scope: "string",
4851
4851
  begin: "'",
4852
4852
  end: "'",
@@ -4858,7 +4858,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4858
4858
  end: "\"",
4859
4859
  illegal: "\\n",
4860
4860
  contains: [Q]
4861
- }, Mg = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, Ng = function(e, n, r = {}) {
4861
+ }, Ag = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, jg = function(e, n, r = {}) {
4862
4862
  let i = o({
4863
4863
  scope: "comment",
4864
4864
  begin: e,
@@ -4874,19 +4874,19 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4874
4874
  });
4875
4875
  let a = I("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
4876
4876
  return i.contains.push({ begin: k(/[ ]+/, "(", a, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), i;
4877
- }, Pg = Ng("//", "$"), Fg = Ng("/\\*", "\\*/"), Ig = Ng("#", "$"), Lg = {
4877
+ }, Mg = jg("//", "$"), Ng = jg("/\\*", "\\*/"), Pg = jg("#", "$"), Fg = {
4878
4878
  scope: "number",
4879
4879
  begin: q,
4880
4880
  relevance: 0
4881
- }, Rg = {
4881
+ }, Ig = {
4882
4882
  scope: "number",
4883
- begin: kg,
4883
+ begin: Dg,
4884
4884
  relevance: 0
4885
- }, zg = {
4885
+ }, Lg = {
4886
4886
  scope: "number",
4887
4887
  begin: J,
4888
4888
  relevance: 0
4889
- }, Bg = {
4889
+ }, Rg = {
4890
4890
  scope: "regexp",
4891
4891
  begin: /\/(?=[^/\n]*\/)/,
4892
4892
  end: /\/[gimuy]*/,
@@ -4896,28 +4896,28 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4896
4896
  relevance: 0,
4897
4897
  contains: [Q]
4898
4898
  }]
4899
- }, Vg = {
4899
+ }, zg = {
4900
4900
  scope: "title",
4901
4901
  begin: K,
4902
4902
  relevance: 0
4903
- }, Hg = {
4903
+ }, Bg = {
4904
4904
  scope: "title",
4905
- begin: Og,
4905
+ begin: Eg,
4906
4906
  relevance: 0
4907
- }, Ug = {
4908
- begin: "\\.\\s*" + Og,
4907
+ }, Vg = {
4908
+ begin: "\\.\\s*" + Eg,
4909
4909
  relevance: 0
4910
- }, Wg = /* @__PURE__ */ Object.freeze({
4910
+ }, Hg = /* @__PURE__ */ Object.freeze({
4911
4911
  __proto__: null,
4912
- APOS_STRING_MODE: jg,
4912
+ APOS_STRING_MODE: kg,
4913
4913
  BACKSLASH_ESCAPE: Q,
4914
- BINARY_NUMBER_MODE: zg,
4914
+ BINARY_NUMBER_MODE: Lg,
4915
4915
  BINARY_NUMBER_RE: J,
4916
- COMMENT: Ng,
4917
- C_BLOCK_COMMENT_MODE: Fg,
4918
- C_LINE_COMMENT_MODE: Pg,
4919
- C_NUMBER_MODE: Rg,
4920
- C_NUMBER_RE: kg,
4916
+ COMMENT: jg,
4917
+ C_BLOCK_COMMENT_MODE: Ng,
4918
+ C_LINE_COMMENT_MODE: Mg,
4919
+ C_NUMBER_MODE: Ig,
4920
+ C_NUMBER_RE: Dg,
4921
4921
  END_SAME_AS_BEGIN: function(e) {
4922
4922
  return Object.assign(e, {
4923
4923
  "on:begin": (e, n) => {
@@ -4928,43 +4928,43 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4928
4928
  }
4929
4929
  });
4930
4930
  },
4931
- HASH_COMMENT_MODE: Ig,
4931
+ HASH_COMMENT_MODE: Pg,
4932
4932
  IDENT_RE: K,
4933
4933
  MATCH_NOTHING_RE: G,
4934
- METHOD_GUARD: Ug,
4935
- NUMBER_MODE: Lg,
4934
+ METHOD_GUARD: Vg,
4935
+ NUMBER_MODE: Fg,
4936
4936
  NUMBER_RE: q,
4937
- PHRASAL_WORDS_MODE: Mg,
4937
+ PHRASAL_WORDS_MODE: Ag,
4938
4938
  QUOTE_STRING_MODE: $,
4939
- REGEXP_MODE: Bg,
4939
+ REGEXP_MODE: Rg,
4940
4940
  RE_STARTERS_RE: Z,
4941
- SHEBANG: Ag,
4942
- TITLE_MODE: Vg,
4943
- UNDERSCORE_IDENT_RE: Og,
4944
- UNDERSCORE_TITLE_MODE: Hg
4941
+ SHEBANG: Og,
4942
+ TITLE_MODE: zg,
4943
+ UNDERSCORE_IDENT_RE: Eg,
4944
+ UNDERSCORE_TITLE_MODE: Bg
4945
4945
  });
4946
- function Gg(e, n) {
4946
+ function Ug(e, n) {
4947
4947
  e.input[e.index - 1] === "." && n.ignoreMatch();
4948
4948
  }
4949
- function Kg(e, n) {
4949
+ function Wg(e, n) {
4950
4950
  e.className !== void 0 && (e.scope = e.className, delete e.className);
4951
4951
  }
4952
- function qg(e, n) {
4953
- n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Gg, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
4952
+ function Gg(e, n) {
4953
+ n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Ug, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
4954
4954
  }
4955
- function Jg(e, n) {
4955
+ function Kg(e, n) {
4956
4956
  Array.isArray(e.illegal) && (e.illegal = I(...e.illegal));
4957
4957
  }
4958
- function Yg(e, n) {
4958
+ function qg(e, n) {
4959
4959
  if (e.match) {
4960
4960
  if (e.begin || e.end) throw Error("begin & end are not supported with match");
4961
4961
  e.begin = e.match, delete e.match;
4962
4962
  }
4963
4963
  }
4964
- function Xg(e, n) {
4964
+ function Jg(e, n) {
4965
4965
  e.relevance === void 0 && (e.relevance = 1);
4966
4966
  }
4967
- var Zg = (e, n) => {
4967
+ var Yg = (e, n) => {
4968
4968
  if (!e.beforeMatch) return;
4969
4969
  if (e.starts) throw Error("beforeMatch cannot be used with starts");
4970
4970
  let r = Object.assign({}, e);
@@ -4974,7 +4974,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4974
4974
  relevance: 0,
4975
4975
  contains: [Object.assign(r, { endsParent: !0 })]
4976
4976
  }, e.relevance = 0, delete r.beforeMatch;
4977
- }, Qg = [
4977
+ }, Xg = [
4978
4978
  "of",
4979
4979
  "and",
4980
4980
  "for",
@@ -4986,58 +4986,58 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4986
4986
  "parent",
4987
4987
  "list",
4988
4988
  "value"
4989
- ], $g = "keyword";
4990
- function e_(e, n, r = $g) {
4989
+ ], Zg = "keyword";
4990
+ function Qg(e, n, r = Zg) {
4991
4991
  let i = Object.create(null);
4992
4992
  return typeof e == "string" ? a(r, e.split(" ")) : Array.isArray(e) ? a(r, e) : Object.keys(e).forEach(function(r) {
4993
- Object.assign(i, e_(e[r], n, r));
4993
+ Object.assign(i, Qg(e[r], n, r));
4994
4994
  }), i;
4995
4995
  function a(e, r) {
4996
4996
  n && (r = r.map((e) => e.toLowerCase())), r.forEach(function(n) {
4997
4997
  let r = n.split("|");
4998
- i[r[0]] = [e, t_(r[0], r[1])];
4998
+ i[r[0]] = [e, $g(r[0], r[1])];
4999
4999
  });
5000
5000
  }
5001
5001
  }
5002
- function t_(e, n) {
5003
- return n ? Number(n) : n_(e) ? 0 : 1;
5002
+ function $g(e, n) {
5003
+ return n ? Number(n) : e_(e) ? 0 : 1;
5004
5004
  }
5005
- function n_(e) {
5006
- return Qg.includes(e.toLowerCase());
5005
+ function e_(e) {
5006
+ return Xg.includes(e.toLowerCase());
5007
5007
  }
5008
- var r_ = {}, i_ = (e) => {
5008
+ var t_ = {}, n_ = (e) => {
5009
5009
  console.error(e);
5010
- }, a_ = (e, ...n) => {
5010
+ }, r_ = (e, ...n) => {
5011
5011
  console.log(`WARN: ${e}`, ...n);
5012
- }, o_ = (e, n) => {
5013
- r_[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), r_[`${e}/${n}`] = !0);
5014
- }, s_ = /* @__PURE__ */ Error();
5015
- function c_(e, n, { key: r }) {
5012
+ }, i_ = (e, n) => {
5013
+ t_[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), t_[`${e}/${n}`] = !0);
5014
+ }, a_ = /* @__PURE__ */ Error();
5015
+ function o_(e, n, { key: r }) {
5016
5016
  let i = 0, a = e[r], o = {}, s = {};
5017
5017
  for (let e = 1; e <= n.length; e++) s[e + i] = a[e], o[e + i] = !0, i += L(n[e - 1]);
5018
5018
  e[r] = s, e[r]._emit = o, e[r]._multi = !0;
5019
5019
  }
5020
- function l_(e) {
5020
+ function s_(e) {
5021
5021
  if (Array.isArray(e.begin)) {
5022
- if (e.skip || e.excludeBegin || e.returnBegin) throw i_("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), s_;
5023
- if (typeof e.beginScope != "object" || e.beginScope === null) throw i_("beginScope must be object"), s_;
5024
- c_(e, e.begin, { key: "beginScope" }), e.begin = H(e.begin, { joinWith: "" });
5022
+ if (e.skip || e.excludeBegin || e.returnBegin) throw n_("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), a_;
5023
+ if (typeof e.beginScope != "object" || e.beginScope === null) throw n_("beginScope must be object"), a_;
5024
+ o_(e, e.begin, { key: "beginScope" }), e.begin = H(e.begin, { joinWith: "" });
5025
5025
  }
5026
5026
  }
5027
- function u_(e) {
5027
+ function c_(e) {
5028
5028
  if (Array.isArray(e.end)) {
5029
- if (e.skip || e.excludeEnd || e.returnEnd) throw i_("skip, excludeEnd, returnEnd not compatible with endScope: {}"), s_;
5030
- if (typeof e.endScope != "object" || e.endScope === null) throw i_("endScope must be object"), s_;
5031
- c_(e, e.end, { key: "endScope" }), e.end = H(e.end, { joinWith: "" });
5029
+ if (e.skip || e.excludeEnd || e.returnEnd) throw n_("skip, excludeEnd, returnEnd not compatible with endScope: {}"), a_;
5030
+ if (typeof e.endScope != "object" || e.endScope === null) throw n_("endScope must be object"), a_;
5031
+ o_(e, e.end, { key: "endScope" }), e.end = H(e.end, { joinWith: "" });
5032
5032
  }
5033
5033
  }
5034
- function d_(e) {
5034
+ function l_(e) {
5035
5035
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
5036
5036
  }
5037
- function f_(e) {
5038
- d_(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), l_(e), u_(e);
5037
+ function u_(e) {
5038
+ l_(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), s_(e), c_(e);
5039
5039
  }
5040
- function p_(e) {
5040
+ function d_(e) {
5041
5041
  function n(n, r) {
5042
5042
  return new RegExp(v(n), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
5043
5043
  }
@@ -5099,18 +5099,18 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5099
5099
  let o = r;
5100
5100
  if (r.isCompiled) return o;
5101
5101
  [
5102
- Kg,
5103
- Yg,
5104
- f_,
5105
- Zg
5106
- ].forEach((e) => e(r, i)), e.compilerExtensions.forEach((e) => e(r, i)), r.__beforeBegin = null, [
5102
+ Wg,
5107
5103
  qg,
5108
- Jg,
5109
- Xg
5104
+ u_,
5105
+ Yg
5106
+ ].forEach((e) => e(r, i)), e.compilerExtensions.forEach((e) => e(r, i)), r.__beforeBegin = null, [
5107
+ Gg,
5108
+ Kg,
5109
+ Jg
5110
5110
  ].forEach((e) => e(r, i)), r.isCompiled = !0;
5111
5111
  let l = null;
5112
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l ||= /\w+/, r.keywords &&= e_(r.keywords, e.case_insensitive), o.keywordPatternRe = n(l, !0), i && (r.begin ||= /\B|\b/, o.beginRe = n(o.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (o.endRe = n(o.end)), o.terminatorEnd = v(o.end) || "", r.endsWithParent && i.terminatorEnd && (o.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (o.illegalRe = n(r.illegal)), r.contains ||= [], r.contains = [].concat(...r.contains.map(function(e) {
5113
- return h_(e === "self" ? r : e);
5112
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l ||= /\w+/, r.keywords &&= Qg(r.keywords, e.case_insensitive), o.keywordPatternRe = n(l, !0), i && (r.begin ||= /\B|\b/, o.beginRe = n(o.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (o.endRe = n(o.end)), o.terminatorEnd = v(o.end) || "", r.endsWithParent && i.terminatorEnd && (o.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (o.illegalRe = n(r.illegal)), r.contains ||= [], r.contains = [].concat(...r.contains.map(function(e) {
5113
+ return p_(e === "self" ? r : e);
5114
5114
  })), r.contains.forEach(function(e) {
5115
5115
  s(e, o);
5116
5116
  }), r.starts && s(r.starts, i), o.matcher = a(o), o;
@@ -5118,19 +5118,19 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5118
5118
  if (e.compilerExtensions ||= [], e.contains && e.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
5119
5119
  return e.classNameAliases = o(e.classNameAliases || {}), s(e);
5120
5120
  }
5121
- function m_(e) {
5122
- return e ? e.endsWithParent || m_(e.starts) : !1;
5121
+ function f_(e) {
5122
+ return e ? e.endsWithParent || f_(e.starts) : !1;
5123
5123
  }
5124
- function h_(e) {
5124
+ function p_(e) {
5125
5125
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
5126
5126
  return o(e, { variants: null }, n);
5127
- })), e.cachedVariants ? e.cachedVariants : m_(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
5127
+ })), e.cachedVariants ? e.cachedVariants : f_(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
5128
5128
  }
5129
- var g_ = "11.11.1", __ = class extends Error {
5129
+ var m_ = "11.11.1", h_ = class extends Error {
5130
5130
  constructor(e, n) {
5131
5131
  super(e), this.name = "HTMLInjectionError", this.html = n;
5132
5132
  }
5133
- }, v_ = a, y_ = o, b_ = Symbol("nomatch"), x_ = 7, S_ = function(e) {
5133
+ }, g_ = a, __ = o, v_ = Symbol("nomatch"), y_ = 7, b_ = function(e) {
5134
5134
  let n = Object.create(null), a = Object.create(null), o = [], s = !0, l = "Could not find the language '{}', did you forget to load/include a language module?", u = {
5135
5135
  disableAutodetect: !0,
5136
5136
  name: "Plain text",
@@ -5153,21 +5153,21 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5153
5153
  n += e.parentNode ? e.parentNode.className : "";
5154
5154
  let r = d.languageDetectRe.exec(n);
5155
5155
  if (r) {
5156
- let n = jg(r[1]);
5157
- return n || (a_(l.replace("{}", r[1])), a_("Falling back to no-highlight mode for this block.", e)), n ? r[1] : "no-highlight";
5156
+ let n = kg(r[1]);
5157
+ return n || (r_(l.replace("{}", r[1])), r_("Falling back to no-highlight mode for this block.", e)), n ? r[1] : "no-highlight";
5158
5158
  }
5159
- return n.split(/\s+/).find((e) => m(e) || jg(e));
5159
+ return n.split(/\s+/).find((e) => m(e) || kg(e));
5160
5160
  }
5161
5161
  function v(e, n, r) {
5162
5162
  let i = "", a = "";
5163
- typeof n == "object" ? (i = e, r = n.ignoreIllegals, a = n.language) : (o_("10.7.0", "highlight(lang, code, ...args) has been deprecated."), o_("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = n), r === void 0 && (r = !0);
5163
+ typeof n == "object" ? (i = e, r = n.ignoreIllegals, a = n.language) : (i_("10.7.0", "highlight(lang, code, ...args) has been deprecated."), i_("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = n), r === void 0 && (r = !0);
5164
5164
  let o = {
5165
5165
  code: i,
5166
5166
  language: a
5167
5167
  };
5168
- Ig("before:highlight", o);
5168
+ Pg("before:highlight", o);
5169
5169
  let s = o.result ? o.result : j(o.language, o.code, r);
5170
- return s.code = o.code, Ig("after:highlight", s), s;
5170
+ return s.code = o.code, Pg("after:highlight", s), s;
5171
5171
  }
5172
5172
  function j(e, r, a, o) {
5173
5173
  let u = Object.create(null);
@@ -5187,7 +5187,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5187
5187
  let i = q.case_insensitive ? n[0].toLowerCase() : n[0], a = m(Z, i);
5188
5188
  if (a) {
5189
5189
  let [e, o] = a;
5190
- if (Q.addText(r), r = "", u[i] = (u[i] || 0) + 1, u[i] <= x_ && (Mg += o), e.startsWith("_")) r += n[0];
5190
+ if (Q.addText(r), r = "", u[i] = (u[i] || 0) + 1, u[i] <= y_ && (Ag += o), e.startsWith("_")) r += n[0];
5191
5191
  else {
5192
5192
  let r = q.classNameAliases[e] || e;
5193
5193
  T(n[0], r);
@@ -5205,9 +5205,9 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5205
5205
  Q.addText($);
5206
5206
  return;
5207
5207
  }
5208
- e = j(Z.subLanguage, $, !0, Ag[Z.subLanguage]), Ag[Z.subLanguage] = e._top;
5208
+ e = j(Z.subLanguage, $, !0, Og[Z.subLanguage]), Og[Z.subLanguage] = e._top;
5209
5209
  } else e = B($, Z.subLanguage.length ? Z.subLanguage : null);
5210
- Z.relevance > 0 && (Mg += e.relevance), Q.__addSublanguage(e._emitter, e.language);
5210
+ Z.relevance > 0 && (Ag += e.relevance), Q.__addSublanguage(e._emitter, e.language);
5211
5211
  }
5212
5212
  function v() {
5213
5213
  Z.subLanguage == null ? g() : _(), $ = "";
@@ -5244,7 +5244,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5244
5244
  if (e.endsWithParent) return k(e.parent, n, r);
5245
5245
  }
5246
5246
  function I(e) {
5247
- return Z.matcher.regexIndex === 0 ? ($ += e[0], 1) : (Fg = !0, 0);
5247
+ return Z.matcher.regexIndex === 0 ? ($ += e[0], 1) : (Ng = !0, 0);
5248
5248
  }
5249
5249
  function L(e) {
5250
5250
  let n = e[0], r = e.rule, a = new i(r), o = [r.__beforeBegin, r["on:begin"]];
@@ -5253,11 +5253,11 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5253
5253
  }
5254
5254
  function H(e) {
5255
5255
  let n = e[0], i = r.substring(e.index), a = k(Z, e, i);
5256
- if (!a) return b_;
5256
+ if (!a) return v_;
5257
5257
  let o = Z;
5258
5258
  Z.endScope && Z.endScope._wrap ? (v(), T(n, Z.endScope._wrap)) : Z.endScope && Z.endScope._multi ? (v(), E(Z.endScope, e)) : o.skip ? $ += n : (o.returnEnd || o.excludeEnd || ($ += n), v(), o.excludeEnd && ($ = n));
5259
5259
  do
5260
- Z.scope && Q.closeNode(), !Z.skip && !Z.subLanguage && (Mg += Z.relevance), Z = Z.parent;
5260
+ Z.scope && Q.closeNode(), !Z.skip && !Z.subLanguage && (Ag += Z.relevance), Z = Z.parent;
5261
5261
  while (Z !== a.parent);
5262
5262
  return a.starts && O(a.starts, e), o.returnEnd ? 0 : n.length;
5263
5263
  }
@@ -5267,7 +5267,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5267
5267
  e.forEach((e) => Q.openNode(e));
5268
5268
  }
5269
5269
  let K = {};
5270
- function Og(n, i) {
5270
+ function Eg(n, i) {
5271
5271
  let o = i && i[0];
5272
5272
  if ($ += n, o == null) return v(), 0;
5273
5273
  if (K.type === "begin" && i.type === "end" && K.index === i.index && o === "") {
@@ -5283,33 +5283,33 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5283
5283
  throw e.mode = Z, e;
5284
5284
  } else if (i.type === "end") {
5285
5285
  let e = H(i);
5286
- if (e !== b_) return e;
5286
+ if (e !== v_) return e;
5287
5287
  }
5288
5288
  if (i.type === "illegal" && o === "") return $ += "\n", 1;
5289
- if (Pg > 1e5 && Pg > i.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
5289
+ if (Mg > 1e5 && Mg > i.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
5290
5290
  return $ += o, o.length;
5291
5291
  }
5292
- let q = jg(e);
5293
- if (!q) throw i_(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
5294
- let kg = p_(q), J = "", Z = o || kg, Ag = {}, Q = new d.__emitter(d);
5292
+ let q = kg(e);
5293
+ if (!q) throw n_(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
5294
+ let Dg = d_(q), J = "", Z = o || Dg, Og = {}, Q = new d.__emitter(d);
5295
5295
  G();
5296
- let $ = "", Mg = 0, Ng = 0, Pg = 0, Fg = !1;
5296
+ let $ = "", Ag = 0, jg = 0, Mg = 0, Ng = !1;
5297
5297
  try {
5298
5298
  if (q.__emitTokens) q.__emitTokens(r, Q);
5299
5299
  else {
5300
5300
  for (Z.matcher.considerAll();;) {
5301
- Pg++, Fg ? Fg = !1 : Z.matcher.considerAll(), Z.matcher.lastIndex = Ng;
5301
+ Mg++, Ng ? Ng = !1 : Z.matcher.considerAll(), Z.matcher.lastIndex = jg;
5302
5302
  let e = Z.matcher.exec(r);
5303
5303
  if (!e) break;
5304
- let n = Og(r.substring(Ng, e.index), e);
5305
- Ng = e.index + n;
5304
+ let n = Eg(r.substring(jg, e.index), e);
5305
+ jg = e.index + n;
5306
5306
  }
5307
- Og(r.substring(Ng));
5307
+ Eg(r.substring(jg));
5308
5308
  }
5309
5309
  return Q.finalize(), J = Q.toHTML(), {
5310
5310
  language: e,
5311
5311
  value: J,
5312
- relevance: Mg,
5312
+ relevance: Ag,
5313
5313
  illegal: !1,
5314
5314
  _emitter: Q,
5315
5315
  _top: Z
@@ -5317,13 +5317,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5317
5317
  } catch (n) {
5318
5318
  if (n.message && n.message.includes("Illegal")) return {
5319
5319
  language: e,
5320
- value: v_(r),
5320
+ value: g_(r),
5321
5321
  illegal: !0,
5322
5322
  relevance: 0,
5323
5323
  _illegalBy: {
5324
5324
  message: n.message,
5325
- index: Ng,
5326
- context: r.slice(Ng - 100, Ng + 100),
5325
+ index: jg,
5326
+ context: r.slice(jg - 100, jg + 100),
5327
5327
  mode: n.mode,
5328
5328
  resultSoFar: J
5329
5329
  },
@@ -5331,7 +5331,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5331
5331
  };
5332
5332
  if (s) return {
5333
5333
  language: e,
5334
- value: v_(r),
5334
+ value: g_(r),
5335
5335
  illegal: !1,
5336
5336
  relevance: 0,
5337
5337
  errorRaised: n,
@@ -5343,7 +5343,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5343
5343
  }
5344
5344
  function L(e) {
5345
5345
  let n = {
5346
- value: v_(e),
5346
+ value: g_(e),
5347
5347
  illegal: !1,
5348
5348
  relevance: 0,
5349
5349
  _top: u,
@@ -5353,13 +5353,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5353
5353
  }
5354
5354
  function B(e, r) {
5355
5355
  r = r || d.languages || Object.keys(n);
5356
- let i = L(e), a = r.filter(jg).filter(Mg).map((n) => j(n, e, !1));
5356
+ let i = L(e), a = r.filter(kg).filter(Ag).map((n) => j(n, e, !1));
5357
5357
  a.unshift(i);
5358
5358
  let [o, s] = a.sort((e, n) => {
5359
5359
  if (e.relevance !== n.relevance) return n.relevance - e.relevance;
5360
5360
  if (e.language && n.language) {
5361
- if (jg(e.language).supersetOf === n.language) return 1;
5362
- if (jg(n.language).supersetOf === e.language) return -1;
5361
+ if (kg(e.language).supersetOf === n.language) return 1;
5362
+ if (kg(n.language).supersetOf === e.language) return -1;
5363
5363
  }
5364
5364
  return 0;
5365
5365
  }), l = o;
@@ -5372,14 +5372,14 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5372
5372
  function G(e) {
5373
5373
  let n = null, r = g(e);
5374
5374
  if (m(r)) return;
5375
- if (Ig("before:highlightElement", {
5375
+ if (Pg("before:highlightElement", {
5376
5376
  el: e,
5377
5377
  language: r
5378
5378
  }), e.dataset.highlighted) {
5379
5379
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
5380
5380
  return;
5381
5381
  }
5382
- if (e.children.length > 0 && (d.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)), d.throwUnescapedHTML)) throw new __("One of your code blocks includes unescaped HTML.", e.innerHTML);
5382
+ if (e.children.length > 0 && (d.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)), d.throwUnescapedHTML)) throw new h_("One of your code blocks includes unescaped HTML.", e.innerHTML);
5383
5383
  n = e;
5384
5384
  let i = n.textContent, a = r ? v(i, {
5385
5385
  language: r,
@@ -5392,28 +5392,28 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5392
5392
  }, a.secondBest && (e.secondBest = {
5393
5393
  language: a.secondBest.language,
5394
5394
  relevance: a.secondBest.relevance
5395
- }), Ig("after:highlightElement", {
5395
+ }), Pg("after:highlightElement", {
5396
5396
  el: e,
5397
5397
  result: a,
5398
5398
  text: i
5399
5399
  });
5400
5400
  }
5401
5401
  function K(e) {
5402
- d = y_(d, e);
5402
+ d = __(d, e);
5403
5403
  }
5404
- let Og = () => {
5405
- J(), o_("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
5404
+ let Eg = () => {
5405
+ J(), i_("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
5406
5406
  };
5407
5407
  function q() {
5408
- J(), o_("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
5408
+ J(), i_("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
5409
5409
  }
5410
- let kg = !1;
5410
+ let Dg = !1;
5411
5411
  function J() {
5412
5412
  function e() {
5413
5413
  J();
5414
5414
  }
5415
5415
  if (document.readyState === "loading") {
5416
- kg || window.addEventListener("DOMContentLoaded", e, !1), kg = !0;
5416
+ Dg || window.addEventListener("DOMContentLoaded", e, !1), Dg = !0;
5417
5417
  return;
5418
5418
  }
5419
5419
  document.querySelectorAll(d.cssSelector).forEach(G);
@@ -5423,20 +5423,20 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5423
5423
  try {
5424
5424
  a = i(e);
5425
5425
  } catch (e) {
5426
- if (i_("Language definition for '{}' could not be registered.".replace("{}", r)), s) i_(e);
5426
+ if (n_("Language definition for '{}' could not be registered.".replace("{}", r)), s) n_(e);
5427
5427
  else throw e;
5428
5428
  a = u;
5429
5429
  }
5430
5430
  a.name ||= r, n[r] = a, a.rawDefinition = i.bind(null, e), a.aliases && $(a.aliases, { languageName: r });
5431
5431
  }
5432
- function Ag(e) {
5432
+ function Og(e) {
5433
5433
  delete n[e];
5434
5434
  for (let n of Object.keys(a)) a[n] === e && delete a[n];
5435
5435
  }
5436
5436
  function Q() {
5437
5437
  return Object.keys(n);
5438
5438
  }
5439
- function jg(e) {
5439
+ function kg(e) {
5440
5440
  return e = (e || "").toLowerCase(), n[e] || n[a[e]];
5441
5441
  }
5442
5442
  function $(e, { languageName: n }) {
@@ -5444,65 +5444,65 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5444
5444
  a[e.toLowerCase()] = n;
5445
5445
  });
5446
5446
  }
5447
- function Mg(e) {
5448
- let n = jg(e);
5447
+ function Ag(e) {
5448
+ let n = kg(e);
5449
5449
  return n && !n.disableAutodetect;
5450
5450
  }
5451
- function Ng(e) {
5451
+ function jg(e) {
5452
5452
  e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (n) => {
5453
5453
  e["before:highlightBlock"](Object.assign({ block: n.el }, n));
5454
5454
  }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (n) => {
5455
5455
  e["after:highlightBlock"](Object.assign({ block: n.el }, n));
5456
5456
  });
5457
5457
  }
5458
- function Pg(e) {
5459
- Ng(e), o.push(e);
5458
+ function Mg(e) {
5459
+ jg(e), o.push(e);
5460
5460
  }
5461
- function Fg(e) {
5461
+ function Ng(e) {
5462
5462
  let n = o.indexOf(e);
5463
5463
  n !== -1 && o.splice(n, 1);
5464
5464
  }
5465
- function Ig(e, n) {
5465
+ function Pg(e, n) {
5466
5466
  let r = e;
5467
5467
  o.forEach(function(e) {
5468
5468
  e[r] && e[r](n);
5469
5469
  });
5470
5470
  }
5471
- function Lg(e) {
5472
- return o_("10.7.0", "highlightBlock will be removed entirely in v12.0"), o_("10.7.0", "Please use highlightElement now."), G(e);
5471
+ function Fg(e) {
5472
+ return i_("10.7.0", "highlightBlock will be removed entirely in v12.0"), i_("10.7.0", "Please use highlightElement now."), G(e);
5473
5473
  }
5474
5474
  for (let n in Object.assign(e, {
5475
5475
  highlight: v,
5476
5476
  highlightAuto: B,
5477
5477
  highlightAll: J,
5478
5478
  highlightElement: G,
5479
- highlightBlock: Lg,
5479
+ highlightBlock: Fg,
5480
5480
  configure: K,
5481
- initHighlighting: Og,
5481
+ initHighlighting: Eg,
5482
5482
  initHighlightingOnLoad: q,
5483
5483
  registerLanguage: Z,
5484
- unregisterLanguage: Ag,
5484
+ unregisterLanguage: Og,
5485
5485
  listLanguages: Q,
5486
- getLanguage: jg,
5486
+ getLanguage: kg,
5487
5487
  registerAliases: $,
5488
- autoDetection: Mg,
5489
- inherit: y_,
5490
- addPlugin: Pg,
5491
- removePlugin: Fg
5488
+ autoDetection: Ag,
5489
+ inherit: __,
5490
+ addPlugin: Mg,
5491
+ removePlugin: Ng
5492
5492
  }), e.debugMode = function() {
5493
5493
  s = !1;
5494
5494
  }, e.safeMode = function() {
5495
5495
  s = !0;
5496
- }, e.versionString = g_, e.regex = {
5496
+ }, e.versionString = m_, e.regex = {
5497
5497
  concat: k,
5498
5498
  lookahead: T,
5499
5499
  either: I,
5500
5500
  optional: O,
5501
5501
  anyNumberOfTimes: E
5502
- }, Wg) typeof Wg[n] == "object" && r(Wg[n]);
5503
- return Object.assign(e, Wg), e;
5504
- }, C_ = S_({});
5505
- C_.newInstance = () => S_({}), n.exports = C_, C_.HighlightJS = C_, C_.default = C_;
5502
+ }, Hg) typeof Hg[n] == "object" && r(Hg[n]);
5503
+ return Object.assign(e, Hg), e;
5504
+ }, x_ = b_({});
5505
+ x_.newInstance = () => b_({}), n.exports = x_, x_.HighlightJS = x_, x_.default = x_;
5506
5506
  })), require__1c = /* @__PURE__ */ __commonJSMin(((e, n) => {
5507
5507
  function r(e) {
5508
5508
  let n = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+", r = "далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ", i = "null истина ложь неопределено", a = e.inherit(e.NUMBER_MODE), o = {
@@ -11619,12 +11619,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11619
11619
  ],
11620
11620
  beginScope: { 2: "meta" },
11621
11621
  end: a(/\s|$/)
11622
- }, Og = { variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE] }, q = {
11622
+ }, Eg = { variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE] }, q = {
11623
11623
  scope: "string",
11624
11624
  begin: /"/,
11625
11625
  end: /"/,
11626
11626
  contains: [e.BACKSLASH_ESCAPE]
11627
- }, kg = {
11627
+ }, Dg = {
11628
11628
  scope: "string",
11629
11629
  begin: /@"/,
11630
11630
  end: /"/,
@@ -11639,7 +11639,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11639
11639
  begin: /\{/,
11640
11640
  end: /\}/,
11641
11641
  keywords: g
11642
- }, Ag = {
11642
+ }, Og = {
11643
11643
  scope: "string",
11644
11644
  begin: /\$"/,
11645
11645
  end: /"/,
@@ -11660,7 +11660,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11660
11660
  e.BACKSLASH_ESCAPE,
11661
11661
  Z
11662
11662
  ]
11663
- }, jg = {
11663
+ }, kg = {
11664
11664
  scope: "string",
11665
11665
  begin: /\$"""/,
11666
11666
  end: /"""/,
@@ -11676,8 +11676,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11676
11676
  };
11677
11677
  Z.contains = [
11678
11678
  Q,
11679
- Ag,
11680
- kg,
11679
+ Og,
11680
+ Dg,
11681
11681
  q,
11682
11682
  $,
11683
11683
  i,
@@ -11686,16 +11686,16 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11686
11686
  z,
11687
11687
  G,
11688
11688
  K,
11689
- Og,
11689
+ Eg,
11690
11690
  O,
11691
11691
  j
11692
11692
  ];
11693
- let Mg = { variants: [
11694
- jg,
11693
+ let Ag = { variants: [
11694
+ kg,
11695
11695
  Q,
11696
- Ag,
11696
+ Og,
11697
11697
  J,
11698
- kg,
11698
+ Dg,
11699
11699
  q,
11700
11700
  $
11701
11701
  ] };
@@ -11707,7 +11707,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11707
11707
  classNameAliases: { "computation-expression": "keyword" },
11708
11708
  contains: [
11709
11709
  i,
11710
- Mg,
11710
+ Ag,
11711
11711
  _,
11712
11712
  T,
11713
11713
  H,
@@ -11719,17 +11719,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11719
11719
  contains: [
11720
11720
  T,
11721
11721
  J,
11722
- kg,
11722
+ Dg,
11723
11723
  q,
11724
11724
  $,
11725
- Og
11725
+ Eg
11726
11726
  ]
11727
11727
  },
11728
11728
  B,
11729
11729
  z,
11730
11730
  G,
11731
11731
  K,
11732
- Og,
11732
+ Eg,
11733
11733
  O,
11734
11734
  j
11735
11735
  ]
@@ -13885,7 +13885,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13885
13885
  e.C_BLOCK_COMMENT_MODE,
13886
13886
  e.C_LINE_COMMENT_MODE
13887
13887
  ]
13888
- }, Og = [
13888
+ }, Eg = [
13889
13889
  e.APOS_STRING_MODE,
13890
13890
  e.QUOTE_STRING_MODE,
13891
13891
  z,
@@ -13895,13 +13895,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13895
13895
  { match: /\$\d+/ },
13896
13896
  I
13897
13897
  ];
13898
- L.contains = Og.concat({
13898
+ L.contains = Eg.concat({
13899
13899
  begin: /\{/,
13900
13900
  end: /\}/,
13901
13901
  keywords: E,
13902
- contains: ["self"].concat(Og)
13902
+ contains: ["self"].concat(Eg)
13903
13903
  });
13904
- let q = [].concat(K, L.contains), kg = q.concat([{
13904
+ let q = [].concat(K, L.contains), Dg = q.concat([{
13905
13905
  begin: /(\s*)\(/,
13906
13906
  end: /\)/,
13907
13907
  keywords: E,
@@ -13913,7 +13913,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13913
13913
  excludeBegin: !0,
13914
13914
  excludeEnd: !0,
13915
13915
  keywords: E,
13916
- contains: kg
13916
+ contains: Dg
13917
13917
  }, Z = { variants: [{
13918
13918
  match: [
13919
13919
  /class/,
@@ -13940,7 +13940,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13940
13940
  1: "keyword",
13941
13941
  3: "title.class"
13942
13942
  }
13943
- }] }, Ag = {
13943
+ }] }, Og = {
13944
13944
  relevance: 0,
13945
13945
  match: n.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
13946
13946
  className: "title.class",
@@ -13950,7 +13950,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13950
13950
  className: "meta",
13951
13951
  relevance: 10,
13952
13952
  begin: /^\s*['"]use (strict|asm)['"]/
13953
- }, jg = {
13953
+ }, kg = {
13954
13954
  variants: [{ match: [
13955
13955
  /function/,
13956
13956
  /\s+/,
@@ -13969,25 +13969,25 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13969
13969
  match: /\b[A-Z][A-Z_0-9]+\b/,
13970
13970
  className: "variable.constant"
13971
13971
  };
13972
- function Mg(e) {
13972
+ function Ag(e) {
13973
13973
  return n.concat("(?!", e.join("|"), ")");
13974
13974
  }
13975
- let Ng = {
13976
- match: n.concat(/\b/, Mg([
13975
+ let jg = {
13976
+ match: n.concat(/\b/, Ag([
13977
13977
  ...l,
13978
13978
  "super",
13979
13979
  "import"
13980
13980
  ].map((e) => `${e}\\s*\\(`)), g, n.lookahead(/\s*\(/)),
13981
13981
  className: "title.function",
13982
13982
  relevance: 0
13983
- }, Pg = {
13983
+ }, Mg = {
13984
13984
  begin: n.concat(/\./, n.lookahead(n.concat(g, /(?![0-9A-Za-z$_(])/))),
13985
13985
  end: g,
13986
13986
  excludeBegin: !0,
13987
13987
  keywords: "prototype",
13988
13988
  className: "property",
13989
13989
  relevance: 0
13990
- }, Fg = {
13990
+ }, Ng = {
13991
13991
  match: [
13992
13992
  /get|set/,
13993
13993
  /\s+/,
@@ -13999,7 +13999,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13999
13999
  3: "title.function"
14000
14000
  },
14001
14001
  contains: [{ begin: /\(\)/ }, J]
14002
- }, Ig = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Lg = {
14002
+ }, Pg = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Fg = {
14003
14003
  match: [
14004
14004
  /const|var|let/,
14005
14005
  /\s+/,
@@ -14007,7 +14007,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14007
14007
  /\s*/,
14008
14008
  /=\s*/,
14009
14009
  /(async\s*)?/,
14010
- n.lookahead(Ig)
14010
+ n.lookahead(Pg)
14011
14011
  ],
14012
14012
  keywords: "async",
14013
14013
  className: {
@@ -14026,8 +14026,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14026
14026
  ],
14027
14027
  keywords: E,
14028
14028
  exports: {
14029
- PARAMS_CONTAINS: kg,
14030
- CLASS_REFERENCE: Ag
14029
+ PARAMS_CONTAINS: Dg,
14030
+ CLASS_REFERENCE: Og
14031
14031
  },
14032
14032
  illegal: /#(?![$_A-z])/,
14033
14033
  contains: [
@@ -14046,13 +14046,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14046
14046
  K,
14047
14047
  { match: /\$\d+/ },
14048
14048
  I,
14049
- Ag,
14049
+ Og,
14050
14050
  {
14051
14051
  scope: "attr",
14052
14052
  match: g + n.lookahead(":"),
14053
14053
  relevance: 0
14054
14054
  },
14055
- Lg,
14055
+ Fg,
14056
14056
  {
14057
14057
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
14058
14058
  keywords: "return throw case",
@@ -14062,7 +14062,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14062
14062
  e.REGEXP_MODE,
14063
14063
  {
14064
14064
  className: "function",
14065
- begin: Ig,
14065
+ begin: Pg,
14066
14066
  returnBegin: !0,
14067
14067
  end: "\\s*=>",
14068
14068
  contains: [{
@@ -14083,7 +14083,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14083
14083
  excludeBegin: !0,
14084
14084
  excludeEnd: !0,
14085
14085
  keywords: E,
14086
- contains: kg
14086
+ contains: Dg
14087
14087
  }
14088
14088
  ]
14089
14089
  }]
@@ -14119,7 +14119,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14119
14119
  }
14120
14120
  ]
14121
14121
  },
14122
- jg,
14122
+ kg,
14123
14123
  { beginKeywords: "while if switch catch for" },
14124
14124
  {
14125
14125
  begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
@@ -14134,7 +14134,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14134
14134
  match: /\.\.\./,
14135
14135
  relevance: 0
14136
14136
  },
14137
- Pg,
14137
+ Mg,
14138
14138
  {
14139
14139
  match: "\\$" + g,
14140
14140
  relevance: 0
@@ -14144,10 +14144,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14144
14144
  className: { 1: "title.function" },
14145
14145
  contains: [J]
14146
14146
  },
14147
- Ng,
14147
+ jg,
14148
14148
  $,
14149
14149
  Z,
14150
- Fg,
14150
+ Ng,
14151
14151
  { match: /\$[(.]/ }
14152
14152
  ]
14153
14153
  };
@@ -17649,7 +17649,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17649
17649
  E,
17650
17650
  z
17651
17651
  ]
17652
- }, Og = {
17652
+ }, Eg = {
17653
17653
  relevance: 0,
17654
17654
  match: [
17655
17655
  /\b/,
@@ -17661,7 +17661,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17661
17661
  scope: { 3: "title.function.invoke" },
17662
17662
  contains: [K]
17663
17663
  };
17664
- K.contains.push(Og);
17664
+ K.contains.push(Eg);
17665
17665
  let q = [
17666
17666
  G,
17667
17667
  H,
@@ -17669,7 +17669,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17669
17669
  T,
17670
17670
  E,
17671
17671
  z
17672
- ], kg = {
17672
+ ], Dg = {
17673
17673
  begin: n.concat(/#\[\s*\\?/, n.either(a, o)),
17674
17674
  beginScope: "meta",
17675
17675
  end: /]/,
@@ -17699,7 +17699,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17699
17699
  case_insensitive: !1,
17700
17700
  keywords: I,
17701
17701
  contains: [
17702
- kg,
17702
+ Dg,
17703
17703
  e.HASH_COMMENT_MODE,
17704
17704
  e.COMMENT("//", "$"),
17705
17705
  e.COMMENT("/\\*", "\\*/", { contains: [{
@@ -17725,7 +17725,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17725
17725
  match: /\$this\b/
17726
17726
  },
17727
17727
  s,
17728
- Og,
17728
+ Eg,
17729
17729
  H,
17730
17730
  {
17731
17731
  match: [
@@ -17762,7 +17762,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17762
17762
  keywords: I,
17763
17763
  contains: [
17764
17764
  "self",
17765
- kg,
17765
+ Dg,
17766
17766
  s,
17767
17767
  H,
17768
17768
  e.C_BLOCK_COMMENT_MODE,
@@ -21104,17 +21104,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21104
21104
  }, I = {
21105
21105
  match: a(/\./, s(...g)),
21106
21106
  relevance: 0
21107
- }, K = g.filter((e) => typeof e == "string").concat(["_|0"]), Og = { variants: [{
21107
+ }, K = g.filter((e) => typeof e == "string").concat(["_|0"]), Eg = { variants: [{
21108
21108
  className: "keyword",
21109
21109
  match: s(...g.filter((e) => typeof e != "string").concat(m).map(l), ...d)
21110
21110
  }] }, q = {
21111
21111
  $pattern: s(/\b\w+/, /#\w+/),
21112
21112
  keyword: K.concat(T),
21113
21113
  literal: _
21114
- }, kg = [
21114
+ }, Dg = [
21115
21115
  O,
21116
21116
  I,
21117
- Og
21117
+ Eg
21118
21118
  ], J = [{
21119
21119
  match: a(/\./, s(...E)),
21120
21120
  relevance: 0
@@ -21124,84 +21124,84 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21124
21124
  }], Z = {
21125
21125
  match: /->/,
21126
21126
  relevance: 0
21127
- }, Ag = [Z, {
21127
+ }, Og = [Z, {
21128
21128
  className: "operator",
21129
21129
  relevance: 0,
21130
21130
  variants: [{ match: j }, { match: `\\.(\\.|${k})+` }]
21131
- }], Q = "([0-9]_*)+", jg = "([0-9a-fA-F]_*)+", $ = {
21131
+ }], Q = "([0-9]_*)+", kg = "([0-9a-fA-F]_*)+", $ = {
21132
21132
  className: "number",
21133
21133
  relevance: 0,
21134
21134
  variants: [
21135
21135
  { match: `\\b(${Q})(\\.(${Q}))?([eE][+-]?(${Q}))?\\b` },
21136
- { match: `\\b0x(${jg})(\\.(${jg}))?([pP][+-]?(${Q}))?\\b` },
21136
+ { match: `\\b0x(${kg})(\\.(${kg}))?([pP][+-]?(${Q}))?\\b` },
21137
21137
  { match: /\b0o([0-7]_*)+\b/ },
21138
21138
  { match: /\b0b([01]_*)+\b/ }
21139
21139
  ]
21140
- }, Mg = (e = "") => ({
21140
+ }, Ag = (e = "") => ({
21141
21141
  className: "subst",
21142
21142
  variants: [{ match: a(/\\/, e, /[0\\tnr"']/) }, { match: a(/\\/, e, /u\{[0-9a-fA-F]{1,8}\}/) }]
21143
- }), Ng = (e = "") => ({
21143
+ }), jg = (e = "") => ({
21144
21144
  className: "subst",
21145
21145
  match: a(/\\/, e, /[\t ]*(?:[\r\n]|\r\n)/)
21146
- }), Pg = (e = "") => ({
21146
+ }), Mg = (e = "") => ({
21147
21147
  className: "subst",
21148
21148
  label: "interpol",
21149
21149
  begin: a(/\\/, e, /\(/),
21150
21150
  end: /\)/
21151
- }), Fg = (e = "") => ({
21151
+ }), Ng = (e = "") => ({
21152
21152
  begin: a(e, /"""/),
21153
21153
  end: a(/"""/, e),
21154
21154
  contains: [
21155
- Mg(e),
21156
- Ng(e),
21157
- Pg(e)
21155
+ Ag(e),
21156
+ jg(e),
21157
+ Mg(e)
21158
21158
  ]
21159
- }), Ig = (e = "") => ({
21159
+ }), Pg = (e = "") => ({
21160
21160
  begin: a(e, /"/),
21161
21161
  end: a(/"/, e),
21162
- contains: [Mg(e), Pg(e)]
21163
- }), Lg = {
21162
+ contains: [Ag(e), Mg(e)]
21163
+ }), Fg = {
21164
21164
  className: "string",
21165
21165
  variants: [
21166
- Fg(),
21167
- Fg("#"),
21168
- Fg("##"),
21169
- Fg("###"),
21170
- Ig(),
21171
- Ig("#"),
21172
- Ig("##"),
21173
- Ig("###")
21166
+ Ng(),
21167
+ Ng("#"),
21168
+ Ng("##"),
21169
+ Ng("###"),
21170
+ Pg(),
21171
+ Pg("#"),
21172
+ Pg("##"),
21173
+ Pg("###")
21174
21174
  ]
21175
- }, Rg = [e.BACKSLASH_ESCAPE, {
21175
+ }, Ig = [e.BACKSLASH_ESCAPE, {
21176
21176
  begin: /\[/,
21177
21177
  end: /\]/,
21178
21178
  relevance: 0,
21179
21179
  contains: [e.BACKSLASH_ESCAPE]
21180
- }], zg = {
21180
+ }], Lg = {
21181
21181
  begin: /\/[^\s](?=[^/\n]*\/)/,
21182
21182
  end: /\//,
21183
- contains: Rg
21184
- }, Bg = (e) => {
21183
+ contains: Ig
21184
+ }, Rg = (e) => {
21185
21185
  let n = a(e, /\//), r = a(/\//, e);
21186
21186
  return {
21187
21187
  begin: n,
21188
21188
  end: r,
21189
- contains: [...Rg, {
21189
+ contains: [...Ig, {
21190
21190
  scope: "comment",
21191
21191
  begin: `#(?!.*${r})`,
21192
21192
  end: /$/
21193
21193
  }]
21194
21194
  };
21195
- }, Vg = {
21195
+ }, zg = {
21196
21196
  scope: "regexp",
21197
21197
  variants: [
21198
- Bg("###"),
21199
- Bg("##"),
21200
- Bg("#"),
21201
- zg
21198
+ Rg("###"),
21199
+ Rg("##"),
21200
+ Rg("#"),
21201
+ Lg
21202
21202
  ]
21203
- }, Hg = { match: a(/`/, z, /`/) }, Ug = [
21204
- Hg,
21203
+ }, Bg = { match: a(/`/, z, /`/) }, Vg = [
21204
+ Bg,
21205
21205
  {
21206
21206
  className: "variable",
21207
21207
  match: /\$\d+/
@@ -21210,7 +21210,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21210
21210
  className: "variable",
21211
21211
  match: `\\$${L}+`
21212
21212
  }
21213
- ], Wg = [
21213
+ ], Hg = [
21214
21214
  {
21215
21215
  match: /(@|#(un)?)available/,
21216
21216
  scope: "keyword",
@@ -21219,9 +21219,9 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21219
21219
  end: /\)/,
21220
21220
  keywords: G,
21221
21221
  contains: [
21222
- ...Ag,
21222
+ ...Og,
21223
21223
  $,
21224
- Lg
21224
+ Fg
21225
21225
  ]
21226
21226
  }] }
21227
21227
  },
@@ -21233,7 +21233,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21233
21233
  scope: "meta",
21234
21234
  match: a(/@/, z)
21235
21235
  }
21236
- ], Gg = {
21236
+ ], Ug = {
21237
21237
  match: i(/\b[A-Z]/),
21238
21238
  relevance: 0,
21239
21239
  contains: [
@@ -21259,20 +21259,20 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21259
21259
  relevance: 0
21260
21260
  }
21261
21261
  ]
21262
- }, Kg = {
21262
+ }, Wg = {
21263
21263
  begin: /</,
21264
21264
  end: />/,
21265
21265
  keywords: q,
21266
21266
  contains: [
21267
21267
  ...o,
21268
- ...kg,
21269
- ...Wg,
21268
+ ...Dg,
21269
+ ...Hg,
21270
21270
  Z,
21271
- Gg
21271
+ Ug
21272
21272
  ]
21273
21273
  };
21274
- Gg.contains.push(Kg);
21275
- let qg = {
21274
+ Ug.contains.push(Wg);
21275
+ let Gg = {
21276
21276
  begin: /\(/,
21277
21277
  end: /\)/,
21278
21278
  relevance: 0,
@@ -21285,22 +21285,22 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21285
21285
  relevance: 0
21286
21286
  },
21287
21287
  ...o,
21288
- Vg,
21289
- ...kg,
21288
+ zg,
21289
+ ...Dg,
21290
21290
  ...J,
21291
- ...Ag,
21291
+ ...Og,
21292
21292
  $,
21293
- Lg,
21294
- ...Ug,
21295
- ...Wg,
21296
- Gg
21293
+ Fg,
21294
+ ...Vg,
21295
+ ...Hg,
21296
+ Ug
21297
21297
  ]
21298
- }, Jg = {
21298
+ }, Kg = {
21299
21299
  begin: /</,
21300
21300
  end: />/,
21301
21301
  keywords: "repeat each",
21302
- contains: [...o, Gg]
21303
- }, Yg = {
21302
+ contains: [...o, Ug]
21303
+ }, qg = {
21304
21304
  begin: /\(/,
21305
21305
  end: /\)/,
21306
21306
  keywords: q,
@@ -21318,42 +21318,42 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21318
21318
  }]
21319
21319
  },
21320
21320
  ...o,
21321
- ...kg,
21322
- ...Ag,
21321
+ ...Dg,
21322
+ ...Og,
21323
21323
  $,
21324
- Lg,
21325
- ...Wg,
21326
- Gg,
21327
- qg
21324
+ Fg,
21325
+ ...Hg,
21326
+ Ug,
21327
+ Gg
21328
21328
  ],
21329
21329
  endsParent: !0,
21330
21330
  illegal: /["']/
21331
- }, Xg = {
21331
+ }, Jg = {
21332
21332
  match: [
21333
21333
  /(func|macro)/,
21334
21334
  /\s+/,
21335
- s(Hg.match, z, j)
21335
+ s(Bg.match, z, j)
21336
21336
  ],
21337
21337
  className: {
21338
21338
  1: "keyword",
21339
21339
  3: "title.function"
21340
21340
  },
21341
21341
  contains: [
21342
- Jg,
21343
- Yg,
21342
+ Kg,
21343
+ qg,
21344
21344
  n
21345
21345
  ],
21346
21346
  illegal: [/\[/, /%/]
21347
- }, Zg = {
21347
+ }, Yg = {
21348
21348
  match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/],
21349
21349
  className: { 1: "keyword" },
21350
21350
  contains: [
21351
- Jg,
21352
- Yg,
21351
+ Kg,
21352
+ qg,
21353
21353
  n
21354
21354
  ],
21355
21355
  illegal: /\[|%/
21356
- }, Qg = {
21356
+ }, Xg = {
21357
21357
  match: [
21358
21358
  /operator/,
21359
21359
  /\s+/,
@@ -21363,7 +21363,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21363
21363
  1: "keyword",
21364
21364
  3: "title"
21365
21365
  }
21366
- }, $g = {
21366
+ }, Zg = {
21367
21367
  begin: [
21368
21368
  /precedencegroup/,
21369
21369
  /\s+/,
@@ -21373,10 +21373,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21373
21373
  1: "keyword",
21374
21374
  3: "title"
21375
21375
  },
21376
- contains: [Gg],
21376
+ contains: [Ug],
21377
21377
  keywords: [...v, ..._],
21378
21378
  end: /}/
21379
- }, e_ = {
21379
+ }, Qg = {
21380
21380
  match: [
21381
21381
  /class\b/,
21382
21382
  /\s+/,
@@ -21389,7 +21389,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21389
21389
  3: "keyword",
21390
21390
  5: "title.function"
21391
21391
  }
21392
- }, t_ = {
21392
+ }, $g = {
21393
21393
  match: [
21394
21394
  /class\b/,
21395
21395
  /\s+/,
@@ -21399,7 +21399,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21399
21399
  1: "keyword",
21400
21400
  3: "keyword"
21401
21401
  }
21402
- }, n_ = {
21402
+ }, e_ = {
21403
21403
  begin: [
21404
21404
  /(struct|protocol|class|extension|enum|actor)/,
21405
21405
  /\s+/,
@@ -21412,8 +21412,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21412
21412
  },
21413
21413
  keywords: q,
21414
21414
  contains: [
21415
- Jg,
21416
- ...kg,
21415
+ Kg,
21416
+ ...Dg,
21417
21417
  {
21418
21418
  begin: /:/,
21419
21419
  end: /\{/,
@@ -21421,21 +21421,21 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21421
21421
  contains: [{
21422
21422
  scope: "title.class.inherited",
21423
21423
  match: B
21424
- }, ...kg],
21424
+ }, ...Dg],
21425
21425
  relevance: 0
21426
21426
  }
21427
21427
  ]
21428
21428
  };
21429
- for (let e of Lg.variants) {
21429
+ for (let e of Fg.variants) {
21430
21430
  let n = e.contains.find((e) => e.label === "interpol");
21431
21431
  n.keywords = q;
21432
21432
  let r = [
21433
- ...kg,
21433
+ ...Dg,
21434
21434
  ...J,
21435
- ...Ag,
21435
+ ...Og,
21436
21436
  $,
21437
- Lg,
21438
- ...Ug
21437
+ Fg,
21438
+ ...Vg
21439
21439
  ];
21440
21440
  n.contains = [...r, {
21441
21441
  begin: /\(/,
@@ -21448,29 +21448,29 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21448
21448
  keywords: q,
21449
21449
  contains: [
21450
21450
  ...o,
21451
- Xg,
21452
- Zg,
21453
- e_,
21454
- t_,
21455
- n_,
21451
+ Jg,
21452
+ Yg,
21456
21453
  Qg,
21457
21454
  $g,
21455
+ e_,
21456
+ Xg,
21457
+ Zg,
21458
21458
  {
21459
21459
  beginKeywords: "import",
21460
21460
  end: /$/,
21461
21461
  contains: [...o],
21462
21462
  relevance: 0
21463
21463
  },
21464
- Vg,
21465
- ...kg,
21464
+ zg,
21465
+ ...Dg,
21466
21466
  ...J,
21467
- ...Ag,
21467
+ ...Og,
21468
21468
  $,
21469
- Lg,
21470
- ...Ug,
21471
- ...Wg,
21472
- Gg,
21473
- qg
21469
+ Fg,
21470
+ ...Vg,
21471
+ ...Hg,
21472
+ Ug,
21473
+ Gg
21474
21474
  ]
21475
21475
  };
21476
21476
  }
@@ -22122,7 +22122,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22122
22122
  e.C_BLOCK_COMMENT_MODE,
22123
22123
  e.C_LINE_COMMENT_MODE
22124
22124
  ]
22125
- }, Og = [
22125
+ }, Eg = [
22126
22126
  e.APOS_STRING_MODE,
22127
22127
  e.QUOTE_STRING_MODE,
22128
22128
  z,
@@ -22132,13 +22132,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22132
22132
  { match: /\$\d+/ },
22133
22133
  I
22134
22134
  ];
22135
- L.contains = Og.concat({
22135
+ L.contains = Eg.concat({
22136
22136
  begin: /\{/,
22137
22137
  end: /\}/,
22138
22138
  keywords: E,
22139
- contains: ["self"].concat(Og)
22139
+ contains: ["self"].concat(Eg)
22140
22140
  });
22141
- let q = [].concat(K, L.contains), kg = q.concat([{
22141
+ let q = [].concat(K, L.contains), Dg = q.concat([{
22142
22142
  begin: /(\s*)\(/,
22143
22143
  end: /\)/,
22144
22144
  keywords: E,
@@ -22150,7 +22150,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22150
22150
  excludeBegin: !0,
22151
22151
  excludeEnd: !0,
22152
22152
  keywords: E,
22153
- contains: kg
22153
+ contains: Dg
22154
22154
  }, Z = { variants: [{
22155
22155
  match: [
22156
22156
  /class/,
@@ -22177,7 +22177,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22177
22177
  1: "keyword",
22178
22178
  3: "title.class"
22179
22179
  }
22180
- }] }, Ag = {
22180
+ }] }, Og = {
22181
22181
  relevance: 0,
22182
22182
  match: n.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
22183
22183
  className: "title.class",
@@ -22187,7 +22187,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22187
22187
  className: "meta",
22188
22188
  relevance: 10,
22189
22189
  begin: /^\s*['"]use (strict|asm)['"]/
22190
- }, jg = {
22190
+ }, kg = {
22191
22191
  variants: [{ match: [
22192
22192
  /function/,
22193
22193
  /\s+/,
@@ -22206,25 +22206,25 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22206
22206
  match: /\b[A-Z][A-Z_0-9]+\b/,
22207
22207
  className: "variable.constant"
22208
22208
  };
22209
- function Mg(e) {
22209
+ function Ag(e) {
22210
22210
  return n.concat("(?!", e.join("|"), ")");
22211
22211
  }
22212
- let Ng = {
22213
- match: n.concat(/\b/, Mg([
22212
+ let jg = {
22213
+ match: n.concat(/\b/, Ag([
22214
22214
  ...l,
22215
22215
  "super",
22216
22216
  "import"
22217
22217
  ].map((e) => `${e}\\s*\\(`)), g, n.lookahead(/\s*\(/)),
22218
22218
  className: "title.function",
22219
22219
  relevance: 0
22220
- }, Pg = {
22220
+ }, Mg = {
22221
22221
  begin: n.concat(/\./, n.lookahead(n.concat(g, /(?![0-9A-Za-z$_(])/))),
22222
22222
  end: g,
22223
22223
  excludeBegin: !0,
22224
22224
  keywords: "prototype",
22225
22225
  className: "property",
22226
22226
  relevance: 0
22227
- }, Fg = {
22227
+ }, Ng = {
22228
22228
  match: [
22229
22229
  /get|set/,
22230
22230
  /\s+/,
@@ -22236,7 +22236,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22236
22236
  3: "title.function"
22237
22237
  },
22238
22238
  contains: [{ begin: /\(\)/ }, J]
22239
- }, Ig = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Lg = {
22239
+ }, Pg = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Fg = {
22240
22240
  match: [
22241
22241
  /const|var|let/,
22242
22242
  /\s+/,
@@ -22244,7 +22244,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22244
22244
  /\s*/,
22245
22245
  /=\s*/,
22246
22246
  /(async\s*)?/,
22247
- n.lookahead(Ig)
22247
+ n.lookahead(Pg)
22248
22248
  ],
22249
22249
  keywords: "async",
22250
22250
  className: {
@@ -22263,8 +22263,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22263
22263
  ],
22264
22264
  keywords: E,
22265
22265
  exports: {
22266
- PARAMS_CONTAINS: kg,
22267
- CLASS_REFERENCE: Ag
22266
+ PARAMS_CONTAINS: Dg,
22267
+ CLASS_REFERENCE: Og
22268
22268
  },
22269
22269
  illegal: /#(?![$_A-z])/,
22270
22270
  contains: [
@@ -22283,13 +22283,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22283
22283
  K,
22284
22284
  { match: /\$\d+/ },
22285
22285
  I,
22286
- Ag,
22286
+ Og,
22287
22287
  {
22288
22288
  scope: "attr",
22289
22289
  match: g + n.lookahead(":"),
22290
22290
  relevance: 0
22291
22291
  },
22292
- Lg,
22292
+ Fg,
22293
22293
  {
22294
22294
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
22295
22295
  keywords: "return throw case",
@@ -22299,7 +22299,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22299
22299
  e.REGEXP_MODE,
22300
22300
  {
22301
22301
  className: "function",
22302
- begin: Ig,
22302
+ begin: Pg,
22303
22303
  returnBegin: !0,
22304
22304
  end: "\\s*=>",
22305
22305
  contains: [{
@@ -22320,7 +22320,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22320
22320
  excludeBegin: !0,
22321
22321
  excludeEnd: !0,
22322
22322
  keywords: E,
22323
- contains: kg
22323
+ contains: Dg
22324
22324
  }
22325
22325
  ]
22326
22326
  }]
@@ -22356,7 +22356,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22356
22356
  }
22357
22357
  ]
22358
22358
  },
22359
- jg,
22359
+ kg,
22360
22360
  { beginKeywords: "while if switch catch for" },
22361
22361
  {
22362
22362
  begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
@@ -22371,7 +22371,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22371
22371
  match: /\.\.\./,
22372
22372
  relevance: 0
22373
22373
  },
22374
- Pg,
22374
+ Mg,
22375
22375
  {
22376
22376
  match: "\\$" + g,
22377
22377
  relevance: 0
@@ -22381,10 +22381,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22381
22381
  className: { 1: "title.function" },
22382
22382
  contains: [J]
22383
22383
  },
22384
- Ng,
22384
+ jg,
22385
22385
  $,
22386
22386
  Z,
22387
- Fg,
22387
+ Ng,
22388
22388
  { match: /\$[(.]/ }
22389
22389
  ]
22390
22390
  };
@@ -24565,7 +24565,7 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24565
24565
  if (!(window.InputEvent && typeof InputEvent.prototype.getTargetRanges == "function")) return console.error("beforeinput event is not supported."), noop;
24566
24566
  let { contentEditable: o, role: T, ariaMultiLine: O, ariaReadOnly: k } = r, j = r.style.whiteSpace;
24567
24567
  r.role = "textbox", r.style.whiteSpace = "pre-wrap", e || (r.ariaMultiLine = "true");
24568
- let I = !1, L = !1, z = null, B = !1, H = !1, G = !1, K = getCurrentDocument(r), Og = {
24568
+ let I = !1, L = !1, z = null, B = !1, H = !1, G = !1, K = getCurrentDocument(r), Eg = {
24569
24569
  _document: K,
24570
24570
  _isBlock: s
24571
24571
  };
@@ -24573,9 +24573,9 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24573
24573
  r.contentEditable = m ? "false" : "true", r.ariaReadOnly = m ? "true" : null;
24574
24574
  }, g();
24575
24575
  let q = createMutationObserver(r, () => {
24576
- H && setSelectionToDOM(K, r, d, Og);
24577
- }), kg = () => {
24578
- d = takeSelectionSnapshot(r, Og);
24576
+ H && setSelectionToDOM(K, r, d, Eg);
24577
+ }), Dg = () => {
24578
+ d = takeSelectionSnapshot(r, Eg);
24579
24579
  }, J = () => {
24580
24580
  let e = q._flush();
24581
24581
  if (q._record(!1), e.length) {
@@ -24585,7 +24585,7 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24585
24585
  for (let n = r.length - 1; n >= 0; n--) e.insertBefore(r[n], a);
24586
24586
  for (let n = i.length - 1; n >= 0; n--) e.removeChild(i[n]);
24587
24587
  } else n.target.nodeValue = n.oldValue;
24588
- q._flush(), L = setSelectionToDOM(K, r, d, Og);
24588
+ q._flush(), L = setSelectionToDOM(K, r, d, Eg);
24589
24589
  }
24590
24590
  E(z), B = !1, z = null;
24591
24591
  }, Z = (e) => {
@@ -24599,16 +24599,16 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24599
24599
  r && (l(n(r[0])), d = r[1]);
24600
24600
  }
24601
24601
  }
24602
- }, Ag = () => {
24602
+ }, Og = () => {
24603
24603
  B || J();
24604
24604
  }, Q = (e) => {
24605
24605
  e.preventDefault();
24606
24606
  let n = e.inputType;
24607
24607
  if (n.startsWith("format") || n === "historyUndo" || n === "historyRedo") return;
24608
- B ? q._record(!0) : kg();
24608
+ B ? q._record(!0) : Dg();
24609
24609
  let i = e.getTargetRanges()[0];
24610
24610
  if (i) {
24611
- let a = serializeRange(r, Og, i), o = n === "insertParagraph" || n === "insertLineBreak" ? "\n" : e.data;
24611
+ let a = serializeRange(r, Eg, i), o = n === "insertParagraph" || n === "insertLineBreak" ? "\n" : e.data;
24612
24612
  if (o == null) {
24613
24613
  let n = e.dataTransfer;
24614
24614
  n && (o = n.getData("text/plain"));
@@ -24616,46 +24616,46 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24616
24616
  z ||= new Transaction().select(...d), comparePosition(...a) !== 0 && z.delete(...a), o && z.insert(a[0], stringToDoc(o));
24617
24617
  }
24618
24618
  B || J();
24619
- }, jg = () => {
24620
- B || kg(), B = !0;
24619
+ }, kg = () => {
24620
+ B || Dg(), B = !0;
24621
24621
  }, $ = () => {
24622
24622
  J();
24623
- }, Mg = () => {
24624
- H = !0, kg();
24625
- }, Ng = () => {
24623
+ }, Ag = () => {
24624
+ H = !0, Dg();
24625
+ }, jg = () => {
24626
24626
  H = !1;
24627
- }, Pg = () => {
24627
+ }, Mg = () => {
24628
24628
  if (L) {
24629
24629
  L = !1;
24630
24630
  return;
24631
24631
  }
24632
- H && !B && !G && kg();
24632
+ H && !B && !G && Dg();
24633
+ }, Ng = (e) => {
24634
+ Dg(), comparePosition(...d) !== 0 && i(e, sliceDoc(_(), ...range(d)), r);
24635
+ }, Pg = (e) => {
24636
+ e.preventDefault(), Ng(e.clipboardData);
24633
24637
  }, Fg = (e) => {
24634
- kg(), comparePosition(...d) !== 0 && i(e, sliceDoc(_(), ...range(d)), r);
24638
+ e.preventDefault(), m || (Ng(e.clipboardData), E(new Transaction().delete(...range(d))));
24635
24639
  }, Ig = (e) => {
24636
- e.preventDefault(), Fg(e.clipboardData);
24637
- }, Lg = (e) => {
24638
- e.preventDefault(), m || (Fg(e.clipboardData), E(new Transaction().delete(...range(d))));
24639
- }, Rg = (e) => {
24640
24640
  e.preventDefault();
24641
24641
  let [n, r] = range(d);
24642
- E(new Transaction().delete(n, r).insert(n, a(e.clipboardData, Og)));
24643
- }, zg = (e) => {
24642
+ E(new Transaction().delete(n, r).insert(n, a(e.clipboardData, Eg)));
24643
+ }, Lg = (e) => {
24644
24644
  e.preventDefault();
24645
- let n = e.dataTransfer, i = getPointedCaretPosition(K, r, e, Og);
24645
+ let n = e.dataTransfer, i = getPointedCaretPosition(K, r, e, Eg);
24646
24646
  if (n && i) {
24647
24647
  let e = new Transaction();
24648
24648
  G && e.delete(...range(d));
24649
24649
  let o = e.transform(i);
24650
- e.select(o, o).insert(o, a(n, Og)).select(o), E(e), r.focus({ preventScroll: !0 });
24650
+ e.select(o, o).insert(o, a(n, Eg)).select(o), E(e), r.focus({ preventScroll: !0 });
24651
24651
  }
24652
- }, Bg = (e) => {
24653
- G = !0, Fg(e.dataTransfer);
24654
- }, Vg = () => {
24652
+ }, Rg = (e) => {
24653
+ G = !0, Ng(e.dataTransfer);
24654
+ }, zg = () => {
24655
24655
  G = !1;
24656
24656
  };
24657
- return K.addEventListener("selectionchange", Pg), r.addEventListener("keydown", Z), r.addEventListener("input", Ag), r.addEventListener("beforeinput", Q), r.addEventListener("compositionstart", jg), r.addEventListener("compositionend", $), r.addEventListener("focus", Mg), r.addEventListener("blur", Ng), r.addEventListener("copy", Ig), r.addEventListener("cut", Lg), r.addEventListener("paste", Rg), r.addEventListener("drop", zg), r.addEventListener("dragstart", Bg), r.addEventListener("dragend", Vg), () => {
24658
- I || (I = !0, g = noop, r.contentEditable = o, r.role = T, r.ariaMultiLine = O, r.ariaReadOnly = k, r.style.whiteSpace = j, q._dispose(), K.removeEventListener("selectionchange", Pg), r.removeEventListener("keydown", Z), r.removeEventListener("input", Ag), r.removeEventListener("beforeinput", Q), r.removeEventListener("compositionstart", jg), r.removeEventListener("compositionend", $), r.removeEventListener("focus", Mg), r.removeEventListener("blur", Ng), r.removeEventListener("copy", Ig), r.removeEventListener("cut", Lg), r.removeEventListener("paste", Rg), r.removeEventListener("drop", zg), r.removeEventListener("dragstart", Bg), r.removeEventListener("dragend", Vg));
24657
+ return K.addEventListener("selectionchange", Mg), r.addEventListener("keydown", Z), r.addEventListener("input", Og), r.addEventListener("beforeinput", Q), r.addEventListener("compositionstart", kg), r.addEventListener("compositionend", $), r.addEventListener("focus", Ag), r.addEventListener("blur", jg), r.addEventListener("copy", Pg), r.addEventListener("cut", Fg), r.addEventListener("paste", Ig), r.addEventListener("drop", Lg), r.addEventListener("dragstart", Rg), r.addEventListener("dragend", zg), () => {
24658
+ I || (I = !0, g = noop, r.contentEditable = o, r.role = T, r.ariaMultiLine = O, r.ariaReadOnly = k, r.style.whiteSpace = j, q._dispose(), K.removeEventListener("selectionchange", Mg), r.removeEventListener("keydown", Z), r.removeEventListener("input", Og), r.removeEventListener("beforeinput", Q), r.removeEventListener("compositionstart", kg), r.removeEventListener("compositionend", $), r.removeEventListener("focus", Ag), r.removeEventListener("blur", jg), r.removeEventListener("copy", Pg), r.removeEventListener("cut", Fg), r.removeEventListener("paste", Ig), r.removeEventListener("drop", Lg), r.removeEventListener("dragstart", Rg), r.removeEventListener("dragend", zg));
24659
24659
  };
24660
24660
  },
24661
24661
  command: (e, ...n) => {
@@ -24727,6 +24727,7 @@ const voidNode = ({ is: e, data: n, plain: r = emptyString }) => ({
24727
24727
  tool: "工具",
24728
24728
  mcp: "MCP",
24729
24729
  doc: "知识库",
24730
+ knowledgebase: "知识库",
24730
24731
  shortcut: "快捷指令"
24731
24732
  };
24732
24733
  let UploadStatus = /* @__PURE__ */ function(e) {
@@ -24908,6 +24909,7 @@ var _hoisted_1$28 = { class: "ai-slash-item ai-slash-group-title" }, _hoisted_2$
24908
24909
  "tool",
24909
24910
  "shortcut",
24910
24911
  "doc",
24912
+ "knowledgebase",
24911
24913
  "mcp"
24912
24914
  ]), a = shallowRef([]), s = shallowRef([]), { activeIndex: l } = useMenuKeydown({
24913
24915
  items: a,
@@ -25013,7 +25015,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25013
25015
  }, q = (e) => {
25014
25016
  if (s("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") return e.shiftKey ? void 0 : (e.preventDefault?.(), !1);
25015
25017
  e.key === "@" && (d.value = "slash", K()), e.key === "/" && (d.value = "prompt", K());
25016
- }, kg = () => {
25018
+ }, Dg = () => {
25017
25019
  k.value = "";
25018
25020
  }, J = () => {
25019
25021
  let e = {
@@ -25045,28 +25047,28 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25045
25047
  } catch {
25046
25048
  return e;
25047
25049
  }
25048
- }, Ag = (e, n) => e.reduce((e, r, i) => i >= n ? e : (r.type === "text" && (e += r.text?.length || 0), r.type === "tag" && (e += 1), e), 0), $ = (e) => {
25050
+ }, Og = (e, n) => e.reduce((e, r, i) => i >= n ? e : (r.type === "text" && (e += r.text?.length || 0), r.type === "tag" && (e += 1), e), 0), $ = (e) => {
25049
25051
  L.command(G);
25050
25052
  let { column: n, line: r } = H.value;
25051
- L.command(DeleteTag, [r, n - k.value.length - 1], [r, n]), L.command(InsertTag, [r, n], e), L.command(InsertText, [r, n + k.value.length + 1 + 1], " "), a.value?.hide(), Mg();
25052
- }, Mg = () => {
25053
+ L.command(DeleteTag, [r, n - k.value.length - 1], [r, n]), L.command(InsertTag, [r, n], e), L.command(InsertText, [r, n + k.value.length + 1 + 1], " "), a.value?.hide(), Ag();
25054
+ }, Ag = () => {
25053
25055
  setTimeout(() => {
25054
25056
  let e = window.getSelection(), n = document.createRange();
25055
25057
  i.value && e && (n.selectNodeContents(i.value), n.collapse(!1), e.removeAllRanges(), e.addRange(n));
25056
25058
  }, 100);
25057
- }, Ng = (e) => {
25058
- L.command(ReplaceAll, e), Mg();
25059
+ }, jg = (e) => {
25060
+ L.command(ReplaceAll, e), Ag();
25059
25061
  };
25060
25062
  watchEffect(() => {
25061
25063
  let e = l.resources?.filter((e) => !u.value?.some((n) => n.some((n) => n.type === "tag" && n.data.value === e.id && n.data.type === e.type)));
25062
25064
  k.value ? (j.value = e.filter((e) => e.name.toLowerCase().includes(k.value.toLowerCase())), I.value = l.prompts.filter((e) => e.toLowerCase().includes(k.value.toLowerCase()))) : (j.value = e, I.value = l.prompts), !j.value.length && !I.value.length && a.value?.hide();
25063
25065
  });
25064
- let Pg = (e, n, r, i) => {
25066
+ let Mg = (e, n, r, i) => {
25065
25067
  if (n.type === "tag") {
25066
- let n = Ag(e, r);
25068
+ let n = Og(e, r);
25067
25069
  L.command(DeleteTag, [i, n], [i, n + 1]);
25068
25070
  }
25069
- }, Ig = (e) => {
25071
+ }, Pg = (e) => {
25070
25072
  let n = e.clipboardData?.items;
25071
25073
  if (!n) return;
25072
25074
  let r = [];
@@ -25075,7 +25077,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25075
25077
  n && r.push(n);
25076
25078
  }
25077
25079
  r.length > 0 && (e.preventDefault(), console.log("handlePaste files", r), s("upload", r));
25078
- }, Lg = () => {
25080
+ }, Fg = () => {
25079
25081
  z?.(), L = createEditor({
25080
25082
  doc: u.value,
25081
25083
  schema: tagSchema,
@@ -25084,16 +25086,16 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25084
25086
  },
25085
25087
  onKeyDown: (e) => q(e)
25086
25088
  }), z = L.input(i.value);
25087
- }, Bg = () => d.value === "slash" ? j.value.length < 1 ? !1 : void 0 : I.value.length < 1 ? !1 : void 0;
25089
+ }, Rg = () => d.value === "slash" ? j.value.length < 1 ? !1 : void 0 : I.value.length < 1 ? !1 : void 0;
25088
25090
  return onMounted(() => {
25089
- Lg(), i.value?.addEventListener("paste", Ig);
25091
+ Fg(), i.value?.addEventListener("paste", Pg);
25090
25092
  }), onUnmounted(() => {
25091
- L.command(ReplaceAll, ""), z?.(), i.value?.removeEventListener("paste", Ig);
25093
+ L.command(ReplaceAll, ""), z?.(), i.value?.removeEventListener("paste", Pg);
25092
25094
  }), n({
25093
25095
  cleanup: () => {
25094
25096
  L.command(ReplaceAll, "");
25095
25097
  },
25096
- focus: Mg
25098
+ focus: Ag
25097
25099
  }), (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$27, [createElementVNode("div", {
25098
25100
  ref_key: "editorRef",
25099
25101
  ref: i,
@@ -25107,7 +25109,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25107
25109
  "data-tag-type": r.data.type
25108
25110
  }, [createTextVNode(toDisplayString(r.data.label) + " ", 1), createVNode(unref(RemoveIcon), {
25109
25111
  class: "mention-tag-remove-icon",
25110
- onClick: (a) => Pg(e, r, i, n)
25112
+ onClick: (a) => Mg(e, r, i, n)
25111
25113
  }, null, 8, ["onClick"])], 10, _hoisted_4$13)) : createCommentVNode("v-if", !0)], 64))), 128)) : (openBlock(), createElementBlock("br", _hoisted_5$8))]))), 128)) : createCommentVNode("v-if", !0)], 8, _hoisted_2$20), createVNode(unref(Tippy), {
25112
25114
  ref_key: "tippyRef",
25113
25115
  ref: a,
@@ -25121,8 +25123,8 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25121
25123
  trigger: "manual",
25122
25124
  "trigger-target": i.value,
25123
25125
  "z-index": unref(EDITOR_MENU_Z_INDEX),
25124
- onHidden: kg,
25125
- onShow: Bg
25126
+ onHidden: Dg,
25127
+ onShow: Rg
25126
25128
  }, {
25127
25129
  content: withCtx(() => [d.value === "slash" ? (openBlock(), createBlock(ai_slash_menu_default, {
25128
25130
  key: 0,
@@ -25130,7 +25132,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25130
25132
  "resource-list": j.value
25131
25133
  }, null, 8, ["resource-list"])) : d.value === "prompt" ? (openBlock(), createBlock(ai_prompt_list_default, {
25132
25134
  key: 1,
25133
- "on-select": Ng,
25135
+ "on-select": jg,
25134
25136
  prompts: I.value
25135
25137
  }, null, 8, ["prompts"])) : createCommentVNode("v-if", !0)]),
25136
25138
  _: 1
@@ -25240,7 +25242,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25240
25242
  u("selectShortcut", e);
25241
25243
  }, K = () => {
25242
25244
  u("deleteShortcut");
25243
- }, Og = async (e) => {
25245
+ }, Eg = async (e) => {
25244
25246
  if (I.value) for (let n of e) {
25245
25247
  if (T.value.find((e) => e.file?.name === n.name)) continue;
25246
25248
  let e = {
@@ -25295,7 +25297,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25295
25297
  resources: e.resources,
25296
25298
  onKeydown: z,
25297
25299
  "onUpdate:modelValue": Z,
25298
- onUpload: Og
25300
+ onUpload: Eg
25299
25301
  }, null, 8, [
25300
25302
  "model-value",
25301
25303
  "placeholder",
@@ -25310,7 +25312,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25310
25312
  default: withCtx(() => [
25311
25313
  I.value ? (openBlock(), createBlock(file_upload_btn_default, {
25312
25314
  key: 0,
25313
- onUpload: Og
25315
+ onUpload: Eg
25314
25316
  })) : createCommentVNode("v-if", !0),
25315
25317
  I.value && (e.shortcuts?.length || O.value) ? (openBlock(), createElementBlock("span", _hoisted_2$19)) : createCommentVNode("v-if", !0),
25316
25318
  renderSlot(n.$slots, "attachment", {}, () => [e.shortcuts && !O.value ? (openBlock(), createBlock(shortcut_btns_default, {
@@ -26278,19 +26280,6 @@ function findLastUserMessageIdBefore(e, n) {
26278
26280
  let r = findLastUserMessageBefore(e, n);
26279
26281
  if (r?.id !== void 0) return typeof r.id == "number" ? r.id : Number(r.id);
26280
26282
  }
26281
- var RESOURCE_TYPE_MAP = {
26282
- tool: "tool",
26283
- mcp: "mcp",
26284
- knowledgebase: "doc"
26285
- };
26286
- function mapResourcesToSlashItems(e) {
26287
- return e?.length ? e.map((e) => ({
26288
- id: e.code,
26289
- name: e.name,
26290
- icon: e.icon ?? "",
26291
- type: RESOURCE_TYPE_MAP[e.type] ?? e.type
26292
- })) : [];
26293
- }
26294
26283
  const getCookieByName = (e) => {
26295
26284
  let n = document.cookie.match(/* @__PURE__ */ RegExp(`(^| )${e}=([^;]*)(;|$)`));
26296
26285
  return n ? n[2] : "";
@@ -26763,7 +26752,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26763
26752
  onSessionDelete: (e) => a("history-session-delete", e),
26764
26753
  onSessionRename: (e, n) => a("history-session-rename", e, n)
26765
26754
  }));
26766
- }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), G = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), K = computed(() => i.hasPermission), q = (e) => K.value ? e : t("暂无使用权限"), Ag = () => ({ cursor: K.value ? "pointer" : "not-allowed" }), Q = computed(() => {
26755
+ }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), G = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), K = computed(() => i.hasPermission), q = (e) => K.value ? e : t("暂无使用权限"), Og = () => ({ cursor: K.value ? "pointer" : "not-allowed" }), Q = computed(() => {
26767
26756
  let e = !i.hasSessionContents, n = e ? "disabled" : "", r = e ? `data-tippy-content="${t("请先发起会话")}"` : "", a = "";
26768
26757
  return i.dropdownMenuConfig?.showRename && (a += `
26769
26758
  <div class="tippy-menu-item" data-action="rename">
@@ -26795,18 +26784,18 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26795
26784
  });
26796
26785
  }
26797
26786
  a("new-chat");
26798
- }, Mg = (e) => {
26787
+ }, Ag = (e) => {
26799
26788
  e.stopPropagation(), i.sessionBusinessManager ? (L || z(), L && L.handleTriggerClick(e)) : a("history-click", e);
26800
- }, Pg = () => {
26789
+ }, Mg = () => {
26801
26790
  a("help-click");
26802
- }, Fg = (e) => {
26791
+ }, Ng = (e) => {
26803
26792
  e.stopPropagation(), L && L.isVisible() && L.hide(), j && (j.state.isVisible ? j.hide() : j.show());
26804
- }, Ig = (e) => {
26793
+ }, Pg = (e) => {
26805
26794
  e.stopPropagation(), e.preventDefault();
26806
26795
  let n = e.currentTarget, r = n.dataset.action;
26807
26796
  if (!n.classList.contains("disabled")) switch (j && j.hide(), r) {
26808
26797
  case "rename":
26809
- Lg();
26798
+ Fg();
26810
26799
  break;
26811
26800
  case "auto-generate":
26812
26801
  a("auto-generate-name");
@@ -26815,9 +26804,9 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26815
26804
  a("share");
26816
26805
  break;
26817
26806
  }
26818
- }, Lg = () => {
26819
- document.removeEventListener("click", Ug), O.value = i.sessionName || "", m.value = !0, setTimeout(() => {
26820
- document.addEventListener("click", Ug);
26807
+ }, Fg = () => {
26808
+ document.removeEventListener("click", Vg), O.value = i.sessionName || "", m.value = !0, setTimeout(() => {
26809
+ document.addEventListener("click", Vg);
26821
26810
  }, 100), setTimeout(() => {
26822
26811
  if (k.value) try {
26823
26812
  let e = k.value;
@@ -26828,22 +26817,22 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26828
26817
  console.warn("Failed to focus rename input:", e);
26829
26818
  }
26830
26819
  }, 100);
26831
- }, Rg = () => {
26820
+ }, Ig = () => {
26832
26821
  let e = O.value.trim();
26833
26822
  if (!e) {
26834
- Bg();
26823
+ Rg();
26835
26824
  return;
26836
26825
  }
26837
26826
  a("rename", e), m.value = !1, O.value = "";
26838
- }, Bg = () => {
26827
+ }, Rg = () => {
26839
26828
  m.value = !1, O.value = "";
26840
- }, Hg = (e, n) => {
26841
- O.value = e, n.key === "Enter" ? Rg() : n.key === "Escape" && Bg();
26842
- }, Ug = (e) => {
26829
+ }, Bg = (e, n) => {
26830
+ O.value = e, n.key === "Enter" ? Ig() : n.key === "Escape" && Rg();
26831
+ }, Vg = (e) => {
26843
26832
  if (!m.value) return;
26844
26833
  let n = e.target, r = document.querySelector(".rename-tooltip");
26845
- r && !r.contains(n) && Bg();
26846
- }, Wg = async () => {
26834
+ r && !r.contains(n) && Rg();
26835
+ }, Hg = async () => {
26847
26836
  if (!u.value) return;
26848
26837
  let e = (await import("tippy.js")).default;
26849
26838
  j &&= (j.destroy(), null), j = e(u.value, {
@@ -26861,7 +26850,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26861
26850
  let { default: e } = await import("tippy.js");
26862
26851
  document.querySelectorAll(".tippy-menu-item").forEach((n) => {
26863
26852
  let r = n;
26864
- r.addEventListener("click", Ig);
26853
+ r.addEventListener("click", Pg);
26865
26854
  let i = r.getAttribute("data-tippy-content");
26866
26855
  if (i && !I.has(r)) {
26867
26856
  let n = e(r, {
@@ -26880,7 +26869,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26880
26869
  onHide: () => {
26881
26870
  document.querySelectorAll(".tippy-menu-item").forEach((e) => {
26882
26871
  let n = e;
26883
- n.removeEventListener("click", Ig);
26872
+ n.removeEventListener("click", Pg);
26884
26873
  let r = I.get(n);
26885
26874
  r && (r.destroy(), I.delete(n));
26886
26875
  });
@@ -26890,11 +26879,11 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26890
26879
  return watch(() => [i.isCompressionHeight, i.hasSessionContents], () => {
26891
26880
  j && j.setContent(Q.value);
26892
26881
  }), onMounted(() => {
26893
- Wg(), i.sessionBusinessManager && z(), document.addEventListener("click", Ug);
26882
+ Hg(), i.sessionBusinessManager && z(), document.addEventListener("click", Vg);
26894
26883
  }), onBeforeUnmount(() => {
26895
26884
  j &&= (j.destroy(), null), I.forEach((e) => {
26896
26885
  e.destroy();
26897
- }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", Ug);
26886
+ }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", Vg);
26898
26887
  }), n({
26899
26888
  headerRef: s,
26900
26889
  historyIconRef: l
@@ -26917,13 +26906,13 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26917
26906
  "onUpdate:modelValue": r[0] ||= (e) => O.value = e,
26918
26907
  class: "rename-input",
26919
26908
  placeholder: unref(t)("请输入新的会话名称"),
26920
- onKeyup: Hg
26909
+ onKeyup: Bg
26921
26910
  }, null, 8, ["modelValue", "placeholder"]), createElementVNode("div", { class: "rename-buttons" }, [createElementVNode("i", {
26922
26911
  class: "bkai-icon bkai-check-1 rename-btn confirm-btn",
26923
- onClick: Rg
26912
+ onClick: Ig
26924
26913
  }), createElementVNode("i", {
26925
26914
  class: "bkai-icon bkai-close rename-btn cancel-btn",
26926
- onClick: Bg
26915
+ onClick: Rg
26927
26916
  })])])])) : createCommentVNode("v-if", !0)
26928
26917
  ], 2),
26929
26918
  i.showMoreIcon && K.value ? (openBlock(), createElementBlock("span", {
@@ -26931,7 +26920,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26931
26920
  ref_key: "moreIconRef",
26932
26921
  ref: u,
26933
26922
  class: "bkai-icon bkai-more",
26934
- onClick: Fg
26923
+ onClick: Ng
26935
26924
  }, null, 512)) : createCommentVNode("v-if", !0)
26936
26925
  ]), createElementVNode("div", _hoisted_6$1, [
26937
26926
  createCommentVNode(" 新增会话按钮 "),
@@ -26942,7 +26931,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26942
26931
  "bkai-xinzengliaotian",
26943
26932
  { disabled: !K.value }
26944
26933
  ]),
26945
- style: normalizeStyle(Ag()),
26934
+ style: normalizeStyle(Og()),
26946
26935
  onClick: r[1] ||= (e) => K.value ? $() : void 0
26947
26936
  }, null, 6)), [[unref(o), {
26948
26937
  content: q(unref(t)("新增会话")),
@@ -26958,8 +26947,8 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26958
26947
  "bkai-history",
26959
26948
  { disabled: !K.value }
26960
26949
  ]),
26961
- style: normalizeStyle(Ag()),
26962
- onClick: r[2] ||= (e) => K.value ? Mg(e) : void 0
26950
+ style: normalizeStyle(Og()),
26951
+ onClick: r[2] ||= (e) => K.value ? Ag(e) : void 0
26963
26952
  }, null, 6)), [[unref(o), {
26964
26953
  content: q(unref(t)("历史会话")),
26965
26954
  boundary: "parent"
@@ -26967,7 +26956,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
26967
26956
  e.chatGroup?.enabled ? withDirectives((openBlock(), createElementBlock("i", {
26968
26957
  key: 2,
26969
26958
  class: "bkai-icon bkai-zhushou",
26970
- onClick: Pg
26959
+ onClick: Mg
26971
26960
  }, null, 512)), [[unref(o), {
26972
26961
  content: unref(t)("转人工"),
26973
26962
  boundary: "parent"
@@ -27812,7 +27801,7 @@ var UIStateManager = class {
27812
27801
  a("receive-text");
27813
27802
  },
27814
27803
  onDone: () => {
27815
- a("receive-end"), __();
27804
+ a("receive-end"), h_();
27816
27805
  },
27817
27806
  onError: (e) => {
27818
27807
  a("error", e);
@@ -27828,7 +27817,7 @@ var UIStateManager = class {
27828
27817
  return n.injectMessageModule(r.message), r;
27829
27818
  })(), B = computed(() => ((i.chatHelper || z)?.agent)?.isChatting?.value ? MessageStatus.Streaming : MessageStatus.Complete), H = computed(() => B.value === MessageStatus.Streaming ? MessageToolsStatus.Disabled : void 0), q = async (e, n) => {
27830
27819
  if (e.id === "cite") {
27831
- Zg.value = n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"), P_();
27820
+ Yg.value = n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"), M_();
27832
27821
  return;
27833
27822
  }
27834
27823
  if (e.id === "rebuild") {
@@ -27840,7 +27829,7 @@ var UIStateManager = class {
27840
27829
  return;
27841
27830
  }
27842
27831
  if (e.id === "share") {
27843
- Ug && (O.value = !0), a("request-share");
27832
+ Vg && (O.value = !0), a("request-share");
27844
27833
  return;
27845
27834
  }
27846
27835
  if (e.id === "like" || e.id === "unlike") {
@@ -27852,7 +27841,7 @@ var UIStateManager = class {
27852
27841
  }
27853
27842
  }
27854
27843
  console.log("handleAgentAction", e, n);
27855
- }, Ag = async (e, n, r, i) => {
27844
+ }, Og = async (e, n, r, i) => {
27856
27845
  if (!z) {
27857
27846
  console.error("[ChatBot] Cannot submit feedback: chatHelper not initialized");
27858
27847
  return;
@@ -27862,7 +27851,7 @@ var UIStateManager = class {
27862
27851
  console.error("[ChatBot] Cannot submit feedback: no active session");
27863
27852
  return;
27864
27853
  }
27865
- let s = findLastUserMessageIdBefore(Jg?.messages.value || [], n[0]);
27854
+ let s = findLastUserMessageIdBefore(Kg?.messages.value || [], n[0]);
27866
27855
  if (s === void 0) {
27867
27856
  console.error("[ChatBot] Cannot submit feedback: no user message found");
27868
27857
  return;
@@ -27880,12 +27869,12 @@ var UIStateManager = class {
27880
27869
  console.error("[ChatBot] Failed to submit feedback:", e), a("error", e);
27881
27870
  }
27882
27871
  }, Q = async (e) => {
27883
- if (!Jg || !z) {
27872
+ if (!Kg || !z) {
27884
27873
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
27885
27874
  return;
27886
27875
  }
27887
27876
  try {
27888
- let n = Jg.messages.value, r = findLastUserMessageBefore(n, e[0]);
27877
+ let n = Kg.messages.value, r = findLastUserMessageBefore(n, e[0]);
27889
27878
  if (!r) {
27890
27879
  console.error("[ChatBot] No user message found before AI messages");
27891
27880
  return;
@@ -27896,7 +27885,7 @@ var UIStateManager = class {
27896
27885
  console.error("[ChatBot] Failed to delete messages:", e), a("error", e);
27897
27886
  }
27898
27887
  }, $ = async (e) => {
27899
- if (!Jg || !z) {
27888
+ if (!Kg || !z) {
27900
27889
  console.error("[ChatBot] Cannot regenerate: chatBusinessManager not initialized");
27901
27890
  return;
27902
27891
  }
@@ -27906,21 +27895,21 @@ var UIStateManager = class {
27906
27895
  return;
27907
27896
  }
27908
27897
  try {
27909
- await Jg.regenerateFromAIMessages(e, n), __();
27898
+ await Kg.regenerateFromAIMessages(e, n), h_();
27910
27899
  } catch (e) {
27911
27900
  console.error("[ChatBot] Failed to regenerate:", e), a("error", e);
27912
27901
  }
27913
- }, Mg = async (e, n) => {
27902
+ }, Ag = async (e, n) => {
27914
27903
  if (e.id === "delete") {
27915
- await Bg(n);
27904
+ await Rg(n);
27916
27905
  return;
27917
27906
  }
27918
27907
  if (e.id === "cite") {
27919
- Zg.value = typeof n.content == "string" ? n.content : JSON.stringify(n.content || ""), P_();
27908
+ Yg.value = typeof n.content == "string" ? n.content : JSON.stringify(n.content || ""), M_();
27920
27909
  return;
27921
27910
  }
27922
27911
  console.log("handleUserAction", e, n);
27923
- }, Pg = async (e, n, r) => {
27912
+ }, Mg = async (e, n, r) => {
27924
27913
  if (!z) {
27925
27914
  console.error("[ChatBot] Cannot edit message: chatHelper not initialized");
27926
27915
  return;
@@ -27936,12 +27925,12 @@ var UIStateManager = class {
27936
27925
  return;
27937
27926
  }
27938
27927
  try {
27939
- console.log("handleUserInputConfirm", o, i, n), await z.agent.resendMessage(String(o), i, n), __();
27928
+ console.log("handleUserInputConfirm", o, i, n), await z.agent.resendMessage(String(o), i, n), h_();
27940
27929
  } catch (e) {
27941
27930
  console.error("[ChatBot] Failed to edit and resend message:", e), a("error", e);
27942
27931
  }
27943
- }, Fg = async (e, n) => {
27944
- if (!Jg || !z) {
27932
+ }, Ng = async (e, n) => {
27933
+ if (!Kg || !z) {
27945
27934
  console.error("[ChatBot] Cannot edit shortcut message: chatHelper not initialized");
27946
27935
  return;
27947
27936
  }
@@ -27956,26 +27945,26 @@ var UIStateManager = class {
27956
27945
  return;
27957
27946
  }
27958
27947
  try {
27959
- let a = Lg(e);
27948
+ let a = Fg(e);
27960
27949
  if (!a) {
27961
27950
  console.error("[ChatBot] Cannot edit shortcut message: shortcut not found");
27962
27951
  return;
27963
27952
  }
27964
- let o = k_(a, n), s = String(n.input ?? "");
27965
- await Jg.resendMessageWithProperty(String(i), r, s, o), __();
27953
+ let o = D_(a, n), s = String(n.input ?? "");
27954
+ await Kg.resendMessageWithProperty(String(i), r, s, o), h_();
27966
27955
  } catch (e) {
27967
27956
  console.error("[ChatBot] Failed to edit shortcut message:", e), a("error", e);
27968
27957
  }
27969
- }, Lg = (e) => {
27958
+ }, Fg = (e) => {
27970
27959
  let n = e.property?.extra;
27971
- return n?.shortcut ? n.shortcut : n?.command ? g_.value.find((e) => e.id === n.command) ?? null : null;
27972
- }, Bg = async (e) => {
27973
- if (!Jg || !z) {
27960
+ return n?.shortcut ? n.shortcut : n?.command ? m_.value.find((e) => e.id === n.command) ?? null : null;
27961
+ }, Rg = async (e) => {
27962
+ if (!Kg || !z) {
27974
27963
  console.error("[ChatBot] Cannot delete message: chatHelper not initialized");
27975
27964
  return;
27976
27965
  }
27977
27966
  try {
27978
- let n = Jg.messages.value, r = n.findIndex((n) => n === e);
27967
+ let n = Kg.messages.value, r = n.findIndex((n) => n === e);
27979
27968
  if (r === -1) {
27980
27969
  console.error("[ChatBot] User message not found in messages list");
27981
27970
  return;
@@ -27991,31 +27980,31 @@ var UIStateManager = class {
27991
27980
  } catch (e) {
27992
27981
  console.error("[ChatBot] Failed to delete user message:", e), a("error", e);
27993
27982
  }
27994
- }, Hg = async () => {
27983
+ }, Bg = async () => {
27995
27984
  ((i.chatHelper || z)?.agent)?.stopChat?.(z?.session.current?.value?.sessionCode ?? "");
27996
- }, Ug = !i.chatHelper, Wg = computed(() => Ug ? O.value : i.enableSelection), Gg = computed(() => Ug ? k.value : i.shareLoading), Kg = z ? new SessionBusinessManager(z.session, z.agent, null, {
27985
+ }, Vg = !i.chatHelper, Hg = computed(() => Vg ? O.value : i.enableSelection), Ug = computed(() => Vg ? k.value : i.shareLoading), Wg = z ? new SessionBusinessManager(z.session, z.agent, null, {
27997
27986
  enableChatSession: !0,
27998
27987
  autoSwitchToInitialSession: !!i.sessionCode,
27999
27988
  loadRecentSessionOnMount: i.autoLoad,
28000
27989
  initialSessionCode: i.sessionCode
28001
- }) : null, Jg = z ? new ChatBusinessManager(z.agent, z.message, z.session, null, {
27990
+ }) : null, Kg = z ? new ChatBusinessManager(z.agent, z.message, z.session, null, {
28002
27991
  openingRemark: i.helloText,
28003
27992
  predefinedQuestions: i.prompts,
28004
27993
  placeholder: i.placeholder
28005
- }) : null, Yg = new ShortcutManager(null, i.shortcuts || []), Xg = shallowRef([[]]), Zg = ref(""), Qg = shallowRef([]), $g = (e, n) => {
28006
- Xg.value = e, Qg.value = n;
28007
- }, e_ = computed(() => Jg?.messages.value ?? []), t_ = computed(() => Jg?.isMessagesLoading.value ?? !1), n_ = computed(() => Jg?.isGenerating.value ?? !1), r_ = computed(() => Kg?.currentSession.value ?? null), i_ = computed(() => Ug && !j.value ? !1 : !t_.value && e_.value.length === 0), a_ = computed(() => z?.agent.info.value?.conversationSettings?.openingRemark || ""), o_ = computed(() => i.resources?.length ? i.resources : mapResourcesToSlashItems(z?.agent.info.value?.resources)), l_ = computed(() => i.prompts?.length ? i.prompts : z?.agent.info.value?.conversationSettings?.predefinedQuestions ?? []), u_ = computed(() => ({
27994
+ }) : null, qg = new ShortcutManager(null, i.shortcuts || []), Jg = shallowRef([[]]), Yg = ref(""), Xg = shallowRef([]), Zg = (e, n) => {
27995
+ Jg.value = e, Xg.value = n;
27996
+ }, Qg = computed(() => Kg?.messages.value ?? []), $g = computed(() => Kg?.isMessagesLoading.value ?? !1), e_ = computed(() => Kg?.isGenerating.value ?? !1), t_ = computed(() => Wg?.currentSession.value ?? null), n_ = computed(() => Vg && !j.value ? !1 : !$g.value && Qg.value.length === 0), r_ = computed(() => z?.agent.info.value?.conversationSettings?.openingRemark || ""), i_ = computed(() => i.resources?.length ? i.resources : z?.agent.info.value?.resources ?? []), s_ = computed(() => i.prompts?.length ? i.prompts : z?.agent.info.value?.conversationSettings?.predefinedQuestions ?? []), c_ = computed(() => ({
28008
27997
  height: typeof i.height == "number" ? `${i.height}px` : i.height,
28009
27998
  maxWidth: typeof i.maxWidth == "number" ? `${i.maxWidth}px` : i.maxWidth
28010
- })), d_ = computed(() => {
28011
- let e = Yg.shortcuts.value;
27999
+ })), l_ = computed(() => {
28000
+ let e = qg.shortcuts.value;
28012
28001
  return i.shortcutLimit && e.length > i.shortcutLimit ? e.slice(0, i.shortcutLimit) : e;
28013
- }), f_ = () => {
28014
- T.value = [], Ug && (O.value = !1), a("cancel-share");
28015
- }, p_ = async () => {
28002
+ }), u_ = () => {
28003
+ T.value = [], Vg && (O.value = !1), a("cancel-share");
28004
+ }, d_ = async () => {
28016
28005
  let e = T.value;
28017
- Ug && await m_(e), a("confirm-share", e);
28018
- }, m_ = async (e) => {
28006
+ Vg && await f_(e), a("confirm-share", e);
28007
+ }, f_ = async (e) => {
28019
28008
  if (!z || e.length === 0) return;
28020
28009
  let n = z.session.current?.value?.sessionCode;
28021
28010
  if (!n) {
@@ -28037,42 +28026,42 @@ var UIStateManager = class {
28037
28026
  } finally {
28038
28027
  k.value = !1, O.value = !1, T.value = [];
28039
28028
  }
28040
- }, h_ = (e) => {
28041
- e ? T.value = e_.value : T.value = [];
28042
- }, g_ = Yg.effectiveShortcuts;
28029
+ }, p_ = (e) => {
28030
+ e ? T.value = Qg.value : T.value = [];
28031
+ }, m_ = qg.effectiveShortcuts;
28043
28032
  watch(() => i.shortcuts, (e) => {
28044
- Yg.setShortcuts(e || []);
28033
+ qg.setShortcuts(e || []);
28045
28034
  }, { immediate: !0 }), watch(() => z?.agent.info.value?.conversationSettings?.commands, (e) => {
28046
- e && Yg.setAgentShortcuts(e);
28035
+ e && qg.setAgentShortcuts(e);
28047
28036
  }, { immediate: !0 });
28048
- let __ = async () => {
28037
+ let h_ = async () => {
28049
28038
  await nextTick(), s.value && (s.value.scrollTop = s.value.scrollHeight);
28050
- }, y_ = async (e, n = {}) => {
28051
- if (!Jg || !z) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
28039
+ }, __ = async (e, n = {}) => {
28040
+ if (!Kg || !z) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
28052
28041
  let r = z.session.current?.value?.sessionCode;
28053
28042
  if (!r) throw Error("[ChatBot] Cannot send message: no active session");
28054
- Xg.value = [[]], Zg.value = "", Qg.value = [], a("send-message", typeof e == "string" ? e : ""), await Jg.sendMessage(e, r, n);
28055
- }, b_ = async (e) => {
28043
+ Jg.value = [[]], Yg.value = "", Xg.value = [], a("send-message", typeof e == "string" ? e : ""), await Kg.sendMessage(e, r, n);
28044
+ }, v_ = async (e) => {
28056
28045
  let n = z?.session.current?.value?.sessionCode;
28057
28046
  if (!n) throw Error("[ChatBot] Cannot upload: no active session");
28058
28047
  let r = await z.session.uploadFile(n, e);
28059
28048
  if (!r?.download_url) throw Error("[ChatBot] Upload failed: no download URL returned");
28060
28049
  return r;
28061
- }, S_ = async (e, n) => {
28050
+ }, b_ = async (e, n) => {
28062
28051
  try {
28063
28052
  let n = {};
28064
- Zg.value && (n.cite = Zg.value), u.value && (n.command = u.value.id), Qg.value.length && (n.resources = Qg.value), await y_(e, Object.keys(n).length ? { property: { extra: n } } : {});
28053
+ Yg.value && (n.cite = Yg.value), u.value && (n.command = u.value.id), Xg.value.length && (n.resources = Xg.value), await __(e, Object.keys(n).length ? { property: { extra: n } } : {});
28065
28054
  } catch (e) {
28066
28055
  console.error("Failed to send message:", e), a("error", e);
28067
28056
  }
28068
- }, T_ = async () => {
28069
- j_();
28070
- }, E_ = (e, n) => {
28071
- D_(e, n), a("shortcut-click", {
28057
+ }, C_ = async () => {
28058
+ k_();
28059
+ }, w_ = (e, n) => {
28060
+ T_(e, n), a("shortcut-click", {
28072
28061
  shortcut: e,
28073
28062
  source: "main"
28074
28063
  });
28075
- }, D_ = (e, n) => {
28064
+ }, T_ = (e, n) => {
28076
28065
  let r = e, i;
28077
28066
  if (i = r.enable_fill_back && r.fill_back_component_key ? r.fill_back_component_key : r.components?.find((e) => e.fillBack)?.key, i && n) {
28078
28067
  let e = r.components?.map((e) => e.key === i ? {
@@ -28094,9 +28083,9 @@ var UIStateManager = class {
28094
28083
  ...r,
28095
28084
  formModel: { ...r.formModel }
28096
28085
  };
28097
- }, O_ = () => {
28086
+ }, E_ = () => {
28098
28087
  u.value = null;
28099
- }, k_ = (e, n) => {
28088
+ }, D_ = (e, n) => {
28100
28089
  let r = e.components || [];
28101
28090
  return { extra: {
28102
28091
  cite: {
@@ -28116,42 +28105,42 @@ var UIStateManager = class {
28116
28105
  __value: n[e.key]
28117
28106
  }))
28118
28107
  } };
28119
- }, A_ = async (e) => {
28108
+ }, O_ = async (e) => {
28120
28109
  if (!u.value) {
28121
28110
  console.error("[ChatBot] No selected shortcut");
28122
28111
  return;
28123
28112
  }
28124
- let n = k_(u.value, e), r = u.value.name, i = u.value;
28125
- O_();
28113
+ let n = D_(u.value, e), r = u.value.name, i = u.value;
28114
+ E_();
28126
28115
  try {
28127
- await y_(r, { property: n });
28116
+ await __(r, { property: n });
28128
28117
  } catch (e) {
28129
28118
  u.value = i, console.error("[ChatBot] Failed to submit shortcut:", e), a("error", e);
28130
28119
  }
28131
- }, j_ = () => {
28132
- if (!Jg) {
28120
+ }, k_ = () => {
28121
+ if (!Kg) {
28133
28122
  console.error("[ChatBot] Cannot stop generation: chatBusinessManager not initialized");
28134
28123
  return;
28135
28124
  }
28136
- Jg.stopGeneration(), a("stop");
28137
- }, M_ = async (e) => {
28138
- if (!Kg) {
28125
+ Kg.stopGeneration(), a("stop");
28126
+ }, A_ = async (e) => {
28127
+ if (!Wg) {
28139
28128
  console.error("[ChatBot] Cannot switch session: sessionBusinessManager not initialized");
28140
28129
  return;
28141
28130
  }
28142
28131
  try {
28143
- await Kg.switchSession(e), a("session-switched", Kg.currentSession.value);
28132
+ await Wg.switchSession(e), a("session-switched", Wg.currentSession.value);
28144
28133
  } catch (e) {
28145
28134
  console.error("Failed to switch session:", e), a("error", e);
28146
28135
  }
28147
- }, N_ = (e) => {
28148
- Zg.value = e;
28149
- }, P_ = () => {
28136
+ }, j_ = (e) => {
28137
+ Yg.value = e;
28138
+ }, M_ = () => {
28150
28139
  l.value?.focus?.();
28151
28140
  };
28152
28141
  return onMounted(async () => {
28153
28142
  if (!(!z || I.value)) try {
28154
- if (Ug) {
28143
+ if (Vg) {
28155
28144
  if (await z.agent.getAgentInfo(), await z.session.getSessions(), i.sessionCode) await z.session.chooseSession(i.sessionCode);
28156
28145
  else if (z.session.list.value.length > 0) {
28157
28146
  let e = z.session.list.value[0];
@@ -28164,46 +28153,46 @@ var UIStateManager = class {
28164
28153
  console.error("Failed to initialize ChatBot:", e), I.value = e, a("error", e);
28165
28154
  }
28166
28155
  }), onBeforeUnmount(() => {
28167
- Ug && z && z.agent.stopChat(z.session.current?.value?.sessionCode ?? "");
28156
+ Vg && z && z.agent.stopChat(z.session.current?.value?.sessionCode ?? "");
28168
28157
  }), n({
28169
- sendMessage: (e) => S_(e, [[]]),
28170
- stopGeneration: j_,
28171
- switchSession: M_,
28172
- messages: e_,
28173
- currentSession: r_,
28174
- isGenerating: n_,
28158
+ sendMessage: (e) => b_(e, [[]]),
28159
+ stopGeneration: k_,
28160
+ switchSession: A_,
28161
+ messages: Qg,
28162
+ currentSession: t_,
28163
+ isGenerating: e_,
28175
28164
  getChatHelper: () => z,
28176
- setCiteText: N_,
28177
- focusInput: P_,
28165
+ setCiteText: j_,
28166
+ focusInput: M_,
28178
28167
  selectShortcut: (e, n) => {
28179
- D_(e, n);
28168
+ T_(e, n);
28180
28169
  }
28181
28170
  }), (e, n) => (openBlock(), createElementBlock("div", {
28182
28171
  class: normalizeClass([
28183
28172
  "ai-chatbot",
28184
28173
  i.extCls,
28185
- { "welcome-state": i_.value }
28174
+ { "welcome-state": n_.value }
28186
28175
  ]),
28187
- style: normalizeStyle(u_.value)
28188
- }, [createCommentVNode(" 初始化错误提示 "), I.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("span", null, toDisplayString(I.value.message), 1)])) : Ug && !j.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 独立模式:初始化中(getAgentInfo → getSessions → chooseSession)统一展示 Loading "), createElementVNode("div", _hoisted_2$1, [createVNode(unref(Loading), {
28176
+ style: normalizeStyle(c_.value)
28177
+ }, [createCommentVNode(" 初始化错误提示 "), I.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("span", null, toDisplayString(I.value.message), 1)])) : Vg && !j.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 独立模式:初始化中(getAgentInfo → getSessions → chooseSession)统一展示 Loading "), createElementVNode("div", _hoisted_2$1, [createVNode(unref(Loading), {
28189
28178
  mode: "spin",
28190
28179
  size: "small",
28191
28180
  theme: "primary"
28192
28181
  })])], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
28193
28182
  createCommentVNode(" 内容区:欢迎状态 "),
28194
- i_.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [
28183
+ n_.value ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [
28195
28184
  n[2] ||= createElementVNode("img", {
28196
28185
  alt: "ai-blueking",
28197
28186
  class: "welcome-banner",
28198
28187
  src: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='309px'%20height='93px'%20viewBox='0%200%20309%2093'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eAI%20小鲸%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='45.02491%25'%20y1='35.5927467%25'%20x2='99.2803929%25'%20y2='81.0358394%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%23235DFA'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23EB8CEC'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-2'%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0.885701426'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0.29'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-3'%3e%3cstop%20stop-color='%231562FC'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23EB8CEC'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='95.0902604%25'%20x2='35.112422%25'%20y2='19.6450217%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23DC63FE'%20offset='0.0150240385%25'%3e%3c/stop%3e%3cstop%20stop-color='%23235DFA'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='46.6072083%25'%20y1='95.8855311%25'%20x2='46.6072083%25'%20y2='50%25'%20id='linearGradient-5'%3e%3cstop%20stop-color='%23B962FD'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23565FFB'%20offset='99.984976%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23235DFA'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23A826E2'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='-38.6691405%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-7'%3e%3cstop%20stop-color='%23235DFA'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%239F7BF1'%20stop-opacity='0.15'%20offset='62.335824%25'%3e%3c/stop%3e%3cstop%20stop-color='%23EB8CEC'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='AI--小鲸'%20transform='translate(-1710,%20-3457)'%3e%3cg%20id='聊天窗/默认页'%20transform='translate(1644,%203324)'%3e%3cg%20id='AI-小鲸'%20transform='translate(66,%20133.2974)'%3e%3cg%20transform='translate(124.4167,%20-0)'%20id='编组'%3e%3cg%20transform='translate(0,%200)'%3e%3cpath%20d='M28.3965776,12.9425679%20C38.3377031,12.9425679%2046.3965776,21.0014424%2046.3965776,30.9425679%20L46.3969075,48.6505618%20C51.2162571,49.132982%2054.5842089,50.4998157%2054.5842089,53.8408323%20C54.5842089,53.8444226%2054.5842089,53.8477257%2054.5824622,53.8507588%20L54.5702354,53.8590653%20C54.5370482,53.8709895%2054.4250414,53.8772107%2054.0470184,53.8795761%20L53.8473221,53.8804155%20C53.8227592,53.8804783%2053.7973775,53.8805312%2053.7711498,53.8805746%20L53.4140599,53.8806511%20C53.3806271,53.8806219%2053.3462391,53.8805842%2053.3108685,53.8805382%20L52.8375142,53.8796076%20C51.6610285,53.8767057%2049.6921211,53.8685916%2046.3970568,53.8605313%20L46.3965776,53.8807246%20L23.4584209,53.8807246%20C14.9044209,53.8807246%207.74404265,47.9139206%205.91235374,39.9153803%20C2.4976649,38.935189%200,35.8013205%200,32.0869334%20L1.43000256,32.0866983%20C1.58407741,32.0866469%201.73656386,32.0865873%201.88747828,32.0865198%20L3.20370552,32.0857063%20C4.00314289,32.0850715%204.75405903,32.0842107%205.4593989,32.0831725%20L5.45842089,30.9425679%20C5.45842089,21.0014424%2013.5172954,12.9425679%2023.4584209,12.9425679%20L28.3965776,12.9425679%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3crect%20id='矩形'%20fill='url(%23linearGradient-2)'%20x='10.9168418'%20y='18.4009888'%20width='30.0213149'%20height='30.0213149'%20rx='12'%3e%3c/rect%3e%3crect%20id='矩形'%20fill='url(%23linearGradient-3)'%20x='49.125788'%20y='21.1301993'%20width='5.45842089'%20height='24.562894'%20rx='2'%3e%3c/rect%3e%3cpath%20d='M51.8123687,2.72921045%20C51.8123687,6.90327561%2054.9358287,10.3478176%2058.9729609,10.8530485%20L60,10.9168418%20C55.8259348,10.9168418%2052.3813929,14.0403018%2051.8761619,18.077434%20L51.8123687,19.1044731%20C51.8123687,14.930408%2048.6889086,11.485866%2044.6517764,10.9806351%20L43.6247373,10.9168418%20C47.7988025,10.9168418%2051.2433445,7.79338174%2051.7485754,3.75624952%20L51.8123687,2.72921045%20Z'%20id='星形'%20fill='url(%23linearGradient-4)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M40.8955269,-1.43884904e-13%20C40.8955269,2.78271011%2042.9778336,5.07907143%2045.6692551,5.41589204%20L46.3539478,5.45842089%20C43.5712377,5.45842089%2041.2748763,7.54072759%2040.9380557,10.2321491%20L40.8955269,10.9168418%20C40.8955269,8.13413168%2038.8132202,5.83777036%2036.1217987,5.50094974%20L35.437106,5.45842089%20C38.2198161,5.45842089%2040.5161774,3.3761142%2040.852998,0.684692719%20L40.8955269,-1.43884904e-13%20Z'%20id='星形'%20fill='url(%23linearGradient-5)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M44.4235306,12.0484656%20C44.4235306,13.4398207%2045.464684,14.5880013%2046.8103947,14.7564116%20L47.1527411,14.7776761%20C45.761386,14.7776761%2044.6132054,15.8188294%2044.4447951,17.1645402%20L44.4235306,17.5068865%20C44.4235306,16.1155315%2043.3823773,14.9673508%2042.0366665,14.7989405%20L41.6943202,14.7776761%20C43.0856752,14.7776761%2044.2338559,13.7365227%2044.4022662,12.390812%20L44.4235306,12.0484656%20Z'%20id='星形'%20fill='%238860FC'%20fill-rule='nonzero'%3e%3c/path%3e%3crect%20id='矩形'%20fill='%2316204D'%20x='17.7398679'%20y='29.3178306'%20width='5.45842089'%20height='8.18763134'%20rx='2'%3e%3c/rect%3e%3crect%20id='矩形备份'%20fill='%2316204D'%20x='28.6567097'%20y='29.3178306'%20width='5.45842089'%20height='8.18763134'%20rx='2'%3e%3c/rect%3e%3cpath%20d='M33.2681489,12.9425679%20C32.5347773,9.30362068%2031.08981,7.48414704%2028.9332468,7.48414704%20C25.698402,7.48414704%2025.7333802,11.8081925%2028.9332468,11.4257275%20C30.6212196,11.223972%2031.7656965,11.7295855%2032.3666775,12.9425679%20L33.2681489,12.9425679%20Z'%20id='路径-7'%20fill='url(%23linearGradient-6)'%20transform='translate(29.8942,%2010.2134)%20scale(-1,%201)%20translate(-29.8942,%20-10.2134)'%3e%3c/path%3e%3cpath%20d='M26.5202122,12.9425679%20C25.7868406,9.30362068%2024.3418733,7.48414704%2022.1853101,7.48414704%20C18.9504653,7.48414704%2018.9854435,11.8081925%2022.1853101,11.4257275%20C23.8732829,11.223972%2025.0177598,11.7295855%2025.6187408,12.9425679%20L26.5202122,12.9425679%20Z'%20id='路径-7'%20fill='url(%23linearGradient-6)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cpath%20d='M309,81.279814%20C309,66.0493667%20239.827994,53.7026496%20154.5,53.7026496%20C69.1720062,53.7026496%200,66.0493667%200,81.279814%20C0,96.5102614%20309,96.5102614%20309,81.279814%20Z'%20id='椭圆形'%20fill='url(%23linearGradient-7)'%20opacity='0.22710455'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"
28199
28188
  }, null, -1),
28200
28189
  n[3] ||= createElementVNode("h2", { class: "welcome-title" }, "你好,我是小鲸", -1),
28201
- a_.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(content_render_default), { content: a_.value }, null, 8, ["content"])])) : createCommentVNode("v-if", !0)
28190
+ r_.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(content_render_default), { content: r_.value }, null, 8, ["content"])])) : createCommentVNode("v-if", !0)
28202
28191
  ])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 内容区:消息列表 "), createElementVNode("div", {
28203
28192
  ref_key: "messagesContainerRef",
28204
28193
  ref: s,
28205
28194
  class: "chatbot-messages"
28206
- }, [t_.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(Loading), {
28195
+ }, [$g.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(Loading), {
28207
28196
  mode: "spin",
28208
28197
  size: "small",
28209
28198
  theme: "primary"
@@ -28211,17 +28200,17 @@ var UIStateManager = class {
28211
28200
  key: 1,
28212
28201
  "selected-messages": T.value,
28213
28202
  "onUpdate:selectedMessages": n[0] ||= (e) => T.value = e,
28214
- "enable-selection": Wg.value,
28203
+ "enable-selection": Hg.value,
28215
28204
  "message-status": B.value,
28216
28205
  "message-tools-status": H.value,
28217
28206
  "message-tools-tippy-options": i.messageToolsTippyOptions,
28218
- messages: e_.value,
28207
+ messages: Qg.value,
28219
28208
  "on-agent-action": q,
28220
- "on-agent-feedback": Ag,
28221
- "on-user-action": Mg,
28222
- "on-user-input-confirm": Pg,
28223
- "on-user-shortcut-confirm": Fg,
28224
- onStopStreaming: Hg
28209
+ "on-agent-feedback": Og,
28210
+ "on-user-action": Ag,
28211
+ "on-user-input-confirm": Mg,
28212
+ "on-user-shortcut-confirm": Ng,
28213
+ onStopStreaming: Bg
28225
28214
  }, null, 8, [
28226
28215
  "selected-messages",
28227
28216
  "enable-selection",
@@ -28231,39 +28220,39 @@ var UIStateManager = class {
28231
28220
  "messages"
28232
28221
  ]))], 512)], 2112)),
28233
28222
  createCommentVNode(" 统一底部区域 "),
28234
- !i_.value && Wg.value ? (openBlock(), createBlock(selection_footer_default, {
28223
+ !n_.value && Hg.value ? (openBlock(), createBlock(selection_footer_default, {
28235
28224
  key: 2,
28236
- "is-all-selected": T.value.length === e_.value.length,
28237
- loading: Gg.value,
28225
+ "is-all-selected": T.value.length === Qg.value.length,
28226
+ loading: Ug.value,
28238
28227
  "selected-count": T.value.length,
28239
- onCancel: f_,
28240
- onConfirm: p_,
28241
- onToggleAll: h_
28228
+ onCancel: u_,
28229
+ onConfirm: d_,
28230
+ onToggleAll: p_
28242
28231
  }, null, 8, [
28243
28232
  "is-all-selected",
28244
28233
  "loading",
28245
28234
  "selected-count"
28246
28235
  ])) : (openBlock(), createElementBlock("div", _hoisted_7, [u.value?.components?.length ? (openBlock(), createBlock(unref(shortcut_render_default), mergeProps({ key: 0 }, u.value, {
28247
- onClose: O_,
28248
- onSubmit: A_
28236
+ onClose: E_,
28237
+ onSubmit: O_
28249
28238
  }), null, 16)) : renderSlot(e.$slots, "input", { key: 1 }, () => [createVNode(unref(chat_input_default), {
28250
28239
  ref_key: "chatInputRef",
28251
28240
  ref: l,
28252
- cite: Zg.value,
28253
- "onUpdate:cite": n[1] ||= (e) => Zg.value = e,
28241
+ cite: Yg.value,
28242
+ "onUpdate:cite": n[1] ||= (e) => Yg.value = e,
28254
28243
  "message-status": B.value,
28255
- "model-value": Xg.value,
28256
- "on-send-message": S_,
28257
- "on-stop-sending": T_,
28258
- "on-upload": b_,
28244
+ "model-value": Jg.value,
28245
+ "on-send-message": b_,
28246
+ "on-stop-sending": C_,
28247
+ "on-upload": v_,
28259
28248
  placeholder: i.placeholder,
28260
- prompts: l_.value,
28261
- resources: o_.value,
28249
+ prompts: s_.value,
28250
+ resources: i_.value,
28262
28251
  "shortcut-id": u.value?.id,
28263
- shortcuts: d_.value,
28264
- onDeleteShortcut: O_,
28265
- onSelectShortcut: E_,
28266
- "onUpdate:modelValue": $g
28252
+ shortcuts: l_.value,
28253
+ onDeleteShortcut: E_,
28254
+ onSelectShortcut: w_,
28255
+ "onUpdate:modelValue": Zg
28267
28256
  }, null, 8, [
28268
28257
  "cite",
28269
28258
  "message-status",
@@ -29104,13 +29093,13 @@ function useDraggable(e = {}, n) {
29104
29093
  }
29105
29094
  T.value > O.value && (T.value = O.value);
29106
29095
  });
29107
- }, Og = () => {
29096
+ }, Eg = () => {
29108
29097
  k.value ? (_.value = d.value, nextTick(() => {
29109
29098
  E.value = m.value, v.value = u.value, T.value = g.value;
29110
29099
  })) : (_.value = window.innerHeight - s - l, v.value = u.value - l, T.value = r, E.value = s), k.value = !k.value;
29111
29100
  }, q = (e, n) => {
29112
29101
  v.value = e, _.value = n, j.value = e - (window.innerWidth - T.value);
29113
- }, kg = (e, n) => {
29102
+ }, Dg = (e, n) => {
29114
29103
  T.value = Math.max(i, Math.min(e, O.value)), E.value = Math.max(a, n);
29115
29104
  };
29116
29105
  return onMounted(() => {
@@ -29130,11 +29119,11 @@ function useDraggable(e = {}, n) {
29130
29119
  handleResizing: z,
29131
29120
  handleDragStop: B,
29132
29121
  handleResizeStop: H,
29133
- toggleCompression: Og,
29122
+ toggleCompression: Eg,
29134
29123
  updatePosition: q,
29135
- updateSize: kg,
29124
+ updateSize: Dg,
29136
29125
  updatePositionAndSize: (e, n, r, i) => {
29137
- q(e, n), kg(r, i);
29126
+ q(e, n), Dg(r, i);
29138
29127
  }
29139
29128
  };
29140
29129
  }
@@ -29206,13 +29195,13 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29206
29195
  document.querySelectorAll("iframe").forEach((e) => {
29207
29196
  e.style.pointerEvents = "";
29208
29197
  });
29209
- }, Ag = (e, n) => {
29198
+ }, Og = (e, n) => {
29210
29199
  o.value || (o.value = !0, J()), k(e, n);
29211
29200
  }, Q = (e, n, r, i) => {
29212
29201
  o.value || (o.value = !0, J()), j(e, n, r, i);
29213
29202
  }, $ = (e, n) => {
29214
29203
  I(e, n), o.value = !1, Z();
29215
- }, Mg = (e, n, r, i) => {
29204
+ }, Ag = (e, n, r, i) => {
29216
29205
  L(e, n, r, i), o.value = !1, Z();
29217
29206
  };
29218
29207
  return watch(O, (e) => {
@@ -29243,8 +29232,8 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29243
29232
  x: unref(_),
29244
29233
  y: unref(g),
29245
29234
  onDragStop: $,
29246
- onDragging: Ag,
29247
- onResizeStop: Mg,
29235
+ onDragging: Og,
29236
+ onResizeStop: Ag,
29248
29237
  onResizing: Q
29249
29238
  }, {
29250
29239
  default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [renderSlot(e.$slots, "default", {}, void 0, !0)])]),
@@ -29488,12 +29477,12 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29488
29477
  }), K = I, q = new SessionBusinessManager(K.session, K.agent, null, {
29489
29478
  enableChatSession: i.enableChatSession,
29490
29479
  initialSessionCode: i.initialSessionCode
29491
- }), kg = new ShareBusinessManager(K.message, K.session), Ag = new UIStateManager(), Q = computed(() => Ag.isSelectionMode.value), $ = ref(!1), Mg = new ShortcutManager(null, i.shortcuts || []), Pg = ref(!1), Fg = ref(""), Ig = { appendTo: (e) => {
29480
+ }), Dg = new ShareBusinessManager(K.message, K.session), Og = new UIStateManager(), Q = computed(() => Og.isSelectionMode.value), $ = ref(!1), Ag = new ShortcutManager(null, i.shortcuts || []), Mg = ref(!1), Ng = ref(""), Pg = { appendTo: (e) => {
29492
29481
  let n = e.closest(".draggable-container-content");
29493
29482
  return console.log("[ai-blueking] appendTo called, ref:", e), console.log("[ai-blueking] appendTo closest result:", n), n ?? document.body;
29494
- } }, Lg = computed(() => _.isCompressed.value), Rg = computed(() => H.value), zg = ref(""), Bg = ref(!0), Hg = ref(!1), Ug = computed(() => i.resources?.length ? i.resources : mapResourcesToSlashItems(B.value?.resources)), Wg = computed(() => i.prompts?.length ? i.prompts : B.value?.conversationSettings?.predefinedQuestions ?? []), Gg = computed(() => {
29495
- let e = Mg.effectiveShortcuts.value;
29496
- return typeof i.shortcutFilter == "function" && Fg.value ? e.filter((e) => i.shortcutFilter?.(e, Fg.value)) : e;
29483
+ } }, Fg = computed(() => _.isCompressed.value), Ig = computed(() => H.value), Lg = ref(""), Rg = ref(!0), Bg = ref(!1), Vg = computed(() => i.resources?.length ? i.resources : B.value?.resources ?? []), Hg = computed(() => i.prompts?.length ? i.prompts : B.value?.conversationSettings?.predefinedQuestions ?? []), Ug = computed(() => {
29484
+ let e = Ag.effectiveShortcuts.value;
29485
+ return typeof i.shortcutFilter == "function" && Ng.value ? e.filter((e) => i.shortcutFilter?.(e, Ng.value)) : e;
29497
29486
  });
29498
29487
  watch(() => L.value, async (e) => {
29499
29488
  if (e && B.value) {
@@ -29504,61 +29493,61 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29504
29493
  }).catch(() => {}), e.conversationSettings && (k("session-initialized", {
29505
29494
  openingRemark: e.conversationSettings.openingRemark || "",
29506
29495
  predefinedQuestions: e.conversationSettings.predefinedQuestions || []
29507
- }), e.conversationSettings.commands && Mg.setAgentShortcuts(e.conversationSettings.commands)), i.loadRecentSessionOnMount) try {
29496
+ }), e.conversationSettings.commands && Ag.setAgentShortcuts(e.conversationSettings.commands)), i.loadRecentSessionOnMount) try {
29508
29497
  await q.loadRecentSession({ skipLoadSessions: !0 });
29509
29498
  } catch (e) {
29510
29499
  console.error("[AIBlueking] Failed to load recent session:", e);
29511
29500
  }
29512
29501
  }
29513
29502
  }, { immediate: !0 }), watch(() => i.shortcuts, (e) => {
29514
- Mg.setShortcuts(e || []);
29503
+ Ag.setShortcuts(e || []);
29515
29504
  }, { immediate: !0 }), watch(() => G.value, (e) => {
29516
- e && (zg.value = e.sessionName || "", Hg.value = (e.sessionContentCount ?? 0) > 0);
29505
+ e && (Lg.value = e.sessionName || "", Bg.value = (e.sessionContentCount ?? 0) > 0);
29517
29506
  }, { immediate: !0 }), watch(() => K.message.list.value.length, (e) => {
29518
- e > 0 && (Hg.value = !0);
29507
+ e > 0 && (Bg.value = !0);
29519
29508
  });
29520
- let Kg = async (e) => {
29509
+ let Wg = async (e) => {
29521
29510
  _.showPanel(e), e && l.value && await l.value.switchSession(e);
29522
- }, Jg = async (e) => {
29523
- await Kg(e);
29524
- }, Yg = () => {
29511
+ }, Kg = async (e) => {
29512
+ await Wg(e);
29513
+ }, qg = () => {
29525
29514
  _.hidePanel();
29526
- }, Zg = () => {
29527
- Yg();
29528
- }, Qg = () => {
29515
+ }, Yg = () => {
29516
+ qg();
29517
+ }, Xg = () => {
29529
29518
  _.handleNimbusClick();
29530
- }, $g = (e) => {
29531
- Fg.value = e;
29532
- }, e_ = async (e, n) => {
29533
- Pg.value = !1, await Kg(), e.components?.length && l.value ? l.value.selectShortcut(e, n) : l.value && (l.value.setCiteText(n), l.value.focusInput()), k("shortcut-click", {
29519
+ }, Zg = (e) => {
29520
+ Ng.value = e;
29521
+ }, Qg = async (e, n) => {
29522
+ Mg.value = !1, await Wg(), e.components?.length && l.value ? l.value.selectShortcut(e, n) : l.value && (l.value.setCiteText(n), l.value.focusInput()), k("shortcut-click", {
29534
29523
  shortcut: e,
29535
29524
  source: "popup"
29536
29525
  });
29537
- }, t_ = (e) => {
29526
+ }, $g = (e) => {
29538
29527
  k("shortcut-click", e);
29539
- }, n_ = (e) => {
29528
+ }, e_ = (e) => {
29540
29529
  _.handleDragging(e);
29541
- }, r_ = (e) => {
29530
+ }, t_ = (e) => {
29542
29531
  _.handleResizing(e);
29543
- }, i_ = (e) => {
29532
+ }, n_ = (e) => {
29544
29533
  _.handleDragStop(e);
29545
- }, a_ = (e) => {
29534
+ }, r_ = (e) => {
29546
29535
  _.handleResizeStop(e);
29547
- }, o_ = () => {
29536
+ }, i_ = () => {
29548
29537
  _.container.toggleCompression();
29549
- }, s_ = (e) => {
29538
+ }, a_ = (e) => {
29550
29539
  _.setCompressed(e);
29551
- }, l_ = async () => {
29540
+ }, s_ = async () => {
29552
29541
  j.newChat();
29553
- }, u_ = (e) => {
29542
+ }, c_ = (e) => {
29554
29543
  j.historyClick(e);
29555
- }, d_ = async (e) => {
29544
+ }, l_ = async (e) => {
29556
29545
  await q.switchSession(e);
29557
- }, f_ = async (e) => {
29546
+ }, u_ = async (e) => {
29558
29547
  await q.deleteSession(e);
29559
- }, p_ = async (e, n) => {
29548
+ }, d_ = async (e, n) => {
29560
29549
  await q.updateSessionName(e, n);
29561
- }, m_ = async () => {
29550
+ }, f_ = async () => {
29562
29551
  let e = K.session.current?.value?.sessionCode;
29563
29552
  if (!e) {
29564
29553
  console.error("[AIBlueking] Cannot auto-generate name: no active session");
@@ -29567,14 +29556,14 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29567
29556
  try {
29568
29557
  await K.session.renameSession(e);
29569
29558
  let n = K.session.list.value.find((n) => n.sessionCode === e);
29570
- n && (zg.value = n.sessionName || "");
29559
+ n && (Lg.value = n.sessionName || "");
29571
29560
  } catch (e) {
29572
- console.error("[AIBlueking] Failed to auto-generate session name:", e), j_(e);
29561
+ console.error("[AIBlueking] Failed to auto-generate session name:", e), k_(e);
29573
29562
  }
29574
29563
  j.autoGenerateName();
29575
- }, h_ = () => {
29564
+ }, p_ = () => {
29576
29565
  j.helpClick();
29577
- }, g_ = async (e) => {
29566
+ }, m_ = async (e) => {
29578
29567
  let n = K.session.current?.value;
29579
29568
  if (!n) {
29580
29569
  console.error("[AIBlueking] Cannot rename: no active session");
@@ -29584,93 +29573,93 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29584
29573
  await K.session.updateSession({
29585
29574
  ...n,
29586
29575
  sessionName: e
29587
- }), zg.value = e;
29576
+ }), Lg.value = e;
29588
29577
  } catch (e) {
29589
- console.error("[AIBlueking] Failed to rename session:", e), j_(e);
29578
+ console.error("[AIBlueking] Failed to rename session:", e), k_(e);
29590
29579
  }
29591
29580
  j.rename(e);
29592
- }, __ = () => {
29593
- Ag.enableSelectionMode(), j.share();
29594
- }, v_ = () => {
29595
- Ag.disableSelectionMode();
29596
- }, y_ = async (e) => {
29581
+ }, h_ = () => {
29582
+ Og.enableSelectionMode(), j.share();
29583
+ }, g_ = () => {
29584
+ Og.disableSelectionMode();
29585
+ }, __ = async (e) => {
29597
29586
  $.value = !0;
29598
29587
  try {
29599
- let { shareUrl: n, userMessageIds: r } = await kg.shareMessages(e);
29588
+ let { shareUrl: n, userMessageIds: r } = await Dg.shareMessages(e);
29600
29589
  await copyToClipboard(n), Message({
29601
29590
  message: t("分享链接已复制到剪贴板"),
29602
29591
  theme: "success"
29603
- }), Ag.disableSelectionMode(), j.shareMessages(r);
29592
+ }), Og.disableSelectionMode(), j.shareMessages(r);
29604
29593
  } catch (e) {
29605
- console.error("[AIBlueking] Failed to share messages:", e), j_(e);
29594
+ console.error("[AIBlueking] Failed to share messages:", e), k_(e);
29606
29595
  } finally {
29607
29596
  $.value = !1;
29608
29597
  }
29609
- }, b_ = async (e) => {
29598
+ }, v_ = async (e) => {
29610
29599
  l.value && await l.value.sendMessage(e);
29611
- }, x_ = (e) => {
29612
- Hg.value = !0, j.sendMessage(e);
29613
- }, S_ = () => {
29600
+ }, y_ = (e) => {
29601
+ Bg.value = !0, j.sendMessage(e);
29602
+ }, b_ = () => {
29614
29603
  j.receiveStart();
29615
- }, C_ = () => {
29604
+ }, x_ = () => {
29616
29605
  j.receiveText();
29617
- }, w_ = () => {
29606
+ }, S_ = () => {
29618
29607
  j.receiveEnd();
29619
- }, T_ = () => {
29608
+ }, C_ = () => {
29620
29609
  j.stop();
29621
- }, E_ = () => {
29610
+ }, w_ = () => {
29622
29611
  l.value && l.value.stopGeneration();
29623
- }, D_ = async (e) => {
29612
+ }, T_ = async (e) => {
29624
29613
  e ? await q.createSession({ sessionCode: e }) : await q.createNewSession();
29625
- }, O_ = async (e) => {
29614
+ }, E_ = async (e) => {
29626
29615
  l.value && await l.value.switchSession(e);
29627
- }, k_ = async (e, n) => {
29616
+ }, D_ = async (e, n) => {
29628
29617
  try {
29629
- await q.updateSessionName(e, n), zg.value = n;
29618
+ await q.updateSessionName(e, n), Lg.value = n;
29630
29619
  } catch (e) {
29631
- console.error("[AIBlueking] Failed to update session name:", e), j_(e);
29620
+ console.error("[AIBlueking] Failed to update session name:", e), k_(e);
29632
29621
  }
29633
- }, A_ = (e) => {
29634
- e && (zg.value = e.sessionName || "", Hg.value = (e.sessionContentCount ?? 0) > 0 || K.message.list.value.length > 0);
29635
- }, j_ = (e) => {
29622
+ }, O_ = (e) => {
29623
+ e && (Lg.value = e.sessionName || "", Bg.value = (e.sessionContentCount ?? 0) > 0 || K.message.list.value.length > 0);
29624
+ }, k_ = (e) => {
29636
29625
  console.error("ChatBot error:", e), _.emitInternal("sdk-error", {
29637
29626
  apiName: "chat",
29638
29627
  code: -1,
29639
29628
  message: e.message,
29640
29629
  data: e
29641
29630
  });
29642
- }, M_ = (e, n) => {
29631
+ }, A_ = (e, n) => {
29643
29632
  _.container.updatePosition(e, n);
29644
- }, N_ = (e, n) => {
29633
+ }, j_ = (e, n) => {
29645
29634
  _.container.updateSize(e, n);
29646
- }, P_ = (e, n, r, i) => {
29635
+ }, M_ = (e, n, r, i) => {
29647
29636
  _.container.updatePositionAndSize(e, n, r, i);
29648
- }, F_ = (e) => {
29637
+ }, N_ = (e) => {
29649
29638
  l.value && l.value.setCiteText(e);
29650
- }, I_ = () => {
29639
+ }, P_ = () => {
29651
29640
  l.value && l.value.focusInput();
29652
- }, L_ = (e) => {
29653
- isTogglePanelShortcut(e) && (e.preventDefault(), T.value ? Yg() : Kg());
29641
+ }, F_ = (e) => {
29642
+ isTogglePanelShortcut(e) && (e.preventDefault(), T.value ? qg() : Wg());
29654
29643
  };
29655
29644
  return onMounted(async () => {
29656
- o.value && _.setContainerRef(o.value), window.addEventListener("keydown", L_);
29645
+ o.value && _.setContainerRef(o.value), window.addEventListener("keydown", F_);
29657
29646
  }), onBeforeUnmount(() => {
29658
- window.removeEventListener("keydown", L_), _.destroy();
29647
+ window.removeEventListener("keydown", F_), _.destroy();
29659
29648
  }), n({
29660
- show: Kg,
29661
- handleShow: Jg,
29662
- handleClose: Zg,
29663
- hide: Yg,
29664
- sendMessage: b_,
29665
- stopGeneration: E_,
29666
- addNewSession: D_,
29667
- switchToSession: O_,
29668
- updateSessionName: k_,
29669
- updatePosition: M_,
29670
- updateSize: N_,
29671
- updatePositionAndSize: P_,
29672
- setCiteText: F_,
29673
- focusInput: I_
29649
+ show: Wg,
29650
+ handleShow: Kg,
29651
+ handleClose: Yg,
29652
+ hide: qg,
29653
+ sendMessage: v_,
29654
+ stopGeneration: w_,
29655
+ addNewSession: T_,
29656
+ switchToSession: E_,
29657
+ updateSessionName: D_,
29658
+ updatePosition: A_,
29659
+ updateSize: j_,
29660
+ updatePositionAndSize: M_,
29661
+ setCiteText: N_,
29662
+ focusInput: P_
29674
29663
  }), (e, n) => (openBlock(), createBlock(Teleport, { to: i.teleportTo }, [createElementVNode("div", { class: normalizeClass(["ai-blueking-v2", i.extCls]) }, [
29675
29664
  createCommentVNode(" 可拖拽容器 "),
29676
29665
  createVNode(unref(draggable_container_default), {
@@ -29686,42 +29675,42 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29686
29675
  "max-width": i.maxWidth,
29687
29676
  "max-width-percent": 80,
29688
29677
  visible: unref(T),
29689
- onCompressionChange: s_,
29690
- onDragStop: i_,
29691
- onDragging: n_,
29692
- onResizeStop: a_,
29693
- onResizing: r_
29678
+ onCompressionChange: a_,
29679
+ onDragStop: n_,
29680
+ onDragging: e_,
29681
+ onResizeStop: r_,
29682
+ onResizing: t_
29694
29683
  }, {
29695
- default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["ai-blueking-panel", { "has-messages": Hg.value }]) }, [
29684
+ default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["ai-blueking-panel", { "has-messages": Bg.value }]) }, [
29696
29685
  createCommentVNode(" 独立的 Header 组件 "),
29697
29686
  i.hideHeader ? createCommentVNode("v-if", !0) : (openBlock(), createBlock(ai_header_default, {
29698
29687
  key: 0,
29699
- "agent-name": Rg.value,
29688
+ "agent-name": Ig.value,
29700
29689
  "chat-helper": unref(K),
29701
29690
  draggable: i.draggable,
29702
29691
  "dropdown-menu-config": i.dropdownMenuConfig,
29703
29692
  "enable-chat-session": i.enableChatSession,
29704
- "has-permission": Bg.value,
29705
- "has-session-contents": Hg.value,
29706
- "is-compression-height": Lg.value,
29693
+ "has-permission": Rg.value,
29694
+ "has-session-contents": Bg.value,
29695
+ "is-compression-height": Fg.value,
29707
29696
  "session-business-manager": unref(q),
29708
- "session-name": zg.value,
29697
+ "session-name": Lg.value,
29709
29698
  "show-compression-icon": i.showCompressionIcon,
29710
29699
  "show-history-icon": i.showHistoryIcon,
29711
29700
  "show-more-icon": i.showMoreIcon,
29712
29701
  "show-new-chat-icon": i.showNewChatIcon,
29713
29702
  title: i.title,
29714
- onAutoGenerateName: m_,
29715
- onClose: Zg,
29716
- onHelpClick: h_,
29717
- onHistoryClick: u_,
29718
- onHistorySessionDelete: f_,
29719
- onHistorySessionRename: p_,
29720
- onHistorySessionSwitch: d_,
29721
- onNewChat: l_,
29722
- onRename: g_,
29723
- onShare: __,
29724
- onToggleCompression: o_
29703
+ onAutoGenerateName: f_,
29704
+ onClose: Yg,
29705
+ onHelpClick: p_,
29706
+ onHistoryClick: c_,
29707
+ onHistorySessionDelete: u_,
29708
+ onHistorySessionRename: d_,
29709
+ onHistorySessionSwitch: l_,
29710
+ onNewChat: s_,
29711
+ onRename: m_,
29712
+ onShare: h_,
29713
+ onToggleCompression: i_
29725
29714
  }, null, 8, [
29726
29715
  "agent-name",
29727
29716
  "chat-helper",
@@ -29747,27 +29736,27 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29747
29736
  "chat-helper": unref(K),
29748
29737
  "enable-selection": Q.value,
29749
29738
  "hello-text": i.helloText,
29750
- "message-tools-tippy-options": Ig,
29739
+ "message-tools-tippy-options": Pg,
29751
29740
  placeholder: i.placeholder,
29752
- prompts: Wg.value,
29741
+ prompts: Hg.value,
29753
29742
  "request-options": i.requestOptions,
29754
- resources: Ug.value,
29743
+ resources: Vg.value,
29755
29744
  "session-code": i.initialSessionCode,
29756
29745
  "share-loading": $.value,
29757
29746
  "shortcut-limit": i.shortcutLimit,
29758
29747
  shortcuts: i.shortcuts,
29759
29748
  url: u.value,
29760
- onCancelShare: v_,
29761
- onConfirmShare: n[0] ||= (e) => y_(e),
29762
- onError: n[1] ||= (e) => j_(e),
29763
- onReceiveEnd: w_,
29764
- onReceiveStart: S_,
29765
- onReceiveText: C_,
29766
- onRequestShare: __,
29767
- onSendMessage: n[2] ||= (e) => x_(e),
29768
- onSessionSwitched: n[3] ||= (e) => A_(e),
29769
- onShortcutClick: t_,
29770
- onStop: T_
29749
+ onCancelShare: g_,
29750
+ onConfirmShare: n[0] ||= (e) => __(e),
29751
+ onError: n[1] ||= (e) => k_(e),
29752
+ onReceiveEnd: S_,
29753
+ onReceiveStart: b_,
29754
+ onReceiveText: x_,
29755
+ onRequestShare: h_,
29756
+ onSendMessage: n[2] ||= (e) => y_(e),
29757
+ onSessionSwitched: n[3] ||= (e) => O_(e),
29758
+ onShortcutClick: $g,
29759
+ onStop: C_
29771
29760
  }, null, 8, [
29772
29761
  "auto-load",
29773
29762
  "chat-helper",
@@ -29804,7 +29793,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29804
29793
  "onUpdate:isPanelShow": n[5] ||= (e) => isRef(T) ? T.value = e : null,
29805
29794
  "default-minimize": i.defaultMinimize,
29806
29795
  size: i.nimbusSize,
29807
- onClick: Qg
29796
+ onClick: Xg
29808
29797
  }, null, 8, [
29809
29798
  "is-minimize",
29810
29799
  "is-panel-show",
@@ -29814,13 +29803,13 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29814
29803
  createCommentVNode(" 划词选择弹窗(使用 chat-x 的 AiSelection 组件) "),
29815
29804
  i.enablePopup ? (openBlock(), createBlock(unref(ai_selection_default), {
29816
29805
  key: 1,
29817
- visible: Pg.value,
29818
- "onUpdate:visible": n[6] ||= (e) => Pg.value = e,
29806
+ visible: Mg.value,
29807
+ "onUpdate:visible": n[6] ||= (e) => Mg.value = e,
29819
29808
  "exclude-selectors": [".draggable-container-wrapper"],
29820
29809
  "max-shortcut-count": i.shortcutLimit,
29821
- shortcuts: Gg.value,
29822
- onSelectShortcut: e_,
29823
- onSelectionChange: $g
29810
+ shortcuts: Ug.value,
29811
+ onSelectShortcut: Qg,
29812
+ onSelectionChange: Zg
29824
29813
  }, null, 8, [
29825
29814
  "visible",
29826
29815
  "max-shortcut-count",
@@ -29828,5 +29817,5 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29828
29817
  ])) : createCommentVNode("v-if", !0)
29829
29818
  ], 2)], 8, ["to"]));
29830
29819
  }
29831
- }), [["__scopeId", "data-v-438e798c"]]);
29820
+ }), [["__scopeId", "data-v-c4ad013c"]]);
29832
29821
  export { AGUIProtocol, ai_blueking_default as AIBlueking, ai_blueking_default as default, BluekingProtocol, BootstrapPhase, chat_bot_default as ChatBot, ChatBusinessManager, ComponentManager, draggable_container_default as DraggableContainer, MessageContentType, SessionBusinessManager, ShortcutManager, UIStateManager, createBluekingProtocol, createComponentManager, defaultProps, useChatBootstrap, useChatHelper, useDraggable };