@vtj/designer 0.13.4 → 0.13.5

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,15 +1,15 @@
1
1
  var Sl = Object.defineProperty;
2
2
  var Cl = (r, t, e) => t in r ? Sl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var ee = (r, t, e) => Cl(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { computed as I, unref as n, ref as E, watch as X, reactive as jt, toValue as yt, shallowRef as wt, shallowReadonly as Al, onMounted as gn, nextTick as mt, getCurrentScope as El, onScopeDispose as xl, getCurrentInstance as Ks, toRaw as Gs, defineComponent as M, createElementBlock as D, openBlock as d, normalizeClass as ge, toDisplayString as ne, createVNode as c, withCtx as h, createElementVNode as R, createBlock as y, createCommentVNode as B, createTextVNode as Q, mergeProps as We, h as rn, Fragment as Y, renderList as oe, defineAsyncComponent as Il, normalizeStyle as mn, resolveDynamicComponent as no, createSlots as $s, renderSlot as It, withDirectives as _t, vShow as ln, normalizeProps as qs, guardReactiveProps as Ys, withModifiers as Ie, isRef as Tn, inject as Xs, provide as Vl, withKeys as Ke, onUnmounted as Zs, markRaw as zs, createApp as so, shallowReactive as Rl, triggerRef as nn, KeepAlive as ao } from "vue";
5
- import { ElNotification as ea, ElMessage as kt, ElMessageBox as Dt, ElButton as ue, ElDivider as et, ElInput as He, ElRadioGroup as oo, ElRadioButton as xn, ElButtonGroup as Tl, ElSwitch as Yn, ElImage as Mn, ElUpload as os, ElDropdown as lo, ElDropdownMenu as io, ElDropdownItem as Gn, ElEmpty as Pe, ElAlert as $t, ElTooltip as ro, ElTag as ta, ElTree as na, ElCollapse as ls, ElCollapseItem as is, ElRow as Xn, ElCol as Zn, ElDrawer as sa, ElForm as Ze, ElFormItem as pt, ElBreadcrumb as jl, ElBreadcrumbItem as Bl, ElLoading as Dl, ElBadge as Ol, ElAvatar as rs, vLoading as aa, ElSelect as uo, ElOptionGroup as Da, ElOption as Ls, ElCheckbox as oa, ElLink as co, ElSegmented as Ml, ElText as Nl, ElDialog as Pl, ElSteps as zl, ElStep as Vs, ElInputNumber as Ll, ElColorPicker as Ul, ElSlider as Fl, ElTour as Jl, ElTourStep as sn, ElConfigProvider as Wl, ElContainer as Oa, ElHeader as Hl, ElAside as Ma, ElMain as Ql, ElFooter as Kl } from "element-plus";
6
- import Gl from "element-plus/es/locale/lang/zh-cn";
7
- import { XDialogForm as Ot, XField as W, XIcon as ct, createDialog as po, XDialog as Wt, XPanel as us, XAction as Te, XTabs as cs, XContainer as be, XForm as la, XAttachment as $l, XActionBar as mo, XInputUnit as vo, vResizable as Na } from "@vtj/ui";
4
+ import { computed as I, unref as n, ref as E, watch as X, reactive as jt, toValue as yt, shallowRef as wt, shallowReadonly as Al, onMounted as fn, nextTick as mt, getCurrentScope as El, onScopeDispose as xl, getCurrentInstance as Ks, toRaw as $s, defineComponent as M, createElementBlock as D, openBlock as d, normalizeClass as ge, toDisplayString as ne, createVNode as c, withCtx as h, createElementVNode as R, createBlock as y, createCommentVNode as B, createTextVNode as Q, mergeProps as We, h as rn, Fragment as Y, renderList as oe, defineAsyncComponent as Il, normalizeStyle as mn, resolveDynamicComponent as no, createSlots as Gs, renderSlot as It, withDirectives as _t, vShow as ln, normalizeProps as qs, guardReactiveProps as Ys, withModifiers as Ie, isRef as Tn, inject as Xs, provide as Vl, withKeys as Ke, onUnmounted as Zs, markRaw as zs, createApp as so, shallowReactive as Rl, triggerRef as nn, KeepAlive as ao } from "vue";
5
+ import { ElNotification as ea, ElMessage as kt, ElMessageBox as Dt, ElButton as ue, ElDivider as et, ElInput as He, ElRadioGroup as oo, ElRadioButton as xn, ElButtonGroup as Tl, ElSwitch as Yn, ElImage as Mn, ElUpload as os, ElDropdown as lo, ElDropdownMenu as io, ElDropdownItem as $n, ElEmpty as Pe, ElAlert as Gt, ElTooltip as ro, ElTag as ta, ElTree as na, ElCollapse as ls, ElCollapseItem as is, ElRow as Xn, ElCol as Zn, ElDrawer as sa, ElForm as Ze, ElFormItem as pt, ElBreadcrumb as jl, ElBreadcrumbItem as Bl, ElLoading as Dl, ElBadge as Ol, ElAvatar as rs, vLoading as aa, ElSelect as uo, ElOptionGroup as Da, ElOption as Ls, ElCheckbox as oa, ElLink as co, ElSegmented as Ml, ElText as Nl, ElDialog as Pl, ElSteps as zl, ElStep as Vs, ElInputNumber as Ll, ElColorPicker as Ul, ElSlider as Fl, ElTour as Jl, ElTourStep as sn, ElConfigProvider as Wl, ElContainer as Oa, ElHeader as Hl, ElAside as Ma, ElMain as Ql, ElFooter as Kl } from "element-plus";
6
+ import $l from "element-plus/es/locale/lang/zh-cn";
7
+ import { XDialogForm as Ot, XField as W, XIcon as ct, createDialog as po, XDialog as Wt, XPanel as us, XAction as Te, XTabs as cs, XContainer as be, XForm as la, XAttachment as Gl, XActionBar as mo, XInputUnit as vo, vResizable as Na } from "@vtj/ui";
8
8
  import { BUILT_IN_NAME as es, isBlock as ze, DirectiveModel as go, createNodeFrom as ql, BUILT_IN_VUE as Pa, BUILT_IN_VUE_ROUTER as Yl, emitter as Je, EVENT_PROJECT_ACTIVED as Us, EVENT_NODE_CHANGE as jn, NodeModel as Rs, EVENT_BLOCK_CHANGE as Fs, Base as fo, BUILT_IN_LIBRARAY_MAP as Xl, ProjectModel as Zl, EVENT_PROJECT_CHANGE as ei, EVENT_PROJECT_BLOCKS_CHANGE as ti, EVENT_PROJECT_PAGES_CHANGE as ni, EVENT_PROJECT_DEPS_CHANGE as si, EVENT_PROJECT_PUBLISH as ai, EVENT_PROJECT_FILE_PUBLISH as oi, EVENT_HISTORY_CHANGE as li, EVENT_HISTORY_LOAD as ii, EVENT_PROJECT_GEN_SOURCE as ri, BlockModel as Ts, HistoryModel as ui } from "@vtj/core";
9
- import { parseExpression as Bn, parseFunction as ia, BUILT_IN_DIRECTIVES as ci, isJSFunction as ho, JSCodeToString as wn, LIFE_CYCLES_LIST as di, DATA_TYPES as pi, createMock as mi, isJSExpression as vn, REMOTE as bo, HTML_TAGS as vi, ContextMode as Js, clearLoaderCache as za, parseDeps as gi, parseUrls as fi, createAssetsCss as hi, createAssetScripts as La, getRawComponent as Ua, createSchemaApis as bi, mockCleanup as yi, mockApis as wi, Provider as _i, Access as ki, ACCESS as Si } from "@vtj/renderer";
9
+ import { parseExpression as Bn, parseFunction as ia, BUILT_IN_DIRECTIVES as ci, isJSFunction as ho, JSCodeToString as wn, LIFE_CYCLES_LIST as di, DATA_TYPES as pi, createMock as mi, isJSExpression as gn, REMOTE as bo, HTML_TAGS as vi, ContextMode as Js, clearLoaderCache as za, parseDeps as gi, parseUrls as fi, createAssetsCss as hi, createAssetScripts as La, getRawComponent as Ua, createSchemaApis as bi, mockCleanup as yi, mockApis as wi, Provider as _i, Access as ki, ACCESS as Si } from "@vtj/renderer";
10
10
  import { kebabCase as Ci, jsonp as on, groupBy as Dn, storage as _n, delay as Jt, dataURLtoBlob as Ai, fileToBase64 as yo, upperFirstCamelCase as wo, toRawType as js, cloneDeep as Nn, logger as qt, isPlainObject as Ei, throttle as xi, merge as ra, toArray as ua, debounce as _o, uuid as Ii, getClientInfo as Vi, base64 as Ri, arrayToMap as Ti, uid as ji, isBoolean as Bi } from "@vtj/utils";
11
11
  import * as Di from "@vtj/icons";
12
- import { VtjIconBack as Oi, VtjIconPc as Mi, VtjIconPhone as Ni, VtjIconPad as Pi, VtjIconEdit as ca, VtjIconUndo as zi, VtjIconRedo as Li, VtjIconTemplate as ts, Upload as Ui, Lock as Fi, VtjIconPreview as Ji, VtjIconRefresh as ko, VtjIconSetting as Wi, VtjIconAi as da, Download as ns, VtjIconPublish as Hi, VtjIconProject as Qi, icons as Ws, ArrowDown as ds, Search as fn, CopyDocument as So, Back as Ki, VtjIconPlus as Co, EditPen as Ao, Delete as pa, VtjIconSave as Gi, ArrowUp as Eo, MoreFilled as Sn, VtjIconCheck as ma, VtjIconComponents as xo, VtjIconShare as $i, VtjIconHome as qi, VtjIconVisible as Yi, VtjIconInvisible as Io, VtjIconUnlock as Xi, VtjIconLock as Vo, VtjIconRemove as ps, VtjIconCopy as va, Files as Zi, VtjIconSearch as er, VtjIconHelp as Ro, VtjIconLayers as To, Edit as tr, Rank as nr, VtjIconArrowUp as sr, VtjIconArrowDown as ar, IconDisplayBlock as or, IconDisplayFlex as lr, IconDisplayInlineBlock as ir, IconDisplayInline as rr, IconEyeInvisible as ur, IconFlexDirectionrow as cr, IconFlexDirectionrowReverse as dr, IconFlexDirectioncolumn as pr, IconFlexDirectioncolumnReverse as mr, IconFlexJustifyflexStartrow as vr, IconFlexJustifyflexEndrow as gr, IconFlexJustifycenterrow as fr, IconFlexJustifyspaceBetweenrow as hr, IconFlexJustifyspaceAroundrow as br, IconFlexAlignflexStartrow as yr, IconFlexAlignflexEndrow as wr, IconFlexAligncenterrow as _r, IconFlexAlignbaselinerow as kr, IconFlexAlignstretchrow as Sr, IconPositionTopLeft as Cr, IconPositionTopRight as Ar, IconPositionBottomLeft as Er, IconPositionBottomRight as xr, IconPositionLeft as Ir, IconPositionRight as Vr, IconPositionTop as Rr, IconPositionBottom as Tr, IconPositionAll as jr, IconTextAlignLeft as Br, IconTextAlignCenter as Dr, IconTextAlignRight as Or, IconTextAlignJustify as Mr, IconFontStyleNone as Nr, IconFontStyleItalic as Pr, IconCross as jo, IconTextDecorationUnderline as zr, IconTextDecorationStrike as Lr, IconTextDecorationOverline as Ur, IconTileXy as Fr, IconTileX as Jr, IconTileY as Wr, IconClose as Hr, IconBorderAll as Qr, IconBorderLeft as Kr, IconBorderTop as Gr, IconBorderBottom as $r, IconBorderRight as qr, IconBorderStyleSolid as Yr, IconBorderStyleDashed as Xr, IconBorderStyleDotted as Zr, IconCursorAuto as eu, IconCursorPointer as tu, IconCursorNotAllowed as nu, IconCursorNone as su, ArrowRight as au, UserFilled as ga, VtjIconInfo as ou, VtjIconNewChat as Bo, Plus as Do, Promotion as ss, ArrowDownBold as lu, ArrowUpBold as iu, Refresh as ru, View as Oo, VtjIconNpCancel as uu, UploadFilled as Mo, CloseBold as No, ShoppingCart as cu, Finished as du, Hide as pu, Top as mu, Bottom as vu, VtjIconChatRecord as gu, VtjIconClose as fu, VtjIconDocument as hu, VtjIconBlock as bu, VtjIconOutline as yu, VtjIconHistory as wu, VtjIconApi as _u, VtjIconCategory as ku, VtjIconUniapp as Su, VtjIconMaster as Cu, VtjIconGlobal as Au, HomeFilled as Eu, Close as xu, VtjIconVars as Iu, VtjIconSwitch as Vu, Switch as Ru } from "@vtj/icons";
12
+ import { VtjIconBack as Oi, VtjIconPc as Mi, VtjIconPhone as Ni, VtjIconPad as Pi, VtjIconEdit as ca, VtjIconUndo as zi, VtjIconRedo as Li, VtjIconTemplate as ts, Upload as Ui, Lock as Fi, VtjIconPreview as Ji, VtjIconRefresh as ko, VtjIconSetting as Wi, VtjIconAi as da, Download as ns, VtjIconPublish as Hi, VtjIconProject as Qi, icons as Ws, ArrowDown as ds, Search as hn, CopyDocument as So, Back as Ki, VtjIconPlus as Co, EditPen as Ao, Delete as pa, VtjIconSave as $i, ArrowUp as Eo, MoreFilled as Sn, VtjIconCheck as ma, VtjIconComponents as xo, VtjIconShare as Gi, VtjIconHome as qi, VtjIconVisible as Yi, VtjIconInvisible as Io, VtjIconUnlock as Xi, VtjIconLock as Vo, VtjIconRemove as ps, VtjIconCopy as va, Files as Zi, VtjIconSearch as er, VtjIconHelp as Ro, VtjIconLayers as To, Edit as tr, Rank as nr, VtjIconArrowUp as sr, VtjIconArrowDown as ar, IconDisplayBlock as or, IconDisplayFlex as lr, IconDisplayInlineBlock as ir, IconDisplayInline as rr, IconEyeInvisible as ur, IconFlexDirectionrow as cr, IconFlexDirectionrowReverse as dr, IconFlexDirectioncolumn as pr, IconFlexDirectioncolumnReverse as mr, IconFlexJustifyflexStartrow as vr, IconFlexJustifyflexEndrow as gr, IconFlexJustifycenterrow as fr, IconFlexJustifyspaceBetweenrow as hr, IconFlexJustifyspaceAroundrow as br, IconFlexAlignflexStartrow as yr, IconFlexAlignflexEndrow as wr, IconFlexAligncenterrow as _r, IconFlexAlignbaselinerow as kr, IconFlexAlignstretchrow as Sr, IconPositionTopLeft as Cr, IconPositionTopRight as Ar, IconPositionBottomLeft as Er, IconPositionBottomRight as xr, IconPositionLeft as Ir, IconPositionRight as Vr, IconPositionTop as Rr, IconPositionBottom as Tr, IconPositionAll as jr, IconTextAlignLeft as Br, IconTextAlignCenter as Dr, IconTextAlignRight as Or, IconTextAlignJustify as Mr, IconFontStyleNone as Nr, IconFontStyleItalic as Pr, IconCross as jo, IconTextDecorationUnderline as zr, IconTextDecorationStrike as Lr, IconTextDecorationOverline as Ur, IconTileXy as Fr, IconTileX as Jr, IconTileY as Wr, IconClose as Hr, IconBorderAll as Qr, IconBorderLeft as Kr, IconBorderTop as $r, IconBorderBottom as Gr, IconBorderRight as qr, IconBorderStyleSolid as Yr, IconBorderStyleDashed as Xr, IconBorderStyleDotted as Zr, IconCursorAuto as eu, IconCursorPointer as tu, IconCursorNotAllowed as nu, IconCursorNone as su, ArrowRight as au, UserFilled as ga, VtjIconInfo as ou, VtjIconNewChat as Bo, Plus as Do, Promotion as ss, ArrowDownBold as lu, ArrowUpBold as iu, Refresh as ru, View as Oo, VtjIconNpCancel as uu, UploadFilled as Mo, CloseBold as No, ShoppingCart as cu, Finished as du, Hide as pu, Top as mu, Bottom as vu, VtjIconChatRecord as gu, VtjIconClose as fu, VtjIconDocument as hu, VtjIconBlock as bu, VtjIconOutline as yu, VtjIconHistory as wu, VtjIconApi as _u, VtjIconCategory as ku, VtjIconUniapp as Su, VtjIconMaster as Cu, VtjIconGlobal as Au, HomeFilled as Eu, Close as xu, VtjIconVars as Iu, VtjIconSwitch as Vu, Switch as Ru } from "@vtj/icons";
13
13
  import Tu from "html2canvas";
14
14
  import Po from "mockjs";
15
15
  import { PAGE_LIFE_CYCLES_LIST as ju, COMPONENT_LIFE_CYCLES_LIST as Bu, APP_LIFE_CYCLE as Du, createUniAppComponent as Ou, setupUniApp as Mu } from "@vtj/uni";
@@ -19,10 +19,10 @@ import { editor as Nu } from "monaco-editor";
19
19
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
20
20
  * @name @vtj/designer
21
21
  * @author CHC chenhuachun1549@dingtalk.com
22
- * @version 0.13.4
22
+ * @version 0.13.5
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const On = "0.13.4", Pu = {
25
+ const On = "0.13.5", Pu = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, zu = {
@@ -91,7 +91,7 @@ const On = "0.13.4", Pu = {
91
91
  "p",
92
92
  "r",
93
93
  "o"
94
- ].join(""), Gu = [
94
+ ].join(""), $u = [
95
95
  "/",
96
96
  "a",
97
97
  "p",
@@ -108,7 +108,7 @@ const On = "0.13.4", Pu = {
108
108
  "o",
109
109
  "r",
110
110
  "t"
111
- ].join(""), Ja = "SESSION_ID__", Wa = "ENGINE_STATE__", $u = 16 * 1024, qu = "https://lcdp.vtj.pro/page/17ikytmh";
111
+ ].join(""), Ja = "SESSION_ID__", Wa = "ENGINE_STATE__", Gu = 16 * 1024, qu = "https://lcdp.vtj.pro/page/17ikytmh";
112
112
  var Tt = /* @__PURE__ */ ((r) => (r.Block = "block", r.Node = "node", r))(Tt || {}), Yu = /* @__PURE__ */ ((r) => (r.Brand = "Brand", r.Toolbar = "Toolbar", r.Actions = "Actions", r.Apps = "Apps", r.Workspace = "Workspace", r.Settings = "Settings", r.Status = "Status", r.Preview = "Preview", r))(Yu || {});
113
113
  function zo() {
114
114
  const r = Ne(), t = I(() => r.project.value?.dependencies ?? []), e = I(() => r.project.value?.apis ?? []), s = I(() => r.project.value?.meta ?? []);
@@ -120,7 +120,7 @@ function zo() {
120
120
  };
121
121
  }
122
122
  function un(r, t) {
123
- const e = I(() => yn.getWidgets(n(r), n(t)).filter((a) => !a.invisible)), s = E();
123
+ const e = I(() => vn.getWidgets(n(r), n(t)).filter((a) => !a.invisible)), s = E();
124
124
  return {
125
125
  widgets: e,
126
126
  widgetsRef: s
@@ -1048,7 +1048,7 @@ function ha(r) {
1048
1048
  }
1049
1049
  const ms = typeof window < "u" && typeof document < "u";
1050
1050
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1051
- const hc = (r) => typeof r < "u", bc = Object.prototype.toString, yc = (r) => bc.call(r) === "[object Object]", bn = () => {
1051
+ const hc = (r) => typeof r < "u", bc = Object.prototype.toString, yc = (r) => bc.call(r) === "[object Object]", yn = () => {
1052
1052
  }, wc = /* @__PURE__ */ _c();
1053
1053
  function _c() {
1054
1054
  var r, t;
@@ -1064,14 +1064,14 @@ function kc(r) {
1064
1064
  t = void 0, s && await s;
1065
1065
  }, e;
1066
1066
  }
1067
- function $n(r) {
1067
+ function Gn(r) {
1068
1068
  return Array.isArray(r) ? r : [r];
1069
1069
  }
1070
1070
  function Sc(r) {
1071
1071
  return Ks();
1072
1072
  }
1073
1073
  function Cc(r, t = !0, e) {
1074
- Sc() ? gn(r, e) : t ? r() : mt(r);
1074
+ Sc() ? fn(r, e) : t ? r() : mt(r);
1075
1075
  }
1076
1076
  function Ac(r, t, e = {}) {
1077
1077
  const {
@@ -1116,15 +1116,15 @@ function Vn(...r) {
1116
1116
  const t = [], e = () => {
1117
1117
  t.forEach((i) => i()), t.length = 0;
1118
1118
  }, s = (i, u, p, f) => (i.addEventListener(u, p, f), () => i.removeEventListener(u, p, f)), a = I(() => {
1119
- const i = $n(yt(r[0])).filter((u) => u != null);
1119
+ const i = Gn(yt(r[0])).filter((u) => u != null);
1120
1120
  return i.every((u) => typeof u != "string") ? i : void 0;
1121
1121
  }), o = Ec(
1122
1122
  () => {
1123
1123
  var i, u;
1124
1124
  return [
1125
1125
  (u = (i = a.value) == null ? void 0 : i.map((p) => Bt(p))) != null ? u : [vs].filter((p) => p != null),
1126
- $n(yt(a.value ? r[1] : r[0])),
1127
- $n(n(a.value ? r[2] : r[1])),
1126
+ Gn(yt(a.value ? r[1] : r[0])),
1127
+ Gn(n(a.value ? r[2] : r[1])),
1128
1128
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1129
1129
  yt(a.value ? r[3] : r[2])
1130
1130
  ];
@@ -1151,11 +1151,11 @@ let Ha = !1;
1151
1151
  function xc(r, t, e = {}) {
1152
1152
  const { window: s = vs, ignore: a = [], capture: o = !0, detectIframe: l = !1, controls: i = !1 } = e;
1153
1153
  if (!s)
1154
- return i ? { stop: bn, cancel: bn, trigger: bn } : bn;
1154
+ return i ? { stop: yn, cancel: yn, trigger: yn } : yn;
1155
1155
  if (wc && !Ha) {
1156
1156
  Ha = !0;
1157
1157
  const w = { passive: !0 };
1158
- Array.from(s.document.body.children).forEach((S) => S.addEventListener("click", bn, w)), s.document.documentElement.addEventListener("click", bn, w);
1158
+ Array.from(s.document.body.children).forEach((S) => S.addEventListener("click", yn, w)), s.document.documentElement.addEventListener("click", yn, w);
1159
1159
  }
1160
1160
  let u = !0;
1161
1161
  const p = (w) => yt(a).some((S) => {
@@ -1215,7 +1215,7 @@ function xc(r, t, e = {}) {
1215
1215
  }
1216
1216
  function Ic() {
1217
1217
  const r = wt(!1), t = Ks();
1218
- return t && gn(() => {
1218
+ return t && fn(() => {
1219
1219
  r.value = !0;
1220
1220
  }, t), r;
1221
1221
  }
@@ -1243,7 +1243,7 @@ function Qa(r, t = {}) {
1243
1243
  u();
1244
1244
  }
1245
1245
  if (e)
1246
- return Gs(o.value);
1246
+ return $s(o.value);
1247
1247
  }
1248
1248
  });
1249
1249
  return p(), e ? {
@@ -1345,7 +1345,7 @@ function kn(r, t = { width: 0, height: 0 }, e = {}) {
1345
1345
  l.value = g.width, i.value = g.height;
1346
1346
  }
1347
1347
  } else if (m) {
1348
- const b = $n(m);
1348
+ const b = Gn(m);
1349
1349
  l.value = b.reduce((g, { inlineSize: k }) => g + k, 0), i.value = b.reduce((g, { blockSize: k }) => g + k, 0);
1350
1350
  } else
1351
1351
  l.value = v.contentRect.width, i.value = v.contentRect.height;
@@ -1584,7 +1584,7 @@ function Dc() {
1584
1584
  }
1585
1585
  if (he?.usage) {
1586
1586
  const ht = he.usage.completion_tokens || 0;
1587
- if (ht >= $u)
1587
+ if (ht >= Gu)
1588
1588
  return L.status = "Failed", L.message = `生成tokens数量达到了MAX_TOKENS【${ht}】已被截断!`, L.dsl = null, null;
1589
1589
  L.tokens = (L.tokens || 0) + (he.usage.total_tokens || 0);
1590
1590
  }
@@ -1848,7 +1848,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1848
1848
  for (const [s, a] of t)
1849
1849
  e[s] = a;
1850
1850
  return e;
1851
- }, Kc = /* @__PURE__ */ St(Qc, [["__scopeId", "data-v-3f069bbf"]]), Gc = { class: "v-toolbar-widget" }, $c = /* @__PURE__ */ M({
1851
+ }, Kc = /* @__PURE__ */ St(Qc, [["__scopeId", "data-v-3f069bbf"]]), $c = { class: "v-toolbar-widget" }, Gc = /* @__PURE__ */ M({
1852
1852
  name: "ToolbarWidget",
1853
1853
  inheritAttrs: !1,
1854
1854
  __name: "index",
@@ -1874,7 +1874,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1874
1874
  ), t({
1875
1875
  mode: p,
1876
1876
  customSize: f
1877
- }), (v, m) => (d(), D("div", Gc, [
1877
+ }), (v, m) => (d(), D("div", $c, [
1878
1878
  c(n(oo), {
1879
1879
  size: "small",
1880
1880
  modelValue: p.value,
@@ -2329,7 +2329,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2329
2329
  dropdown: h(() => [
2330
2330
  c(n(io), null, {
2331
2331
  default: h(() => [
2332
- c(n(Gn), {
2332
+ c(n($n), {
2333
2333
  command: "current",
2334
2334
  icon: n(Hi)
2335
2335
  }, {
@@ -2339,7 +2339,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2339
2339
  _: 1,
2340
2340
  __: [3]
2341
2341
  }, 8, ["icon"]),
2342
- c(n(Gn), {
2342
+ c(n($n), {
2343
2343
  command: "project",
2344
2344
  icon: n(Qi)
2345
2345
  }, {
@@ -2349,7 +2349,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2349
2349
  _: 1,
2350
2350
  __: [4]
2351
2351
  }, 8, ["icon"]),
2352
- n(e).remote ? (d(), y(n(Gn), {
2352
+ n(e).remote ? (d(), y(n($n), {
2353
2353
  key: 0,
2354
2354
  command: "template",
2355
2355
  icon: n(ts),
@@ -2444,7 +2444,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2444
2444
  R("div", od, [
2445
2445
  c(n(He), {
2446
2446
  size: e.size,
2447
- "prefix-icon": n(fn),
2447
+ "prefix-icon": n(hn),
2448
2448
  clearable: "",
2449
2449
  modelValue: l.value,
2450
2450
  "onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
@@ -2465,7 +2465,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2465
2465
  ]));
2466
2466
  }
2467
2467
  }), Me = Il({
2468
- loader: () => import("./Editor-gUf1Ls8R.js"),
2468
+ loader: () => import("./Editor-CB0KftiD.js"),
2469
2469
  loadingComponent: M({
2470
2470
  render() {
2471
2471
  return rn("div", "正在拼命加载...");
@@ -2590,7 +2590,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2590
2590
  disabled: ""
2591
2591
  }, {
2592
2592
  editor: h(() => [
2593
- c(n($t), { closable: !1 }, {
2593
+ c(n(Gt), { closable: !1 }, {
2594
2594
  default: h(() => [
2595
2595
  Q(ne(`${n(s).options.pageBasePath || ""}/${u.value}/${g.value.id}`) + " ", 1),
2596
2596
  c(n(ct), {
@@ -2725,7 +2725,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2725
2725
  _: 1
2726
2726
  }, 8, ["title", "height", "model"]));
2727
2727
  }
2728
- }), Ga = /* @__PURE__ */ M({
2728
+ }), $a = /* @__PURE__ */ M({
2729
2729
  name: "VIcon",
2730
2730
  __name: "Icon",
2731
2731
  props: {
@@ -2836,7 +2836,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2836
2836
  border: !1,
2837
2837
  header: k.value,
2838
2838
  fit: ""
2839
- }, $s({
2839
+ }, Gs({
2840
2840
  actions: h(() => [
2841
2841
  s.refresh ? (d(), y(n(Te), {
2842
2842
  key: 0,
@@ -2881,7 +2881,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2881
2881
  key: 4,
2882
2882
  size: V.$attrs.size,
2883
2883
  mode: "icon",
2884
- icon: n(Gi),
2884
+ icon: n($i),
2885
2885
  background: "hover",
2886
2886
  title: "保存",
2887
2887
  onClick: b
@@ -2978,7 +2978,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2978
2978
  onTabRemove: l,
2979
2979
  onActionClick: i,
2980
2980
  stretch: e.stretch
2981
- }, $s({ _: 2 }, [
2981
+ }, Gs({ _: 2 }, [
2982
2982
  u.$slots.label ? {
2983
2983
  name: "label",
2984
2984
  fn: h((f) => [
@@ -3034,7 +3034,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3034
3034
  }, dd = { class: "v-item__title-wrapper" }, pd = { class: "v-item__content" }, md = {
3035
3035
  key: 3,
3036
3036
  class: "v-item__tags"
3037
- }, $e = /* @__PURE__ */ M({
3037
+ }, Ge = /* @__PURE__ */ M({
3038
3038
  name: "VItem",
3039
3039
  __name: "item",
3040
3040
  props: {
@@ -3098,7 +3098,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3098
3098
  },
3099
3099
  share: {
3100
3100
  label: "共享",
3101
- icon: $i
3101
+ icon: Gi
3102
3102
  },
3103
3103
  saveToBlock: {
3104
3104
  label: "存为区块",
@@ -3378,7 +3378,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3378
3378
  if (b.level === 0)
3379
3379
  g(p(e.context));
3380
3380
  else {
3381
- const k = Gs(b.data.value);
3381
+ const k = $s(b.data.value);
3382
3382
  g(p(k, b.data.path));
3383
3383
  }
3384
3384
  }, v = (b) => {
@@ -3393,7 +3393,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3393
3393
  "onUpdate:modelValue": g[0] || (g[0] = (k) => o.value = k),
3394
3394
  size: "small",
3395
3395
  clearable: "",
3396
- "prefix-icon": n(fn),
3396
+ "prefix-icon": n(hn),
3397
3397
  placeholder: "筛选可用项"
3398
3398
  }, null, 8, ["modelValue", "prefix-icon"]),
3399
3399
  R("div", yd, [
@@ -3415,7 +3415,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3415
3415
  "filter-node-method": i
3416
3416
  }, {
3417
3417
  default: h(({ data: k }) => [
3418
- c($e, {
3418
+ c(Ge, {
3419
3419
  title: k.label,
3420
3420
  subtitle: k.type,
3421
3421
  "subtitle-cls": k.type,
@@ -3538,7 +3538,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3538
3538
  "onUpdate:modelValue": A[0] || (A[0] = (T) => Tn(o) ? o.value = T : null),
3539
3539
  size: "small",
3540
3540
  clearable: "",
3541
- "prefix-icon": n(fn),
3541
+ "prefix-icon": n(hn),
3542
3542
  placeholder: "筛选可用项"
3543
3543
  }, null, 8, ["modelValue", "prefix-icon"]),
3544
3544
  (d(!0), D(Y, null, oe(n(a), (T) => (d(), D("div", null, [
@@ -3548,7 +3548,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3548
3548
  ]),
3549
3549
  _: 2
3550
3550
  }, 1024),
3551
- (d(!0), D(Y, null, oe(T.items, (U) => (d(), y($e, {
3551
+ (d(!0), D(Y, null, oe(T.items, (U) => (d(), y(Ge, {
3552
3552
  title: U,
3553
3553
  background: "",
3554
3554
  actions: ["copy"],
@@ -3570,7 +3570,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3570
3570
  _: 1,
3571
3571
  __: [2]
3572
3572
  }),
3573
- (d(!0), D(Y, null, oe(v.value, (T) => (d(), y($e, {
3573
+ (d(!0), D(Y, null, oe(v.value, (T) => (d(), y(Ge, {
3574
3574
  title: T.title,
3575
3575
  subtitle: g(T.id),
3576
3576
  background: "",
@@ -3706,7 +3706,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3706
3706
  onSubmit: i
3707
3707
  }, u.$attrs), {
3708
3708
  default: h(() => [
3709
- c(n($t), {
3709
+ c(n(Gt), {
3710
3710
  title: `${e.name} 组件支持多个插槽,请选择放置到其中一个`,
3711
3711
  type: "warning",
3712
3712
  closable: !1
@@ -3882,7 +3882,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3882
3882
  onNodeDrop: w
3883
3883
  }, {
3884
3884
  default: h(({ data: j, node: V }) => [
3885
- c(n($e), {
3885
+ c(n(Ge), {
3886
3886
  class: ge(["v-pages-widget__item", { "is-layout": j.layout }]),
3887
3887
  icon: n(Ws)[j.icon],
3888
3888
  title: j.title,
@@ -3994,7 +3994,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3994
3994
  })
3995
3995
  ]),
3996
3996
  default: h(() => [
3997
- c(n($l), We({
3997
+ c(n(Gl), We({
3998
3998
  size: "small",
3999
3999
  "list-type": "list",
4000
4000
  selectable: !0,
@@ -4112,7 +4112,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4112
4112
  size: "small",
4113
4113
  modelValue: a.value,
4114
4114
  "onUpdate:modelValue": ce[0] || (ce[0] = (N) => a.value = N),
4115
- "prefix-icon": n(fn),
4115
+ "prefix-icon": n(hn),
4116
4116
  placeholder: "搜索区块",
4117
4117
  clearable: ""
4118
4118
  }, null, 8, ["modelValue", "prefix-icon"])
@@ -4524,7 +4524,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4524
4524
  onNodeDragEnd: j
4525
4525
  }, {
4526
4526
  default: h(({ data: T, node: U }) => [
4527
- c(n($e), {
4527
+ c(n(Ge), {
4528
4528
  class: ge(["v-outline-widget__item", {
4529
4529
  "is-locked": T.model.locked,
4530
4530
  "is-invisible": T.model.invisible,
@@ -4573,7 +4573,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4573
4573
  key: 0,
4574
4574
  "image-size": 50
4575
4575
  })) : B("", !0),
4576
- n(t) ? (d(!0), D(Y, { key: 1 }, oe(n(t).items, (p, f) => (d(), y(n($e), {
4576
+ n(t) ? (d(!0), D(Y, { key: 1 }, oe(n(t).items, (p, f) => (d(), y(n(Ge), {
4577
4577
  index: f + 1,
4578
4578
  title: p.label,
4579
4579
  "model-value": p,
@@ -5043,7 +5043,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5043
5043
  size: "small",
5044
5044
  modelValue: a.value,
5045
5045
  "onUpdate:modelValue": _[0] || (_[0] = (j) => a.value = j),
5046
- "prefix-icon": n(fn),
5046
+ "prefix-icon": n(hn),
5047
5047
  placeholder: "搜索API",
5048
5048
  clearable: ""
5049
5049
  }, null, 8, ["modelValue", "prefix-icon"])
@@ -5058,7 +5058,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5058
5058
  title: `${V} (${j.length})`
5059
5059
  }, {
5060
5060
  default: h(() => [
5061
- (d(!0), D(Y, null, oe(j, (O) => (d(), y(n($e), {
5061
+ (d(!0), D(Y, null, oe(j, (O) => (d(), y(n(Ge), {
5062
5062
  key: O.id,
5063
5063
  small: "",
5064
5064
  title: O.name,
@@ -5123,7 +5123,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5123
5123
  onPlus: v
5124
5124
  }, {
5125
5125
  default: h(() => [
5126
- (d(!0), D(Y, null, oe(n(t), (w) => (d(), y(n($e), {
5126
+ (d(!0), D(Y, null, oe(n(t), (w) => (d(), y(n(Ge), {
5127
5127
  key: w.package,
5128
5128
  title: w.package,
5129
5129
  subtitle: w.version,
@@ -5453,7 +5453,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5453
5453
  onPlus: u
5454
5454
  }, {
5455
5455
  default: h(() => [
5456
- (d(!0), D(Y, null, oe(g.list, (w) => (d(), y(n($e), {
5456
+ (d(!0), D(Y, null, oe(g.list, (w) => (d(), y(n(Ge), {
5457
5457
  title: t.itemTitle(w),
5458
5458
  border: "",
5459
5459
  actions: ["edit", "remove"],
@@ -5543,7 +5543,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5543
5543
  submit: o
5544
5544
  }, null, 8, ["current", "context", "list"]));
5545
5545
  }
5546
- }), Gd = /* @__PURE__ */ M({
5546
+ }), $d = /* @__PURE__ */ M({
5547
5547
  __name: "computed",
5548
5548
  props: {
5549
5549
  context: {},
@@ -5575,7 +5575,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5575
5575
  submit: o
5576
5576
  }, null, 8, ["current", "context", "list"]));
5577
5577
  }
5578
- }), $d = /* @__PURE__ */ M({
5578
+ }), Gd = /* @__PURE__ */ M({
5579
5579
  __name: "methods",
5580
5580
  props: {
5581
5581
  context: {},
@@ -5785,11 +5785,11 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5785
5785
  current: n(t),
5786
5786
  context: n(e)
5787
5787
  }, null, 8, ["current", "context"]),
5788
- c(Gd, {
5788
+ c($d, {
5789
5789
  current: n(t),
5790
5790
  context: n(e)
5791
5791
  }, null, 8, ["current", "context"]),
5792
- c($d, {
5792
+ c(Gd, {
5793
5793
  current: n(t),
5794
5794
  context: n(e)
5795
5795
  }, null, 8, ["current", "context"]),
@@ -6094,7 +6094,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6094
6094
  "image-size": 50,
6095
6095
  description: "该组件无自带事件"
6096
6096
  })),
6097
- (d(!0), D(Y, null, oe(n(l), (w) => (d(), y(n($e), {
6097
+ (d(!0), D(Y, null, oe(n(l), (w) => (d(), y(n(Ge), {
6098
6098
  key: `component_${w.name}`,
6099
6099
  title: w.name,
6100
6100
  "model-value": w,
@@ -6115,7 +6115,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6115
6115
  fit: !1
6116
6116
  }, {
6117
6117
  default: h(() => [
6118
- (d(!0), D(Y, null, oe(n(a), (w) => (d(), y(n($e), {
6118
+ (d(!0), D(Y, null, oe(n(a), (w) => (d(), y(n(Ge), {
6119
6119
  key: `mouse_${w.name}`,
6120
6120
  title: w.name,
6121
6121
  "model-value": w,
@@ -6137,7 +6137,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6137
6137
  fit: !1
6138
6138
  }, {
6139
6139
  default: h(() => [
6140
- (d(!0), D(Y, null, oe(n(o), (w) => (d(), y(n($e), {
6140
+ (d(!0), D(Y, null, oe(n(o), (w) => (d(), y(n(Ge), {
6141
6141
  key: `keyboard_${w.name}`,
6142
6142
  title: w.name,
6143
6143
  "model-value": w,
@@ -6784,7 +6784,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6784
6784
  onPlus: k
6785
6785
  }, {
6786
6786
  default: h(() => [
6787
- (d(!0), D(Y, null, oe(s.value, (z) => (d(), y(n($e), {
6787
+ (d(!0), D(Y, null, oe(s.value, (z) => (d(), y(n(Ge), {
6788
6788
  "model-value": z,
6789
6789
  title: z.name,
6790
6790
  border: "",
@@ -6816,7 +6816,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6816
6816
  onPlus: _
6817
6817
  }, {
6818
6818
  default: h(() => [
6819
- (d(!0), D(Y, null, oe(a.value, (z) => (d(), y(n($e), {
6819
+ (d(!0), D(Y, null, oe(a.value, (z) => (d(), y(n(Ge), {
6820
6820
  "model-value": z,
6821
6821
  title: z.name,
6822
6822
  border: "",
@@ -6848,7 +6848,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6848
6848
  onPlus: O
6849
6849
  }, {
6850
6850
  default: h(() => [
6851
- (d(!0), D(Y, null, oe(o.value, (z) => (d(), y(n($e), {
6851
+ (d(!0), D(Y, null, oe(o.value, (z) => (d(), y(n(Ge), {
6852
6852
  "model-value": z,
6853
6853
  title: z.name,
6854
6854
  border: "",
@@ -6881,7 +6881,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6881
6881
  onPlus: T
6882
6882
  }, {
6883
6883
  default: h(() => [
6884
- (d(!0), D(Y, null, oe(l.value, (z) => (d(), y(n($e), {
6884
+ (d(!0), D(Y, null, oe(l.value, (z) => (d(), y(n(Ge), {
6885
6885
  "model-value": z,
6886
6886
  title: z.name,
6887
6887
  border: "",
@@ -6918,7 +6918,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6918
6918
  },
6919
6919
  setup(r) {
6920
6920
  const t = r, e = I(() => {
6921
- const V = !!yn.get("Meta"), O = [
6921
+ const V = !!vn.get("Meta"), O = [
6922
6922
  {
6923
6923
  label: "API",
6924
6924
  value: "api",
@@ -7206,7 +7206,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7206
7206
  onPlus: i
7207
7207
  }, {
7208
7208
  default: h(() => [
7209
- (d(!0), D(Y, null, oe(o.value, (m) => (d(), y(n($e), {
7209
+ (d(!0), D(Y, null, oe(o.value, (m) => (d(), y(n(Ge), {
7210
7210
  border: "",
7211
7211
  title: m.name,
7212
7212
  subtitle: m.label,
@@ -7471,7 +7471,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7471
7471
  const { selected: t } = Mt(), e = E(), s = I(() => {
7472
7472
  const u = t.value?.model || null;
7473
7473
  return ze(u) ? null : u;
7474
- }), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => vn(a.value) ? JSON.stringify({}) : JSON.stringify(Hs(a.value), null, 2)), l = (u) => {
7474
+ }), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => gn(a.value) ? JSON.stringify({}) : JSON.stringify(Hs(a.value), null, 2)), l = (u) => {
7475
7475
  try {
7476
7476
  const p = Hs(JSON.parse(u));
7477
7477
  s.value?.setProp("style", p);
@@ -8086,7 +8086,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8086
8086
  _: 1
8087
8087
  }));
8088
8088
  }
8089
- }), Hp = { class: "v-style-widget__positioning" }, Qp = { class: "spacing-wrap" }, Kp = ["width", "height"], Gp = ["d"], $p = ["d"], qp = ["d"], Yp = ["d"], Xp = { id: "margin-outer" }, Zp = ["width", "height"], em = ["width", "height"], tm = { id: "margin-inner" }, nm = ["width", "height"], sm = ["width", "height"], Et = 36, xt = 24, am = /* @__PURE__ */ M({
8089
+ }), Hp = { class: "v-style-widget__positioning" }, Qp = { class: "spacing-wrap" }, Kp = ["width", "height"], $p = ["d"], Gp = ["d"], qp = ["d"], Yp = ["d"], Xp = { id: "margin-outer" }, Zp = ["width", "height"], em = ["width", "height"], tm = { id: "margin-inner" }, nm = ["width", "height"], sm = ["width", "height"], Et = 36, xt = 24, am = /* @__PURE__ */ M({
8090
8090
  __name: "positioning",
8091
8091
  props: {
8092
8092
  styleJson: {},
@@ -8176,7 +8176,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8176
8176
  "aria-label": "Padding top button",
8177
8177
  class: "tb-path-color",
8178
8178
  onClick: g[0] || (g[0] = (k) => v("top"))
8179
- }, null, 8, Gp)
8179
+ }, null, 8, $p)
8180
8180
  ])
8181
8181
  ]),
8182
8182
  R("g", null, [
@@ -8194,7 +8194,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8194
8194
  "aria-label": "Padding right button",
8195
8195
  class: "lr-path-color",
8196
8196
  onClick: g[1] || (g[1] = (k) => v("right"))
8197
- }, null, 8, $p)
8197
+ }, null, 8, Gp)
8198
8198
  ])
8199
8199
  ]),
8200
8200
  R("g", null, [
@@ -8595,8 +8595,8 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8595
8595
  }, s = E("border"), a = [
8596
8596
  { label: "全边框", svg: Qr, value: "border" },
8597
8597
  { label: "左边框", svg: Kr, value: "border-left" },
8598
- { label: "上边框", svg: Gr, value: "border-top" },
8599
- { label: "下边框", svg: $r, value: "border-bottom" },
8598
+ { label: "上边框", svg: $r, value: "border-top" },
8599
+ { label: "下边框", svg: Gr, value: "border-bottom" },
8600
8600
  { label: "右边框", svg: qr, value: "border-right" }
8601
8601
  ], o = [
8602
8602
  { label: "无", value: "none", svg: jo },
@@ -8793,7 +8793,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8793
8793
  const t = r, { selected: e } = Mt(), s = I(() => {
8794
8794
  const u = e.value?.model || null;
8795
8795
  return ze(u) ? null : u;
8796
- }), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => Hs(a.value)), l = I(() => vn(a.value)), i = (u, p) => {
8796
+ }), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => Hs(a.value)), l = I(() => gn(a.value)), i = (u, p) => {
8797
8797
  const f = s.value?.getPropValue("style") || {};
8798
8798
  p !== void 0 && p !== "" ? f[u] = p : delete f[u], s.value?.setProp("style", f);
8799
8799
  };
@@ -8855,7 +8855,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8855
8855
  _: 1
8856
8856
  })),
8857
8857
  l.value ? (d(), D("div", um, [
8858
- c(n($t), {
8858
+ c(n(Gt), {
8859
8859
  type: "warning",
8860
8860
  title: "样式已绑定了变量,需解除绑定才能编辑",
8861
8861
  "show-icon": "",
@@ -9046,7 +9046,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9046
9046
  }, u = () => {
9047
9047
  s.value = "//vtj.pro/help/index.html", i();
9048
9048
  };
9049
- gn(() => {
9049
+ fn(() => {
9050
9050
  o || (o = Dl.service({ target: a.value?.$el }));
9051
9051
  }), Zs(() => {
9052
9052
  p(), o = null;
@@ -9629,7 +9629,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9629
9629
  size: "small",
9630
9630
  modelValue: v.value,
9631
9631
  "onUpdate:modelValue": A[0] || (A[0] = (T) => v.value = T),
9632
- "prefix-icon": n(fn),
9632
+ "prefix-icon": n(hn),
9633
9633
  placeholder: "搜索模板",
9634
9634
  clearable: ""
9635
9635
  }, null, 8, ["modelValue", "prefix-icon"])
@@ -9804,7 +9804,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9804
9804
  __: [1]
9805
9805
  }),
9806
9806
  e.topics.length ? (d(), D("div", Jm, [
9807
- (d(!0), D(Y, null, oe(e.topics, (p, f) => (d(), y(n($e), {
9807
+ (d(!0), D(Y, null, oe(e.topics, (p, f) => (d(), y(n(Ge), {
9808
9808
  index: f + 1,
9809
9809
  title: p.title,
9810
9810
  "model-value": p,
@@ -9838,7 +9838,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9838
9838
  "submit-method": l
9839
9839
  }, {
9840
9840
  default: h(() => [
9841
- c(n($t), {
9841
+ c(n(Gt), {
9842
9842
  closable: !1,
9843
9843
  type: "warning",
9844
9844
  class: "alert"
@@ -9877,7 +9877,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9877
9877
  _: 1
9878
9878
  }, 8, ["title", "model"]));
9879
9879
  }
9880
- }), Qm = /* @__PURE__ */ St(Hm, [["__scopeId", "data-v-8fd3ad4c"]]), Km = { class: "v-ai-widget-input" }, Gm = { class: "v-ai-widget-input__footer" }, $m = { class: "v-ai-widget-input__llm-item" }, qm = { class: "label" }, Ym = { class: "actions" }, Go = /* @__PURE__ */ M({
9880
+ }), Qm = /* @__PURE__ */ St(Hm, [["__scopeId", "data-v-8fd3ad4c"]]), Km = { class: "v-ai-widget-input" }, $m = { class: "v-ai-widget-input__footer" }, Gm = { class: "v-ai-widget-input__llm-item" }, qm = { class: "label" }, Ym = { class: "actions" }, $o = /* @__PURE__ */ M({
9881
9881
  __name: "chat-input",
9882
9882
  props: {
9883
9883
  minRows: { default: 2 },
@@ -9948,7 +9948,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9948
9948
  placeholder: "请描述您的需求",
9949
9949
  onChange: f
9950
9950
  }, null, 8, ["modelValue", "autosize"]),
9951
- R("div", Gm, [
9951
+ R("div", $m, [
9952
9952
  s.models.length ? (d(), y(n(uo), {
9953
9953
  key: 0,
9954
9954
  size: "small",
@@ -9987,7 +9987,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9987
9987
  value: _.id || _.model
9988
9988
  }, {
9989
9989
  default: h(() => [
9990
- R("div", $m, [
9990
+ R("div", Gm, [
9991
9991
  R("span", qm, ne(_.label), 1),
9992
9992
  R("span", Ym, [
9993
9993
  c(n(ct), {
@@ -10062,18 +10062,18 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10062
10062
  function ev(r) {
10063
10063
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
10064
10064
  }
10065
- var Ns, $a;
10065
+ var Ns, Ga;
10066
10066
  function tv() {
10067
- if ($a) return Ns;
10068
- $a = 1;
10067
+ if (Ga) return Ns;
10068
+ Ga = 1;
10069
10069
  function r(C) {
10070
10070
  return C instanceof Map ? C.clear = C.delete = C.set = function() {
10071
10071
  throw new Error("map is read-only");
10072
10072
  } : C instanceof Set && (C.add = C.clear = C.delete = function() {
10073
10073
  throw new Error("set is read-only");
10074
10074
  }), Object.freeze(C), Object.getOwnPropertyNames(C).forEach((P) => {
10075
- const G = C[P], me = typeof G;
10076
- (me === "object" || me === "function") && !Object.isFrozen(G) && r(G);
10075
+ const $ = C[P], me = typeof $;
10076
+ (me === "object" || me === "function") && !Object.isFrozen($) && r($);
10077
10077
  }), C;
10078
10078
  }
10079
10079
  class t {
@@ -10091,23 +10091,23 @@ function tv() {
10091
10091
  return C.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
10092
10092
  }
10093
10093
  function s(C, ...P) {
10094
- const G = /* @__PURE__ */ Object.create(null);
10094
+ const $ = /* @__PURE__ */ Object.create(null);
10095
10095
  for (const me in C)
10096
- G[me] = C[me];
10096
+ $[me] = C[me];
10097
10097
  return P.forEach(function(me) {
10098
10098
  for (const Ue in me)
10099
- G[Ue] = me[Ue];
10099
+ $[Ue] = me[Ue];
10100
10100
  }), /** @type {T} */
10101
- G;
10101
+ $;
10102
10102
  }
10103
10103
  const a = "</span>", o = (C) => !!C.scope, l = (C, { prefix: P }) => {
10104
10104
  if (C.startsWith("language:"))
10105
10105
  return C.replace("language:", "language-");
10106
10106
  if (C.includes(".")) {
10107
- const G = C.split(".");
10107
+ const $ = C.split(".");
10108
10108
  return [
10109
- `${P}${G.shift()}`,
10110
- ...G.map((me, Ue) => `${me}${"_".repeat(Ue + 1)}`)
10109
+ `${P}${$.shift()}`,
10110
+ ...$.map((me, Ue) => `${me}${"_".repeat(Ue + 1)}`)
10111
10111
  ].join(" ");
10112
10112
  }
10113
10113
  return `${P}${C}`;
@@ -10119,8 +10119,8 @@ function tv() {
10119
10119
  * @param {Tree} parseTree - the parse tree (must support `walk` API)
10120
10120
  * @param {{classPrefix: string}} options
10121
10121
  */
10122
- constructor(P, G) {
10123
- this.buffer = "", this.classPrefix = G.classPrefix, P.walk(this);
10122
+ constructor(P, $) {
10123
+ this.buffer = "", this.classPrefix = $.classPrefix, P.walk(this);
10124
10124
  }
10125
10125
  /**
10126
10126
  * Adds texts to the output stream
@@ -10135,11 +10135,11 @@ function tv() {
10135
10135
  * @param {Node} node */
10136
10136
  openNode(P) {
10137
10137
  if (!o(P)) return;
10138
- const G = l(
10138
+ const $ = l(
10139
10139
  P.scope,
10140
10140
  { prefix: this.classPrefix }
10141
10141
  );
10142
- this.span(G);
10142
+ this.span($);
10143
10143
  }
10144
10144
  /**
10145
10145
  * Adds a node close to the output stream (if needed)
@@ -10183,8 +10183,8 @@ function tv() {
10183
10183
  }
10184
10184
  /** @param {string} scope */
10185
10185
  openNode(P) {
10186
- const G = u({ scope: P });
10187
- this.add(G), this.stack.push(G);
10186
+ const $ = u({ scope: P });
10187
+ this.add($), this.stack.push($);
10188
10188
  }
10189
10189
  closeNode() {
10190
10190
  if (this.stack.length > 1)
@@ -10207,15 +10207,15 @@ function tv() {
10207
10207
  * @param {Renderer} builder
10208
10208
  * @param {Node} node
10209
10209
  */
10210
- static _walk(P, G) {
10211
- return typeof G == "string" ? P.addText(G) : G.children && (P.openNode(G), G.children.forEach((me) => this._walk(P, me)), P.closeNode(G)), P;
10210
+ static _walk(P, $) {
10211
+ return typeof $ == "string" ? P.addText($) : $.children && (P.openNode($), $.children.forEach((me) => this._walk(P, me)), P.closeNode($)), P;
10212
10212
  }
10213
10213
  /**
10214
10214
  * @param {Node} node
10215
10215
  */
10216
10216
  static _collapse(P) {
10217
- typeof P != "string" && P.children && (P.children.every((G) => typeof G == "string") ? P.children = [P.children.join("")] : P.children.forEach((G) => {
10218
- p._collapse(G);
10217
+ typeof P != "string" && P.children && (P.children.every(($) => typeof $ == "string") ? P.children = [P.children.join("")] : P.children.forEach(($) => {
10218
+ p._collapse($);
10219
10219
  }));
10220
10220
  }
10221
10221
  }
@@ -10243,9 +10243,9 @@ function tv() {
10243
10243
  * @param {Emitter & {root: DataNode}} emitter
10244
10244
  * @param {string} name
10245
10245
  */
10246
- __addSublanguage(P, G) {
10246
+ __addSublanguage(P, $) {
10247
10247
  const me = P.root;
10248
- G && (me.scope = `language:${G}`), this.add(me);
10248
+ $ && (me.scope = `language:${$}`), this.add(me);
10249
10249
  }
10250
10250
  toHTML() {
10251
10251
  return new i(this, this.options).value();
@@ -10267,7 +10267,7 @@ function tv() {
10267
10267
  return k("(?:", C, ")?");
10268
10268
  }
10269
10269
  function k(...C) {
10270
- return C.map((G) => v(G)).join("");
10270
+ return C.map(($) => v($)).join("");
10271
10271
  }
10272
10272
  function w(C) {
10273
10273
  const P = C[C.length - 1];
@@ -10280,15 +10280,15 @@ function tv() {
10280
10280
  return new RegExp(C.toString() + "|").exec("").length - 1;
10281
10281
  }
10282
10282
  function j(C, P) {
10283
- const G = C && C.exec(P);
10284
- return G && G.index === 0;
10283
+ const $ = C && C.exec(P);
10284
+ return $ && $.index === 0;
10285
10285
  }
10286
10286
  const V = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
10287
10287
  function O(C, { joinWith: P }) {
10288
- let G = 0;
10288
+ let $ = 0;
10289
10289
  return C.map((me) => {
10290
- G += 1;
10291
- const Ue = G;
10290
+ $ += 1;
10291
+ const Ue = $;
10292
10292
  let Fe = v(me), ae = "";
10293
10293
  for (; Fe.length > 0; ) {
10294
10294
  const Z = V.exec(Fe);
@@ -10296,7 +10296,7 @@ function tv() {
10296
10296
  ae += Fe;
10297
10297
  break;
10298
10298
  }
10299
- ae += Fe.substring(0, Z.index), Fe = Fe.substring(Z.index + Z[0].length), Z[0][0] === "\\" && Z[1] ? ae += "\\" + String(Number(Z[1]) + Ue) : (ae += Z[0], Z[0] === "(" && G++);
10299
+ ae += Fe.substring(0, Z.index), Fe = Fe.substring(Z.index + Z[0].length), Z[0][0] === "\\" && Z[1] ? ae += "\\" + String(Number(Z[1]) + Ue) : (ae += Z[0], Z[0] === "(" && $++);
10300
10300
  }
10301
10301
  return ae;
10302
10302
  }).map((me) => `(${me})`).join(P);
@@ -10314,8 +10314,8 @@ function tv() {
10314
10314
  end: /$/,
10315
10315
  relevance: 0,
10316
10316
  /** @type {ModeCallback} */
10317
- "on:begin": (G, me) => {
10318
- G.index !== 0 && me.ignoreMatch();
10317
+ "on:begin": ($, me) => {
10318
+ $.index !== 0 && me.ignoreMatch();
10319
10319
  }
10320
10320
  }, C);
10321
10321
  }, ce = {
@@ -10335,7 +10335,7 @@ function tv() {
10335
10335
  contains: [ce]
10336
10336
  }, K = {
10337
10337
  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/
10338
- }, q = function(C, P, G = {}) {
10338
+ }, q = function(C, P, $ = {}) {
10339
10339
  const me = s(
10340
10340
  {
10341
10341
  scope: "comment",
@@ -10343,7 +10343,7 @@ function tv() {
10343
10343
  end: P,
10344
10344
  contains: []
10345
10345
  },
10346
- G
10346
+ $
10347
10347
  );
10348
10348
  me.contains.push({
10349
10349
  scope: "doctag",
@@ -10455,12 +10455,12 @@ function tv() {
10455
10455
  C,
10456
10456
  {
10457
10457
  /** @type {ModeCallback} */
10458
- "on:begin": (P, G) => {
10459
- G.data._beginMatch = P[1];
10458
+ "on:begin": (P, $) => {
10459
+ $.data._beginMatch = P[1];
10460
10460
  },
10461
10461
  /** @type {ModeCallback} */
10462
- "on:end": (P, G) => {
10463
- G.data._beginMatch !== P[1] && G.ignoreMatch();
10462
+ "on:end": (P, $) => {
10463
+ $.data._beginMatch !== P[1] && $.ignoreMatch();
10464
10464
  }
10465
10465
  }
10466
10466
  );
@@ -10504,15 +10504,15 @@ function tv() {
10504
10504
  const hs = (C, P) => {
10505
10505
  if (!C.beforeMatch) return;
10506
10506
  if (C.starts) throw new Error("beforeMatch cannot be used with starts");
10507
- const G = Object.assign({}, C);
10507
+ const $ = Object.assign({}, C);
10508
10508
  Object.keys(C).forEach((me) => {
10509
10509
  delete C[me];
10510
- }), C.keywords = G.keywords, C.begin = k(G.beforeMatch, m(G.begin)), C.starts = {
10510
+ }), C.keywords = $.keywords, C.begin = k($.beforeMatch, m($.begin)), C.starts = {
10511
10511
  relevance: 0,
10512
10512
  contains: [
10513
- Object.assign(G, { endsParent: !0 })
10513
+ Object.assign($, { endsParent: !0 })
10514
10514
  ]
10515
- }, C.relevance = 0, delete G.beforeMatch;
10515
+ }, C.relevance = 0, delete $.beforeMatch;
10516
10516
  }, bs = [
10517
10517
  "of",
10518
10518
  "and",
@@ -10529,9 +10529,9 @@ function tv() {
10529
10529
  "value"
10530
10530
  // common variable name
10531
10531
  ], ys = "keyword";
10532
- function Kt(C, P, G = ys) {
10532
+ function Kt(C, P, $ = ys) {
10533
10533
  const me = /* @__PURE__ */ Object.create(null);
10534
- return typeof C == "string" ? Ue(G, C.split(" ")) : Array.isArray(C) ? Ue(G, C) : Object.keys(C).forEach(function(Fe) {
10534
+ return typeof C == "string" ? Ue($, C.split(" ")) : Array.isArray(C) ? Ue($, C) : Object.keys(C).forEach(function(Fe) {
10535
10535
  Object.assign(
10536
10536
  me,
10537
10537
  Kt(C[Fe], P, Fe)
@@ -10557,12 +10557,12 @@ function tv() {
10557
10557
  }, L = (C, P) => {
10558
10558
  zn[`${C}/${P}`] || (console.log(`Deprecated as of ${C}. ${P}`), zn[`${C}/${P}`] = !0);
10559
10559
  }, ie = new Error();
10560
- function we(C, P, { key: G }) {
10560
+ function we(C, P, { key: $ }) {
10561
10561
  let me = 0;
10562
- const Ue = C[G], Fe = {}, ae = {};
10562
+ const Ue = C[$], Fe = {}, ae = {};
10563
10563
  for (let Z = 1; Z <= P.length; Z++)
10564
10564
  ae[Z + me] = Ue[Z], Fe[Z + me] = !0, me += _(P[Z - 1]);
10565
- C[G] = ae, C[G]._emit = Fe, C[G]._multi = !0;
10565
+ C[$] = ae, C[$]._emit = Fe, C[$]._multi = !0;
10566
10566
  }
10567
10567
  function Ae(C) {
10568
10568
  if (Array.isArray(C.begin)) {
@@ -10595,7 +10595,7 @@ function tv() {
10595
10595
  "m" + (C.case_insensitive ? "i" : "") + (C.unicodeRegex ? "u" : "") + (Z ? "g" : "")
10596
10596
  );
10597
10597
  }
10598
- class G {
10598
+ class $ {
10599
10599
  constructor() {
10600
10600
  this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
10601
10601
  }
@@ -10625,7 +10625,7 @@ function tv() {
10625
10625
  // @ts-ignore
10626
10626
  getMatcher(Z) {
10627
10627
  if (this.multiRegexes[Z]) return this.multiRegexes[Z];
10628
- const de = new G();
10628
+ const de = new $();
10629
10629
  return this.rules.slice(Z).forEach(([Xe, Qe]) => de.addRule(Xe, Qe)), de.compile(), this.multiRegexes[Z] = de, de;
10630
10630
  }
10631
10631
  resumingScanAtSamePosition() {
@@ -10706,12 +10706,12 @@ function tv() {
10706
10706
  }
10707
10707
  var nl = "11.11.1";
10708
10708
  class sl extends Error {
10709
- constructor(P, G) {
10710
- super(P), this.name = "HTMLInjectionError", this.html = G;
10709
+ constructor(P, $) {
10710
+ super(P), this.name = "HTMLInjectionError", this.html = $;
10711
10711
  }
10712
10712
  }
10713
10713
  const ks = e, Sa = s, Ca = Symbol("nomatch"), al = 7, Aa = function(C) {
10714
- const P = /* @__PURE__ */ Object.create(null), G = /* @__PURE__ */ Object.create(null), me = [];
10714
+ const P = /* @__PURE__ */ Object.create(null), $ = /* @__PURE__ */ Object.create(null), me = [];
10715
10715
  let Ue = !0;
10716
10716
  const Fe = "Could not find the language '{}', did you forget to load/include a language module?", ae = { disableAutodetect: !0, name: "Plain text", contains: [] };
10717
10717
  let Z = {
@@ -10740,129 +10740,129 @@ function tv() {
10740
10740
  return re.split(/\s+/).find((Ve) => de(Ve) || en(Ve));
10741
10741
  }
10742
10742
  function Qe(J, re, Se) {
10743
- let Ve = "", Ge = "";
10744
- typeof re == "object" ? (Ve = J, Se = re.ignoreIllegals, Ge = re.language) : (L("10.7.0", "highlight(lang, code, ...args) has been deprecated."), L("10.7.0", `Please use highlight(code, options) instead.
10745
- https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se === void 0 && (Se = !0);
10743
+ let Ve = "", $e = "";
10744
+ typeof re == "object" ? (Ve = J, Se = re.ignoreIllegals, $e = re.language) : (L("10.7.0", "highlight(lang, code, ...args) has been deprecated."), L("10.7.0", `Please use highlight(code, options) instead.
10745
+ https://github.com/highlightjs/highlight.js/issues/2277`), $e = J, Ve = re), Se === void 0 && (Se = !0);
10746
10746
  const Rt = {
10747
10747
  code: Ve,
10748
- language: Ge
10748
+ language: $e
10749
10749
  };
10750
10750
  Fn("before:highlight", Rt);
10751
10751
  const tn = Rt.result ? Rt.result : An(Rt.language, Rt.code, Se);
10752
10752
  return tn.code = Rt.code, Fn("after:highlight", tn), tn;
10753
10753
  }
10754
10754
  function An(J, re, Se, Ve) {
10755
- const Ge = /* @__PURE__ */ Object.create(null);
10756
- function Rt($, le) {
10757
- return $.keywords[le];
10755
+ const $e = /* @__PURE__ */ Object.create(null);
10756
+ function Rt(G, le) {
10757
+ return G.keywords[le];
10758
10758
  }
10759
10759
  function tn() {
10760
10760
  if (!ve.keywords) {
10761
10761
  nt.addText(Re);
10762
10762
  return;
10763
10763
  }
10764
- let $ = 0;
10764
+ let G = 0;
10765
10765
  ve.keywordPatternRe.lastIndex = 0;
10766
10766
  let le = ve.keywordPatternRe.exec(Re), ye = "";
10767
10767
  for (; le; ) {
10768
- ye += Re.substring($, le.index);
10768
+ ye += Re.substring(G, le.index);
10769
10769
  const Ee = Ut.case_insensitive ? le[0].toLowerCase() : le[0], ut = Rt(ve, Ee);
10770
10770
  if (ut) {
10771
- const [Gt, _l] = ut;
10772
- if (nt.addText(ye), ye = "", Ge[Ee] = (Ge[Ee] || 0) + 1, Ge[Ee] <= al && (Hn += _l), Gt.startsWith("_"))
10771
+ const [$t, _l] = ut;
10772
+ if (nt.addText(ye), ye = "", $e[Ee] = ($e[Ee] || 0) + 1, $e[Ee] <= al && (Hn += _l), $t.startsWith("_"))
10773
10773
  ye += le[0];
10774
10774
  else {
10775
- const kl = Ut.classNameAliases[Gt] || Gt;
10775
+ const kl = Ut.classNameAliases[$t] || $t;
10776
10776
  Lt(le[0], kl);
10777
10777
  }
10778
10778
  } else
10779
10779
  ye += le[0];
10780
- $ = ve.keywordPatternRe.lastIndex, le = ve.keywordPatternRe.exec(Re);
10780
+ G = ve.keywordPatternRe.lastIndex, le = ve.keywordPatternRe.exec(Re);
10781
10781
  }
10782
- ye += Re.substring($), nt.addText(ye);
10782
+ ye += Re.substring(G), nt.addText(ye);
10783
10783
  }
10784
10784
  function Jn() {
10785
10785
  if (Re === "") return;
10786
- let $ = null;
10786
+ let G = null;
10787
10787
  if (typeof ve.subLanguage == "string") {
10788
10788
  if (!P[ve.subLanguage]) {
10789
10789
  nt.addText(Re);
10790
10790
  return;
10791
10791
  }
10792
- $ = An(ve.subLanguage, Re, !0, Ba[ve.subLanguage]), Ba[ve.subLanguage] = /** @type {CompiledMode} */
10793
- $._top;
10792
+ G = An(ve.subLanguage, Re, !0, Ba[ve.subLanguage]), Ba[ve.subLanguage] = /** @type {CompiledMode} */
10793
+ G._top;
10794
10794
  } else
10795
- $ = Cs(Re, ve.subLanguage.length ? ve.subLanguage : null);
10796
- ve.relevance > 0 && (Hn += $.relevance), nt.__addSublanguage($._emitter, $.language);
10795
+ G = Cs(Re, ve.subLanguage.length ? ve.subLanguage : null);
10796
+ ve.relevance > 0 && (Hn += G.relevance), nt.__addSublanguage(G._emitter, G.language);
10797
10797
  }
10798
10798
  function bt() {
10799
10799
  ve.subLanguage != null ? Jn() : tn(), Re = "";
10800
10800
  }
10801
- function Lt($, le) {
10802
- $ !== "" && (nt.startScope(le), nt.addText($), nt.endScope());
10801
+ function Lt(G, le) {
10802
+ G !== "" && (nt.startScope(le), nt.addText(G), nt.endScope());
10803
10803
  }
10804
- function Va($, le) {
10804
+ function Va(G, le) {
10805
10805
  let ye = 1;
10806
10806
  const Ee = le.length - 1;
10807
10807
  for (; ye <= Ee; ) {
10808
- if (!$._emit[ye]) {
10808
+ if (!G._emit[ye]) {
10809
10809
  ye++;
10810
10810
  continue;
10811
10811
  }
10812
- const ut = Ut.classNameAliases[$[ye]] || $[ye], Gt = le[ye];
10813
- ut ? Lt(Gt, ut) : (Re = Gt, tn(), Re = ""), ye++;
10812
+ const ut = Ut.classNameAliases[G[ye]] || G[ye], $t = le[ye];
10813
+ ut ? Lt($t, ut) : (Re = $t, tn(), Re = ""), ye++;
10814
10814
  }
10815
10815
  }
10816
- function Ra($, le) {
10817
- return $.scope && typeof $.scope == "string" && nt.openNode(Ut.classNameAliases[$.scope] || $.scope), $.beginScope && ($.beginScope._wrap ? (Lt(Re, Ut.classNameAliases[$.beginScope._wrap] || $.beginScope._wrap), Re = "") : $.beginScope._multi && (Va($.beginScope, le), Re = "")), ve = Object.create($, { parent: { value: ve } }), ve;
10816
+ function Ra(G, le) {
10817
+ return G.scope && typeof G.scope == "string" && nt.openNode(Ut.classNameAliases[G.scope] || G.scope), G.beginScope && (G.beginScope._wrap ? (Lt(Re, Ut.classNameAliases[G.beginScope._wrap] || G.beginScope._wrap), Re = "") : G.beginScope._multi && (Va(G.beginScope, le), Re = "")), ve = Object.create(G, { parent: { value: ve } }), ve;
10818
10818
  }
10819
- function Ta($, le, ye) {
10820
- let Ee = j($.endRe, ye);
10819
+ function Ta(G, le, ye) {
10820
+ let Ee = j(G.endRe, ye);
10821
10821
  if (Ee) {
10822
- if ($["on:end"]) {
10823
- const ut = new t($);
10824
- $["on:end"](le, ut), ut.isMatchIgnored && (Ee = !1);
10822
+ if (G["on:end"]) {
10823
+ const ut = new t(G);
10824
+ G["on:end"](le, ut), ut.isMatchIgnored && (Ee = !1);
10825
10825
  }
10826
10826
  if (Ee) {
10827
- for (; $.endsParent && $.parent; )
10828
- $ = $.parent;
10829
- return $;
10827
+ for (; G.endsParent && G.parent; )
10828
+ G = G.parent;
10829
+ return G;
10830
10830
  }
10831
10831
  }
10832
- if ($.endsWithParent)
10833
- return Ta($.parent, le, ye);
10832
+ if (G.endsWithParent)
10833
+ return Ta(G.parent, le, ye);
10834
10834
  }
10835
- function fl($) {
10836
- return ve.matcher.regexIndex === 0 ? (Re += $[0], 1) : (Is = !0, 0);
10835
+ function fl(G) {
10836
+ return ve.matcher.regexIndex === 0 ? (Re += G[0], 1) : (Is = !0, 0);
10837
10837
  }
10838
- function hl($) {
10839
- const le = $[0], ye = $.rule, Ee = new t(ye), ut = [ye.__beforeBegin, ye["on:begin"]];
10840
- for (const Gt of ut)
10841
- if (Gt && (Gt($, Ee), Ee.isMatchIgnored))
10838
+ function hl(G) {
10839
+ const le = G[0], ye = G.rule, Ee = new t(ye), ut = [ye.__beforeBegin, ye["on:begin"]];
10840
+ for (const $t of ut)
10841
+ if ($t && ($t(G, Ee), Ee.isMatchIgnored))
10842
10842
  return fl(le);
10843
- return ye.skip ? Re += le : (ye.excludeBegin && (Re += le), bt(), !ye.returnBegin && !ye.excludeBegin && (Re = le)), Ra(ye, $), ye.returnBegin ? 0 : le.length;
10843
+ return ye.skip ? Re += le : (ye.excludeBegin && (Re += le), bt(), !ye.returnBegin && !ye.excludeBegin && (Re = le)), Ra(ye, G), ye.returnBegin ? 0 : le.length;
10844
10844
  }
10845
- function bl($) {
10846
- const le = $[0], ye = re.substring($.index), Ee = Ta(ve, $, ye);
10845
+ function bl(G) {
10846
+ const le = G[0], ye = re.substring(G.index), Ee = Ta(ve, G, ye);
10847
10847
  if (!Ee)
10848
10848
  return Ca;
10849
10849
  const ut = ve;
10850
- ve.endScope && ve.endScope._wrap ? (bt(), Lt(le, ve.endScope._wrap)) : ve.endScope && ve.endScope._multi ? (bt(), Va(ve.endScope, $)) : ut.skip ? Re += le : (ut.returnEnd || ut.excludeEnd || (Re += le), bt(), ut.excludeEnd && (Re = le));
10850
+ ve.endScope && ve.endScope._wrap ? (bt(), Lt(le, ve.endScope._wrap)) : ve.endScope && ve.endScope._multi ? (bt(), Va(ve.endScope, G)) : ut.skip ? Re += le : (ut.returnEnd || ut.excludeEnd || (Re += le), bt(), ut.excludeEnd && (Re = le));
10851
10851
  do
10852
10852
  ve.scope && nt.closeNode(), !ve.skip && !ve.subLanguage && (Hn += ve.relevance), ve = ve.parent;
10853
10853
  while (ve !== Ee.parent);
10854
- return Ee.starts && Ra(Ee.starts, $), ut.returnEnd ? 0 : le.length;
10854
+ return Ee.starts && Ra(Ee.starts, G), ut.returnEnd ? 0 : le.length;
10855
10855
  }
10856
10856
  function yl() {
10857
- const $ = [];
10857
+ const G = [];
10858
10858
  for (let le = ve; le !== Ut; le = le.parent)
10859
- le.scope && $.unshift(le.scope);
10860
- $.forEach((le) => nt.openNode(le));
10859
+ le.scope && G.unshift(le.scope);
10860
+ G.forEach((le) => nt.openNode(le));
10861
10861
  }
10862
10862
  let Wn = {};
10863
- function ja($, le) {
10863
+ function ja(G, le) {
10864
10864
  const ye = le && le[0];
10865
- if (Re += $, ye == null)
10865
+ if (Re += G, ye == null)
10866
10866
  return bt(), 0;
10867
10867
  if (Wn.type === "begin" && le.type === "end" && Wn.index === le.index && ye === "") {
10868
10868
  if (Re += re.slice(le.index, le.index + 1), !Ue) {
@@ -10902,10 +10902,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
10902
10902
  else {
10903
10903
  for (ve.matcher.considerAll(); ; ) {
10904
10904
  xs++, Is ? Is = !1 : ve.matcher.considerAll(), ve.matcher.lastIndex = pn;
10905
- const $ = ve.matcher.exec(re);
10906
- if (!$) break;
10907
- const le = re.substring(pn, $.index), ye = ja(le, $);
10908
- pn = $.index + ye;
10905
+ const G = ve.matcher.exec(re);
10906
+ if (!G) break;
10907
+ const le = re.substring(pn, G.index), ye = ja(le, G);
10908
+ pn = G.index + ye;
10909
10909
  }
10910
10910
  ja(re.substring(pn));
10911
10911
  }
@@ -10917,18 +10917,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
10917
10917
  _emitter: nt,
10918
10918
  _top: ve
10919
10919
  };
10920
- } catch ($) {
10921
- if ($.message && $.message.includes("Illegal"))
10920
+ } catch (G) {
10921
+ if (G.message && G.message.includes("Illegal"))
10922
10922
  return {
10923
10923
  language: J,
10924
10924
  value: ks(re),
10925
10925
  illegal: !0,
10926
10926
  relevance: 0,
10927
10927
  _illegalBy: {
10928
- message: $.message,
10928
+ message: G.message,
10929
10929
  index: pn,
10930
10930
  context: re.slice(pn - 100, pn + 100),
10931
- mode: $.mode,
10931
+ mode: G.mode,
10932
10932
  resultSoFar: Es
10933
10933
  },
10934
10934
  _emitter: nt
@@ -10939,11 +10939,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
10939
10939
  value: ks(re),
10940
10940
  illegal: !1,
10941
10941
  relevance: 0,
10942
- errorRaised: $,
10942
+ errorRaised: G,
10943
10943
  _emitter: nt,
10944
10944
  _top: ve
10945
10945
  };
10946
- throw $;
10946
+ throw G;
10947
10947
  }
10948
10948
  }
10949
10949
  function Ss(J) {
@@ -10962,7 +10962,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
10962
10962
  (bt) => An(bt, J, !1)
10963
10963
  );
10964
10964
  Ve.unshift(Se);
10965
- const Ge = Ve.sort((bt, Lt) => {
10965
+ const $e = Ve.sort((bt, Lt) => {
10966
10966
  if (bt.relevance !== Lt.relevance) return Lt.relevance - bt.relevance;
10967
10967
  if (bt.language && Lt.language) {
10968
10968
  if (en(bt.language).supersetOf === Lt.language)
@@ -10971,11 +10971,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
10971
10971
  return -1;
10972
10972
  }
10973
10973
  return 0;
10974
- }), [Rt, tn] = Ge, Jn = Rt;
10974
+ }), [Rt, tn] = $e, Jn = Rt;
10975
10975
  return Jn.secondBest = tn, Jn;
10976
10976
  }
10977
10977
  function ol(J, re, Se) {
10978
- const Ve = re && G[re] || Se;
10978
+ const Ve = re && $[re] || Se;
10979
10979
  J.classList.add("hljs"), J.classList.add(`language-${Ve}`);
10980
10980
  }
10981
10981
  function As(J) {
@@ -10995,16 +10995,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
10995
10995
  J.innerHTML
10996
10996
  );
10997
10997
  re = J;
10998
- const Ve = re.textContent, Ge = Se ? Qe(Ve, { language: Se, ignoreIllegals: !0 }) : Cs(Ve);
10999
- J.innerHTML = Ge.value, J.dataset.highlighted = "yes", ol(J, Se, Ge.language), J.result = {
11000
- language: Ge.language,
10998
+ const Ve = re.textContent, $e = Se ? Qe(Ve, { language: Se, ignoreIllegals: !0 }) : Cs(Ve);
10999
+ J.innerHTML = $e.value, J.dataset.highlighted = "yes", ol(J, Se, $e.language), J.result = {
11000
+ language: $e.language,
11001
11001
  // TODO: remove with version 11.0
11002
- re: Ge.relevance,
11003
- relevance: Ge.relevance
11004
- }, Ge.secondBest && (J.secondBest = {
11005
- language: Ge.secondBest.language,
11006
- relevance: Ge.secondBest.relevance
11007
- }), Fn("after:highlightElement", { el: J, result: Ge, text: Ve });
11002
+ re: $e.relevance,
11003
+ relevance: $e.relevance
11004
+ }, $e.secondBest && (J.secondBest = {
11005
+ language: $e.secondBest.language,
11006
+ relevance: $e.secondBest.relevance
11007
+ }), Fn("after:highlightElement", { el: J, result: $e, text: Ve });
11008
11008
  }
11009
11009
  function ll(J) {
11010
11010
  Z = Sa(Z, J);
@@ -11041,18 +11041,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11041
11041
  }
11042
11042
  function cl(J) {
11043
11043
  delete P[J];
11044
- for (const re of Object.keys(G))
11045
- G[re] === J && delete G[re];
11044
+ for (const re of Object.keys($))
11045
+ $[re] === J && delete $[re];
11046
11046
  }
11047
11047
  function dl() {
11048
11048
  return Object.keys(P);
11049
11049
  }
11050
11050
  function en(J) {
11051
- return J = (J || "").toLowerCase(), P[J] || P[G[J]];
11051
+ return J = (J || "").toLowerCase(), P[J] || P[$[J]];
11052
11052
  }
11053
11053
  function xa(J, { languageName: re }) {
11054
11054
  typeof J == "string" && (J = [J]), J.forEach((Se) => {
11055
- G[Se.toLowerCase()] = re;
11055
+ $[Se.toLowerCase()] = re;
11056
11056
  });
11057
11057
  }
11058
11058
  function Ia(J) {
@@ -11119,8 +11119,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11119
11119
  for (const J in At)
11120
11120
  typeof At[J] == "object" && r(At[J]);
11121
11121
  return Object.assign(C, At), C;
11122
- }, hn = Aa({});
11123
- return hn.newInstance = () => Aa({}), Ns = hn, hn.HighlightJS = hn, hn.default = hn, Ns;
11122
+ }, bn = Aa({});
11123
+ return bn.newInstance = () => Aa({}), Ns = bn, bn.HighlightJS = bn, bn.default = bn, Ns;
11124
11124
  }
11125
11125
  var nv = /* @__PURE__ */ tv();
11126
11126
  const Kn = /* @__PURE__ */ ev(nv);
@@ -11392,7 +11392,7 @@ const qa = "[A-Za-z$_][0-9A-Za-z$_]*", av = [
11392
11392
  "undefined",
11393
11393
  "NaN",
11394
11394
  "Infinity"
11395
- ], $o = [
11395
+ ], Go = [
11396
11396
  // Fundamental objects
11397
11397
  "Object",
11398
11398
  "Function",
@@ -11483,7 +11483,7 @@ const qa = "[A-Za-z$_][0-9A-Za-z$_]*", av = [
11483
11483
  // Node.js
11484
11484
  ], iv = [].concat(
11485
11485
  Yo,
11486
- $o,
11486
+ Go,
11487
11487
  qo
11488
11488
  );
11489
11489
  function rv(r) {
@@ -11739,7 +11739,7 @@ function rv(r) {
11739
11739
  keywords: {
11740
11740
  _: [
11741
11741
  // se we still get relevance credit for JS library classes
11742
- ...$o,
11742
+ ...Go,
11743
11743
  ...qo
11744
11744
  ]
11745
11745
  }
@@ -13135,7 +13135,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13135
13135
  return (e, s) => (d(), D(Y, null, [
13136
13136
  s[2] || (s[2] = R("div", { class: "v-ai-widget__mask" }, null, -1)),
13137
13137
  R("div", Iv, [
13138
- c(n($t), {
13138
+ c(n(Gt), {
13139
13139
  type: "warning",
13140
13140
  closable: !1,
13141
13141
  title: "您未登录"
@@ -13504,7 +13504,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13504
13504
  const w = o.state.llm || e.models[0].value, S = o.state.getLLMById(w);
13505
13505
  s("jsonSend", { file: b, auto: g, model: w, content: k, llm: S });
13506
13506
  };
13507
- return gn(async () => {
13507
+ return fn(async () => {
13508
13508
  const b = await a();
13509
13509
  b?.success && (l.value = b.data);
13510
13510
  }), (b, g) => (d(), D("div", Jv, [
@@ -13521,7 +13521,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13521
13521
  size: "small"
13522
13522
  }, null, 8, ["disabled", "modelValue"])
13523
13523
  ]),
13524
- u.value === "text" ? (d(), y(Go, {
13524
+ u.value === "text" ? (d(), y($o, {
13525
13525
  key: 0,
13526
13526
  "min-rows": 8,
13527
13527
  models: e.models,
@@ -13549,7 +13549,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13549
13549
  __: [1]
13550
13550
  }),
13551
13551
  R("div", null, [
13552
- (d(!0), D(Y, null, oe(l.value, (k, w) => (d(), y(n($e), {
13552
+ (d(!0), D(Y, null, oe(l.value, (k, w) => (d(), y(n(Ge), {
13553
13553
  index: w + 1,
13554
13554
  title: k.title,
13555
13555
  "model-value": k,
@@ -13567,7 +13567,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13567
13567
  return (t, e) => (d(), D(Y, null, [
13568
13568
  e[0] || (e[0] = R("div", { class: "v-ai-widget__mask" }, null, -1)),
13569
13569
  R("div", Qv, [
13570
- c(n($t), {
13570
+ c(n(Gt), {
13571
13571
  title: "请新建或打开文件后再使用AI助手",
13572
13572
  type: "warning",
13573
13573
  "show-icon": "",
@@ -13576,7 +13576,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13576
13576
  ])
13577
13577
  ], 64));
13578
13578
  }
13579
- }), Gv = /* @__PURE__ */ St(Kv, [["__scopeId", "data-v-6c1a0add"]]), Xa = /* @__PURE__ */ M({
13579
+ }), $v = /* @__PURE__ */ St(Kv, [["__scopeId", "data-v-6c1a0add"]]), Xa = /* @__PURE__ */ M({
13580
13580
  __name: "Editor",
13581
13581
  props: {
13582
13582
  lang: { default: "typescript" },
@@ -13620,7 +13620,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13620
13620
  a("change", l?.getValue(), v);
13621
13621
  }), l.onDidBlurEditorText(u);
13622
13622
  };
13623
- return gn(() => {
13623
+ return fn(() => {
13624
13624
  mt(p);
13625
13625
  }), Zs(() => {
13626
13626
  l && l.dispose();
@@ -13638,7 +13638,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13638
13638
  style: mn({ height: s.height })
13639
13639
  }, null, 38));
13640
13640
  }
13641
- }), $v = /* @__PURE__ */ M({
13641
+ }), Gv = /* @__PURE__ */ M({
13642
13642
  __name: "detail",
13643
13643
  props: {
13644
13644
  chat: {},
@@ -13699,7 +13699,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13699
13699
  _: 1
13700
13700
  }));
13701
13701
  }
13702
- }), qv = /* @__PURE__ */ St($v, [["__scopeId", "data-v-3af93469"]]), Yv = {
13702
+ }), qv = /* @__PURE__ */ St(Gv, [["__scopeId", "data-v-3af93469"]]), Yv = {
13703
13703
  key: 0,
13704
13704
  class: "v-ai-widget__mask is-limit"
13705
13705
  }, Xv = {
@@ -13716,7 +13716,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13716
13716
  return (s, a) => (d(), D(Y, null, [
13717
13717
  e.value ? (d(), D("div", Yv)) : B("", !0),
13718
13718
  e.value ? (d(), D("div", Xv, [
13719
- c(n($t), {
13719
+ c(n(Gt), {
13720
13720
  title: "仅限邀请",
13721
13721
  type: "warning",
13722
13722
  closable: !1
@@ -13787,7 +13787,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13787
13787
  return (m, b) => (d(), D(Y, null, [
13788
13788
  e.value ? (d(), D("div", sg)) : B("", !0),
13789
13789
  e.value ? (d(), D("div", ag, [
13790
- c(n($t), {
13790
+ c(n(Gt), {
13791
13791
  title: "免费体验次数已用完",
13792
13792
  type: "warning",
13793
13793
  closable: !1
@@ -13889,7 +13889,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
13889
13889
  })
13890
13890
  ]),
13891
13891
  default: h(() => [
13892
- c(n($t), {
13892
+ c(n(Gt), {
13893
13893
  type: "success",
13894
13894
  closable: !1
13895
13895
  }, {
@@ -14025,7 +14025,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14025
14025
  title: "隐藏代码块",
14026
14026
  type: "default"
14027
14027
  }), qe = I(() => !tt.value || Nt.value ? "hidden" : "auto");
14028
- gn(async () => {
14028
+ fn(async () => {
14029
14029
  tt.value = await e();
14030
14030
  });
14031
14031
  const vt = () => {
@@ -14065,7 +14065,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14065
14065
  ref_key: "panelRef",
14066
14066
  ref: S,
14067
14067
  body: { overflow: qe.value }
14068
- }, $s({
14068
+ }, Gs({
14069
14069
  actions: h(() => [
14070
14070
  c(n(Te), We({
14071
14071
  mode: "icon",
@@ -14126,7 +14126,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14126
14126
  ]),
14127
14127
  default: h(() => [
14128
14128
  tt.value ? B("", !0) : (d(), y(Tv, { key: 0 })),
14129
- tt.value && Nt.value ? (d(), y(Gv, { key: 1 })) : B("", !0),
14129
+ tt.value && Nt.value ? (d(), y($v, { key: 1 })) : B("", !0),
14130
14130
  Nt.value || n(s) ? (d(), y(Hv, {
14131
14131
  key: 2,
14132
14132
  models: n(o),
@@ -14194,7 +14194,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14194
14194
  _: 1,
14195
14195
  __: [2]
14196
14196
  }, 8, ["icon"]),
14197
- n(u) ? (d(), y(Go, {
14197
+ n(u) ? (d(), y($o, {
14198
14198
  key: 0,
14199
14199
  models: n(o),
14200
14200
  loading: n(a) || n(T),
@@ -14276,7 +14276,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14276
14276
  // 定义状态
14277
14277
  }
14278
14278
  },
14279
- getter: {
14279
+ getters: {
14280
14280
 
14281
14281
  },
14282
14282
  actions: {
@@ -14294,12 +14294,15 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14294
14294
  }`, Sg = `(to, from, failure, app) => {
14295
14295
 
14296
14296
  }`, Cg = `(app) => {
14297
+ const { id, platform } = app.config.globalProperties.$provider.project;
14298
+ const storageKey = 'ACCESS__' + platform + '_' + id
14297
14299
  return {
14298
14300
  // session: false,
14299
14301
  // authKey: 'Authorization',
14300
- // storageKey: 'ACCESS_STORAGE',
14302
+ storageKey,
14301
14303
  // storagePrefix: '__VTJ_',
14302
14304
  // auth: '/#/login',
14305
+ // whiteList: (to) => true
14303
14306
  // redirectParam: 'r',
14304
14307
  // unauthorizedCode: 401,
14305
14308
  // unauthorizedMessage: '登录已经失效,请重新登录!',
@@ -14536,7 +14539,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
14536
14539
  Logo: zc,
14537
14540
  EmptyWidget: Uc,
14538
14541
  Switcher: Wc,
14539
- Toolbar: $c,
14542
+ Toolbar: Gc,
14540
14543
  Actions: sd,
14541
14544
  Pages: Cd,
14542
14545
  Blocks: xd,
@@ -15598,7 +15601,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
15598
15601
  setup(r, { emit: t }) {
15599
15602
  const e = (u = "") => ({
15600
15603
  type: "JSExpression",
15601
- value: vn(u) ? u.value : u
15604
+ value: gn(u) ? u.value : u
15602
15605
  }), s = r, a = t, o = (u) => st(u, s.context, !0), l = E(e(s.modelValue).value);
15603
15606
  X(
15604
15607
  () => s.modelValue,
@@ -15656,7 +15659,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
15656
15659
  },
15657
15660
  emits: ["change"],
15658
15661
  setup(r, { emit: t }) {
15659
- const e = r, s = t, a = I(() => vn(e.modelValue) ? void 0 : Number(e.modelValue || 0)), o = (l) => {
15662
+ const e = r, s = t, a = I(() => gn(e.modelValue) ? void 0 : Number(e.modelValue || 0)), o = (l) => {
15660
15663
  s("change", l);
15661
15664
  };
15662
15665
  return (l, i) => (d(), y(n(Ll), We({
@@ -15846,7 +15849,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
15846
15849
  _: 1
15847
15850
  }, 16, ["class", "file-list"]));
15848
15851
  }
15849
- }), Kg = { class: "v-section-setter" }, Gg = /* @__PURE__ */ M({
15852
+ }), Kg = { class: "v-section-setter" }, $g = /* @__PURE__ */ M({
15850
15853
  name: "SectionSetter",
15851
15854
  __name: "section",
15852
15855
  props: {
@@ -15876,7 +15879,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
15876
15879
  }, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
15877
15880
  ]));
15878
15881
  }
15879
- }), $g = { class: "v-slider-setter" }, qg = /* @__PURE__ */ M({
15882
+ }), Gg = { class: "v-slider-setter" }, qg = /* @__PURE__ */ M({
15880
15883
  name: "SliderSetter",
15881
15884
  __name: "slider",
15882
15885
  props: {
@@ -15897,7 +15900,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
15897
15900
  const o = () => {
15898
15901
  a.value = void 0, s("change", void 0), s("update:modelValue", void 0);
15899
15902
  };
15900
- return (l, i) => (d(), D("div", $g, [
15903
+ return (l, i) => (d(), D("div", Gg, [
15901
15904
  c(n(Fl), We({ size: "small" }, l.$attrs, {
15902
15905
  modelValue: a.value,
15903
15906
  "onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
@@ -16238,7 +16241,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
16238
16241
  R("div", Xg, [
16239
16242
  c(n(He), {
16240
16243
  size: s.size,
16241
- "prefix-icon": n(fn),
16244
+ "prefix-icon": n(hn),
16242
16245
  clearable: "",
16243
16246
  modelValue: l.value,
16244
16247
  "onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
@@ -16282,7 +16285,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
16282
16285
  TagSetter: Jg,
16283
16286
  SizeSetter: el,
16284
16287
  ImageSetter: Qg,
16285
- SectionSetter: Gg,
16288
+ SectionSetter: $g,
16286
16289
  SliderSetter: qg,
16287
16290
  FileSetter: _a,
16288
16291
  VanIconSetter: sf,
@@ -16504,7 +16507,7 @@ class lf {
16504
16507
  this.getRemoteWidgets().forEach((e) => this.unregister(e.name));
16505
16508
  }
16506
16509
  }
16507
- const yn = new lf();
16510
+ const vn = new lf();
16508
16511
  class rf {
16509
16512
  constructor(t = Ig) {
16510
16513
  this.deps = t;
@@ -16673,7 +16676,7 @@ const In = new uf(), an = M({
16673
16676
  name: "SkeletonWrapper",
16674
16677
  setup() {
16675
16678
  const r = E(), t = Ne(), e = E({});
16676
- return t?.remote || yn.removeRemoteWidgets(), t.options.noMask && yn.unregister("ProjectConfig"), {
16679
+ return t?.remote || vn.removeRemoteWidgets(), t.options.noMask && vn.unregister("ProjectConfig"), {
16677
16680
  skeletonRef: r,
16678
16681
  engine: t,
16679
16682
  widgets: e
@@ -16728,7 +16731,7 @@ const In = new uf(), an = M({
16728
16731
  * @returns
16729
16732
  */
16730
16733
  getWidget(r) {
16731
- const t = yn.get(r);
16734
+ const t = vn.get(r);
16732
16735
  if (!t) {
16733
16736
  qt.warn(`widget [ ${r} ] is not exsit`);
16734
16737
  return;
@@ -16817,7 +16820,7 @@ const In = new uf(), an = M({
16817
16820
  defaultSetter() {
16818
16821
  const { value: r, computedSetters: t } = this;
16819
16822
  let e = typeof r;
16820
- e === "object" && (Array.isArray(r) ? e = "array" : vn(r) ? e = "object" : ho(r) && (e = "function"));
16823
+ e === "object" && (Array.isArray(r) ? e = "array" : gn(r) ? e = "object" : ho(r) && (e = "function"));
16821
16824
  const s = In.getByType(e) || [];
16822
16825
  return s.length ? (t.find((a) => s.includes(a.name)) || t[0])?.name : t[0]?.name;
16823
16826
  }
@@ -17300,7 +17303,7 @@ class gf {
17300
17303
  ee(this, "debounceSend");
17301
17304
  ee(this, "timer", null);
17302
17305
  ee(this, "project");
17303
- this.access = e, this.service = s, this.remote = t || "https://lcdp.vtj.pro", this.api = this.remote + Gu, this.debounceSend = _o(this.send.bind(this), 500), this.online(), this.bindGlobalError(), this.service && this.bindServerError(this.service);
17306
+ this.access = e, this.service = s, this.remote = t || "https://lcdp.vtj.pro", this.api = this.remote + $u, this.debounceSend = _o(this.send.bind(this), 500), this.online(), this.bindGlobalError(), this.service && this.bindServerError(this.service);
17304
17307
  }
17305
17308
  setProject(t) {
17306
17309
  this.project = t;
@@ -17480,7 +17483,7 @@ class ff {
17480
17483
  }
17481
17484
  }), f = l.createApp(p);
17482
17485
  return this.install(f, t), Object.assign(
17483
- f.config.globalProperties.$route.meta,
17486
+ f.config.globalProperties.$route?.meta || {},
17484
17487
  e.meta || {}
17485
17488
  ), f.mount(i), f;
17486
17489
  }
@@ -17841,7 +17844,7 @@ class yf {
17841
17844
  t && Object.assign(this.__state, t);
17842
17845
  }
17843
17846
  save(t, e) {
17844
- this.__state[t] = e, _n.save(Wa, Gs(this.__state), { type: "local" });
17847
+ this.__state[t] = e, _n.save(Wa, $s(this.__state), { type: "local" });
17845
17848
  }
17846
17849
  get outlineEnabled() {
17847
17850
  return this.__state.outlineEnabled;
@@ -17987,9 +17990,11 @@ class ch extends fo {
17987
17990
  s
17988
17991
  );
17989
17992
  const a = await this.service.init(e, !0).catch((o) => (qt.warn("VTJEngine service init fail.", o), null));
17990
- a && (s === "uniapp" && yn.set("UniConfig", {
17993
+ a && (s === "uniapp" && (vn.set("UniConfig", {
17991
17994
  invisible: !1
17992
- }), a.dependencies = eo.merge(a.dependencies || [], s), this.project.value = new Zl(a), this.provider.project = this.project.value, this.saveMaterials(), this.triggerReady(), this.report.setProject(this.project.value), this.report.init());
17995
+ }), vn.set("Globals", {
17996
+ invisible: !0
17997
+ })), a.dependencies = eo.merge(a.dependencies || [], s), this.project.value = new Zl(a), this.provider.project = this.project.value, this.saveMaterials(), this.triggerReady(), this.report.setProject(this.project.value), this.report.init());
17993
17998
  }
17994
17999
  /**
17995
18000
  * 获取增强配置
@@ -18293,7 +18298,7 @@ const wf = /* @__PURE__ */ M({
18293
18298
  target: ".v-settings-region",
18294
18299
  title: "组件设置区",
18295
18300
  placement: "left",
18296
- description: "在这里可以对选中的页面或组件进行响应个性化设置"
18301
+ description: "在这里可以对选中的页面或组件进行个性化设置"
18297
18302
  }),
18298
18303
  c(n(sn), {
18299
18304
  target: ".v-toolbar-region",
@@ -18361,7 +18366,7 @@ const wf = /* @__PURE__ */ M({
18361
18366
  u.value = T.elementWidth.value;
18362
18367
  }
18363
18368
  }, m = E(), b = E(), g = E(), k = E(), w = E(), S = E(), _ = E(), j = E(), V = E(!1), O = E(!1);
18364
- return gn(async () => {
18369
+ return fn(async () => {
18365
18370
  s.remote && (await o() || await a()), p();
18366
18371
  }), t({
18367
18372
  brand: m,
@@ -18377,7 +18382,7 @@ const wf = /* @__PURE__ */ M({
18377
18382
  rightWidth: u,
18378
18383
  preview: j,
18379
18384
  isPreview: l
18380
- }), (A, T) => (d(), y(n(Wl), { locale: n(Gl) }, {
18385
+ }), (A, T) => (d(), y(n(Wl), { locale: n($l) }, {
18381
18386
  default: h(() => [
18382
18387
  c(n(Oa), { class: "v-skeleton" }, {
18383
18388
  default: h(() => [
@@ -18510,7 +18515,7 @@ const wf = /* @__PURE__ */ M({
18510
18515
  setup(r, { emit: t }) {
18511
18516
  const e = r, s = t, a = E(!1), o = E(""), l = E(
18512
18517
  e.setters.find((S) => S.name === e.defaultSetter) || e.setters[0]
18513
- ), i = E(e.value), u = I(() => !!vn(i.value)), p = {
18518
+ ), i = E(e.value), u = I(() => !!gn(i.value)), p = {
18514
18519
  [l.value.name]: i.value
18515
18520
  }, f = (S) => {
18516
18521
  p[l.value.name] = i.value, l.value = S, i.value = p[S.name] ?? void 0, v(i.value);
@@ -18533,7 +18538,7 @@ const wf = /* @__PURE__ */ M({
18533
18538
  }, m = () => {
18534
18539
  s("remove", e.name);
18535
18540
  }, b = () => {
18536
- a.value = !0, o.value = vn(i.value) ? i.value.value : "";
18541
+ a.value = !0, o.value = gn(i.value) ? i.value.value : "";
18537
18542
  }, g = () => {
18538
18543
  a.value = !1, o.value = "";
18539
18544
  }, k = async (S) => st(S, e.context, !0) ? (p[l.value.name] = i.value, i.value = S, s("change", S), !0) : !1, w = async () => {
@@ -18605,7 +18610,7 @@ const wf = /* @__PURE__ */ M({
18605
18610
  dropdown: h(() => [
18606
18611
  c(n(io), null, {
18607
18612
  default: h(() => [
18608
- (d(!0), D(Y, null, oe(e.setters, (j) => (d(), y(n(Gn), {
18613
+ (d(!0), D(Y, null, oe(e.setters, (j) => (d(), y(n($n), {
18609
18614
  command: j,
18610
18615
  key: j.name
18611
18616
  }, {
@@ -18757,7 +18762,7 @@ const wf = /* @__PURE__ */ M({
18757
18762
  }), (w, S) => (d(), D("div", Nf, [
18758
18763
  R("div", Pf, [
18759
18764
  R("div", zf, [
18760
- (d(!0), D(Y, null, oe(u.value, (_) => (d(), y(n(Ga), {
18765
+ (d(!0), D(Y, null, oe(u.value, (_) => (d(), y(n($a), {
18761
18766
  key: `icon-${_.name}`,
18762
18767
  class: ge(`v-apps-region-${_.name}`),
18763
18768
  icon: _.icon,
@@ -18768,7 +18773,7 @@ const wf = /* @__PURE__ */ M({
18768
18773
  }, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
18769
18774
  ]),
18770
18775
  R("div", Lf, [
18771
- (d(!0), D(Y, null, oe(p.value, (_) => (d(), y(n(Ga), {
18776
+ (d(!0), D(Y, null, oe(p.value, (_) => (d(), y(n($a), {
18772
18777
  key: `icon-${_.name}`,
18773
18778
  icon: _.icon,
18774
18779
  label: _.label,
@@ -19086,7 +19091,7 @@ export {
19086
19091
  pf as O,
19087
19092
  zu as P,
19088
19093
  mf as Q,
19089
- Gu as R,
19094
+ $u as R,
19090
19095
  Ja as S,
19091
19096
  df as T,
19092
19097
  uh as U,
@@ -19099,7 +19104,7 @@ export {
19099
19104
  Uu as a,
19100
19105
  af as a0,
19101
19106
  of as a1,
19102
- yn as a2,
19107
+ vn as a2,
19103
19108
  eo as a3,
19104
19109
  In as a4,
19105
19110
  cf as a5,
@@ -19120,14 +19125,14 @@ export {
19120
19125
  Qu as d,
19121
19126
  Ku as e,
19122
19127
  Wa as f,
19123
- $u as g,
19128
+ Gu as g,
19124
19129
  _f as h,
19125
19130
  If as i,
19126
19131
  Me as j,
19127
- Ga as k,
19132
+ $a as k,
19128
19133
  fe as l,
19129
19134
  gs as m,
19130
- $e as n,
19135
+ Ge as n,
19131
19136
  as as o,
19132
19137
  wa as p,
19133
19138
  _d as q,