ss-component-new 1.1.112 → 1.1.115

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.
Files changed (54) hide show
  1. package/dist/{array-r-3zzaCz.js → array-B1nKYchL.js} +322 -316
  2. package/dist/array-Bv_j-DQ6.cjs +7 -0
  3. package/dist/cloneDeep-BkHxCZQ6.cjs +1 -0
  4. package/dist/{cloneDeep-B5NdV18l.js → cloneDeep-DDG2sYfV.js} +2 -8
  5. package/dist/{index-C7z6Nknz.cjs → index-B2YxsOFS.cjs} +1 -1
  6. package/dist/index-B9CeiT-K.cjs +6 -0
  7. package/dist/{index-CxYp0SX-.js → index-BDQh7_bN.js} +1 -1
  8. package/dist/index-BKH3emIo.js +400 -0
  9. package/dist/{index-S4VNvRUf.cjs → index-BOMVVmWM.cjs} +1 -1
  10. package/dist/index-BZEbgud2.cjs +6 -0
  11. package/dist/index-BeUperzd.cjs +1 -0
  12. package/dist/index-BgZXex98.js +199 -0
  13. package/dist/{index-4wnUfQut.js → index-BrXeR-w4.js} +1025 -1121
  14. package/dist/{index-BGKrZFr8.js → index-Bx4Vzo3K.js} +3 -3
  15. package/dist/{index-DD2e9du_.cjs → index-ByH4hihL.cjs} +1 -1
  16. package/dist/{index-DzPlnzff.js → index-C1474J4s.js} +2 -2
  17. package/dist/{index-CqEcYupP.cjs → index-CfR4fhRH.cjs} +1 -1
  18. package/dist/index-CosMCnZD.js +456 -0
  19. package/dist/{index-Hl4jHcdx.cjs → index-DGEVn6kJ.cjs} +1 -1
  20. package/dist/index-DHZKgJQ-.cjs +1 -0
  21. package/dist/{index-DFsdlgzo.js → index-DbEFJXIu.js} +4 -4
  22. package/dist/{index-D-vLfoki.js → index-DcJXJfJq.js} +68 -69
  23. package/dist/{index-BK1KwYhe.js → index-DmZPczSP.js} +469 -461
  24. package/dist/{index-B7QDZnsI.js → index-FuXHUCO7.js} +2 -2
  25. package/dist/index-PctLLbfg.cjs +1 -0
  26. package/dist/{index-Bu25M4KE.js → index-RTJn4TlV.js} +5 -5
  27. package/dist/{index-ZfmF7NRS.js → index-RUWVqYLT.js} +1 -1
  28. package/dist/{index-KwU7aUzZ.cjs → index-fstYT4Ji.cjs} +1 -1
  29. package/dist/{index-umHSQ-iv.cjs → index-pKfoDOT3.cjs} +1 -1
  30. package/dist/{index-1aLaqVXO.cjs → index-tXx4uqsB.cjs} +1 -1
  31. package/dist/{index-DkTmhYif.cjs → index-xFolZMqB.cjs} +1 -1
  32. package/dist/{index-D0oXay6F.js → index-x_myaReY.js} +1 -1
  33. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-lBl-SmuD.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Bwb6U8rC.js} +22 -22
  34. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dbr2PMMl.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CF3B2HoM.cjs} +1 -1
  35. package/dist/{main-DjYsizhD.cjs → main-BhZ-c5nF.cjs} +1 -1
  36. package/dist/{main-9EPFfW86.js → main-CaHX_enG.js} +4 -4
  37. package/dist/{request-BGJRjm5F.cjs → request-CNnOyEMG.cjs} +1 -1
  38. package/dist/{request-CgWld6Ls.js → request-_jH8DsLJ.js} +1 -1
  39. package/dist/ss-component.cjs +1 -1
  40. package/dist/ss-component.css +1 -1
  41. package/dist/ss-component.js +6 -6
  42. package/dist/ss-component2.cjs +1 -1
  43. package/dist/ss-component2.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/array-DDbulFhm.cjs +0 -7
  46. package/dist/cloneDeep-_g-S2Mck.cjs +0 -1
  47. package/dist/index-6XTKeDE8.cjs +0 -6
  48. package/dist/index-CsP9AIPx.cjs +0 -1
  49. package/dist/index-Dlr47z1k.js +0 -205
  50. package/dist/index-DsvTsDUx.cjs +0 -7
  51. package/dist/index-DtKpPw6N.js +0 -456
  52. package/dist/index-PCZs_buK.cjs +0 -1
  53. package/dist/index-n2QU5Ht8.js +0 -2707
  54. package/dist/index-oJOjtktc.cjs +0 -6
@@ -1,12 +1,12 @@
1
- import { u as Ge, p as de, s as Le } from "./index-DtKpPw6N.js";
2
- import { ref as R, watch as q, createElementBlock as M, openBlock as Z, createVNode as W, resolveComponent as Oe, createElementVNode as G, toDisplayString as z, withCtx as ee, createTextVNode as le, Fragment as Ce, renderList as $e, createCommentVNode as We, createBlock as ze, resolveDynamicComponent as Ze } from "vue";
3
- import { s as ye, f as Me, a as te } from "./index-BK1KwYhe.js";
1
+ import { u as Le, p as de, s as We } from "./index-CosMCnZD.js";
2
+ import { ref as R, watch as q, createElementBlock as M, openBlock as Z, createVNode as W, resolveComponent as _e, createElementVNode as G, toDisplayString as z, withCtx as ee, createTextVNode as le, Fragment as Ce, renderList as $e, createCommentVNode as ze, createBlock as Ze, resolveDynamicComponent as Me } from "vue";
3
+ import { s as ye, f as He, a as te } from "./index-DmZPczSP.js";
4
4
  import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { c as r } from "./cloneDeep-B5NdV18l.js";
6
- import { _ as He } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
7
- import { s as _e, u as qe } from "./menu-BIINB-0Y.js";
8
- import "./request-CgWld6Ls.js";
9
- import { u as Qe } from "./modelComp-CHWFvhCq.js";
5
+ import { c as r } from "./cloneDeep-DDG2sYfV.js";
6
+ import { _ as qe } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
7
+ import { s as xe, u as Qe } from "./menu-BIINB-0Y.js";
8
+ import "./request-_jH8DsLJ.js";
9
+ import { u as Xe } from "./modelComp-CHWFvhCq.js";
10
10
  const ne = [
11
11
  {
12
12
  key: "单选",
@@ -24,7 +24,7 @@ const ne = [
24
24
  key: "上传",
25
25
  value: "Upload"
26
26
  }
27
- ], Xe = { class: "form-content" }, Ye = {
27
+ ], Ye = { class: "form-content" }, we = {
28
28
  __name: "index",
29
29
  props: {
30
30
  itemData: {
@@ -39,11 +39,11 @@ const ne = [
39
39
  },
40
40
  emits: ["change", "contentChange"],
41
41
  setup(t, { emit: s }) {
42
- const l = t, e = s, n = R([]), a = R(!1), o = R([]), y = Ge(de), O = R(), b = (d) => {
43
- var u, c, p, g;
44
- const $ = (c = (u = r(l.itemData)) == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "formContent")) == null ? void 0 : c.contents, x = r(d.content);
42
+ const l = t, e = s, n = R([]), a = R(!1), o = R([]), y = Le(de), O = R(), b = (d) => {
43
+ var p, c, u, C;
44
+ const $ = (c = (p = r(l.itemData)) == null ? void 0 : p.find((i) => (i == null ? void 0 : i.key) === "formContent")) == null ? void 0 : c.contents, x = r(d.content);
45
45
  let k = {};
46
- x && ((p = Object.values(x)) == null ? void 0 : p.length) > 0 && ((g = Object.values(x)) == null || g.forEach((i, f) => {
46
+ x && ((u = Object.values(x)) == null ? void 0 : u.length) > 0 && ((C = Object.values(x)) == null || C.forEach((i, f) => {
47
47
  k[$[f].key] = i;
48
48
  }));
49
49
  const S = {
@@ -52,28 +52,28 @@ const ne = [
52
52
  buttonName: d == null ? void 0 : d.buttonName
53
53
  };
54
54
  e("change", S);
55
- }, C = (d) => {
55
+ }, g = (d) => {
56
56
  var k, S;
57
57
  if (!d) return;
58
58
  if (((k = Object.values(r(d))) == null ? void 0 : k.length) > 0) {
59
- const u = (S = Object.values(r(d))) == null ? void 0 : S.map((p) => p);
59
+ const p = (S = Object.values(r(d))) == null ? void 0 : S.map((u) => u);
60
60
  let c = "";
61
- u == null || u.forEach((p) => {
62
- p !== "" && p !== void 0 && (c = c === "" ? p : c + "/" + p);
63
- }), y.setSelectArray(u), y.setSelectString(c);
61
+ p == null || p.forEach((u) => {
62
+ u !== "" && u !== void 0 && (c = c === "" ? u : c + "/" + u);
63
+ }), y.setSelectArray(p), y.setSelectString(c);
64
64
  }
65
- const $ = r(l.itemData), x = $ == null ? void 0 : $.map((u) => {
65
+ const $ = r(l.itemData), x = $ == null ? void 0 : $.map((p) => {
66
66
  var c;
67
- return (u == null ? void 0 : u.key) === "formContent" && ((c = u.contents) == null || c.map((p, g) => {
67
+ return (p == null ? void 0 : p.key) === "formContent" && ((c = p.contents) == null || c.map((u, C) => {
68
68
  var i, f, h, A, T, D, _, j, E, F, U, v, N, m;
69
- return p.type = p != null && p.type ? p.type : (h = (f = (i = p == null ? void 0 : p.key.split("$")) == null ? void 0 : i[1]) == null ? void 0 : f.split("(")) != null && h[0] ? (A = ne == null ? void 0 : ne.find((P) => {
69
+ return u.type = u != null && u.type ? u.type : (h = (f = (i = u == null ? void 0 : u.key.split("$")) == null ? void 0 : i[1]) == null ? void 0 : f.split("(")) != null && h[0] ? (A = ne == null ? void 0 : ne.find((P) => {
70
70
  var L, K, V;
71
- return (P == null ? void 0 : P.key) === ((V = (K = (L = p == null ? void 0 : p.key.split("$")) == null ? void 0 : L[1]) == null ? void 0 : K.split("(")) == null ? void 0 : V[0]);
72
- })) == null ? void 0 : A.value : "Input", p.options = p != null && p.options ? p.options : ((D = (T = p == null ? void 0 : p.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : D.length) > 0 ? (E = (j = Me((_ = p == null ? void 0 : p.key.split("$")) == null ? void 0 : _[1])) == null ? void 0 : j.split(",")) == null ? void 0 : E.map((P) => ({
71
+ return (P == null ? void 0 : P.key) === ((V = (K = (L = u == null ? void 0 : u.key.split("$")) == null ? void 0 : L[1]) == null ? void 0 : K.split("(")) == null ? void 0 : V[0]);
72
+ })) == null ? void 0 : A.value : "Input", u.options = u != null && u.options ? u.options : ((D = (T = u == null ? void 0 : u.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : D.length) > 0 ? (E = (j = He((_ = u == null ? void 0 : u.key.split("$")) == null ? void 0 : _[1])) == null ? void 0 : j.split(",")) == null ? void 0 : E.map((P) => ({
73
73
  label: P,
74
74
  value: P
75
- })) : [], p != null && p.key.includes("$") && (p.key = (F = p == null ? void 0 : p.key.split("$")) == null ? void 0 : F[0]), p.value = p != null && p.value ? p.value : Array.isArray((U = Object.values(d)) == null ? void 0 : U[g]) ? (N = (v = Object.values(d)) == null ? void 0 : v[g]) == null ? void 0 : N[0] : (m = Object.values(d)) == null ? void 0 : m[g], p;
76
- })), u;
75
+ })) : [], u != null && u.key.includes("$") && (u.key = (F = u == null ? void 0 : u.key.split("$")) == null ? void 0 : F[0]), u.value = u != null && u.value ? u.value : Array.isArray((U = Object.values(d)) == null ? void 0 : U[C]) ? (N = (v = Object.values(d)) == null ? void 0 : v[C]) == null ? void 0 : N[0] : (m = Object.values(d)) == null ? void 0 : m[C], u;
76
+ })), p;
77
77
  });
78
78
  e("contentChange", {
79
79
  contents: x,
@@ -83,17 +83,17 @@ const ne = [
83
83
  return q(
84
84
  () => l.itemData,
85
85
  () => {
86
- var S, u, c, p, g, i, f, h, A, T;
87
- const d = (S = r(l.itemData)) == null ? void 0 : S.find((D) => (D == null ? void 0 : D.key) === "formContent"), $ = (u = r(l.itemData)) == null ? void 0 : u.find((D) => (D == null ? void 0 : D.key) === "formButton"), x = (c = r(l.itemData)) == null ? void 0 : c.find((D) => (D == null ? void 0 : D.key) === "formFlex"), k = (p = r(l.itemData)) == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "formWrap");
88
- if ((k == null ? void 0 : k.contents) === "纵向" ? a.value = !1 : a.value = !0, O.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((g = x == null ? void 0 : x.contents) == null ? void 0 : g.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((i = d == null ? void 0 : d.contents) == null ? void 0 : i.length) > 0 && Array.isArray(d == null ? void 0 : d.contents)) {
86
+ var S, p, c, u, C, i, f, h, A, T;
87
+ const d = (S = r(l.itemData)) == null ? void 0 : S.find((D) => (D == null ? void 0 : D.key) === "formContent"), $ = (p = r(l.itemData)) == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "formButton"), x = (c = r(l.itemData)) == null ? void 0 : c.find((D) => (D == null ? void 0 : D.key) === "formFlex"), k = (u = r(l.itemData)) == null ? void 0 : u.find((D) => (D == null ? void 0 : D.key) === "formWrap");
88
+ if ((k == null ? void 0 : k.contents) === "纵向" ? a.value = !1 : a.value = !0, O.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((C = x == null ? void 0 : x.contents) == null ? void 0 : C.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((i = d == null ? void 0 : d.contents) == null ? void 0 : i.length) > 0 && Array.isArray(d == null ? void 0 : d.contents)) {
89
89
  const D = [];
90
90
  (f = d == null ? void 0 : d.contents) == null || f.forEach((E, F) => {
91
91
  var U, v, N, m, P, L, K, V, ke;
92
92
  if ((E == null ? void 0 : E.label) !== "") {
93
93
  let ge = (E == null ? void 0 : E.key) ?? "", ce = (E == null ? void 0 : E.type) ?? "", H = (E == null ? void 0 : E.options) ?? [];
94
94
  if (E != null && E.key.includes("$") && (ge = (U = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : U[0], ((N = (v = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : v[1]) == null ? void 0 : N.length) > 0)) {
95
- const [Re, Q] = (P = (m = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : m[1]) == null ? void 0 : P.split(/[()]/);
96
- ce = ((L = ne.find((X) => (X == null ? void 0 : X.key) === Re)) == null ? void 0 : L.value) ?? "", ((K = Q == null ? void 0 : Q.split(",")) == null ? void 0 : K.length) > 0 && (H = (V = Q == null ? void 0 : Q.split(",")) == null ? void 0 : V.map((X) => ({
95
+ const [Ge, Q] = (P = (m = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : m[1]) == null ? void 0 : P.split(/[()]/);
96
+ ce = ((L = ne.find((X) => (X == null ? void 0 : X.key) === Ge)) == null ? void 0 : L.value) ?? "", ((K = Q == null ? void 0 : Q.split(",")) == null ? void 0 : K.length) > 0 && (H = (V = Q == null ? void 0 : Q.split(",")) == null ? void 0 : V.map((X) => ({
97
97
  label: X,
98
98
  value: X
99
99
  })));
@@ -130,19 +130,19 @@ const ne = [
130
130
  o.value = [];
131
131
  },
132
132
  { deep: !0, immediate: !0 }
133
- ), (d, $) => (Z(), M("div", Xe, [
133
+ ), (d, $) => (Z(), M("div", Ye, [
134
134
  W(ye, {
135
135
  rowContents: n.value,
136
136
  buttonValue: o.value,
137
137
  isRowFlex: O.value,
138
138
  isEnableWrap: !1,
139
139
  onOnButtonClick: b,
140
- onChange: C,
140
+ onChange: g,
141
141
  isButtonRow: a.value
142
142
  }, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
143
143
  ]));
144
144
  }
145
- }, we = /* @__PURE__ */ oe(Ye, [["__scopeId", "data-v-156885e4"]]), Ke = { class: "table-operate-content" }, Ve = { class: "table-operate-item" }, Ie = { class: "operate-title" }, el = { class: "operate-content" }, ll = { class: "operate-title" }, tl = { class: "operate-content" }, nl = { class: "operate-title" }, sl = { class: "operate-content" }, al = { class: "operate-content" }, rl = {
145
+ }, Ke = /* @__PURE__ */ oe(we, [["__scopeId", "data-v-156885e4"]]), Ve = { class: "table-operate-content" }, Ie = { class: "table-operate-item" }, el = { class: "operate-title" }, ll = { class: "operate-content" }, tl = { class: "operate-title" }, nl = { class: "operate-content" }, sl = { class: "operate-title" }, al = { class: "operate-content" }, rl = { class: "operate-content" }, ol = {
146
146
  __name: "operate",
147
147
  props: {
148
148
  itemContents: {
@@ -192,7 +192,7 @@ const ne = [
192
192
  prop: "operate",
193
193
  type: "operate",
194
194
  sortable: !1
195
- }]), b = R([]), C = R(0), d = R([{
195
+ }]), b = R([]), g = R(0), d = R([{
196
196
  name: "isPagination",
197
197
  label: "是否显示分页",
198
198
  type: "Switch",
@@ -346,8 +346,8 @@ const ne = [
346
346
  isNotDrag: !1,
347
347
  isEditCol: !1,
348
348
  isOperate: !1,
349
- id: C.value
350
- }), a.value = i, C.value++;
349
+ id: g.value
350
+ }), a.value = i, g.value++;
351
351
  const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "header");
352
352
  h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "header" && (A.contents = i), A))) : f.push({
353
353
  key: "header",
@@ -360,22 +360,22 @@ const ne = [
360
360
  label: "",
361
361
  type: "",
362
362
  textColor: "#000000",
363
- id: C.value
364
- }), o.value = i, C.value++;
363
+ id: g.value
364
+ }), o.value = i, g.value++;
365
365
  const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "rowButton");
366
366
  h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "rowButton" && (A.contents = i), A))) : f.push({
367
367
  key: "rowButton",
368
368
  contents: i
369
369
  }), n.value = f;
370
- }, u = () => {
370
+ }, p = () => {
371
371
  const i = r(b.value);
372
372
  let f = r(n.value);
373
373
  i.push({
374
374
  label: "",
375
375
  type: "",
376
376
  background: "#FFFFFF",
377
- id: C.value
378
- }), b.value = i, C.value++;
377
+ id: g.value
378
+ }), b.value = i, g.value++;
379
379
  const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "extraButton");
380
380
  h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "extraButton" && (A.contents = i), A))) : f.push({
381
381
  key: "extraButton",
@@ -387,13 +387,13 @@ const ne = [
387
387
  o.value = f.filter((T) => T.id !== i.id);
388
388
  const A = h == null ? void 0 : h.find((T) => T.key === "rowButton");
389
389
  A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "rowButton" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
390
- }, p = (i) => {
390
+ }, u = (i) => {
391
391
  const f = r(b.value);
392
392
  let h = r(n.value);
393
393
  b.value = f.filter((T) => T.id !== i.id);
394
394
  const A = h == null ? void 0 : h.find((T) => T.key === "extraButton");
395
395
  A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "extraButton" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
396
- }, g = (i) => {
396
+ }, C = (i) => {
397
397
  const f = r(a.value);
398
398
  let h = r(n.value);
399
399
  a.value = f.filter((T) => T.id !== i.id);
@@ -412,10 +412,10 @@ const ne = [
412
412
  },
413
413
  { deep: !0, immediate: !0 }
414
414
  ), (i, f) => {
415
- const h = Oe("el-button");
416
- return Z(), M("div", Ke, [
417
- G("div", Ve, [
418
- G("div", Ie, [
415
+ const h = _e("el-button");
416
+ return Z(), M("div", Ve, [
417
+ G("div", Ie, [
418
+ G("div", el, [
419
419
  f[1] || (f[1] = G("div", null, z("表头"), -1)),
420
420
  W(h, {
421
421
  class: "blue-operate-button",
@@ -429,17 +429,17 @@ const ne = [
429
429
  __: [0]
430
430
  })
431
431
  ]),
432
- G("div", el, [
432
+ G("div", ll, [
433
433
  W(te, {
434
434
  columns: $,
435
435
  isShowPagination: !1,
436
436
  isShowEdit: !1,
437
437
  isMoveColumn: !1,
438
438
  tableData: a.value,
439
- onDeleteRow: g
439
+ onDeleteRow: C
440
440
  }, null, 8, ["tableData"])
441
441
  ]),
442
- G("div", ll, [
442
+ G("div", tl, [
443
443
  f[3] || (f[3] = G("div", null, z("行内按钮"), -1)),
444
444
  W(h, {
445
445
  class: "blue-operate-button",
@@ -453,7 +453,7 @@ const ne = [
453
453
  __: [2]
454
454
  })
455
455
  ]),
456
- G("div", tl, [
456
+ G("div", nl, [
457
457
  W(te, {
458
458
  columns: O.value,
459
459
  isShowPagination: !1,
@@ -463,12 +463,12 @@ const ne = [
463
463
  onDeleteRow: c
464
464
  }, null, 8, ["columns", "tableData"])
465
465
  ]),
466
- G("div", nl, [
466
+ G("div", sl, [
467
467
  f[5] || (f[5] = G("div", null, z("表格外部按钮"), -1)),
468
468
  W(h, {
469
469
  class: "blue-operate-button",
470
470
  icon: "ele-Plus",
471
- onClick: u
471
+ onClick: p
472
472
  }, {
473
473
  default: ee(() => f[4] || (f[4] = [
474
474
  le(z("新建"))
@@ -477,20 +477,20 @@ const ne = [
477
477
  __: [4]
478
478
  })
479
479
  ]),
480
- G("div", sl, [
480
+ G("div", al, [
481
481
  W(te, {
482
482
  columns: y.value,
483
483
  isShowPagination: !1,
484
484
  isShowEdit: !1,
485
485
  isMoveColumn: !1,
486
486
  tableData: b.value,
487
- onDeleteRow: p
487
+ onDeleteRow: u
488
488
  }, null, 8, ["columns", "tableData"])
489
489
  ]),
490
490
  f[6] || (f[6] = G("div", { class: "operate-title" }, [
491
491
  G("div", null, z("分页"))
492
492
  ], -1)),
493
- G("div", al, [
493
+ G("div", rl, [
494
494
  W(ye, {
495
495
  rowContents: d.value,
496
496
  onChange: x
@@ -500,7 +500,7 @@ const ne = [
500
500
  ]);
501
501
  };
502
502
  }
503
- }, ol = /* @__PURE__ */ oe(rl, [["__scopeId", "data-v-877911eb"]]), cl = { class: "form-operate-content" }, pl = { class: "form-operate-item" }, ul = { class: "operate-title" }, il = { class: "operate-content" }, fl = { class: "operate-title" }, dl = { class: "operate-content" }, yl = { class: "operate-content" }, hl = {
503
+ }, cl = /* @__PURE__ */ oe(ol, [["__scopeId", "data-v-877911eb"]]), pl = { class: "form-operate-content" }, ul = { class: "form-operate-item" }, il = { class: "operate-title" }, fl = { class: "operate-content" }, dl = { class: "operate-title" }, yl = { class: "operate-content" }, hl = { class: "operate-content" }, ml = {
504
504
  __name: "operate",
505
505
  props: {
506
506
  itemContents: {
@@ -558,12 +558,12 @@ const ne = [
558
558
  prop: "operate",
559
559
  type: "operate",
560
560
  sortable: !1
561
- }]), y = R([]), O = R([]), b = R([]), C = R(0);
561
+ }]), y = R([]), O = R([]), b = R([]), g = R(0);
562
562
  q(
563
563
  () => l.originalItemContents,
564
564
  () => {
565
- var u, c, p, g, i, f, h, A, T, D;
566
- !l.originalItemContents || l.originalItemContents.length === 0 || (O.value = r(l.originalItemContents), b.value = (c = (u = O.value) == null ? void 0 : u.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : c.contents, y.value = (g = (p = O.value) == null ? void 0 : p.find((_) => (_ == null ? void 0 : _.key) === "formButton")) == null ? void 0 : g.contents, b.value = (i = b.value) == null ? void 0 : i.map((_, j) => _ = {
565
+ var p, c, u, C, i, f, h, A, T, D;
566
+ !l.originalItemContents || l.originalItemContents.length === 0 || (O.value = r(l.originalItemContents), b.value = (c = (p = O.value) == null ? void 0 : p.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : c.contents, y.value = (C = (u = O.value) == null ? void 0 : u.find((_) => (_ == null ? void 0 : _.key) === "formButton")) == null ? void 0 : C.contents, b.value = (i = b.value) == null ? void 0 : i.map((_, j) => _ = {
567
567
  label: (_ == null ? void 0 : _.label) ?? "",
568
568
  type: (_ == null ? void 0 : _.type) ?? "",
569
569
  key: (_ == null ? void 0 : _.key) ?? "",
@@ -589,72 +589,72 @@ const ne = [
589
589
  { deep: !0, immediate: !0 }
590
590
  );
591
591
  const d = () => {
592
- const u = r(y.value);
592
+ const p = r(y.value);
593
593
  let c = r(O.value);
594
- u.push({
594
+ p.push({
595
595
  label: "",
596
596
  type: "",
597
597
  background: "#000000",
598
- id: C.value
599
- }), y.value = u, C.value++;
600
- const p = c == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "formButton");
601
- p != null && p.contents ? (p.contents = u, c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formButton" && (g.contents = u), g))) : c.push({
598
+ id: g.value
599
+ }), y.value = p, g.value++;
600
+ const u = c == null ? void 0 : c.find((C) => (C == null ? void 0 : C.key) === "formButton");
601
+ u != null && u.contents ? (u.contents = p, c = c == null ? void 0 : c.map((C) => ((C == null ? void 0 : C.key) === "formButton" && (C.contents = p), C))) : c.push({
602
602
  key: "formButton",
603
- contents: u
603
+ contents: p
604
604
  }), O.value = c;
605
605
  }, $ = () => {
606
- const u = r(b.value);
606
+ const p = r(b.value);
607
607
  let c = r(O.value);
608
- u.push({
608
+ p.push({
609
609
  label: "",
610
610
  type: "",
611
611
  key: "",
612
612
  options: "",
613
- id: C.value
614
- }), b.value = u, C.value++;
615
- const p = c == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "formContent");
616
- p != null && p.contents ? (p.contents = u, c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = u), g))) : c.push({
613
+ id: g.value
614
+ }), b.value = p, g.value++;
615
+ const u = c == null ? void 0 : c.find((C) => (C == null ? void 0 : C.key) === "formContent");
616
+ u != null && u.contents ? (u.contents = p, c = c == null ? void 0 : c.map((C) => ((C == null ? void 0 : C.key) === "formContent" && (C.contents = p), C))) : c.push({
617
617
  key: "formContent",
618
- contents: u
618
+ contents: p
619
619
  }), O.value = c;
620
- }, x = (u) => {
620
+ }, x = (p) => {
621
621
  const c = r(y.value);
622
- let p = r(O.value);
623
- y.value = c.filter((i) => i.id !== u.id);
624
- const g = p == null ? void 0 : p.find((i) => i.key === "formButton");
625
- g != null && g.contents && (p = p == null ? void 0 : p.map((i) => ((i == null ? void 0 : i.key) === "formButton" && (i.contents = c.filter((f) => f.id !== u.id)), i))), O.value = p;
626
- }, k = (u) => {
622
+ let u = r(O.value);
623
+ y.value = c.filter((i) => i.id !== p.id);
624
+ const C = u == null ? void 0 : u.find((i) => i.key === "formButton");
625
+ C != null && C.contents && (u = u == null ? void 0 : u.map((i) => ((i == null ? void 0 : i.key) === "formButton" && (i.contents = c.filter((f) => f.id !== p.id)), i))), O.value = u;
626
+ }, k = (p) => {
627
627
  const c = r(b.value);
628
- let p = r(O.value);
629
- b.value = c.filter((i) => i.id !== u.id);
630
- const g = p == null ? void 0 : p.find((i) => i.key === "formContent");
631
- g != null && g.contents && (p = p == null ? void 0 : p.map((i) => ((i == null ? void 0 : i.key) === "formContent" && (i.contents = c.filter((f) => f.id !== u.id)), i))), O.value = p;
632
- }, S = (u) => {
628
+ let u = r(O.value);
629
+ b.value = c.filter((i) => i.id !== p.id);
630
+ const C = u == null ? void 0 : u.find((i) => i.key === "formContent");
631
+ C != null && C.contents && (u = u == null ? void 0 : u.map((i) => ((i == null ? void 0 : i.key) === "formContent" && (i.contents = c.filter((f) => f.id !== p.id)), i))), O.value = u;
632
+ }, S = (p) => {
633
633
  let c = r(O.value);
634
- const p = c == null ? void 0 : c.find((g) => g.key === "formFlex");
635
- (p == null ? void 0 : p.contents) !== void 0 ? c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formFlex" && (g.contents = u == null ? void 0 : u.isRowFlex), g)) : c.push({
634
+ const u = c == null ? void 0 : c.find((C) => C.key === "formFlex");
635
+ (u == null ? void 0 : u.contents) !== void 0 ? c = c == null ? void 0 : c.map((C) => ((C == null ? void 0 : C.key) === "formFlex" && (C.contents = p == null ? void 0 : p.isRowFlex), C)) : c.push({
636
636
  key: "formFlex",
637
- contents: u == null ? void 0 : u.isRowFlex
637
+ contents: p == null ? void 0 : p.isRowFlex
638
638
  }), O.value = c;
639
639
  };
640
640
  return q(
641
641
  () => [O.value, b.value],
642
642
  () => {
643
- let u = r(O.value);
644
- const c = u == null ? void 0 : u.find((p) => (p == null ? void 0 : p.key) === "formContent");
645
- c != null && c.contents ? (c.contents = b.value, u = u == null ? void 0 : u.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = b.value), p))) : u.push({
643
+ let p = r(O.value);
644
+ const c = p == null ? void 0 : p.find((u) => (u == null ? void 0 : u.key) === "formContent");
645
+ c != null && c.contents ? (c.contents = b.value, p = p == null ? void 0 : p.map((u) => ((u == null ? void 0 : u.key) === "formContent" && (u.contents = b.value), u))) : p.push({
646
646
  key: "formContent",
647
647
  contents: b.value
648
- }), e("change", u);
648
+ }), e("change", p);
649
649
  },
650
650
  { deep: !0, immediate: !0 }
651
- ), (u, c) => {
652
- const p = Oe("el-button");
653
- return Z(), M("div", cl, [
654
- G("div", pl, [
655
- G("div", ul, [
651
+ ), (p, c) => {
652
+ const u = _e("el-button");
653
+ return Z(), M("div", pl, [
654
+ G("div", ul, [
655
+ G("div", il, [
656
656
  c[1] || (c[1] = G("div", null, z("表单信息"), -1)),
657
- W(p, {
657
+ W(u, {
658
658
  class: "blue-operate-button",
659
659
  icon: "ele-Plus",
660
660
  onClick: $
@@ -666,7 +666,7 @@ const ne = [
666
666
  __: [0]
667
667
  })
668
668
  ]),
669
- G("div", il, [
669
+ G("div", fl, [
670
670
  W(te, {
671
671
  columns: a.value,
672
672
  isShowPagination: !1,
@@ -676,9 +676,9 @@ const ne = [
676
676
  onDeleteRow: k
677
677
  }, null, 8, ["columns", "tableData"])
678
678
  ]),
679
- G("div", fl, [
679
+ G("div", dl, [
680
680
  c[3] || (c[3] = G("div", null, z("表单按钮"), -1)),
681
- W(p, {
681
+ W(u, {
682
682
  class: "blue-operate-button",
683
683
  icon: "ele-Plus",
684
684
  onClick: d
@@ -690,7 +690,7 @@ const ne = [
690
690
  __: [2]
691
691
  })
692
692
  ]),
693
- G("div", dl, [
693
+ G("div", yl, [
694
694
  W(te, {
695
695
  columns: o.value,
696
696
  isShowPagination: !1,
@@ -703,7 +703,7 @@ const ne = [
703
703
  c[4] || (c[4] = G("div", { class: "operate-title" }, [
704
704
  G("div", null, z("表单布局"))
705
705
  ], -1)),
706
- G("div", yl, [
706
+ G("div", hl, [
707
707
  W(ye, {
708
708
  rowContents: n.value,
709
709
  onChange: S
@@ -713,10 +713,10 @@ const ne = [
713
713
  ]);
714
714
  };
715
715
  }
716
- }, ml = /* @__PURE__ */ oe(hl, [["__scopeId", "data-v-a36b8468"]]), bl = { class: "extra-content" }, kl = { key: 0 }, gl = {
716
+ }, bl = /* @__PURE__ */ oe(ml, [["__scopeId", "data-v-a36b8468"]]), kl = { class: "extra-content" }, gl = { key: 0 }, Cl = {
717
717
  key: 0,
718
718
  class: "extra-button-item"
719
- }, Cl = { key: 1 }, $l = {
719
+ }, $l = { key: 1 }, Al = {
720
720
  __name: "index",
721
721
  props: {
722
722
  itemData: {
@@ -746,8 +746,8 @@ const ne = [
746
746
  if (o.key === "extra") {
747
747
  let O = [];
748
748
  (y = o.value) == null || y.forEach((b) => {
749
- var C;
750
- O.push((C = Object.values(b)) == null ? void 0 : C[0]);
749
+ var g;
750
+ O.push((g = Object.values(b)) == null ? void 0 : g[0]);
751
751
  }), o.value = O;
752
752
  }
753
753
  return o;
@@ -755,18 +755,18 @@ const ne = [
755
755
  },
756
756
  { deep: !0, immediate: !0 }
757
757
  );
758
- const e = (n) => _l(n);
759
- return (n, a) => (Z(), M("div", bl, [
758
+ const e = (n) => xl(n);
759
+ return (n, a) => (Z(), M("div", kl, [
760
760
  (Z(!0), M(Ce, null, $e(l.value, (o, y) => (Z(), M("div", { key: y }, [
761
- (o == null ? void 0 : o.key) === "extra" ? (Z(), M("div", kl, [
761
+ (o == null ? void 0 : o.key) === "extra" ? (Z(), M("div", gl, [
762
762
  (Z(!0), M(Ce, null, $e(o.value, (O, b) => (Z(), M("div", {
763
763
  key: b,
764
764
  class: "extra-button"
765
765
  }, [
766
- O ? (Z(), M("div", gl, z(O), 1)) : We("", !0)
766
+ O ? (Z(), M("div", Cl, z(O), 1)) : ze("", !0)
767
767
  ]))), 128))
768
- ])) : (Z(), M("div", Cl, [
769
- (Z(), ze(Ze(e(o.comp)), {
768
+ ])) : (Z(), M("div", $l, [
769
+ (Z(), Ze(Me(e(o.comp)), {
770
770
  itemData: o == null ? void 0 : o.compData,
771
771
  childItemData: o == null ? void 0 : o.itemChildData,
772
772
  key: y,
@@ -776,7 +776,7 @@ const ne = [
776
776
  ]))), 128))
777
777
  ]));
778
778
  }
779
- }, Al = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-9a96eb90"]]), bt = R([
779
+ }, Ol = /* @__PURE__ */ oe(Al, [["__scopeId", "data-v-9a96eb90"]]), kt = R([
780
780
  {
781
781
  name: "表格",
782
782
  type: "table",
@@ -795,17 +795,17 @@ const ne = [
795
795
  comp: "Fold",
796
796
  icon: "Fold"
797
797
  }
798
- ]), Ol = {
799
- TABLE: Le,
800
- FORM: we,
801
- TableOperate: ol,
802
- FormOperate: ml,
803
- FOLD: He,
804
- CALCULATOR: Al
798
+ ]), _l = {
799
+ TABLE: We,
800
+ FORM: Ke,
801
+ TableOperate: cl,
802
+ FormOperate: bl,
803
+ FOLD: qe,
804
+ CALCULATOR: Ol
805
805
  // 添加其他组件...
806
806
  };
807
- function _l(t) {
808
- return Ol[t == null ? void 0 : t.toUpperCase()] || null;
807
+ function xl(t) {
808
+ return _l[t == null ? void 0 : t.toUpperCase()] || null;
809
809
  }
810
810
  const J = [
811
811
  {
@@ -873,7 +873,7 @@ const J = [
873
873
  key: "GroupContents",
874
874
  value: "groupContents"
875
875
  }
876
- ], w = R(0), xl = (t) => {
876
+ ], w = R(0), Tl = (t) => {
877
877
  const [s, l] = t.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
878
878
  return { key: e, value: n };
879
879
  }, ae = (t) => {
@@ -882,33 +882,33 @@ const J = [
882
882
  } catch {
883
883
  return !1;
884
884
  }
885
- }, Tl = (t) => t.includes("$") && t.trim().endsWith("(") ? t + ")" : t, El = (t) => {
885
+ }, El = (t) => t.includes("$") && t.trim().endsWith("(") ? t + ")" : t, Dl = (t) => {
886
886
  let s = t;
887
887
  const l = [];
888
888
  let e = "";
889
889
  for (const n of s)
890
890
  n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && (l.push(e), e = "")) : l.push(n.trim());
891
891
  return l == null ? void 0 : l.filter((n) => n.includes("{"));
892
- }, Dl = (t) => {
892
+ }, Nl = (t) => {
893
893
  var l;
894
894
  let s = [];
895
- return (l = El(t.slice(1, -1))) == null || l.forEach((e) => {
895
+ return (l = Dl(t.slice(1, -1))) == null || l.forEach((e) => {
896
896
  var a, o, y, O;
897
897
  let n = ((o = (a = e.slice(1, -1)) == null ? void 0 : a.split(",")) == null ? void 0 : o.length) ?? 1;
898
898
  (O = (y = e.slice(1, -1)) == null ? void 0 : y.split(",")) == null || O.forEach((b) => {
899
- var x, k, S, u, c, p, g, i, f, h, A, T, D;
900
- let C = b == null ? void 0 : b.split(":"), d = C != null && C[0] ? (C == null ? void 0 : C[1].split("$").length) - 1 === 1 ? ((x = C == null ? void 0 : C[0]) == null ? void 0 : x.replace(/^"(.*)"$/, "$1")) + ((k = C == null ? void 0 : C[1]) == null ? void 0 : k.replace(/^"(.*)"$/, "$1")) : Array.isArray((u = (S = C == null ? void 0 : C[1]) == null ? void 0 : S.replace(/^"(.*)"$/, "$1")) == null ? void 0 : u.split("(")) && ((g = (p = (c = C == null ? void 0 : C[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : p.split("(")) == null ? void 0 : g.length) > 1 ? ((i = C == null ? void 0 : C[0]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1")) + ((A = (h = (f = C == null ? void 0 : C[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) == null ? void 0 : A[0]) + "()" : (T = C == null ? void 0 : C[0]) == null ? void 0 : T.replace(/^"(.*)"$/, "$1") : "", $ = (C == null ? void 0 : C[1].split("$").length) - 1 === 0 ? (D = C == null ? void 0 : C[1]) == null ? void 0 : D.replace(/^"(.*)"$/, "$1") : "";
899
+ var x, k, S, p, c, u, C, i, f, h, A, T, D;
900
+ let g = b == null ? void 0 : b.split(":"), d = g != null && g[0] ? (g == null ? void 0 : g[1].split("$").length) - 1 === 1 ? ((x = g == null ? void 0 : g[0]) == null ? void 0 : x.replace(/^"(.*)"$/, "$1")) + ((k = g == null ? void 0 : g[1]) == null ? void 0 : k.replace(/^"(.*)"$/, "$1")) : Array.isArray((p = (S = g == null ? void 0 : g[1]) == null ? void 0 : S.replace(/^"(.*)"$/, "$1")) == null ? void 0 : p.split("(")) && ((C = (u = (c = g == null ? void 0 : g[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : u.split("(")) == null ? void 0 : C.length) > 1 ? ((i = g == null ? void 0 : g[0]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1")) + ((A = (h = (f = g == null ? void 0 : g[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) == null ? void 0 : A[0]) + "()" : (T = g == null ? void 0 : g[0]) == null ? void 0 : T.replace(/^"(.*)"$/, "$1") : "", $ = (g == null ? void 0 : g[1].split("$").length) - 1 === 0 ? (D = g == null ? void 0 : g[1]) == null ? void 0 : D.replace(/^"(.*)"$/, "$1") : "";
901
901
  w.value++, s.push({
902
902
  id: w.value,
903
903
  key: d,
904
904
  value: $,
905
905
  // 如果值为空,则key设为空字符串,否则保留原值
906
906
  width: n,
907
- extraContent: C == null ? void 0 : C[1]
907
+ extraContent: g == null ? void 0 : g[1]
908
908
  });
909
909
  });
910
910
  }), s;
911
- }, xe = (t) => {
911
+ }, Te = (t) => {
912
912
  var s, l;
913
913
  try {
914
914
  const e = t.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
@@ -930,7 +930,7 @@ const J = [
930
930
  });
931
931
  }), o;
932
932
  } else
933
- return e.trim().startsWith("{{") ? Dl(e.trim()) : pe(n);
933
+ return e.trim().startsWith("{{") ? Nl(e.trim()) : pe(n);
934
934
  } else if (ae(e)) {
935
935
  const n = JSON.parse(e);
936
936
  return Object.entries(n).map(([a, o]) => (w.value++, {
@@ -943,7 +943,7 @@ const J = [
943
943
  } else
944
944
  return ((s = pe(e)) == null ? void 0 : s.length) === 0 ? e : (l = pe(e)) == null ? void 0 : l.map((n) => ({
945
945
  label: n.label,
946
- method: Tl(n.method)
946
+ method: El(n.method)
947
947
  }));
948
948
  } catch (e) {
949
949
  return console.error("转换失败:", e), [];
@@ -959,8 +959,8 @@ const J = [
959
959
  l += e[0].length;
960
960
  let a = "", o = 0, y = !1, O = "";
961
961
  for (let b = l; b < t.length; b++) {
962
- const C = t[b];
963
- if ((C === '"' || C === "'") && !y ? (y = !0, O = C) : C === O && y && (y = !1, O = ""), !y && ((C === "{" || C === "(" || C === "[") && o++, (C === "}" || C === ")" || C === "]") && o--, C === "," && o === 0 || b === t.length - 1)) {
962
+ const g = t[b];
963
+ if ((g === '"' || g === "'") && !y ? (y = !0, O = g) : g === O && y && (y = !1, O = ""), !y && ((g === "{" || g === "(" || g === "[") && o++, (g === "}" || g === ")" || g === "]") && o--, g === "," && o === 0 || b === t.length - 1)) {
964
964
  a = t.slice(l, b + 1).trim(), l = b + 1;
965
965
  break;
966
966
  }
@@ -971,7 +971,7 @@ const J = [
971
971
  });
972
972
  }
973
973
  return s;
974
- }, Nl = (t, s) => {
974
+ }, jl = (t, s) => {
975
975
  try {
976
976
  if (J != null && J.find((l) => (l == null ? void 0 : l.key) === s))
977
977
  return t.replace(/['"]/g, "").trim();
@@ -984,12 +984,12 @@ const J = [
984
984
  const e = JSON.parse(l);
985
985
  return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
986
986
  } else
987
- return xe(r(t));
987
+ return Te(r(t));
988
988
  }
989
989
  } catch (l) {
990
990
  return console.error("解析失败:", l), t;
991
991
  }
992
- }, jl = (t) => ({ [t == null ? void 0 : t.key]: Nl(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), Sl = (t) => {
992
+ }, Sl = (t) => ({ [t == null ? void 0 : t.key]: jl(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), Fl = (t) => {
993
993
  try {
994
994
  if (r(t).split("[").length - 1 > 1) {
995
995
  const s = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
@@ -999,16 +999,16 @@ const J = [
999
999
  } catch (s) {
1000
1000
  return console.error("解析失败:", s), t;
1001
1001
  }
1002
- }, Fl = (t) => {
1002
+ }, Ul = (t) => {
1003
1003
  const s = t.match(/\(([^)]+)\)/);
1004
1004
  return s ? s[1] : "";
1005
- }, Ul = (t) => {
1005
+ }, Pl = (t) => {
1006
1006
  const s = t.match(/^([^(]+)\s*\(/);
1007
1007
  return s ? s[1].trim() : t;
1008
- }, Ae = (t) => t.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), Pl = (t) => {
1008
+ }, Ae = (t) => t.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), Bl = (t) => {
1009
1009
  var o, y;
1010
1010
  let s = [], l = [];
1011
- const e = (o = r(t)) == null ? void 0 : o.map((O) => O == null ? void 0 : O.key), n = [...new Set((y = r(e)) == null ? void 0 : y.map((O) => Fl(O)))];
1011
+ const e = (o = r(t)) == null ? void 0 : o.map((O) => O == null ? void 0 : O.key), n = [...new Set((y = r(e)) == null ? void 0 : y.map((O) => Ul(O)))];
1012
1012
  n == null || n.forEach((O) => {
1013
1013
  let b = t == null ? void 0 : t.filter(($) => $.key.includes(O));
1014
1014
  b == null || b.forEach(($) => {
@@ -1017,11 +1017,11 @@ const J = [
1017
1017
  value: Ae($ == null ? void 0 : $.value)
1018
1018
  }), l.push(Ae($ == null ? void 0 : $.value)));
1019
1019
  });
1020
- let C = t == null ? void 0 : t.filter(($) => $.key.includes(O) && !($ != null && $.key.includes("Menus")));
1021
- C = C == null ? void 0 : C.map(($) => ($.key = Ul($.key), $));
1020
+ let g = t == null ? void 0 : t.filter(($) => $.key.includes(O) && !($ != null && $.key.includes("Menus")));
1021
+ g = g == null ? void 0 : g.map(($) => ($.key = Pl($.key), $));
1022
1022
  const d = {
1023
1023
  key: "GroupContents",
1024
- value: C
1024
+ value: g
1025
1025
  };
1026
1026
  s.push(d);
1027
1027
  });
@@ -1030,7 +1030,7 @@ const J = [
1030
1030
  value: l
1031
1031
  };
1032
1032
  return s.unshift(a), s;
1033
- }, Te = (t) => {
1033
+ }, Ee = (t) => {
1034
1034
  var s, l;
1035
1035
  if (Array.isArray(Object.keys(t)) && ((s = Object.keys(t)) == null ? void 0 : s.length) > 0) {
1036
1036
  let e = [];
@@ -1039,25 +1039,27 @@ const J = [
1039
1039
  let o = [];
1040
1040
  if (o.push(n), ((y = Object.keys(a)) == null ? void 0 : y.length) > 0) {
1041
1041
  let b = [];
1042
- b.push((O = Te(a)) == null ? void 0 : O[0]), o.push(b == null ? void 0 : b[0]);
1042
+ (O = Ee(a)) == null || O.forEach((g) => {
1043
+ b.push(g);
1044
+ }), o.push(b == null ? void 0 : b[0]);
1043
1045
  }
1044
1046
  e.push(o);
1045
1047
  }), e;
1046
1048
  }
1047
- }, Bl = (t, s) => {
1049
+ }, Jl = (t, s) => {
1048
1050
  var e;
1049
1051
  let l = s;
1050
1052
  return Array.isArray(Object.keys(t)) && ((e = Object.entries(t)) == null || e.forEach(([n, a]) => {
1051
1053
  let o = [n];
1052
1054
  if (typeof a == "object" && a !== null) {
1053
- let y = Te(a);
1055
+ let y = Ee(a);
1054
1056
  y == null || y.forEach((O) => {
1055
1057
  o.push(O);
1056
1058
  });
1057
1059
  }
1058
1060
  l.push(o);
1059
1061
  })), l;
1060
- }, Jl = (t) => {
1062
+ }, vl = (t) => {
1061
1063
  const s = {};
1062
1064
  return t.forEach((e) => {
1063
1065
  const n = e.split("/");
@@ -1065,15 +1067,15 @@ const J = [
1065
1067
  n.forEach((o) => {
1066
1068
  a[o] || (a[o] = {}), a = a[o];
1067
1069
  });
1068
- }), Bl(s, []);
1069
- }, Ee = (t) => Jl(t), kt = (t) => {
1070
+ }), Jl(s, []);
1071
+ }, De = (t) => vl(t), gt = (t) => {
1070
1072
  var s, l, e, n, a, o, y, O;
1071
1073
  try {
1072
- const b = he((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), C = (n = (e = r(b)) == null ? void 0 : e.filter((k) => !k.includes("/*"))) == null ? void 0 : n.map((k) => xl(k)), d = Pl(C), $ = [];
1074
+ const b = me((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), g = (n = (e = r(b)) == null ? void 0 : e.filter((k) => !k.includes("/*"))) == null ? void 0 : n.map((k) => Tl(k)), d = Bl(g), $ = [];
1073
1075
  if (((a = d == null ? void 0 : d.find((k) => (k == null ? void 0 : k.key) === "Menus")) == null ? void 0 : a.value.length) === 0)
1074
1076
  return !1;
1075
1077
  (o = r(d)) == null || o.forEach((k) => {
1076
- var S, u, c, p, g;
1078
+ var S, p, c, u, C;
1077
1079
  J != null && J.find((i) => {
1078
1080
  var f, h;
1079
1081
  return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
@@ -1082,7 +1084,7 @@ const J = [
1082
1084
  var f, h;
1083
1085
  return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
1084
1086
  })) == null ? void 0 : S.value) ?? "",
1085
- name: (u = k == null ? void 0 : k.value) == null ? void 0 : u.replace(/[’]|[‘]|[']/g, ""),
1087
+ name: (p = k == null ? void 0 : k.value) == null ? void 0 : p.replace(/[’]|[‘]|[']/g, ""),
1086
1088
  compData: []
1087
1089
  }) : B != null && B.find((i) => {
1088
1090
  var f, h;
@@ -1091,77 +1093,77 @@ const J = [
1091
1093
  comp: "Menu",
1092
1094
  name: "",
1093
1095
  compData: []
1094
- }), (p = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && p.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
1095
- key: (g = B == null ? void 0 : B.find((i) => {
1096
+ }), (u = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && u.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
1097
+ key: (C = B == null ? void 0 : B.find((i) => {
1096
1098
  var f, h;
1097
1099
  return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
1098
- })) == null ? void 0 : g.value,
1100
+ })) == null ? void 0 : C.value,
1099
1101
  contents: k == null ? void 0 : k.value
1100
1102
  }));
1101
1103
  });
1102
1104
  let x = (y = r($)) == null ? void 0 : y.map((k) => {
1103
1105
  var S;
1104
- return k != null && k.compData && (k.compData = (S = k == null ? void 0 : k.compData) == null ? void 0 : S.map((u) => {
1105
- var c, p, g, i, f, h, A, T, D, _, j;
1106
- if ((u == null ? void 0 : u.key) === "formFlex")
1107
- u.contents = ((p = (c = u.contents) == null ? void 0 : c.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : p.toUpperCase()) !== "Vertical".toUpperCase();
1108
- else if ((u == null ? void 0 : u.key) === "groupContents")
1109
- u.contents = (g = r(u.contents)) == null ? void 0 : g.map((E) => jl(r(E)));
1110
- else if (Array.isArray(u == null ? void 0 : u.contents))
1111
- u.contents = Ee(u.contents);
1112
- else if (((f = (i = u == null ? void 0 : u.contents) == null ? void 0 : i.trim()) != null && f.startsWith("[") || (A = (h = u.contents) == null ? void 0 : h.trim()) != null && A.startsWith("【")) && ((D = (T = u.contents) == null ? void 0 : T.trim()) != null && D.endsWith("]") || (j = (_ = u.contents) == null ? void 0 : _.trim()) != null && j.endsWith("】")))
1113
- u.contents = Sl(r(u.contents));
1106
+ return k != null && k.compData && (k.compData = (S = k == null ? void 0 : k.compData) == null ? void 0 : S.map((p) => {
1107
+ var c, u, C, i, f, h, A, T, D, _, j;
1108
+ if ((p == null ? void 0 : p.key) === "formFlex")
1109
+ p.contents = ((u = (c = p.contents) == null ? void 0 : c.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : u.toUpperCase()) !== "Vertical".toUpperCase();
1110
+ else if ((p == null ? void 0 : p.key) === "groupContents")
1111
+ p.contents = (C = r(p.contents)) == null ? void 0 : C.map((E) => Sl(r(E)));
1112
+ else if (Array.isArray(p == null ? void 0 : p.contents))
1113
+ p.contents = De(p.contents);
1114
+ else if (((f = (i = p == null ? void 0 : p.contents) == null ? void 0 : i.trim()) != null && f.startsWith("[") || (A = (h = p.contents) == null ? void 0 : h.trim()) != null && A.startsWith("【")) && ((D = (T = p.contents) == null ? void 0 : T.trim()) != null && D.endsWith("]") || (j = (_ = p.contents) == null ? void 0 : _.trim()) != null && j.endsWith("】")))
1115
+ p.contents = Fl(r(p.contents));
1114
1116
  else {
1115
- if (!u.contents) return;
1116
- u.contents = xe(r(u.contents));
1117
+ if (!p.contents) return;
1118
+ p.contents = Te(r(p.contents));
1117
1119
  }
1118
- return u;
1120
+ return p;
1119
1121
  })), k;
1120
1122
  });
1121
1123
  return x = (O = r(x)) == null ? void 0 : O.map((k) => {
1122
1124
  var S;
1123
- return (k == null ? void 0 : k.comp) === "Group" && (k.compData = (S = k.compData) == null ? void 0 : S.map((u) => {
1124
- var p;
1125
+ return (k == null ? void 0 : k.comp) === "Group" && (k.compData = (S = k.compData) == null ? void 0 : S.map((p) => {
1126
+ var u;
1125
1127
  let c = [];
1126
- return (p = u.contents) == null || p.forEach((g) => {
1128
+ return (u = p.contents) == null || u.forEach((C) => {
1127
1129
  var i, f, h, A, T, D, _, j, E, F, U, v;
1128
1130
  if (J != null && J.find((N) => {
1129
1131
  var m, P, L;
1130
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1132
+ return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(C)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1131
1133
  }))
1132
1134
  c.push({
1133
1135
  comp: (i = J == null ? void 0 : J.find((N) => {
1134
1136
  var m, P, L;
1135
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1137
+ return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(C)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1136
1138
  })) == null ? void 0 : i.value,
1137
- name: (h = (f = Object.values(g)) == null ? void 0 : f[0]) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, ""),
1139
+ name: (h = (f = Object.values(C)) == null ? void 0 : f[0]) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, ""),
1138
1140
  compData: []
1139
1141
  });
1140
1142
  else if (B != null && B.find((N) => {
1141
1143
  var m, P, L;
1142
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1144
+ return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(C)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1143
1145
  })) {
1144
1146
  if ((c == null ? void 0 : c.length) === 0) return;
1145
1147
  (A = c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]) != null && A.compData && c[(c == null ? void 0 : c.length) - 1].compData.push({
1146
1148
  key: (T = B == null ? void 0 : B.find((N) => {
1147
1149
  var m, P, L;
1148
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1150
+ return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(C)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1149
1151
  })) == null ? void 0 : T.value,
1150
- contents: (D = Object.values(g)) == null ? void 0 : D[0]
1152
+ contents: (D = Object.values(C)) == null ? void 0 : D[0]
1151
1153
  });
1152
- } else if ((j = (_ = Object.keys(g)) == null ? void 0 : _[0]) != null && j.includes("$")) {
1153
- const N = (F = (E = Object.keys(r(g))) == null ? void 0 : E[0]) == null ? void 0 : F.split("$");
1154
+ } else if ((j = (_ = Object.keys(C)) == null ? void 0 : _[0]) != null && j.includes("$")) {
1155
+ const N = (F = (E = Object.keys(r(C))) == null ? void 0 : E[0]) == null ? void 0 : F.split("$");
1154
1156
  c[(c == null ? void 0 : c.length) - 1].compData.push({
1155
1157
  key: (U = B == null ? void 0 : B.find((m) => {
1156
1158
  var P, L;
1157
1159
  return ((P = m == null ? void 0 : m.key) == null ? void 0 : P.toUpperCase()) === ((L = N == null ? void 0 : N[0]) == null ? void 0 : L.toUpperCase());
1158
1160
  })) == null ? void 0 : U.value,
1159
- contents: (v = Object.values(g)) == null ? void 0 : v[0],
1161
+ contents: (v = Object.values(C)) == null ? void 0 : v[0],
1160
1162
  selectLabel: N == null ? void 0 : N[1]
1161
1163
  });
1162
1164
  }
1163
- return g;
1164
- }), u.contents = c, u;
1165
+ return C;
1166
+ }), p.contents = c, p;
1165
1167
  })), k;
1166
1168
  }), x;
1167
1169
  } catch {
@@ -1173,44 +1175,44 @@ const J = [
1173
1175
  } catch {
1174
1176
  return !1;
1175
1177
  }
1176
- }, De = (t) => {
1178
+ }, Ne = (t) => {
1177
1179
  const s = [];
1178
1180
  let l = null;
1179
1181
  for (let e = 0; e < t.length; e++) {
1180
1182
  const n = t[e];
1181
1183
  if (Array.isArray(n))
1182
- l && (l.children = De(n));
1184
+ l && (l.children = Ne(n));
1183
1185
  else {
1184
1186
  const a = { label: n };
1185
1187
  s.push(a), l = a;
1186
1188
  }
1187
1189
  }
1188
1190
  return s;
1189
- }, Ne = (t) => {
1191
+ }, je = (t) => {
1190
1192
  let s = 0;
1191
1193
  for (const l of t)
1192
- s++, l.children && (s += Ne(l.children));
1194
+ s++, l.children && (s += je(l.children));
1193
1195
  return s;
1194
- }, je = (t, s, l = []) => {
1196
+ }, Se = (t, s, l = []) => {
1195
1197
  let e = 0;
1196
1198
  for (const n of s) {
1197
1199
  if (e >= t.length) break;
1198
1200
  const a = [...t[e]];
1199
1201
  if (l.push(a), e++, n.children && n.children.length > 0) {
1200
1202
  const o = [];
1201
- je(
1203
+ Se(
1202
1204
  t.slice(e),
1203
1205
  n.children,
1204
1206
  o
1205
- ), o.length > 0 && (a.push(o), e += Ne(n.children));
1207
+ ), o.length > 0 && (a.push(o), e += je(n.children));
1206
1208
  }
1207
1209
  }
1208
1210
  return l;
1209
- }, vl = (t, s) => {
1211
+ }, Rl = (t, s) => {
1210
1212
  let l = [];
1211
1213
  return t == null || t.forEach((n) => {
1212
1214
  n.some((a) => Array.isArray(a)) ? l.push(...n) : l.push(n);
1213
- }), je(l, s);
1215
+ }), Se(l, s);
1214
1216
  }, fe = (t) => {
1215
1217
  const s = { label: t[0] };
1216
1218
  if (t.length > 1) {
@@ -1222,7 +1224,7 @@ const J = [
1222
1224
  );
1223
1225
  }
1224
1226
  return s;
1225
- }, Rl = (t) => {
1227
+ }, Gl = (t) => {
1226
1228
  var l;
1227
1229
  return t.some((e) => !Array.isArray(e)) ? t : (l = r(t)) == null ? void 0 : l.map((e) => {
1228
1230
  let n = [];
@@ -1230,26 +1232,26 @@ const J = [
1230
1232
  Array.isArray(a) && n.push(fe(a));
1231
1233
  }) : e.some((a) => a.includes("[")) ? n.push(e) : n = e.map((a) => ({ label: a })), n;
1232
1234
  });
1233
- }, Se = (t, s, l) => {
1235
+ }, Fe = (t, s, l) => {
1234
1236
  let e = t, n = l, a = s;
1235
1237
  return a.children && (Array.isArray(n[n.length - 1]) ? n[n.length - 1].push(e[0]) : n.push(e[0]), e.shift(), a = a.children), Array.isArray(a) && a.forEach((o) => {
1236
1238
  if (o.children) {
1237
- const y = Se(e, o, n);
1239
+ const y = Fe(e, o, n);
1238
1240
  n = y[0], e = y[1];
1239
1241
  }
1240
1242
  }), [n, e];
1241
- }, Gl = (t, s) => {
1243
+ }, Ll = (t, s) => {
1242
1244
  let l = t, e = [];
1243
1245
  return s.length > 0 ? s == null || s.forEach((n) => {
1244
1246
  let a = l == null ? void 0 : l[0];
1245
1247
  l.shift();
1246
- const o = Se(r(l), n, a);
1248
+ const o = Fe(r(l), n, a);
1247
1249
  a = o[0], l = o[1], e.push(a);
1248
1250
  }) : e = l, e;
1249
- }, Fe = (t, s) => {
1250
- const l = Rl(r(t));
1251
- return Gl(l, s);
1252
- }, Ll = (t) => {
1251
+ }, he = (t, s) => {
1252
+ const l = Gl(r(t));
1253
+ return Ll(l, s);
1254
+ }, Wl = (t) => {
1253
1255
  const s = [];
1254
1256
  let l = 0;
1255
1257
  const e = t.length;
@@ -1262,13 +1264,13 @@ const J = [
1262
1264
  }), l += 2) : (s.push(n), l += 1);
1263
1265
  }
1264
1266
  return s;
1265
- }, Wl = (t) => {
1266
- let s = Ll(t);
1267
+ }, zl = (t) => he([t], []), Oe = (t) => {
1268
+ let s = Wl(t);
1267
1269
  return s = s == null ? void 0 : s.map((l) => {
1268
1270
  var e;
1269
1271
  return l.comp === "Table" ? l.compData = (e = l.compData) == null ? void 0 : e.map((n) => (n.key === "tableColumns" ? n = {
1270
1272
  key: "header",
1271
- contents: Fe(n.value, [])
1273
+ contents: he(n.value, [])
1272
1274
  } : n = {
1273
1275
  key: n.key,
1274
1276
  contents: n.value
@@ -1278,9 +1280,9 @@ const J = [
1278
1280
  name: ""
1279
1281
  }), l;
1280
1282
  }), s;
1281
- }, zl = (t, s) => {
1282
- var y, O, b, C, d, $;
1283
- const l = [], e = De((O = (y = t == null ? void 0 : t.find((x) => x.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0]);
1283
+ }, Zl = (t, s) => {
1284
+ var y, O, b, g, d, $;
1285
+ const l = [], e = Ne((O = (y = t == null ? void 0 : t.find((x) => x.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0]);
1284
1286
  l.push({
1285
1287
  key: "tableIndexColumn",
1286
1288
  contents: s
@@ -1290,11 +1292,11 @@ const J = [
1290
1292
  });
1291
1293
  let n = [];
1292
1294
  const a = (b = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : b.value;
1293
- a.length === 1 && !(a != null && a[0].some((x) => Array.isArray(x))) ? n = (C = a == null ? void 0 : a[0]) == null ? void 0 : C.map((x) => ({ label: x })) : n = Fe((d = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : d.value, e), l.push({
1295
+ a.length === 1 && !(a != null && a[0].some((x) => Array.isArray(x))) ? n = (g = a == null ? void 0 : a[0]) == null ? void 0 : g.map((x) => ({ label: x })) : n = he((d = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : d.value, e), l.push({
1294
1296
  key: "header",
1295
1297
  contents: n
1296
1298
  });
1297
- const o = vl(($ = t == null ? void 0 : t.find((x) => x.key === "tableContents")) == null ? void 0 : $.value, e);
1299
+ const o = Rl(($ = t == null ? void 0 : t.find((x) => x.key === "tableContents")) == null ? void 0 : $.value, e);
1298
1300
  return l.push({
1299
1301
  key: "tableContents",
1300
1302
  contents: o
@@ -1305,7 +1307,7 @@ const J = [
1305
1307
  }), ue = (t) => {
1306
1308
  const s = t.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
1307
1309
  return Ue(s).replace(/^"(.*)"$/, "$1");
1308
- }, he = (t) => {
1310
+ }, me = (t) => {
1309
1311
  let s;
1310
1312
  t.replaceAll(" ", `\r
1311
1313
  `).includes(`\r
@@ -1319,10 +1321,10 @@ const J = [
1319
1321
  for (const n of s)
1320
1322
  n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e += n.trim(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && e[e.length - 1] !== "," && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1321
1323
  return l;
1322
- }, Zl = (t) => {
1324
+ }, Ml = (t) => {
1323
1325
  const [s, l] = t.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
1324
1326
  return { key: e, value: n };
1325
- }, me = (t) => {
1327
+ }, be = (t) => {
1326
1328
  let s;
1327
1329
  t.includes(":") ? s = t.split(":").filter((n) => n.trim() !== "") : s = t.split(":").filter((n) => n.trim() !== "");
1328
1330
  const l = [];
@@ -1330,7 +1332,7 @@ const J = [
1330
1332
  for (const n of s)
1331
1333
  n.includes("{") || e.includes("{") || n.includes("[") || e.includes("[") || n.includes("【") || e.includes("【") || n.includes("(") || e.includes("(") || n.includes("(") || e.includes("(") || n.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + n.trim() : n.trim(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1332
1334
  return l;
1333
- }, be = (t) => /^[\x00-\x7F]*$/.test(t), Ml = (t) => {
1335
+ }, Pe = (t) => /^[\x00-\x7F]*$/.test(t), Hl = (t) => {
1334
1336
  var n;
1335
1337
  const s = t.map((a) => {
1336
1338
  var y, O;
@@ -1338,29 +1340,29 @@ const J = [
1338
1340
  return o.slice(0, o.length - 1);
1339
1341
  }), l = s == null ? void 0 : s.map((a) => {
1340
1342
  var y;
1341
- return (y = me(a)) == null ? void 0 : y.map((O) => {
1343
+ return (y = be(a)) == null ? void 0 : y.map((O) => {
1342
1344
  var b;
1343
1345
  if (O.includes("{")) {
1344
- let C = (b = O.split(":")) == null ? void 0 : b[0];
1345
- O = C.slice(1, C.length);
1346
+ let g = (b = O.split(":")) == null ? void 0 : b[0];
1347
+ O = g.slice(1, g.length);
1346
1348
  }
1347
1349
  return O;
1348
1350
  });
1349
- }), e = (n = l == null ? void 0 : l.filter((a) => a.length !== 0)) == null ? void 0 : n.map((a) => {
1351
+ }).filter((a) => a.length !== 0), e = (n = l == null ? void 0 : l.filter((a) => a.length !== 0)) == null ? void 0 : n.map((a) => {
1350
1352
  let o = "";
1351
1353
  return a.forEach((y) => {
1352
- !be(y) && !y.includes("{") && (o = o === "" ? o + r(y) : o + "/" + r(y));
1354
+ y.includes("{") || (o = o === "" ? o + r(y) : o + "/" + r(y));
1353
1355
  }), o;
1354
1356
  });
1355
- return Ee([...new Set(e)]);
1356
- }, Pe = (t) => {
1357
+ return De([...new Set(e)]);
1358
+ }, Be = (t) => {
1357
1359
  var l, e;
1358
1360
  const s = (e = (l = t.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
1359
1361
  return s.slice(0, s.length - 1);
1360
- }, Hl = (t) => {
1362
+ }, ql = (t) => {
1361
1363
  var n;
1362
1364
  if (!t) return;
1363
- const s = Pe(t), l = (n = me(s)) == null ? void 0 : n.map((a) => {
1365
+ const s = Be(t), l = (n = be(s)) == null ? void 0 : n.map((a) => {
1364
1366
  var o;
1365
1367
  if (a.includes("{")) {
1366
1368
  let y = (o = a.split(":")) == null ? void 0 : o[0];
@@ -1370,9 +1372,9 @@ const J = [
1370
1372
  });
1371
1373
  let e = "";
1372
1374
  return l.forEach((a) => {
1373
- be(a) || (e = e === "" ? e + r(a) : e + "/" + r(a));
1375
+ Pe(a) || (e = e === "" ? e + r(a) : e + "/" + r(a));
1374
1376
  }), e;
1375
- }, ql = (t) => {
1377
+ }, Ql = (t) => {
1376
1378
  const s = t.match(/\[(.*)\]/s);
1377
1379
  if (s) {
1378
1380
  const l = `[${s[1]}]`;
@@ -1383,42 +1385,42 @@ const J = [
1383
1385
  console.error("解析失败:", e);
1384
1386
  }
1385
1387
  }
1386
- }, Ql = (t) => {
1388
+ }, Xl = (t) => {
1387
1389
  var a;
1388
1390
  if (!t) return;
1389
- const s = Pe(t);
1391
+ const s = Be(t);
1390
1392
  let l = [], e = [], n = [];
1391
- return (a = me(s)) == null || a.forEach((o) => {
1393
+ return (a = be(s)) == null || a.forEach((o) => {
1392
1394
  var y;
1393
- o.includes("[") ? l.push(ql(o)) : o.includes("{") && (be((y = o.slice(1, o.length - 1).split(":")) == null ? void 0 : y[0]) ? n.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : Y(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : o.includes("$") || e.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
1395
+ o.includes("[") ? l.push(Ql(o)) : o.includes("{") && (Pe((y = o.slice(1, o.length - 1).split(":")) == null ? void 0 : y[0]) ? n.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : Y(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : o.includes("$") || e.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
1394
1396
  }), [l, e, n];
1395
- }, Xl = (t) => {
1397
+ }, Yl = (t) => {
1396
1398
  const s = [];
1397
1399
  let l = "";
1398
1400
  for (const e of t)
1399
1401
  e.includes("[") || l.includes("[") || e.includes("/*") || l.includes("/*") ? (l += e.trim(), r(l).split("{").length - 1 === r(l).split("}").length - 1 && r(l).split("【").length - 1 === r(l).split("】").length - 1 && r(l).split("[").length - 1 === r(l).split("]").length - 1 && r(l).split("(").length - 1 === r(l).split(")").length - 1 && r(l).split("(").length - 1 === r(l).split(")").length - 1 && r(l).split("/*").length - 1 === r(l).split("*/").length - 1 && (s.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : s.push(e.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1400
1402
  return s;
1401
- }, Yl = (t) => {
1403
+ }, wl = (t) => {
1402
1404
  var n, a, o, y, O;
1403
1405
  let s = [], l = [], e = t.trim();
1404
1406
  if (!(e.trim().includes("输入") && e.trim().includes("输出"))) {
1405
1407
  const b = (n = e.trim().split(",$")) == null ? void 0 : n[0];
1406
1408
  b[0] === "[" ? e = b.slice(1, b.length - 1) : e.includes(",$") && (e = (a = e.trim().split(",$")) == null ? void 0 : a[0]);
1407
- let C;
1408
- e.includes("$") ? e = r(e) : C = (y = (o = r(e).split("}")) == null ? void 0 : o.filter((d) => d !== "")) == null ? void 0 : y.map((d) => {
1409
+ let g;
1410
+ e.includes("$") ? e = r(e) : g = (y = (o = r(e).split("}")) == null ? void 0 : o.filter((d) => d !== "")) == null ? void 0 : y.map((d) => {
1409
1411
  let $ = d;
1410
1412
  return $[0] === "," ? $ = $.slice(2, $.length) : $ = $.slice(1, $.length), $;
1411
- }), (O = r(C)) == null || O.forEach((d) => {
1412
- var $, x, k, S, u, c, p, g, i, f;
1413
+ }), (O = r(g)) == null || O.forEach((d) => {
1414
+ var $, x, k, S, p, c, u, C, i, f;
1413
1415
  if (!d.includes("=="))
1414
- Y(($ = d == null ? void 0 : d.split(":")) == null ? void 0 : $[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) && s.push(JSON.parse((x = d == null ? void 0 : d.split(":")) == null ? void 0 : x[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))), Y((k = d == null ? void 0 : d.split(":")) == null ? void 0 : k[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((S = d == null ? void 0 : d.split(":")) == null ? void 0 : S[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Y((u = d == null ? void 0 : d.split(":")) == null ? void 0 : u[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse((c = d == null ? void 0 : d.split(":")) == null ? void 0 : c[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
1416
+ Y(($ = d == null ? void 0 : d.split(":")) == null ? void 0 : $[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) && s.push(JSON.parse((x = d == null ? void 0 : d.split(":")) == null ? void 0 : x[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))), Y((k = d == null ? void 0 : d.split(":")) == null ? void 0 : k[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((S = d == null ? void 0 : d.split(":")) == null ? void 0 : S[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Y((p = d == null ? void 0 : d.split(":")) == null ? void 0 : p[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse((c = d == null ? void 0 : d.split(":")) == null ? void 0 : c[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
1415
1417
  else {
1416
- const h = (p = d == null ? void 0 : d.split(":")) == null ? void 0 : p[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'), A = (g = d == null ? void 0 : d.split(":")) == null ? void 0 : g[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
1418
+ const h = (u = d == null ? void 0 : d.split(":")) == null ? void 0 : u[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'), A = (C = d == null ? void 0 : d.split(":")) == null ? void 0 : C[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
1417
1419
  if (Y(A.trim()) ? l.push(JSON.parse(A.trim())) : l.push(JSON.parse(A.replaceAll("'", '"').trim())), h[0] !== "[") {
1418
1420
  let T = [];
1419
1421
  Y("[" + ue(h) + "]") ? T.push(JSON.parse("[" + ue(h) + "]")) : T.push("[" + ue(h) + "]"), s.push(T);
1420
1422
  } else {
1421
- const T = (i = h.slice(1, h.length - 1).replaceAll(",", ",|")) == null ? void 0 : i.split("|"), D = (f = Xl(T)) == null ? void 0 : f.map((j) => ((j == null ? void 0 : j[j.length - 1]) === "," && (j = j.slice(0, j.length - 1)), j));
1423
+ const T = (i = h.slice(1, h.length - 1).replaceAll(",", ",|")) == null ? void 0 : i.split("|"), D = (f = Yl(T)) == null ? void 0 : f.map((j) => ((j == null ? void 0 : j[j.length - 1]) === "," && (j = j.slice(0, j.length - 1)), j));
1422
1424
  let _ = [];
1423
1425
  D == null || D.forEach((j) => {
1424
1426
  var F, U, v, N;
@@ -1430,8 +1432,8 @@ const J = [
1430
1432
  });
1431
1433
  }
1432
1434
  return [s, l];
1433
- }, wl = (t) => {
1434
- const s = [], l = Hl(t == null ? void 0 : t.key), e = Ql(t == null ? void 0 : t.key), n = Yl(t == null ? void 0 : t.value), a = e == null ? void 0 : e[0], o = e == null ? void 0 : e[1], y = e == null ? void 0 : e[2], O = n == null ? void 0 : n[0], b = n == null ? void 0 : n[1];
1435
+ }, Kl = (t) => {
1436
+ const s = [], l = ql(t == null ? void 0 : t.key), e = Xl(t == null ? void 0 : t.key), n = wl(t == null ? void 0 : t.value), a = e == null ? void 0 : e[0], o = e == null ? void 0 : e[1], y = e == null ? void 0 : e[2], O = n == null ? void 0 : n[0], b = n == null ? void 0 : n[1];
1435
1437
  return l && s.push({
1436
1438
  key: "contentPath",
1437
1439
  value: l
@@ -1451,25 +1453,29 @@ const J = [
1451
1453
  key: "tableContents",
1452
1454
  value: b
1453
1455
  }), s;
1454
- }, Kl = (t, s) => {
1455
- const l = s.split("/"), e = [];
1456
+ }, Vl = (t, s) => {
1457
+ const l = s.split("/");
1458
+ let e = [];
1456
1459
  return t == null || t.forEach((n) => {
1457
- var y, O, b, C, d, $, x, k, S;
1458
- const a = [], o = (O = (y = n.find((u) => u.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0];
1459
- if (o && !o.some((u) => Array.isArray(u))) {
1460
- const u = (C = (b = n.find((c) => c.key === "tableColumns")) == null ? void 0 : b.value) == null ? void 0 : C[0];
1460
+ var y, O, b, g, d, $, x, k, S;
1461
+ const a = [], o = (O = (y = n.find((p) => p.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0];
1462
+ if (o && !o.some((p) => Array.isArray(p))) {
1463
+ const p = (g = (b = n.find((c) => c.key === "tableColumns")) == null ? void 0 : b.value) == null ? void 0 : g[0];
1461
1464
  a.push({
1462
1465
  key: "tableIndexColumn",
1463
1466
  contents: l[l.length - 1]
1464
1467
  }), a.push({
1465
1468
  key: "tableIndex",
1466
1469
  contents: o == null ? void 0 : o.map((c) => ({ label: c }))
1467
- }), a.push({
1470
+ }), Array.isArray(p) && p.some((c) => Array.isArray(c)) ? a.push({
1471
+ key: "header",
1472
+ contents: zl(p)
1473
+ }) : a.push({
1468
1474
  key: "header",
1469
- contents: Array.isArray(u) ? u == null ? void 0 : u.map((c) => ({ label: c })) : [u].map((c) => ({ label: c }))
1475
+ contents: Array.isArray(p) ? p == null ? void 0 : p.map((c) => ({ label: c })) : [p].map((c) => ({ label: c }))
1470
1476
  }), a.push({
1471
1477
  key: "tableContents",
1472
- contents: Array.isArray(u) ? ($ = (d = n.find((c) => c.key === "tableContents")) == null ? void 0 : d.value) == null ? void 0 : $[0] : (S = (k = (x = n.find((c) => c.key === "tableContents")) == null ? void 0 : x.value) == null ? void 0 : k[0]) == null ? void 0 : S.map((c) => [c])
1478
+ contents: Array.isArray(p) ? ($ = (d = n.find((c) => c.key === "tableContents")) == null ? void 0 : d.value) == null ? void 0 : $[0] : (S = (k = (x = n.find((c) => c.key === "tableContents")) == null ? void 0 : x.value) == null ? void 0 : k[0]) == null ? void 0 : S.map((c) => [c])
1473
1479
  }), e.push({
1474
1480
  comp: "Table",
1475
1481
  name: "",
@@ -1478,25 +1484,25 @@ const J = [
1478
1484
  } else o ? e.push({
1479
1485
  comp: "Table",
1480
1486
  name: "",
1481
- compData: zl(n, l[l.length - 1])
1482
- }) : e.push({
1487
+ compData: Zl(n, l[l.length - 1])
1488
+ }) : n.some((p) => p.key === "extra") ? e.push({
1483
1489
  comp: "calculator",
1484
1490
  name: "",
1485
- compData: Wl(n)
1486
- });
1491
+ compData: Oe(n)
1492
+ }) : e = Oe(n);
1487
1493
  }), e;
1488
- }, Vl = (t, s) => {
1494
+ }, Il = (t, s) => {
1489
1495
  var n, a;
1490
1496
  const l = t.map((o) => o.filter((y) => y.key !== "contentPath"));
1491
1497
  return {
1492
1498
  comp: "Group",
1493
1499
  compData: [{
1494
- contents: Kl(l, s),
1500
+ contents: Vl(l, s),
1495
1501
  key: "groupContents"
1496
1502
  }],
1497
1503
  name: (a = (n = t[0]) == null ? void 0 : n.find((o) => o.key === "contentPath")) == null ? void 0 : a.value
1498
1504
  };
1499
- }, Il = (t) => {
1505
+ }, et = (t) => {
1500
1506
  var n;
1501
1507
  const s = [], l = r(t).map((a) => {
1502
1508
  var o;
@@ -1505,25 +1511,25 @@ const J = [
1505
1511
  }).filter((a) => a !== ""), e = [...new Set(l)];
1506
1512
  return (n = e == null ? void 0 : e.filter((a) => a)) == null || n.forEach((a) => {
1507
1513
  var o;
1508
- s.push(Vl((o = r(t)) == null ? void 0 : o.filter((y) => y.find((O) => O.key === "contentPath" && O.value === a)), a));
1514
+ s.push(Il((o = r(t)) == null ? void 0 : o.filter((y) => y.find((O) => O.key === "contentPath" && O.value === a)), a));
1509
1515
  }), s;
1510
- }, et = (t) => {
1516
+ }, lt = (t) => {
1511
1517
  let s = [];
1512
1518
  s.push({
1513
1519
  comp: "Menu",
1514
1520
  compData: [{
1515
- contents: Ml(r(t)),
1521
+ contents: Hl(r(t)),
1516
1522
  key: "menuContents"
1517
1523
  }],
1518
1524
  name: ""
1519
1525
  });
1520
- const l = t.map((e) => wl(e));
1521
- return s = [...s, ...Il(l)], s;
1522
- }, gt = (t) => {
1526
+ const l = t.map((e) => Kl(e));
1527
+ return s = [...s, ...et(l)], s;
1528
+ }, Ct = (t) => {
1523
1529
  var n, a, o, y, O;
1524
- const s = (o = he((a = (n = r(t)) == null ? void 0 : n.replace("(", "(")) == null ? void 0 : a.replace(")", ")"))) == null ? void 0 : o.filter((b) => b !== ""), l = (O = (y = r(s)) == null ? void 0 : y.filter((b) => !b.includes("/*"))) == null ? void 0 : O.map((b) => Zl(b));
1525
- return et(l);
1526
- }, se = R(0), ie = R(0), lt = (t) => {
1530
+ const s = (o = me((a = (n = r(t)) == null ? void 0 : n.replace("(", "(")) == null ? void 0 : a.replace(")", ")"))) == null ? void 0 : o.filter((b) => b !== ""), l = (O = (y = r(s)) == null ? void 0 : y.filter((b) => !b.includes("/*"))) == null ? void 0 : O.map((b) => Ml(b));
1531
+ return lt(l);
1532
+ }, se = R(0), ie = R(0), tt = (t) => {
1527
1533
  const s = t.trim().replace(/^'|'$/g, ""), l = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, e = {};
1528
1534
  let n;
1529
1535
  for (; (n = l.exec(s)) !== null; ) {
@@ -1532,15 +1538,15 @@ const J = [
1532
1538
  (o.match(/\[/g) || []).length !== (o.match(/\]/g) || []).length && (o = o == null ? void 0 : o.replace(/]$/, "")), e[a] ? (e[a + ie.value] && ie.value++, e[a + ie.value] = a + "=" + o) : e[a] = a + "=" + o;
1533
1539
  }
1534
1540
  return e;
1535
- }, Be = (t) => {
1541
+ }, Je = (t) => {
1536
1542
  const [s, l] = t.split("=").map((a) => a.trim()), e = s.replace(/['"]/g, ""), n = l.replace(/^['"]|['"]$/g, "");
1537
1543
  return { key: e, value: n };
1538
- }, tt = (t) => {
1544
+ }, nt = (t) => {
1539
1545
  var o;
1540
1546
  let s = [];
1541
1547
  const [l, e] = t.split(/=(.+)/), n = l.replace(/['"]/g, "").trim(), a = e.replace(/^['"]|['"]$/g, "");
1542
- return (o = Object.values(lt(a))) == null || o.forEach((y) => {
1543
- s.push(Be(y));
1548
+ return (o = Object.values(tt(a))) == null || o.forEach((y) => {
1549
+ s.push(Je(y));
1544
1550
  }), { key: n, value: s };
1545
1551
  }, re = (t) => {
1546
1552
  try {
@@ -1548,7 +1554,7 @@ const J = [
1548
1554
  } catch {
1549
1555
  return !1;
1550
1556
  }
1551
- }, Je = (t) => {
1557
+ }, ve = (t) => {
1552
1558
  try {
1553
1559
  const s = t.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
1554
1560
  if (r(s).split("{").length - 1 > 1) {
@@ -1584,7 +1590,7 @@ const J = [
1584
1590
  } catch (s) {
1585
1591
  return console.error("转换失败:", s), [];
1586
1592
  }
1587
- }, nt = (t, s) => {
1593
+ }, st = (t, s) => {
1588
1594
  try {
1589
1595
  if (J != null && J.find((l) => (l == null ? void 0 : l.key) === s))
1590
1596
  return JSON.parse(t.replace(/[’]|[‘]|[']/g, '"'));
@@ -1597,12 +1603,12 @@ const J = [
1597
1603
  const e = JSON.parse(l);
1598
1604
  return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
1599
1605
  } else
1600
- return Je(r(t));
1606
+ return ve(r(t));
1601
1607
  }
1602
1608
  } catch (l) {
1603
1609
  return console.error("解析失败:", l), t;
1604
1610
  }
1605
- }, st = (t) => ({ [t == null ? void 0 : t.key]: nt(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), at = (t) => {
1611
+ }, at = (t) => ({ [t == null ? void 0 : t.key]: st(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), rt = (t) => {
1606
1612
  try {
1607
1613
  if (r(t).split("[").length - 1 > 1) {
1608
1614
  const s = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
@@ -1612,118 +1618,118 @@ const J = [
1612
1618
  } catch (s) {
1613
1619
  return console.error("解析失败:", s), t;
1614
1620
  }
1615
- }, ve = (t) => {
1621
+ }, Re = (t) => {
1616
1622
  var s, l, e, n, a, o;
1617
1623
  try {
1618
- const y = he((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), O = (e = r(y)) == null ? void 0 : e.map((d) => {
1624
+ const y = me((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), O = (e = r(y)) == null ? void 0 : e.map((d) => {
1619
1625
  var x, k;
1620
1626
  let $ = (k = (x = r(d)) == null ? void 0 : x.split("=")) == null ? void 0 : k[0];
1621
- return $ != null && $.includes("GroupContents") ? tt(d) : Be(d);
1627
+ return $ != null && $.includes("GroupContents") ? nt(d) : Je(d);
1622
1628
  }), b = [];
1623
1629
  (n = r(O)) == null || n.forEach((d) => {
1624
- var $, x, k, S, u;
1630
+ var $, x, k, S, p;
1625
1631
  J != null && J.find((c) => {
1626
- var p, g;
1627
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1632
+ var u, C;
1633
+ return ((u = c == null ? void 0 : c.key) == null ? void 0 : u.toUpperCase()) === ((C = d == null ? void 0 : d.key) == null ? void 0 : C.toUpperCase());
1628
1634
  }) ? b.push({
1629
1635
  comp: (($ = J == null ? void 0 : J.find((c) => {
1630
- var p, g;
1631
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1636
+ var u, C;
1637
+ return ((u = c == null ? void 0 : c.key) == null ? void 0 : u.toUpperCase()) === ((C = d == null ? void 0 : d.key) == null ? void 0 : C.toUpperCase());
1632
1638
  })) == null ? void 0 : $.value) ?? "",
1633
1639
  name: (x = d == null ? void 0 : d.value) == null ? void 0 : x.replace(/[’]|[‘]|[']/g, ""),
1634
1640
  compData: []
1635
1641
  }) : B != null && B.find((c) => {
1636
- var p, g;
1637
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1642
+ var u, C;
1643
+ return ((u = c == null ? void 0 : c.key) == null ? void 0 : u.toUpperCase()) === ((C = d == null ? void 0 : d.key) == null ? void 0 : C.toUpperCase());
1638
1644
  }) && ((b == null ? void 0 : b.length) === 0 && (k = d.key) != null && k.includes("Menus") && b.push({
1639
1645
  comp: "Menu",
1640
1646
  name: "",
1641
1647
  compData: []
1642
1648
  }), (S = b == null ? void 0 : b[(b == null ? void 0 : b.length) - 1]) != null && S.compData && b[(b == null ? void 0 : b.length) - 1].compData.push({
1643
- key: (u = B == null ? void 0 : B.find((c) => {
1644
- var p, g;
1645
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1646
- })) == null ? void 0 : u.value,
1649
+ key: (p = B == null ? void 0 : B.find((c) => {
1650
+ var u, C;
1651
+ return ((u = c == null ? void 0 : c.key) == null ? void 0 : u.toUpperCase()) === ((C = d == null ? void 0 : d.key) == null ? void 0 : C.toUpperCase());
1652
+ })) == null ? void 0 : p.value,
1647
1653
  contents: d == null ? void 0 : d.value
1648
1654
  }));
1649
1655
  }), console.log("newContents", b);
1650
- let C = (a = r(b)) == null ? void 0 : a.map((d) => {
1656
+ let g = (a = r(b)) == null ? void 0 : a.map((d) => {
1651
1657
  var $;
1652
1658
  return d != null && d.compData && (d.compData = ($ = d == null ? void 0 : d.compData) == null ? void 0 : $.map((x) => {
1653
- var k, S, u, c, p, g, i, f, h, A, T;
1659
+ var k, S, p, c, u, C, i, f, h, A, T;
1654
1660
  if ((x == null ? void 0 : x.key) === "formFlex")
1655
1661
  x.contents = ((S = (k = x.contents) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : S.toUpperCase()) !== "Vertical".toUpperCase();
1656
1662
  else if ((x == null ? void 0 : x.key) === "groupContents")
1657
- x.contents = (u = r(x.contents)) == null ? void 0 : u.map((D) => st(r(D)));
1658
- else if (((p = (c = x.contents) == null ? void 0 : c.trim()) != null && p.startsWith("[") || (i = (g = x.contents) == null ? void 0 : g.trim()) != null && i.startsWith("【")) && ((h = (f = x.contents) == null ? void 0 : f.trim()) != null && h.endsWith("]") || (T = (A = x.contents) == null ? void 0 : A.trim()) != null && T.endsWith("】")))
1659
- x.contents = at(r(x.contents));
1663
+ x.contents = (p = r(x.contents)) == null ? void 0 : p.map((D) => at(r(D)));
1664
+ else if (((u = (c = x.contents) == null ? void 0 : c.trim()) != null && u.startsWith("[") || (i = (C = x.contents) == null ? void 0 : C.trim()) != null && i.startsWith("【")) && ((h = (f = x.contents) == null ? void 0 : f.trim()) != null && h.endsWith("]") || (T = (A = x.contents) == null ? void 0 : A.trim()) != null && T.endsWith("】")))
1665
+ x.contents = rt(r(x.contents));
1660
1666
  else {
1661
1667
  if (!x.contents) return;
1662
- x.contents = Je(r(x.contents));
1668
+ x.contents = ve(r(x.contents));
1663
1669
  }
1664
1670
  return x;
1665
1671
  })), d;
1666
1672
  });
1667
- return C = (o = r(C)) == null ? void 0 : o.map((d) => {
1673
+ return g = (o = r(g)) == null ? void 0 : o.map((d) => {
1668
1674
  var $;
1669
1675
  return (d == null ? void 0 : d.comp) === "Group" && (d.compData = ($ = d.compData) == null ? void 0 : $.map((x) => {
1670
1676
  var S;
1671
1677
  let k = [];
1672
- return (S = x.contents) == null || S.forEach((u) => {
1673
- var c, p, g, i, f, h, A, T, D, _, j, E;
1678
+ return (S = x.contents) == null || S.forEach((p) => {
1679
+ var c, u, C, i, f, h, A, T, D, _, j, E;
1674
1680
  if (J != null && J.find((F) => {
1675
1681
  var U, v, N;
1676
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1682
+ return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(p)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1677
1683
  }))
1678
1684
  k.push({
1679
1685
  comp: (c = J == null ? void 0 : J.find((F) => {
1680
1686
  var U, v, N;
1681
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1687
+ return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(p)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1682
1688
  })) == null ? void 0 : c.value,
1683
- name: (g = (p = Object.values(u)) == null ? void 0 : p[0]) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, ""),
1689
+ name: (C = (u = Object.values(p)) == null ? void 0 : u[0]) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, ""),
1684
1690
  compData: []
1685
1691
  });
1686
1692
  else if (B != null && B.find((F) => {
1687
1693
  var U, v, N;
1688
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1694
+ return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(p)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1689
1695
  })) {
1690
1696
  if ((k == null ? void 0 : k.length) === 0) return;
1691
1697
  (i = k == null ? void 0 : k[(k == null ? void 0 : k.length) - 1]) != null && i.compData && k[(k == null ? void 0 : k.length) - 1].compData.push({
1692
1698
  key: (f = B == null ? void 0 : B.find((F) => {
1693
1699
  var U, v, N;
1694
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1700
+ return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(p)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1695
1701
  })) == null ? void 0 : f.value,
1696
- contents: (h = Object.values(u)) == null ? void 0 : h[0]
1702
+ contents: (h = Object.values(p)) == null ? void 0 : h[0]
1697
1703
  });
1698
- } else if ((T = (A = Object.keys(u)) == null ? void 0 : A[0]) != null && T.includes("$")) {
1699
- const F = (_ = (D = Object.keys(r(u))) == null ? void 0 : D[0]) == null ? void 0 : _.split("$");
1704
+ } else if ((T = (A = Object.keys(p)) == null ? void 0 : A[0]) != null && T.includes("$")) {
1705
+ const F = (_ = (D = Object.keys(r(p))) == null ? void 0 : D[0]) == null ? void 0 : _.split("$");
1700
1706
  k[(k == null ? void 0 : k.length) - 1].compData.push({
1701
1707
  key: (j = B == null ? void 0 : B.find((U) => {
1702
1708
  var v, N;
1703
1709
  return ((v = U == null ? void 0 : U.key) == null ? void 0 : v.toUpperCase()) === ((N = F == null ? void 0 : F[0]) == null ? void 0 : N.toUpperCase());
1704
1710
  })) == null ? void 0 : j.value,
1705
- contents: (E = Object.values(u)) == null ? void 0 : E[0],
1711
+ contents: (E = Object.values(p)) == null ? void 0 : E[0],
1706
1712
  selectLabel: F == null ? void 0 : F[1]
1707
1713
  });
1708
1714
  }
1709
- return u;
1715
+ return p;
1710
1716
  }), x.contents = k, x;
1711
1717
  })), d;
1712
- }), C;
1718
+ }), g;
1713
1719
  } catch {
1714
1720
  return !1;
1715
1721
  }
1716
- }, Ct = (t) => ve(t), $t = (t) => !!ve(t), rt = Qe(de), { itemData: At } = _e(rt), ot = qe(de), { systemKey: Ot, activeMenuPath: _t } = _e(ot), I = R(0), xt = (t) => t.reduce((l, e) => {
1722
+ }, $t = (t) => Re(t), At = (t) => !!Re(t), ot = Xe(de), { itemData: Ot } = xe(ot), ct = Qe(de), { systemKey: _t, activeMenuPath: xt } = xe(ct), I = R(0), Tt = (t) => t.reduce((l, e) => {
1717
1723
  var a, o;
1718
1724
  const n = Object.values(l);
1719
1725
  return (((a = Object.keys(l)) == null ? void 0 : a.length) === 0 || n[n.length - 1].length >= (e == null ? void 0 : e.width)) && (l[I.value] = [], I.value++), l[I.value - 1].push(e), ((o = Object.keys(l)) == null ? void 0 : o.length) === (e == null ? void 0 : e.width) && (l[I.value] = [], I.value++), l;
1720
1726
  }, {});
1721
1727
  export {
1722
- xt as a,
1723
- kt as b,
1724
- gt as c,
1725
- Ct as e,
1726
- _l as g,
1727
- $t as i,
1728
- bt as s
1728
+ Tt as a,
1729
+ gt as b,
1730
+ Ct as c,
1731
+ $t as e,
1732
+ xl as g,
1733
+ At as i,
1734
+ kt as s
1729
1735
  };