@vtj/designer 0.13.5 → 0.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 fn, nextTick as mt, getCurrentScope as El, onScopeDispose as xl, getCurrentInstance as Ks, toRaw as
|
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
|
6
|
-
import
|
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
|
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 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";
|
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
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 hn, CopyDocument as So, Back as Ki, VtjIconPlus as Co, EditPen as Ao, Delete as pa, VtjIconSave as
|
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 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";
|
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.
|
22
|
+
* @version 0.13.7
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
24
24
|
*/
|
25
|
-
const On = "0.13.
|
25
|
+
const On = "0.13.7", Pu = {
|
26
26
|
width: 390,
|
27
27
|
height: 844
|
28
28
|
}, zu = {
|
@@ -91,7 +91,7 @@ const On = "0.13.5", Pu = {
|
|
91
91
|
"p",
|
92
92
|
"r",
|
93
93
|
"o"
|
94
|
-
].join(""),
|
94
|
+
].join(""), Gu = [
|
95
95
|
"/",
|
96
96
|
"a",
|
97
97
|
"p",
|
@@ -108,7 +108,7 @@ const On = "0.13.5", Pu = {
|
|
108
108
|
"o",
|
109
109
|
"r",
|
110
110
|
"t"
|
111
|
-
].join(""), Ja = "SESSION_ID__", Wa = "ENGINE_STATE__",
|
111
|
+
].join(""), Ja = "SESSION_ID__", Wa = "ENGINE_STATE__", $u = 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 ?? []);
|
@@ -1064,7 +1064,7 @@ function kc(r) {
|
|
1064
1064
|
t = void 0, s && await s;
|
1065
1065
|
}, e;
|
1066
1066
|
}
|
1067
|
-
function
|
1067
|
+
function $n(r) {
|
1068
1068
|
return Array.isArray(r) ? r : [r];
|
1069
1069
|
}
|
1070
1070
|
function Sc(r) {
|
@@ -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 =
|
1119
|
+
const i = $n(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
|
-
|
1127
|
-
|
1126
|
+
$n(yt(a.value ? r[1] : r[0])),
|
1127
|
+
$n(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
|
];
|
@@ -1243,7 +1243,7 @@ function Qa(r, t = {}) {
|
|
1243
1243
|
u();
|
1244
1244
|
}
|
1245
1245
|
if (e)
|
1246
|
-
return
|
1246
|
+
return Gs(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 =
|
1348
|
+
const b = $n(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 >=
|
1587
|
+
if (ht >= $u)
|
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"]]),
|
1851
|
+
}, Kc = /* @__PURE__ */ St(Qc, [["__scopeId", "data-v-3f069bbf"]]), Gc = { class: "v-toolbar-widget" }, $c = /* @__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",
|
1877
|
+
}), (v, m) => (d(), D("div", Gc, [
|
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(
|
2332
|
+
c(n(Gn), {
|
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(
|
2342
|
+
c(n(Gn), {
|
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(
|
2352
|
+
n(e).remote ? (d(), y(n(Gn), {
|
2353
2353
|
key: 0,
|
2354
2354
|
command: "template",
|
2355
2355
|
icon: n(ts),
|
@@ -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-
|
2468
|
+
loader: () => import("./Editor-DvPraWPS.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(
|
2593
|
+
c(n($t), { 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
|
-
}),
|
2728
|
+
}), Ga = /* @__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
|
-
},
|
2839
|
+
}, $s({
|
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(
|
2884
|
+
icon: n(Gi),
|
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
|
-
},
|
2981
|
+
}, $s({ _: 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
|
-
},
|
3037
|
+
}, $e = /* @__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:
|
3101
|
+
icon: $i
|
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 =
|
3381
|
+
const k = Gs(b.data.value);
|
3382
3382
|
g(p(k, b.data.path));
|
3383
3383
|
}
|
3384
3384
|
}, v = (b) => {
|
@@ -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(
|
3418
|
+
c($e, {
|
3419
3419
|
title: k.label,
|
3420
3420
|
subtitle: k.type,
|
3421
3421
|
"subtitle-cls": k.type,
|
@@ -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(
|
3551
|
+
(d(!0), D(Y, null, oe(T.items, (U) => (d(), y($e, {
|
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(
|
3573
|
+
(d(!0), D(Y, null, oe(v.value, (T) => (d(), y($e, {
|
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(
|
3709
|
+
c(n($t), {
|
3710
3710
|
title: `${e.name} 组件支持多个插槽,请选择放置到其中一个`,
|
3711
3711
|
type: "warning",
|
3712
3712
|
closable: !1
|
@@ -3831,7 +3831,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3831
3831
|
return S === "uniapp";
|
3832
3832
|
}), f = (S) => {
|
3833
3833
|
const _ = [];
|
3834
|
-
return S.layout || (t.value?.homepage === S.id && _.push("主"), !p.value && S.mask && _.push("母"), !p.value && S.cache && _.push("缓"), !p.value && S.hidden && _.push("隐"),
|
3834
|
+
return S.layout || (t.value?.homepage === S.id && _.push("主"), !p.value && S.mask && _.push("母"), !p.value && S.cache && _.push("缓"), !p.value && S.hidden && _.push("隐"), S.raw && _.push("源")), _;
|
3835
3835
|
}, v = (S) => S.dir || S.layout ? ["add", "edit", "remove"] : S.raw ? ["home", "edit", "remove"] : ["home", "edit", "copy", "remove", "saveToBlock"], m = () => {
|
3836
3836
|
i.value = void 0, l.value = void 0, o.value = !0;
|
3837
3837
|
}, b = async (S) => {
|
@@ -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(
|
3885
|
+
c(n($e), {
|
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(
|
3997
|
+
c(n($l), We({
|
3998
3998
|
size: "small",
|
3999
3999
|
"list-type": "list",
|
4000
4000
|
selectable: !0,
|
@@ -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(
|
4527
|
+
c(n($e), {
|
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(
|
4576
|
+
n(t) ? (d(!0), D(Y, { key: 1 }, oe(n(t).items, (p, f) => (d(), y(n($e), {
|
4577
4577
|
index: f + 1,
|
4578
4578
|
title: p.label,
|
4579
4579
|
"model-value": p,
|
@@ -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(
|
5061
|
+
(d(!0), D(Y, null, oe(j, (O) => (d(), y(n($e), {
|
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(
|
5126
|
+
(d(!0), D(Y, null, oe(n(t), (w) => (d(), y(n($e), {
|
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(
|
5456
|
+
(d(!0), D(Y, null, oe(g.list, (w) => (d(), y(n($e), {
|
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
|
-
}),
|
5546
|
+
}), Gd = /* @__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
|
-
}),
|
5578
|
+
}), $d = /* @__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(
|
5788
|
+
c(Gd, {
|
5789
5789
|
current: n(t),
|
5790
5790
|
context: n(e)
|
5791
5791
|
}, null, 8, ["current", "context"]),
|
5792
|
-
c(
|
5792
|
+
c($d, {
|
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(
|
6097
|
+
(d(!0), D(Y, null, oe(n(l), (w) => (d(), y(n($e), {
|
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(
|
6118
|
+
(d(!0), D(Y, null, oe(n(a), (w) => (d(), y(n($e), {
|
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(
|
6140
|
+
(d(!0), D(Y, null, oe(n(o), (w) => (d(), y(n($e), {
|
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(
|
6787
|
+
(d(!0), D(Y, null, oe(s.value, (z) => (d(), y(n($e), {
|
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(
|
6819
|
+
(d(!0), D(Y, null, oe(a.value, (z) => (d(), y(n($e), {
|
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(
|
6851
|
+
(d(!0), D(Y, null, oe(o.value, (z) => (d(), y(n($e), {
|
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(
|
6884
|
+
(d(!0), D(Y, null, oe(l.value, (z) => (d(), y(n($e), {
|
6885
6885
|
"model-value": z,
|
6886
6886
|
title: z.name,
|
6887
6887
|
border: "",
|
@@ -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(
|
7209
|
+
(d(!0), D(Y, null, oe(o.value, (m) => (d(), y(n($e), {
|
7210
7210
|
border: "",
|
7211
7211
|
title: m.name,
|
7212
7212
|
subtitle: m.label,
|
@@ -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"],
|
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({
|
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,
|
8179
|
+
}, null, 8, Gp)
|
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,
|
8197
|
+
}, null, 8, $p)
|
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:
|
8599
|
-
{ label: "下边框", svg:
|
8598
|
+
{ label: "上边框", svg: Gr, value: "border-top" },
|
8599
|
+
{ label: "下边框", svg: $r, value: "border-bottom" },
|
8600
8600
|
{ label: "右边框", svg: qr, value: "border-right" }
|
8601
8601
|
], o = [
|
8602
8602
|
{ label: "无", value: "none", svg: jo },
|
@@ -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(
|
8858
|
+
c(n($t), {
|
8859
8859
|
type: "warning",
|
8860
8860
|
title: "样式已绑定了变量,需解除绑定才能编辑",
|
8861
8861
|
"show-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(
|
9807
|
+
(d(!0), D(Y, null, oe(e.topics, (p, f) => (d(), y(n($e), {
|
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(
|
9841
|
+
c(n($t), {
|
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" },
|
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({
|
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",
|
9951
|
+
R("div", Gm, [
|
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",
|
9990
|
+
R("div", $m, [
|
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,
|
10065
|
+
var Ns, $a;
|
10066
10066
|
function tv() {
|
10067
|
-
if (
|
10068
|
-
|
10067
|
+
if ($a) return Ns;
|
10068
|
+
$a = 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
|
10076
|
-
(me === "object" || me === "function") && !Object.isFrozen(
|
10075
|
+
const G = C[P], me = typeof G;
|
10076
|
+
(me === "object" || me === "function") && !Object.isFrozen(G) && r(G);
|
10077
10077
|
}), C;
|
10078
10078
|
}
|
10079
10079
|
class t {
|
@@ -10091,23 +10091,23 @@ function tv() {
|
|
10091
10091
|
return C.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
10092
10092
|
}
|
10093
10093
|
function s(C, ...P) {
|
10094
|
-
const
|
10094
|
+
const G = /* @__PURE__ */ Object.create(null);
|
10095
10095
|
for (const me in C)
|
10096
|
-
|
10096
|
+
G[me] = C[me];
|
10097
10097
|
return P.forEach(function(me) {
|
10098
10098
|
for (const Ue in me)
|
10099
|
-
|
10099
|
+
G[Ue] = me[Ue];
|
10100
10100
|
}), /** @type {T} */
|
10101
|
-
|
10101
|
+
G;
|
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
|
10107
|
+
const G = C.split(".");
|
10108
10108
|
return [
|
10109
|
-
`${P}${
|
10110
|
-
|
10109
|
+
`${P}${G.shift()}`,
|
10110
|
+
...G.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,
|
10123
|
-
this.buffer = "", this.classPrefix =
|
10122
|
+
constructor(P, G) {
|
10123
|
+
this.buffer = "", this.classPrefix = G.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
|
10138
|
+
const G = l(
|
10139
10139
|
P.scope,
|
10140
10140
|
{ prefix: this.classPrefix }
|
10141
10141
|
);
|
10142
|
-
this.span(
|
10142
|
+
this.span(G);
|
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
|
10187
|
-
this.add(
|
10186
|
+
const G = u({ scope: P });
|
10187
|
+
this.add(G), this.stack.push(G);
|
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,
|
10211
|
-
return typeof
|
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;
|
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((
|
10218
|
-
p._collapse(
|
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);
|
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,
|
10246
|
+
__addSublanguage(P, G) {
|
10247
10247
|
const me = P.root;
|
10248
|
-
|
10248
|
+
G && (me.scope = `language:${G}`), 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((
|
10270
|
+
return C.map((G) => v(G)).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
|
10284
|
-
return
|
10283
|
+
const G = C && C.exec(P);
|
10284
|
+
return G && G.index === 0;
|
10285
10285
|
}
|
10286
10286
|
const V = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
10287
10287
|
function O(C, { joinWith: P }) {
|
10288
|
-
let
|
10288
|
+
let G = 0;
|
10289
10289
|
return C.map((me) => {
|
10290
|
-
|
10291
|
-
const Ue =
|
10290
|
+
G += 1;
|
10291
|
+
const Ue = G;
|
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] === "(" &&
|
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++);
|
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": (
|
10318
|
-
|
10317
|
+
"on:begin": (G, me) => {
|
10318
|
+
G.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,
|
10338
|
+
}, q = function(C, P, G = {}) {
|
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
|
-
|
10346
|
+
G
|
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,
|
10459
|
-
|
10458
|
+
"on:begin": (P, G) => {
|
10459
|
+
G.data._beginMatch = P[1];
|
10460
10460
|
},
|
10461
10461
|
/** @type {ModeCallback} */
|
10462
|
-
"on:end": (P,
|
10463
|
-
|
10462
|
+
"on:end": (P, G) => {
|
10463
|
+
G.data._beginMatch !== P[1] && G.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
|
10507
|
+
const G = Object.assign({}, C);
|
10508
10508
|
Object.keys(C).forEach((me) => {
|
10509
10509
|
delete C[me];
|
10510
|
-
}), C.keywords =
|
10510
|
+
}), C.keywords = G.keywords, C.begin = k(G.beforeMatch, m(G.begin)), C.starts = {
|
10511
10511
|
relevance: 0,
|
10512
10512
|
contains: [
|
10513
|
-
Object.assign(
|
10513
|
+
Object.assign(G, { endsParent: !0 })
|
10514
10514
|
]
|
10515
|
-
}, C.relevance = 0, delete
|
10515
|
+
}, C.relevance = 0, delete G.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,
|
10532
|
+
function Kt(C, P, G = ys) {
|
10533
10533
|
const me = /* @__PURE__ */ Object.create(null);
|
10534
|
-
return typeof C == "string" ? Ue(
|
10534
|
+
return typeof C == "string" ? Ue(G, C.split(" ")) : Array.isArray(C) ? Ue(G, 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:
|
10560
|
+
function we(C, P, { key: G }) {
|
10561
10561
|
let me = 0;
|
10562
|
-
const Ue = C[
|
10562
|
+
const Ue = C[G], 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[
|
10565
|
+
C[G] = ae, C[G]._emit = Fe, C[G]._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
|
10598
|
+
class G {
|
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
|
10628
|
+
const de = new G();
|
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,
|
10710
|
-
super(P), this.name = "HTMLInjectionError", this.html =
|
10709
|
+
constructor(P, G) {
|
10710
|
+
super(P), this.name = "HTMLInjectionError", this.html = G;
|
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),
|
10714
|
+
const P = /* @__PURE__ */ Object.create(null), G = /* @__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 = "",
|
10744
|
-
typeof re == "object" ? (Ve = J, Se = re.ignoreIllegals,
|
10745
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
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);
|
10746
10746
|
const Rt = {
|
10747
10747
|
code: Ve,
|
10748
|
-
language:
|
10748
|
+
language: Ge
|
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
|
10756
|
-
function Rt(
|
10757
|
-
return
|
10755
|
+
const Ge = /* @__PURE__ */ Object.create(null);
|
10756
|
+
function Rt($, le) {
|
10757
|
+
return $.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
|
10764
|
+
let $ = 0;
|
10765
10765
|
ve.keywordPatternRe.lastIndex = 0;
|
10766
10766
|
let le = ve.keywordPatternRe.exec(Re), ye = "";
|
10767
10767
|
for (; le; ) {
|
10768
|
-
ye += Re.substring(
|
10768
|
+
ye += Re.substring($, le.index);
|
10769
10769
|
const Ee = Ut.case_insensitive ? le[0].toLowerCase() : le[0], ut = Rt(ve, Ee);
|
10770
10770
|
if (ut) {
|
10771
|
-
const [
|
10772
|
-
if (nt.addText(ye), ye = "",
|
10771
|
+
const [Gt, _l] = ut;
|
10772
|
+
if (nt.addText(ye), ye = "", Ge[Ee] = (Ge[Ee] || 0) + 1, Ge[Ee] <= al && (Hn += _l), Gt.startsWith("_"))
|
10773
10773
|
ye += le[0];
|
10774
10774
|
else {
|
10775
|
-
const kl = Ut.classNameAliases[
|
10775
|
+
const kl = Ut.classNameAliases[Gt] || Gt;
|
10776
10776
|
Lt(le[0], kl);
|
10777
10777
|
}
|
10778
10778
|
} else
|
10779
10779
|
ye += le[0];
|
10780
|
-
|
10780
|
+
$ = ve.keywordPatternRe.lastIndex, le = ve.keywordPatternRe.exec(Re);
|
10781
10781
|
}
|
10782
|
-
ye += Re.substring(
|
10782
|
+
ye += Re.substring($), nt.addText(ye);
|
10783
10783
|
}
|
10784
10784
|
function Jn() {
|
10785
10785
|
if (Re === "") return;
|
10786
|
-
let
|
10786
|
+
let $ = 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
|
-
|
10793
|
-
|
10792
|
+
$ = An(ve.subLanguage, Re, !0, Ba[ve.subLanguage]), Ba[ve.subLanguage] = /** @type {CompiledMode} */
|
10793
|
+
$._top;
|
10794
10794
|
} else
|
10795
|
-
|
10796
|
-
ve.relevance > 0 && (Hn +=
|
10795
|
+
$ = Cs(Re, ve.subLanguage.length ? ve.subLanguage : null);
|
10796
|
+
ve.relevance > 0 && (Hn += $.relevance), nt.__addSublanguage($._emitter, $.language);
|
10797
10797
|
}
|
10798
10798
|
function bt() {
|
10799
10799
|
ve.subLanguage != null ? Jn() : tn(), Re = "";
|
10800
10800
|
}
|
10801
|
-
function Lt(
|
10802
|
-
|
10801
|
+
function Lt($, le) {
|
10802
|
+
$ !== "" && (nt.startScope(le), nt.addText($), nt.endScope());
|
10803
10803
|
}
|
10804
|
-
function Va(
|
10804
|
+
function Va($, le) {
|
10805
10805
|
let ye = 1;
|
10806
10806
|
const Ee = le.length - 1;
|
10807
10807
|
for (; ye <= Ee; ) {
|
10808
|
-
if (
|
10808
|
+
if (!$._emit[ye]) {
|
10809
10809
|
ye++;
|
10810
10810
|
continue;
|
10811
10811
|
}
|
10812
|
-
const ut = Ut.classNameAliases[
|
10813
|
-
ut ? Lt(
|
10812
|
+
const ut = Ut.classNameAliases[$[ye]] || $[ye], Gt = le[ye];
|
10813
|
+
ut ? Lt(Gt, ut) : (Re = Gt, tn(), Re = ""), ye++;
|
10814
10814
|
}
|
10815
10815
|
}
|
10816
|
-
function Ra(
|
10817
|
-
return
|
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;
|
10818
10818
|
}
|
10819
|
-
function Ta(
|
10820
|
-
let Ee = j(
|
10819
|
+
function Ta($, le, ye) {
|
10820
|
+
let Ee = j($.endRe, ye);
|
10821
10821
|
if (Ee) {
|
10822
|
-
if (
|
10823
|
-
const ut = new t(
|
10824
|
-
|
10822
|
+
if ($["on:end"]) {
|
10823
|
+
const ut = new t($);
|
10824
|
+
$["on:end"](le, ut), ut.isMatchIgnored && (Ee = !1);
|
10825
10825
|
}
|
10826
10826
|
if (Ee) {
|
10827
|
-
for (;
|
10828
|
-
|
10829
|
-
return
|
10827
|
+
for (; $.endsParent && $.parent; )
|
10828
|
+
$ = $.parent;
|
10829
|
+
return $;
|
10830
10830
|
}
|
10831
10831
|
}
|
10832
|
-
if (
|
10833
|
-
return Ta(
|
10832
|
+
if ($.endsWithParent)
|
10833
|
+
return Ta($.parent, le, ye);
|
10834
10834
|
}
|
10835
|
-
function fl(
|
10836
|
-
return ve.matcher.regexIndex === 0 ? (Re +=
|
10835
|
+
function fl($) {
|
10836
|
+
return ve.matcher.regexIndex === 0 ? (Re += $[0], 1) : (Is = !0, 0);
|
10837
10837
|
}
|
10838
|
-
function hl(
|
10839
|
-
const le =
|
10840
|
-
for (const
|
10841
|
-
if (
|
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))
|
10842
10842
|
return fl(le);
|
10843
|
-
return ye.skip ? Re += le : (ye.excludeBegin && (Re += le), bt(), !ye.returnBegin && !ye.excludeBegin && (Re = le)), Ra(ye,
|
10843
|
+
return ye.skip ? Re += le : (ye.excludeBegin && (Re += le), bt(), !ye.returnBegin && !ye.excludeBegin && (Re = le)), Ra(ye, $), ye.returnBegin ? 0 : le.length;
|
10844
10844
|
}
|
10845
|
-
function bl(
|
10846
|
-
const le =
|
10845
|
+
function bl($) {
|
10846
|
+
const le = $[0], ye = re.substring($.index), Ee = Ta(ve, $, 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,
|
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));
|
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,
|
10854
|
+
return Ee.starts && Ra(Ee.starts, $), ut.returnEnd ? 0 : le.length;
|
10855
10855
|
}
|
10856
10856
|
function yl() {
|
10857
|
-
const
|
10857
|
+
const $ = [];
|
10858
10858
|
for (let le = ve; le !== Ut; le = le.parent)
|
10859
|
-
le.scope &&
|
10860
|
-
|
10859
|
+
le.scope && $.unshift(le.scope);
|
10860
|
+
$.forEach((le) => nt.openNode(le));
|
10861
10861
|
}
|
10862
10862
|
let Wn = {};
|
10863
|
-
function ja(
|
10863
|
+
function ja($, le) {
|
10864
10864
|
const ye = le && le[0];
|
10865
|
-
if (Re +=
|
10865
|
+
if (Re += $, 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`), $e = 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
|
10906
|
-
if (
|
10907
|
-
const le = re.substring(pn,
|
10908
|
-
pn =
|
10905
|
+
const $ = ve.matcher.exec(re);
|
10906
|
+
if (!$) break;
|
10907
|
+
const le = re.substring(pn, $.index), ye = ja(le, $);
|
10908
|
+
pn = $.index + ye;
|
10909
10909
|
}
|
10910
10910
|
ja(re.substring(pn));
|
10911
10911
|
}
|
@@ -10917,18 +10917,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $e = J, Ve = re), Se
|
|
10917
10917
|
_emitter: nt,
|
10918
10918
|
_top: ve
|
10919
10919
|
};
|
10920
|
-
} catch (
|
10921
|
-
if (
|
10920
|
+
} catch ($) {
|
10921
|
+
if ($.message && $.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:
|
10928
|
+
message: $.message,
|
10929
10929
|
index: pn,
|
10930
10930
|
context: re.slice(pn - 100, pn + 100),
|
10931
|
-
mode:
|
10931
|
+
mode: $.mode,
|
10932
10932
|
resultSoFar: Es
|
10933
10933
|
},
|
10934
10934
|
_emitter: nt
|
@@ -10939,11 +10939,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $e = J, Ve = re), Se
|
|
10939
10939
|
value: ks(re),
|
10940
10940
|
illegal: !1,
|
10941
10941
|
relevance: 0,
|
10942
|
-
errorRaised:
|
10942
|
+
errorRaised: $,
|
10943
10943
|
_emitter: nt,
|
10944
10944
|
_top: ve
|
10945
10945
|
};
|
10946
|
-
throw
|
10946
|
+
throw $;
|
10947
10947
|
}
|
10948
10948
|
}
|
10949
10949
|
function Ss(J) {
|
@@ -10962,7 +10962,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), $e = J, Ve = re), Se
|
|
10962
10962
|
(bt) => An(bt, J, !1)
|
10963
10963
|
);
|
10964
10964
|
Ve.unshift(Se);
|
10965
|
-
const
|
10965
|
+
const Ge = 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`), $e = J, Ve = re), Se
|
|
10971
10971
|
return -1;
|
10972
10972
|
}
|
10973
10973
|
return 0;
|
10974
|
-
}), [Rt, tn] =
|
10974
|
+
}), [Rt, tn] = Ge, Jn = Rt;
|
10975
10975
|
return Jn.secondBest = tn, Jn;
|
10976
10976
|
}
|
10977
10977
|
function ol(J, re, Se) {
|
10978
|
-
const Ve = re &&
|
10978
|
+
const Ve = re && G[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`), $e = J, Ve = re), Se
|
|
10995
10995
|
J.innerHTML
|
10996
10996
|
);
|
10997
10997
|
re = J;
|
10998
|
-
const Ve = re.textContent,
|
10999
|
-
J.innerHTML =
|
11000
|
-
language:
|
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,
|
11001
11001
|
// TODO: remove with version 11.0
|
11002
|
-
re:
|
11003
|
-
relevance:
|
11004
|
-
},
|
11005
|
-
language:
|
11006
|
-
relevance:
|
11007
|
-
}), Fn("after:highlightElement", { el: J, result:
|
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 });
|
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`), $e = J, Ve = re), Se
|
|
11041
11041
|
}
|
11042
11042
|
function cl(J) {
|
11043
11043
|
delete P[J];
|
11044
|
-
for (const re of Object.keys(
|
11045
|
-
|
11044
|
+
for (const re of Object.keys(G))
|
11045
|
+
G[re] === J && delete G[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[
|
11051
|
+
return J = (J || "").toLowerCase(), P[J] || P[G[J]];
|
11052
11052
|
}
|
11053
11053
|
function xa(J, { languageName: re }) {
|
11054
11054
|
typeof J == "string" && (J = [J]), J.forEach((Se) => {
|
11055
|
-
|
11055
|
+
G[Se.toLowerCase()] = re;
|
11056
11056
|
});
|
11057
11057
|
}
|
11058
11058
|
function Ia(J) {
|
@@ -11392,7 +11392,7 @@ const qa = "[A-Za-z$_][0-9A-Za-z$_]*", av = [
|
|
11392
11392
|
"undefined",
|
11393
11393
|
"NaN",
|
11394
11394
|
"Infinity"
|
11395
|
-
],
|
11395
|
+
], $o = [
|
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
|
-
|
11486
|
+
$o,
|
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
|
-
|
11742
|
+
...$o,
|
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(
|
13138
|
+
c(n($t), {
|
13139
13139
|
type: "warning",
|
13140
13140
|
closable: !1,
|
13141
13141
|
title: "您未登录"
|
@@ -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(
|
13524
|
+
u.value === "text" ? (d(), y(Go, {
|
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(
|
13552
|
+
(d(!0), D(Y, null, oe(l.value, (k, w) => (d(), y(n($e), {
|
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(
|
13570
|
+
c(n($t), {
|
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
|
-
}),
|
13579
|
+
}), Gv = /* @__PURE__ */ St(Kv, [["__scopeId", "data-v-6c1a0add"]]), Xa = /* @__PURE__ */ M({
|
13580
13580
|
__name: "Editor",
|
13581
13581
|
props: {
|
13582
13582
|
lang: { default: "typescript" },
|
@@ -13638,7 +13638,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
13638
13638
|
style: mn({ height: s.height })
|
13639
13639
|
}, null, 38));
|
13640
13640
|
}
|
13641
|
-
}),
|
13641
|
+
}), $v = /* @__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(
|
13702
|
+
}), qv = /* @__PURE__ */ St($v, [["__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(
|
13719
|
+
c(n($t), {
|
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(
|
13790
|
+
c(n($t), {
|
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(
|
13892
|
+
c(n($t), {
|
13893
13893
|
type: "success",
|
13894
13894
|
closable: !1
|
13895
13895
|
}, {
|
@@ -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
|
-
},
|
14068
|
+
}, $s({
|
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(
|
14129
|
+
tt.value && Nt.value ? (d(), y(Gv, { 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(
|
14197
|
+
n(u) ? (d(), y(Go, {
|
14198
14198
|
key: 0,
|
14199
14199
|
models: n(o),
|
14200
14200
|
loading: n(a) || n(T),
|
@@ -14287,20 +14287,17 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
14287
14287
|
// 在此添加增强代码
|
14288
14288
|
}`, wg = `(config, app) => {
|
14289
14289
|
return config;
|
14290
|
-
|
14290
|
+
}`, _g = `(res, app) => {
|
14291
14291
|
return res;
|
14292
|
-
|
14292
|
+
}`, kg = `(to, from, next, app) => {
|
14293
14293
|
next();
|
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
|
14299
14297
|
return {
|
14300
14298
|
// session: false,
|
14301
14299
|
// authKey: 'Authorization',
|
14302
|
-
storageKey,
|
14303
|
-
// storagePrefix: '__VTJ_',
|
14300
|
+
// storageKey: 'ACCESS_STORAGE',
|
14304
14301
|
// auth: '/#/login',
|
14305
14302
|
// whiteList: (to) => true
|
14306
14303
|
// redirectParam: 'r',
|
@@ -14539,7 +14536,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
14539
14536
|
Logo: zc,
|
14540
14537
|
EmptyWidget: Uc,
|
14541
14538
|
Switcher: Wc,
|
14542
|
-
Toolbar:
|
14539
|
+
Toolbar: $c,
|
14543
14540
|
Actions: sd,
|
14544
14541
|
Pages: Cd,
|
14545
14542
|
Blocks: xd,
|
@@ -15849,7 +15846,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
15849
15846
|
_: 1
|
15850
15847
|
}, 16, ["class", "file-list"]));
|
15851
15848
|
}
|
15852
|
-
}), Kg = { class: "v-section-setter" },
|
15849
|
+
}), Kg = { class: "v-section-setter" }, Gg = /* @__PURE__ */ M({
|
15853
15850
|
name: "SectionSetter",
|
15854
15851
|
__name: "section",
|
15855
15852
|
props: {
|
@@ -15879,7 +15876,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
15879
15876
|
}, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
|
15880
15877
|
]));
|
15881
15878
|
}
|
15882
|
-
}),
|
15879
|
+
}), $g = { class: "v-slider-setter" }, qg = /* @__PURE__ */ M({
|
15883
15880
|
name: "SliderSetter",
|
15884
15881
|
__name: "slider",
|
15885
15882
|
props: {
|
@@ -15900,7 +15897,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
15900
15897
|
const o = () => {
|
15901
15898
|
a.value = void 0, s("change", void 0), s("update:modelValue", void 0);
|
15902
15899
|
};
|
15903
|
-
return (l, i) => (d(), D("div",
|
15900
|
+
return (l, i) => (d(), D("div", $g, [
|
15904
15901
|
c(n(Fl), We({ size: "small" }, l.$attrs, {
|
15905
15902
|
modelValue: a.value,
|
15906
15903
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
|
@@ -16285,7 +16282,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
16285
16282
|
TagSetter: Jg,
|
16286
16283
|
SizeSetter: el,
|
16287
16284
|
ImageSetter: Qg,
|
16288
|
-
SectionSetter:
|
16285
|
+
SectionSetter: Gg,
|
16289
16286
|
SliderSetter: qg,
|
16290
16287
|
FileSetter: _a,
|
16291
16288
|
VanIconSetter: sf,
|
@@ -17303,7 +17300,7 @@ class gf {
|
|
17303
17300
|
ee(this, "debounceSend");
|
17304
17301
|
ee(this, "timer", null);
|
17305
17302
|
ee(this, "project");
|
17306
|
-
this.access = e, this.service = s, this.remote = t || "https://lcdp.vtj.pro", this.api = this.remote +
|
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);
|
17307
17304
|
}
|
17308
17305
|
setProject(t) {
|
17309
17306
|
this.project = t;
|
@@ -17844,7 +17841,7 @@ class yf {
|
|
17844
17841
|
t && Object.assign(this.__state, t);
|
17845
17842
|
}
|
17846
17843
|
save(t, e) {
|
17847
|
-
this.__state[t] = e, _n.save(Wa,
|
17844
|
+
this.__state[t] = e, _n.save(Wa, Gs(this.__state), { type: "local" });
|
17848
17845
|
}
|
17849
17846
|
get outlineEnabled() {
|
17850
17847
|
return this.__state.outlineEnabled;
|
@@ -17984,17 +17981,20 @@ class ch extends fo {
|
|
17984
17981
|
* @param project 项目Schema
|
17985
17982
|
*/
|
17986
17983
|
async init(e) {
|
17987
|
-
const s = e.platform
|
17988
|
-
e.dependencies = eo.merge(
|
17984
|
+
const s = e.platform;
|
17985
|
+
s && (e.dependencies = eo.merge(
|
17989
17986
|
e.dependencies || [],
|
17990
17987
|
s
|
17991
|
-
);
|
17988
|
+
));
|
17992
17989
|
const a = await this.service.init(e, !0).catch((o) => (qt.warn("VTJEngine service init fail.", o), null));
|
17993
|
-
a && (
|
17990
|
+
a && (a.platform === "uniapp" && (vn.set("UniConfig", {
|
17994
17991
|
invisible: !1
|
17995
17992
|
}), vn.set("Globals", {
|
17996
17993
|
invisible: !0
|
17997
|
-
})), a.dependencies = eo.merge(
|
17994
|
+
})), a.dependencies = eo.merge(
|
17995
|
+
a.dependencies || [],
|
17996
|
+
a.platform
|
17997
|
+
), 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());
|
17998
17998
|
}
|
17999
17999
|
/**
|
18000
18000
|
* 获取增强配置
|
@@ -18382,7 +18382,7 @@ const wf = /* @__PURE__ */ M({
|
|
18382
18382
|
rightWidth: u,
|
18383
18383
|
preview: j,
|
18384
18384
|
isPreview: l
|
18385
|
-
}), (A, T) => (d(), y(n(Wl), { locale: n(
|
18385
|
+
}), (A, T) => (d(), y(n(Wl), { locale: n(Gl) }, {
|
18386
18386
|
default: h(() => [
|
18387
18387
|
c(n(Oa), { class: "v-skeleton" }, {
|
18388
18388
|
default: h(() => [
|
@@ -18610,7 +18610,7 @@ const wf = /* @__PURE__ */ M({
|
|
18610
18610
|
dropdown: h(() => [
|
18611
18611
|
c(n(io), null, {
|
18612
18612
|
default: h(() => [
|
18613
|
-
(d(!0), D(Y, null, oe(e.setters, (j) => (d(), y(n(
|
18613
|
+
(d(!0), D(Y, null, oe(e.setters, (j) => (d(), y(n(Gn), {
|
18614
18614
|
command: j,
|
18615
18615
|
key: j.name
|
18616
18616
|
}, {
|
@@ -18762,7 +18762,7 @@ const wf = /* @__PURE__ */ M({
|
|
18762
18762
|
}), (w, S) => (d(), D("div", Nf, [
|
18763
18763
|
R("div", Pf, [
|
18764
18764
|
R("div", zf, [
|
18765
|
-
(d(!0), D(Y, null, oe(u.value, (_) => (d(), y(n(
|
18765
|
+
(d(!0), D(Y, null, oe(u.value, (_) => (d(), y(n(Ga), {
|
18766
18766
|
key: `icon-${_.name}`,
|
18767
18767
|
class: ge(`v-apps-region-${_.name}`),
|
18768
18768
|
icon: _.icon,
|
@@ -18773,7 +18773,7 @@ const wf = /* @__PURE__ */ M({
|
|
18773
18773
|
}, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
|
18774
18774
|
]),
|
18775
18775
|
R("div", Lf, [
|
18776
|
-
(d(!0), D(Y, null, oe(p.value, (_) => (d(), y(n(
|
18776
|
+
(d(!0), D(Y, null, oe(p.value, (_) => (d(), y(n(Ga), {
|
18777
18777
|
key: `icon-${_.name}`,
|
18778
18778
|
icon: _.icon,
|
18779
18779
|
label: _.label,
|
@@ -19091,7 +19091,7 @@ export {
|
|
19091
19091
|
pf as O,
|
19092
19092
|
zu as P,
|
19093
19093
|
mf as Q,
|
19094
|
-
|
19094
|
+
Gu as R,
|
19095
19095
|
Ja as S,
|
19096
19096
|
df as T,
|
19097
19097
|
uh as U,
|
@@ -19125,14 +19125,14 @@ export {
|
|
19125
19125
|
Qu as d,
|
19126
19126
|
Ku as e,
|
19127
19127
|
Wa as f,
|
19128
|
-
|
19128
|
+
$u as g,
|
19129
19129
|
_f as h,
|
19130
19130
|
If as i,
|
19131
19131
|
Me as j,
|
19132
|
-
|
19132
|
+
Ga as k,
|
19133
19133
|
fe as l,
|
19134
19134
|
gs as m,
|
19135
|
-
|
19135
|
+
$e as n,
|
19136
19136
|
as as o,
|
19137
19137
|
wa as p,
|
19138
19138
|
_d as q,
|