@vtj/designer 0.12.5 → 0.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var tl = Object.defineProperty;
2
2
  var nl = (r, t, e) => t in r ? tl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var Q = (r, t, e) => nl(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { computed as A, unref as n, ref as E, watch as Z, reactive as Ut, toValue as ct, shallowRef as gt, shallowReadonly as sl, onMounted as en, nextTick as it, getCurrentScope as ol, onScopeDispose as al, getCurrentInstance as Vs, toRaw as Ao, defineComponent as N, createElementBlock as R, openBlock as u, toDisplayString as te, createVNode as p, withCtx as b, createElementVNode as T, createBlock as y, createCommentVNode as I, createTextVNode as X, mergeProps as Be, h as Ft, Fragment as q, renderList as ne, normalizeClass as de, defineAsyncComponent as ll, resolveDynamicComponent as Vo, createSlots as To, renderSlot as Tt, withDirectives as $t, vShow as Yt, withModifiers as rt, isRef as Bn, normalizeStyle as cn, inject as Ts, provide as il, withKeys as _t, normalizeProps as Io, guardReactiveProps as Ro, onUnmounted as Is, markRaw as ks, createApp as jo, shallowReactive as rl, triggerRef as Bt, KeepAlive as Oo } from "vue";
5
- import { ElNotification as Rs, ElMessage as kt, ElMessageBox as It, ElButton as me, ElDivider as ut, ElInput as Le, ElRadioGroup as Do, ElRadioButton as wn, ElButtonGroup as cl, ElSwitch as js, ElImage as $o, ElDropdown as No, ElDropdownMenu as Po, ElDropdownItem as Pn, ElEmpty as je, ElAlert as Wt, ElTooltip as Mo, ElTag as Os, ElTree as Ds, ElCollapse as Gn, ElCollapseItem as qn, ElRow as Ln, ElCol as zn, ElDrawer as $s, ElForm as tt, ElFormItem as un, ElBreadcrumb as ul, ElBreadcrumbItem as dl, ElLoading as pl, ElBadge as ml, ElAvatar as Kn, vLoading as vl, ElSelect as Bo, ElOption as Lo, ElCheckbox as gl, ElDialog as fl, ElSteps as hl, ElStep as ms, ElInputNumber as bl, ElColorPicker as yl, ElUpload as _l, ElSlider as wl, ElConfigProvider as kl, ElContainer as io, ElHeader as Sl, ElAside as ro, ElMain as xl, ElFooter as Cl } from "element-plus";
3
+ var X = (r, t, e) => nl(r, typeof t != "symbol" ? t + "" : t, e);
4
+ import { computed as A, unref as n, ref as E, watch as Z, reactive as Ut, toValue as ct, shallowRef as gt, shallowReadonly as sl, onMounted as en, nextTick as it, getCurrentScope as ol, onScopeDispose as al, getCurrentInstance as Vs, toRaw as Ao, defineComponent as N, createElementBlock as R, openBlock as u, toDisplayString as te, createVNode as p, withCtx as b, createElementVNode as T, createBlock as y, createCommentVNode as I, createTextVNode as Q, mergeProps as Be, h as Ft, Fragment as q, renderList as ne, normalizeClass as de, defineAsyncComponent as ll, resolveDynamicComponent as Vo, createSlots as To, renderSlot as Tt, withDirectives as $t, vShow as Yt, withModifiers as rt, isRef as Bn, normalizeStyle as cn, inject as Ts, provide as il, withKeys as _t, normalizeProps as Io, guardReactiveProps as Ro, onUnmounted as Is, markRaw as ks, createApp as jo, shallowReactive as rl, triggerRef as Bt, KeepAlive as Oo } from "vue";
5
+ import { ElNotification as Rs, ElMessage as kt, ElMessageBox as It, ElButton as ve, ElDivider as ut, ElInput as Le, ElRadioGroup as Do, ElRadioButton as wn, ElButtonGroup as cl, ElSwitch as js, ElImage as $o, ElDropdown as No, ElDropdownMenu as Po, ElDropdownItem as Pn, ElEmpty as Oe, ElAlert as Wt, ElTooltip as Mo, ElTag as Os, ElTree as Ds, ElCollapse as Gn, ElCollapseItem as qn, ElRow as Ln, ElCol as zn, ElDrawer as $s, ElForm as tt, ElFormItem as un, ElBreadcrumb as ul, ElBreadcrumbItem as dl, ElLoading as pl, ElBadge as ml, ElAvatar as Kn, vLoading as vl, ElSelect as Bo, ElOption as Lo, ElCheckbox as gl, ElDialog as fl, ElSteps as hl, ElStep as ms, ElInputNumber as bl, ElColorPicker as yl, ElUpload as _l, ElSlider as wl, ElConfigProvider as kl, ElContainer as io, ElHeader as Sl, ElAside as ro, ElMain as xl, ElFooter as Cl } from "element-plus";
6
6
  import El from "element-plus/es/locale/lang/zh-cn";
7
- import { XDialogForm as jt, XField as F, createDialog as zo, XIcon as Rt, XDialog as St, XPanel as Xn, XAction as Ie, XTabs as Qn, XContainer as ue, XForm as Ns, XAttachment as Al, XActionBar as Uo, XInputUnit as Fo, vResizable as co } from "@vtj/ui";
7
+ import { XDialogForm as jt, XField as F, createDialog as zo, XIcon as Rt, XDialog as St, XPanel as Xn, XAction as Re, XTabs as Qn, XContainer as ue, XForm as Ns, XAttachment as Al, XActionBar as Uo, XInputUnit as Fo, vResizable as co } from "@vtj/ui";
8
8
  import { kebabCase as Vl, jsonp as zt, groupBy as Sn, storage as pn, delay as mn, dataURLtoBlob as Tl, upperFirstCamelCase as Wo, toRawType as vs, cloneDeep as An, logger as Nt, isPlainObject as Il, fileToBase64 as Rl, merge as Ps, toArray as Ms, debounce as Jo, uuid as jl, getClientInfo as Ol, base64 as Dl, arrayToMap as $l } from "@vtj/utils";
9
- import { BUILT_IN_NAME as Un, isBlock as Re, DirectiveModel as Ho, createNodeFrom as Nl, BUILT_IN_VUE as uo, BUILT_IN_VUE_ROUTER as Pl, emitter as $e, EVENT_PROJECT_ACTIVED as Ss, EVENT_NODE_CHANGE as xn, NodeModel as gs, EVENT_BLOCK_CHANGE as xs, Base as Go, BUILT_IN_LIBRARAY_MAP as Ml, ProjectModel as Bl, EVENT_PROJECT_CHANGE as Ll, EVENT_PROJECT_BLOCKS_CHANGE as zl, EVENT_PROJECT_PAGES_CHANGE as Ul, EVENT_PROJECT_DEPS_CHANGE as Fl, EVENT_PROJECT_PUBLISH as Wl, EVENT_PROJECT_FILE_PUBLISH as Jl, EVENT_HISTORY_CHANGE as Hl, EVENT_HISTORY_LOAD as Gl, EVENT_PROJECT_GEN_SOURCE as ql, BlockModel as fs, HistoryModel as Kl } from "@vtj/core";
9
+ import { BUILT_IN_NAME as Un, isBlock as je, DirectiveModel as Ho, createNodeFrom as Nl, BUILT_IN_VUE as uo, BUILT_IN_VUE_ROUTER as Pl, emitter as Ne, EVENT_PROJECT_ACTIVED as Ss, EVENT_NODE_CHANGE as xn, NodeModel as gs, EVENT_BLOCK_CHANGE as xs, Base as Go, BUILT_IN_LIBRARAY_MAP as Ml, ProjectModel as Bl, EVENT_PROJECT_CHANGE as Ll, EVENT_PROJECT_BLOCKS_CHANGE as zl, EVENT_PROJECT_PAGES_CHANGE as Ul, EVENT_PROJECT_DEPS_CHANGE as Fl, EVENT_PROJECT_PUBLISH as Wl, EVENT_PROJECT_FILE_PUBLISH as Jl, EVENT_HISTORY_CHANGE as Hl, EVENT_HISTORY_LOAD as Gl, EVENT_PROJECT_GEN_SOURCE as ql, BlockModel as fs, HistoryModel as Kl } from "@vtj/core";
10
10
  import { parseExpression as Cn, parseFunction as qo, BUILT_IN_DIRECTIVES as Xl, JSCodeToString as vn, LIFE_CYCLES_LIST as Ql, DATA_TYPES as Yl, createMock as Zl, isJSExpression as Zt, ContextMode as Ko, clearLoaderCache as ei, parseDeps as ti, createAssetsCss as ni, createAssetScripts as po, getRawComponent as mo, createSchemaApis as si, mockCleanup as oi, mockApis as ai, Provider as li, Access as ii, isJSFunction as ri } from "@vtj/renderer";
11
11
  import { VtjIconBack as ci, VtjIconPc as ui, VtjIconPhone as di, VtjIconPad as pi, VtjIconEdit as Bs, VtjIconUndo as mi, VtjIconRedo as vi, VtjIconTemplate as Fn, VtjIconPreview as gi, VtjIconRefresh as Xo, VtjIconSetting as Qo, VtjIconAi as Ls, Download as Wn, VtjIconPublish as fi, VtjIconProject as hi, icons as Cs, ArrowDown as Yn, Search as tn, CopyDocument as Yo, Back as bi, VtjIconPlus as Zo, EditPen as yi, Delete as ea, VtjIconSave as _i, ArrowUp as ta, MoreFilled as fn, VtjIconCheck as na, VtjIconComponents as sa, VtjIconShare as wi, VtjIconHome as ki, VtjIconVisible as Si, VtjIconInvisible as oa, VtjIconUnlock as xi, VtjIconLock as aa, VtjIconRemove as Zn, VtjIconCopy as zs, Files as Ci, VtjIconSearch as Ei, VtjIconHelp as la, VtjIconLayers as ia, Rank as Ai, VtjIconArrowUp as Vi, VtjIconArrowDown as Ti, IconDisplayBlock as Ii, IconDisplayFlex as Ri, IconDisplayInlineBlock as ji, IconDisplayInline as Oi, IconEyeInvisible as Di, IconFlexDirectionrow as $i, IconFlexDirectionrowReverse as Ni, IconFlexDirectioncolumn as Pi, IconFlexDirectioncolumnReverse as Mi, IconFlexJustifyflexStartrow as Bi, IconFlexJustifyflexEndrow as Li, IconFlexJustifycenterrow as zi, IconFlexJustifyspaceBetweenrow as Ui, IconFlexJustifyspaceAroundrow as Fi, IconFlexAlignflexStartrow as Wi, IconFlexAlignflexEndrow as Ji, IconFlexAligncenterrow as Hi, IconFlexAlignbaselinerow as Gi, IconFlexAlignstretchrow as qi, IconPositionTopLeft as Ki, IconPositionTopRight as Xi, IconPositionBottomLeft as Qi, IconPositionBottomRight as Yi, IconPositionLeft as Zi, IconPositionRight as er, IconPositionTop as tr, IconPositionBottom as nr, IconPositionAll as sr, IconTextAlignLeft as or, IconTextAlignCenter as ar, IconTextAlignRight as lr, IconTextAlignJustify as ir, IconFontStyleNone as rr, IconFontStyleItalic as cr, IconCross as ra, IconTextDecorationUnderline as ur, IconTextDecorationStrike as dr, IconTextDecorationOverline as pr, IconTileXy as mr, IconTileX as vr, IconTileY as gr, IconClose as fr, IconBorderAll as hr, IconBorderLeft as br, IconBorderTop as yr, IconBorderBottom as _r, IconBorderRight as wr, IconBorderStyleSolid as kr, IconBorderStyleDashed as Sr, IconBorderStyleDotted as xr, IconCursorAuto as Cr, IconCursorPointer as Er, IconCursorNotAllowed as Ar, IconCursorNone as Vr, ArrowRight as Tr, UserFilled as Us, VtjIconInfo as Ir, VtjIconNewChat as ca, Promotion as Rr, ArrowDownBold as jr, ArrowUpBold as Or, Refresh as Dr, View as ua, ShoppingCart as $r, Finished as Nr, Hide as Pr, Top as Mr, Bottom as Br, VtjIconChatRecord as Lr, VtjIconClose as zr, VtjIconDocument as Ur, VtjIconBlock as Fr, VtjIconOutline as Wr, VtjIconHistory as Jr, VtjIconApi as Hr, VtjIconCategory as Gr, VtjIconUniapp as qr, HomeFilled as Kr, Plus as Xr, Close as Qr, VtjIconVars as Yr, VtjIconSwitch as Zr, Switch as ec } from "@vtj/icons";
12
12
  import tc from "html2canvas";
@@ -18,10 +18,10 @@ import { editor as lc } from "monaco-editor";
18
18
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
19
19
  * @name @vtj/designer
20
20
  * @author CHC chenhuachun1549@dingtalk.com
21
- * @version 0.12.5
21
+ * @version 0.12.6
22
22
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
23
23
  */
24
- const En = "0.12.5", ic = {
24
+ const En = "0.12.6", ic = {
25
25
  width: 390,
26
26
  height: 844
27
27
  }, rc = {
@@ -368,7 +368,7 @@ function Vc(r) {
368
368
  function xt() {
369
369
  const r = ze(), t = A(
370
370
  () => r.simulator.designer.value
371
- ), e = A(() => t.value?.selected.value), s = A(() => Re(e.value?.model));
371
+ ), e = A(() => t.value?.selected.value), s = A(() => je(e.value?.model));
372
372
  return {
373
373
  engine: r,
374
374
  designer: t,
@@ -436,7 +436,7 @@ const $n = [
436
436
  function Ic(r) {
437
437
  const t = ze(), e = A(() => {
438
438
  const m = r.value?.model || null;
439
- return Re(m) ? null : m;
439
+ return je(m) ? null : m;
440
440
  }), s = E();
441
441
  Z(
442
442
  e,
@@ -608,7 +608,7 @@ function nn() {
608
608
  function Oc(r) {
609
609
  const t = ze(), e = A(() => {
610
610
  const l = r.value?.model || null;
611
- return !l || Re(l) ? null : l;
611
+ return !l || je(l) ? null : l;
612
612
  }), s = E();
613
613
  Z(
614
614
  e,
@@ -620,21 +620,21 @@ function Oc(r) {
620
620
  }
621
621
  );
622
622
  const o = A(() => {
623
- if (Re(e.value)) return [];
623
+ if (je(e.value)) return [];
624
624
  const l = e.value?.events || {};
625
625
  return uc.map((c) => ({
626
626
  name: c,
627
627
  event: l[c]
628
628
  }));
629
629
  }), i = A(() => {
630
- if (Re(e.value)) return [];
630
+ if (je(e.value)) return [];
631
631
  const l = e.value?.events || {};
632
632
  return dc.map((c) => ({
633
633
  name: c,
634
634
  event: l[c]
635
635
  }));
636
636
  }), a = A(() => {
637
- if (!e.value || Re(e.value)) return [];
637
+ if (!e.value || je(e.value)) return [];
638
638
  const l = e.value.events || {};
639
639
  return (s.value?.events || t.assets.componentMap.get(e.value.name)?.events || []).map((d) => {
640
640
  const v = typeof d == "string" ? d : d.name;
@@ -671,7 +671,7 @@ function $c(r) {
671
671
  function Nc(r) {
672
672
  const t = ze(), e = A(() => {
673
673
  const C = r.value?.model || null;
674
- return Re(C) ? null : C;
674
+ return je(C) ? null : C;
675
675
  }), s = (C) => A(() => e.value && (e.value.directives || []).find((j) => j.name === C) || bs(C)), o = () => A(() => {
676
676
  if (!e.value) return [];
677
677
  const C = t.assets.componentMap.get(e.value.name || "");
@@ -760,10 +760,10 @@ function Gt() {
760
760
  }
761
761
  }, a = () => {
762
762
  if (e && t) {
763
- const O = encodeURIComponent(location.href), { auth: B = "/auth.html" } = t.options, { protocol: $, host: W, pathname: oe } = location, ke = `${$}//${W}${oe}#/auth?redirect=${O}`;
763
+ const O = encodeURIComponent(location.href), { auth: B = "/auth.html" } = t.options, { protocol: $, host: J, pathname: oe } = location, Se = `${$}//${J}${oe}#/auth?redirect=${O}`;
764
764
  if (typeof B == "string") {
765
- const Se = B.startsWith("/") ? `${e}${B}` : B;
766
- location.href = `${Se}?r=${encodeURIComponent(ke)}`;
765
+ const _e = B.startsWith("/") ? `${e}${B}` : B;
766
+ location.href = `${_e}?r=${encodeURIComponent(Se)}`;
767
767
  } else
768
768
  B(location.search);
769
769
  }
@@ -796,8 +796,8 @@ function Gt() {
796
796
  }, m = async (O) => {
797
797
  if (s?.getTemplateDsl)
798
798
  return await s?.getTemplateDsl(O);
799
- const B = t?.getData()?.token, $ = `${e}/api/open/dsl/${B}`, W = await zt($, { query: { id: O } });
800
- return W?.data ? W.data : null;
799
+ const B = t?.getData()?.token, $ = `${e}/api/open/dsl/${B}`, J = await zt($, { query: { id: O } });
800
+ return J?.data ? J.data : null;
801
801
  }, g = async (O) => {
802
802
  if (s?.getDictOptions)
803
803
  return await s?.getDictOptions(O);
@@ -818,12 +818,12 @@ function Gt() {
818
818
  publishTemplate: async (O) => {
819
819
  if (s?.publishTemplate)
820
820
  return await s?.publishTemplate(O);
821
- const B = t?.getData()?.token, $ = `${e}/api/open/template/publish/${B}`, W = new FormData();
822
- for (const [oe, ke] of Object.entries(O))
823
- ke !== void 0 && W.append(oe, ke);
821
+ const B = t?.getData()?.token, $ = `${e}/api/open/template/publish/${B}`, J = new FormData();
822
+ for (const [oe, Se] of Object.entries(O))
823
+ Se !== void 0 && J.append(oe, Se);
824
824
  return window.fetch($, {
825
825
  method: "post",
826
- body: W
826
+ body: J
827
827
  }).then((oe) => oe.json());
828
828
  },
829
829
  getTemplateById: d,
@@ -831,14 +831,14 @@ function Gt() {
831
831
  postTopic: async (O) => {
832
832
  if (s?.postTopic)
833
833
  return await s?.postTopic(O);
834
- const B = t?.getData()?.token, $ = `${e}/api/open/topic/post/${B}`, W = await window.fetch($, {
834
+ const B = t?.getData()?.token, $ = `${e}/api/open/topic/post/${B}`, J = await window.fetch($, {
835
835
  method: "post",
836
836
  headers: {
837
837
  "Content-Type": "application/json"
838
838
  },
839
839
  body: JSON.stringify(O)
840
840
  }).then((oe) => oe.json()).catch(() => null);
841
- return W?.success || await dn(W.message || "未知错误"), W;
841
+ return J?.success || await dn(J.message || "未知错误"), J;
842
842
  },
843
843
  getChats: async (O) => {
844
844
  if (s?.getChats)
@@ -859,14 +859,14 @@ function Gt() {
859
859
  postChat: async (O) => {
860
860
  if (s?.postChat)
861
861
  return await s?.postChat(O);
862
- const B = t?.getData()?.token, $ = `${e}/api/open/chat/post/${B}`, W = await window.fetch($, {
862
+ const B = t?.getData()?.token, $ = `${e}/api/open/chat/post/${B}`, J = await window.fetch($, {
863
863
  method: "post",
864
864
  headers: {
865
865
  "Content-Type": "application/json"
866
866
  },
867
867
  body: JSON.stringify(O)
868
868
  }).then((oe) => oe.json()).catch(() => null);
869
- return W?.success || await dn(W.message || "未知错误"), W;
869
+ return J?.success || await dn(J.message || "未知错误"), J;
870
870
  },
871
871
  removeTopic: async (O) => {
872
872
  if (s?.removeTopic)
@@ -876,11 +876,11 @@ function Gt() {
876
876
  method: "get"
877
877
  })).json();
878
878
  },
879
- chatCompletions: async (O, B, $, W) => {
879
+ chatCompletions: async (O, B, $, J) => {
880
880
  if (s?.chatCompletions)
881
- return await s?.chatCompletions(O, B, $, W);
882
- const oe = t?.getData()?.token, ke = `${e}/api/open/completions/${oe}?tid=${O}&id=${B}`, Se = new AbortController();
883
- return fetch(ke, {
881
+ return await s?.chatCompletions(O, B, $, J);
882
+ const oe = t?.getData()?.token, Se = `${e}/api/open/completions/${oe}?tid=${O}&id=${B}`, _e = new AbortController();
883
+ return fetch(Se, {
884
884
  method: "get"
885
885
  }).then(async (he) => {
886
886
  const Xe = he.body?.getReader();
@@ -901,14 +901,14 @@ function Gt() {
901
901
  $ && $(ft, He);
902
902
  } catch (ft) {
903
903
  const pt = Ct.slice(6);
904
- W && W(pt ? new Error(pt) : ft);
904
+ J && J(pt ? new Error(pt) : ft), _e.abort();
905
905
  break;
906
906
  }
907
907
  }
908
908
  }).catch((he) => {
909
- W && W(he, he.name === "AbortError");
909
+ J && J(he, he.name === "AbortError");
910
910
  }), () => {
911
- Se.abort();
911
+ _e.abort();
912
912
  };
913
913
  },
914
914
  saveChat: async (O) => {
@@ -937,14 +937,14 @@ function Gt() {
937
937
  const O = t?.getData()?.token, B = `${e}/api/open/settings/${O}`;
938
938
  return (await window.fetch(B, {
939
939
  method: "get"
940
- }).then((W) => W.json()).catch(() => null))?.data;
940
+ }).then((J) => J.json()).catch(() => null))?.data;
941
941
  },
942
942
  createOrder: async () => {
943
943
  if (s?.createOrder)
944
944
  return await s?.createOrder();
945
945
  const O = t?.getData()?.token, B = `${e}/api/open/order/${O}`, $ = await window.fetch(B, {
946
946
  method: "post"
947
- }).then((W) => W.json()).catch(() => null);
947
+ }).then((J) => J.json()).catch(() => null);
948
948
  return $?.success || await dn($.message || "未知错误"), $;
949
949
  },
950
950
  cancelOrder: async (O) => {
@@ -953,7 +953,7 @@ function Gt() {
953
953
  const B = t?.getData()?.token, $ = `${e}/api/open/order/cancel/${B}?id=${O}`;
954
954
  return await window.fetch($, {
955
955
  method: "get"
956
- }).then((W) => W.json()).catch(() => null);
956
+ }).then((J) => J.json()).catch(() => null);
957
957
  },
958
958
  getOrder: async (O) => {
959
959
  if (s?.getOrder)
@@ -961,7 +961,7 @@ function Gt() {
961
961
  const B = t?.getData()?.token, $ = `${e}/api/open/order/${B}?id=${O}`;
962
962
  return await window.fetch($, {
963
963
  method: "get"
964
- }).then((W) => W.json()).catch(() => null);
964
+ }).then((J) => J.json()).catch(() => null);
965
965
  },
966
966
  getImage: o
967
967
  };
@@ -1434,147 +1434,153 @@ function nu() {
1434
1434
  cancelOrder: f,
1435
1435
  getOrder: h,
1436
1436
  getImage: x
1437
- } = Gt(), w = "CHAT_HIDE_CODE", S = t.skeleton?.getRegion("Apps").regionRef, _ = E(!1), V = E(!1), C = E(!0), j = E(!1), D = eu("LLM", e), L = E([]), P = E([]), U = E(null), ve = E(null), O = E(), B = E(), $ = E(!!pn.get(w, { type: "local" })), W = E(""), oe = E(), ke = A(() => P.value.some((J) => J.status === "Pending")), Se = A(() => oe.value ? oe.value.mode === 2 && !oe.value.invited : !0), { height: he } = gn(O), Xe = async (J) => {
1438
- const fe = await i(J);
1437
+ } = Gt(), w = "CHAT_HIDE_CODE", S = t.skeleton?.getRegion("Apps").regionRef, _ = E(!1), V = E(!1), C = E(!0), j = E(!1), D = eu("LLM", e), L = E([]), P = E([]), U = E(null), pe = E(null), O = E(), B = E(), $ = E(!!pn.get(w, { type: "local" })), J = E(""), oe = E(), Se = A(() => P.value.some((W) => W.status === "Pending")), _e = A(() => oe.value ? oe.value.mode === 2 && !oe.value.invited : !0), { height: he } = gn(O), Xe = async (W) => {
1438
+ const fe = await i(W);
1439
1439
  fe && fe.success && (P.value = fe.data);
1440
- }, Je = async (J) => {
1441
- if (_.value = !1, oe.value = await m(), !oe.value || !J || J.id === U.value?.fileId) return;
1440
+ }, Je = async (W) => {
1441
+ if (_.value = !1, oe.value = await m(), !oe.value || !W || W.id === U.value?.fileId) return;
1442
1442
  L.value = [], P.value = [], C.value = !0;
1443
- const fe = await o(J.id).catch(() => null);
1443
+ const fe = await o(W.id).catch(() => null);
1444
1444
  fe && fe.success && (L.value = fe.data), L.value.length && (C.value = !1, U.value = L.value[0], await Xe(U.value.id)), _.value = !0;
1445
- }, He = async (J) => {
1445
+ }, He = async (W) => {
1446
1446
  V.value = !0;
1447
- const fe = await tu(J, t), Te = await s(fe).catch(() => null);
1448
- if (V.value = !1, Te && Te.success) {
1449
- const { topic: at, chat: Ne } = Te.data;
1447
+ const fe = await tu(W, t), Ie = await s(fe).catch(() => null);
1448
+ if (V.value = !1, Ie && Ie.success) {
1449
+ const { topic: at, chat: Te } = Ie.data;
1450
1450
  P.value = [], L.value.unshift(at), C.value = !1, U.value = at;
1451
- const ht = Ut(Ne);
1451
+ const ht = Ut(Te);
1452
1452
  P.value.push(ht), ft(ht, (Et) => {
1453
- J.auto && bn(Et);
1453
+ W.auto && bn(Et);
1454
1454
  }), await mn(0), B.value && B.value.scrollToBottom();
1455
1455
  } else
1456
1456
  await Je(null);
1457
- return Te;
1458
- }, Qe = async (J) => {
1457
+ return Ie;
1458
+ }, Qe = async (W) => {
1459
1459
  if (!U.value) return;
1460
1460
  V.value = !0;
1461
1461
  const fe = {
1462
1462
  topicId: U.value.id,
1463
- prompt: J.prompt
1464
- }, Te = await a(fe).catch(() => null);
1465
- if (V.value = !1, Te && Te.success) {
1466
- const at = Ut(Te.data);
1467
- P.value.push(at), ft(at, (Ne) => {
1468
- J.auto && bn(Ne);
1463
+ prompt: W.prompt
1464
+ }, Ie = await a(fe).catch(() => null);
1465
+ if (V.value = !1, Ie && Ie.success) {
1466
+ const at = Ut(Ie.data);
1467
+ P.value.push(at), ft(at, (Te) => {
1468
+ W.auto && bn(Te);
1469
1469
  }), await mn(0), B.value && B.value.scrollToBottom();
1470
1470
  } else
1471
1471
  await Je(null);
1472
- return Te;
1473
- }, ot = async (J) => {
1474
- const fe = await l(J.id).catch(() => null);
1475
- fe && fe.success && (L.value = L.value.filter((Te) => Te.id !== J.id), J.id === U.value?.id && (P.value = [], U.value = null, C.value = !0));
1476
- }, Ct = async (J) => {
1472
+ return Ie;
1473
+ }, ot = async (W) => {
1474
+ const fe = await l(W.id).catch(() => null);
1475
+ fe && fe.success && (L.value = L.value.filter((Ie) => Ie.id !== W.id), W.id === U.value?.id && (P.value = [], U.value = null, C.value = !0));
1476
+ }, Ct = async (W) => {
1477
1477
  if (!U.value) return;
1478
- const fe = U.value?.fileId, Te = t.project.value?.toDsl(), { name: at = "" } = t.current.value || {}, Ne = pt(J.content);
1479
- if (Ne)
1480
- return await t.service.parseVue(Te, {
1478
+ const fe = U.value?.fileId, Ie = t.project.value?.toDsl(), { name: at = "" } = t.current.value || {}, Te = pt(W.content);
1479
+ if (Te)
1480
+ return await t.service.parseVue(Ie, {
1481
1481
  id: fe,
1482
1482
  name: at,
1483
- source: Ne
1483
+ source: Te
1484
1484
  });
1485
- }, ft = (J, fe) => {
1486
- W.value = "", J.content = "", J.reasoning = "", J.status = "Pending", J.reasoning = "", J.message = "";
1487
- let Te = 0;
1485
+ }, ft = (W, fe) => {
1486
+ J.value = "", W.content = "", W.reasoning = "", W.status = "Pending", W.reasoning = "", W.message = "";
1487
+ let Ie = 0;
1488
1488
  const at = Date.now();
1489
1489
  return c(
1490
- J.topicId,
1491
- J.id,
1492
- async (Ne, ht) => {
1493
- const an = Ne?.choices?.[0]?.delta;
1490
+ W.topicId,
1491
+ W.id,
1492
+ async (Te, ht) => {
1493
+ const an = Te?.choices?.[0]?.delta;
1494
1494
  if (an) {
1495
1495
  const nt = an.content || "", st = an.reasoning_content || "";
1496
- nt && (J.content += nt), st && (J.reasoning += st, Te += Date.now() - at);
1496
+ nt && (W.content += nt), st && (W.reasoning += st, Ie += Date.now() - at);
1497
1497
  }
1498
- if (Ne?.usage && (J.tokens = Ne.usage.total_tokens || 0), ht && J.status === "Pending") {
1499
- J.status = "Success", J.thinking = Math.ceil(Te / 1e3), J.vue = pt(J.content);
1500
- const nt = await Ct(J).catch((st) => {
1498
+ if (Te?.usage && (W.tokens = Te.usage.total_tokens || 0), ht && W.status === "Pending") {
1499
+ W.status = "Success", W.thinking = Math.ceil(Ie / 1e3), W.vue = pt(W.content);
1500
+ const nt = await Ct(W).catch((st) => {
1501
1501
  if (Array.isArray(st))
1502
- J.message = st.join(`
1502
+ W.message = st.join(`
1503
1503
  `);
1504
1504
  else {
1505
1505
  const yn = st?.data || st?.message;
1506
- J.message = Array.isArray(yn) ? yn.join(`
1506
+ W.message = Array.isArray(yn) ? yn.join(`
1507
1507
  `) : "代码有错误。";
1508
1508
  }
1509
- return J.status = "Error", null;
1509
+ return W.status = "Error", null;
1510
1510
  });
1511
1511
  if (nt)
1512
1512
  try {
1513
- J.dsl = typeof nt == "object" ? nt : JSON.parse(nt);
1513
+ W.dsl = typeof nt == "object" ? nt : JSON.parse(nt);
1514
1514
  } catch (st) {
1515
- J.status = "Error", J.message = st?.message;
1515
+ W.dsl = null, W.status = "Error", W.message = st?.message;
1516
1516
  }
1517
- await d(J), fe && fe(J);
1517
+ await d(W), fe && fe(W);
1518
1518
  }
1519
1519
  },
1520
- async (Ne) => {
1521
- const ht = Ne.message || Ne.name || "未知错误";
1522
- J.message = ht, J.status = "Failed", await d(J), fe && fe(J);
1520
+ async (Te) => {
1521
+ (Te.message || Te.name || "未知错误") === "network error" ? W.message = "网络异常,请稍后再试" : W.message = "请求失败,请稍后再试", W.status = "Failed", console.warn("completions error", Te), await d(W), fe && fe(W);
1523
1522
  }
1524
1523
  );
1525
- }, pt = (J) => {
1524
+ }, pt = (W) => {
1526
1525
  const fe = /```vue\n([\w\W]*)```/;
1527
- return J.match(fe)?.[1] ?? "";
1528
- }, sn = async (J) => {
1529
- if (!U.value || !ve.value) return;
1530
- const fe = U.value?.fileId, Te = t.project.value?.toDsl(), { name: at = "" } = t.current.value || {}, Ne = await t.service.parseVue(Te, {
1526
+ return W.match(fe)?.[1] ?? "";
1527
+ }, sn = async (W) => {
1528
+ if (!U.value || !pe.value || !W) return;
1529
+ const fe = U.value?.fileId, Ie = t.project.value?.toDsl(), { name: at = "" } = t.current.value || {}, Te = await t.service.parseVue(Ie, {
1531
1530
  id: fe,
1532
1531
  name: at,
1533
- source: J
1532
+ source: W
1534
1533
  }).catch((ht) => ht);
1535
- return Array.isArray(Ne) ? Promise.reject(Ne) : (ve.value.dsl = Ne, await d(ve.value), Ne);
1534
+ if (Array.isArray(Te))
1535
+ return Promise.reject(Te);
1536
+ try {
1537
+ pe.value.dsl = typeof Te == "object" ? Te : JSON.parse(Te);
1538
+ } catch {
1539
+ pe.value.dsl = null;
1540
+ }
1541
+ return await d(pe.value), Te;
1536
1542
  }, hn = () => {
1537
1543
  B.value && !C.value && B.value.scrollToTop();
1538
1544
  }, on = () => {
1539
1545
  B.value && !C.value && B.value.scrollToBottom();
1540
1546
  }, Ze = () => {
1541
- C.value || ke.value || P.value.map((J) => {
1542
- J.collapsed = !1;
1547
+ C.value || Se.value || P.value.map((W) => {
1548
+ W.collapsed = !1;
1543
1549
  });
1544
1550
  }, et = () => {
1545
- C.value || ke.value || P.value.map((J) => {
1546
- J.collapsed = !0;
1551
+ C.value || Se.value || P.value.map((W) => {
1552
+ W.collapsed = !0;
1547
1553
  });
1548
- }, Kt = (J) => {
1549
- if (!ke.value)
1550
- return ft(J);
1551
- }, bn = (J) => {
1552
- J.dsl && t.applyAI(J.dsl), j.value = !1, ve.value = null;
1553
- }, ss = (J) => {
1554
- J.vue = pt(J.content), ve.value = J, j.value = !0;
1555
- }, os = (J) => {
1554
+ }, Kt = (W) => {
1555
+ if (!Se.value)
1556
+ return ft(W);
1557
+ }, bn = (W) => {
1558
+ W.dsl && t.applyAI(W.dsl), j.value = !1, pe.value = null;
1559
+ }, ss = (W) => {
1560
+ W.vue = pt(W.content), pe.value = W, j.value = !0;
1561
+ }, os = (W) => {
1556
1562
  if (!U.value) return;
1557
- const fe = J.message ? `页面存在以下问题:
1558
- ${J.message}
1563
+ const fe = W.message ? `页面存在以下问题:
1564
+ ${W.message}
1559
1565
  请检查代码并修复` : "请检查代码是否有错误,是否符合规则要求,并改正";
1560
1566
  Tn(fe);
1561
- }, Tn = (J, fe) => {
1562
- W.value = J, fe && (C.value = fe);
1567
+ }, Tn = (W, fe) => {
1568
+ J.value = W, fe && (C.value = fe);
1563
1569
  }, as = () => {
1564
1570
  C.value || ($.value = !$.value, pn.save(w, $.value, { type: "local" }));
1565
1571
  };
1566
1572
  return Z(
1567
1573
  () => S?.active,
1568
- (J) => {
1569
- J.name === "AI" && Je(t.current.value);
1574
+ (W) => {
1575
+ W.name === "AI" && Je(t.current.value);
1570
1576
  },
1571
1577
  {
1572
1578
  immediate: !0
1573
1579
  }
1574
- ), Z(t.current, (J, fe) => {
1575
- J?.id !== fe?.id && (U.value = null);
1580
+ ), Z(t.current, (W, fe) => {
1581
+ W?.id !== fe?.id && (U.value = null);
1576
1582
  }), Z(he, () => {
1577
- B.value && ke.value && B.value.autoScrollToBottom();
1583
+ B.value && Se.value && B.value.autoScrollToBottom();
1578
1584
  }), {
1579
1585
  engine: t,
1580
1586
  isLogined: r,
@@ -1597,21 +1603,21 @@ function nu() {
1597
1603
  onView: ss,
1598
1604
  listRef: O,
1599
1605
  panelRef: B,
1600
- currentChat: ve,
1606
+ currentChat: pe,
1601
1607
  showDetail: j,
1602
1608
  scrollToTop: hn,
1603
1609
  scrollToBottom: on,
1604
1610
  expandAll: Ze,
1605
1611
  collapseAll: et,
1606
- isPending: ke,
1612
+ isPending: Se,
1607
1613
  toggleHideCode: as,
1608
1614
  isHideCode: $,
1609
1615
  onFix: os,
1610
1616
  fillPromptInput: Tn,
1611
- promptText: W,
1617
+ promptText: J,
1612
1618
  getHotTopics: v,
1613
1619
  settings: oe,
1614
- inputDisabled: Se,
1620
+ inputDisabled: _e,
1615
1621
  createOrder: g,
1616
1622
  cancelOrder: f,
1617
1623
  getOrder: h,
@@ -1660,7 +1666,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1660
1666
  e("click", s.project.value);
1661
1667
  };
1662
1668
  return (l, c) => (u(), R("div", cu, [
1663
- p(n(me), {
1669
+ p(n(ve), {
1664
1670
  size: "small",
1665
1671
  round: "",
1666
1672
  onClick: a
@@ -1794,7 +1800,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1794
1800
  I("", !0),
1795
1801
  p(n(cl), null, {
1796
1802
  default: b(() => [
1797
- p(n(me), {
1803
+ p(n(ve), {
1798
1804
  type: "default",
1799
1805
  size: "small",
1800
1806
  onClick: n(o),
@@ -1805,7 +1811,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1805
1811
  ]),
1806
1812
  _: 1
1807
1813
  }, 8, ["onClick", "disabled"]),
1808
- p(n(me), {
1814
+ p(n(ve), {
1809
1815
  type: "default",
1810
1816
  size: "small",
1811
1817
  onClick: n(s),
@@ -2053,7 +2059,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2053
2059
  return (S, _) => (u(), R("div", Su, [
2054
2060
  I("", !0),
2055
2061
  I("", !0),
2056
- p(n(me), {
2062
+ p(n(ve), {
2057
2063
  onClick: m,
2058
2064
  type: a.value ? "warning" : "default",
2059
2065
  size: "small",
@@ -2064,7 +2070,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2064
2070
  ]),
2065
2071
  _: 1
2066
2072
  }, 8, ["type"]),
2067
- p(n(me), {
2073
+ p(n(ve), {
2068
2074
  onClick: d,
2069
2075
  type: "default",
2070
2076
  size: "small",
@@ -2075,7 +2081,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2075
2081
  ]),
2076
2082
  _: 1
2077
2083
  }),
2078
- p(n(me), {
2084
+ p(n(ve), {
2079
2085
  type: "default",
2080
2086
  size: "small",
2081
2087
  title: "页面设置",
@@ -2086,7 +2092,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2086
2092
  ]),
2087
2093
  _: 1
2088
2094
  }),
2089
- n(e).remote ? (u(), y(n(me), {
2095
+ n(e).remote ? (u(), y(n(ve), {
2090
2096
  key: 2,
2091
2097
  type: "default",
2092
2098
  size: "small",
@@ -2099,7 +2105,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2099
2105
  _: 1
2100
2106
  })) : I("", !0),
2101
2107
  p(n(ut), { direction: "vertical" }),
2102
- t.coder ? (u(), y(n(me), {
2108
+ t.coder ? (u(), y(n(ve), {
2103
2109
  key: 3,
2104
2110
  onClick: x,
2105
2111
  icon: n(Wn),
@@ -2107,11 +2113,11 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2107
2113
  type: "success"
2108
2114
  }, {
2109
2115
  default: b(() => _[1] || (_[1] = [
2110
- X(" 出码 ")
2116
+ Q(" 出码 ")
2111
2117
  ])),
2112
2118
  _: 1
2113
2119
  }, 8, ["icon"])) : I("", !0),
2114
- t.onlyPublishTemplate ? (u(), y(n(me), {
2120
+ t.onlyPublishTemplate ? (u(), y(n(ve), {
2115
2121
  key: 4,
2116
2122
  onClick: f,
2117
2123
  icon: n(Fn),
@@ -2119,7 +2125,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2119
2125
  type: "primary"
2120
2126
  }, {
2121
2127
  default: b(() => _[2] || (_[2] = [
2122
- X(" 发布模板 ")
2128
+ Q(" 发布模板 ")
2123
2129
  ])),
2124
2130
  _: 1
2125
2131
  }, 8, ["icon"])) : (u(), y(n(No), {
@@ -2138,7 +2144,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2138
2144
  icon: n(fi)
2139
2145
  }, {
2140
2146
  default: b(() => _[3] || (_[3] = [
2141
- X(" 发布文件 ")
2147
+ Q(" 发布文件 ")
2142
2148
  ])),
2143
2149
  _: 1
2144
2150
  }, 8, ["icon"]),
@@ -2147,7 +2153,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2147
2153
  icon: n(hi)
2148
2154
  }, {
2149
2155
  default: b(() => _[4] || (_[4] = [
2150
- X(" 整站发布 ")
2156
+ Q(" 整站发布 ")
2151
2157
  ])),
2152
2158
  _: 1
2153
2159
  }, 8, ["icon"]),
@@ -2158,7 +2164,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2158
2164
  divided: ""
2159
2165
  }, {
2160
2166
  default: b(() => _[5] || (_[5] = [
2161
- X(" 发布模板 ")
2167
+ Q(" 发布模板 ")
2162
2168
  ])),
2163
2169
  _: 1
2164
2170
  }, 8, ["icon"])) : I("", !0)
@@ -2228,13 +2234,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2228
2234
  onSubmit: v
2229
2235
  }, {
2230
2236
  extra: b(() => [
2231
- p(n(me), {
2237
+ p(n(ve), {
2232
2238
  size: "default",
2233
2239
  type: "warning",
2234
2240
  onClick: m
2235
2241
  }, {
2236
2242
  default: b(() => h[2] || (h[2] = [
2237
- X(" 清除绑定 ")
2243
+ Q(" 清除绑定 ")
2238
2244
  ])),
2239
2245
  _: 1
2240
2246
  })
@@ -2255,7 +2261,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2255
2261
  onClick: (w) => d(x[0]),
2256
2262
  class: de({ "is-active": i.value === x[0] })
2257
2263
  }, null, 8, ["icon", "onClick", "class"]))), 256)),
2258
- c.value.length === 0 ? (u(), y(n(je), { key: 0 })) : I("", !0)
2264
+ c.value.length === 0 ? (u(), y(n(Oe), { key: 0 })) : I("", !0)
2259
2265
  ])
2260
2266
  ])
2261
2267
  ]),
@@ -2264,7 +2270,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2264
2270
  ]));
2265
2271
  }
2266
2272
  }), Ve = ll({
2267
- loader: () => import("./Editor-BKmscnkp.js"),
2273
+ loader: () => import("./Editor-D1ubm6pz.js"),
2268
2274
  loadingComponent: N({
2269
2275
  render() {
2270
2276
  return Ft("div", "正在拼命加载...");
@@ -2362,7 +2368,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2362
2368
  editor: b(() => [
2363
2369
  p(n(Wt), { closable: !1 }, {
2364
2370
  default: b(() => [
2365
- X(te(`${n(s).options.pageBasePath || ""}/${c.value}/${v.value.id}`) + " ", 1),
2371
+ Q(te(`${n(s).options.pageBasePath || ""}/${c.value}/${v.value.id}`) + " ", 1),
2366
2372
  p(n(Rt), {
2367
2373
  icon: n(Yo),
2368
2374
  onClick: V[0] || (V[0] = (C) => S(
@@ -2614,7 +2620,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2614
2620
  fit: ""
2615
2621
  }, To({
2616
2622
  actions: b(() => [
2617
- s.refresh ? (u(), y(n(Ie), {
2623
+ s.refresh ? (u(), y(n(Re), {
2618
2624
  key: 0,
2619
2625
  size: C.$attrs.size,
2620
2626
  mode: "icon",
@@ -2623,7 +2629,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2623
2629
  title: "刷新",
2624
2630
  onClick: c
2625
2631
  }, null, 8, ["size", "icon"])) : I("", !0),
2626
- s.plus ? (u(), y(n(Ie), {
2632
+ s.plus ? (u(), y(n(Re), {
2627
2633
  key: 1,
2628
2634
  size: C.$attrs.size,
2629
2635
  mode: "icon",
@@ -2635,7 +2641,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2635
2641
  onClick: d,
2636
2642
  onCommand: h
2637
2643
  }, null, 8, ["size", "icon", "menus"])) : I("", !0),
2638
- s.edit ? (u(), y(n(Ie), {
2644
+ s.edit ? (u(), y(n(Re), {
2639
2645
  key: 2,
2640
2646
  size: C.$attrs.size,
2641
2647
  mode: "icon",
@@ -2644,7 +2650,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2644
2650
  title: "编辑",
2645
2651
  onClick: v
2646
2652
  }, null, 8, ["size", "icon"])) : I("", !0),
2647
- s.remove ? (u(), y(n(Ie), {
2653
+ s.remove ? (u(), y(n(Re), {
2648
2654
  key: 3,
2649
2655
  size: C.$attrs.size,
2650
2656
  mode: "icon",
@@ -2653,7 +2659,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2653
2659
  title: "清除",
2654
2660
  onClick: g
2655
2661
  }, null, 8, ["size", "icon"])) : I("", !0),
2656
- s.save ? (u(), y(n(Ie), {
2662
+ s.save ? (u(), y(n(Re), {
2657
2663
  key: 4,
2658
2664
  size: C.$attrs.size,
2659
2665
  mode: "icon",
@@ -2662,7 +2668,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2662
2668
  title: "保存",
2663
2669
  onClick: f
2664
2670
  }, null, 8, ["size", "icon"])) : I("", !0),
2665
- s.collapsable ? $t((u(), y(n(Ie), {
2671
+ s.collapsable ? $t((u(), y(n(Re), {
2666
2672
  key: 5,
2667
2673
  size: C.$attrs.size,
2668
2674
  mode: "icon",
@@ -2673,7 +2679,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2673
2679
  }, null, 8, ["size", "icon"])), [
2674
2680
  [Yt, i.value]
2675
2681
  ]) : I("", !0),
2676
- s.collapsable ? $t((u(), y(n(Ie), {
2682
+ s.collapsable ? $t((u(), y(n(Re), {
2677
2683
  key: 6,
2678
2684
  size: C.$attrs.size,
2679
2685
  mode: "icon",
@@ -2756,7 +2762,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2756
2762
  stretch: e.stretch
2757
2763
  }, null, 8, ["items", "modelValue", "stretch"]),
2758
2764
  e.menus && e.menus.length ? (u(), R("div", Iu, [
2759
- e.menus && e.menus.length ? (u(), y(n(Ie), {
2765
+ e.menus && e.menus.length ? (u(), y(n(Re), {
2760
2766
  key: 0,
2761
2767
  mode: "icon",
2762
2768
  size: "small",
@@ -2778,7 +2784,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2778
2784
  "is-checked": v.checked
2779
2785
  })
2780
2786
  }, null, 8, ["class"])) : I("", !0),
2781
- X(" " + te(v.label), 1)
2787
+ Q(" " + te(v.label), 1)
2782
2788
  ])
2783
2789
  ]),
2784
2790
  _: 1
@@ -2934,7 +2940,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2934
2940
  type: s.tagType
2935
2941
  }, {
2936
2942
  default: b(() => [
2937
- X(te(s.tag), 1)
2943
+ Q(te(s.tag), 1)
2938
2944
  ]),
2939
2945
  _: 1
2940
2946
  }, 8, ["type"])) : I("", !0),
@@ -2965,7 +2971,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2965
2971
  }, ["stop"]))
2966
2972
  }, {
2967
2973
  default: b(() => [
2968
- (u(!0), R(q, null, ne(a.value, (h) => (u(), y(n(Ie), {
2974
+ (u(!0), R(q, null, ne(a.value, (h) => (u(), y(n(Re), {
2969
2975
  name: h.name,
2970
2976
  title: h.label,
2971
2977
  mode: "icon",
@@ -2986,7 +2992,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2986
2992
  ]),
2987
2993
  _: 3
2988
2994
  }),
2989
- s.actionInMore ? (u(), y(n(Ie), {
2995
+ s.actionInMore ? (u(), y(n(Re), {
2990
2996
  key: 0,
2991
2997
  icon: n(fn),
2992
2998
  mode: "icon",
@@ -3078,7 +3084,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3078
3084
  align: "center"
3079
3085
  }, {
3080
3086
  default: b(() => [
3081
- p(n(Ie), {
3087
+ p(n(Re), {
3082
3088
  icon: n(fn),
3083
3089
  mode: "icon",
3084
3090
  size: "small",
@@ -3154,7 +3160,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3154
3160
  T("div", Lu, [
3155
3161
  p(n(ut), { "border-style": "dotted" }, {
3156
3162
  default: b(() => h[1] || (h[1] = [
3157
- X("可用项")
3163
+ Q("可用项")
3158
3164
  ])),
3159
3165
  _: 1
3160
3166
  }),
@@ -3183,7 +3189,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3183
3189
  }, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
3184
3190
  ]),
3185
3191
  empty: b(() => [
3186
- p(n(je), { class: "empty-wrapper" })
3192
+ p(n(Oe), { class: "empty-wrapper" })
3187
3193
  ]),
3188
3194
  _: 1
3189
3195
  }, 8, ["props"])) : I("", !0)
@@ -3288,7 +3294,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3288
3294
  (u(!0), R(q, null, ne(n(o), (V) => (u(), R("div", null, [
3289
3295
  p(n(ut), { "border-style": "dotted" }, {
3290
3296
  default: b(() => [
3291
- X(te(V.title), 1)
3297
+ Q(te(V.title), 1)
3292
3298
  ]),
3293
3299
  _: 2
3294
3300
  }, 1024),
@@ -3301,7 +3307,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3301
3307
  onAction: (j) => w(C)
3302
3308
  }, null, 8, ["title", "onClick", "onAction"]))), 256))
3303
3309
  ]))), 256)),
3304
- n(o).length ? I("", !0) : (u(), y(n(je), { key: 0 }))
3310
+ n(o).length ? I("", !0) : (u(), y(n(Oe), { key: 0 }))
3305
3311
  ], 512), [
3306
3312
  [Yt, c.value === "normal"]
3307
3313
  ]),
@@ -3331,14 +3337,14 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3331
3337
  default: b(() => [
3332
3338
  p(n(ue), null, {
3333
3339
  default: b(() => [
3334
- S.unbindEnabled ? (u(), y(n(me), {
3340
+ S.unbindEnabled ? (u(), y(n(ve), {
3335
3341
  key: 0,
3336
3342
  type: "warning",
3337
3343
  size: "default",
3338
3344
  onClick: g
3339
3345
  }, {
3340
3346
  default: b(() => _[2] || (_[2] = [
3341
- X(" 移除绑定 ")
3347
+ Q(" 移除绑定 ")
3342
3348
  ])),
3343
3349
  _: 1
3344
3350
  })) : I("", !0)
@@ -3347,23 +3353,23 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3347
3353
  }),
3348
3354
  p(n(ue), null, {
3349
3355
  default: b(() => [
3350
- p(n(me), {
3356
+ p(n(ve), {
3351
3357
  type: "default",
3352
3358
  size: "default",
3353
3359
  onClick: f
3354
3360
  }, {
3355
3361
  default: b(() => _[3] || (_[3] = [
3356
- X(" 取消 ")
3362
+ Q(" 取消 ")
3357
3363
  ])),
3358
3364
  _: 1
3359
3365
  }),
3360
- p(n(me), {
3366
+ p(n(ve), {
3361
3367
  type: "primary",
3362
3368
  size: "default",
3363
3369
  onClick: h
3364
3370
  }, {
3365
3371
  default: b(() => _[4] || (_[4] = [
3366
- X(" 确定 ")
3372
+ Q(" 确定 ")
3367
3373
  ])),
3368
3374
  _: 1
3369
3375
  })
@@ -3445,7 +3451,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3445
3451
  }, {
3446
3452
  default: b(() => [
3447
3453
  T("span", Fu, "#" + te(m + 1), 1),
3448
- X(" " + te(v.name), 1)
3454
+ Q(" " + te(v.name), 1)
3449
3455
  ]),
3450
3456
  _: 2
3451
3457
  }, 1032, ["class", "onClick"]))), 256))
@@ -3661,13 +3667,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3661
3667
  onSubmit: h
3662
3668
  }, {
3663
3669
  extra: b(() => [
3664
- p(n(me), {
3670
+ p(n(ve), {
3665
3671
  type: "warning",
3666
3672
  size: "default",
3667
3673
  onClick: x
3668
3674
  }, {
3669
3675
  default: b(() => V[3] || (V[3] = [
3670
- X(" 清除 ")
3676
+ Q(" 清除 ")
3671
3677
  ])),
3672
3678
  _: 1
3673
3679
  })
@@ -3743,17 +3749,17 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3743
3749
  if (g.value?.fromType === "Plugin")
3744
3750
  return ".js,.css,.json";
3745
3751
  }), V = A(() => g.value?.fromType === "Plugin"), C = async ($) => {
3746
- const W = $, oe = s.project.value;
3752
+ const J = $, oe = s.project.value;
3747
3753
  if (!oe) return !1;
3748
3754
  if ($.id)
3749
- if (!oe.existBlockName(W.name, [W.id]))
3750
- oe.updateBlock(W);
3755
+ if (!oe.existBlockName(J.name, [J.id]))
3756
+ oe.updateBlock(J);
3751
3757
  else
3752
- return Ce(`名称【${W.name}】已经存在,请更换名称`), !1;
3753
- else if (!oe.existBlockName(W.name))
3754
- oe.createBlock(W);
3758
+ return Ce(`名称【${J.name}】已经存在,请更换名称`), !1;
3759
+ else if (!oe.existBlockName(J.name))
3760
+ oe.createBlock(J);
3755
3761
  else
3756
- return Ce(`名称【${W.name}】已经存在,请更换名称`), !1;
3762
+ return Ce(`名称【${J.name}】已经存在,请更换名称`), !1;
3757
3763
  return !0;
3758
3764
  }, j = () => {
3759
3765
  g.value = S(), h.value = !0;
@@ -3765,20 +3771,20 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3765
3771
  s.project.value?.removeBlock($.id);
3766
3772
  }, U = ($) => {
3767
3773
  g.value && (g.value.name = Wo($));
3768
- }, ve = async ($) => {
3774
+ }, pe = async ($) => {
3769
3775
  if (!$.fromType || $.fromType === "Schema") {
3770
3776
  s.project.value?.active($);
3771
- const W = s.skeleton?.getRegion("Workspace");
3772
- W && W.regionRef.openTab("Designer");
3777
+ const J = s.skeleton?.getRegion("Workspace");
3778
+ J && J.regionRef.openTab("Designer");
3773
3779
  }
3774
3780
  }, O = async ($) => {
3775
- const W = Nl($), oe = await s.assets.getBlockMaterial(W, $.name), ke = s.skeleton?.getWidget("Designer")?.widgetRef?.designer;
3776
- ke && oe && ke.setDragging(oe);
3781
+ const J = Nl($), oe = await s.assets.getBlockMaterial(J, $.name), Se = s.skeleton?.getWidget("Designer")?.widgetRef?.designer;
3782
+ Se && oe && Se.setDragging(oe);
3777
3783
  }, B = () => {
3778
3784
  const $ = s.skeleton?.getWidget("Designer")?.widgetRef?.designer;
3779
3785
  $ && $.setDragging(null);
3780
3786
  };
3781
- return ($, W) => (u(), y(n(ce), {
3787
+ return ($, J) => (u(), y(n(ce), {
3782
3788
  class: "v-blocks-widget",
3783
3789
  title: "区块管理",
3784
3790
  subtitle: w.value,
@@ -3790,7 +3796,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3790
3796
  p(n(Le), {
3791
3797
  size: "small",
3792
3798
  modelValue: o.value,
3793
- "onUpdate:modelValue": W[0] || (W[0] = (oe) => o.value = oe),
3799
+ "onUpdate:modelValue": J[0] || (J[0] = (oe) => o.value = oe),
3794
3800
  "prefix-icon": n(tn),
3795
3801
  placeholder: "搜索区块",
3796
3802
  clearable: ""
@@ -3801,9 +3807,9 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3801
3807
  "model-value": l.value
3802
3808
  }, {
3803
3809
  default: b(() => [
3804
- (u(!0), R(q, null, ne(a.value, (oe, ke) => (u(), y(n(qn), {
3805
- name: ke,
3806
- title: `${ke} (${oe.length})`
3810
+ (u(!0), R(q, null, ne(a.value, (oe, Se) => (u(), y(n(qn), {
3811
+ name: Se,
3812
+ title: `${Se} (${oe.length})`
3807
3813
  }, {
3808
3814
  default: b(() => [
3809
3815
  p(n(Ln), {
@@ -3811,24 +3817,24 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3811
3817
  gutter: 5
3812
3818
  }, {
3813
3819
  default: b(() => [
3814
- (u(!0), R(q, null, ne(oe, (Se) => (u(), y(n(zn), {
3815
- key: Se.id,
3820
+ (u(!0), R(q, null, ne(oe, (_e) => (u(), y(n(zn), {
3821
+ key: _e.id,
3816
3822
  span: n(t)
3817
3823
  }, {
3818
3824
  default: b(() => [
3819
3825
  p(n(Jn), {
3820
- name: Se.name,
3821
- title: Se.title,
3822
- active: n(f)?.id === Se.id,
3823
- editable: !Se.preset,
3824
- tag: m[Se.fromType || "Schema"]?.label,
3825
- tagType: m[Se.fromType || "Schema"]?.type,
3826
- onEdit: (he) => D(Se),
3827
- onCopy: (he) => L(Se),
3828
- onRemove: (he) => P(Se),
3829
- onClick: (he) => ve(Se),
3830
- draggable: n(f)?.id !== Se.id,
3831
- onDragstart: (he) => O(Se),
3826
+ name: _e.name,
3827
+ title: _e.title,
3828
+ active: n(f)?.id === _e.id,
3829
+ editable: !_e.preset,
3830
+ tag: m[_e.fromType || "Schema"]?.label,
3831
+ tagType: m[_e.fromType || "Schema"]?.type,
3832
+ onEdit: (he) => D(_e),
3833
+ onCopy: (he) => L(_e),
3834
+ onRemove: (he) => P(_e),
3835
+ onClick: (he) => pe(_e),
3836
+ draggable: n(f)?.id !== _e.id,
3837
+ onDragstart: (he) => O(_e),
3832
3838
  onDragend: B
3833
3839
  }, null, 8, ["name", "title", "active", "editable", "tag", "tagType", "onEdit", "onCopy", "onRemove", "onClick", "draggable", "onDragstart"])
3834
3840
  ]),
@@ -3842,13 +3848,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3842
3848
  }, 1032, ["name", "title"]))), 256))
3843
3849
  ]),
3844
3850
  _: 1
3845
- }, 8, ["model-value"])) : (u(), y(n(je), {
3851
+ }, 8, ["model-value"])) : (u(), y(n(Oe), {
3846
3852
  key: 0,
3847
3853
  description: "找不到符合条件的区块"
3848
3854
  })),
3849
3855
  p(n(jt), {
3850
3856
  modelValue: h.value,
3851
- "onUpdate:modelValue": W[1] || (W[1] = (oe) => h.value = oe),
3857
+ "onUpdate:modelValue": J[1] || (J[1] = (oe) => h.value = oe),
3852
3858
  title: x.value,
3853
3859
  model: g.value,
3854
3860
  width: "600px",
@@ -3967,7 +3973,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3967
3973
  ]),
3968
3974
  _: 1
3969
3975
  }),
3970
- n(c).length ? I("", !0) : (u(), y(n(je), { key: 0 }))
3976
+ n(c).length ? I("", !0) : (u(), y(n(Oe), { key: 0 }))
3971
3977
  ])) : (u(), y(n(Qn), {
3972
3978
  key: 1,
3973
3979
  items: n(s),
@@ -4032,7 +4038,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4032
4038
  setup(r) {
4033
4039
  const { engine: t, designer: e, selected: s } = xt(), { current: o } = Ke(), i = E([]), a = (D, L) => {
4034
4040
  if (L === "slot") return [];
4035
- if (Re(D))
4041
+ if (je(D))
4036
4042
  return D.locked ? ["unlock"] : ["lock"];
4037
4043
  const P = D.parent;
4038
4044
  return P && (P.locked || P.invisible) ? [] : o.value?.locked ? [] : D.locked ? ["unlock"] : D.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
@@ -4043,9 +4049,9 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4043
4049
  const B = O.slot?.name || "default";
4044
4050
  P[B] || (P[B] = []), P[B].push(O);
4045
4051
  }
4046
- const ve = [];
4052
+ const pe = [];
4047
4053
  for (const [O, B] of Object.entries(P))
4048
- ve.push({
4054
+ pe.push({
4049
4055
  id: `${L.id}-${O}`,
4050
4056
  label: `#${O}`,
4051
4057
  type: "slot",
@@ -4053,7 +4059,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4053
4059
  disabled: !0,
4054
4060
  children: c(B)
4055
4061
  });
4056
- return ve;
4062
+ return pe;
4057
4063
  }, c = (D) => {
4058
4064
  const L = [];
4059
4065
  return D.forEach((P) => {
@@ -4082,7 +4088,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4082
4088
  i.value = d(), s.value?.model && (await it(), e.value?.setSelected(s.value.model));
4083
4089
  }, m = A(() => s.value?.model.id), g = (D) => {
4084
4090
  const L = D.data;
4085
- if (L.type === "slot" || Re(L.model) || L.model.locked || L.model.name === "template")
4091
+ if (L.type === "slot" || je(L.model) || L.model.locked || L.model.name === "template")
4086
4092
  return !1;
4087
4093
  const P = t.assets.componentMap.get(L.model.name);
4088
4094
  return P ? (e.value?.setDragging(P), !0) : !1;
@@ -4093,7 +4099,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4093
4099
  inner: "inner"
4094
4100
  }[P];
4095
4101
  let B = !1;
4096
- if (Re(U.model))
4102
+ if (je(U.model))
4097
4103
  B = P === "inner", e.value?.setDropping(B ? U.model : null, "inner");
4098
4104
  else {
4099
4105
  const $ = U.model;
@@ -4108,13 +4114,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4108
4114
  }
4109
4115
  e.value?.setSelected(L), e.value?.setHover(null);
4110
4116
  }, x = async (D, L, P) => {
4111
- const U = D.data, ve = L.data;
4112
- if (Re(ve.model)) {
4117
+ const U = D.data, pe = L.data;
4118
+ if (je(pe.model)) {
4113
4119
  const oe = U.model;
4114
4120
  delete oe.slot, o.value?.move(oe, void 0, "inner"), e.value?.setDropping(null), e.value?.setDragging(null);
4115
4121
  return;
4116
4122
  }
4117
- const O = ve.model, B = { before: "left", after: "right" }[P] || "inner";
4123
+ const O = pe.model, B = { before: "left", after: "right" }[P] || "inner";
4118
4124
  if (!await e.value?.allowDrop(
4119
4125
  O,
4120
4126
  B
@@ -4124,12 +4130,12 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4124
4130
  }), e.value?.setDragging(null);
4125
4131
  return;
4126
4132
  }
4127
- const W = await e.value?.getDropSlot(
4133
+ const J = await e.value?.getDropSlot(
4128
4134
  P === "inner" ? O : O.parent
4129
4135
  );
4130
- if (W !== null) {
4136
+ if (J !== null) {
4131
4137
  const oe = U.model;
4132
- oe.slot = W, o.value?.move(oe, O, B);
4138
+ oe.slot = J, o.value?.move(oe, O, B);
4133
4139
  } else
4134
4140
  v();
4135
4141
  e.value?.setDropping(null), e.value?.setDragging(null), t.simulator.refresh();
@@ -4138,7 +4144,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4138
4144
  e.value?.setHover(null);
4139
4145
  return;
4140
4146
  }
4141
- Re(D.model) ? e.value?.setHover(D.model) : (e.value?.setHover(D.model), D.model.invisible && e.value?.setHover(null), D.model.name === "slot" && e.value?.setHover(null));
4147
+ je(D.model) ? e.value?.setHover(D.model) : (e.value?.setHover(D.model), D.model.invisible && e.value?.setHover(null), D.model.name === "slot" && e.value?.setHover(null));
4142
4148
  }, S = () => {
4143
4149
  e.value?.setHover(null);
4144
4150
  }, _ = (D) => {
@@ -4150,7 +4156,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4150
4156
  const L = D.data;
4151
4157
  L.dragging = !1;
4152
4158
  }, C = (D, L) => {
4153
- D && ((D.id === L.id || !Re(D) && L.isChild(D)) && e.value?.setSelected(null), e.value?.setHover(null));
4159
+ D && ((D.id === L.id || !je(D) && L.isChild(D)) && e.value?.setSelected(null), e.value?.setHover(null));
4154
4160
  }, j = (D) => {
4155
4161
  const { name: L, modelValue: P } = D, U = s.value?.model;
4156
4162
  switch (L) {
@@ -4167,8 +4173,8 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4167
4173
  P.setVisible(!0);
4168
4174
  break;
4169
4175
  case "copy":
4170
- const ve = o.value?.cloneNode(P);
4171
- ve && e.value?.setSelected(ve);
4176
+ const pe = o.value?.cloneNode(P);
4177
+ pe && e.value?.setSelected(pe);
4172
4178
  break;
4173
4179
  case "remove":
4174
4180
  C(U, P), o.value?.removeNode(P);
@@ -4216,7 +4222,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4216
4222
  subtitle: P.type,
4217
4223
  actions: a(P.model, P.type),
4218
4224
  onAction: j,
4219
- onMouseenter: (ve) => w(P),
4225
+ onMouseenter: (pe) => w(P),
4220
4226
  onMouseleave: S
4221
4227
  }, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
4222
4228
  ]),
@@ -4243,7 +4249,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4243
4249
  onRemove: a
4244
4250
  }, {
4245
4251
  default: b(() => [
4246
- n(s) === 0 ? (u(), y(n(je), {
4252
+ n(s) === 0 ? (u(), y(n(Oe), {
4247
4253
  key: 0,
4248
4254
  "image-size": 50
4249
4255
  })) : I("", !0),
@@ -4435,7 +4441,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4435
4441
  p(n(ue), { justify: "space-between" }, {
4436
4442
  default: b(() => [
4437
4443
  o[1] || (o[1] = T("span", null, "模拟数据模板", -1)),
4438
- p(n(Ie), {
4444
+ p(n(Re), {
4439
4445
  icon: n(la),
4440
4446
  mode: "text",
4441
4447
  label: "帮助",
@@ -4559,31 +4565,31 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4559
4565
  p(n(ue), { justify: "space-between" }, {
4560
4566
  default: b(() => [
4561
4567
  T("div", null, [
4562
- s.value === "mock" ? (u(), y(n(me), {
4568
+ s.value === "mock" ? (u(), y(n(ve), {
4563
4569
  key: 0,
4564
4570
  disabled: !a.value.mock,
4565
4571
  type: "warning",
4566
4572
  onClick: h
4567
4573
  }, {
4568
4574
  default: b(() => w[2] || (w[2] = [
4569
- X(" 预览 ")
4575
+ Q(" 预览 ")
4570
4576
  ])),
4571
4577
  _: 1
4572
4578
  }, 8, ["disabled"])) : I("", !0)
4573
4579
  ]),
4574
4580
  T("div", null, [
4575
- p(n(me), { onClick: m }, {
4581
+ p(n(ve), { onClick: m }, {
4576
4582
  default: b(() => w[3] || (w[3] = [
4577
- X("取消")
4583
+ Q("取消")
4578
4584
  ])),
4579
4585
  _: 1
4580
4586
  }),
4581
- p(n(me), {
4587
+ p(n(ve), {
4582
4588
  type: "primary",
4583
4589
  onClick: g
4584
4590
  }, {
4585
4591
  default: b(() => w[4] || (w[4] = [
4586
- X("保存")
4592
+ Q("保存")
4587
4593
  ])),
4588
4594
  _: 1
4589
4595
  })
@@ -4739,7 +4745,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4739
4745
  ]),
4740
4746
  _: 1
4741
4747
  }, 8, ["model-value"]),
4742
- a.value.length === 0 ? (u(), y(n(je), {
4748
+ a.value.length === 0 ? (u(), y(n(Oe), {
4743
4749
  key: 0,
4744
4750
  "image-size": 50
4745
4751
  })) : I("", !0),
@@ -4862,7 +4868,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4862
4868
  },
4863
4869
  emits: ["action", "dragstart", "dragend"],
4864
4870
  setup(r, { emit: t }) {
4865
- const e = r, s = t, o = A(() => e.model.name), i = A(() => !Re(e.model) && !e.model.locked), a = A(() => e.path.map((v) => ({
4871
+ const e = r, s = t, o = A(() => e.model.name), i = A(() => !je(e.model) && !e.model.locked), a = A(() => e.path.map((v) => ({
4866
4872
  command: v,
4867
4873
  label: v.name,
4868
4874
  onMouseenter: () => {
@@ -4909,7 +4915,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4909
4915
  return (v, m) => (u(), R("div", {
4910
4916
  class: de(["v-actions", [`is-${e.position}`]])
4911
4917
  }, [
4912
- p(n(Ie), {
4918
+ p(n(Re), {
4913
4919
  mode: "icon",
4914
4920
  size: "small",
4915
4921
  icon: n(ia),
@@ -4947,9 +4953,9 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4947
4953
  x,
4948
4954
  w
4949
4955
  ), D = (U) => {
4950
- const ve = U.type, O = U.model;
4956
+ const pe = U.type, O = U.model;
4951
4957
  if (v.value)
4952
- switch (ve) {
4958
+ switch (pe) {
4953
4959
  case "remove":
4954
4960
  v.value.removeNode(O), S.value?.setSelected(null);
4955
4961
  break;
@@ -4972,8 +4978,8 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4972
4978
  }
4973
4979
  }, L = (U) => {
4974
4980
  if (U && S.value) {
4975
- const ve = l.assets.componentMap.get(U.name);
4976
- ve && S.value.setDragging(ve), S.value.setDraggingNode(U);
4981
+ const pe = l.assets.componentMap.get(U.name);
4982
+ pe && S.value.setDragging(pe), S.value.setDraggingNode(U);
4977
4983
  }
4978
4984
  }, P = () => {
4979
4985
  S.value && (S.value.setDraggingNode(null), S.value.setDragging(null));
@@ -4983,7 +4989,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4983
4989
  }), t({
4984
4990
  designer: S,
4985
4991
  mode: g
4986
- }), (U, ve) => (u(), R("div", {
4992
+ }), (U, pe) => (u(), R("div", {
4987
4993
  ref_key: "container",
4988
4994
  ref: e,
4989
4995
  class: "v-designer"
@@ -5008,7 +5014,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5008
5014
  T("span", {
5009
5015
  class: de(`is-${n(_).position}`)
5010
5016
  }, [
5011
- X(te(n(_).model.name) + ": ", 1),
5017
+ Q(te(n(_).model.name) + ": ", 1),
5012
5018
  T("i", null, te(n(_).model.id), 1)
5013
5019
  ], 2)
5014
5020
  ], 4)) : I("", !0),
@@ -5026,7 +5032,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5026
5032
  onDragend: P
5027
5033
  }, null, 8, ["position", "model", "path"])
5028
5034
  ], 4)) : I("", !0),
5029
- n(v) ? I("", !0) : (u(), y(n(je), {
5035
+ n(v) ? I("", !0) : (u(), y(n(Oe), {
5030
5036
  key: 3,
5031
5037
  description: "请新建或打开文件"
5032
5038
  })),
@@ -5099,7 +5105,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5099
5105
  onAction: (S) => d(w, S),
5100
5106
  onClick: (S) => m(w)
5101
5107
  }, null, 8, ["title", "onAction", "onClick"]))), 256)),
5102
- h.list.length ? I("", !0) : (u(), y(n(je), {
5108
+ h.list.length ? I("", !0) : (u(), y(n(Oe), {
5103
5109
  key: 0,
5104
5110
  "image-size": 40
5105
5111
  })),
@@ -5728,7 +5734,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5728
5734
  fit: !1
5729
5735
  }, {
5730
5736
  default: b(() => [
5731
- n(a).length ? I("", !0) : (u(), y(n(je), {
5737
+ n(a).length ? I("", !0) : (u(), y(n(Oe), {
5732
5738
  key: 0,
5733
5739
  "image-size": 50,
5734
5740
  description: "该组件无自带事件"
@@ -6010,7 +6016,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6010
6016
  ]),
6011
6017
  _: 2
6012
6018
  }, 1032, ["title"]))), 256)),
6013
- n(d).length ? I("", !0) : (u(), y(n(je), {
6019
+ n(d).length ? I("", !0) : (u(), y(n(Oe), {
6014
6020
  key: 0,
6015
6021
  description: "当前组件没有双向绑定属性",
6016
6022
  "image-size": 50
@@ -6375,7 +6381,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6375
6381
  h.value = void 0, f.value = !0;
6376
6382
  }, U = (O) => {
6377
6383
  h.value = O, f.value = !0;
6378
- }, ve = (O) => {
6384
+ }, pe = (O) => {
6379
6385
  const { name: B, modelValue: $ } = O;
6380
6386
  B === "edit" && U($), B === "remove" && t.value?.removeInject($);
6381
6387
  };
@@ -6400,10 +6406,10 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6400
6406
  title: $.name,
6401
6407
  border: "",
6402
6408
  actions: ["edit", "remove"],
6403
- onClick: (W) => S($),
6409
+ onClick: (J) => S($),
6404
6410
  onAction: w
6405
6411
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
6406
- s.value.length ? I("", !0) : (u(), y(n(je), {
6412
+ s.value.length ? I("", !0) : (u(), y(n(Oe), {
6407
6413
  key: 0,
6408
6414
  "image-size": 50
6409
6415
  })),
@@ -6432,10 +6438,10 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6432
6438
  title: $.name,
6433
6439
  border: "",
6434
6440
  actions: ["remove"],
6435
- onClick: (W) => V($),
6441
+ onClick: (J) => V($),
6436
6442
  onAction: C
6437
6443
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
6438
- o.value.length ? I("", !0) : (u(), y(n(je), {
6444
+ o.value.length ? I("", !0) : (u(), y(n(Oe), {
6439
6445
  key: 0,
6440
6446
  "image-size": 50
6441
6447
  })),
@@ -6464,10 +6470,10 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6464
6470
  title: $.name,
6465
6471
  border: "",
6466
6472
  actions: ["remove"],
6467
- onClick: (W) => D($),
6473
+ onClick: (J) => D($),
6468
6474
  onAction: L
6469
6475
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
6470
- i.value.length ? I("", !0) : (u(), y(n(je), {
6476
+ i.value.length ? I("", !0) : (u(), y(n(Oe), {
6471
6477
  key: 0,
6472
6478
  "image-size": 50
6473
6479
  })),
@@ -6497,10 +6503,10 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6497
6503
  title: $.name,
6498
6504
  border: "",
6499
6505
  actions: ["remove"],
6500
- onClick: (W) => U($),
6501
- onAction: ve
6506
+ onClick: (J) => U($),
6507
+ onAction: pe
6502
6508
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
6503
- a.value.length ? I("", !0) : (u(), y(n(je), {
6509
+ a.value.length ? I("", !0) : (u(), y(n(Oe), {
6504
6510
  key: 0,
6505
6511
  "image-size": 50
6506
6512
  })),
@@ -6658,13 +6664,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6658
6664
  "submit-method": _
6659
6665
  }, {
6660
6666
  extra: b(() => [
6661
- p(n(me), {
6667
+ p(n(ve), {
6662
6668
  loading: d.value,
6663
6669
  type: "warning",
6664
6670
  onClick: V
6665
6671
  }, {
6666
6672
  default: b(() => j[4] || (j[4] = [
6667
- X(" 运行测试用例 ")
6673
+ Q(" 运行测试用例 ")
6668
6674
  ])),
6669
6675
  _: 1
6670
6676
  }, 8, ["loading"])
@@ -6692,7 +6698,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6692
6698
  onChange: S
6693
6699
  }, {
6694
6700
  option: b(({ option: D }) => [
6695
- X(te(D.label) + " ", 1),
6701
+ Q(te(D.label) + " ", 1),
6696
6702
  T("i", null, "[ " + te(D.data.name || D.data.code) + " ]", 1)
6697
6703
  ]),
6698
6704
  _: 1
@@ -6829,7 +6835,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6829
6835
  onAction: d,
6830
6836
  onClick: (f) => c(g)
6831
6837
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
6832
- i.value.length ? I("", !0) : (u(), y(n(je), {
6838
+ i.value.length ? I("", !0) : (u(), y(n(Oe), {
6833
6839
  key: 0,
6834
6840
  "image-size": 50
6835
6841
  }))
@@ -7051,7 +7057,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7051
7057
  setup(r) {
7052
7058
  const { selected: t } = xt(), e = E(), s = A(() => {
7053
7059
  const c = t.value?.model || null;
7054
- return Re(c) ? null : c;
7060
+ return je(c) ? null : c;
7055
7061
  }), o = A(() => s.value?.getPropValue("style") || {}), i = A(() => Zt(o.value) ? JSON.stringify({}) : JSON.stringify(Es(o.value), null, 2)), a = (c) => {
7056
7062
  try {
7057
7063
  const d = Es(JSON.parse(c));
@@ -7173,7 +7179,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7173
7179
  }),
7174
7180
  p(n(ue), null, {
7175
7181
  default: b(() => [
7176
- p(n(me), {
7182
+ p(n(ve), {
7177
7183
  size: "small",
7178
7184
  type: "primary",
7179
7185
  round: "",
@@ -7181,18 +7187,18 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7181
7187
  onClick: m
7182
7188
  }, {
7183
7189
  default: b(() => h[2] || (h[2] = [
7184
- X(" 确定 ")
7190
+ Q(" 确定 ")
7185
7191
  ])),
7186
7192
  _: 1
7187
7193
  }),
7188
- p(n(me), {
7194
+ p(n(ve), {
7189
7195
  size: "small",
7190
7196
  round: "",
7191
7197
  style: { width: "100%" },
7192
7198
  onClick: g
7193
7199
  }, {
7194
7200
  default: b(() => h[3] || (h[3] = [
7195
- X(" 重置 ")
7201
+ Q(" 重置 ")
7196
7202
  ])),
7197
7203
  _: 1
7198
7204
  })
@@ -8372,7 +8378,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8372
8378
  setup(r) {
8373
8379
  const t = r, { selected: e } = xt(), s = A(() => {
8374
8380
  const c = e.value?.model || null;
8375
- return Re(c) ? null : c;
8381
+ return je(c) ? null : c;
8376
8382
  }), o = A(() => s.value?.getPropValue("style") || {}), i = A(() => Es(o.value)), a = A(() => Zt(o.value)), l = (c, d) => {
8377
8383
  const v = s.value?.getPropValue("style") || {};
8378
8384
  d !== void 0 && d !== "" ? v[c] = d : delete v[c], s.value?.setProp("style", v);
@@ -8502,7 +8508,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8502
8508
  onMouseover: (d) => i(c)
8503
8509
  }, {
8504
8510
  default: b(() => [
8505
- X(te(c.name), 1)
8511
+ Q(te(c.name), 1)
8506
8512
  ]),
8507
8513
  _: 2
8508
8514
  }, 1032, ["onClick", "onMouseover"]))), 256))
@@ -8672,7 +8678,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8672
8678
  ]),
8673
8679
  m[1] || (m[1] = T("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1)),
8674
8680
  T("div", Wp, [
8675
- m[0] || (m[0] = X(" 版本: ")),
8681
+ m[0] || (m[0] = Q(" 版本: ")),
8676
8682
  T("span", null, te(n(En)), 1)
8677
8683
  ])
8678
8684
  ]),
@@ -8691,22 +8697,22 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8691
8697
  ]),
8692
8698
  T("div", Gp, te(l.value), 1),
8693
8699
  T("div", qp, [
8694
- c.value ? (u(), y(n(me), {
8700
+ c.value ? (u(), y(n(ve), {
8695
8701
  key: 0,
8696
8702
  size: "small",
8697
8703
  onClick: d
8698
8704
  }, {
8699
8705
  default: b(() => m[2] || (m[2] = [
8700
- X(" 退出登录 ")
8706
+ Q(" 退出登录 ")
8701
8707
  ])),
8702
8708
  _: 1
8703
- })) : (u(), y(n(me), {
8709
+ })) : (u(), y(n(ve), {
8704
8710
  key: 1,
8705
8711
  size: "small",
8706
8712
  onClick: t.toRemoteAuth
8707
8713
  }, {
8708
8714
  default: b(() => m[3] || (m[3] = [
8709
- X(" 登录 ")
8715
+ Q(" 登录 ")
8710
8716
  ])),
8711
8717
  _: 1
8712
8718
  }, 8, ["onClick"]))
@@ -8819,13 +8825,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8819
8825
  onClear: v
8820
8826
  }, {
8821
8827
  extra: b(() => [
8822
- p(n(me), {
8828
+ p(n(ve), {
8823
8829
  type: "warning",
8824
8830
  onClick: v,
8825
8831
  size: "default"
8826
8832
  }, {
8827
8833
  default: b(() => f[1] || (f[1] = [
8828
- X(" 清除 ")
8834
+ Q(" 清除 ")
8829
8835
  ])),
8830
8836
  _: 1
8831
8837
  })
@@ -8893,13 +8899,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8893
8899
  onClear: d
8894
8900
  }, {
8895
8901
  extra: b(() => [
8896
- p(n(me), {
8902
+ p(n(ve), {
8897
8903
  type: "warning",
8898
8904
  onClick: d,
8899
8905
  size: "default"
8900
8906
  }, {
8901
8907
  default: b(() => g[1] || (g[1] = [
8902
- X(" 清除 ")
8908
+ Q(" 清除 ")
8903
8909
  ])),
8904
8910
  _: 1
8905
8911
  })
@@ -8960,13 +8966,13 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8960
8966
  onClear: d
8961
8967
  }, {
8962
8968
  extra: b(() => [
8963
- p(n(me), {
8969
+ p(n(ve), {
8964
8970
  type: "warning",
8965
8971
  onClick: d,
8966
8972
  size: "default"
8967
8973
  }, {
8968
8974
  default: b(() => g[1] || (g[1] = [
8969
- X(" 清除 ")
8975
+ Q(" 清除 ")
8970
8976
  ])),
8971
8977
  _: 1
8972
8978
  })
@@ -9004,7 +9010,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9004
9010
  "border-style": "dotted"
9005
9011
  }, {
9006
9012
  default: b(() => a[7] || (a[7] = [
9007
- X(" 全局配置 ")
9013
+ Q(" 全局配置 ")
9008
9014
  ])),
9009
9015
  _: 1
9010
9016
  }),
@@ -9060,7 +9066,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9060
9066
  "border-style": "dotted"
9061
9067
  }, {
9062
9068
  default: b(() => a[8] || (a[8] = [
9063
- X(" 应用生命周期 ")
9069
+ Q(" 应用生命周期 ")
9064
9070
  ])),
9065
9071
  _: 1
9066
9072
  }),
@@ -9222,18 +9228,18 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9222
9228
  round: ""
9223
9229
  }, {
9224
9230
  default: b(() => D[2] || (D[2] = [
9225
- X(" VIP ")
9231
+ Q(" VIP ")
9226
9232
  ])),
9227
9233
  _: 1
9228
9234
  })) : I("", !0),
9229
- V(U) ? (u(), y(n(Ie), {
9235
+ V(U) ? (u(), y(n(Re), {
9230
9236
  key: 1,
9231
9237
  class: "is-delete",
9232
9238
  icon: n(ea),
9233
9239
  mode: "icon",
9234
9240
  size: "small",
9235
9241
  type: "danger",
9236
- onClick: (ve) => C(U)
9242
+ onClick: (pe) => C(U)
9237
9243
  }, null, 8, ["icon", "onClick"])) : I("", !0),
9238
9244
  p(n($o), {
9239
9245
  src: U.cover,
@@ -9244,15 +9250,15 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9244
9250
  T("span", om, te(U.label), 1)
9245
9251
  ]),
9246
9252
  T("div", am, [
9247
- p(n(me), {
9253
+ p(n(ve), {
9248
9254
  class: "v-templates-widgets__download",
9249
9255
  icon: n(Wn),
9250
9256
  type: "primary",
9251
9257
  round: "",
9252
- onClick: (ve) => _(U)
9258
+ onClick: (pe) => _(U)
9253
9259
  }, {
9254
9260
  default: b(() => D[3] || (D[3] = [
9255
- X(" 使用 ")
9261
+ Q(" 使用 ")
9256
9262
  ])),
9257
9263
  _: 2
9258
9264
  }, 1032, ["icon", "onClick"])
@@ -9271,7 +9277,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9271
9277
  }, 1032, ["name", "title"]))), 256))
9272
9278
  ]),
9273
9279
  _: 1
9274
- }, 8, ["model-value"])) : (u(), y(n(je), {
9280
+ }, 8, ["model-value"])) : (u(), y(n(Oe), {
9275
9281
  key: 1,
9276
9282
  description: "找不到符合条件的模板"
9277
9283
  }))
@@ -9322,7 +9328,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9322
9328
  s("remove", l.modelValue);
9323
9329
  };
9324
9330
  return (l, c) => (u(), R("div", um, [
9325
- p(n(me), {
9331
+ p(n(ve), {
9326
9332
  class: "new-btn",
9327
9333
  round: "",
9328
9334
  plain: "",
@@ -9331,7 +9337,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9331
9337
  onClick: o
9332
9338
  }, {
9333
9339
  default: b(() => c[0] || (c[0] = [
9334
- X(" 开启新对话 ")
9340
+ Q(" 开启新对话 ")
9335
9341
  ])),
9336
9342
  _: 1
9337
9343
  }, 8, ["icon"]),
@@ -9340,7 +9346,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9340
9346
  "border-style": "dotted"
9341
9347
  }, {
9342
9348
  default: b(() => c[1] || (c[1] = [
9343
- X(" 历史对话 ")
9349
+ Q(" 历史对话 ")
9344
9350
  ])),
9345
9351
  _: 1
9346
9352
  }),
@@ -9355,7 +9361,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9355
9361
  onClick: (m) => i(d),
9356
9362
  onAction: a
9357
9363
  }, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256))
9358
- ])) : (u(), y(n(je), {
9364
+ ])) : (u(), y(n(Oe), {
9359
9365
  key: 1,
9360
9366
  description: "暂无历史对话"
9361
9367
  }))
@@ -9444,7 +9450,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9444
9450
  modelValue: l.value,
9445
9451
  "onUpdate:modelValue": g[2] || (g[2] = (f) => l.value = f)
9446
9452
  }, null, 8, ["disabled", "modelValue"]),
9447
- p(n(me), {
9453
+ p(n(ve), {
9448
9454
  icon: n(Rr),
9449
9455
  type: "primary",
9450
9456
  disabled: s.disabled,
@@ -9454,7 +9460,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9454
9460
  size: "default"
9455
9461
  }, {
9456
9462
  default: b(() => g[3] || (g[3] = [
9457
- X(" 发送 ")
9463
+ Q(" 发送 ")
9458
9464
  ])),
9459
9465
  _: 1
9460
9466
  }, 8, ["icon", "disabled", "loading"])
@@ -9512,8 +9518,8 @@ function bm() {
9512
9518
  for (const le in k)
9513
9519
  H[le] = k[le];
9514
9520
  return M.forEach(function(le) {
9515
- for (const Oe in le)
9516
- H[Oe] = le[Oe];
9521
+ for (const De in le)
9522
+ H[De] = le[De];
9517
9523
  }), /** @type {T} */
9518
9524
  H;
9519
9525
  }
@@ -9524,7 +9530,7 @@ function bm() {
9524
9530
  const H = k.split(".");
9525
9531
  return [
9526
9532
  `${M}${H.shift()}`,
9527
- ...H.map((le, Oe) => `${le}${"_".repeat(Oe + 1)}`)
9533
+ ...H.map((le, De) => `${le}${"_".repeat(De + 1)}`)
9528
9534
  ].join(" ");
9529
9535
  }
9530
9536
  return `${M}${k}`;
@@ -9705,20 +9711,20 @@ function bm() {
9705
9711
  let H = 0;
9706
9712
  return k.map((le) => {
9707
9713
  H += 1;
9708
- const Oe = H;
9709
- let De = m(le), Y = "";
9710
- for (; De.length > 0; ) {
9711
- const K = C.exec(De);
9714
+ const De = H;
9715
+ let $e = m(le), Y = "";
9716
+ for (; $e.length > 0; ) {
9717
+ const K = C.exec($e);
9712
9718
  if (!K) {
9713
- Y += De;
9719
+ Y += $e;
9714
9720
  break;
9715
9721
  }
9716
- Y += De.substring(0, K.index), De = De.substring(K.index + K[0].length), K[0][0] === "\\" && K[1] ? Y += "\\" + String(Number(K[1]) + Oe) : (Y += K[0], K[0] === "(" && H++);
9722
+ Y += $e.substring(0, K.index), $e = $e.substring(K.index + K[0].length), K[0][0] === "\\" && K[1] ? Y += "\\" + String(Number(K[1]) + De) : (Y += K[0], K[0] === "(" && H++);
9717
9723
  }
9718
9724
  return Y;
9719
9725
  }).map((le) => `(${le})`).join(M);
9720
9726
  }
9721
- const D = /\b\B/, L = "[a-zA-Z]\\w*", P = "[a-zA-Z_]\\w*", U = "\\b\\d+(\\.\\d+)?", ve = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", O = "\\b(0b[01]+)", B = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", $ = (k = {}) => {
9727
+ const D = /\b\B/, L = "[a-zA-Z]\\w*", P = "[a-zA-Z_]\\w*", U = "\\b\\d+(\\.\\d+)?", pe = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", O = "\\b(0b[01]+)", B = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", $ = (k = {}) => {
9722
9728
  const M = /^#![ ]*\//;
9723
9729
  return k.binary && (k.begin = x(
9724
9730
  M,
@@ -9735,7 +9741,7 @@ function bm() {
9735
9741
  H.index !== 0 && le.ignoreMatch();
9736
9742
  }
9737
9743
  }, k);
9738
- }, W = {
9744
+ }, J = {
9739
9745
  begin: "\\\\[\\s\\S]",
9740
9746
  relevance: 0
9741
9747
  }, oe = {
@@ -9743,14 +9749,14 @@ function bm() {
9743
9749
  begin: "'",
9744
9750
  end: "'",
9745
9751
  illegal: "\\n",
9746
- contains: [W]
9747
- }, ke = {
9752
+ contains: [J]
9753
+ }, Se = {
9748
9754
  scope: "string",
9749
9755
  begin: '"',
9750
9756
  end: '"',
9751
9757
  illegal: "\\n",
9752
- contains: [W]
9753
- }, Se = {
9758
+ contains: [J]
9759
+ }, _e = {
9754
9760
  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/
9755
9761
  }, he = function(k, M, H = {}) {
9756
9762
  const le = s(
@@ -9771,7 +9777,7 @@ function bm() {
9771
9777
  excludeBegin: !0,
9772
9778
  relevance: 0
9773
9779
  });
9774
- const Oe = S(
9780
+ const De = S(
9775
9781
  // list of common 1 and 2 letter words in English
9776
9782
  "I",
9777
9783
  "a",
@@ -9811,7 +9817,7 @@ function bm() {
9811
9817
  /[ ]+/,
9812
9818
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
9813
9819
  "(",
9814
- Oe,
9820
+ De,
9815
9821
  /[.]?[:]?([.][ ]|[ ])/,
9816
9822
  "){3}"
9817
9823
  )
@@ -9824,7 +9830,7 @@ function bm() {
9824
9830
  relevance: 0
9825
9831
  }, ot = {
9826
9832
  scope: "number",
9827
- begin: ve,
9833
+ begin: pe,
9828
9834
  relevance: 0
9829
9835
  }, Ct = {
9830
9836
  scope: "number",
@@ -9835,12 +9841,12 @@ function bm() {
9835
9841
  begin: /\/(?=[^/\n]*\/)/,
9836
9842
  end: /\/[gimuy]*/,
9837
9843
  contains: [
9838
- W,
9844
+ J,
9839
9845
  {
9840
9846
  begin: /\[/,
9841
9847
  end: /\]/,
9842
9848
  relevance: 0,
9843
- contains: [W]
9849
+ contains: [J]
9844
9850
  }
9845
9851
  ]
9846
9852
  }, pt = {
@@ -9859,14 +9865,14 @@ function bm() {
9859
9865
  var Ze = /* @__PURE__ */ Object.freeze({
9860
9866
  __proto__: null,
9861
9867
  APOS_STRING_MODE: oe,
9862
- BACKSLASH_ESCAPE: W,
9868
+ BACKSLASH_ESCAPE: J,
9863
9869
  BINARY_NUMBER_MODE: Ct,
9864
9870
  BINARY_NUMBER_RE: O,
9865
9871
  COMMENT: he,
9866
9872
  C_BLOCK_COMMENT_MODE: Je,
9867
9873
  C_LINE_COMMENT_MODE: Xe,
9868
9874
  C_NUMBER_MODE: ot,
9869
- C_NUMBER_RE: ve,
9875
+ C_NUMBER_RE: pe,
9870
9876
  END_SAME_AS_BEGIN: function(k) {
9871
9877
  return Object.assign(
9872
9878
  k,
@@ -9888,8 +9894,8 @@ function bm() {
9888
9894
  METHOD_GUARD: hn,
9889
9895
  NUMBER_MODE: Qe,
9890
9896
  NUMBER_RE: U,
9891
- PHRASAL_WORDS_MODE: Se,
9892
- QUOTE_STRING_MODE: ke,
9897
+ PHRASAL_WORDS_MODE: _e,
9898
+ QUOTE_STRING_MODE: Se,
9893
9899
  REGEXP_MODE: ft,
9894
9900
  RE_STARTERS_RE: B,
9895
9901
  SHEBANG: $,
@@ -9930,7 +9936,7 @@ function bm() {
9930
9936
  Object.assign(H, { endsParent: !0 })
9931
9937
  ]
9932
9938
  }, k.relevance = 0, delete H.beforeMatch;
9933
- }, J = [
9939
+ }, W = [
9934
9940
  "of",
9935
9941
  "and",
9936
9942
  "for",
@@ -9946,26 +9952,26 @@ function bm() {
9946
9952
  "value"
9947
9953
  // common variable name
9948
9954
  ], fe = "keyword";
9949
- function Te(k, M, H = fe) {
9955
+ function Ie(k, M, H = fe) {
9950
9956
  const le = /* @__PURE__ */ Object.create(null);
9951
- return typeof k == "string" ? Oe(H, k.split(" ")) : Array.isArray(k) ? Oe(H, k) : Object.keys(k).forEach(function(De) {
9957
+ return typeof k == "string" ? De(H, k.split(" ")) : Array.isArray(k) ? De(H, k) : Object.keys(k).forEach(function($e) {
9952
9958
  Object.assign(
9953
9959
  le,
9954
- Te(k[De], M, De)
9960
+ Ie(k[$e], M, $e)
9955
9961
  );
9956
9962
  }), le;
9957
- function Oe(De, Y) {
9963
+ function De($e, Y) {
9958
9964
  M && (Y = Y.map((K) => K.toLowerCase())), Y.forEach(function(K) {
9959
9965
  const ae = K.split("|");
9960
- le[ae[0]] = [De, at(ae[0], ae[1])];
9966
+ le[ae[0]] = [$e, at(ae[0], ae[1])];
9961
9967
  });
9962
9968
  }
9963
9969
  }
9964
9970
  function at(k, M) {
9965
- return M ? Number(M) : Ne(k) ? 0 : 1;
9971
+ return M ? Number(M) : Te(k) ? 0 : 1;
9966
9972
  }
9967
- function Ne(k) {
9968
- return J.includes(k.toLowerCase());
9973
+ function Te(k) {
9974
+ return W.includes(k.toLowerCase());
9969
9975
  }
9970
9976
  const ht = {}, Et = (k) => {
9971
9977
  console.error(k);
@@ -9976,10 +9982,10 @@ function bm() {
9976
9982
  }, st = new Error();
9977
9983
  function yn(k, M, { key: H }) {
9978
9984
  let le = 0;
9979
- const Oe = k[H], De = {}, Y = {};
9985
+ const De = k[H], $e = {}, Y = {};
9980
9986
  for (let K = 1; K <= M.length; K++)
9981
- Y[K + le] = Oe[K], De[K + le] = !0, le += _(M[K - 1]);
9982
- k[H] = Y, k[H]._emit = De, k[H]._multi = !0;
9987
+ Y[K + le] = De[K], $e[K + le] = !0, le += _(M[K - 1]);
9988
+ k[H] = Y, k[H]._emit = $e, k[H]._multi = !0;
9983
9989
  }
9984
9990
  function Va(k) {
9985
9991
  if (Array.isArray(k.begin)) {
@@ -10067,11 +10073,11 @@ function bm() {
10067
10073
  return Fe && (this.regexIndex += Fe.position + 1, this.regexIndex === this.count && this.considerAll()), Fe;
10068
10074
  }
10069
10075
  }
10070
- function Oe(Y) {
10076
+ function De(Y) {
10071
10077
  const K = new le();
10072
10078
  return Y.contains.forEach((ae) => K.addRule(ae.begin, { rule: ae, type: "begin" })), Y.terminatorEnd && K.addRule(Y.terminatorEnd, { type: "end" }), Y.illegal && K.addRule(Y.illegal, { type: "illegal" }), K;
10073
10079
  }
10074
- function De(Y, K) {
10080
+ function $e(Y, K) {
10075
10081
  const ae = (
10076
10082
  /** @type CompiledMode */
10077
10083
  Y
@@ -10093,22 +10099,22 @@ function bm() {
10093
10099
  Tn
10094
10100
  ].forEach((Pe) => Pe(Y, K)), Y.isCompiled = !0;
10095
10101
  let Fe = null;
10096
- return typeof Y.keywords == "object" && Y.keywords.$pattern && (Y.keywords = Object.assign({}, Y.keywords), Fe = Y.keywords.$pattern, delete Y.keywords.$pattern), Fe = Fe || /\w+/, Y.keywords && (Y.keywords = Te(Y.keywords, k.case_insensitive)), ae.keywordPatternRe = M(Fe, !0), K && (Y.begin || (Y.begin = /\B|\b/), ae.beginRe = M(ae.begin), !Y.end && !Y.endsWithParent && (Y.end = /\B|\b/), Y.end && (ae.endRe = M(ae.end)), ae.terminatorEnd = m(ae.end) || "", Y.endsWithParent && K.terminatorEnd && (ae.terminatorEnd += (Y.end ? "|" : "") + K.terminatorEnd)), Y.illegal && (ae.illegalRe = M(
10102
+ return typeof Y.keywords == "object" && Y.keywords.$pattern && (Y.keywords = Object.assign({}, Y.keywords), Fe = Y.keywords.$pattern, delete Y.keywords.$pattern), Fe = Fe || /\w+/, Y.keywords && (Y.keywords = Ie(Y.keywords, k.case_insensitive)), ae.keywordPatternRe = M(Fe, !0), K && (Y.begin || (Y.begin = /\B|\b/), ae.beginRe = M(ae.begin), !Y.end && !Y.endsWithParent && (Y.end = /\B|\b/), Y.end && (ae.endRe = M(ae.end)), ae.terminatorEnd = m(ae.end) || "", Y.endsWithParent && K.terminatorEnd && (ae.terminatorEnd += (Y.end ? "|" : "") + K.terminatorEnd)), Y.illegal && (ae.illegalRe = M(
10097
10103
  /** @type {RegExp | string} */
10098
10104
  Y.illegal
10099
10105
  )), Y.contains || (Y.contains = []), Y.contains = [].concat(...Y.contains.map(function(Pe) {
10100
10106
  return Oa(Pe === "self" ? Y : Pe);
10101
10107
  })), Y.contains.forEach(function(Pe) {
10102
- De(
10108
+ $e(
10103
10109
  /** @type Mode */
10104
10110
  Pe,
10105
10111
  ae
10106
10112
  );
10107
- }), Y.starts && De(Y.starts, K), ae.matcher = Oe(ae), ae;
10113
+ }), Y.starts && $e(Y.starts, K), ae.matcher = De(ae), ae;
10108
10114
  }
10109
10115
  if (k.compilerExtensions || (k.compilerExtensions = []), k.contains && k.contains.includes("self"))
10110
10116
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
10111
- return k.classNameAliases = s(k.classNameAliases || {}), De(
10117
+ return k.classNameAliases = s(k.classNameAliases || {}), $e(
10112
10118
  /** @type Mode */
10113
10119
  k
10114
10120
  );
@@ -10129,8 +10135,8 @@ function bm() {
10129
10135
  }
10130
10136
  const ls = e, Xs = s, Qs = Symbol("nomatch"), Na = 7, Ys = function(k) {
10131
10137
  const M = /* @__PURE__ */ Object.create(null), H = /* @__PURE__ */ Object.create(null), le = [];
10132
- let Oe = !0;
10133
- const De = "Could not find the language '{}', did you forget to load/include a language module?", Y = { disableAutodetect: !0, name: "Plain text", contains: [] };
10138
+ let De = !0;
10139
+ const $e = "Could not find the language '{}', did you forget to load/include a language module?", Y = { disableAutodetect: !0, name: "Plain text", contains: [] };
10134
10140
  let K = {
10135
10141
  ignoreUnescapedHTML: !1,
10136
10142
  throwUnescapedHTML: !1,
@@ -10151,90 +10157,90 @@ function bm() {
10151
10157
  se += z.parentNode ? z.parentNode.className : "";
10152
10158
  const ge = K.languageDetectRe.exec(se);
10153
10159
  if (ge) {
10154
- const _e = Pt(ge[1]);
10155
- return _e || (an(De.replace("{}", ge[1])), an("Falling back to no-highlight mode for this block.", z)), _e ? ge[1] : "no-highlight";
10160
+ const we = Pt(ge[1]);
10161
+ return we || (an($e.replace("{}", ge[1])), an("Falling back to no-highlight mode for this block.", z)), we ? ge[1] : "no-highlight";
10156
10162
  }
10157
- return se.split(/\s+/).find((_e) => ae(_e) || Pt(_e));
10163
+ return se.split(/\s+/).find((we) => ae(we) || Pt(we));
10158
10164
  }
10159
10165
  function Pe(z, se, ge) {
10160
- let _e = "", Ue = "";
10161
- typeof se == "object" ? (_e = z, ge = se.ignoreIllegals, Ue = se.language) : (nt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), nt("10.7.0", `Please use highlight(code, options) instead.
10162
- https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge === void 0 && (ge = !0);
10166
+ let we = "", Ue = "";
10167
+ typeof se == "object" ? (we = z, ge = se.ignoreIllegals, Ue = se.language) : (nt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), nt("10.7.0", `Please use highlight(code, options) instead.
10168
+ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, we = se), ge === void 0 && (ge = !0);
10163
10169
  const bt = {
10164
- code: _e,
10170
+ code: we,
10165
10171
  language: Ue
10166
10172
  };
10167
10173
  Rn("before:highlight", bt);
10168
10174
  const Mt = bt.result ? bt.result : _n(bt.language, bt.code, ge);
10169
10175
  return Mt.code = bt.code, Rn("after:highlight", Mt), Mt;
10170
10176
  }
10171
- function _n(z, se, ge, _e) {
10177
+ function _n(z, se, ge, we) {
10172
10178
  const Ue = /* @__PURE__ */ Object.create(null);
10173
10179
  function bt(G, ee) {
10174
10180
  return G.keywords[ee];
10175
10181
  }
10176
10182
  function Mt() {
10177
10183
  if (!ie.keywords) {
10178
- Ge.addText(we);
10184
+ Ge.addText(ke);
10179
10185
  return;
10180
10186
  }
10181
10187
  let G = 0;
10182
10188
  ie.keywordPatternRe.lastIndex = 0;
10183
- let ee = ie.keywordPatternRe.exec(we), pe = "";
10189
+ let ee = ie.keywordPatternRe.exec(ke), me = "";
10184
10190
  for (; ee; ) {
10185
- pe += we.substring(G, ee.index);
10191
+ me += ke.substring(G, ee.index);
10186
10192
  const ye = Vt.case_insensitive ? ee[0].toLowerCase() : ee[0], Ye = bt(ie, ye);
10187
10193
  if (Ye) {
10188
10194
  const [Dt, Za] = Ye;
10189
- if (Ge.addText(pe), pe = "", Ue[ye] = (Ue[ye] || 0) + 1, Ue[ye] <= Na && (Dn += Za), Dt.startsWith("_"))
10190
- pe += ee[0];
10195
+ if (Ge.addText(me), me = "", Ue[ye] = (Ue[ye] || 0) + 1, Ue[ye] <= Na && (Dn += Za), Dt.startsWith("_"))
10196
+ me += ee[0];
10191
10197
  else {
10192
10198
  const el = Vt.classNameAliases[Dt] || Dt;
10193
10199
  At(ee[0], el);
10194
10200
  }
10195
10201
  } else
10196
- pe += ee[0];
10197
- G = ie.keywordPatternRe.lastIndex, ee = ie.keywordPatternRe.exec(we);
10202
+ me += ee[0];
10203
+ G = ie.keywordPatternRe.lastIndex, ee = ie.keywordPatternRe.exec(ke);
10198
10204
  }
10199
- pe += we.substring(G), Ge.addText(pe);
10205
+ me += ke.substring(G), Ge.addText(me);
10200
10206
  }
10201
10207
  function jn() {
10202
- if (we === "") return;
10208
+ if (ke === "") return;
10203
10209
  let G = null;
10204
10210
  if (typeof ie.subLanguage == "string") {
10205
10211
  if (!M[ie.subLanguage]) {
10206
- Ge.addText(we);
10212
+ Ge.addText(ke);
10207
10213
  return;
10208
10214
  }
10209
- G = _n(ie.subLanguage, we, !0, lo[ie.subLanguage]), lo[ie.subLanguage] = /** @type {CompiledMode} */
10215
+ G = _n(ie.subLanguage, ke, !0, lo[ie.subLanguage]), lo[ie.subLanguage] = /** @type {CompiledMode} */
10210
10216
  G._top;
10211
10217
  } else
10212
- G = rs(we, ie.subLanguage.length ? ie.subLanguage : null);
10218
+ G = rs(ke, ie.subLanguage.length ? ie.subLanguage : null);
10213
10219
  ie.relevance > 0 && (Dn += G.relevance), Ge.__addSublanguage(G._emitter, G.language);
10214
10220
  }
10215
10221
  function lt() {
10216
- ie.subLanguage != null ? jn() : Mt(), we = "";
10222
+ ie.subLanguage != null ? jn() : Mt(), ke = "";
10217
10223
  }
10218
10224
  function At(G, ee) {
10219
10225
  G !== "" && (Ge.startScope(ee), Ge.addText(G), Ge.endScope());
10220
10226
  }
10221
10227
  function no(G, ee) {
10222
- let pe = 1;
10228
+ let me = 1;
10223
10229
  const ye = ee.length - 1;
10224
- for (; pe <= ye; ) {
10225
- if (!G._emit[pe]) {
10226
- pe++;
10230
+ for (; me <= ye; ) {
10231
+ if (!G._emit[me]) {
10232
+ me++;
10227
10233
  continue;
10228
10234
  }
10229
- const Ye = Vt.classNameAliases[G[pe]] || G[pe], Dt = ee[pe];
10230
- Ye ? At(Dt, Ye) : (we = Dt, Mt(), we = ""), pe++;
10235
+ const Ye = Vt.classNameAliases[G[me]] || G[me], Dt = ee[me];
10236
+ Ye ? At(Dt, Ye) : (ke = Dt, Mt(), ke = ""), me++;
10231
10237
  }
10232
10238
  }
10233
10239
  function so(G, ee) {
10234
- return G.scope && typeof G.scope == "string" && Ge.openNode(Vt.classNameAliases[G.scope] || G.scope), G.beginScope && (G.beginScope._wrap ? (At(we, Vt.classNameAliases[G.beginScope._wrap] || G.beginScope._wrap), we = "") : G.beginScope._multi && (no(G.beginScope, ee), we = "")), ie = Object.create(G, { parent: { value: ie } }), ie;
10240
+ return G.scope && typeof G.scope == "string" && Ge.openNode(Vt.classNameAliases[G.scope] || G.scope), G.beginScope && (G.beginScope._wrap ? (At(ke, Vt.classNameAliases[G.beginScope._wrap] || G.beginScope._wrap), ke = "") : G.beginScope._multi && (no(G.beginScope, ee), ke = "")), ie = Object.create(G, { parent: { value: ie } }), ie;
10235
10241
  }
10236
- function oo(G, ee, pe) {
10237
- let ye = V(G.endRe, pe);
10242
+ function oo(G, ee, me) {
10243
+ let ye = V(G.endRe, me);
10238
10244
  if (ye) {
10239
10245
  if (G["on:end"]) {
10240
10246
  const Ye = new t(G);
@@ -10247,24 +10253,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10247
10253
  }
10248
10254
  }
10249
10255
  if (G.endsWithParent)
10250
- return oo(G.parent, ee, pe);
10256
+ return oo(G.parent, ee, me);
10251
10257
  }
10252
10258
  function qa(G) {
10253
- return ie.matcher.regexIndex === 0 ? (we += G[0], 1) : (ps = !0, 0);
10259
+ return ie.matcher.regexIndex === 0 ? (ke += G[0], 1) : (ps = !0, 0);
10254
10260
  }
10255
10261
  function Ka(G) {
10256
- const ee = G[0], pe = G.rule, ye = new t(pe), Ye = [pe.__beforeBegin, pe["on:begin"]];
10262
+ const ee = G[0], me = G.rule, ye = new t(me), Ye = [me.__beforeBegin, me["on:begin"]];
10257
10263
  for (const Dt of Ye)
10258
10264
  if (Dt && (Dt(G, ye), ye.isMatchIgnored))
10259
10265
  return qa(ee);
10260
- return pe.skip ? we += ee : (pe.excludeBegin && (we += ee), lt(), !pe.returnBegin && !pe.excludeBegin && (we = ee)), so(pe, G), pe.returnBegin ? 0 : ee.length;
10266
+ return me.skip ? ke += ee : (me.excludeBegin && (ke += ee), lt(), !me.returnBegin && !me.excludeBegin && (ke = ee)), so(me, G), me.returnBegin ? 0 : ee.length;
10261
10267
  }
10262
10268
  function Xa(G) {
10263
- const ee = G[0], pe = se.substring(G.index), ye = oo(ie, G, pe);
10269
+ const ee = G[0], me = se.substring(G.index), ye = oo(ie, G, me);
10264
10270
  if (!ye)
10265
10271
  return Qs;
10266
10272
  const Ye = ie;
10267
- ie.endScope && ie.endScope._wrap ? (lt(), At(ee, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (lt(), no(ie.endScope, G)) : Ye.skip ? we += ee : (Ye.returnEnd || Ye.excludeEnd || (we += ee), lt(), Ye.excludeEnd && (we = ee));
10273
+ ie.endScope && ie.endScope._wrap ? (lt(), At(ee, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (lt(), no(ie.endScope, G)) : Ye.skip ? ke += ee : (Ye.returnEnd || Ye.excludeEnd || (ke += ee), lt(), Ye.excludeEnd && (ke = ee));
10268
10274
  do
10269
10275
  ie.scope && Ge.closeNode(), !ie.skip && !ie.subLanguage && (Dn += ie.relevance), ie = ie.parent;
10270
10276
  while (ie !== ye.parent);
@@ -10278,11 +10284,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10278
10284
  }
10279
10285
  let On = {};
10280
10286
  function ao(G, ee) {
10281
- const pe = ee && ee[0];
10282
- if (we += G, pe == null)
10287
+ const me = ee && ee[0];
10288
+ if (ke += G, me == null)
10283
10289
  return lt(), 0;
10284
- if (On.type === "begin" && ee.type === "end" && On.index === ee.index && pe === "") {
10285
- if (we += se.slice(ee.index, ee.index + 1), !Oe) {
10290
+ if (On.type === "begin" && ee.type === "end" && On.index === ee.index && me === "") {
10291
+ if (ke += se.slice(ee.index, ee.index + 1), !De) {
10286
10292
  const ye = new Error(`0 width match regex (${z})`);
10287
10293
  throw ye.languageName = z, ye.badRule = On.rule, ye;
10288
10294
  }
@@ -10291,28 +10297,28 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10291
10297
  if (On = ee, ee.type === "begin")
10292
10298
  return Ka(ee);
10293
10299
  if (ee.type === "illegal" && !ge) {
10294
- const ye = new Error('Illegal lexeme "' + pe + '" for mode "' + (ie.scope || "<unnamed>") + '"');
10300
+ const ye = new Error('Illegal lexeme "' + me + '" for mode "' + (ie.scope || "<unnamed>") + '"');
10295
10301
  throw ye.mode = ie, ye;
10296
10302
  } else if (ee.type === "end") {
10297
10303
  const ye = Xa(ee);
10298
10304
  if (ye !== Qs)
10299
10305
  return ye;
10300
10306
  }
10301
- if (ee.type === "illegal" && pe === "")
10302
- return we += `
10307
+ if (ee.type === "illegal" && me === "")
10308
+ return ke += `
10303
10309
  `, 1;
10304
10310
  if (ds > 1e5 && ds > ee.index * 3)
10305
10311
  throw new Error("potential infinite loop, way more iterations than matches");
10306
- return we += pe, pe.length;
10312
+ return ke += me, me.length;
10307
10313
  }
10308
10314
  const Vt = Pt(z);
10309
10315
  if (!Vt)
10310
- throw Et(De.replace("{}", z)), new Error('Unknown language: "' + z + '"');
10316
+ throw Et($e.replace("{}", z)), new Error('Unknown language: "' + z + '"');
10311
10317
  const Ya = ja(Vt);
10312
- let us = "", ie = _e || Ya;
10318
+ let us = "", ie = we || Ya;
10313
10319
  const lo = {}, Ge = new K.__emitter(K);
10314
10320
  Qa();
10315
- let we = "", Dn = 0, Xt = 0, ds = 0, ps = !1;
10321
+ let ke = "", Dn = 0, Xt = 0, ds = 0, ps = !1;
10316
10322
  try {
10317
10323
  if (Vt.__emitTokens)
10318
10324
  Vt.__emitTokens(se, Ge);
@@ -10321,8 +10327,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10321
10327
  ds++, ps ? ps = !1 : ie.matcher.considerAll(), ie.matcher.lastIndex = Xt;
10322
10328
  const G = ie.matcher.exec(se);
10323
10329
  if (!G) break;
10324
- const ee = se.substring(Xt, G.index), pe = ao(ee, G);
10325
- Xt = G.index + pe;
10330
+ const ee = se.substring(Xt, G.index), me = ao(ee, G);
10331
+ Xt = G.index + me;
10326
10332
  }
10327
10333
  ao(se.substring(Xt));
10328
10334
  }
@@ -10350,7 +10356,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10350
10356
  },
10351
10357
  _emitter: Ge
10352
10358
  };
10353
- if (Oe)
10359
+ if (De)
10354
10360
  return {
10355
10361
  language: z,
10356
10362
  value: ls(se),
@@ -10375,11 +10381,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10375
10381
  }
10376
10382
  function rs(z, se) {
10377
10383
  se = se || K.languages || Object.keys(M);
10378
- const ge = is(z), _e = se.filter(Pt).filter(to).map(
10384
+ const ge = is(z), we = se.filter(Pt).filter(to).map(
10379
10385
  (lt) => _n(lt, z, !1)
10380
10386
  );
10381
- _e.unshift(ge);
10382
- const Ue = _e.sort((lt, At) => {
10387
+ we.unshift(ge);
10388
+ const Ue = we.sort((lt, At) => {
10383
10389
  if (lt.relevance !== At.relevance) return At.relevance - lt.relevance;
10384
10390
  if (lt.language && At.language) {
10385
10391
  if (Pt(lt.language).supersetOf === At.language)
@@ -10392,8 +10398,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10392
10398
  return jn.secondBest = Mt, jn;
10393
10399
  }
10394
10400
  function Pa(z, se, ge) {
10395
- const _e = se && H[se] || ge;
10396
- z.classList.add("hljs"), z.classList.add(`language-${_e}`);
10401
+ const we = se && H[se] || ge;
10402
+ z.classList.add("hljs"), z.classList.add(`language-${we}`);
10397
10403
  }
10398
10404
  function cs(z) {
10399
10405
  let se = null;
@@ -10412,7 +10418,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10412
10418
  z.innerHTML
10413
10419
  );
10414
10420
  se = z;
10415
- const _e = se.textContent, Ue = ge ? Pe(_e, { language: ge, ignoreIllegals: !0 }) : rs(_e);
10421
+ const we = se.textContent, Ue = ge ? Pe(we, { language: ge, ignoreIllegals: !0 }) : rs(we);
10416
10422
  z.innerHTML = Ue.value, z.dataset.highlighted = "yes", Pa(z, ge, Ue.language), z.result = {
10417
10423
  language: Ue.language,
10418
10424
  // TODO: remove with version 11.0
@@ -10421,7 +10427,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10421
10427
  }, Ue.secondBest && (z.secondBest = {
10422
10428
  language: Ue.secondBest.language,
10423
10429
  relevance: Ue.secondBest.relevance
10424
- }), Rn("after:highlightElement", { el: z, result: Ue, text: _e });
10430
+ }), Rn("after:highlightElement", { el: z, result: Ue, text: we });
10425
10431
  }
10426
10432
  function Ma(z) {
10427
10433
  K = Xs(K, z);
@@ -10447,11 +10453,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10447
10453
  let ge = null;
10448
10454
  try {
10449
10455
  ge = se(k);
10450
- } catch (_e) {
10451
- if (Et("Language definition for '{}' could not be registered.".replace("{}", z)), Oe)
10452
- Et(_e);
10456
+ } catch (we) {
10457
+ if (Et("Language definition for '{}' could not be registered.".replace("{}", z)), De)
10458
+ Et(we);
10453
10459
  else
10454
- throw _e;
10460
+ throw we;
10455
10461
  ge = Y;
10456
10462
  }
10457
10463
  ge.name || (ge.name = z), M[z] = ge, ge.rawDefinition = se.bind(null, k), ge.aliases && eo(ge.aliases, { languageName: z });
@@ -10496,8 +10502,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10496
10502
  }
10497
10503
  function Rn(z, se) {
10498
10504
  const ge = z;
10499
- le.forEach(function(_e) {
10500
- _e[ge] && _e[ge](se);
10505
+ le.forEach(function(we) {
10506
+ we[ge] && we[ge](se);
10501
10507
  });
10502
10508
  }
10503
10509
  function Ga(z) {
@@ -10523,9 +10529,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ue = z, _e = se), ge
10523
10529
  addPlugin: Ja,
10524
10530
  removePlugin: Ha
10525
10531
  }), k.debugMode = function() {
10526
- Oe = !1;
10532
+ De = !1;
10527
10533
  }, k.safeMode = function() {
10528
- Oe = !0;
10534
+ De = !0;
10529
10535
  }, k.versionString = Da, k.regex = {
10530
10536
  concat: x,
10531
10537
  lookahead: g,
@@ -11165,7 +11171,7 @@ function Cm(r) {
11165
11171
  className: "meta",
11166
11172
  relevance: 10,
11167
11173
  begin: /^\s*['"]use (strict|asm)['"]/
11168
- }, ve = {
11174
+ }, pe = {
11169
11175
  variants: [
11170
11176
  {
11171
11177
  match: [
@@ -11211,7 +11217,7 @@ function Cm(r) {
11211
11217
  ),
11212
11218
  className: "title.function",
11213
11219
  relevance: 0
11214
- }, W = {
11220
+ }, J = {
11215
11221
  begin: t.concat(/\./, t.lookahead(
11216
11222
  t.concat(s, /(?![0-9A-Za-z$_(])/)
11217
11223
  )),
@@ -11238,7 +11244,7 @@ function Cm(r) {
11238
11244
  },
11239
11245
  D
11240
11246
  ]
11241
- }, ke = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + r.UNDERSCORE_IDENT_RE + ")\\s*=>", Se = {
11247
+ }, Se = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + r.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = {
11242
11248
  match: [
11243
11249
  /const|var|let/,
11244
11250
  /\s+/,
@@ -11247,7 +11253,7 @@ function Cm(r) {
11247
11253
  /=\s*/,
11248
11254
  /(async\s*)?/,
11249
11255
  // async is optional
11250
- t.lookahead(ke)
11256
+ t.lookahead(Se)
11251
11257
  ],
11252
11258
  keywords: "async",
11253
11259
  className: {
@@ -11288,7 +11294,7 @@ function Cm(r) {
11288
11294
  match: s + t.lookahead(":"),
11289
11295
  relevance: 0
11290
11296
  },
11291
- Se,
11297
+ _e,
11292
11298
  {
11293
11299
  // "value" container
11294
11300
  begin: "(" + r.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
@@ -11302,7 +11308,7 @@ function Cm(r) {
11302
11308
  // we have to count the parens to make sure we actually have the
11303
11309
  // correct bounding ( ) before the =>. There could be any number of
11304
11310
  // sub-expressions inside also surrounded by parens.
11305
- begin: ke,
11311
+ begin: Se,
11306
11312
  returnBegin: !0,
11307
11313
  end: "\\s*=>",
11308
11314
  contains: [
@@ -11364,7 +11370,7 @@ function Cm(r) {
11364
11370
  }
11365
11371
  ]
11366
11372
  },
11367
- ve,
11373
+ pe,
11368
11374
  {
11369
11375
  // prevent this from getting swallowed up by function
11370
11376
  // since they appear "function like"
@@ -11388,7 +11394,7 @@ function Cm(r) {
11388
11394
  match: /\.\.\./,
11389
11395
  relevance: 0
11390
11396
  },
11391
- W,
11397
+ J,
11392
11398
  // hack: prevents detection of keywords in some circumstances
11393
11399
  // .keyword()
11394
11400
  // $keyword = x
@@ -12451,7 +12457,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12451
12457
  onClick: x
12452
12458
  }, {
12453
12459
  default: b(() => [
12454
- X(te(f.value) + " ", 1),
12460
+ Q(te(f.value) + " ", 1),
12455
12461
  p(n(Rt), { icon: d.value }, null, 8, ["icon"])
12456
12462
  ]),
12457
12463
  _: 1
@@ -12471,20 +12477,20 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12471
12477
  ])) : I("", !0)
12472
12478
  ], 2),
12473
12479
  e.data.message ? (u(), R("div", Lm, [
12474
- X(te(e.data.message) + " ", 1),
12475
- l.value ? (u(), y(n(me), {
12480
+ T("div", null, te(e.data.message), 1),
12481
+ l.value ? (u(), y(n(ve), {
12476
12482
  key: 0,
12477
12483
  size: "small",
12478
12484
  round: "",
12479
12485
  onClick: w
12480
12486
  }, {
12481
12487
  default: b(() => V[0] || (V[0] = [
12482
- X(" 纠正错误 ")
12488
+ Q(" 纠正错误 ")
12483
12489
  ])),
12484
12490
  _: 1
12485
12491
  })) : I("", !0)
12486
12492
  ])) : I("", !0),
12487
- a.value ? (u(), y(n(me), {
12493
+ a.value ? (u(), y(n(ve), {
12488
12494
  key: 2,
12489
12495
  class: "v-ai-widget-bubble__loading",
12490
12496
  loading: "",
@@ -12524,8 +12530,8 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12524
12530
  default: b(() => [
12525
12531
  T("div", Wm, [
12526
12532
  T("div", null, [
12527
- s[1] || (s[1] = X(" 使用AI助手需登录 VTJ.PRO 客户端,您还没登录或登录已失效,请重新登录! ")),
12528
- p(n(me), {
12533
+ s[1] || (s[1] = Q(" 使用AI助手需登录 VTJ.PRO 客户端,您还没登录或登录已失效,请重新登录! ")),
12534
+ p(n(ve), {
12529
12535
  size: "small",
12530
12536
  type: "primary",
12531
12537
  round: "",
@@ -12533,7 +12539,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12533
12539
  onClick: n(t)
12534
12540
  }, {
12535
12541
  default: b(() => s[0] || (s[0] = [
12536
- X(" 立即登录 ")
12542
+ Q(" 立即登录 ")
12537
12543
  ])),
12538
12544
  _: 1
12539
12545
  }, 8, ["onClick"])
@@ -12580,7 +12586,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12580
12586
  i.value.length ? (u(), R(q, { key: 0 }, [
12581
12587
  p(n(ut), { "content-position": "left" }, {
12582
12588
  default: b(() => v[0] || (v[0] = [
12583
- X("热门需求")
12589
+ Q("热门需求")
12584
12590
  ])),
12585
12591
  _: 1
12586
12592
  }),
@@ -12684,7 +12690,9 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12684
12690
  const e = r, s = t, o = A(() => JSON.stringify(e.chat.dsl || {}, null, 2)), i = E(), a = E(), l = () => {
12685
12691
  s("apply", e.chat);
12686
12692
  }, c = async () => {
12687
- const v = i.value.getEditor().getValue(), m = await e.updateChatDsl(v).catch((g) => (Array.isArray(g) ? Ce(g.join(",")) : Ce(g?.message || "代码错误"), null));
12693
+ const v = i.value.getEditor().getValue();
12694
+ if (!v) return;
12695
+ const m = await e.updateChatDsl(v).catch((g) => (Array.isArray(g) ? Ce(g.join(",")) : Ce(g?.message || "代码错误"), null));
12688
12696
  m && a.value.getEditor().setValue(JSON.stringify(m, null, 2));
12689
12697
  };
12690
12698
  return (d, v) => (u(), y(n(St), {
@@ -12697,9 +12705,9 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12697
12705
  T("div", { class: "tips" }, "您可以更改源码后重新生成DSL,再应用到页面。", -1)
12698
12706
  ])),
12699
12707
  handle: b(() => [
12700
- p(n(me), { onClick: c }, {
12708
+ p(n(ve), { onClick: c }, {
12701
12709
  default: b(() => v[1] || (v[1] = [
12702
- X("重新生成DSL")
12710
+ Q("重新生成DSL")
12703
12711
  ])),
12704
12712
  _: 1
12705
12713
  })
@@ -12731,7 +12739,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12731
12739
  _: 1
12732
12740
  }));
12733
12741
  }
12734
- }), Zm = /* @__PURE__ */ dt(Ym, [["__scopeId", "data-v-4852eef3"]]), ev = {
12742
+ }), Zm = /* @__PURE__ */ dt(Ym, [["__scopeId", "data-v-7d72b4eb"]]), ev = {
12735
12743
  key: 0,
12736
12744
  class: "v-ai-widget__mask is-limit"
12737
12745
  }, tv = {
@@ -12829,19 +12837,19 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12829
12837
  _: 1
12830
12838
  }),
12831
12839
  T("div", rv, [
12832
- p(n(me), {
12840
+ p(n(ve), {
12833
12841
  icon: n($r),
12834
12842
  type: "primary",
12835
12843
  round: "",
12836
12844
  onClick: d
12837
12845
  }, {
12838
12846
  default: b(() => f[2] || (f[2] = [
12839
- X(" 立即开通 "),
12847
+ Q(" 立即开通 "),
12840
12848
  T("span", { class: "price" }, "99元/月", -1)
12841
12849
  ])),
12842
12850
  _: 1
12843
12851
  }, 8, ["icon"]),
12844
- p(n(me), {
12852
+ p(n(ve), {
12845
12853
  class: "limit-tip__close",
12846
12854
  text: "",
12847
12855
  type: "info",
@@ -12850,7 +12858,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12850
12858
  onClick: c
12851
12859
  }, {
12852
12860
  default: b(() => f[3] || (f[3] = [
12853
- X(" 取消 ")
12861
+ Q(" 取消 ")
12854
12862
  ])),
12855
12863
  _: 1
12856
12864
  })
@@ -12867,24 +12875,24 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12867
12875
  "onUpdate:modelValue": f[0] || (f[0] = (h) => s.value = h)
12868
12876
  }, {
12869
12877
  footer: b(() => [
12870
- p(n(me), {
12878
+ p(n(ve), {
12871
12879
  size: "large",
12872
12880
  type: "success",
12873
12881
  icon: n(Nr),
12874
12882
  onClick: v
12875
12883
  }, {
12876
12884
  default: b(() => f[9] || (f[9] = [
12877
- X(" 已完成 ")
12885
+ Q(" 已完成 ")
12878
12886
  ])),
12879
12887
  _: 1
12880
12888
  }, 8, ["icon"]),
12881
- p(n(me), {
12889
+ p(n(ve), {
12882
12890
  text: "",
12883
12891
  type: "info",
12884
12892
  onClick: m
12885
12893
  }, {
12886
12894
  default: b(() => f[10] || (f[10] = [
12887
- X("取消")
12895
+ Q("取消")
12888
12896
  ])),
12889
12897
  _: 1
12890
12898
  })
@@ -12895,7 +12903,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12895
12903
  closable: !1
12896
12904
  }, {
12897
12905
  default: b(() => f[4] || (f[4] = [
12898
- X(" 您的订单已经成功创建,请按以下步骤完成开通订阅。 ")
12906
+ Q(" 您的订单已经成功创建,请按以下步骤完成开通订阅。 ")
12899
12907
  ])),
12900
12908
  _: 1
12901
12909
  }),
@@ -12945,13 +12953,13 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12945
12953
  f[8] || (f[8] = T("div", null, "复制以下订单信息发送给客服", -1)),
12946
12954
  T("div", mv, [
12947
12955
  T("div", vv, te(i.value), 1),
12948
- p(n(me), {
12956
+ p(n(ve), {
12949
12957
  size: "small",
12950
12958
  icon: n(Yo),
12951
12959
  onClick: l
12952
12960
  }, {
12953
12961
  default: b(() => f[7] || (f[7] = [
12954
- X("复制")
12962
+ Q("复制")
12955
12963
  ])),
12956
12964
  _: 1
12957
12965
  }, 8, ["icon"])
@@ -12964,7 +12972,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
12964
12972
  }),
12965
12973
  f[11] || (f[11] = T("div", { class: "pay-tip" }, [
12966
12974
  T("strong", null, "提示:"),
12967
- X(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方5百万tokens使用量。 ")
12975
+ Q(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方5百万tokens使用量。 ")
12968
12976
  ], -1))
12969
12977
  ]),
12970
12978
  _: 1
@@ -13001,18 +13009,18 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13001
13009
  collapseAll: L,
13002
13010
  isPending: P,
13003
13011
  toggleHideCode: U,
13004
- isHideCode: ve,
13012
+ isHideCode: pe,
13005
13013
  onFix: O,
13006
13014
  promptText: B,
13007
13015
  fillPromptInput: $,
13008
- settings: W,
13016
+ settings: J,
13009
13017
  inputDisabled: oe,
13010
- createOrder: ke,
13011
- cancelOrder: Se,
13018
+ createOrder: Se,
13019
+ cancelOrder: _e,
13012
13020
  getOrder: he,
13013
13021
  updateChatDsl: Xe,
13014
13022
  getImage: Je
13015
- } = nu(), He = E(!0), Qe = E(!1), ot = A(() => !t.current.value), Ct = A(() => ve.value ? {
13023
+ } = nu(), He = E(!0), Qe = E(!1), ot = A(() => !t.current.value), Ct = A(() => pe.value ? {
13016
13024
  icon: Pr,
13017
13025
  title: "显示代码块",
13018
13026
  type: "warning"
@@ -13059,13 +13067,13 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13059
13067
  body: { overflow: ft.value }
13060
13068
  }, To({
13061
13069
  actions: b(() => [
13062
- p(n(Ie), Be({
13070
+ p(n(Re), Be({
13063
13071
  mode: "icon",
13064
13072
  size: "small",
13065
13073
  disabled: n(s)
13066
13074
  }, Ct.value, { onClick: n(U) }), null, 16, ["disabled", "onClick"]),
13067
13075
  p(n(ut), { direction: "vertical" }),
13068
- p(n(Ie), {
13076
+ p(n(Re), {
13069
13077
  mode: "icon",
13070
13078
  size: "small",
13071
13079
  type: "primary",
@@ -13075,7 +13083,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13075
13083
  disabled: n(s),
13076
13084
  onClick: n(C)
13077
13085
  }, null, 8, ["icon", "disabled", "onClick"]),
13078
- p(n(Ie), {
13086
+ p(n(Re), {
13079
13087
  mode: "icon",
13080
13088
  size: "small",
13081
13089
  type: "primary",
@@ -13086,7 +13094,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13086
13094
  onClick: n(j)
13087
13095
  }, null, 8, ["icon", "disabled", "onClick"]),
13088
13096
  p(n(ut), { direction: "vertical" }),
13089
- p(n(Ie), {
13097
+ p(n(Re), {
13090
13098
  mode: "icon",
13091
13099
  size: "small",
13092
13100
  type: "primary",
@@ -13096,7 +13104,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13096
13104
  disabled: n(s),
13097
13105
  onClick: n(L)
13098
13106
  }, null, 8, ["icon", "disabled", "onClick"]),
13099
- p(n(Ie), {
13107
+ p(n(Re), {
13100
13108
  mode: "icon",
13101
13109
  size: "small",
13102
13110
  type: "primary",
@@ -13107,7 +13115,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13107
13115
  onClick: n(D)
13108
13116
  }, null, 8, ["icon", "disabled", "onClick"]),
13109
13117
  p(n(ut), { direction: "vertical" }),
13110
- p(n(Ie), {
13118
+ p(n(Re), {
13111
13119
  mode: "icon",
13112
13120
  size: "large",
13113
13121
  icon: n(Lr),
@@ -13144,14 +13152,14 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13144
13152
  p(So, {
13145
13153
  type: "ai",
13146
13154
  data: et,
13147
- code: !n(ve),
13155
+ code: !n(pe),
13148
13156
  onView: (Kt) => n(f)(et),
13149
13157
  onRefresh: (Kt) => n(h)(et),
13150
13158
  onApply: (Kt) => n(x)(et),
13151
13159
  onFix: (Kt) => n(O)(et)
13152
13160
  }, null, 8, ["data", "code", "onView", "onRefresh", "onApply", "onFix"])
13153
13161
  ], 64))), 128)),
13154
- n(l).length ? I("", !0) : (u(), y(n(je), { key: 0 }))
13162
+ n(l).length ? I("", !0) : (u(), y(n(Oe), { key: 0 }))
13155
13163
  ], 512)),
13156
13164
  n(_) ? (u(), y(Zm, {
13157
13165
  key: 4,
@@ -13168,7 +13176,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13168
13176
  name: "footer",
13169
13177
  fn: b(() => [
13170
13178
  T("div", hv, [
13171
- p(n(me), {
13179
+ p(n(ve), {
13172
13180
  class: "new-btn",
13173
13181
  round: "",
13174
13182
  plain: "",
@@ -13178,7 +13186,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13178
13186
  onClick: sn
13179
13187
  }, {
13180
13188
  default: b(() => Ze[2] || (Ze[2] = [
13181
- X(" 开启新对话 ")
13189
+ Q(" 开启新对话 ")
13182
13190
  ])),
13183
13191
  _: 1
13184
13192
  }, 8, ["icon"]),
@@ -13216,7 +13224,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13216
13224
  title: "AI助手"
13217
13225
  }, {
13218
13226
  actions: b(() => [
13219
- p(n(Ie), {
13227
+ p(n(Re), {
13220
13228
  mode: "icon",
13221
13229
  size: "large",
13222
13230
  icon: n(zr),
@@ -13239,17 +13247,17 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
13239
13247
  ]),
13240
13248
  _: 1
13241
13249
  }, 8, ["modelValue"]),
13242
- n(W) ? (u(), y(av, {
13250
+ n(J) ? (u(), y(av, {
13243
13251
  key: 0,
13244
- settings: n(W),
13252
+ settings: n(J),
13245
13253
  "get-image": n(Je)
13246
13254
  }, null, 8, ["settings", "get-image"])) : I("", !0),
13247
- n(W) ? (u(), y(fv, {
13255
+ n(J) ? (u(), y(fv, {
13248
13256
  key: 1,
13249
- settings: n(W),
13257
+ settings: n(J),
13250
13258
  "get-image": n(Je),
13251
- "create-order": n(ke),
13252
- "cancel-order": n(Se),
13259
+ "create-order": n(Se),
13260
+ "cancel-order": n(_e),
13253
13261
  "get-order": n(he)
13254
13262
  }, null, 8, ["settings", "get-image", "create-order", "cancel-order", "get-order"])) : I("", !0)
13255
13263
  ]),
@@ -14310,10 +14318,10 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
14310
14318
  onChange: l
14311
14319
  }, {
14312
14320
  prefix: b(() => [
14313
- X(te(Av))
14321
+ Q(te(Av))
14314
14322
  ]),
14315
14323
  suffix: b(() => [
14316
- X(te(Vv))
14324
+ Q(te(Vv))
14317
14325
  ]),
14318
14326
  _: 1
14319
14327
  }, 8, ["modelValue"]));
@@ -14382,7 +14390,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
14382
14390
  key: 0,
14383
14391
  src: o.svg
14384
14392
  }, null, 8, ["src"])) : (u(), R(q, { key: 1 }, [
14385
- X(te(o.label), 1)
14393
+ Q(te(o.label), 1)
14386
14394
  ], 64))
14387
14395
  ]),
14388
14396
  _: 2
@@ -14420,7 +14428,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
14420
14428
  src: l.svg,
14421
14429
  size: 16
14422
14430
  }, null, 8, ["src"])) : (u(), R(q, { key: 1 }, [
14423
- X(te(l.label), 1)
14431
+ Q(te(l.label), 1)
14424
14432
  ], 64))
14425
14433
  ], 10, Dv))), 256))
14426
14434
  ], 16));
@@ -14873,13 +14881,13 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
14873
14881
  class: "van-icon-setter__dialog"
14874
14882
  }, {
14875
14883
  extra: b(() => [
14876
- p(n(me), {
14884
+ p(n(ve), {
14877
14885
  size: "default",
14878
14886
  type: "warning",
14879
14887
  onClick: m
14880
14888
  }, {
14881
14889
  default: b(() => h[2] || (h[2] = [
14882
- X(" 清除绑定 ")
14890
+ Q(" 清除绑定 ")
14883
14891
  ])),
14884
14892
  _: 1
14885
14893
  })
@@ -14906,7 +14914,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
14906
14914
  "van-icon-setter__item"
14907
14915
  ])
14908
14916
  }, null, 10, Hv))), 256)),
14909
- c.value.length === 0 ? (u(), y(n(je), {
14917
+ c.value.length === 0 ? (u(), y(n(Oe), {
14910
14918
  key: 0,
14911
14919
  class: "empty-wrapper"
14912
14920
  })) : I("", !0)
@@ -15086,7 +15094,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ N({
15086
15094
  ];
15087
15095
  class Qv {
15088
15096
  constructor() {
15089
- Q(this, "widgets", {});
15097
+ X(this, "widgets", {});
15090
15098
  this.widgets = this.createWidgets();
15091
15099
  }
15092
15100
  createWidgets() {
@@ -15226,8 +15234,8 @@ class Yv {
15226
15234
  const Zv = new Yv();
15227
15235
  class eg {
15228
15236
  constructor() {
15229
- Q(this, "setters", {});
15230
- Q(this, "defaultSetter", Kv);
15237
+ X(this, "setters", {});
15238
+ X(this, "defaultSetter", Kv);
15231
15239
  this.setters = this.createSetters();
15232
15240
  }
15233
15241
  createSetters() {
@@ -15272,14 +15280,14 @@ class eg {
15272
15280
  const kn = new eg();
15273
15281
  class tg {
15274
15282
  constructor() {
15275
- Q(this, "window");
15276
- Q(this, "engine");
15277
- Q(this, "app");
15278
- Q(this, "isOpen", E(!1));
15279
- Q(this, "enabled");
15280
- Q(this, "proxyUpdateState");
15281
- Q(this, "isInited", !1);
15282
- Q(this, "proxyLoad");
15283
+ X(this, "window");
15284
+ X(this, "engine");
15285
+ X(this, "app");
15286
+ X(this, "isOpen", E(!1));
15287
+ X(this, "enabled");
15288
+ X(this, "proxyUpdateState");
15289
+ X(this, "isInited", !1);
15290
+ X(this, "proxyLoad");
15283
15291
  this.proxyUpdateState = this.updateState.bind(this), this.proxyLoad = Jo(this.load, 500);
15284
15292
  }
15285
15293
  createScript(t, e, s) {
@@ -15359,15 +15367,15 @@ function ng(r, t) {
15359
15367
  }
15360
15368
  class sg {
15361
15369
  constructor(t, e, s, o) {
15362
- Q(this, "proxied", {});
15363
- Q(this, "document", null);
15364
- Q(this, "hover", gt(null));
15365
- Q(this, "dropping", gt(null));
15366
- Q(this, "selected", E(null));
15367
- Q(this, "dragging", null);
15368
- Q(this, "draggingNode", null);
15369
- Q(this, "lines", gt([]));
15370
- Q(this, "outlineEnabled", E(!0));
15370
+ X(this, "proxied", {});
15371
+ X(this, "document", null);
15372
+ X(this, "hover", gt(null));
15373
+ X(this, "dropping", gt(null));
15374
+ X(this, "selected", E(null));
15375
+ X(this, "dragging", null);
15376
+ X(this, "draggingNode", null);
15377
+ X(this, "lines", gt([]));
15378
+ X(this, "outlineEnabled", E(!0));
15371
15379
  this.engine = t, this.contentWindow = e, this.dependencies = s, this.devtools = o, this.document = this.contentWindow.document, this.bindEvents(e, this.document);
15372
15380
  }
15373
15381
  bind(t, e) {
@@ -15388,10 +15396,10 @@ class sg {
15388
15396
  "click",
15389
15397
  this.bind(this.onSelected, "onSelected"),
15390
15398
  !0
15391
- ), $e.on(
15399
+ ), Ne.on(
15392
15400
  Ss,
15393
15401
  this.bind(this.onActiveChange, "onActiveChange")
15394
- ), $e.on(xn, this.bind(this.onViewChange, "onViewChange")), Z(
15402
+ ), Ne.on(xn, this.bind(this.onViewChange, "onViewChange")), Z(
15395
15403
  this.devtools.isOpen,
15396
15404
  (s) => {
15397
15405
  s && this.cleanHelper();
@@ -15417,10 +15425,10 @@ class sg {
15417
15425
  ), e.removeEventListener(
15418
15426
  "dragstart",
15419
15427
  this.bind(this.onDragStart, "onDragStart")
15420
- ), e.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), e.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), e.removeEventListener("click", this.bind(this.onSelected, "onSelected")), $e.off(
15428
+ ), e.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), e.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), e.removeEventListener("click", this.bind(this.onSelected, "onSelected")), Ne.off(
15421
15429
  Ss,
15422
15430
  this.bind(this.onActiveChange, "onActiveChange")
15423
- ), $e.off(
15431
+ ), Ne.off(
15424
15432
  xn,
15425
15433
  this.bind(this.onViewChange, "onViewChange")
15426
15434
  );
@@ -15479,7 +15487,7 @@ class sg {
15479
15487
  const m = this.createNodeDsl(s);
15480
15488
  v = new gs(m);
15481
15489
  }
15482
- if (Re(c))
15490
+ if (je(c))
15483
15491
  i ? (delete v.slot, a.move(v, void 0, "inner")) : a.addNode(v, void 0, d);
15484
15492
  else {
15485
15493
  const m = await this.getDropSlot(d === "inner" ? c : c.parent);
@@ -15542,7 +15550,7 @@ class sg {
15542
15550
  return this.setDslFrom(i), i;
15543
15551
  }
15544
15552
  getElmenetByModel(t) {
15545
- return !this.document || !t ? null : Re(t) ? this.document.body : Array.from(
15553
+ return !this.document || !t ? null : je(t) ? this.document.body : Array.from(
15546
15554
  this.document.querySelectorAll("*")
15547
15555
  ).find(
15548
15556
  (s) => s.__vtj__ === t.id
@@ -15620,7 +15628,7 @@ class sg {
15620
15628
  if (await it(), t) {
15621
15629
  const e = this.getElmenetByModel(t);
15622
15630
  if (!e) return;
15623
- const s = e.getBoundingClientRect(), o = Re(t) ? [] : this.findPathByNode(t);
15631
+ const s = e.getBoundingClientRect(), o = je(t) ? [] : this.findPathByNode(t);
15624
15632
  this.hover.value = {
15625
15633
  el: e,
15626
15634
  model: t,
@@ -15635,7 +15643,7 @@ class sg {
15635
15643
  if (await it(), t) {
15636
15644
  const e = this.getElmenetByModel(t) || this.document?.createElement("span");
15637
15645
  if (!e) return;
15638
- const s = e.getBoundingClientRect(), o = Re(t) ? [] : this.findPathByNode(t);
15646
+ const s = e.getBoundingClientRect(), o = je(t) ? [] : this.findPathByNode(t);
15639
15647
  this.selected.value = {
15640
15648
  el: e,
15641
15649
  model: t,
@@ -15650,7 +15658,7 @@ class sg {
15650
15658
  if (await it(), t) {
15651
15659
  const s = this.getElmenetByModel(t);
15652
15660
  if (!s) return;
15653
- const o = s.getBoundingClientRect(), i = Re(t) ? [] : this.findPathByNode(t);
15661
+ const o = s.getBoundingClientRect(), i = je(t) ? [] : this.findPathByNode(t);
15654
15662
  this.dropping.value = {
15655
15663
  el: s,
15656
15664
  model: t,
@@ -15664,7 +15672,7 @@ class sg {
15664
15672
  async allowDrop(t, e = "inner") {
15665
15673
  const { dragging: s, engine: o, draggingNode: i } = this, a = o.current.value;
15666
15674
  if (!s || !a) return !1;
15667
- if (Re(t)) return !0;
15675
+ if (je(t)) return !0;
15668
15676
  if (i && t.id === i.id || i && i.isChild(t))
15669
15677
  return !1;
15670
15678
  const l = o.assets.componentMap, c = e !== "inner" && t.parent || t, d = await o.assets.getBlockMaterial(c.from) || l.get(c.name);
@@ -15685,10 +15693,10 @@ const og = [
15685
15693
  ];
15686
15694
  class ag {
15687
15695
  constructor(t, e, s) {
15688
- Q(this, "api");
15689
- Q(this, "remote");
15690
- Q(this, "debounceSend");
15691
- Q(this, "timer", null);
15696
+ X(this, "api");
15697
+ X(this, "remote");
15698
+ X(this, "debounceSend");
15699
+ X(this, "timer", null);
15692
15700
  this.access = e, this.service = s, this.remote = t || "https://lcdp.vtj.pro", this.api = this.remote + yc, this.debounceSend = Jo(this.send.bind(this), 500), this.online(), this.bindGlobalError(), this.service && this.bindServerError(this.service);
15693
15701
  }
15694
15702
  isVtjUrl(t) {
@@ -15789,12 +15797,12 @@ class ag {
15789
15797
  }
15790
15798
  class lg {
15791
15799
  constructor(t, e, s, o, i = null, a = null) {
15792
- Q(this, "app", null);
15793
- Q(this, "dsl", null);
15794
- Q(this, "nodeChange");
15795
- Q(this, "blockChange");
15796
- Q(this, "context", null);
15797
- Q(this, "file");
15800
+ X(this, "app", null);
15801
+ X(this, "dsl", null);
15802
+ X(this, "nodeChange");
15803
+ X(this, "blockChange");
15804
+ X(this, "context", null);
15805
+ X(this, "file");
15798
15806
  this.env = t, this.service = e, this.provider = s, this.report = o, this.project = i, this.designer = a, this.nodeChange = this.__onNodeChange.bind(this), this.blockChange = this.__onBlockChange.bind(this);
15799
15807
  }
15800
15808
  install(t, e) {
@@ -15884,7 +15892,7 @@ class lg {
15884
15892
  file: t.toDsl()
15885
15893
  });
15886
15894
  }
15887
- this.context = d, $e.on(xn, this.nodeChange), $e.on(xs, this.blockChange);
15895
+ this.context = d, Ne.on(xn, this.nodeChange), Ne.on(xs, this.blockChange);
15888
15896
  }
15889
15897
  dispose() {
15890
15898
  if (this.app) {
@@ -15897,7 +15905,7 @@ class lg {
15897
15905
  }
15898
15906
  this.app = null;
15899
15907
  }
15900
- this.dsl = null, this.context = null, this.file = null, ei(), $e.off(xn, this.nodeChange), $e.off(xs, this.blockChange);
15908
+ this.dsl = null, this.context = null, this.file = null, ei(), Ne.off(xn, this.nodeChange), Ne.off(xs, this.blockChange);
15901
15909
  }
15902
15910
  updateChild(t, e) {
15903
15911
  const s = e.children || e.nodes || [];
@@ -15932,13 +15940,13 @@ class lg {
15932
15940
  class ig extends Go {
15933
15941
  constructor(e) {
15934
15942
  super();
15935
- Q(this, "contentWindow", null);
15936
- Q(this, "renderer", null);
15937
- Q(this, "designer", gt(null));
15938
- Q(this, "engine");
15939
- Q(this, "materialPath");
15940
- Q(this, "rendered", E(Symbol()));
15941
- Q(this, "devtools", new tg());
15943
+ X(this, "contentWindow", null);
15944
+ X(this, "renderer", null);
15945
+ X(this, "designer", gt(null));
15946
+ X(this, "engine");
15947
+ X(this, "materialPath");
15948
+ X(this, "rendered", E(Symbol()));
15949
+ X(this, "devtools", new tg());
15942
15950
  const { engine: s, materialPath: o } = e;
15943
15951
  this.engine = s, this.materialPath = o, window.Mock = da, Z(this.engine.current, () => {
15944
15952
  this.refresh();
@@ -16122,10 +16130,10 @@ class ig extends Go {
16122
16130
  }
16123
16131
  class rg {
16124
16132
  constructor(t, e) {
16125
- Q(this, "components", []);
16126
- Q(this, "componentMap", /* @__PURE__ */ new Map());
16127
- Q(this, "groups", E([]));
16128
- Q(this, "caches", {});
16133
+ X(this, "components", []);
16134
+ X(this, "componentMap", /* @__PURE__ */ new Map());
16135
+ X(this, "groups", E([]));
16136
+ X(this, "caches", {});
16129
16137
  this.service = t, this.provider = e;
16130
16138
  }
16131
16139
  getCateoryComponents(t, e) {
@@ -16214,29 +16222,29 @@ const Aa = Symbol("VtjEngine"), ws = "SAVE_BLOCK_FILE_FINISH";
16214
16222
  class Zg extends Go {
16215
16223
  constructor(e) {
16216
16224
  super();
16217
- Q(this, "app");
16218
- Q(this, "skeleton");
16219
- Q(this, "container");
16220
- Q(this, "service");
16221
- Q(this, "assets");
16222
- Q(this, "simulator");
16223
- Q(this, "emitter", $e);
16224
- Q(this, "project", E(null));
16225
- Q(this, "current", E(null));
16226
- Q(this, "context", E(null));
16227
- Q(this, "isEmptyCurrent", E(!1));
16228
- Q(this, "history", E(null));
16229
- Q(this, "provider");
16230
- Q(this, "adapter");
16225
+ X(this, "app");
16226
+ X(this, "skeleton");
16227
+ X(this, "container");
16228
+ X(this, "service");
16229
+ X(this, "assets");
16230
+ X(this, "simulator");
16231
+ X(this, "emitter", Ne);
16232
+ X(this, "project", E(null));
16233
+ X(this, "current", E(null));
16234
+ X(this, "context", E(null));
16235
+ X(this, "isEmptyCurrent", E(!1));
16236
+ X(this, "history", E(null));
16237
+ X(this, "provider");
16238
+ X(this, "adapter");
16231
16239
  /**
16232
16240
  * 当current变化时,更新该值,用于通知组件更新
16233
16241
  */
16234
- Q(this, "changed", E(Symbol()));
16235
- Q(this, "access");
16236
- Q(this, "remote", null);
16237
- Q(this, "report");
16238
- Q(this, "checkVersion", !0);
16239
- Q(this, "openApi");
16242
+ X(this, "changed", E(Symbol()));
16243
+ X(this, "access");
16244
+ X(this, "remote", null);
16245
+ X(this, "report");
16246
+ X(this, "checkVersion", !0);
16247
+ X(this, "openApi");
16240
16248
  this.options = e;
16241
16249
  const {
16242
16250
  container: s,
@@ -16288,7 +16296,7 @@ class Zg extends Go {
16288
16296
  Nt.warn("VTJEngine constructor param [ container ] is undefined");
16289
16297
  }
16290
16298
  bindEvents() {
16291
- $e.on(Ll, (e) => this.saveProject(e)), $e.on(zl, (e) => this.saveBlockFile(e)), $e.on(Ul, (e) => this.saveBlockFile(e)), $e.on(Fl, () => this.saveMaterials()), $e.on(Ss, (e) => this.activeFile(e)), $e.on(Wl, () => this.publish()), $e.on(Jl, () => this.publishCurrent()), $e.on(xs, (e) => this.changeFile(e)), $e.on(xn, () => this.changeCurrentFile()), $e.on(Hl, (e) => this.saveHistory(e)), $e.on(Gl, (e) => this.loadHistory(e)), $e.on(ql, () => this.genSource());
16299
+ Ne.on(Ll, (e) => this.saveProject(e)), Ne.on(zl, (e) => this.saveBlockFile(e)), Ne.on(Ul, (e) => this.saveBlockFile(e)), Ne.on(Fl, () => this.saveMaterials()), Ne.on(Ss, (e) => this.activeFile(e)), Ne.on(Wl, () => this.publish()), Ne.on(Jl, () => this.publishCurrent()), Ne.on(xs, (e) => this.changeFile(e)), Ne.on(xn, () => this.changeCurrentFile()), Ne.on(Hl, (e) => this.saveHistory(e)), Ne.on(Gl, (e) => this.loadHistory(e)), Ne.on(ql, () => this.genSource());
16292
16300
  }
16293
16301
  async activeFile(e) {
16294
16302
  await it();
@@ -16916,7 +16924,7 @@ const Lt = N({
16916
16924
  content: e.title
16917
16925
  }, {
16918
16926
  default: b(() => [
16919
- X(te(e.label || e.name), 1)
16927
+ Q(te(e.label || e.name), 1)
16920
16928
  ]),
16921
16929
  _: 1
16922
16930
  }, 8, ["content"])) : (u(), R("span", {
@@ -16945,10 +16953,10 @@ const Lt = N({
16945
16953
  "model-value": "JSExpression"
16946
16954
  }, {
16947
16955
  prefix: b(() => [
16948
- X(te(gg))
16956
+ Q(te(gg))
16949
16957
  ]),
16950
16958
  suffix: b(() => [
16951
- X(te(fg))
16959
+ Q(te(fg))
16952
16960
  ]),
16953
16961
  _: 1
16954
16962
  })) : I("", !0)
@@ -16980,7 +16988,7 @@ const Lt = N({
16980
16988
  "is-placeholder": V.name !== a.value.name
16981
16989
  })
16982
16990
  }, null, 8, ["class"]),
16983
- X(" " + te(V.label), 1)
16991
+ Q(" " + te(V.label), 1)
16984
16992
  ]),
16985
16993
  _: 2
16986
16994
  }, 1032, ["command"]))), 128))
@@ -17302,7 +17310,7 @@ const Lt = N({
17302
17310
  default: b(() => [
17303
17311
  p(n(ia)),
17304
17312
  T("span", null, [
17305
- X(te(n(i)?.model.name) + ": ", 1),
17313
+ Q(te(n(i)?.model.name) + ": ", 1),
17306
17314
  T("i", null, te(n(i)?.model.id), 1)
17307
17315
  ])
17308
17316
  ]),
@@ -17310,7 +17318,7 @@ const Lt = N({
17310
17318
  }),
17311
17319
  f.value ? (u(), y(n(ue), { key: 0 }, {
17312
17320
  default: b(() => [
17313
- p(n(Ie), {
17321
+ p(n(Re), {
17314
17322
  onClick: h,
17315
17323
  icon: n(la),
17316
17324
  mode: "text",
@@ -17355,11 +17363,11 @@ const Lt = N({
17355
17363
  ]),
17356
17364
  _: 1
17357
17365
  })) : I("", !0),
17358
- n(i) ? I("", !0) : (u(), y(n(je), {
17366
+ n(i) ? I("", !0) : (u(), y(n(Oe), {
17359
17367
  key: 2,
17360
17368
  description: "请在左侧画布选中节点"
17361
17369
  })),
17362
- n(i) && n(i).model.locked ? (u(), y(n(je), {
17370
+ n(i) && n(i).model.locked ? (u(), y(n(Oe), {
17363
17371
  key: 3,
17364
17372
  "image-size": 1,
17365
17373
  description: "节点已被锁定, 禁止编辑"