ss-component-new 1.3.340 → 1.3.342

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 (154) hide show
  1. package/dist/{MTLLoader-C-XJYnXR.js → MTLLoader-Ajg9K91w.js} +1 -1
  2. package/dist/{MTLLoader-Dx_OCevv.cjs → MTLLoader-PBhLgTVu.cjs} +1 -1
  3. package/dist/{OrbitControls-B55yzIKX.cjs → OrbitControls-C10-pt6H.cjs} +1 -1
  4. package/dist/{OrbitControls-BB87FyuR.js → OrbitControls-CgEewitL.js} +1 -1
  5. package/dist/{URDFLoader-Uh4bBb-n.cjs → URDFLoader-Bj47zJKE.cjs} +1 -1
  6. package/dist/{URDFLoader-DgP2bMhH.js → URDFLoader-CvMjtZ-x.js} +2 -2
  7. package/dist/{animationData-CF6benhM.js → animationData-BLdkUJ2X.js} +3 -3
  8. package/dist/{animationData-BfEyrEkb.cjs → animationData-D9-6Rod5.cjs} +1 -1
  9. package/dist/array-D7Bu5gb2.cjs +1 -0
  10. package/dist/{array-Dz0LlM28.js → array-DKwq_BSC.js} +38 -39
  11. package/dist/clone-BUCnBgnS.js +8 -0
  12. package/dist/clone-y_gmwkJo.cjs +1 -0
  13. package/dist/day-BNr9Td9D.cjs +7 -0
  14. package/dist/day-BV-VjzXX.js +2382 -0
  15. package/dist/{dayjs.min-bC5IyY3C.js → dayjs.min-B8ub8S6d.js} +4 -4
  16. package/dist/{dayjs.min-CSW85jLQ.cjs → dayjs.min-Bo5ALhPO.cjs} +1 -1
  17. package/dist/{iconfont-DV-mBuRs.js → iconfont-Cl-SDAtC.js} +2 -2
  18. package/dist/{iconfont-rvMUQHIL.cjs → iconfont-DpN6kvUK.cjs} +1 -1
  19. package/dist/index-6iwwUgL6.cjs +104 -0
  20. package/dist/{index-Dcp8sI4C.js → index-9V23Nn2F.js} +4 -4
  21. package/dist/index-9WLF0N-m.cjs +15 -0
  22. package/dist/{index-Ca3THBbJ.cjs → index-B0V9Wfze.cjs} +1 -1
  23. package/dist/index-B0cDSro0.cjs +1 -0
  24. package/dist/index-B4Yau3Cx.cjs +1 -0
  25. package/dist/index-B4u9cnxn.cjs +1 -0
  26. package/dist/{index-rW-jQkgq.js → index-B4yv_CI9.js} +9 -10
  27. package/dist/index-B5u9ckAG.cjs +1 -0
  28. package/dist/{index-C6gCT4vd.js → index-BGRqQYv0.js} +70 -71
  29. package/dist/{index-CbBP02RV.js → index-BLHM2RZs.js} +4 -4
  30. package/dist/{index-C4NN-IA4.js → index-BMt9iXGt.js} +16 -17
  31. package/dist/index-BO9LCv0L.js +327 -0
  32. package/dist/index-BTpsNI8m.cjs +1 -0
  33. package/dist/index-Bb9xuBcN.cjs +1 -0
  34. package/dist/{index-CHAqLCtD.js → index-Bieh0oMN.js} +8 -8
  35. package/dist/{index-BWpqDCVF.cjs → index-Bl1R6hLx.cjs} +1 -1
  36. package/dist/index-BndWdAyT.js +168 -0
  37. package/dist/index-BqtZ8oXB.cjs +1 -0
  38. package/dist/{index-CHIMUYG3.js → index-BxSJzmcq.js} +16 -17
  39. package/dist/{index-D0gKkud0.js → index-C3_fcg5b.js} +8 -20
  40. package/dist/{index-BSCoLGXF.js → index-CLasTJZ7.js} +318 -318
  41. package/dist/{index-0VkKesv_.js → index-CPuSbD0o.js} +13 -14
  42. package/dist/{index-DGwbEHLN.js → index-CUmttoQs.js} +6 -7
  43. package/dist/index-CWea8Hwx.cjs +2 -0
  44. package/dist/index-Cjsv9UB2.cjs +1 -0
  45. package/dist/{index-CHnN0kSC.js → index-CkJ5sZmH.js} +268 -279
  46. package/dist/{index-BPpYDffY.cjs → index-CyAk6NlY.cjs} +1 -1
  47. package/dist/index-Cz8oXtNa.cjs +1 -0
  48. package/dist/index-D0D-8tq3.cjs +1 -0
  49. package/dist/index-D28carCM.cjs +25 -0
  50. package/dist/{index-Ijbw1FIL.js → index-D2iun0qB.js} +18 -19
  51. package/dist/{index-BTgJ9oD-.cjs → index-D8TKh-Ur.cjs} +1 -1
  52. package/dist/index-DBl4_nFE.cjs +1 -0
  53. package/dist/{index-DMt7y2yA.js → index-DCBM-gqv.js} +104 -113
  54. package/dist/{index-COowXWF7.cjs → index-DCHyRwyR.cjs} +1 -1
  55. package/dist/index-DDz6oLBR.cjs +1 -0
  56. package/dist/{index-DWP-FYxV.js → index-DGaoFZNU.js} +13 -14
  57. package/dist/index-DJ3sA4Gm.cjs +1 -0
  58. package/dist/{index-c1EWDQO1.js → index-DKYHED4o.js} +1 -1
  59. package/dist/{index-CYgpY06q.js → index-DScuDjxN.js} +4 -4
  60. package/dist/{index-voXPz7Hq.js → index-DaHM_OEL.js} +251 -260
  61. package/dist/{index-S2ChvJMP.js → index-Dd6fkS6a.js} +1 -1
  62. package/dist/{index-D6Zkrpou.js → index-DehN_tZl.js} +13 -14
  63. package/dist/index-DfxDifWX.cjs +1 -0
  64. package/dist/{index-Bdh2uHRO.js → index-DimgHus_.js} +44 -45
  65. package/dist/index-DkR9zIgE.cjs +1 -0
  66. package/dist/index-DlDpjgK7.cjs +1 -0
  67. package/dist/{index-DN4OcDlg.js → index-Dmstdf9f.js} +1 -1
  68. package/dist/index-Ds0ibmGw.cjs +1 -0
  69. package/dist/{index-DLLST1Nd.js → index-DsfZZrDe.js} +11 -12
  70. package/dist/{index-Zvul3j_r.cjs → index-Dw5QRbm2.cjs} +1 -1
  71. package/dist/index-Dz06Dix4.js +21 -0
  72. package/dist/{index-C3lScvOV.cjs → index-Pmf6bCKe.cjs} +1 -1
  73. package/dist/index-_aEslAdL.cjs +1 -0
  74. package/dist/index-bs1KW4Mf.js +10008 -0
  75. package/dist/{index-CgjHHxqY.js → index-czdl81QC.js} +6 -7
  76. package/dist/index-fxwUfoBD.cjs +1 -0
  77. package/dist/index-jFQKdLGf.cjs +1 -0
  78. package/dist/{index-DyJCopUt.js → index-pfsYhNVv.js} +3 -4
  79. package/dist/index-qyNzhZ9p.js +68 -0
  80. package/dist/{index-9nQLsFiY.js → index-zwvfPNTm.js} +2 -2
  81. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDgIVZve.js} +1950 -1956
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DAAbs6bU.cjs} +336 -336
  83. package/dist/main-BrOVZokA.cjs +11 -0
  84. package/dist/{main-Cd_mObtH.js → main-GGbIOSca.js} +8 -9
  85. package/dist/menu-CYazzvub.cjs +12 -0
  86. package/dist/menu-DGzm1FYA.js +5675 -0
  87. package/dist/menuIndex-Br2dXQqi.cjs +1 -0
  88. package/dist/menuIndex-CoVR5ix7.js +134 -0
  89. package/dist/ss-component.cjs +1 -1
  90. package/dist/ss-component.css +2 -2
  91. package/dist/ss-component.js +13 -13
  92. package/dist/ss-component2.cjs +1 -1
  93. package/dist/ss-component2.js +115 -10
  94. package/dist/ss-component3.cjs +1 -1
  95. package/dist/ss-component3.js +10 -5
  96. package/dist/{threeModel-CIZ5D8Df.js → threeModel-B8afF4RO.js} +4 -4
  97. package/dist/{threeModel-Dekl17Re.cjs → threeModel-BIcXUfRq.cjs} +1 -1
  98. package/dist/threePreview-CuXGNvBL.cjs +1 -0
  99. package/dist/{threePreview-B46ButBi.js → threePreview-DLxW-XYV.js} +6 -7
  100. package/dist/{threeSceneView-CoQQCgZ3.cjs → threeSceneView-DHahXsWx.cjs} +1 -1
  101. package/dist/{threeSceneView-D4mxD9hv.js → threeSceneView-RZtjgaQI.js} +14 -16
  102. package/dist/{threeSceneViewForCPMPIP-BR01ytzC.cjs → threeSceneViewForCPMPIP-0_i3LOfz.cjs} +1 -1
  103. package/dist/{threeSceneViewForCPMPIP-DTtZGOcw.js → threeSceneViewForCPMPIP-DMhM6ZvH.js} +10 -11
  104. package/dist/threeTrackPathView-CrlluuTz.cjs +1 -0
  105. package/dist/{threeTrackPathView-BQPS8ajS.js → threeTrackPathView-cclE9z18.js} +87 -88
  106. package/dist/threeViewerHost-BaEB4k1F.cjs +1 -0
  107. package/dist/{threeViewerHost-CsMI9jbX.js → threeViewerHost-LoU6OtMI.js} +10 -11
  108. package/dist/{urdfTree-umPKeRFh.cjs → urdfTree-BTD0A42y.cjs} +1 -1
  109. package/dist/{urdfTree-B118FC_3.js → urdfTree-RdS14ARy.js} +1 -1
  110. package/dist/{workpieceTreePanel-CwUXRyn3.cjs → workpieceTreePanel-CfwoCG1K.cjs} +1 -1
  111. package/dist/{workpieceTreePanel-D9TnLdIy.js → workpieceTreePanel-Q4_hCBXx.js} +4 -4
  112. package/package.json +1 -1
  113. package/dist/array-Dk18oefG.cjs +0 -1
  114. package/dist/clone-BDBSWARv.cjs +0 -1
  115. package/dist/clone-BqeCvECh.js +0 -8
  116. package/dist/index--E8u7lHy.cjs +0 -12
  117. package/dist/index-B38fQMRk.cjs +0 -1
  118. package/dist/index-BIg-Nt0x.cjs +0 -25
  119. package/dist/index-BQO25T-T.cjs +0 -1
  120. package/dist/index-BchGbZ1v.cjs +0 -15
  121. package/dist/index-Bio1_C_H.cjs +0 -1
  122. package/dist/index-BmJV5eVh.js +0 -4669
  123. package/dist/index-BtyugMgY.cjs +0 -1
  124. package/dist/index-BzeH13wt.cjs +0 -1
  125. package/dist/index-C3-1AlM-.js +0 -2765
  126. package/dist/index-C9baGOvW.js +0 -9647
  127. package/dist/index-CMsGT7Tl.cjs +0 -1
  128. package/dist/index-COTur3RT.cjs +0 -1
  129. package/dist/index-CUp0Z80f.cjs +0 -2
  130. package/dist/index-CoX9mofW.cjs +0 -1
  131. package/dist/index-CyQV3nI9.cjs +0 -1
  132. package/dist/index-DBhc2SoQ.cjs +0 -1
  133. package/dist/index-DBrXonf1.cjs +0 -1
  134. package/dist/index-DEfKSijb.cjs +0 -7
  135. package/dist/index-DNyLSjIf.cjs +0 -1
  136. package/dist/index-DOQApax-.cjs +0 -1
  137. package/dist/index-DtlQjI5L.cjs +0 -1
  138. package/dist/index-FJ_oMfF3.cjs +0 -1
  139. package/dist/index-L9DruvvE.cjs +0 -1
  140. package/dist/index-T25jN7df.cjs +0 -104
  141. package/dist/index-W6w3oiQ2.cjs +0 -1
  142. package/dist/index-ipcwULw-.js +0 -167
  143. package/dist/main-FOjt8u8O.cjs +0 -11
  144. package/dist/menu-7kw8Lwp_.cjs +0 -1
  145. package/dist/menu-CK0ndSHP.js +0 -1132
  146. package/dist/menuIndex-Ba-9R5jd.cjs +0 -1
  147. package/dist/menuIndex-DiNvd_FY.js +0 -125
  148. package/dist/obj/model.mtl +0 -42
  149. package/dist/obj/model.obj +0 -26110
  150. package/dist/threePreview-DcCfaIpB.cjs +0 -1
  151. package/dist/threeTrackPathView-C6IiddAw.cjs +0 -1
  152. package/dist/threeViewerHost-B3elQtpE.cjs +0 -1
  153. package/public/obj/model.mtl +0 -42
  154. package/public/obj/model.obj +0 -26110
@@ -1,25 +0,0 @@
1
- "use strict";var _u=Object.defineProperty;var Cu=(l,n,r)=>n in l?_u(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var Wr=(l,n,r)=>Cu(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),al=require("./request-BC2w2vGr.cjs"),Vn=require("./dayjs.min-CSW85jLQ.cjs"),ol=require("./index--E8u7lHy.cjs"),pl=require("./index-BchGbZ1v.cjs"),Xl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs"),Y=require("./menu-7kw8Lwp_.cjs"),wr=require("./index-CUw6nGTo.cjs"),Ci=require("./threeViewerHost-B3elQtpE.cjs"),oa=require("./index-T25jN7df.cjs"),Eu=require("./index-DsNHJYr-.cjs"),Dr=require("./index-CW4qJdP8.cjs"),es=require("./index-Bio1_C_H.cjs"),Ks=require("./index-DOQApax-.cjs"),Fo=require("./index-W8p89C7t.cjs"),dn=require("./index-DEfKSijb.cjs");;/* empty css */const Ei=require("./isString-DNBlKLZH.cjs"),as=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Gs=require("./index-BVaHwt5f.cjs"),Su=require("./index-BTgJ9oD-.cjs"),Ln=require("./MTLLoader-Dx_OCevv.cjs"),Du=require("./URDFLoader-Uh4bBb-n.cjs");var Bu="[object Boolean]";function Ys(l){return l===!0||l===!1||al.isObjectLike(l)&&al.baseGetTag(l)==Bu}function Nu(l){return l===void 0}const Tu=l=>l.match(/\((.*)\)/)[1],Au={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const n=l,r=a.ref(null),o=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{o.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,y;(y=(c=r.value)==null?void 0:c.updatePopper)==null||y.call(c)})},{deep:!0,immediate:!0}),(c,y)=>{const p=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":y[0]||(y[0]=v=>o.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},zu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const n=l,r=a.computed(()=>{const o=String(n.value??"");return o==="已完成"?"task-status-completed":o==="进行中"?"task-status-running":o==="终止"||o==="暂停"?"task-status-stopped":""});return(o,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",r.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Mu=Xl._export_sfc(zu,[["__scopeId","data-v-d81f59b4"]]);function Iu(l,n,r,o={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:y=2,fillOpacity:p=.2}=o,v=l.getBoundingClientRect(),m=n.getBoundingClientRect(),u=n.naturalWidth,w=n.naturalHeight,D=m.width/u,L=m.height/w,S=Math.min(D,L),W=u*S,I=w*S,A=(v.width-W)/2,ee=(v.height-I)/2,C=r.map(([E,k])=>{const g=A+E*W,O=ee+k*I;return{x:g,y:O}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let E=1;E<C.length;E++)s.lineTo(C[E].x,C[E].y);s.closePath();const _=c.replace(/[\d.]+\)$/,`${p})`);s.fillStyle=_,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=y,s.stroke()}function wo(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function ls(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Ou={key:0,class:"ocr-img-preview-root"},Lu={class:"ocr-img-preview-window"},Ru={key:0,class:"img-preview-body"},$u={class:"img-preview-header"},Vu={class:"img-header-left"},Pu={class:"img-name"},Fu={key:0,class:"img-header-right"},ju={class:"img-index"},Hu={key:0,class:"img-thumb-list"},Uu=["onClick"],qu={key:1,class:"thumb-placeholder"},Wu={class:"thumb-name"},Ku={class:"img-preview-container"},Gu={key:0,class:"img-placeholder"},Yu={key:2,class:"img-placeholder"},Ju={key:0},Xu={key:1},Zu={key:1,class:"img-placeholder"},Qu=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:n}){const r=l,o=n,s=a.computed({get:()=>r.visible,set:P=>o("update:visible",P)});let c=!1,y="",p=0,v=0,m=0,u=0,w=0,D=0,L=null;const S=P=>{var ye,Se;const j=(Se=(ye=P==null?void 0:P.target)==null?void 0:ye.closest)==null?void 0:Se.call(ye,".ocr-img-preview-window");return j||document.querySelector(".ocr-img-preview-window")},W=P=>{if(!P||P==="none")return{tx:0,ty:0};let j=P.match(/matrix\(([^)]+)\)/);if(j){const ye=j[1].split(",").map(Se=>Number(Se.trim()));return{tx:(ye==null?void 0:ye[4])||0,ty:(ye==null?void 0:ye[5])||0}}if(j=P.match(/matrix3d\(([^)]+)\)/),j){const ye=j[1].split(",").map(Se=>Number(Se.trim()));return{tx:(ye==null?void 0:ye[12])||0,ty:(ye==null?void 0:ye[13])||0}}return j=P.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),j?{tx:Number(j[1])||0,ty:Number(j[2])||0}:{tx:0,ty:0}},I=(P,j,ye)=>{P.style.transform=`translate(${j}px, ${ye}px)`},A=P=>{const j=S(P);if(!j)return;c=!0,L=j,y="move",p=P.clientX,v=P.clientY;const ye=window.getComputedStyle(j),{tx:Se,ty:ke}=W(ye.transform);w=Se,D=ke,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},ee=(P,j)=>{const ye=S(P);if(!ye)return;c=!0,L=ye,y=j,p=P.clientX,v=P.clientY;const Se=ye.getBoundingClientRect();m=Se.width,u=Se.height;const ke=window.getComputedStyle(ye),{tx:Ze,ty:ya}=W(ke.transform);w=Ze,D=ya,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},C=P=>{if(!c||!L)return;const j=P.clientX-p,ye=P.clientY-v,Se=360,ke=420;let Ze=m,ya=u,Ha=w,re=D;if(y==="move"){Ha=w+j,re=D+ye,I(L,Ha,re);return}if(y.includes("right")&&(Ze=Math.max(Se,m+j)),y.includes("bottom")&&(ya=Math.max(ke,u+ye)),y.includes("left")){const la=m-j;la<Se?(Ze=Se,Ha=w+(m-Se)):(Ze=la,Ha=w+j)}if(y.includes("top")){const la=u-ye;la<ke?(ya=ke,re=D+(u-ke)):(ya=la,re=D+ye)}L.style.width=`${Ze}px`,L.style.height=`${ya}px`,I(L,Ha,re)},_=()=>{c=!1,y="",L=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)},E=a.ref([]),k=a.ref(!1);a.watch(()=>r.images,async P=>{if(!Array.isArray(P)||P.length===0){E.value=[];return}k.value=!0;const j=[];for(const ye of P)if(ye.url&&!ye.url.startsWith("blob:")&&!ye.url.startsWith("http"))try{const Se=await $a.downloadFile(ye.url),ke=URL.createObjectURL(Se);j.push({...ye,blobUrl:ke})}catch(Se){console.error(`Failed to load image for preview: ${ye.url}`,Se),j.push({...ye,blobUrl:""})}else j.push({...ye,blobUrl:ye.url});E.value=j,k.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),O=a.ref(null),F=a.ref(null),q=a.computed(()=>E.value[g.value]||null),te=()=>{if(!E.value.length){g.value=0;return}if(r.defaultImageName){const P=E.value.findIndex(j=>(j==null?void 0:j.name)===r.defaultImageName);g.value=P>=0?P:0}else g.value=0},Te=P=>{if(!E.value.length)return;const j=Math.max(0,Math.min(P,E.value.length-1));g.value=j},Ee=()=>Te(g.value-1),Q=()=>Te(g.value+1),be=P=>{if(!P)return;const j=E.value.findIndex(ye=>(ye==null?void 0:ye.name)===P);j>=0&&(g.value=j)},Z=()=>{if(!F.value)return;const P=F.value.parentElement;if(!P)return;const j=P.getBoundingClientRect();F.value.width=j.width,F.value.height=j.height},de=()=>{var Se,ke;if(!F.value||!O.value||!r.focusedFieldName){F.value&&wo(F.value);return}const P=(Se=O.value.$el)==null?void 0:Se.querySelector("img");if(!P)return;if(!P.complete||P.naturalWidth===0){P.onload=()=>{a.nextTick(()=>{de()})};return}const j=((ke=q.value)==null?void 0:ke.name)||"",ye=ls(r.fieldMeta,r.focusedFieldName);if(!ye){wo(F.value);return}if(ye.imageName!==j){wo(F.value);return}Z(),Iu(F.value,P,ye.bboxNorm)},je=()=>{a.nextTick(()=>{Z(),de()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const P=ls(r.fieldMeta,r.focusedFieldName);P!=null&&P.imageName&&be(P.imageName),a.nextTick(()=>{de()})}),a.watch(()=>{var P;return(P=q.value)==null?void 0:P.name},()=>{s.value&&a.nextTick(()=>{F.value&&wo(F.value),de()})}),a.watch(()=>r.visible,P=>{P?(te(),a.nextTick(()=>{Z(),de()})):F.value&&wo(F.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&te()});let wa=null;a.onMounted(()=>{var P;typeof ResizeObserver<"u"&&(wa=new ResizeObserver(()=>{Z(),a.nextTick(()=>{de()})}),(P=F.value)!=null&&P.parentElement&&wa.observe(F.value.parentElement))}),a.onUnmounted(()=>{wa&&(wa.disconnect(),wa=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)});const ie=()=>{F.value&&wo(F.value),o("update:visible",!1),o("close")};return(P,j)=>{var ya,Ha;const ye=a.resolveComponent("el-button"),Se=a.resolveComponent("el-image"),ke=a.resolveComponent("Loading"),Ze=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Ou,[j[12]||(j[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Lu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(A,["stop"])},[j[8]||(j[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ie},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:j[0]||(j[0]=a.withModifiers(re=>ee(re,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:j[1]||(j[1]=a.withModifiers(re=>ee(re,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:j[2]||(j[2]=a.withModifiers(re=>ee(re,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:j[3]||(j[3]=a.withModifiers(re=>ee(re,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:j[4]||(j[4]=a.withModifiers(re=>ee(re,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:j[5]||(j[5]=a.withModifiers(re=>ee(re,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:j[6]||(j[6]=a.withModifiers(re=>ee(re,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:j[7]||(j[7]=a.withModifiers(re=>ee(re,"bottom-right"),["stop"]))},null,32),q.value?(a.openBlock(),a.createElementBlock("div",Ru,[a.createElementVNode("div",$u,[a.createElementVNode("div",Vu,[a.createElementVNode("span",Pu,a.toDisplayString(q.value.name?q.value.name+(q.value.url&&q.value.url.lastIndexOf(".")!==-1?q.value.url.substring(q.value.url.lastIndexOf(".")):""):""),1)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Fu,[a.createVNode(ye,{size:"small",disabled:g.value===0,onClick:Ee},{default:a.withCtx(()=>j[9]||(j[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",ju,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(E.value.length),1),a.createVNode(ye,{size:"small",disabled:g.value===E.value.length-1,onClick:Q},{default:a.withCtx(()=>j[10]||(j[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Hu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,(re,la)=>(a.openBlock(),a.createElementBlock("div",{key:(re.name||"")+"-"+la,class:a.normalizeClass(["img-thumb-item",{active:la===g.value}]),onClick:Ve=>Te(la)},[re!=null&&re.blobUrl?(a.openBlock(),a.createBlock(Se,{key:0,src:re.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[re.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",qu,"加载失败")),a.createElementVNode("div",Wu,a.toDisplayString(re.name||"-"),1)],10,Uu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Ku,[k.value?(a.openBlock(),a.createElementBlock("div",Gu,[a.createVNode(Ze,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(ke)]),_:1}),j[11]||(j[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(ya=q.value)!=null&&ya.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Se,{ref_key:"imageRef",ref:O,src:q.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[q.value.blobUrl],onLoad:je},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:F,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Yu,[(Ha=q.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",Ju,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Xu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Zu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),ed=Xl._export_sfc(Qu,[["__scopeId","data-v-48a4ecb1"]]),ad={class:"cert-preview-body"},ld={key:0,class:"pdf-preview-container"},rd={class:"thumbs"},nd=["onClick"],od={class:"thumb-img"},id=["src"],td={key:1,class:"thumb-loading"},sd={class:"thumb-title"},cd={class:"viewer"},ud={key:0,class:"viewer-img-wrap"},dd=["src"],pd={key:1,class:"viewer-loading"},fd=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(""),c=a.ref(""),y=a.computed(()=>(r.versions||[]).find(S=>String(S.versionId)===String(s.value))),p=a.ref({}),v=a.ref(""),m=a.ref("证书附件.pdf"),u=()=>{try{Object.values(p.value||{}).forEach(S=>{S&&URL.revokeObjectURL(S)}),v.value&&URL.revokeObjectURL(v.value)}catch{}p.value={},v.value=""},w=async S=>{if(!S||S.fileType==="pdf")return;const W=Array.isArray(S.images)?S.images:[];for(const I of W){const A=I==null?void 0:I.url;if(!(!A||p.value[A]))try{const ee=await Y.platformDownloadFile({url:A}),C=URL.createObjectURL(ee.data);p.value={...p.value,[A]:C}}catch{}}},D=async S=>{var I;if(!S||S.fileType!=="pdf"){v.value="";return}const W=S.sourceUrl||"";if(!W){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:S==null?void 0:S.versionId,certNo:S==null?void 0:S.certNo});const A=await Y.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:A==null?void 0:A.status,size:(I=A==null?void 0:A.data)==null?void 0:I.size});const ee=URL.createObjectURL(A.data);v.value=ee;const C=S.certNo?String(S.certNo):"";m.value=C?`${C}.pdf`:"证书附件.pdf"}catch(A){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:A}),v.value=""}};a.watch(()=>r.visible,async S=>{var I;if(!S){u();return}const W=(I=r.versions)==null?void 0:I[0];s.value=(W==null?void 0:W.versionId)||"",await w(W),await D(W)},{immediate:!0}),a.watch(()=>s.value,async()=>{var W,I;const S=y.value;if(!S){c.value="",v.value="";return}if(S.fileType==="pdf"){c.value="",await D(S);return}v.value="",c.value=((I=(W=S.images)==null?void 0:W[0])==null?void 0:I.url)||"",await w(S)},{immediate:!0});const L=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(S,W)=>{const I=a.resolveComponent("el-empty"),A=a.resolveComponent("el-tab-pane"),ee=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),_=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(_,{"model-value":S.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:L},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:L},{default:a.withCtx(()=>W[1]||(W[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[S.versions&&S.versions.length>0?(a.openBlock(),a.createBlock(ee,{key:0,modelValue:s.value,"onUpdate:modelValue":W[0]||(W[0]=E=>s.value=E),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.versions,E=>(a.openBlock(),a.createBlock(A,{key:E.versionId,name:E.versionId,label:E.label},{default:a.withCtx(()=>[a.createElementVNode("div",ad,[E.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",ld,[v.value?(a.openBlock(),a.createBlock(pl.SsFilePreview,{key:1,fileName:m.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(I,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",rd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.images||[],k=>(a.openBlock(),a.createElementBlock("div",{key:k.url,class:a.normalizeClass(["thumb",{active:k.url===c.value}]),onClick:g=>c.value=k.url},[a.createElementVNode("div",od,[p.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[k.url]},null,8,id)):(a.openBlock(),a.createElementBlock("div",td,"加载中"))]),a.createElementVNode("div",sd,a.toDisplayString(k.name),1)],10,nd))),128))]),a.createElementVNode("div",cd,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",ud,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,dd)])):(a.openBlock(),a.createElementBlock("div",pd,"加载中"))],64)):(a.openBlock(),a.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),hd=Xl._export_sfc(fd,[["__scopeId","data-v-220703c0"]]),vd={class:"ocr-candidate-wrap"},md={class:"ocr-candidate-left"},yd={key:1},gd={key:0},bd={key:1},kd={key:2},xd={key:3},wd={key:0,class:"ocr-candidate-right"},_d={class:"ocr-candidate-actions"},Cd={key:1},Ed={class:"dialog-footer"},Sd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:n}){const r=(g=[])=>{const O=[],F=q=>{(q||[]).forEach(te=>{if(!te)return;const Te=te.children||te.childrens||te.columns;Array.isArray(Te)&&Te.length>0?F(Te):O.push(te)})};return F(g),O},o=l,s=n,c=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowAdd)!==!1}),y=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowReplace)!==!1}),p=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const O=JSON.parse(g);return Array.isArray(O)?O:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},m=a.ref([]),u=a.ref(0),w=a.ref("");a.watch(()=>o.candidates,g=>{var O,F;m.value=(g||[]).map(q=>({...q,...(q==null?void 0:q.ocrRow)||{},selectedTargetId:(q==null?void 0:q.selectedTargetId)||"",__decision:q==null?void 0:q.__decision})),u.value=0,w.value=((F=(O=m.value)==null?void 0:O[0])==null?void 0:F.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,g=>{var O,F;g&&(u.value=0,w.value=((F=(O=m.value)==null?void 0:O[0])==null?void 0:F.selectedTargetId)||"")});const D=a.computed(()=>{var O;const g=Number(u.value||0);return((O=m.value||[])==null?void 0:O[g])||null}),L=a.computed(()=>(r(o.columns||[])||[]).filter(F=>F&&F.prop).filter(F=>F.type!=="operate"&&F.label!=="操作"&&F.prop!=="operate")),S=a.computed(()=>L.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),W=g=>{if(!g)return;const O=(m.value||[]).findIndex(F=>(F==null?void 0:F.idx)===(g==null?void 0:g.idx));O>-1&&(u.value=O,w.value=(g==null?void 0:g.selectedTargetId)||"")},I=g=>{if(!g){w.value="";return}w.value=String((g==null?void 0:g.id)??"")},A=(g,O="")=>{const F=Number(u.value||0),q=m.value||[],te=q[F];te&&(te.__decision=g,te.selectedTargetId=O,w.value=O,m.value=[...q])},ee=()=>A("skip",""),C=()=>A("add",""),_=()=>{if(!w.value){al.ElMessage.warning("请先选择要替换的目标记录");return}A("replace",w.value)},E=()=>{s("update:visible",!1)},k=()=>{const g=m.value||[];if(g.find(F=>(F==null?void 0:F.__decision)==="replace"&&!(F!=null&&F.selectedTargetId))){al.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,O)=>{const F=a.resolveComponent("el-table-column"),q=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-table"),Te=a.resolveComponent("el-button"),Ee=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:E},{default:a.withCtx(()=>{var Q,be;return[a.createElementVNode("div",vd,[a.createElementVNode("div",md,[O[0]||(O[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(te,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:a.withCtx(()=>[a.createVNode(F,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,Z=>(a.openBlock(),a.createBlock(F,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:de})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(de==null?void 0:de[Z.prop]).length>0?(a.openBlock(),a.createBlock(q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(je=>v({row:de,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",yd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((de==null?void 0:de[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(F,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:Z})=>[a.createTextVNode(a.toDisplayString(((Z==null?void 0:Z.candidates)||[]).length),1)]),_:1}),a.createVNode(F,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",gd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",bd,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",kd,"跳过")):(a.openBlock(),a.createElementBlock("span",xd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(a.openBlock(),a.createElementBlock("div",wd,[O[4]||(O[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",_d,[a.createVNode(Te,{id:"themeBorderButton",onClick:ee},{default:a.withCtx(()=>O[1]||(O[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Te,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>O[2]||(O[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:_,disabled:!y.value||!w.value},{default:a.withCtx(()=>O[3]||(O[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((Q=D.value)==null?void 0:Q.candidates)||[]).length===0?(a.openBlock(),a.createBlock(Ee,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(te,{data:((be=D.value)==null?void 0:be.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(F,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.value,Z=>(a.openBlock(),a.createBlock(F,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:de})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(de==null?void 0:de[Z.prop]).length>0?(a.openBlock(),a.createBlock(q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(je=>v({row:de,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",Cd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((de==null?void 0:de[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",Ed,[a.createVNode(Te,{id:"themeBorderButton",onClick:E},{default:a.withCtx(()=>O[5]||(O[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>O[6]||(O[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Dd=Xl._export_sfc(Sd,[["__scopeId","data-v-89e0489c"]]),Bd={class:"ocr-preview-content"},Nd={class:"ocr-preview-tip"},Td={class:"ocr-preview-table"},Ad={style:{display:"flex","align-items":"center",gap:"8px"}},zd={class:"dialog-footer"},Md={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref([]),y=a.ref([]);a.watch(()=>r.visible,L=>{L&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),y.value=[...r.ocrSelectedFields])});const p=(L,S)=>{const W=[...y.value];if(S)W.includes(L)||W.push(L);else{const I=W.indexOf(L);I>-1&&W.splice(I,1)}y.value=W,o("update:ocrSelectedFields",W)},v=(L,S,W)=>{o("fieldChange",{rowIndex:L,prop:S,value:W})},m=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},w=L=>typeof L!="number"?"-":`${(L*100).toFixed(1)}%`,D=L=>typeof L!="number"?"#606266":L>=.9?"#67c23a":L>=.7?"#e6a23c":"#f56c6c";return(L,S)=>{const W=a.resolveComponent("el-alert"),I=a.resolveComponent("el-table-column"),A=a.resolveComponent("el-checkbox"),ee=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),_=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Bd,[a.createElementVNode("div",Nd,[a.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Td,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,E=>(a.openBlock(),a.createBlock(I,{key:E.prop,prop:E.prop,"min-width":E.minWidth||230,"class-name":E.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Ad,[E.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(A,{key:0,"model-value":y.value.includes(E.prop),onChange:k=>p(E.prop,k),onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(E.label),1)])]),default:a.withCtx(({row:k,$index:g})=>[E.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:D(k[E.prop]),fontWeight:500})},a.toDisplayString(w(k[E.prop])),5)):(a.openBlock(),a.createBlock(ee,{key:1,modelValue:k[E.prop],"onUpdate:modelValue":O=>k[E.prop]=O,size:"small",placeholder:"请输入"+E.label,onChange:O=>v(g,E.prop,O)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",zd,[a.createVNode(_,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>S[1]||(S[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(_,{class:"ok-button",onClick:m,id:"themeButton"},{default:a.withCtx(()=>S[2]||(S[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Id=Xl._export_sfc(Md,[["__scopeId","data-v-df66eb1f"]]),So=l=>{var o;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(o=$a.analyzeSplitToContent(n,","))==null?void 0:o.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),Di(s)));return r=r==null?void 0:r.join(","),r};let Oa="$R",to="[Any]";const Od=l=>{var y,p,v,m;let n={},r=l==null?void 0:l[0],o=(p=(y=r==null?void 0:r.replace("{",Oa))==null?void 0:y.split(Oa))==null?void 0:p[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),n.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(m=(v=s==null?void 0:s.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:m.replaceAll(to,""):c=s==null?void 0:s.replaceAll(to,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),n.filter=c,n},Ld=l=>{var w,D,L,S,W,I;let n=[],r=[],o=[],s=l==null?void 0:l.map(A=>{let ee=A==null?void 0:A.indexOf("@Form(");return ee>0?A==null?void 0:A.substring(0,ee):A}),c="",y=$a.analyzeSplitToContent(s==null?void 0:s[0],":");r=(w=y==null?void 0:y.filter(A=>!(A!=null&&A.includes("{"))&&!(A!=null&&A.includes("["))))==null?void 0:w.join(""),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),r!=null&&r.includes("(@")?r=(L=(D=r==null?void 0:r.replace("(@",Oa))==null?void 0:D.split(Oa))==null?void 0:L[0]:r!=null&&r.includes("@")&&(r=(W=(S=r==null?void 0:r.replace("@",Oa))==null?void 0:S.split(Oa))==null?void 0:W[0]);let p=y==null?void 0:y.filter(A=>(A==null?void 0:A.includes("{"))||(A==null?void 0:A.includes("["))),m=(p==null?void 0:p[0])??"";m=(I=$a.analyzeSplitToContent(m,","))==null?void 0:I.map(A=>((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A)),(p==null?void 0:p.length)>1&&(n=No(p==null?void 0:p[1]),n!=null&&n.every(A=>Array.isArray(A))&&(n=[n]));let u=[];return m==null||m.forEach((A,ee)=>{var Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua;let C=(Te=A==null?void 0:A.split("=="))==null?void 0:Te[0],_=(Ee=A==null?void 0:A.split("=="))==null?void 0:Ee[1],E=[],k=[],g=[],O=[],F="Input",q=[],te=[];if((A==null?void 0:A[0])!=="{"){if((_==null?void 0:_[0])==="$")_=_==null?void 0:_.slice(1,_==null?void 0:_.length),E=(be=(Q=_==null?void 0:_.split("*"))==null?void 0:Q[0])==null?void 0:be.split(":"),k=(P=(ie=(wa=(je=(de=(Z=_==null?void 0:_.split("*"))==null?void 0:Z[1])==null?void 0:de.replace("{",Oa))==null?void 0:je.split(Oa))==null?void 0:wa[0])==null?void 0:ie.split(":"))==null?void 0:P.filter(ga=>ga!==""),g=(ye=(j=_==null?void 0:_.replace("{",Oa))==null?void 0:j.split(Oa))==null?void 0:ye[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),F="Select";else if(((Se=$a.analyzeSplitToContent(A,"="))==null?void 0:Se.length)>1){let ga=(ke=C==null?void 0:C.split("="))==null?void 0:ke[1];if(C=(Ze=C==null?void 0:C.split("="))==null?void 0:Ze[0],F="Select",!(A!=null&&A.includes("||")))ga=(ya=ga==null?void 0:ga.split("/"))==null?void 0:ya.map(He=>((He==null?void 0:He[(He==null?void 0:He.length)-1])==="/"&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)),He)),O=ga==null?void 0:ga.map(He=>({label:He==null?void 0:He.replaceAll("'",""),value:He==null?void 0:He.replaceAll("'","")}));else{let He=[];(Ve=(la=(re=(Ha=A==null?void 0:A.replace("=",Oa))==null?void 0:Ha.split(Oa))==null?void 0:re[1])==null?void 0:la.split("||"))==null||Ve.forEach(We=>{var Ne,De,fe;q.push((De=(Ne=We==null?void 0:We.split("@Filter"))==null?void 0:Ne[0])==null?void 0:De.split("/")),He.push((fe=We==null?void 0:We.split("@Filter"))==null?void 0:fe[1])}),te=He==null?void 0:He.map(We=>(We=We==null?void 0:We.slice(1,(We==null?void 0:We.length)-1),We))}}else if(A!=null&&A.includes("@")&&!(A!=null&&A.includes("||"))){C=(Qe=($e=(Ie=(Fe=(ba=C==null?void 0:C.replace("(@",Oa))==null?void 0:ba.split(Oa))==null?void 0:Fe[0])==null?void 0:Ie.replace("@",Oa))==null?void 0:$e.split(Oa))==null?void 0:Qe[0];let ga=A!=null&&A.includes("(@")?"(@"+((Wa=(Xa=A==null?void 0:A.replace("(@",Oa))==null?void 0:Xa.split(Oa))==null?void 0:Wa[1]):"@"+(($=(V=A==null?void 0:A.replace("@",Oa))==null?void 0:V.split(Oa))==null?void 0:$[1]);if(ga=(X=So(ga))==null?void 0:X.split(","),ga!=null&&ga.find(He=>He==null?void 0:He.includes("@Type"))){let He=(se=ga==null?void 0:ga.find(We=>We==null?void 0:We.includes("@Type")))==null?void 0:se.split("=");He!=null&&He.includes("File")&&(F="Upload"),He!=null&&He.includes("Date")&&(F="Date"),He!=null&&He.includes("DateTime")&&(F="DateTime"),He!=null&&He.includes("Time")&&(F="Time")}}C!=null&&C.includes("(@")||C!=null&&C.includes("@")&&(o.push(Y.cloneDeep(C)),C=(va=(ue=C==null?void 0:C.replace("@",Oa))==null?void 0:ue.split(Oa))==null?void 0:va[0]),u.push({prop:C,label:C,value:"",menuPath:E,groups:k,columns:g,width:m==null?void 0:m.length,options:O,type:F,allContents:q,filterContents:te})}else{c=c+"@"+((ra=$a.analyzeSplitToContent(A,"@"))==null?void 0:ra[1]);let ga=(Le=$a.analyzeSplitToContent(A,"@"))==null?void 0:Le[0];(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])==="@"&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1));let He=ga;(He==null?void 0:He[0])==="{"&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),He=(Ce=$a.analyzeSplitToContent(He,","))==null?void 0:Ce.map(De=>{var fe;return(De==null?void 0:De[(De==null?void 0:De.length)-1])===","&&(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)),De!=null&&De.includes("==")&&(De=(fe=De==null?void 0:De.split("=="))==null?void 0:fe[0]),De});let We=(Sa=ga==null?void 0:ga.split("=="))==null?void 0:Sa[1],Ne=(Fa=(da=We==null?void 0:We.split("*"))==null?void 0:da[0])==null?void 0:Fa.replace(to,"");(Ne==null?void 0:Ne[0])==="$"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),Ne=$a.analyzeSplitToContent(Ne,"$"),Ne=(ja=Ne==null?void 0:Ne.map((De,fe)=>{var oe;return fe===0&&(Ne==null?void 0:Ne.length)>1&&(De=(oe=De==null?void 0:De.split(":"))==null?void 0:oe[0]),(Ne==null?void 0:Ne.length)>1&&fe===(Ne==null?void 0:Ne.length)-1&&(De=De+":"),De}))==null?void 0:ja.join(":"),E=(Je=(me=Ne==null?void 0:Ne.replaceAll("{",""))==null?void 0:me.replaceAll("}",""))==null?void 0:Je.split(":"),k=(za=(Ae=(ua=(pa=(Xe=(ze=We==null?void 0:We.split("*"))==null?void 0:ze[1])==null?void 0:Xe.replace("{",Oa))==null?void 0:pa.split(Oa))==null?void 0:ua[0])==null?void 0:Ae.split(":"))==null?void 0:za.filter(De=>De!==""),g=(Ua=(fa=We==null?void 0:We.replace("{",Oa))==null?void 0:fa.split(Oa))==null?void 0:Ua[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(","),F="Select",He==null||He.forEach((De,fe)=>{var oe,ia,Pa;De!=null&&De.includes("(@")||De!=null&&De.includes("@")&&(o.push(Y.cloneDeep(De)),De=(ia=(oe=De==null?void 0:De.replace("@",Oa))==null?void 0:oe.split(Oa))==null?void 0:ia[0]),u.push({prop:De,label:De,value:"",menuPath:E,groups:k,columns:(Pa=g==null?void 0:g[fe])==null?void 0:Pa.split(":"),width:He==null?void 0:He.length,type:F})})}}),{groupName:r,formContents:u,contents:n,filter:c,formColumn:m,hideContents:o}},No=l=>{var o,s;if(!l||typeof l!="string")return[];let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(o=$a.analyzeSplitToContent(r,","))==null||o.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),n.push(c??"")});else{let c=[];(s=$a.analyzeSplitToContent(r,","))==null||s.forEach(y=>{(y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),c.push(No(y))}),n=c}return n},ft=(l,n)=>{var I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We;let r,o=[],s=[],c=[],y=[],p=[],v=[],m=[],u="Input",w,D="",L="",S=[],W="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ne=$a.analyzeSplitToContent(l,"=");if((Ne==null?void 0:Ne.length)>1){l=Ne==null?void 0:Ne[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let oe=Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1];(oe==null?void 0:oe[0])==="&"&&(oe=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length)),L=(A=(I=oe==null?void 0:oe.replace("(",Oa))==null?void 0:I.split(Oa))==null?void 0:A[0];let ia=(C=(ee=oe==null?void 0:oe.replace(")",Oa))==null?void 0:ee.split(Oa))==null?void 0:C[0];ia=(E=(_=ia==null?void 0:ia.replace("(",Oa))==null?void 0:_.split(Oa))==null?void 0:E[1],(ia==null?void 0:ia[0])==="{"&&(ia=ia==null?void 0:ia.slice(1,ia==null?void 0:ia.length)),(ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])==="}"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),S=ia==null?void 0:ia.split(",");let Pa=(g=(k=oe==null?void 0:oe.replace(")",Oa))==null?void 0:k.split(Oa))==null?void 0:g[1];Pa&&Pa!==""&&(W=So(Pa))}r=(F=(O=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:O.split(Oa))==null?void 0:F[0];let De=(te=(q=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:q.split(Oa))==null?void 0:te[1];De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1),De=(Te=$a.analyzeSplitToContent(De,","))==null?void 0:Te.map(oe=>(oe="@"+oe,oe));let fe=De==null?void 0:De.find(oe=>oe==null?void 0:oe.includes("@Type"));fe!=null&&fe.includes("File")&&(u="Upload"),fe!=null&&fe.includes("Date")&&(u="Date"),fe!=null&&fe.includes("DateTime")&&(u="DateTime"),fe!=null&&fe.includes("Time")&&(u="Time"),w=De==null?void 0:De.find(oe=>oe==null?void 0:oe.includes("@IdentName")),w=w?(Q=(Ee=w==null?void 0:w.replace("=",Oa))==null?void 0:Ee.split(Oa))==null?void 0:Q[1]:r}else{if(r=(be=l==null?void 0:l.split("=="))==null?void 0:be[0],w=(Z=l==null?void 0:l.split("=="))==null?void 0:Z[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((wa=(je=(de=l==null?void 0:l.replace("=",Oa))==null?void 0:de.split(Oa))==null?void 0:je[1])!=null&&wa.includes("||")))if(r=(ie=l==null?void 0:l.split("="))==null?void 0:ie[0],w=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let De=(P=l==null?void 0:l.split("(@"))==null?void 0:P[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ye=(j=De==null?void 0:De.replace("(",Oa))==null?void 0:j.split(Oa))==null?void 0:ye[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),c==null||c.push(De),l=(Se=l==null?void 0:l.split("(@"))==null?void 0:Se[0]}else{let De=(ke=l==null?void 0:l.split("@"))==null?void 0:ke[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ya=(Ze=De==null?void 0:De.replace("(",Oa))==null?void 0:Ze.split(Oa))==null?void 0:ya[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),c==null||c.push(De),l=(Ha=l==null?void 0:l.split("@"))==null?void 0:Ha[0]}let Ne=(la=(re=l==null?void 0:l.split("="))==null?void 0:re[1])==null?void 0:la.split("/");s.push(Ne)}else o=(ba=$a.analyzeSplitToContent((Ve=l==null?void 0:l.split("="))==null?void 0:Ve[1],"/"))==null?void 0:ba.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])==="/"&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne)),o=o==null?void 0:o.map(Ne=>({label:Ne==null?void 0:Ne.replaceAll("'",""),value:Ne==null?void 0:Ne.replaceAll("'","")}));else if(($e=(Ie=(Fe=l==null?void 0:l.replace("=",Oa))==null?void 0:Fe.split(Oa))==null?void 0:Ie[1])!=null&&$e.includes("||")){r=(Qe=l==null?void 0:l.split("="))==null?void 0:Qe[0],w=(Xa=l==null?void 0:l.split("="))==null?void 0:Xa[0];let Ne=[];(X=($=(V=(Wa=l==null?void 0:l.replace("=",Oa))==null?void 0:Wa.split(Oa))==null?void 0:V[1])==null?void 0:$.split("||"))==null||X.forEach(De=>{var fe,oe,ia;s.push((oe=(fe=De==null?void 0:De.split("@Filter"))==null?void 0:fe[0])==null?void 0:oe.split("/")),Ne.push((ia=De==null?void 0:De.split("@Filter"))==null?void 0:ia[1])}),c=Ne==null?void 0:Ne.map(De=>(De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1),De))}else{let Ne=l==null?void 0:l.split("=="),De=(se=Ne==null?void 0:Ne.filter(fe=>(fe==null?void 0:fe[0])==="$"))==null?void 0:se[0];if(De&&!(De!=null&&De.includes("&"))){let fe=(ue=De==null?void 0:De.replace("*",Oa))==null?void 0:ue.split(Oa),oe=(fe==null?void 0:fe[0])===""?n==null?void 0:n.value:fe==null?void 0:fe[0];oe=(ra=(va=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:va.replaceAll("}",""))==null?void 0:ra.replaceAll(to,""),(oe==null?void 0:oe[0])==="$"&&(oe=(Le=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length))==null?void 0:Le.replaceAll(":","/")),y=oe==null?void 0:oe.split("/");let ia=(Sa=(Ce=fe==null?void 0:fe[1])==null?void 0:Ce.replace("{",Oa))==null?void 0:Sa.split(Oa),Pa=ia==null?void 0:ia[0];(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===":"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),p=Pa==null?void 0:Pa.split(":"),v=(me=(ja=(Fa=(da=ia==null?void 0:ia[1])==null?void 0:da.replace("}",Oa))==null?void 0:Fa.split(Oa))==null?void 0:ja[0])==null?void 0:me.split(":");let hl=(Xe=(ze=(Je=ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])==null?void 0:Je.replace("}",Oa))==null?void 0:ze.split(Oa))==null?void 0:Xe[1];hl&&hl!==""&&(D=So(hl))}if(Ne!=null&&Ne.some(fe=>(fe==null?void 0:fe[0])==="&")){let fe=(pa=Ne==null?void 0:Ne.filter(Pa=>(Pa==null?void 0:Pa[0])==="&"))==null?void 0:pa[0];(fe==null?void 0:fe[0])==="&"&&(fe=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length)),L=(Ae=(ua=fe==null?void 0:fe.replace("(",Oa))==null?void 0:ua.split(Oa))==null?void 0:Ae[0];let oe=(za=$a.analyzeSplitToContent(fe,")"))==null?void 0:za[0];oe=(Ua=(fa=oe==null?void 0:oe.replace("(",Oa))==null?void 0:fa.split(Oa))==null?void 0:Ua[1],oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1),(oe==null?void 0:oe[0])==="{"&&(oe=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length)),(oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])==="}"&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),S=oe==null?void 0:oe.split(",");let ia=(ga=$a.analyzeSplitToContent(fe,")"))==null?void 0:ga[1];ia&&ia!==""&&(W=So(ia))}else if(!De){let fe=Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1];fe=fe==null?void 0:fe.slice(1,(fe==null?void 0:fe.length)-1),fe=$a.analyzeSplitToContent(fe,","),fe=fe==null?void 0:fe.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===","&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe)),fe=fe==null?void 0:fe.map(oe=>{var ia,Pa,hl,Ma;if(oe=oe==null?void 0:oe.replaceAll("$",""),oe!=null&&oe.includes("{")){let Ul="";oe=oe==null?void 0:oe.replaceAll("{","");let Ea=oe==null?void 0:oe.split("}");Ul=((Pa=(ia=Ea==null?void 0:Ea[0])==null?void 0:ia.split(":"))==null?void 0:Pa[0])+":"+(Ea==null?void 0:Ea[1]),oe=Ul,oe=oe+":"}if(oe!=null&&oe.includes(to)){let Ul="",Ea=oe==null?void 0:oe.split(to);Ul=((Ma=(hl=Ea==null?void 0:Ea[0])==null?void 0:hl.split(":"))==null?void 0:Ma[0])+":"+(Ea==null?void 0:Ea[1]),oe=Ul,oe=oe+":"}return oe=oe==null?void 0:oe.replaceAll(":","/"),oe}),m=fe}}u="Select"}else r=l,w=l;return r!=null&&r.includes("@Pam")&&(r=(We=(He=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:He.split(Oa))==null?void 0:We[0],w=r),{label:r,prop:w,options:o,allContents:s,filterContents:c,menus:y,groups:p,words:v,align:"center",formType:u,filter:D,functionName:L,functionRelatedWords:S,calculatorFilter:W,relatedPages:m}},Si=(l,n)=>{var o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((y=(c=(s=(o=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:o.replace(":",Oa))==null?void 0:s.split(Oa))==null?void 0:c[0])!=null&&y.includes(","))){let Z=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),de=(p=Z==null?void 0:Z.replace(":",Oa))==null?void 0:p.split(Oa);if(((v=$a.analyzeSplitToContent(de==null?void 0:de[1],"="))==null?void 0:v.length)===1){let je=de==null?void 0:de[0],wa=[];(w=$a.analyzeSplitToContent((u=de==null?void 0:de[1])==null?void 0:u.slice(1,((m=de==null?void 0:de[1])==null?void 0:m.length)-1),","))==null||w.forEach(ie=>{var P,j;((P=$a.analyzeSplitToContent(ie,"="))==null?void 0:P.length)>1?((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),wa=[...wa,...Si(ie,n)]):((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),wa.push((j=Si(ie,n))==null?void 0:j[0]))}),r==null||r.push({label:je,prop:je,children:wa,align:"center"})}else{let je=[];if(((D=$a.analyzeSplitToContent(Z,"="))==null?void 0:D.length)>=2){let ie=(L=$a.analyzeSplitToContent(Z,"="))==null?void 0:L[1],P=(S=$a.analyzeSplitToContent(ie,"/"))==null?void 0:S.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])==="/"&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j));je=P==null?void 0:P.map(j=>(j=No(j),j))}let wa=(_=(C=(ee=(A=(I=(W=Z==null?void 0:Z.replace("{",Oa))==null?void 0:W.split(Oa))==null?void 0:I[1])==null?void 0:A.replace("}",Oa))==null?void 0:ee.split(Oa))==null?void 0:C[0])==null?void 0:_.split(",");wa==null||wa.forEach((ie,P)=>{(je==null?void 0:je.length)>0&&P===0?r==null||r.push({label:ie,prop:ie,align:"center",formType:"Select",relatedContents:je==null?void 0:je.map(j=>{let ye={};return wa==null||wa.forEach((Se,ke)=>{ye[Se]=j==null?void 0:j[ke]}),ye}),options:je==null?void 0:je.map(j=>({label:j==null?void 0:j[0],value:j==null?void 0:j[0]})),mainKey:!0}):r==null||r.push({label:ie,prop:ie,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((E=$a.analyzeSplitToContent(l,"="))==null?void 0:E.length)===2&&((g=(k=$a.analyzeSplitToContent(l,"="))==null?void 0:k[1])==null?void 0:g[0])==="["){let Z=[];if(((O=$a.analyzeSplitToContent(l,"="))==null?void 0:O.length)>=2){let je=(F=$a.analyzeSplitToContent(l,"="))==null?void 0:F[1],wa=(q=$a.analyzeSplitToContent(je,"/"))==null?void 0:q.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])==="/"&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),ie));Z=wa==null?void 0:wa.map(ie=>(ie=No(ie),ie))}let de=(Te=(te=l==null?void 0:l.replace("}",Oa))==null?void 0:te.split(Oa))==null?void 0:Te[0];de=(Ee=de==null?void 0:de.slice(1,de==null?void 0:de.length))==null?void 0:Ee.split(","),de==null||de.forEach((je,wa)=>{(Z==null?void 0:Z.length)>0&&wa===0?r==null||r.push({label:je,prop:je,align:"center",formType:"Select",relatedContents:Z==null?void 0:Z.map(ie=>{let P={};return de==null||de.forEach((j,ye)=>{P[j]=ie==null?void 0:ie[ye]}),P}),options:Z==null?void 0:Z.map(ie=>({label:ie==null?void 0:ie[0],value:ie==null?void 0:ie[0]})),mainKey:!0}):r==null||r.push({label:je,prop:je,align:"center"})})}else(Q=$a.analyzeSplitToContent(l,","))==null||Q.forEach(Z=>{var de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He;if((Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===","&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),(Z==null?void 0:Z[0])==="{"){let We=$a.analyzeSplitToContent(Z,"="),Ne=We==null?void 0:We[(We==null?void 0:We.length)-1],De=[],fe=[],oe=[],ia=[],Pa=[],hl=(de=Ne==null?void 0:Ne.replace("*",Oa))==null?void 0:de.split(Oa),Ma=(hl==null?void 0:hl[0])===""?n==null?void 0:n.value:hl==null?void 0:hl[0];if((Ma==null?void 0:Ma[0])==="$"&&((ie=(wa=(je=Ma==null?void 0:Ma.replace("@",Oa))==null?void 0:je.split(Oa))==null?void 0:wa[0])!=null&&ie.includes("{"))&&(Ma=(P=Ma==null?void 0:Ma.replace("{",""))==null?void 0:P.replace("}",":")),Ma=Ma==null?void 0:Ma.replaceAll(to,""),(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===":"&&(Ma=Ma!=null&&Ma.includes("(@")?((j=Ma==null?void 0:Ma.split("(@"))==null?void 0:j[0])+":":((ye=Ma==null?void 0:Ma.split("@"))==null?void 0:ye[0])+":"),(Ma==null?void 0:Ma[0])==="$"&&(Ma=(Se=Ma==null?void 0:Ma.slice(1,Ma==null?void 0:Ma.length))==null?void 0:Se.replaceAll(":","/")),Ma!=null&&Ma.includes("$")){let qa=(ke=Ma==null?void 0:Ma.split("$"))==null?void 0:ke[0];qa=(Ze=qa==null?void 0:qa.split("/"))==null?void 0:Ze[0],Ma=qa+"/"+((ya=Ma==null?void 0:Ma.split("$"))==null?void 0:ya[1])+"/"}(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])==="/"&&(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-2])==="/"&&(Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),Ma!=null&&Ma.includes("(@")?(Ma=(Ha=Ma==null?void 0:Ma.split("(@"))==null?void 0:Ha[0],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-2)):Ma!=null&&Ma.includes("@")&&(Ma=(re=$a.analyzeSplitToContent(Ma,"@"))==null?void 0:re[0],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),De=Ma==null?void 0:Ma.split("/");let Ul=(Ve=(la=hl==null?void 0:hl[1])==null?void 0:la.replace("{",Oa))==null?void 0:Ve.split(Oa);if((Ie=(Fe=(ba=hl==null?void 0:hl[1])==null?void 0:ba.split("(@"))==null?void 0:Fe[0])!=null&&Ie.includes("&&")||(Xa=(Qe=($e=hl==null?void 0:hl[1])==null?void 0:$e.split("@"))==null?void 0:Qe[0])!=null&&Xa.includes("&&")){let qa=(Wa=hl==null?void 0:hl[1])!=null&&Wa.includes("(@")?(X=($=(V=hl==null?void 0:hl[1])==null?void 0:V.split("(@"))==null?void 0:$[0])==null?void 0:X.split("&&"):(va=(ue=(se=hl==null?void 0:hl[1])==null?void 0:se.split("@"))==null?void 0:ue[0])==null?void 0:va.split("&&");ia=qa==null?void 0:qa.map(ae=>{var Ye,pe;return(ae==null?void 0:ae[0])==="*"&&(ae=ae==null?void 0:ae.slice(1,ae==null?void 0:ae.length)),ae=(pe=(Ye=ae==null?void 0:ae.replace("{",Oa))==null?void 0:Ye.split(Oa))==null?void 0:pe[0],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])===":"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae=ae==null?void 0:ae.split(":"),ae});let xa=[];qa==null||qa.forEach((ae,Ye)=>{var pe,Ca;(ae==null?void 0:ae[0])==="*"&&(ae=ae==null?void 0:ae.slice(1,ae==null?void 0:ae.length)),ae=(Ca=(pe=ae==null?void 0:ae.replace("{",Oa))==null?void 0:pe.split(Oa))==null?void 0:Ca[1],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="}"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae=ae==null?void 0:ae.split(","),xa.push(Ye===0?(ae==null?void 0:ae.length)-1:ae==null?void 0:ae.length),Pa=[...Pa,...ae]}),xa=(ra=$a.prefixSum(xa))==null?void 0:ra.map(ae=>ae==null?void 0:ae.total),ia=ia==null?void 0:ia.map((ae,Ye)=>({number:xa==null?void 0:xa[Ye],contents:ae}))}let Ea=Ul==null?void 0:Ul[0];(Ea==null?void 0:Ea[(Ea==null?void 0:Ea.length)-1])===":"&&(Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1)),fe=Ea==null?void 0:Ea.split(":"),oe=(da=(Sa=(Ce=(Le=Ul==null?void 0:Ul[1])==null?void 0:Le.replace("}",Oa))==null?void 0:Ce.split(Oa))==null?void 0:Sa[0])==null?void 0:da.split(",");let _a=(ja=We==null?void 0:We[0])==null?void 0:ja.slice(1,((Fa=We==null?void 0:We[0])==null?void 0:Fa.length)-2),Ra="",Va="";if((me=We==null?void 0:We[(We==null?void 0:We.length)-1])!=null&&me.includes("(@")?(Va=(Xe=(ze=(Je=We==null?void 0:We[(We==null?void 0:We.length)-1])==null?void 0:Je.replace("(@",Oa))==null?void 0:ze.split(Oa))==null?void 0:Xe[1],Va="(@"+Va):(pa=We==null?void 0:We[(We==null?void 0:We.length)-1])!=null&&pa.includes("@")&&(Va=(za=(Ae=(ua=We==null?void 0:We[(We==null?void 0:We.length)-1])==null?void 0:ua.replace("@",Oa))==null?void 0:Ae.split(Oa))==null?void 0:za[1],Va="@"+Va),((fa=$a.analyzeSplitToContent(Va,"&"))==null?void 0:fa.length)>1){let qa=(ga=(Ua=$a.analyzeSplitToContent(Va,"}"))==null?void 0:Ua.map(xa=>{var ae;return xa!=null&&xa.includes("@")||(xa=""),xa!=null&&xa.includes("@")&&(xa=(ae=$a.analyzeSplitToContent(xa,":"))==null?void 0:ae[0],(xa==null?void 0:xa[(xa==null?void 0:xa.length)-1])===":"&&(xa=xa==null?void 0:xa.slice(0,(xa==null?void 0:xa.length)-1)),(xa==null?void 0:xa[0])==="("&&(xa=xa==null?void 0:xa.slice(1,(xa==null?void 0:xa.length)-1))),xa}))==null?void 0:ga.filter(xa=>xa!=="");Va=(Va==null?void 0:Va.length)===1?qa:"("+(qa==null?void 0:qa.join(","))+")"}Va&&Va!==""&&(Ra=So(Va)),(He=_a==null?void 0:_a.split(","))==null||He.forEach((qa,xa)=>{var ae,Ye,pe;r.push({label:qa,prop:qa,align:"center",menus:De,groups:(ia==null?void 0:ia.length)===0?fe:(ae=ia==null?void 0:ia.find(Ca=>(Ca==null?void 0:Ca.number)>=xa))==null?void 0:ae.contents,words:(Pa==null?void 0:Pa.length)===0?(Ye=oe==null?void 0:oe[xa])==null?void 0:Ye.split(":"):(pe=Pa==null?void 0:Pa[xa])==null?void 0:pe.split(":"),formType:(De==null?void 0:De.length)>0?"Select":"Input",mainKey:xa===0,filter:Ra,isMainPath:(ia==null?void 0:ia.findIndex(Ca=>(Ca==null?void 0:Ca.number)>=xa))===0})})}else r.push({label:Z,prop:Z,align:"center"})});else{let Z=(be=$a.analyzeSplitToContent(l,","))==null?void 0:be.map(de=>((de==null?void 0:de[(de==null?void 0:de.length)-1])===","&&(de=de==null?void 0:de.slice(0,(de==null?void 0:de.length)-1)),de));Z==null||Z.forEach(de=>{r.push(ft(de,n))})}return r},Rd=(l,n)=>{var y,p,v,m,u;let r=l;if(!l)return;let o="";((y=$a.analyzeSplitToContent(l,"}"))==null?void 0:y.length)>1&&(r=(p=$a.analyzeSplitToContent(l,"}"))==null?void 0:p[0],o=(v=$a.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=$a.analyzeSplitToContent(r,","))==null||m.forEach(w=>{var D;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(D=Si(w,n))==null||D.forEach(L=>{s.push(L)}):s.push(ft(w,n))}),s!=null&&s.some(w=>{var D;return(D=w==null?void 0:w.prop)==null?void 0:D.includes("@")})&&(s=s==null?void 0:s.filter(w=>{var D;return!((D=w==null?void 0:w.prop)!=null&&D.includes("@"))})),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=$a.analyzeSplitToContent(o,","))==null||u.forEach(w=>{var D;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(D=Si(w,n))==null||D.forEach(L=>{c.push(L)}):c.push(ft(w,n))})),{columns:s,secondColumns:c}},Di=l=>{var n,r,o,s,c;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let y=(r=(n=l==null?void 0:l.replace("(",Oa))==null?void 0:n.split(Oa))==null?void 0:r[1],p=(s=(o=l==null?void 0:l.replace("(",Oa))==null?void 0:o.split(Oa))==null?void 0:s[0];return y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1),y=(c=$a.analyzeSplitToContent(y,","))==null?void 0:c.map(v=>((v==null?void 0:v[(v==null?void 0:v.length)-1])===","&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),p+v)),y=y==null?void 0:y.join(","),l!=null&&l.includes("@Quote")&&(y!=null&&y.includes("@QuoteType")||(y=y===""?y+"@QuoteType=Manual":y+",@QuoteType=Manual"),y!=null&&y.includes("@QuoteSonSync")||(y=y===""?y+"@QuoteSonSync=No":y+",@QuoteSonSync=No"),y!=null&&y.includes("@QuoteFatherSync")||(y=y===""?y+"@QuoteFatherSync=Yes":y+",@QuoteFatherSync=Yes")),y}},rs=l=>{let n=l==null?void 0:l.map(r=>{var o,s;return{menus:r==null?void 0:r.menus,content:((o=r==null?void 0:r.menus)==null?void 0:o.join("/"))+Oa+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var o;return(r==null?void 0:r.menus)&&((o=r==null?void 0:r.menus)==null?void 0:o.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var o,s;return{menus:(o=r==null?void 0:r.split(Oa))==null?void 0:o[0],groups:((s=r==null?void 0:r.split(Oa))==null?void 0:s[1])??[]}}),n},$d=(l,n,r="")=>{var A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De;let o=[];if(((A=l==null?void 0:l[0])==null?void 0:A[0])!=="*"&&((ee=l==null?void 0:l[0])==null?void 0:ee[0])!=="$")return;let s=$a.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(fe=>!((fe==null?void 0:fe[0])!=="{"&&(fe==null?void 0:fe[0])!=="["));o=(C=s==null?void 0:s.filter(fe=>(fe==null?void 0:fe[0])!=="{"&&(fe==null?void 0:fe[0])!=="["))==null?void 0:C.join("");let y="",p="";if((o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o!=null&&o.includes("(@")&&(o==null?void 0:o[0])==="*"&&(y="(@"+((_=o==null?void 0:o.split("(@"))==null?void 0:_[1]),o=(E=o==null?void 0:o.split("(@"))==null?void 0:E[0]),o!=null&&o.includes("@")&&(o==null?void 0:o[0])==="*"&&(y="@"+((g=(k=o==null?void 0:o.replace("@",Oa))==null?void 0:k.split(Oa))==null?void 0:g[1]),o=(F=(O=o==null?void 0:o.replace("@",Oa))==null?void 0:O.split(Oa))==null?void 0:F[0]),(o==null?void 0:o[0])==="*"?(o=o==null?void 0:o.slice(1,o==null?void 0:o.length),o=o==null?void 0:o.split(":")):(p=Y.cloneDeep(o)+":",o=[]),p=p+((c==null?void 0:c[0])??""),(p==null?void 0:p[(p==null?void 0:p.length)-1])===":"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),y!==""&&p!=="")if((p==null?void 0:p[(p==null?void 0:p.length)-1])===")")if(p!=null&&p.includes("(@")){let fe=(q=p==null?void 0:p.split("(@"))==null?void 0:q[0],oe=(te=p==null?void 0:p.split("(@"))==null?void 0:te[1];oe="(@"+(oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1))+y,p=fe+oe}else{let fe=(Ee=(Te=p==null?void 0:p.replace("@",Oa))==null?void 0:Te.split(Oa))==null?void 0:Ee[0],oe=(be=(Q=p==null?void 0:p.replace("@",Oa))==null?void 0:Q.split(Oa))==null?void 0:be[1];oe="(@"+oe+y,p=fe+oe}else p=p+y;let v=c==null?void 0:c[1];(p==null?void 0:p[0])==="["&&(v=Y.cloneDeep(p)+(v??""),p="");let m=v?No(v):[];!(m!=null&&m.every(fe=>Array.isArray(fe)))&&(m==null?void 0:m.length)>0&&(m=[m]);let u=(Z=$a.analyzeSplitToContent(p,"@"))!=null&&Z[1]?"@"+((de=$a.analyzeSplitToContent(p,"@"))==null?void 0:de[1]):"";if(p=(je=$a.analyzeSplitToContent(p,"@"))==null?void 0:je[0],p!=null&&p.includes("(@")&&(((wa=$a.analyzeSplitToContent(p,"}"))==null?void 0:wa.length)===1&&((ye=(ie=$a.analyzeSplitToContent(p,"}"))==null?void 0:ie[0])==null?void 0:ye[((j=(P=$a.analyzeSplitToContent(p,"}"))==null?void 0:P[0])==null?void 0:j.length)-1])===")"||(Se=$a.analyzeSplitToContent(p,"}"))!=null&&Se[1]&&((ke=$a.analyzeSplitToContent(p,"}"))==null?void 0:ke[1])!=="@")&&(u="(@"+((Ze=p==null?void 0:p.split("(@"))==null?void 0:Ze[1]),p=(ya=p==null?void 0:p.split("(@"))==null?void 0:ya[0]),(p==null?void 0:p[0])==="$"&&(u=Y.cloneDeep(p)+(u??""),p=""),r!=="")if(y!==""){let fe=(Ha=$a.analyzeSplitToContent(r,":"))==null?void 0:Ha.map(oe=>{var ia,Pa;return(oe==null?void 0:oe[0])==="{"&&(oe=(Pa=(ia=oe==null?void 0:oe.replace("}",Oa))==null?void 0:ia.split(Oa))==null?void 0:Pa[1]),oe});r=(re=fe==null?void 0:fe.join(""))==null?void 0:re.replace(":(","("),u=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+y:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+y}else{let fe="";if(r!=null&&r.includes("(@")){let oe=(Ie=(Fe=(ba=(Ve=(la=r==null?void 0:r.replace("(@",Oa))==null?void 0:la.split(Oa))==null?void 0:Ve[0])==null?void 0:ba.replace("{",Oa))==null?void 0:Fe.split(Oa))==null?void 0:Ie[0];fe=((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===":"?oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1):oe)+"(@"+((Qe=($e=r==null?void 0:r.replace("(@",Oa))==null?void 0:$e.split(Oa))==null?void 0:Qe[1])}else if(r!=null&&r.includes("@")){let oe=(Wa=(Xa=r==null?void 0:r.replace("@",Oa))==null?void 0:Xa.split(Oa))==null?void 0:Wa[0];(oe==null?void 0:oe[0])==="$"?oe=(V=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:V.replaceAll("}",""):oe=(X=($=oe==null?void 0:oe.replace("{",Oa))==null?void 0:$.split(Oa))==null?void 0:X[0],fe=((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===":"?oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1):oe)+"@"+((ue=(se=r==null?void 0:r.replace("@",Oa))==null?void 0:se.split(Oa))==null?void 0:ue[1])}u=fe===""?r:fe}if(u!==""){(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),(u==null?void 0:u[(u==null?void 0:u.length)-1])===":"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1));let fe="";if(u!=null&&u.includes("(@")){fe=(ra=(va=u==null?void 0:u.replace("(@",Oa))==null?void 0:va.split(Oa))==null?void 0:ra[0];let oe=(Ce=(Le=u==null?void 0:u.replace("(@",Oa))==null?void 0:Le.split(Oa))==null?void 0:Ce[1];oe="@"+(oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1));let ia=(Sa=$a.analyzeSplitToContent(oe,","))==null?void 0:Sa.map(Pa=>((Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===","&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])!==")"&&(Pa=Pa+")"),Di(Pa)));u=fe+"("+(ia==null?void 0:ia.join(","))+")"}else{fe=(Fa=(da=u==null?void 0:u.replace("@",Oa))==null?void 0:da.split(Oa))==null?void 0:Fa[0];let oe=(me=(ja=u==null?void 0:u.replace("@",Oa))==null?void 0:ja.split(Oa))==null?void 0:me[1];if(oe){oe="@"+oe;let ia=(Je=$a.analyzeSplitToContent(oe,","))==null?void 0:Je.map(Pa=>((Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])!==")"&&(Pa=Pa+")"),Di(Pa)));u=fe+"("+(ia==null?void 0:ia.join(","))+")"}else u=fe}}(p==null?void 0:p[(p==null?void 0:p.length)-1])==="@"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1));let w=Rd(p,n),D=p===""?[]:(w==null?void 0:w.columns)??[],L=oa.getColumnChild(D),S=L;S=S==null?void 0:S.filter(fe=>{var oe,ia;return(fe==null?void 0:fe.filter)&&(fe==null?void 0:fe.filter)!==""&&(((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteSonSync"))||((ia=fe==null?void 0:fe.filter)==null?void 0:ia.includes("@QuoteFatherSync")))});let W=S==null?void 0:S.filter(fe=>{var oe,ia,Pa;return((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteSonSync"))&&((Pa=(ia=fe==null?void 0:fe.filter)==null?void 0:ia.split(","))==null?void 0:Pa.find(hl=>(hl==null?void 0:hl.includes("@QuoteSonSync"))&&(hl==null?void 0:hl.includes("Yes"))))}),I=S==null?void 0:S.filter(fe=>{var oe,ia,Pa;return((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteFatherSync"))&&((Pa=(ia=fe==null?void 0:fe.filter)==null?void 0:ia.split(","))==null?void 0:Pa.find(hl=>(hl==null?void 0:hl.includes("@QuoteFatherSync"))&&(hl==null?void 0:hl.includes("Yes"))))});if(L=L==null?void 0:L.map(fe=>{var oe,ia;return{menus:fe==null?void 0:fe.menus,content:((oe=fe==null?void 0:fe.menus)==null?void 0:oe.join("/"))+Oa+((ia=fe==null?void 0:fe.groups)==null?void 0:ia.join("/"))}}),I=rs(I),W=rs(W),L=L==null?void 0:L.filter(fe=>{var oe;return(fe==null?void 0:fe.menus)&&((oe=fe==null?void 0:fe.menus)==null?void 0:oe.length)>0}),L=L==null?void 0:L.map(fe=>fe==null?void 0:fe.content),L=[...new Set(L)],L=L==null?void 0:L.map(fe=>{var oe,ia;return{menus:(oe=fe==null?void 0:fe.split(Oa))==null?void 0:oe[0],groups:((ia=fe==null?void 0:fe.split(Oa))==null?void 0:ia[1])??[]}}),D!=null&&D.some(fe=>{var oe;return Array.isArray(fe==null?void 0:fe.children)&&((oe=fe==null?void 0:fe.children)==null?void 0:oe.length)>0})&&(D=[D]),(m==null?void 0:m.length)>0&&(Array.isArray(m==null?void 0:m[0])&&((ze=m==null?void 0:m[0])!=null&&ze.every(fe=>Array.isArray(fe)))?m=m==null?void 0:m.map((fe,oe)=>(fe=fe.map((ia,Pa)=>(ia.unshift("{}"),ia.unshift((Pa+1).toString()),ia)),fe)):m=m==null?void 0:m.map((fe,oe)=>(fe.unshift("{}"),fe.unshift((oe+1).toString()),fe))),w!=null&&w.secondColumns&&((Xe=w==null?void 0:w.secondColumns)==null?void 0:Xe.length)>0&&((m==null?void 0:m.length)>0?m=m==null?void 0:m.map((fe,oe)=>{var ia,Pa;return Array.isArray(fe==null?void 0:fe[0])?fe=fe==null?void 0:fe.map((hl,Ma)=>{var Ul,Ea;return hl.unshift((Ea=(Ul=w==null?void 0:w.secondColumns)==null?void 0:Ul[Ma])==null?void 0:Ea.prop),hl}):fe.unshift((Pa=(ia=w==null?void 0:w.secondColumns)==null?void 0:ia[oe])==null?void 0:Pa.prop),fe}):m=(pa=w==null?void 0:w.secondColumns)==null?void 0:pa.map((fe,oe)=>(fe=[fe==null?void 0:fe.label],fe.push(oe),fe)),D.unshift({label:"",prop:"disabled",sortable:!1})),(D==null?void 0:D.length)>0){let fe=Y.cloneDeep(D);Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]);let oe=oa.getColumnChild(fe);oe=oe==null?void 0:oe.map(ia=>ia==null?void 0:ia.filter),oe=oe==null?void 0:oe.filter(ia=>ia&&ia!==""),oe=[...new Set(oe)],(oe==null?void 0:oe.length)>0&&(u=Oa+(u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))+(u!=null&&u.slice(1,(u==null?void 0:u.length)-1)?",":"")+((ua=Y.cloneDeep(oe))==null?void 0:ua.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let fe=(za=(Ae=u==null?void 0:u.replace("(",Oa))==null?void 0:Ae.split(Oa))==null?void 0:za[0],oe=[{menus:(Ua=(fa=fe==null?void 0:fe.split("*"))==null?void 0:fa[0])==null?void 0:Ua.replaceAll(":","/"),groups:(ga=fe==null?void 0:fe.split("*"))==null?void 0:ga[1]}],ia=(We=(He=u==null?void 0:u.replace("(",Oa))==null?void 0:He.split(Oa))==null?void 0:We[1];(ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])===")"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),ia=$a.analyzeSplitToContent(ia,","),(Ne=ia==null?void 0:ia.find(Pa=>Pa==null?void 0:Pa.includes("@QuoteFatherSync")))!=null&&Ne.includes("Yes")&&(I=[...I,...oe]),(De=ia==null?void 0:ia.find(Pa=>Pa==null?void 0:Pa.includes("@QuoteSonSync")))!=null&&De.includes("Yes")&&(W=[...W,...oe])}return{groupName:o,tableColumns:D,tableFilter:u,tableContents:m,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:L,fatherSyncContents:I,sonSyncContents:W}},Js=(l,n)=>(l=l==null?void 0:l.map((r,o)=>{var s,c,y,p;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var m,u,w,D;return v!=null&&v.isMainPath||(((m=v==null?void 0:v.children)==null?void 0:m.length)>0?v.children=Js(v.children,n):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((w=r==null?void 0:r[0])!=null&&w.isMainPath)&&(v.menus=(D=v.menus)==null?void 0:D.map((L,S)=>{var W,I;return((W=v.menus)==null?void 0:W.length)-1===S&&L===""&&(n==null?void 0:n.parentContent)+"/"!==((I=v.menus)==null?void 0:I.join("/"))&&(L=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(o===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((c=r.menus)==null?void 0:c.length)>0&&!((y=l==null?void 0:l[0])!=null&&y.isMainPath)&&(r.menus=(p=r.menus)==null?void 0:p.map((v,m)=>{var u,w;return((u=r.menus)==null?void 0:u.length)-1===m&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((w=r.menus)==null?void 0:w.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Vd=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Js(r.contents,n)),r)),l),ht=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(o=>(o=ht(o,n),o)):r=r==null?void 0:r.map(o=>{var s,c;return o!=null&&o.children&&((s=o==null?void 0:o.children)==null?void 0:s.length)>0?o.children=ht(o==null?void 0:o.children,n):o!=null&&o.words&&((c=o==null?void 0:o.words)==null?void 0:c.length)>0&&(n!=null&&n.find(y=>{var p,v,m,u;return((u=(p=o==null?void 0:o.prop)==null?void 0:p.split("."))==null?void 0:u[((m=(v=o==null?void 0:o.prop)==null?void 0:v.split("."))==null?void 0:m.length)-1])===y}))&&(o.mainKey=!0),o}),r};let dr="$R";const Pd=Y.useUnit(ol.pinia),{selectTitle:hn}=ol.storeToRefs(Pd),vn=[{key:"@InterfaceMaxRow",value:"onNumSlice",order:1},{key:"@QuoteType",value:"onRandomContents",order:2},{key:"@InterfaceType",value:"onInterfaceTypeContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@QuoteMainPam",value:"onMainTagContents",order:3},{key:"@InterfaceTopButton",value:"onButtonContents",order:1},{key:"@InterfaceColumnButton",value:"onPamButtonContents",order:1},{key:"@InterfaceRowButton",value:"onRowButtonContents",order:1},{key:"@InterfaceBottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@InterfaceRowNum",value:"onRowNum",order:1},{key:"@InterfaceFixRow",value:"onFixRow",order:1},{key:"@InterfaceReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@InterfaceTab",value:"onTabs",order:1},{key:"@InterfaceSinChoice",value:"onSinChoice",order:1},{key:"@InterfaceTextSize",value:"onTextSize",order:1},{key:"@InterfaceTextRGBA",value:"onTextRGBA",order:1},{key:"@InterfacePosition",value:"onPosition",order:4},{key:"@InterfaceSize",value:"onSize",order:4},{key:"@InterfaceShowType",value:"onShowType",order:1},{key:"@InterfaceStepName",value:"onStepName",order:1},{key:"@InterfaceStep",value:"onStep",order:1},{key:"@InterfaceBackGround",value:"onBackGround",order:1}];var oo=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(oo||{});const Fd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"backGround",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},jd=l=>{const n=Zs(l==null?void 0:l.filter);return n?Qs(l==null?void 0:l.contents,{position:n}):l==null?void 0:l.contents},Hd=l=>{const n=Zs(l==null?void 0:l.filter);return n?Qs(l==null?void 0:l.contents,{size:n}):l==null?void 0:l.contents},Ud=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;const r=Number(l==null?void 0:l.filter);return n.push({key:"textSize",contents:Number.isNaN(r)?l==null?void 0:l.filter:r}),n}return l==null?void 0:l.contents},qd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"textRGBA",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Wd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(o=>{var s;return(o==null?void 0:o.key)==="tableContents"&&(o.contents=(s=o.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),o})},Kd=async l=>{var n,r,o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(Z=>((Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=$a.shuffle(Z.contents)),Z));if((l==null?void 0:l.filter)==="Auto"){let be=(o=(r=l==null?void 0:l.contents)==null?void 0:r.find(Se=>(Se==null?void 0:Se.key)==="header"))==null?void 0:o.contents;Array.isArray(be==null?void 0:be[0])&&(be=be==null?void 0:be[0]),be=oa.getColumnChild(be);let Z=be==null?void 0:be.filter(Se=>(Se==null?void 0:Se.filter)&&(Se==null?void 0:Se.filter)!==""),de=new Map,je=[];Z==null||Z.forEach(Se=>{var ke,Ze;de.get((ke=Se==null?void 0:Se.menus)==null?void 0:ke.join("/"))||(de.set((Ze=Se==null?void 0:Se.menus)==null?void 0:Ze.join("/"),Se),je.push(Se))});let wa=(c=(s=hn==null?void 0:hn.value)==null?void 0:s.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:c.value,ie=je==null?void 0:je.map(Se=>{var ke,Ze,ya;return Se=(ke=Se==null?void 0:Se.menus)==null?void 0:ke.join("/"),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&((ya=(Ze=hn==null?void 0:hn.value)==null?void 0:Ze.find(Ha=>(Ha==null?void 0:Ha.condition)==="child"))==null?void 0:ya.parentContent)+"/"!==Se?Se=Se+wa:(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&(Se=Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1)),Se}),P=je==null?void 0:je.map(Se=>Se==null?void 0:Se.groups),j=ie==null?void 0:ie.map(async Se=>{let ke=await Kr(Se,!1);return{path:Se,contents:ke}});j=await Promise.all(j);let ye=j==null?void 0:j.map((Se,ke)=>{var ya,Ha,re,la,Ve,ba,Fe;let Ze=(ya=Se==null?void 0:Se.contents)==null?void 0:ya.filter(Ie=>{var $e,Qe;return(Ie==null?void 0:Ie.name)===((Qe=P==null?void 0:P[ke])==null?void 0:Qe[(($e=P==null?void 0:P[ke])==null?void 0:$e.length)-1])});return Ze=(la=(re=(Ha=Ze==null?void 0:Ze[0])==null?void 0:Ha.compData)==null?void 0:re.find(Ie=>(Ie==null?void 0:Ie.key)==="tableContents"))==null?void 0:la.contents,(Se==null?void 0:Se.path)===((ba=(Ve=hn==null?void 0:hn.value)==null?void 0:Ve.find(Ie=>(Ie==null?void 0:Ie.condition)==="child"))==null?void 0:ba.parentContent)&&(Ze=((Fe=Ze==null?void 0:Ze.map(Ie=>{for(let $e in Ie)if(Ie[$e]===wa)return Ie}))==null?void 0:Fe.filter(Ie=>Ie))??[]),Ze??[]});if(ye=ye==null?void 0:ye.map(Se=>(Se=Se==null?void 0:Se.map(ke=>{var ya;let Ze={};for(let Ha in ke)if(Z!=null&&Z.find(re=>{var la,Ve;return((Ve=(la=re==null?void 0:re.words)==null?void 0:la[0])==null?void 0:Ve.replaceAll("'",""))===Ha})){let re=(ya=Z==null?void 0:Z.find(la=>{var Ve,ba;return((ba=(Ve=la==null?void 0:la.words)==null?void 0:Ve[0])==null?void 0:ba.replaceAll("'",""))===Ha}))==null?void 0:ya.prop;Ze[re]=ke==null?void 0:ke[Ha]}return Ze}),Se)),ye=$a.cartesianProduct(ye),Array.isArray(ye==null?void 0:ye[0])&&(ye=ye==null?void 0:ye[0]),(ye==null?void 0:ye.length)>0&&((w=(p=(y=Z==null?void 0:Z[0])==null?void 0:y.menus)==null?void 0:p.join("/"))==null?void 0:w[((u=(m=(v=Z==null?void 0:Z[0])==null?void 0:v.menus)==null?void 0:m.join("/"))==null?void 0:u.length)-1])==="/")return(D=l==null?void 0:l.contents)==null?void 0:D.map(ke=>{var Ze;return(ke==null?void 0:ke.key)==="tableContents"&&(ye==null?void 0:ye.length)>0&&(ke.contents=((Ze=ke.contents)==null?void 0:Ze.length)>0?ke.contents:ye),ke})}if((l==null?void 0:l.filter)==="Manual"){let be=[],Z=[],de=(S=(L=l==null?void 0:l.contents)==null?void 0:L.find(P=>(P==null?void 0:P.key)==="filter"))==null?void 0:S.contents;(de==null?void 0:de[(de==null?void 0:de.length)-1])===")"?de=(I=(W=de==null?void 0:de.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[0]:de="",de!==""&&(be=((ee=(A=de==null?void 0:de.split("*"))==null?void 0:A[0])==null?void 0:ee.split(":"))??[],Z=((g=(k=(E=(_=(C=de==null?void 0:de.split("*"))==null?void 0:C[1])==null?void 0:_.replace("{",dr))==null?void 0:E.split(dr))==null?void 0:k[0])==null?void 0:g.split(":"))??[]);let je=(F=(O=l==null?void 0:l.contents)==null?void 0:O.find(P=>(P==null?void 0:P.key)==="filter"))==null?void 0:F.contents;je=(te=(q=je==null?void 0:je.replace("(",dr))==null?void 0:q.split(dr))==null?void 0:te[1],je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1);let wa=(Te=l==null?void 0:l.contents)==null?void 0:Te.map(P=>{var j,ye,Se,ke,Ze,ya,Ha,re,la;return(P==null?void 0:P.key)==="header"&&((j=P==null?void 0:P.contents)!=null&&j.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(P==null?void 0:P.contents)&&!Array.isArray((ye=P==null?void 0:P.contents)==null?void 0:ye[0])?P.contents=(Se=P==null?void 0:P.contents)==null?void 0:Se.map((Ve,ba)=>{var Fe,Ie,$e;return Ve!=null&&Ve.isMainPath||(ba===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=be,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?Z:Ve.groups,Ve.words=((Ie=Ve.words)==null?void 0:Ie.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=je,(!(Ve!=null&&Ve.menus)||(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(Ve.menus=be)):(Ve.mainKey=!1,Ve.bindMenus=be)),Ve}):Array.isArray((ke=P==null?void 0:P.contents)==null?void 0:ke[0])&&((Ha=(ya=(Ze=P==null?void 0:P.contents)==null?void 0:Ze[0])==null?void 0:ya.filter(()=>(be==null?void 0:be.length)>0))==null?void 0:Ha.length)>0&&(P.contents[0]=(la=(re=P==null?void 0:P.contents)==null?void 0:re[0])==null?void 0:la.map((Ve,ba)=>{var Fe,Ie,$e;return Ve!=null&&Ve.isMainPath||(ba===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=be,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?Z:Ve.groups,Ve.words=((Ie=Ve.words)==null?void 0:Ie.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=je,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(be==null?void 0:be.length)>0&&(Ve.menus=be)):(Ve.mainKey=!1,Ve.bindMenus=be)),Ve}))),P}),ie=(Ee=wa==null?void 0:wa.find(P=>(P==null?void 0:P.key)==="header"))==null?void 0:Ee.contents;if(Array.isArray(ie==null?void 0:ie[0])&&(ie=ie==null?void 0:ie[0]),ie=oa.getColumnChild(ie),ie!=null&&ie.some(P=>{var j,ye;return((ye=P==null?void 0:P.menus)==null?void 0:ye[((j=P==null?void 0:P.menus)==null?void 0:j.length)-1])===""})){let P=(Q=hn==null?void 0:hn.value)==null?void 0:Q.find(j=>(j==null?void 0:j.condition)==="child");wa=Vd(wa,P)}return wa}return l==null?void 0:l.contents},Gd=async l=>{if((l==null?void 0:l.filter)==="Form"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:1}),n}if((l==null?void 0:l.filter)==="FormBlock"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:2}),n}if((l==null?void 0:l.filter)==="FormText"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:3}),n}return l==null?void 0:l.contents},Yd=l=>{var o,s,c,y;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(o=n==null?void 0:n.replace("{",dr))==null?void 0:o.split(dr))==null?void 0:s[1])),n=(c=n==null?void 0:n.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=oa.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let p=[];return r==null||r.forEach(m=>{let u={};for(let w in m){let D=w;D!=null&&D.includes("[")||(u[D]=m[w])}p.push(u)}),(y=l==null?void 0:l.contents)==null?void 0:y.map(m=>{var w,D,L;let u=(D=(w=l==null?void 0:l.contents)==null?void 0:w.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:D.contents;if(u=(L=oa.getEqualChild(u))==null?void 0:L.filter(S=>(S==null?void 0:S.label)!=="操作"),(m==null?void 0:m.key)==="tableContents"){let W=oa.tableToForm(m==null?void 0:m.contents,u);p==null||p.forEach(I=>{var A,ee;for(let C in I)!((A=W==null?void 0:W[0])!=null&&A.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))&&!(W!=null&&W.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))||(((ee=I[C])==null?void 0:ee[0])!=="!"?W=W==null?void 0:W.filter(_=>{var E,k;return((E=_==null?void 0:_.find(g=>{var O;return(g==null?void 0:g.key)===C||((O=g==null?void 0:g.key)==null?void 0:O.includes(C))}))==null?void 0:E.value)===I[C]||Array.isArray(I==null?void 0:I[C])&&((k=I==null?void 0:I[C])==null?void 0:k.find(g=>{var O;return((O=_==null?void 0:_.find(F=>{var q;return(F==null?void 0:F.key)===C||((q=F==null?void 0:F.key)==null?void 0:q.includes(C))}))==null?void 0:O.value)===g}))}):W=W==null?void 0:W.filter(_=>{var E;return((E=_==null?void 0:_.find(k=>{var g;return(k==null?void 0:k.key)===C||((g=k==null?void 0:k.key)==null?void 0:g.includes(C))}))==null?void 0:E.value)!==I[C]}))}),(W==null?void 0:W.length)===0?m.contents=[]:m.contents=W==null?void 0:W.map(I=>{let A={};return I==null||I.forEach(ee=>{A[ee==null?void 0:ee.key]=ee==null?void 0:ee.value}),A})}return m})}return l==null?void 0:l.contents},Jd=l=>l==null?void 0:l.contents,Xd=l=>l==null?void 0:l.contents,Zd=l=>{var n,r,o,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(o=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:o.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(p=>((p==null?void 0:p.key)==="header"&&(p.contents=ht(p.contents,c)),p))}return l==null?void 0:l.contents},Qd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(y=>({label:y,prop:y}))),s}):l==null?void 0:l.contents},ep=l=>l==null?void 0:l.contents,ap=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(y=>({label:y,prop:y}))),s}):l==null?void 0:l.contents},lp=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let o=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(c=>({label:c,prop:c}));return o.push({key:"bottomButton",contents:s}),o}return l==null?void 0:l.contents},rp=l=>{var n,r,o,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(m=>(m.width=c,m))),p})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=No(l==null?void 0:l.filter),y=Array.isArray(c)?c.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return y.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const m=v.contents??[];v.contents=m.map((u,w)=>{const D=w+1;let L=0,S=0;for(let I=0;I<y.length;I++){if(S+=y[I],D<=S){L=I;break}I===y.length-1&&(L=y.length-1)}const W=y[L]||y[y.length-1]||1;return u.width=W,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},np=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c,y,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(v=>(r!=null&&r.find(m=>m===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(y=s.contents)==null?void 0:y.map(v=>(r!=null&&r.find(m=>m===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},op=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const o=c=>(r!=null&&r.find(y=>y===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(y=>o(y))),c);return(n=l==null?void 0:l.contents)==null?void 0:n.map(c=>{var y,p,v;return(c==null?void 0:c.key)==="header"&&(Array.isArray((y=c==null?void 0:c.contents)==null?void 0:y[0])?c.contents[0]=(v=c.contents[0])==null?void 0:v.map(m=>o(m)):c.contents=(p=c.contents)==null?void 0:p.map(m=>o(m))),c})}return l==null?void 0:l.contents},ip=async l=>{var o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C;const n=Y.useUnit(ol.pinia),{chooseTitle:r}=ol.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let _=await Kr(((s=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:s.parentContent)??((y=(c=r==null?void 0:r.value)==null?void 0:c[0])==null?void 0:y.relatedContent),!1),E=(v=(p=r==null?void 0:r.value)==null?void 0:p[0])==null?void 0:v.value;(u=(m=_==null?void 0:_[0])==null?void 0:m.compData)!=null&&u.find(F=>(F==null?void 0:F.key)==="header")?_=(w=_==null?void 0:_[0])==null?void 0:w.compData:_=(L=(D=_==null?void 0:_.filter(F=>{var q;return(q=F==null?void 0:F.compData)==null?void 0:q.find(te=>(te==null?void 0:te.key)==="header")}))==null?void 0:D[0])==null?void 0:L.compData;let k=(S=_==null?void 0:_.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:S.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((W=k==null?void 0:k.find(F=>F==null?void 0:F.isMainKey))==null?void 0:W.prop)??((I=k==null?void 0:k[0])==null?void 0:I.prop);let g=(ee=(A=_==null?void 0:_.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:ee.find(F=>(F==null?void 0:F[k])===E);return(C=l==null?void 0:l.contents)==null?void 0:C.map(F=>{var q;return(F==null?void 0:F.key)==="formContent"&&(F.contents=(q=F.contents)==null?void 0:q.map(te=>(te.value=g==null?void 0:g[te==null?void 0:te.prop],te))),F})}return l==null?void 0:l.contents},tp=l=>{var n,r,o,s,c;if((n=l==null?void 0:l.extra)!=null&&n.row){let y=l==null?void 0:l.filter;if(y!=null&&y.includes("*")&&(y="({"+((o=(r=y==null?void 0:y.replace("{",dr))==null?void 0:r.split(dr))==null?void 0:o[1])),y=(s=y==null?void 0:y.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(y==null?void 0:y[0])!=="("&&(y="("+y+")"),y.slice(1,(y==null?void 0:y.length)-1)==="undefined")return l==null?void 0:l.contents;let p=oa.calculatorAndToOr(y),v=p==null?void 0:p[0],m=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let w in v)(v==null?void 0:v[w])===(m==null?void 0:m[w])?u.push(!0):u.push(!1);return u!=null&&u.every(w=>w===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},sp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},cp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},up=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"fixType",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},dp=l=>{var n;if(l!=null&&l.filter){let r=l==null?void 0:l.contents,o=l==null?void 0:l.filter;return(o==null?void 0:o[0])==="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(n=$a.analyzeSplitToContent(o,","))==null?void 0:n.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),s)),r.push({key:"stepName",contents:o}),r}return l==null?void 0:l.contents},pp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"step",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Xs={onNumSlice:Wd,onRandomContents:Kd,onConditionContents:Yd,onFatherPaceContents:Jd,onPaceContents:Xd,onMainTagContents:Zd,onButtonContents:Qd,onPamButtonContents:ep,onRowButtonContents:ap,onRelated:ip,onRowNum:rp,onFixRow:np,onReqItem:op,onBottomButtonContents:lp,onConditionContent:tp,onTabs:sp,onSinChoice:cp,onTextSize:Ud,onTextRGBA:qd,onPosition:jd,onSize:Hd,onShowType:up,onStepName:dp,onStep:pp,onInterfaceTypeContents:Gd,onBackGround:Fd},fp=async(l,n)=>{var c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g;let r="";if(((c=l==null?void 0:l.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(y=l==null?void 0:l.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:y.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(p=r==null?void 0:r.replace("(",dr))==null?void 0:p.split(dr))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(m=$a.analyzeSplitToContent(r,","))==null?void 0:m.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O!=null&&O.includes("(")||(O=O==null?void 0:O.replaceAll(":","=")),O)),s=l;for(let O in o){let F,q="";(u=o==null?void 0:o[O])!=null&&u.includes("(")?(F=(L=(D=(w=o==null?void 0:o[O])==null?void 0:w.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:L[0],q="("+((I=(W=(S=o==null?void 0:o[O])==null?void 0:S.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[1])):(F=(C=(ee=(A=o==null?void 0:o[O])==null?void 0:A.replace("=",dr))==null?void 0:ee.split(dr))==null?void 0:C[0],q=(k=(E=(_=o==null?void 0:o[O])==null?void 0:_.replace("=",dr))==null?void 0:E.split(dr))==null?void 0:k[1]);let te=(g=vn==null?void 0:vn.find(Te=>(Te==null?void 0:Te.key)===F))==null?void 0:g.value;if(te){const Te=Xs[te];s=await Te({contents:s,filter:q})}}return s},Et=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F;let r="";if(((y=l==null?void 0:l.find(q=>(q==null?void 0:q.key)==="filter"))==null?void 0:y.contents)!==""&&(r=(p=l==null?void 0:l.find(q=>(q==null?void 0:q.key)==="filter"))==null?void 0:p.contents),r===""||!r)return l;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(m=(v=r==null?void 0:r.replace("(",dr))==null?void 0:v.split(dr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=$a.analyzeSplitToContent(r,","))==null?void 0:u.map(q=>((q==null?void 0:q[(q==null?void 0:q.length)-1])===","&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),q!=null&&q.includes("(")||(q=q==null?void 0:q.replaceAll(":","=")),q)),s=l,c=new Map;o==null||o.forEach(q=>{var Te,Ee,Q;let te=(Te=q==null?void 0:q.split("="))==null?void 0:Te[0];if(te==="@MainPam"&&c.get(te)){let be=c.get(te);be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1);let Z=(Q=(Ee=q==null?void 0:q.replace("{",dr))==null?void 0:Ee.split(dr))==null?void 0:Q[1];Z=be+","+Z,c.set(te,Z)}else c.set(te,q)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((q,te)=>{var Te,Ee;return((Te=vn==null?void 0:vn.find(Q=>te==null?void 0:te.includes(Q==null?void 0:Q.key)))==null?void 0:Te.order)-((Ee=vn==null?void 0:vn.find(Q=>q==null?void 0:q.includes(Q==null?void 0:Q.key)))==null?void 0:Ee.order)});for(let q in o){let te,Te="";(w=o==null?void 0:o[q])!=null&&w.includes("(")&&((D=o==null?void 0:o[q])!=null&&D.includes("@Filter"))?(te=(W=(S=(L=o==null?void 0:o[q])==null?void 0:L.replace("(",dr))==null?void 0:S.split(dr))==null?void 0:W[0],Te="("+((ee=(A=(I=o==null?void 0:o[q])==null?void 0:I.replace("(",dr))==null?void 0:A.split(dr))==null?void 0:ee[1])):(te=(E=(_=(C=o==null?void 0:o[q])==null?void 0:C.replace("=",dr))==null?void 0:_.split(dr))==null?void 0:E[0],Te=(O=(g=(k=o==null?void 0:o[q])==null?void 0:k.replace("=",dr))==null?void 0:g.split(dr))==null?void 0:O[1]);let Ee=(F=vn==null?void 0:vn.find(Q=>(Q==null?void 0:Q.key)===te))==null?void 0:F.value;if(Ee){const Q=Xs[Ee];s=await Q({contents:s,filter:Te,extra:n})}}return s},Zs=l=>{if(l==null)return null;const n=String(l).trim();if(!n.startsWith("[")||!n.endsWith("]"))return null;const r=n.slice(1,-1).split(",").map(o=>Number(o.trim()));return r.length<2||r.some(o=>Number.isNaN(o))?null:[r[0],r[1]]},Qs=(l,n)=>{var W,I,A,ee,C;const r=Array.isArray(l)?l:[],o=r.find(_=>(_==null?void 0:_.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((W=r.find(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},y=(s==null?void 0:s[0])??{};let p=((I=n==null?void 0:n.position)==null?void 0:I[0])??(c==null?void 0:c._positionStartRow)??(y==null?void 0:y._positionStartRow),v=((A=n==null?void 0:n.position)==null?void 0:A[1])??(c==null?void 0:c._positionRowSpan)??(y==null?void 0:y._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let m=((ee=n==null?void 0:n.size)==null?void 0:ee[0])??(c==null?void 0:c._sizeStart)??(y==null?void 0:y._sizeStart),u=((C=n==null?void 0:n.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(y==null?void 0:y._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(u===void 0||Number.isNaN(u))&&(u=1),m=Math.max(0,Math.min(1,m)),u=Math.max(0,Math.min(1,u)),u<=m&&(m=0,u=1);const w=u-m,D=Math.max(1,Math.round(1/w));let L=r.map(_=>{if((_==null?void 0:_.key)!=="formContent")return _;const E=Array.isArray(_==null?void 0:_.contents)?_.contents:[];return{..._,contents:E.map(k=>({...k,width:D,_positionStartRow:p,_positionRowSpan:v,_sizeStart:m,_sizeEnd:u}))}});const S={_positionStartRow:p,_positionRowSpan:v,_sizeStart:m,_sizeEnd:u};return L.some(_=>(_==null?void 0:_.key)==="_gridLayoutMeta")?L=L.map(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"?{..._,contents:S}:_):L.push({key:"_gridLayoutMeta",contents:S}),L};let pi="$R";const hp=Y.useUnit(ol.pinia),{selectTitle:vp}=ol.storeToRefs(hp);let mp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],yp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],gp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],bp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ns=async(l,n,r=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul;let y=(S=(L=(D=(w=c==null?void 0:c.contents)==null?void 0:w.find(Ea=>{var _a;return(_a=Ea==null?void 0:Ea.key)==null?void 0:_a.includes("struct")}))==null?void 0:D.value)==null?void 0:L[0])==null?void 0:S.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(W=c==null?void 0:c.contents)==null?void 0:W.map(Ea=>Ea==null?void 0:Ea.key),m={comp:y,isShow:c==null?void 0:c.is_show,name:p==null?void 0:p[0],id:c==null?void 0:c.object_id,relatedTables:v,menuFilter:(I=c==null?void 0:c.filter)==null?void 0:I.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(A=c==null?void 0:c.filter)==null?void 0:A.fatherSyncs,relatedQuotes:(ee=c==null?void 0:c.filter)==null?void 0:ee.quotes,sonSyncContents:(C=c==null?void 0:c.filter)==null?void 0:C.sonSyncs,nameContents:(_=Y.cloneDeep(p))==null?void 0:_.reverse()};for(let Ea in p)parseInt(Ea)>=1&&(m[`name${parseInt(Ea)-1}`]=p[Ea]);let u=Array.isArray((E=c==null?void 0:c.filter)==null?void 0:E.menuFilter)?(k=c==null?void 0:c.filter)==null?void 0:k.menuFilter:[];if(((g=u==null?void 0:u.filter(Ea=>Ea==null?void 0:Ea.includes("@Filter")))==null?void 0:g.length)>0){let Ea=u==null?void 0:u.filter(ae=>ae==null?void 0:ae.includes("@Filter"));Ea=Ea==null?void 0:Ea[0],Ea=(F=(O=Ea==null?void 0:Ea.replace("(",pi))==null?void 0:O.split(pi))==null?void 0:F[1],Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1),Ea!=null&&Ea.includes("*")&&(Ea=(te=(q=Ea==null?void 0:Ea.replace("{",pi))==null?void 0:q.split(pi))==null?void 0:te[1],Ea=Ea==null?void 0:Ea.replace("}","")),Ea=oa.calculatorAndToOr(Ea);let _a=(n==null?void 0:n.originPath)??"";(_a==null?void 0:_a[(_a==null?void 0:_a.length)-1])==="/"&&(_a=_a==null?void 0:_a.slice(0,(_a==null?void 0:_a.length)-1));let Ra=await Kr(_a,!1),Va=(Te=Ra==null?void 0:Ra.filter(ae=>(ae==null?void 0:ae.comp)==="Table"))==null?void 0:Te[0];Va=(Q=(Ee=Va==null?void 0:Va.compData)==null?void 0:Ee.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:Q.contents;let qa=(Z=(be=vp.value)==null?void 0:be.find(ae=>(ae==null?void 0:ae.condition)==="child"))==null?void 0:Z.value;Va=(de=Va==null?void 0:Va.map(ae=>{for(let Ye in ae)if((ae==null?void 0:ae[Ye])===qa)return ae}))==null?void 0:de.filter(ae=>ae),Va=Va==null?void 0:Va[0],Ea=Ea==null?void 0:Ea[0];let xa=[];for(let ae in Ea){let Ye="";al.isObject(Va)&&(Ye=(wa=(je=Object.keys(Va))==null?void 0:je.filter(pe=>pe==null?void 0:pe.includes("."+ae)))==null?void 0:wa[0]),Ye!==""&&(Va!=null&&Va[Ye])&&(Ea==null?void 0:Ea[ae])===(Va==null?void 0:Va[Ye])||Va!=null&&Va[ae]&&(Ea==null?void 0:Ea[ae])===(Va==null?void 0:Va[ae])?xa.push(!0):xa.push(!1)}if(xa!=null&&xa.some(ae=>ae===!1)&&((P=n==null?void 0:n.originPath)==null?void 0:P[((ie=n==null?void 0:n.originPath)==null?void 0:ie.length)-1])!=="/")return}if(y==="Table"||y==="Method"){let Ea=((j=c==null?void 0:c.contents)==null?void 0:j.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("content")}))||[],_a=[];m.comp="Table",Ea.value=(ye=Ea==null?void 0:Ea.value)==null?void 0:ye.sort((qe,G)=>parseInt(qe==null?void 0:qe.id)-parseInt(G==null?void 0:G.id)),Ea.value=(Se=Ea==null?void 0:Ea.value)==null?void 0:Se.map(qe=>{let G={};for(let aa in qe)JSON.stringify(qe==null?void 0:qe[aa])==="{}"?G[aa]="":G[aa]=qe==null?void 0:qe[aa];return G}),_a.push({key:"tableContents",contents:Ea==null?void 0:Ea.value});let Ra=(re=(Ha=(ya=(Ze=(ke=c==null?void 0:c.contents)==null?void 0:ke.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("struct")}))==null?void 0:Ze.value)==null?void 0:ya[0])==null?void 0:Ha.结构)==null?void 0:re.contents;Array.isArray(Ra==null?void 0:Ra[0])?Ra[0]=(la=Ra==null?void 0:Ra[0])==null?void 0:la.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"):Ra=Ra==null?void 0:Ra.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"),_a.push({key:"header",contents:Ra}),_a.push({key:"filter",contents:($e=(Ie=(Fe=(ba=(Ve=c==null?void 0:c.contents)==null?void 0:Ve.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("struct")}))==null?void 0:ba.value)==null?void 0:Fe[0])==null?void 0:Ie.引用)==null?void 0:$e.contents});let Va=mp,qa=Y.cloneDeep(yp);y==="Method"&&qa.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Ra==null?void 0:Ra[0])&&((Qe=Ra==null?void 0:Ra[0])==null?void 0:Qe.prop)==="disabled"&&(Va=gp,qa=bp);const xa=["推力","真空","压力","温度","流量"],ae=m.name;ae&&xa.includes(ae)&&(Va=[...Va],Va.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Ye=[];if(!Array.isArray(Ra==null?void 0:Ra[0])&&(Ra!=null&&Ra.some(qe=>{var G;return(qe==null?void 0:qe.calculatorFilter)&&((G=qe==null?void 0:qe.calculatorFilter)==null?void 0:G.includes("Manual"))}))){let qe=(Xa=Ra==null?void 0:Ra.map(G=>G==null?void 0:G.calculatorFilter))==null?void 0:Xa.filter(G=>G&&(G==null?void 0:G.includes("Manual")));qe==null||qe.forEach(G=>{var Ge;let aa=$a.analyzeSplitToContent(G,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ye.push(Be)}}),Ye=[...new Set(Ye)],Ye=Ye==null?void 0:Ye.map(G=>({label:G,prop:G,type:"methodButton"}))}else if(Array.isArray(Ra==null?void 0:Ra[0])&&((Wa=oa.getColumnChild(Ra==null?void 0:Ra[0]))!=null&&Wa.some(qe=>{var G;return(qe==null?void 0:qe.calculatorFilter)&&((G=qe==null?void 0:qe.calculatorFilter)==null?void 0:G.includes("Manual"))}))){let qe=($=(V=oa.getColumnChild(Ra==null?void 0:Ra[0]))==null?void 0:V.map(G=>G==null?void 0:G.calculatorFilter))==null?void 0:$.filter(G=>G&&(G==null?void 0:G.includes("Manual")));qe==null||qe.forEach(G=>{var Ge;let aa=$a.analyzeSplitToContent(G,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ye.push(Be)}}),Ye=[...new Set(Ye)],Ye=Ye==null?void 0:Ye.map(G=>({label:G,prop:G,type:"methodButton"}))}_a.push({key:"extraButton",contents:Va}),_a.push({key:"rowButton",contents:[...qa,...Ye]}),m.compData=await Et(_a,n),(X=m.compData)!=null&&X.find(qe=>(qe==null?void 0:qe.key)==="tab")&&(m.tab=(ue=(se=m.compData)==null?void 0:se.find(qe=>(qe==null?void 0:qe.key)==="tab"))==null?void 0:ue.contents),(va=m.compData)!=null&&va.find(qe=>(qe==null?void 0:qe.key)==="step")&&(m.step=(Le=(ra=m.compData)==null?void 0:ra.find(qe=>(qe==null?void 0:qe.key)==="step"))==null?void 0:Le.contents),(Ce=m.compData)!=null&&Ce.find(qe=>(qe==null?void 0:qe.key)==="choice")&&(m.choice=(da=(Sa=m.compData)==null?void 0:Sa.find(qe=>(qe==null?void 0:qe.key)==="choice"))==null?void 0:da.contents);let pe="",Ca=(Fa=m==null?void 0:m.compData)==null?void 0:Fa.filter(qe=>(qe==null?void 0:qe.key)==="fixType");(Ca==null?void 0:Ca.length)>0&&r&&(pe=(ja=Ca==null?void 0:Ca[0])==null?void 0:ja.contents,m.comp=pe)}else if(y==="Form"){let Ea=[],_a=(ze=(Je=(me=c==null?void 0:c.contents)==null?void 0:me.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("content")}))==null?void 0:Je.value)==null?void 0:ze[0],Ra=[],Va=Array.isArray((Xe=c==null?void 0:c.filter)==null?void 0:Xe.menuFilter)?(pa=c==null?void 0:c.filter)==null?void 0:pa.menuFilter:[];Va==null||Va.forEach(ae=>{if(ae!=null&&ae.includes("@Param(Hide=Yes, prop=")||ae!=null&&ae.includes("@Interface(Hide=Yes, prop=")){const Ye=ae==null?void 0:ae.match(/prop=([^,)]+)/);Ye!=null&&Ye[1]&&Ra.push(Ye==null?void 0:Ye[1])}});let qa=(Ua=(fa=(za=(Ae=(ua=c==null?void 0:c.contents)==null?void 0:ua.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("struct")}))==null?void 0:Ae.value)==null?void 0:za[0])==null?void 0:fa.结构)==null?void 0:Ua.contents,xa=(ga=qa==null?void 0:qa.map(ae=>(ae.value=_a==null?void 0:_a[ae==null?void 0:ae.prop],ae)))==null?void 0:ga.filter(ae=>(ae==null?void 0:ae.prop)!=="sort"&&(ae==null?void 0:ae.prop)!=="relatedId");xa=xa==null?void 0:xa.map(ae=>(Ra!=null&&Ra.includes(ae==null?void 0:ae.prop)&&(ae.isHideInForm=!0),ae)),Ea.push({key:"filter",contents:(fe=(De=(Ne=(We=(He=c==null?void 0:c.contents)==null?void 0:He.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("struct")}))==null?void 0:We.value)==null?void 0:Ne[0])==null?void 0:De.引用)==null?void 0:fe.contents}),Ea.push({key:"formContent",contents:xa}),Ea.push({key:"paramHideProps",contents:Ra}),m.compData=await fp(Ea),(oe=m.compData)!=null&&oe.find(ae=>(ae==null?void 0:ae.key)==="tab")&&(m.tab=(Pa=(ia=m.compData)==null?void 0:ia.find(ae=>(ae==null?void 0:ae.key)==="tab"))==null?void 0:Pa.contents),(hl=m.compData)!=null&&hl.find(ae=>(ae==null?void 0:ae.key)==="step")&&(m.step=(Ul=(Ma=m.compData)==null?void 0:Ma.find(ae=>(ae==null?void 0:ae.key)==="step"))==null?void 0:Ul.contents)}return m});return o=await Promise.all(s),o},kp=Y.useLoginState(ol.pinia),{loginUserInfo:_o}=ol.storeToRefs(kp),vt=async(l,n,r="Manual",o=[])=>{var v;let s=l,c;Array.isArray(n==null?void 0:n[0])?c=oa.getColumnChild(n==null?void 0:n[0]):c=n;let y=(v=c==null?void 0:c.filter(m=>{var u;return(m==null?void 0:m.calculatorFilter)&&((u=m==null?void 0:m.calculatorFilter)==null?void 0:u.includes(r))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:v.map(m=>({prop:m==null?void 0:m.prop,label:m==null?void 0:m.label,methods:m==null?void 0:m.calculatorFilter,functionName:m==null?void 0:m.functionName,functionRelatedWords:m==null?void 0:m.functionRelatedWords})),p=s==null?void 0:s.map(async m=>(m=await Sp(m,y,c,r,s,o),m));return p=await Promise.all(p),p},xp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(y=>{var p;if(n!=null&&n[y]){let v=n==null?void 0:n[y];c=c?v?$a.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(p=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===y))==null?void 0:p.prop,m=(n==null?void 0:n[v])??0;c=c?m?$a.isEqual(m.toString(),c.toString()):void 0:m}}),n[o]=c===void 0?void 0:c?1:0,n},kr=l=>{const[n,r,o]=Y.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(o??0)},Yn=l=>{const n=c=>c.toString().padStart(2,"0"),r=Math.floor(l/3600),o=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(o)}:${parseInt(n(s))}`},wp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W,I,A;if(n!=null&&n[v]){if(c==="Row")if(!((u=((m=n==null?void 0:n[v])==null?void 0:m.toString())??"")!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let ee=+(n==null?void 0:n[v]);p=p+ee}else p=kr(p.toString())+kr((D=n==null?void 0:n[v])==null?void 0:D.toString()),p=Yn(p)}else if(c==="Row"){let ee=(L=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:L.prop;if(!((W=Number.isNaN(n==null?void 0:n[ee])?"":(S=n==null?void 0:n[ee])==null?void 0:S.toString())!=null&&W.includes(":"))&&!((I=p==null?void 0:p.toString())!=null&&I.includes(":"))){let C=+((n==null?void 0:n[ee])??0);p=p+C}else p=kr(p==null?void 0:p.toString())+kr((A=(n==null?void 0:n[ee])??0)==null?void 0:A.toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w+D},0)}return n[o]=p,n},_p=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p-I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())-kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p-A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())-kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w-D},0)}return n[o]=p,n},Cp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p*I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())*kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!(n!=null&&n[I]))p=void 0;else if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p*A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())*kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w*D},0)}return n[o]=p,n},Ep=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p/I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())/kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p/A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())/kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w/D},0)}return n[o]=p.toFixed(2),n},fi={Sum:wp,Substract:_p,Multiple:Cp,Divide:Ep,Compare:xp},Sp=async(l,n,r,o="Auto",s,c=[])=>{var u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q;let y=l,p=[],v=await Y.getPageDataApi({platId:parseInt((u=_o==null?void 0:_o.value)==null?void 0:u.plat_id),pageName:"menu"});v=(L=(D=(w=v==null?void 0:v.data)==null?void 0:w.result)==null?void 0:D.filter(be=>(be==null?void 0:be.property_name)===""))==null?void 0:L[0];let m=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let be=await Y.getPageDataApi({platId:parseInt((S=_o==null?void 0:_o.value)==null?void 0:S.plat_id),pageName:v});be=(C=(ee=(A=(I=(W=be==null?void 0:be.data)==null?void 0:W.result)==null?void 0:I[0])==null?void 0:A.contents)==null?void 0:ee.find(Z=>{var de;return(de=Z==null?void 0:Z.key)==null?void 0:de.includes("content")}))==null?void 0:C.value,p=(_=be==null?void 0:be.map(Z=>({functionName:Z==null?void 0:Z.函数名称,functionContent:Z==null?void 0:Z.输出值})))==null?void 0:_.filter(Z=>(Z==null?void 0:Z.functionContent)!==""),p==null||p.forEach(Z=>{m.push(Z.functionName),fi[Z.functionName]=new Function("return "+Z.functionContent)()})}if((n==null?void 0:n.length)===0)return y;for(let be in n){let Z=(E=n==null?void 0:n[be])==null?void 0:E.functionName;const de=fi==null?void 0:fi[Z];let je=(k=n==null?void 0:n[be])==null?void 0:k.methods;if(je=$a.analyzeSplitToContent(je,","),console.log(je),(g=je==null?void 0:je.find(wa=>wa==null?void 0:wa.includes("@FunctionType")))!=null&&g.includes(o)||(je==null?void 0:je.length)===0){let wa=((q=(F=(O=je==null?void 0:je.find(ie=>ie==null?void 0:ie.includes("@FunctionExtent")))==null?void 0:O.replace(":","="))==null?void 0:F.split("="))==null?void 0:q[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(ie=>ie===Z)){let ie="";try{let j=(te=n==null?void 0:n[be])==null?void 0:te.functionRelatedWords,ye=(c==null?void 0:c.length)>0?c==null?void 0:c.map(ke=>{var Ze;return ke==null?void 0:ke[(Ze=n==null?void 0:n[be])==null?void 0:Ze.prop]}):["0"];ye=ye==null?void 0:ye.map(ke=>ke==null?void 0:ke.slice((ke==null?void 0:ke.length)-5,ke==null?void 0:ke.length)),ye=ye==null?void 0:ye.map(ke=>$a.isNumber(parseInt(ke))&&parseInt(ke)?parseInt(ke):0);let Se=Math.max(...ye);j=j==null?void 0:j.map(ke=>{if(ke!=null&&ke.includes("'"))return ke==null?void 0:ke.replaceAll("'","");if(ke!=null&&ke.includes("@"))return Se+1;{let Ze=Object.keys(y);return ke=(y==null?void 0:y[ke])??(y==null?void 0:y[Ze==null?void 0:Ze.find(ya=>ya==null?void 0:ya.includes("."+ke))]),ke}}),ie=de(...j)}catch(j){al.ElMessage.warning("关联数据出现错误,"+j.message)}let P=(Te=n==null?void 0:n[be])==null?void 0:Te.prop;y[P]=ie}else y=de({contents:y,valueString:(Ee=n==null?void 0:n[be])==null?void 0:Ee.functionRelatedWords,prop:(Q=n==null?void 0:n[be])==null?void 0:Q.prop,headers:r,typeString:wa,allContents:s})}}return y},Dp=Y.useLoginState(ol.pinia),{loginUserInfo:Zr}=ol.storeToRefs(Dp),Bp=Y.useMenuState(ol.pinia),{activeMenuPath:os,currentMenuPath:hi}=ol.storeToRefs(Bp),ec=Y.useUnit(ol.pinia);let is="$R";const{selectTitle:Do}=ol.storeToRefs(ec),ac=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee;let r=os.value,o="",s=((y=Do==null?void 0:Do.value)==null?void 0:y.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(p=l==null?void 0:l[0])==null?void 0:p.object_name,o=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(o!==""){let C=o;(C==null?void 0:C[(C==null?void 0:C.length)-1])==="/"&&(C=C==null?void 0:C.slice(0,(C==null?void 0:C.length)-1));let _=await Kr(C,!1);_=(m=_==null?void 0:_[0])==null?void 0:m.compData;let E=(u=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:u.contents;E=((w=E==null?void 0:E.find(g=>g==null?void 0:g.isMainKey))==null?void 0:w.prop)??((D=E==null?void 0:E[0])==null?void 0:D.prop);let k=(S=(L=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:L.contents)==null?void 0:S.map(g=>({label:g==null?void 0:g[E],value:g==null?void 0:g[E]}));c=(W=o==null?void 0:o.split("/"))==null?void 0:W.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:k,parentContent:(o==null?void 0:o[(o==null?void 0:o.length)-1])==="/"?o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1):o,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(r!==""){let C=(I=r==null?void 0:r.split("/"))==null?void 0:I.map(_=>(_={condition:"normal",value:_.trim(),isShow:!0},_));((A=C==null?void 0:C[0])==null?void 0:A.value)===((ee=c==null?void 0:c[0])==null?void 0:ee.value)&&(C=C==null?void 0:C.filter((_,E)=>E!==0)),c=[...c??[],...C??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==os.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),ec.setSelectTitle(c)},Np=async l=>{var c,y,p,v,m,u,w,D,L;let n=await Y.getPageDataApi({platId:parseInt((c=Zr==null?void 0:Zr.value)==null?void 0:c.plat_id),pageName:"menu"}),r=(y=n==null?void 0:n.data)==null?void 0:y.result,o=(u=(m=(v=(p=l==null?void 0:l.filter(S=>(S==null?void 0:S.comp)==="Table"))==null?void 0:p[0])==null?void 0:v.compData)==null?void 0:m.find(S=>(S==null?void 0:S.key)==="filter"))==null?void 0:u.contents;o=(L=(D=(w=o==null?void 0:o.replace("(",is))==null?void 0:w.split(is))==null?void 0:D[0])==null?void 0:L.replaceAll(":","/");let s=r==null?void 0:r.filter(S=>{var W;return(S==null?void 0:S.object_name)===hi.value+"/"||((W=hi.value)==null?void 0:W.includes(o))&&o+"/"===(S==null?void 0:S.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(S=>{var W;return(S==null?void 0:S.comp)==="Table"&&(S.compData=(W=S==null?void 0:S.compData)==null?void 0:W.map(I=>{var A,ee,C;return(I==null?void 0:I.key)==="header"&&(Array.isArray((A=I.contents)==null?void 0:A[0])?I.contents[0]=(C=I.contents[0])==null?void 0:C.map((_,E)=>{var k;return E===0&&(_.isExistChild=!0,(k=hi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_}):I.contents=(ee=I.contents)==null?void 0:ee.map((_,E)=>{var k;return E===0&&(_.isExistChild=!0,(k=hi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_})),I})),S})),l},Kr=async(l,n,r={})=>{var y,p,v,m,u,w,D,L,S,W,I,A;let o=await Y.getPageDataApi({platId:parseInt((y=Zr==null?void 0:Zr.value)==null?void 0:y.plat_id),pageName:l}),s=(p=o==null?void 0:o.data)==null?void 0:p.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let ee=await Y.getPageDataApi({platId:parseInt((v=Zr==null?void 0:Zr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((u=(m=ee==null?void 0:ee.data)==null?void 0:m.result)==null?void 0:u.length)>0){let C=await ns((w=ee==null?void 0:ee.data)==null?void 0:w.result,r,!1);C=C==null?void 0:C.map(async k=>{var F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa;let g=[],O=(F=Object.keys(k))==null?void 0:F.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)O!=null&&O.find($=>$===V)&&g.push(k==null?void 0:k[V]);if(g=g.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(Te=(te=(q=k==null?void 0:k.compData)==null?void 0:q.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:te.contents)==null?void 0:Te.map(X=>{let se={};for(let ue in X)ue!=="id"&&ue!=="create_time"&&ue!=="update_time"&&ue!=="sort"&&ue!=="create_user_id"&&ue!=="update_user_id"&&ue!=="department_id"&&ue!=="relatedId"&&(se[ue]=X==null?void 0:X[ue]);return X=Object.values(se),X}),$=(Q=(Ee=k==null?void 0:k.compData)==null?void 0:Ee.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:Q.contents;if(Array.isArray($==null?void 0:$[0])?($[0].push({label:"排序",prop:"sort"}),$[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(be=$[0])!=null&&be.find(X=>(X==null?void 0:X.prop)==="disabled")&&($[0]=(Z=$[0])==null?void 0:Z.filter(X=>(X==null?void 0:X.prop)!=="disabled"),$[0].unshift({label:"",prop:"disabled",sortable:!1}))):($.push({label:"排序",prop:"sort"}),$.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),$!=null&&$.find(X=>(X==null?void 0:X.prop)==="disabled")&&($=$==null?void 0:$.filter(X=>(X==null?void 0:X.prop)!=="disabled"),$.unshift({label:"",prop:"disabled",sortable:!1}))),$!=null&&$.some(X=>{var se;return(X==null?void 0:X.calculatorFilter)&&((se=X==null?void 0:X.calculatorFilter)==null?void 0:se.includes("Auto"))})&&(V=await vt(V,$,"Auto"),V=V==null?void 0:V.map(X=>Object.values(X))),k!=null&&k.fatherSyncContents){Array.isArray((de=k==null?void 0:k.fatherSyncContents)==null?void 0:de[0])&&(k.fatherSyncContents=(je=k==null?void 0:k.fatherSyncContents)==null?void 0:je[0]);let X=(wa=Do.value)==null?void 0:wa.find(se=>(se==null?void 0:se.condition)==="child");k.fatherSyncContents=(ie=k==null?void 0:k.fatherSyncContents)==null?void 0:ie.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}if(k!=null&&k.sonSyncContents){Array.isArray((P=k==null?void 0:k.sonSyncContents)==null?void 0:P[0])&&(k.sonSyncContents=(j=k==null?void 0:k.sonSyncContents)==null?void 0:j[0]);let X=(ye=Do.value)==null?void 0:ye.find(se=>(se==null?void 0:se.condition)==="child");k.sonSyncContents=(Se=k==null?void 0:k.sonSyncContents)==null?void 0:Se.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}if(k!=null&&k.relatedQuotes){Array.isArray((ke=k==null?void 0:k.relatedQuotes)==null?void 0:ke[0])&&(k.relatedQuotes=(Ze=k==null?void 0:k.relatedQuotes)==null?void 0:Ze[0]);let X=(ya=Do.value)==null?void 0:ya.find(se=>(se==null?void 0:se.condition)==="child");k.relatedQuotes=(Ha=k==null?void 0:k.relatedQuotes)==null?void 0:Ha.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}k={filter:(la=(re=k==null?void 0:k.compData)==null?void 0:re.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:la.contents,key:k==null?void 0:k.comp,name:g,tableColumns:$,tableContents:V,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}else{let V=(Fe=(ba=(Ve=k==null?void 0:k.compData)==null?void 0:Ve.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:ba.contents)==null?void 0:Fe.map(X=>(X==null?void 0:X.value)??"");V=[V];let $=(Qe=($e=(Ie=k==null?void 0:k.compData)==null?void 0:Ie.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:$e.contents)==null?void 0:Qe.map(X=>(X.value="",X));k={contents:V,filter:(Wa=(Xa=k==null?void 0:k.compData)==null?void 0:Xa.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:Wa.contents,key:k==null?void 0:k.comp,name:g,value:$,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}return k.isShow=!1,k}),C=await Promise.all(C);let _=[{key:"menuPath",contents:[{path:l,fatherPath:(S=(L=(D=ee==null?void 0:ee.data)==null?void 0:D.result)==null?void 0:L[0])==null?void 0:S.father_name,isShow:!1}]},{key:l,contents:C}];await Y.createPlatFormDataApi({platId:parseInt((W=Zr==null?void 0:Zr.value)==null?void 0:W.plat_id),changeData:_});let E=await Y.getPageDataApi({platId:parseInt((I=Zr==null?void 0:Zr.value)==null?void 0:I.plat_id),pageName:l});s=(A=E==null?void 0:E.data)==null?void 0:A.result}}n&&await ac(s,!!(r!=null&&r.originPath));let c=await ns(s,r);return n&&(c=await Np(c)),c==null?void 0:c.filter(ee=>ee)},ts=async l=>{var o,s,c,y,p,v,m,u,w,D,L;let n=(o=l==null?void 0:l.menus)==null?void 0:o.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let r=await Kr(n,!1);if(r=(y=r==null?void 0:r.filter(S=>{var W,I;return(S==null?void 0:S.name)===((I=l==null?void 0:l.groups)==null?void 0:I[((W=l==null?void 0:l.groups)==null?void 0:W.length)-1])}))==null?void 0:y[0],(v=(p=r==null?void 0:r.compData)==null?void 0:p.find(S=>(S==null?void 0:S.key)==="tableContents"))!=null&&v.contents){r=(u=(m=r==null?void 0:r.compData)==null?void 0:m.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:u.contents;let S=((w=l==null?void 0:l.words)==null?void 0:w[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(W=>{var I,A,ee,C;return(W==null?void 0:W[l!=null&&l.endChildMenu?S:(I=l==null?void 0:l.words)==null?void 0:I[0]])===(l!=null&&l.relatedWords&&((A=l==null?void 0:l.relatedWords)==null?void 0:A.length)>0?(C=(ee=l.value)==null?void 0:ee.split(" "))==null?void 0:C[0]:l.value)}),r==null?void 0:r[0]}else{let S=(L=(D=r==null?void 0:r.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:L.contents,W={};return S==null||S.forEach(I=>{W[I.prop]=I.value}),W}},Tp={key:0,class:"extra-button-content"},Ap={class:"table-operator-wrap"},zp={key:0,class:"extra-button-filter"},Mp={key:1,class:"extra-header"},Ip=["onClick"],Op={class:"table-op-text"},Lp={class:"table-op-text"},Rp={class:"drop-menu",style:{width:"120px"}},$p=["onClick"],Vp={key:0},Pp={key:1},Fp=["onClick"],jp={class:"table-op-text"},Hp={key:1,class:"extra-button-content tabs-button-wrapper"},Up={class:"table-operator-wrap"},qp={class:"extra-button-filter"},Wp={key:0,class:"extra-header"},Kp={class:"table-op-action"},Gp={class:"table-op-text"},Yp={class:"drop-menu",style:{width:"120px"}},Jp={key:0},Xp={key:1},Zp=["onClick"],Qp={class:"table-op-text"},ef={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:n}){const r=n,o=l,s=()=>{const g=(o==null?void 0:o.menuFilter)||[];return Array.isArray(g)&&(g==null?void 0:g.some(O=>{const F=typeof O=="string"?O:JSON.stringify(O);return F==null?void 0:F.includes("@InterfaceHide=Yes")}))},c=a.ref(""),y=a.ref(!1),p=a.ref([]),v=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),m=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function u(g,O){return g.map(F=>{const q={...F};return O.forEach(te=>{delete q[te]}),q})}function w(g){if(!g||g.t!=="n")return(g==null?void 0:g.v)??"";const O=g.v;if(g.z){const F=String(g.z).toLowerCase(),q=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const Ee of q)if(F.includes(Ee))return D(O);const te=/[ymdhms]/.test(F),Te=/^[0#\.\,\s]+$/.test(F.replace(/[\\\/\-:]/g,""));if(te&&!Te)return D(O)}if(O>=1&&O<=73050){if(O<5e3)return O;if(O>=5e3&&O<4e4){const F=Math.floor((O-25569)/365.25)+1970;return F>=1970&&F<=2e3&&g.z&&/[ymd]/.test(String(g.z).toLowerCase())?D(O):O}if(O>=4e4)return D(O)}return O}function D(g){if(typeof g!="number")return g;try{const O=new Date((g-25569)*86400*1e3);if(isNaN(O.getTime()))return g;const F=O.getFullYear(),q=String(O.getMonth()+1).padStart(2,"0"),te=String(O.getDate()).padStart(2,"0");return`${F}-${q}-${te}`}catch{return g}}const L=g=>{const O=g.raw;if(!O)return;const F=new FileReader;F.onload=q=>{try{const te=new Uint8Array(q.target.result),Te=oa.readSync(te,{type:"array"}),Ee=Te.SheetNames[0],Q=Te.Sheets[Ee],Z=oa.utils.decode_range(Q["!ref"]).e.c+1,de=new Array(Z).fill(""),je=[];for(const ye in Q){if(ye[0]==="!")continue;const{r:Se,c:ke}=oa.utils.decode_cell(ye),Ze=Q[ye];let ya=w(Ze);if((ya==null||ya==="")&&(ya=""),Se===0)de[ke]=ya;else{if(!je[Se-1]){je[Se-1]={};for(let Ha=0;Ha<Z;Ha++)je[Se-1][`col_${Ha}`]=""}je[Se-1][`col_${ke}`]=ya}}for(let ye=0;ye<Z;ye++)de[ye]===void 0&&(de[ye]="");const wa=[];for(let ye=0;ye<de.length;ye++)(!de[ye]||de[ye].toString().trim()==="")&&wa.push(ye);let ie,P;(wa==null?void 0:wa.length)>0?(al.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),ie=de.filter((ye,Se)=>!wa.includes(Se)),P=u(je,wa==null?void 0:wa.map(ye=>`col_${ye}`))):(ie=de,P=je);const j=je==null?void 0:je[0];if(!(j!=null&&j.hasOwnProperty("col_0")))return al.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",ie,P)}catch(te){throw al.ElMessage.error(te.message),new Error(te.message)}},F.readAsArrayBuffer(O)},S=g=>{var F;const O=(F=p.value)==null?void 0:F.reduce((q,te,Te)=>(Te===0?q[te.label]=g:q[te.label]=te==null?void 0:te.value,q),{});r("filter",O,g,!0)},W=(g,O={})=>{r("buttonClick",g,"",O)},I=g=>{var O,F;p.value=(F=(O=oa.getColumnChild(Y.cloneDeep(g)))==null?void 0:O.filter(q=>(q==null?void 0:q.label)!==""&&(q==null?void 0:q.label)!=="操作"))==null?void 0:F.map(q=>({label:(q==null?void 0:q.label)??"",value:"",name:(q==null?void 0:q.prop)??"",isFormColHidden:q==null?void 0:q.isTableColHidden,width:2,prop:(q==null?void 0:q.prop)??""}))},A=a.ref(!1),ee=g=>{var O;if((g==null?void 0:g.buttonName)==="确认"&&(r("filter",g==null?void 0:g.content),A.value=(g==null?void 0:g.content)&&Object.values(g==null?void 0:g.content).length>0),(g==null?void 0:g.buttonName)==="清空"){const F=Y.cloneDeep(g==null?void 0:g.content);for(const q in F)F[q]="";p.value=(O=p.value)==null?void 0:O.map(q=>({...q,value:""})),r("filter",F),A.value=!1}y.value=!1},C=()=>{y.value=!y.value},_=()=>{var O,F;p.value=(O=p.value)==null?void 0:O.map(q=>({...q,value:""}));const g=(F=p.value)==null?void 0:F.reduce((q,te)=>(q[te.label]=te.value,q),{});r("filter",g)},E=a.ref(null);let k;return k=g=>{var te;if(!y.value)return;const O=(te=E==null?void 0:E.value)==null?void 0:te.$el,F=O==null?void 0:O.contains(g.target);let q=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Te=>{Te.contains(g.target)&&(q=!0)}),!F&&!q&&(y.value=!1)},a.onMounted(()=>{document.addEventListener("click",k),I(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",k)}),a.watch(()=>o.columns,()=>{I(o.columns)},{deep:!0,immediate:!0}),(g,O)=>{var Q,be,Z,de,je,wa,ie,P;const F=a.resolveComponent("el-icon"),q=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-input"),Te=a.resolveComponent("el-upload"),Ee=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",Tp,[s()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(o==null?void 0:o.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((o==null?void 0:o.level)-1)*12+"px",fontWeight:600-((o==null?void 0:o.level)-1)*100>=400?600-((o==null?void 0:o.level)-1)*100:400,fontSize:17-(o==null?void 0:o.level)>=14?17-(o==null?void 0:o.level)+"px":"14px"})},a.toDisplayString(l.compName),7)),a.createElementVNode("div",Ap,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",zp,[a.createVNode(Au,{trigger:"contextmenu",ref_key:"popOverRef",ref:E,title:"",width:800,placement:"bottom-start",isVisible:y.value,"onUpdate:isVisible":O[4]||(O[4]=j=>y.value=j)},{reference:a.withCtx(()=>{var j,ye,Se,ke;return[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":O[0]||(O[0]=Ze=>c.value=Ze),style:{"min-width":"80px"},placeholder:A.value?(Se=(ye=(j=l.filterValues)==null?void 0:j.filter(Ze=>Ze))==null?void 0:ye.slice(0,3))==null?void 0:Se.join("/"):"搜索","prefix-icon":a.unref(al.search_default),clearable:"",onInput:S,disabled:((ke=p.value)==null?void 0:ke.length)===0},{suffix:a.withCtx(()=>{var Ze,ya;return[!c.value&&((ya=(Ze=l.filterValues)==null?void 0:Ze.filter(Ha=>Ha))!=null&&ya.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(al.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:O[1]||(O[1]=a.withModifiers(()=>{},["stop"])),onKeyup:O[2]||(O[2]=a.withModifiers(()=>{},["stop"])),onKeypress:O[3]||(O[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:p.value,buttonValue:v.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:v.value,isStartJustify:!1,onOnButtonClick:ee},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((Q=l.buttons)==null?void 0:Q.length)>0?(a.openBlock(),a.createElementBlock("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((be=l.buttons)==null?void 0:be.filter(j=>l.isDevMode||(j==null?void 0:j.label)!=="修改模板"),(j,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(j==null?void 0:j.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":L,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ze=>W(j==null?void 0:j.label)},[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Op,a.toDisplayString(j==null?void 0:j.label),1)],10,Ip)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var ke;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Lp,a.toDisplayString(j==null?void 0:j.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Rp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j==null?void 0:j.contents,ke=>{var Ze,ya;return a.openBlock(),a.createElementBlock("div",{key:ke==null?void 0:ke.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:Ha=>!l.lockingPage&&W(ke==null?void 0:ke.label)},[a.createTextVNode(a.toDisplayString(ke==null?void 0:ke.label),1),(Ze=ke==null?void 0:ke.label)!=null&&Ze.includes("选中")?(a.openBlock(),a.createElementBlock("span",Vp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Pp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,$p)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(j!=null&&j.type)||(j==null?void 0:j.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:ke=>!l.lockingPage&&W(j==null?void 0:j.label,j)},[a.createVNode(q,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(j==null?void 0:j.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",jp,a.toDisplayString(j==null?void 0:j.label),1)],10,Fp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Hp,[a.createElementVNode("div",Up,[a.createElementVNode("div",qp,[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":O[5]||(O[5]=j=>c.value=j),style:{"min-width":"80px"},placeholder:A.value?(je=(de=(Z=l.filterValues)==null?void 0:Z.filter(j=>j))==null?void 0:de.slice(0,3))==null?void 0:je.join("/"):"搜索","prefix-icon":a.unref(al.search_default),clearable:"",onInput:S,disabled:((wa=p.value)==null?void 0:wa.length)===0},{suffix:a.withCtx(()=>{var j,ye;return[!c.value&&((ye=(j=l.filterValues)==null?void 0:j.filter(Se=>Se))!=null&&ye.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(al.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((ie=l.buttons)==null?void 0:ie.length)>0?(a.openBlock(),a.createElementBlock("div",Wp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((P=l.buttons)==null?void 0:P.filter(j=>l.isDevMode||(j==null?void 0:j.label)!=="修改模板"),(j,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(j==null?void 0:j.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":L,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",Kp,[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Gp,a.toDisplayString(j==null?void 0:j.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(Ee,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ke;return[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(j==null?void 0:j.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j==null?void 0:j.contents,ke=>(a.openBlock(),a.createBlock(Ee,{key:ke==null?void 0:ke.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ze=>W(ke==null?void 0:ke.label)},{default:a.withCtx(()=>{var Ze,ya;return[a.createTextVNode(a.toDisplayString(ke==null?void 0:ke.label),1),(Ze=ke==null?void 0:ke.label)!=null&&Ze.includes("选中")?(a.openBlock(),a.createElementBlock("span",Jp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Xp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(j!=null&&j.type)||(j==null?void 0:j.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:ke=>!l.lockingPage&&W(j==null?void 0:j.label,j)},[a.createVNode(q,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(j==null?void 0:j.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",Qp,a.toDisplayString(j==null?void 0:j.label),1)],10,Zp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},af=Xl._export_sfc(ef,[["__scopeId","data-v-a6997ec1"]]),lf={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const o=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,c=>{var y;return a.openBlock(),a.createBlock(o,{key:c==null?void 0:c.prop,label:c==null?void 0:c.label,prop:c==null?void 0:c.prop,fixed:(c==null?void 0:c.prop)==="operate"?"right":c==null?void 0:c.fixed,align:(c==null?void 0:c.align)??"left","show-overflow-tooltip":(c==null?void 0:c.showOverflowTooltip)??!0,width:c==null?void 0:c.width,"min-width":(c==null?void 0:c.minWidth)||((c==null?void 0:c.prop)==="operate"?80:(((y=c==null?void 0:c.label)==null?void 0:y.length)*2||4)*27)},{default:a.withCtx(p=>[a.renderSlot(n.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,m)=>(a.openBlock(),a.createBlock(pl._sfc_main$2,{key:m,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(u,w)=>({name:w,fn:a.withCtx(({row:D,slotData:L,item:S,column:W})=>[a.renderSlot(n.$slots,w,a.mergeProps({ref_for:!0},L??D,{item:S??v,slotData:L??D,row:D,column:W,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class rf extends $a.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,o,s){const c=this,y=new $a.FileLoader(c.manager);y.setPath(c.path),y.setResponseType("arraybuffer"),y.setRequestHeader(c.requestHeader),y.setWithCredentials(c.withCredentials),y.load(n,function(p){try{r(c.parse(p))}catch(v){s?s(v):console.error(v),c.manager.itemError(n)}},o,s)}_getDataView(n,r,o,s){switch(o){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r(L,S){const W=L.length,I=new Uint8Array(S);let A=0,ee=0,C,_,E;do if(C=L[A++],C<32){if(C++,ee+C>S)throw new Error("Output buffer is not large enough");if(A+C>W)throw new Error("Invalid compressed data");do I[ee++]=L[A++];while(--C)}else{if(_=C>>5,E=ee-((C&31)<<8)-1,A>=W)throw new Error("Invalid compressed data");if(_===7&&(_+=L[A++],A>=W))throw new Error("Invalid compressed data");if(E-=L[A++],ee+_+2>S)throw new Error("Output buffer is not large enough");if(E<0)throw new Error("Invalid compressed data");if(E>=ee)throw new Error("Invalid compressed data");do I[ee++]=I[E++];while(--_+2)}while(A<W);return I}function o(L){const S={},W=new Uint8Array(L);let I="",A="",ee=0,C=!1;const _=W.length;for(;ee<_&&C===!1;){const O=String.fromCharCode(W[ee++]);O===`
2
- `||O==="\r"?(A.trim().toLowerCase().startsWith("data")&&(C=!0),A=""):A+=O,I+=O}const E=I.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(I.slice(E-1));if(S.data=k[1],S.headerLen=k[0].length+E,S.str=I.slice(0,S.headerLen),S.str=S.str.replace(/#.*/gi,""),S.version=/^VERSION (.*)/im.exec(S.str),S.fields=/^FIELDS (.*)/im.exec(S.str),S.size=/^SIZE (.*)/im.exec(S.str),S.type=/^TYPE (.*)/im.exec(S.str),S.count=/^COUNT (.*)/im.exec(S.str),S.width=/^WIDTH (.*)/im.exec(S.str),S.height=/^HEIGHT (.*)/im.exec(S.str),S.viewpoint=/^VIEWPOINT (.*)/im.exec(S.str),S.points=/^POINTS (.*)/im.exec(S.str),S.version!==null&&(S.version=parseFloat(S.version[1])),S.fields=S.fields!==null?S.fields[1].split(" "):[],S.type!==null&&(S.type=S.type[1].split(" ")),S.width!==null&&(S.width=parseInt(S.width[1])),S.height!==null&&(S.height=parseInt(S.height[1])),S.viewpoint!==null&&(S.viewpoint=S.viewpoint[1]),S.points!==null&&(S.points=parseInt(S.points[1],10)),S.points===null&&(S.points=S.width*S.height),S.size!==null&&(S.size=S.size[1].split(" ").map(function(O){return parseInt(O,10)})),S.count!==null)S.count=S.count[1].split(" ").map(function(O){return parseInt(O,10)});else{S.count=[];for(let O=0,F=S.fields.length;O<F;O++)S.count.push(1)}S.offset={};let g=0;for(let O=0,F=S.fields.length;O<F;O++)S.data==="ascii"?S.offset[S.fields[O]]=O:(S.offset[S.fields[O]]=g,g+=S.size[O]*S.count[O]);return S.rowSize=g,S}const s=o(n),c=[],y=[],p=[],v=[],m=[],u=new $a.Color;if(s.data==="ascii"){const L=s.offset,I=new TextDecoder().decode(n).slice(s.headerLen).split(`
3
- `);for(let A=0,ee=I.length;A<ee;A++){if(I[A]==="")continue;const C=I[A].split(" ");if(L.x!==void 0&&(c.push(parseFloat(C[L.x])),c.push(parseFloat(C[L.y])),c.push(parseFloat(C[L.z]))),L.rgb!==void 0){const _=s.fields.findIndex(te=>te==="rgb"),E=s.type[_],k=parseFloat(C[L.rgb]);let g=k;if(E==="F"){const te=new Float32Array(1);te[0]=k,g=new Int32Array(te.buffer)[0]}const O=(g>>16&255)/255,F=(g>>8&255)/255,q=(g>>0&255)/255;u.setRGB(O,F,q,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}L.normal_x!==void 0&&(y.push(parseFloat(C[L.normal_x])),y.push(parseFloat(C[L.normal_y])),y.push(parseFloat(C[L.normal_z]))),L.intensity!==void 0&&v.push(parseFloat(C[L.intensity])),L.label!==void 0&&m.push(parseInt(C[L.label]))}}if(s.data==="binary_compressed"){const L=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),S=L[0],W=L[1],I=r(new Uint8Array(n,s.headerLen+8,S),W),A=new DataView(I.buffer),ee=s.offset;for(let C=0;C<s.points;C++){if(ee.x!==void 0){const _=s.fields.indexOf("x"),E=s.fields.indexOf("y"),k=s.fields.indexOf("z");c.push(this._getDataView(A,s.points*ee.x+s.size[_]*C,s.type[_],s.size[_])),c.push(this._getDataView(A,s.points*ee.y+s.size[E]*C,s.type[E],s.size[E])),c.push(this._getDataView(A,s.points*ee.z+s.size[k]*C,s.type[k],s.size[k]))}if(ee.rgb!==void 0){const _=s.fields.indexOf("rgb"),E=A.getUint8(s.points*ee.rgb+s.size[_]*C+2)/255,k=A.getUint8(s.points*ee.rgb+s.size[_]*C+1)/255,g=A.getUint8(s.points*ee.rgb+s.size[_]*C+0)/255;u.setRGB(E,k,g,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(ee.normal_x!==void 0){const _=s.fields.indexOf("normal_x"),E=s.fields.indexOf("normal_y"),k=s.fields.indexOf("normal_z");y.push(this._getDataView(A,s.points*ee.normal_x+s.size[_]*C,s.type[_],s.size[_])),y.push(this._getDataView(A,s.points*ee.normal_y+s.size[E]*C,s.type[E],s.size[E])),y.push(this._getDataView(A,s.points*ee.normal_z+s.size[k]*C,s.type[k],s.size[k]))}if(ee.intensity!==void 0){const _=s.fields.indexOf("intensity");v.push(this._getDataView(A,s.points*ee.intensity+s.size[_]*C,s.type[_],s.size[_]))}if(ee.label!==void 0){const _=s.fields.indexOf("label");m.push(A.getInt32(s.points*ee.label+s.size[_]*C,this.littleEndian))}}}if(s.data==="binary"){const L=new DataView(n,s.headerLen),S=s.offset;for(let W=0,I=0;W<s.points;W++,I+=s.rowSize){if(S.x!==void 0){const A=s.fields.indexOf("x"),ee=s.fields.indexOf("y"),C=s.fields.indexOf("z");c.push(this._getDataView(L,I+S.x,s.type[A],s.size[A])),c.push(this._getDataView(L,I+S.y,s.type[ee],s.size[ee])),c.push(this._getDataView(L,I+S.z,s.type[C],s.size[C]))}if(S.rgb!==void 0){const A=L.getUint8(I+S.rgb+2)/255,ee=L.getUint8(I+S.rgb+1)/255,C=L.getUint8(I+S.rgb+0)/255;u.setRGB(A,ee,C,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(S.normal_x!==void 0){const A=s.fields.indexOf("normal_x"),ee=s.fields.indexOf("normal_y"),C=s.fields.indexOf("normal_z");y.push(this._getDataView(L,I+S.normal_x,s.type[A],s.size[A])),y.push(this._getDataView(L,I+S.normal_y,s.type[ee],s.size[ee])),y.push(this._getDataView(L,I+S.normal_z,s.type[C],s.size[C]))}if(S.intensity!==void 0){const A=s.fields.indexOf("intensity");v.push(this._getDataView(L,I+S.intensity,s.type[A],s.size[A]))}S.label!==void 0&&m.push(L.getInt32(I+S.label,this.littleEndian))}}const w=new $a.BufferGeometry;c.length>0&&w.setAttribute("position",new $a.Float32BufferAttribute(c,3)),y.length>0&&w.setAttribute("normal",new $a.Float32BufferAttribute(y,3)),p.length>0&&w.setAttribute("color",new $a.Float32BufferAttribute(p,3)),v.length>0&&w.setAttribute("intensity",new $a.Float32BufferAttribute(v,1)),m.length>0&&w.setAttribute("label",new $a.Int32BufferAttribute(m,1)),w.computeBoundingSphere();const D=new $a.PointsMaterial({size:.005});return p.length>0&&(D.vertexColors=!0),new $a.Points(w,D)}}const nf=ol.useModelComp(ol.pinia),{systemPath:ss}=ol.storeToRefs(nf),vi=a.ref(),cs=new WeakMap;function of(l,n,r,o,s){const c=async D=>{try{const L=await Y.platformDownloadFile({url:D});if(L.status!==200)throw new Error(`下载失败: ${L.status}`);return L.data}catch(L){throw console.error("addModelFromUrl失败:",L),L}},y=D=>new Promise((L,S)=>{const W=new FileReader;W.onload=I=>{try{const A=I.target.result,C=new Ln.MTLLoader().parse(A);C.preload(),L(C)}catch(A){S(A)}},W.onerror=()=>{S(new Error("MTL文件读取失败"))},W.readAsText(D)}),p=async D=>{const L={materials:{},create:function(S){return this.materials[S]?this.materials[S]:(console.warn(`Material '${S}' not found, using default material`),new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))},getAsArray:function(){const S=[];for(const W in this.materials)S.push(this.materials[W]);return S},preload:function(){for(const S in this.materials)this.materials[S].map&&(this.materials[S].map.needsUpdate=!0)}};for(const S of D){const W=await y(S);Object.assign(L.materials,W.materials)}return L.preload(),L},v=async(D,L=[])=>new Promise((S,W)=>{const I=new FileReader;I.onload=async A=>{try{const ee=A.target.result;let C=null;L&&L.length>0&&(L.length===1?C=await y(L[0]):C=await p(L));const _=new Ln.OBJLoader;C&&_.setMaterials(C);const E=_.parse(ee);C||E.traverse(k=>{k.isMesh&&(k.material=new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))}),S(E)}catch(ee){W(ee)}},I.onerror=()=>{W(new Error("OBJ文件读取失败"))},I.readAsText(D)}),m=async D=>{var L;try{r.value=!0;const{scene:S}=l();if(!S)throw new Error("Scene not initialized");s();const W=[];for(let I=0;I<D.length;I++){const A=D[I];o.value=`正在加载模型 ${I+1}/${D.length}...`;const ee=await c(A.objUrl),C=((L=A.objUrl)==null?void 0:L.split("/").pop())||`model_${I}.obj`,_=new File([ee],C,{type:ee.type});let E=[];if(A.mtlUrls){const g=Array.isArray(A.mtlUrls)?A.mtlUrls:[A.mtlUrls];for(let O=0;O<g.length;O++){const F=g[O],q=await c(F),te=(F==null?void 0:F.split("/").pop())||`material_${I}_${O}.mtl`,Te=new File([q],te,{type:q.type});E.push(Te)}}const k=await v(_,E);S.add(k),n.value.push(k),W.push(k)}return r.value=!1,W}catch(S){throw console.error("加载模型失败:",S),r.value=!1,S}},u=async(D,L,S=[],W=[])=>{let I;const A=D.toLowerCase();switch(A){case".txt":case".cpt":case".obj":const ee=await L.text();if(A===".txt"||A===".cpt"){const re=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ve=[...ee.matchAll(re)].map(Ie=>({x:parseFloat(Ie[1]),y:parseFloat(Ie[2]),z:parseFloat(Ie[3])})),ba=new $a.BufferGeometry,Fe=Ve.flatMap(Ie=>[Ie.x,Ie.y,Ie.z]);if(ba.setAttribute("position",new $a.Float32BufferAttribute(Fe,3)),A===".txt"){const Ie=new $a.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});I=new $a.Points(ba,Ie)}else if(A===".cpt"){const Ie=new $a.LineBasicMaterial({color:"#5B5C99",linewidth:100});I=new $a.Line(ba,Ie)}}else if(A===".obj"){const re=new Ln.OBJLoader;if(S&&S.length>0){const la=new Ln.MTLLoader;for(const Ve of S){const ba=await Ve.text(),Fe=la.parse(ba);Fe.preload(),re.setMaterials(Fe);break}}I=re.parse(ee),(!S||S.length===0)&&I.traverse(la=>{la.isMesh&&(la.material=new $a.MeshPhongMaterial({color:"#B3B3D4"})),la instanceof $a.Mesh&&(la.material.side=$a.DoubleSide)})}break;case".stl":const C=await L.arrayBuffer(),E=new Ln.STLLoader().parse(C),k=new $a.MeshPhongMaterial({color:"#B3B3D4",side:$a.DoubleSide});I=new $a.Mesh(E,k);break;case".nc":const g=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],O={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},F=new $a.Group,q=g.map(re=>new Promise((la,Ve)=>{new Ln.STLLoader().load(ss.value===""?`/model/${re}`:`${ss.value}\\${re}`,Fe=>{const Ie=new $a.MeshPhongMaterial({color:O[re]||"#B3B3D4",side:$a.DoubleSide}),$e=new $a.Mesh(Fe,Ie);la($e)},void 0,Ve)}));try{(await Promise.all(q)).forEach(la=>F.add(la)),I=F}catch(re){throw console.error("加载NC文件对应的STL文件失败:",re),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const te=new rf,Te=new $a.Group;try{const re=await al.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),la=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await al.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ba=new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"}),Fe=await new Promise(($e,Qe)=>{const Xa=URL.createObjectURL(la);te.load(Xa,Wa=>{const V=new Float32Array(Wa.geometry.attributes.position.count*3);for(let $=0;$<Wa.geometry.attributes.position.count;$++)V[$*3]=1,V[$*3+1]=0,V[$*3+2]=0;Wa.geometry.setAttribute("color",new $a.BufferAttribute(V,3)),Wa.material.vertexColors=!0,Wa.scale.set(.3,.3,.3),URL.revokeObjectURL(Xa),$e(Wa)},void 0,Qe)}),Ie=await new Promise(($e,Qe)=>{const Xa=URL.createObjectURL(ba);te.load(Xa,Wa=>{const V=new Float32Array(Wa.geometry.attributes.position.count*3);for(let $=0;$<Wa.geometry.attributes.position.count;$++)V[$*3]=0,V[$*3+1]=1,V[$*3+2]=0;Wa.geometry.setAttribute("color",new $a.BufferAttribute(V,3)),Wa.material.vertexColors=!0,Wa.scale.set(.3,.3,.3),URL.revokeObjectURL(Xa),$e(Wa)},void 0,Qe)});Te.add(Fe),Te.add(Ie),I=Te}catch(re){throw console.error("PCD文件加载失败:",re),new Error("无法加载PCD文件")}break;case".urdf":const Ee=URL.createObjectURL(L),Q=new Du.URDFLoader,be="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",Z={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},de=new WeakMap,je=new WeakMap,wa=new WeakMap,ie=async re=>{if(de.has(re))return console.log(`从缓存加载: ${re}`),de.get(re);try{const la=await al.axios.get(`${be}/${re}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ve=new Blob([la.data],{type:"application/octet-stream;charset=UTF-8"});return Z.enableCache&&de.set(re,Ve),Ve}catch(la){throw console.error(`加载文件失败: ${re}`,la),new Error(`无法加载文件: ${re}`)}},P=(re="default")=>{if(je.has(re))return je.get(re);const la=new $a.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:$a.FrontSide});return je.set(re,la),la},j=re=>{try{re.isBufferGeometry&&re.mergeVertices&&re.mergeVertices(),re.computeVertexNormals&&re.computeVertexNormals(),re.computeBoundingSphere&&re.computeBoundingSphere(),re.deleteAttribute&&re.deleteAttribute("uv2")}catch(la){console.warn("几何体优化失败,使用原始几何体:",la)}return re},ye=async(re,la,Ve)=>{const ba=`stl_${la}`;if(wa.has(ba)){const Qe=wa.get(ba);return new $a.Mesh(Qe,P())}const Fe=await re.arrayBuffer();let $e=new Ln.STLLoader(Ve).parse(Fe);return $e=j($e),wa.set(ba,$e),new $a.Mesh($e,P())},Se=async(re,la,Ve)=>{const ba=`obj_${la}`;if(de.has(ba))return de.get(ba).clone();const Fe=await re.text(),Ie=new Ln.OBJLoader(Ve),$e=la.replace(".obj",".mtl");try{const Wa=await(await ie($e)).text(),$=new Ln.MTLLoader(Ve).parse(Wa);$.preload(),Ie.setMaterials($)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${$e}`)}const Qe=Ie.parse(Fe);return Qe.traverse(Xa=>{Xa.isMesh&&(Xa.geometry=j(Xa.geometry),Xa.castShadow=!0,Xa.receiveShadow=!0,Xa.renderOrder=1)}),de.set(ba,Qe),Qe},ke=(re,la)=>{const Ve=new $a.LOD;if(Ve.addLevel(re,0),re.geometry){const ba=re.geometry.clone(),Fe=new $a.Mesh(ba,re.material);Ve.addLevel(Fe,50)}return Ve};let Ze=0,ya=0;const Ha=[];Q.loadMeshCb=async(re,la,Ve,ba,Fe)=>{const Ie=re.split("/").pop(),$e=Ve||(()=>{});Ze++;const Qe=new Promise(async(Xa,Wa)=>{try{const V=await ie(Ie);if(!V||V.size===0)throw new Error(`文件为空: ${Ie}`);const $=Ie.split(".").pop().toLowerCase();let X;switch($){case"stl":X=await ye(V,Ie,la);break;case"obj":X=await Se(V,Ie,la);break;default:throw new Error(`不支持的文件格式: ${$}`)}Z.enableLOD&&X.isMesh&&(X=ke(X,Ie)),$e(X),ya++,ba&&ba({loaded:ya,total:Ze,progress:ya/Ze}),Xa(X)}catch(V){console.error(`mesh文件加载失败: ${Ie}`,V);const $=new $a.Group;$e($),Xa($);const X=new $a.BoxGeometry(.1,.1,.1),se=new $a.MeshStandardMaterial({color:16711680,wireframe:!0});return new $a.Mesh(X,se)}});Ha.push(Qe)};try{if(!Ee){vi.value=void 0;break}if(I=await Q.loadAsync(Ee),console.log(`URDF文件加载完成,等待${Ze}个mesh文件加载...`),Ha.length>0)try{await Promise.allSettled(Ha),console.log(`所有mesh文件处理完成,成功加载: ${ya}/${Ze}`)}catch(Ve){console.warn("部分mesh文件加载失败,但继续显示模型",Ve)}I.traverse(Ve=>{Ve.isMesh&&(Ve.castShadow=!0,Ve.receiveShadow=!0,Ve.renderOrder=1,Ve.material&&(Ve.material.needsUpdate=!0))}),console.time("计算包围盒");const re=new $a.Box3;re.expandByObject(I);const la=`urdf_${Date.now()}`;I.userData.boundingBox=re.clone(),I.userData.modelId=la,cs.set(la,{box:re.clone(),center:re.getCenter(new $a.Vector3),size:re.getSize(new $a.Vector3),maxSize:Math.max(...re.getSize(new $a.Vector3).toArray())}),vi.value=I,console.log("URDF模型加载完成并优化")}catch(re){console.error("URDF加载失败:",re),vi.value=void 0}finally{Ee&&URL.revokeObjectURL(Ee)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return I};return{addModelsFromUrls:m,loadModelByDefaultPath:async D=>{console.log(D);try{r.value=!0,o.value="正在加载模型...";const{scene:L}=l();if(!L)throw new Error("Scene not initialized");s(),await new Promise(W=>setTimeout(W,100));const S=[];for(let W=0;W<D.length;W++){const I=D[W],A=await u(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);A&&(L.add(A),n.value.push(A),S.push(A))}return r.value=!1,o.value="",S}catch(L){throw console.error("加载模型失败:",L),r.value=!1,o.value="",L}},urdfModel:vi,modelBoundingBoxes:cs}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var n=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var o,s,c,y,p,v=function(w,D){D.parentNode.insertBefore(w,D)};if(n&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(w){console&&console.log(w)}}o=function(){var w,D=document.createElement("div");D.innerHTML=l._iconfont_svg_string_4827314,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(w=document.body).firstChild?v(D,w.firstChild):w.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),o()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(c=o,y=l.document,p=!1,u(),y.onreadystatechange=function(){y.readyState=="complete"&&(y.onreadystatechange=null,m())})}function m(){p||(p=!0,c())}function u(){try{y.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}m()}})(window);const tf=["onClick"],sf=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(null),y=E=>{if(Array.isArray(E)&&E.length>=3){const[k,g,O,F]=E;return F!==void 0?`rgba(${k}, ${g}, ${O}, ${F})`:`rgb(${k}, ${g}, ${O})`}if(typeof E=="string"){const k=E.trim();if(k.startsWith("[")&&k.endsWith("]")){const g=k.slice(1,-1).split(",").map(O=>Number(O.trim()));if(g.length>=3&&g.every(O=>!Number.isNaN(O))){const[O,F,q,te]=g;return te!==void 0?`rgba(${O}, ${F}, ${q}, ${te})`:`rgb(${O}, ${F}, ${q})`}}return k}},p=a.computed(()=>{const E=Number(r==null?void 0:r.textSize),k=y(r==null?void 0:r.textColor),g={},O={};return!Number.isNaN(E)&&E&&(g.fontSize=`${E}px`,O.fontSize=`${E}px`),k&&(g.color=k,O.color=k),{label:g,value:O}}),v=a.ref(""),m=a.ref(""),u=a.ref(!1),w=async E=>{if(E){m.value&&(URL.revokeObjectURL(m.value),m.value="");try{const k=await Y.platformDownloadFile({url:E}),g=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});m.value=URL.createObjectURL(g)}catch{m.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,E=>{E&&(v.value=E)},{immediate:!0}),a.watch(v,E=>{w(E)},{immediate:!0});const D=()=>{var E;(E=c.value)==null||E.click()},L=async E=>{var O,F,q;const k=E.target,g=(O=k==null?void 0:k.files)==null?void 0:O[0];if(!g){k.value="";return}u.value=!0;try{const te=new FormData;te.append("file",g);const Te=await Y.platformUploadFile(te),Ee=(q=(F=Te==null?void 0:Te.data)==null?void 0:F.result)==null?void 0:q.url;Ee?(v.value=Ee,o("update:backGroundImage",Ee),w(Ee),al.ElMessage.success("背景图片上传成功")):al.ElMessage.error("背景图片上传失败")}catch{al.ElMessage.error("背景图片上传失败")}finally{u.value=!1,k.value=""}},S=a.computed(()=>m.value?{backgroundImage:`url(${m.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),W=E=>pl.getComponent(E),I=E=>{if(!E)return;const k=E.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},A=(E,k,g)=>{r.disabled||E.field&&(s.value=k,a.nextTick(()=>{I(g.currentTarget)}))},ee=()=>{s.value=null},C=E=>{var g;const k=((g=E==null?void 0:E.field)==null?void 0:g.value)??(E==null?void 0:E.value);return k==null||k===""?"-":k},_=E=>{const k=E!=null&&E.width&&E.width>0?E.width:1,O=`calc((100% - ${(k-1)*16}px) / ${k})`;return{flex:`0 0 ${O}`,maxWidth:O,minWidth:"140px",boxSizing:"border-box"}};return(E,k)=>(a.openBlock(),a.createElementBlock("div",{class:"statistics-cards-container",style:a.normalizeStyle(S.value),onClick:k[2]||(k[2]=g=>(r==null?void 0:r.backGround)==="Yes"&&D())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=a.withModifiers(g=>D(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:L},null,544),k[3]||(k[3]=a.createElementVNode("img",{src:pl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.items,(g,O)=>{var F,q,te,Te,Ee,Q,be,Z;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:O,style:a.normalizeStyle(_(g)),onClick:k[1]||(k[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(p.value.label)},a.toDisplayString(g==null?void 0:g.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(p.value.value),onClick:de=>A(g,O,de)},[s.value===O&&g.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(W(((F=g.field)==null?void 0:F.type)??"Input")),{key:0,modelValue:g.field.value,"onUpdate:modelValue":de=>g.field.value=de,isEdit:!0,disabled:(q=g.field)==null?void 0:q.disabled,content:((te=g.field)==null?void 0:te.contents)??[],optionUrl:g.field,originalValue:(Te=g.field)==null?void 0:Te.value,config:(Ee=g.field)==null?void 0:Ee.config,configModel:((Q=g.field)==null?void 0:Q.prop)??((be=g.field)==null?void 0:be.name),selectedTagList:((Z=g.field)==null?void 0:Z.selectValue)??[],onBlur:ee,onBlurChange:ee},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C(g)),1)],64))],12,tf)],4)}),128))],4))}}),cf=Xl._export_sfc(sf,[["__scopeId","data-v-423d9eb1"]]),lc=ol.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),uf={class:"calculator-content"},df={class:"calculator-child"},pf={class:"calculator-child"},ff=a.defineComponent({__name:"calculator",setup(l){const n=a.ref(),r=a.ref();return a.onMounted(()=>{n.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(o,s)=>(a.openBlock(),a.createElementBlock("div",uf,[a.createElementVNode("div",df,[a.createVNode(pl.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",pf,[a.createVNode(pl.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),hf=Xl._export_sfc(ff,[["__scopeId","data-v-73db0fe7"]]),mt=(l,n)=>{let r=l,o=n;return Array.isArray(r)&&(r=r==null?void 0:r.map((s,c)=>{if(Array.isArray(s)){let y={};return s=s==null?void 0:s.forEach((p,v)=>{var m;(m=o==null?void 0:o[v])!=null&&m.prop?y[o[v].prop]=p:Array.isArray(p)&&(y.children=mt(p,o))}),Object.assign(y,{id:c})}else return s})),r},rc=(l,n,r)=>{let o=l,s=n;return o=o==null?void 0:o.map((c,y)=>{var p,v;return!Array.isArray(c)||!((p=s==null?void 0:s[y])!=null&&p.label)&&!r||(c.unshift(((v=s==null?void 0:s[y])==null?void 0:v.label)??""),c.some(m=>Array.isArray(m))&&(c=c==null?void 0:c.map(m=>{var u;return Array.isArray(m)&&(m=rc(m,(u=s==null?void 0:s[y])==null?void 0:u.children,r)),m}))),c}),o},vf=(l,n,r)=>{if(n==="")return l==null?void 0:l.filter(o=>(o==null?void 0:o.id)!==r);{const o=n.split("-");return mf(l,o,r)}},mf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=o==null?void 0:o.filter(c=>c.id!==r):o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=nc(c,s,r)),c)),o},nc=(l,n,r)=>{var c,y;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=(c=o.children)==null?void 0:c.filter(p=>p.id!==r):o.children=(y=o.children)==null?void 0:y.map(p=>(p.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),p=nc(p,s,r)),p)),o},yf=(l,n,r)=>{if(n==="")return r;{const o=n.split("-");return gf(l,o,r)}},gf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=r:o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=oc(c,s,r)),c)),o},oc=(l,n,r)=>{var c;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=r:o.children=(c=o.children)==null?void 0:c.map(y=>(y.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),y=oc(y,s,r)),y)),o};class bf{constructor(n={}){Wr(this,"url");Wr(this,"heartbeatInterval");Wr(this,"socket",null);Wr(this,"isConnected",!1);Wr(this,"heartTimer",null);Wr(this,"canvas",null);Wr(this,"ctx",null);Wr(this,"mainCamCutMode",0);Wr(this,"pMainShowStartX",0);Wr(this,"pMainShowStartY",0);Wr(this,"onLog");Wr(this,"onDevCount");Wr(this,"onResolution");Wr(this,"onCameraStatus");Wr(this,"onPhoto");this.url=n.url??"ws://127.0.0.1:22225",this.heartbeatInterval=n.heartbeatInterval??3e3}init(n,r,o){var y;(y=this.canvas)!=null&&y.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=r,s.height=o;const c=s.getContext("2d");if(!c)throw new Error("无法获取 CanvasRenderingContext2D");n.appendChild(s),this.canvas=s,this.ctx=c}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((n,r)=>{const o=new WebSocket(this.url);o.binaryType="arraybuffer",o.onopen=()=>{this.socket=o,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),n()},o.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),r(s)},o.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},o.onmessage=s=>{this.handleMessage(s)}})}destroy(){var n;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(n=this.canvas)!=null&&n.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(n=0){this.sendBytes(new Uint8Array([119,136,81,n]))}chooseResolution(n){if(!Array.isArray(n)||n.length===0)return null;const r=n.find(s=>s.width===2592&&s.height===1944);return r||[...n].sort((s,c)=>c.width*c.height-s.width*s.height)[0]||null}openCamera(n=0,r=1280,o=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=n,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=r>>8&255,s[9]=r&255,s[10]=o>>8&255,s[11]=o&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(n){var r;(r=this.onLog)==null||r.call(this,n)}sendBytes(n){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(n.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(n){var s,c,y,p,v,m;const r=new Uint8Array(n.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const o=r[2];if(o===80){const u=r[3],w=r.length-4,D=new Uint8Array(w);for(let W=0;W<w;W++)D[W]=r[4+W];const S=decodeURIComponent(this.byteToString(D)).split("|");(s=this.onDevCount)==null||s.call(this,u,S);return}if(o===81){const u=r[3]||0,w=[];for(let D=0;D<u;D++){const L=(r[4+D*4+0]||0)*256+(r[4+D*4+1]||0),S=(r[4+D*4+2]||0)*256+(r[4+D*4+3]||0);w.push({width:L,height:S,text:`${L}*${S}`})}(c=this.onResolution)==null||c.call(this,u,w);return}if(o===1){r[3]===1&&((y=this.onCameraStatus)==null||y.call(this,"opened")),r[3]===3&&((p=this.onCameraStatus)==null||p.call(this,"closed"));return}if(o===16){if(r[3]===1){const w=r[4]*256+r[5],D=r[6]*65536+r[7]*256+r[8];let L="";if(w>0){const I=new Uint8Array(w);for(let A=0;A<w;A++)I[A]=r[9+A];L=decodeURIComponent(this.byteToString(I))}const S=new Uint8Array(D);for(let I=0;I<D;I++)S[I]=r[9+w+I];const W=this.uint8ArrayToString(S);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:L,base64:W})}r[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(o===204){if(!this.canvas||!this.ctx)return;const u=r[3]*256+r[4],w=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const D=this.ctx.createImageData(u,w);let L=11;for(let S=0;S<D.data.length;S+=4)D.data[S+0]=r[L],D.data[S+1]=r[L+1],D.data[S+2]=r[L+2],D.data[S+3]=255,L+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}byteToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}}const kf={style:{display:"flex",gap:"16px",height:"100%"}},xf={key:0,style:{color:"var(--el-text-color-secondary)"}},wf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},_f={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Cf={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"auto",padding:"8px"}},Ef={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Sf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Df=["src","onClick"],Bf=["onClick"],Nf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Tf={class:"dialog-footer"},Af=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(!1),y=a.ref([]),p=a.ref(""),v=a.ref(!1),m=a.ref([]),u=new bf({url:"ws://127.0.0.1:22225"});function w(F,q){var Z;const te=F.split(","),Te=((Z=te[0].match(/:(.*?);/))==null?void 0:Z[1])??"image/jpeg",Ee=atob(te[1]);let Q=Ee.length;const be=new Uint8Array(Q);for(;Q--;)be[Q]=Ee.charCodeAt(Q);return new File([be],q,{type:Te})}function D(){u.onLog=F=>{console.log("[GPY]",F)},u.onDevCount=(F,q)=>{if(p.value+=`设备数量=${F},设备=${q.join(",")}
4
- `,F>0){p.value+=`检测到设备,正在获取分辨率...
5
- `;try{u.getResolution(0)}catch(te){p.value+=`获取分辨率失败:${(te==null?void 0:te.message)??te}
6
- `}}else p.value+=`未检测到高拍仪设备!
7
- `},u.onResolution=(F,q)=>{if(F<=0||!Array.isArray(q)||q.length===0){p.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
- `;try{u.openCamera(0,1280,720)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
9
- `}return}const te=u.chooseResolution(q);if(!te){p.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
- `;try{u.openCamera(0,1280,720)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
11
- `}return}p.value+=`获取分辨率 ${te.text}成功,打开摄像头...
12
- `;try{u.closeCamera(),setTimeout(()=>{try{u.openCamera(0,te.width,te.height)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
13
- `}},100)}catch{try{u.openCamera(0,te.width,te.height)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
14
- `}}},u.onCameraStatus=F=>{F==="opened"?(c.value=!0,p.value+=`摄像头已打开
15
- `):(c.value=!1,p.value+=`摄像头已关闭
16
- `)},u.onPhoto=F=>{if(F.flag===0&&F.base64){const q=`data:image/jpeg;base64,${F.base64}`,te=w(q,`gpy-capture-${Date.now()}.jpg`);y.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:q,file:te}),p.value+=`拍照完成,已接收图片(当前 ${y.value.length} 张)
17
- `}else p.value+=`拍照失败 flag=${F.flag}
18
- `}}const L=async()=>{if(await a.nextTick(),!s.value)return;S(),D();const F=s.value.getBoundingClientRect();u.init(s.value,Math.floor(F.width),Math.floor(F.height)),p.value+=`正在连接设备服务...
19
- `,await u.connect(),p.value+=`正在获取设备数量...
20
- `,u.getDevCount()},S=()=>{try{u.destroy()}catch(F){console.error(F)}c.value=!1,y.value=[],p.value="",v.value=!1,m.value=[]};a.watch(()=>r.visible,F=>{F?L():S()});const W=()=>{try{u.bestSize()}catch(F){console.error(F)}},I=()=>{try{u.rotateLeft()}catch(F){console.error(F)}},A=()=>{try{u.rotateRight()}catch(F){console.error(F)}},ee=()=>{try{u.focus()}catch(F){console.error(F)}},C=()=>{p.value+=`正在拍照...
21
- `;try{u.photo()}catch(F){p.value+=`拍照调用失败:${(F==null?void 0:F.message)??F}
22
- `}},_=()=>{y.value.length>0?o("confirm",y.value.map(F=>F.file)):o("confirm",[])},E=F=>{F<0||F>=y.value.length||(y.value.splice(F,1),p.value+=`已删除一张图片(剩余 ${y.value.length} 张)
23
- `)},k=F=>{if(!F)return;const q=`gpy-preview-${Date.now()}.jpg`;m.value=[{name:q,blobUrl:F}],v.value=!0},g=()=>{v.value=!1},O=()=>{S(),o("cancel")};return(F,q)=>{const te=a.resolveComponent("el-input"),Te=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(wr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:O,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",kf,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[c.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",xf,"初始化摄像头..."))],512),a.createElementVNode("div",wf,[a.createElementVNode("div",_f,[q[0]||(q[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",Cf,[y.value.length===0?(a.openBlock(),a.createElementBlock("div",Ef,"暂无图片")):(a.openBlock(),a.createElementBlock("div",Sf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ee,Q)=>(a.openBlock(),a.createElementBlock("div",{key:Ee.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:Ee.url,onClick:be=>k(Ee.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,Df),a.createElementVNode("div",{onClick:be=>E(Q),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,Bf)]))),128))]))],512)]),a.createElementVNode("div",Nf,[q[1]||(q[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(te,{type:"textarea",value:p.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Tf,[a.createVNode(Te,{onClick:W,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>q[2]||(q[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{onClick:I,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>q[3]||(q[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Te,{onClick:A,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>q[4]||(q[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Te,{onClick:ee,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>q[5]||(q[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Te,{onClick:C,disabled:!c.value,id:"themeButton"},{default:a.withCtx(()=>q[6]||(q[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),q[9]||(q[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Te,{onClick:_,disabled:y.value.length===0,id:"themeButton"},{default:a.withCtx(()=>q[7]||(q[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Te,{onClick:O,id:"themeBorderButton"},{default:a.withCtx(()=>q[8]||(q[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),zf=Xl._export_sfc(Af,[["__scopeId","data-v-24a2050a"]]);function ic(l){return al.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function Mf(l){return al.axios.get(l,{responseType:"blob"})}const us=Y.useMenuState(ol.pinia),If=async l=>{var c,y,p,v,m,u;let n=l==null?void 0:l.导入文件,r=l==null?void 0:l.函数参数,o=(c=n==null?void 0:n[0])==null?void 0:c.url,s="";if(!(o!=null&&o.includes("http"))||!(o!=null&&o.includes("https"))){us.setContentLoading(!0);const w=await Y.platformDownloadFile({url:o});let D=w==null?void 0:w.data;const L=new FormData;L.append("file",D,((y=n==null?void 0:n[0])==null?void 0:y.name)+"."+((p=o==null?void 0:o.split("."))==null?void 0:p[1])),L.append("query",r);let S=await ic(L);S=(u=(m=(v=S==null?void 0:S.data)==null?void 0:v.data)==null?void 0:m.response)==null?void 0:u.replace("generateResult",l==null?void 0:l.函数名称),s=S,us.setContentLoading(!1)}return s},St=ol.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Of=Y.useLoginState(ol.pinia),{extraUrl:io}=ol.storeToRefs(Of);let tc=io.value===""||!io.value?"http://139.196.154.85:20015":io.value;a.watch(()=>io.value,()=>{tc=io.value===""||!io.value?"http://139.196.154.85:20015":io.value},{deep:!0,immediate:!0});const Bi={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},ds={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:tc+"/api/public/paddleOCR"};class Lf{constructor(n){Wr(this,"config");this.config={...ds,...n}}updateConfig(n){this.config={...this.config,...n}}getConfig(){return{...this.config}}validateFileSize(n){const r=this.config.maxSize*1024*1024;return n.size<=r}validateFileType(n){return n.type.startsWith("image/")||n.type==="application/pdf"}getAuthorizationToken(){const n=al.Local.get(al.accessTokenKey);return n?`Bearer ${n}`:""}buildOCRRequest(n,r){return{title:r,form:{OCR图片文件:n}}}async recognize(n,r){const o=this.getAuthorizationToken(),s=this.buildOCRRequest(n,r),c=this.config.apiUrl||ds.apiUrl||"";return(await al.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:o}})).data}getFieldAliases(n){return Bi[n]?Bi[n]:[n]}extractTableHeaders(n){const r=[],o=new Set,s=y=>{const p=y==null?void 0:y.label;return!(!p||p==="操作"||p===this.config.columnName||(y==null?void 0:y.type)==="operate"||(y==null?void 0:y.prop)==="operate")},c=y=>{(y||[]).forEach(p=>{if(!p)return;const v=(p==null?void 0:p.children)||(p==null?void 0:p.child)||(p==null?void 0:p.columns);if(Array.isArray(v)&&v.length>0){c(v);return}if(s(p)){const m=p.label;if(!o.has(m)){o.add(m);const u=this.getFieldAliases(m);r.push(u)}}})};return c(n||[]),r}}function sc(l){return new Lf(l)}sc();const yt=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k;let r=(p=(y=Y.cloneDeep(l))==null?void 0:y.optionUrl)==null?void 0:p.menuSelect,o=[];r==null||r.forEach(g=>{});let s="",c=await oa.menuToParent(r);if(c==null||c.forEach(g=>{var O,F,q,te;(g==null?void 0:g.name)===(((te=(q=(F=(O=Y.cloneDeep(l))==null?void 0:O.optionUrl)==null?void 0:F.groupSelect)==null?void 0:q[0])==null?void 0:te.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),n){s=n;const g=await Dr.getInsofDataApi({id:s}),O=(w=(u=(m=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:m[0])==null?void 0:u.key)==null?void 0:w.pageKey;c=await oa.getItemData(O,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;n?g=(D=c==null?void 0:c.find(q=>(q==null?void 0:q.id)===n))==null?void 0:D.compData:g=(L=c==null?void 0:c.find(q=>{var te,Te,Ee,Q;return(q==null?void 0:q.name)===(((Te=(te=l==null?void 0:l.groupSelect)==null?void 0:te.split(":"))==null?void 0:Te[0])||((Q=(Ee=l==null?void 0:l.optionUrl)==null?void 0:Ee.groupSelect)==null?void 0:Q[0]))}))==null?void 0:L.compData;let O=(W=(S=g==null?void 0:g.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:S.contents)==null?void 0:W.map(q=>q==null?void 0:q.label);(A=(I=g==null?void 0:g.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:I.contents)!=null&&A.every(q=>Array.isArray(q))&&(O=(_=oa.getColumnChild((C=(ee=g==null?void 0:g.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:ee.contents)==null?void 0:C[0]))==null?void 0:_.map(q=>q==null?void 0:q.prop));let F=(k=(E=g==null?void 0:g.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:E.contents)==null?void 0:k.map(q=>{if(Array.isArray(q))q=q==null?void 0:q.filter(te=>!(te!=null&&te.id));else{let te={};for(let Te in q)Te!=="id"&&(te[Te]=q==null?void 0:q[Te]);q=te}return q});F==null||F.forEach(q=>{Array.isArray(q)?o.push(oa.getValueToObjectValue(q,O)):o.push(q)})}return o},Rf=Y.useMenuState(ol.pinia),{activeMenuPath:j6}=ol.storeToRefs(Rf),$f=Y.useUnit(ol.pinia),{chooseTitle:H6}=ol.storeToRefs($f),Vf="col-operate",cc=l=>`${Vf}-${l}`,Pf=(l,n)=>{const r=new Map;l.forEach(s=>{const{prop:c}=s;r.set(c,s)});const o=s=>{Array.isArray(s)&&s.forEach(c=>{const{prop:y}=c||{},p=r.get(y);Ff(p,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&o(c.children)})};return o(n),n},Ff=(l,n)=>(l&&(n.sortable=l==null?void 0:l.sortable,n.filterable=l==null?void 0:l.filterable,n.showSummary=l==null?void 0:l.showSummary,n.operable=l==null?void 0:l.operable,n.fixed=l==null?void 0:l.fixed),n),jf=(l,n)=>{const{sortable:r=!1,filterable:o=!1,showSummary:s=!1,operable:c=!1,fixed:y=!1}=n||{};return{prop:l,sortable:r,filterable:o,showSummary:s,operable:c,fixed:y}},Hf=async l=>{var c,y;if(!l)return;const n=cc(l),r=await Dr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),o=(c=r==null?void 0:r.data)==null?void 0:c.code,s=(y=r==null?void 0:r.data)==null?void 0:y.result;if(o==200)return s==null?void 0:s[0]},Uf=async l=>{if(l)return[]},qf=async(l,n)=>{if(!l||!n)return;const r=cc(l);return await Dr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:n}})},Wf=async(l,n)=>!l||!n?void 0:await Dr.updateInsofDataApi({id:l,value:{columns:n}}),ps=async(l,n)=>{const r=sessionStorage.getItem("systemKey");if(!l||!n||!r)return;const o=await Hf(l);return o?await Wf(o==null?void 0:o.id,n):await qf(l,n)};var xi={exports:{}},Kf=xi.exports,fs;function Gf(){return fs||(fs=1,function(l,n){(function(r,o){o()})(Kf,function(){function r(m,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function o(m,u,w){var D=new XMLHttpRequest;D.open("GET",m),D.responseType="blob",D.onload=function(){v(D.response,u,w)},D.onerror=function(){console.error("could not download file")},D.send()}function s(m){var u=new XMLHttpRequest;u.open("HEAD",m,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function c(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(u)}}var y=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Vn.commonjsGlobal=="object"&&Vn.commonjsGlobal.global===Vn.commonjsGlobal?Vn.commonjsGlobal:void 0,p=y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=y.saveAs||(typeof window!="object"||window!==y?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(m,u,w){var D=y.URL||y.webkitURL,L=document.createElement("a");u=u||m.name||"download",L.download=u,L.rel="noopener",typeof m=="string"?(L.href=m,L.origin===location.origin?c(L):s(L.href)?o(m,u,w):c(L,L.target="_blank")):(L.href=D.createObjectURL(m),setTimeout(function(){D.revokeObjectURL(L.href)},4e4),setTimeout(function(){c(L)},0))}:"msSaveOrOpenBlob"in navigator?function(m,u,w){if(u=u||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(r(m,w),u);else if(s(m))o(m,u,w);else{var D=document.createElement("a");D.href=m,D.target="_blank",setTimeout(function(){c(D)})}}:function(m,u,w,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof m=="string")return o(m,u,w);var L=m.type==="application/octet-stream",S=/constructor/i.test(y.HTMLElement)||y.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent);if((W||L&&S||p)&&typeof FileReader<"u"){var I=new FileReader;I.onloadend=function(){var C=I.result;C=W?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=C:location=C,D=null},I.readAsDataURL(m)}else{var A=y.URL||y.webkitURL,ee=A.createObjectURL(m);D?D.location=ee:location.href=ee,D=null,setTimeout(function(){A.revokeObjectURL(ee)},4e4)}});y.saveAs=v.saveAs=v,l.exports=v})}(xi)),xi.exports}Gf();const Xn=ol.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),Yf=Y.useLoginState(ol.pinia),{loginUserInfo:st}=ol.storeToRefs(Yf),Jf=async l=>{var o,s,c;let n=await Y.getAllTables({platId:parseInt((o=st==null?void 0:st.value)==null?void 0:o.plat_id),tableNames:[l]});return n=(c=(s=n==null?void 0:n.data)==null?void 0:s.result)==null?void 0:c[0],await ac(n,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:n}]}]},Xf=Y.useLoginState(),{loginUserInfo:bl}=ol.storeToRefs(Xf);let mi="$R";const Er=ol.useModelComp(ol.pinia),uc=a.ref(!1),{itemData:Zf,itemGridData:no,curStructureCompIds:hs,isSubmitCurStructure:Qf,routeToChildPath:e0,pageMapState:gt,itemExtendData:yi,refreshTable:vs}=ol.storeToRefs(Er),Li=Xn(ol.pinia),Ar=Y.useMenuState(ol.pinia),nr=a.shallowRef([]),{asideMenus:a0,activeTopMenuPath:l0,activeMenuPath:wl,platform:U6,buttonTriggerType:r0,currentMenuPath:Qr}=ol.storeToRefs(Ar),pn=Y.useUnit(ol.pinia),{selectTitle:Gn,chooseTitle:Ni}=ol.storeToRefs(pn);a.ref();const To=a.ref(!0),Jn=a.ref(0),bt=a.ref([]);a.ref(!1);const Dt=a.ref(!1),qo=a.ref(),dc=a.ref(),pc=a.ref(),n0=()=>{Er.setItemGridData([]),Er.setIsEdit("edit"),Er.setSubmitCurStructure(wl.value!=="/平台管理/菜单管理")},o0=()=>{Er.setIsEdit("view"),Er.setRefreshCurStructure(!0)},i0=async l=>{var s;let n=Gn.value,r=n==null?void 0:n.findIndex(c=>(c==null?void 0:c.value)===(l==null?void 0:l.value)),o=n==null?void 0:n.filter((c,y)=>y<=r);pn.setSelectTitle(pl.safeClone(o)),o=(s=o==null?void 0:o.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Ar.setActiveMenuPath(null),Ar.setActiveMenuPath(o)},ct=async(l,n,r,o="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let c,y;n==="create"?(c={dataList:l==null?void 0:l.map(v=>{var m;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:o,parentTable:"",version:1},value:{pageData:{...v,compData:(m=v==null?void 0:v.compData)==null?void 0:m.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},y=Dr.batchAddInsofDataApi):n==="update"?(c={dataList:l==null?void 0:l.map(v=>{var m;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(m=v==null?void 0:v.compData)==null?void 0:m.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},y=Dr.batchUpdateInsofDataApi):n==="delete"&&(c={ids:l},y=Dr.batchDeleteInsofDataApi);const p=await y(c);if(((s=p==null?void 0:p.data)==null?void 0:s.code)===200)return p.data.result;throw al.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{al.ElMessage.error("保存响应失败")}},ms=async(l,n,r,o)=>{var s,c,y,p,v,m,u,w,D,L,S;try{const W=(c=(s=l==null?void 0:l.results)==null?void 0:s.filter(E=>!(E!=null&&E.id)||typeof(E==null?void 0:E.id)=="string"))==null?void 0:c.map(E=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:n,relatedInfo:r},value:{tableData:E}})),I=(p=(y=l==null?void 0:l.results)==null?void 0:y.filter(E=>(E==null?void 0:E.id)&&typeof(E==null?void 0:E.id)=="number"))==null?void 0:p.map(E=>({id:E==null?void 0:E.id,value:{tableData:E}})),A=JSON.parse(JSON.stringify(l)),ee=(v=A==null?void 0:A.results)==null?void 0:v.map(E=>E.id);let C;r?C=(w=(u=(m=gt.value)==null?void 0:m[wl.value])==null?void 0:u.filter(E=>{var k,g,O;return((k=E==null?void 0:E.key)==null?void 0:k.type)===n&&((O=(g=E==null?void 0:E.key)==null?void 0:g.relatedInfo)==null?void 0:O.target)===o}))==null?void 0:w.map(E=>E==null?void 0:E.id):C=(S=(L=(D=gt.value)==null?void 0:D[wl.value])==null?void 0:L.filter(E=>{var k;return((k=E==null?void 0:E.key)==null?void 0:k.type)===n}))==null?void 0:S.map(E=>E==null?void 0:E.id);const _=C==null?void 0:C.filter(E=>!(ee!=null&&ee.includes(E))&&typeof E=="number");(W==null?void 0:W.length)>0&&await Dr.batchAddInsofDataApi({dataList:W}),(I==null?void 0:I.length)>0&&await Dr.batchUpdateInsofDataApi({dataList:I}),(_==null?void 0:_.length)>0&&await Dr.batchDeleteInsofDataApi({ids:_})}catch(W){throw new Error(W)}},t0=async l=>{var m,u,w,D,L,S,W,I,A,ee;Ar.setContentLoading(!0);const n=JSON.parse(JSON.stringify(Zf.value));if(!Qf.value)return Ar.setCacheStructures({key:r0.value,data:n}),al.ElMessage.success("已暂存");const r=n==null?void 0:n.map(C=>C.id),o=r.filter(C=>{var _;return!((_=hs.value)!=null&&_.includes(C))}),s=(m=hs.value)==null?void 0:m.filter(C=>!r.includes(C)),c=[...o,...s].filter(C=>typeof C!==null&&typeof C<"u"),y=n==null?void 0:n.filter(C=>!C.id),p=n==null?void 0:n.filter(C=>C.id);let v=[];if(c&&(c==null?void 0:c.length)>0&&v.push(ct(c,"delete",l)),y&&(y==null?void 0:y.length)>0&&v.push(ct(y,"create",l)),p&&(p==null?void 0:p.length)>0&&v.push(ct(p,"update",l)),no.value&&((u=no.value)!=null&&u.isDelete&&((D=(w=no.value)==null?void 0:w.results)==null?void 0:D.length)>0&&((S=(L=no.value)==null?void 0:L.results)!=null&&S.every(C=>typeof C=="number"))?await Dr.batchDeleteInsofDataApi({ids:(W=no.value)==null?void 0:W.results}):(console.log("itemGridData.value",no.value),v.push(await ms(no.value,"gridLayout")))),yi.value)for(const C in yi.value)v.push(await ms((I=yi.value)==null?void 0:I[C],"extend",{target:C,compId:(ee=(A=yi.value)==null?void 0:A[C])==null?void 0:ee.compId},C));await Promise.all(v).then(()=>{al.ElMessage.success("保存成功"),Er.setRefreshCurStructure(!0)}).catch(C=>{al.ElMessage.success(C)}),Ar.setContentLoading(!1)},Wo=l=>Ao(l),s0=a.computed(()=>{var l;return(l=nr.value)==null?void 0:l.filter(n=>(n==null?void 0:n.affix)&&(n==null?void 0:n.affix)!=="default")}),fc=a.computed(()=>{var l;return(l=nr.value)==null?void 0:l.filter(n=>!(n!=null&&n.affix&&(n==null?void 0:n.affix)!=="default"))}),hc=a.ref(0),vc=a.ref(null),c0="ocr_committed_temp_ids_v1",u0=(l,n)=>`${c0}:${String(l??"")}:${String(n??"")}`,d0=(l,n,r)=>{try{const o=u0(l,n),s=sessionStorage.getItem(o),c=s?JSON.parse(s):[],y=Array.isArray(c)?c:[],p=Array.from(new Set([...y,...r||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(o,JSON.stringify(p))}catch{}},Ti=async(l,n="data",r)=>{var s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul,Ea;let o=((y=(c=(s=Gn.value)==null?void 0:s.filter(_a=>(_a==null?void 0:_a.condition)==="child"))==null?void 0:c[0])==null?void 0:y.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let _a=(p=l==null?void 0:l.fixContent)==null?void 0:p.map(pe=>{let Ca={};for(let qe in pe)Array.isArray(pe==null?void 0:pe[qe])?Ca[qe]=JSON.stringify(pe==null?void 0:pe[qe]):Ca[qe]=pe==null?void 0:pe[qe];return Ca}),Ra=await Y.quoteApi({platId:parseInt((v=bl==null?void 0:bl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});Ra=(m=Ra==null?void 0:Ra.data)==null?void 0:m.result,Ra=Ra==null?void 0:Ra.filter(pe=>{var Ca,qe;return!((pe==null?void 0:pe.fatherPath)!==""&&((qe=(Ca=pe==null?void 0:pe.quote)==null?void 0:Ca[0])==null?void 0:qe.menus)===(wl==null?void 0:wl.value))});let Va=Ra==null?void 0:Ra.map(pe=>{var aa,Ge;let Ca={},qe=_a==null?void 0:_a[0],G;return Array.isArray((aa=pe==null?void 0:pe.struct)==null?void 0:aa[0])?G=oa.getColumnChild((Ge=pe==null?void 0:pe.struct)==null?void 0:Ge[0]):G=pe==null?void 0:pe.struct,G=G==null?void 0:G.filter(Be=>(Be==null?void 0:Be.prop)!=="relatedId"),G==null||G.forEach(Be=>{var El,sl;Ca[Be.prop]=((El=Be==null?void 0:Be.words)!=null&&El[0]?(qe==null?void 0:qe[(sl=Be==null?void 0:Be.words)==null?void 0:sl[0]])??(qe==null?void 0:qe[Be==null?void 0:Be.prop]):qe==null?void 0:qe[Be==null?void 0:Be.prop])??""}),Ca.id="1",Ca.relatedId=`[${Ca.id}]`,delete Ca.sort,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[Ca]}}),qa=[{tableName:(u=l==null?void 0:l.relatedContents)==null?void 0:u.find(pe=>pe==null?void 0:pe.includes("content")),tableContents:_a}];qa=[...qa,...Va];let xa=await Y.quoteApi({platId:parseInt((w=bl==null?void 0:bl.value)==null?void 0:w.plat_id),type:"sonSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});xa=(L=(D=xa==null?void 0:xa.data)==null?void 0:D.result)==null?void 0:L.filter(pe=>!(qa!=null&&qa.find(Ca=>(Ca==null?void 0:Ca.tableName)==="content_"+(pe==null?void 0:pe.id)))),xa=xa==null?void 0:xa.filter(pe=>{var Ca,qe;return!((pe==null?void 0:pe.fatherPath)!==""&&((qe=(Ca=pe==null?void 0:pe.quote)==null?void 0:Ca[0])==null?void 0:qe.menus)===(wl==null?void 0:wl.value))});let ae=xa==null?void 0:xa.map(pe=>{var aa,Ge,Be,El,sl,kl,Ga;let Ca={},qe=_a==null?void 0:_a[0],G;return Array.isArray((aa=pe==null?void 0:pe.struct)==null?void 0:aa[0])?G=oa.getColumnChild((Ge=pe==null?void 0:pe.struct)==null?void 0:Ge[0]):G=pe==null?void 0:pe.struct,G=G==null?void 0:G.filter(Qa=>(Qa==null?void 0:Qa.prop)!=="relatedId"),((El=(Be=G==null?void 0:G[0])==null?void 0:Be.words)!=null&&El[0]?qe!=null&&qe[(kl=(sl=G==null?void 0:G[0])==null?void 0:sl.words)==null?void 0:kl[0]]:qe!=null&&qe[(Ga=G==null?void 0:G[0])==null?void 0:Ga.prop])?(G==null||G.forEach(Qa=>{var Na,he;Ca[Qa.prop]=((Na=Qa==null?void 0:Qa.words)!=null&&Na[0]?(qe==null?void 0:qe[(he=Qa==null?void 0:Qa.words)==null?void 0:he[0]])??(qe==null?void 0:qe[Qa==null?void 0:Qa.prop]):qe==null?void 0:qe[Qa==null?void 0:Qa.prop])??""}),Ca.id="1",Ca.relatedId=`[${Ca.id}]`,delete Ca.sort):Ca=void 0,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[Ca]}});ae=ae==null?void 0:ae.filter(pe=>{var Ca;return!((Ca=pe==null?void 0:pe.tableContents)!=null&&Ca.every(qe=>qe===void 0))}),qa=[...qa,...ae],await Y.pageBatchAddApi({platId:parseInt((S=bl==null?void 0:bl.value)==null?void 0:S.plat_id),changeContents:qa});let Ye=[];qa==null||qa.forEach(pe=>{var Ca;(Ca=pe==null?void 0:pe.tableContents)==null||Ca.forEach(qe=>{Ye.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(qe),request_result:"{}",is_delete:!1,request_table:pe==null?void 0:pe.tableName,request_type:"add"})})}),await Y.pageBatchAddApi({platId:parseInt((W=bl==null?void 0:bl.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const _a=((l==null?void 0:l.ocrRows)||[]).map(xa=>xa==null?void 0:xa.id).filter(xa=>xa!=null),Ra=((l==null?void 0:l.ocrRows)||[]).map(xa=>{const ae={...xa};return delete ae._isOCRRow,delete ae._ocrTableId,Object.keys(ae).forEach(Ye=>{/(^|\.)证书附件$/.test(Ye)&&Array.isArray(ae[Ye])&&(ae[Ye]=JSON.stringify(ae[Ye].map(pe=>({url:(pe==null?void 0:pe.url)||"",name:(pe==null?void 0:pe.name)||(pe==null?void 0:pe.fileName)||"",fileName:(pe==null?void 0:pe.fileName)||(pe==null?void 0:pe.name)||""})).filter(pe=>pe.url||pe.name)))}),ae});let Va=[{tableName:(I=l==null?void 0:l.relatedContents)==null?void 0:I.find(xa=>xa==null?void 0:xa.includes("content")),tableContents:Ra}];await Y.pageBatchAddApi({platId:parseInt((A=bl==null?void 0:bl.value)==null?void 0:A.plat_id),changeContents:Va});let qa=[];Va==null||Va.forEach(xa=>{var ae;(ae=xa==null?void 0:xa.tableContents)==null||ae.forEach(Ye=>{qa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ye),request_result:"{}",is_delete:!1,request_table:xa==null?void 0:xa.tableName,request_type:"ocrBatchAdd"})})}),await Y.pageBatchAddApi({platId:parseInt((ee=bl==null?void 0:bl.value)==null?void 0:ee.plat_id),changeContents:[{tableName:"log",tableContents:qa}]}),d0(l==null?void 0:l.parentTableId,l==null?void 0:l.index,_a)}if((l==null?void 0:l.buttonName)==="编辑"){const Ra=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(G=>{const aa={...G};return delete aa._isOCRRow,delete aa._ocrTableId,delete aa._isTemp,delete aa.tableEditType,delete aa.index,aa});let Va=Ra==null?void 0:Ra.map(G=>{let aa={};for(let Ge in G)Array.isArray(G==null?void 0:G[Ge])?aa[Ge]=JSON.stringify(G==null?void 0:G[Ge]):aa[Ge]=G==null?void 0:G[Ge];return aa}),qa=await Y.quoteApi({platId:parseInt((C=bl==null?void 0:bl.value)==null?void 0:C.plat_id),type:"fatherSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});qa=(_=qa==null?void 0:qa.data)==null?void 0:_.result,qa=qa==null?void 0:qa.filter(G=>{var aa,Ge;return!((G==null?void 0:G.fatherPath)!==""&&((Ge=(aa=G==null?void 0:G.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(wl==null?void 0:wl.value))});let xa=(E=Va==null?void 0:Va[0])==null?void 0:E.id,ae=[{tableName:(k=l==null?void 0:l.relatedContents)==null?void 0:k.find(G=>G==null?void 0:G.includes("content")),tableContents:Va}],Ye=(g=qa==null?void 0:qa.map(G=>{var Ge,Be,El,sl,kl;let aa=(Ge=G==null?void 0:G.contents)==null?void 0:Ge.filter(Ga=>{var Qa,Na;return JSON.stringify(Ga==null?void 0:Ga.relatedId)!=="{}"&&(Ga==null?void 0:Ga.relatedId)!==""&&(Ga!=null&&Ga.relatedId)?(Qa=Ga==null?void 0:Ga.relatedId)==null?void 0:Qa.includes(parseInt(xa)):(Ga==null?void 0:Ga.sort)===((Na=Va==null?void 0:Va[0])==null?void 0:Na.sort)});if((aa==null?void 0:aa.length)>0){let Ga=Va==null?void 0:Va[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Na=Ga,he;return Array.isArray((El=G==null?void 0:G.struct)==null?void 0:El[0])?he=oa.getColumnChild((sl=G==null?void 0:G.struct)==null?void 0:sl[0]):he=G==null?void 0:G.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var Sl,Pl;Qa[Da.prop]=((Sl=Da==null?void 0:Da.words)!=null&&Sl[0]?(Na==null?void 0:Na[(Pl=Da==null?void 0:Da.words)==null?void 0:Pl[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop]):Na==null?void 0:Na[Da==null?void 0:Da.prop])??""}),Qa.id=(kl=aa==null?void 0:aa[0])==null?void 0:kl.id,delete Qa.sort,delete Qa.relatedId,{tableName:"content_"+(G==null?void 0:G.id),tableContents:[Qa]}}else return}))==null?void 0:g.filter(G=>G);ae=[...ae,...Ye];let pe=await Y.quoteApi({platId:parseInt((O=bl==null?void 0:bl.value)==null?void 0:O.plat_id),type:"sonSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});pe=(q=(F=pe==null?void 0:pe.data)==null?void 0:F.result)==null?void 0:q.filter(G=>!(ae!=null&&ae.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(G==null?void 0:G.id)))),pe=pe==null?void 0:pe.filter(G=>{var aa,Ge;return!((G==null?void 0:G.fatherPath)!==""&&((Ge=(aa=G==null?void 0:G.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(wl==null?void 0:wl.value))});let Ca=(te=pe==null?void 0:pe.map(G=>{var Ge,Be,El,sl,kl;let aa=(Ge=G==null?void 0:G.contents)==null?void 0:Ge.filter(Ga=>{var Qa,Na,he;return JSON.stringify(Ga==null?void 0:Ga.relatedId)!=="{}"&&(Ga==null?void 0:Ga.relatedId)!==""&&(Ga!=null&&Ga.relatedId)?(Qa=Ga==null?void 0:Ga.relatedId)==null?void 0:Qa.includes(parseInt(xa)):(Ga==null?void 0:Ga.sort)===((Na=Va==null?void 0:Va[0])==null?void 0:Na.sort)||(Ga==null?void 0:Ga.sort)===(parseInt(((he=Va==null?void 0:Va[0])==null?void 0:he.sort)??"0")+1).toString()});if((aa==null?void 0:aa.length)>0){let Ga=Va==null?void 0:Va[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Na=Ga,he;return Array.isArray((El=G==null?void 0:G.struct)==null?void 0:El[0])?he=oa.getColumnChild((sl=G==null?void 0:G.struct)==null?void 0:sl[0]):he=G==null?void 0:G.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var Sl,Pl,jl,or;((Sl=Da==null?void 0:Da.words)!=null&&Sl[0]?(Na==null?void 0:Na[(Pl=Da==null?void 0:Da.words)==null?void 0:Pl[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop]):Na!=null&&Na[Da==null?void 0:Da.prop])&&(Qa[Da.prop]=((jl=Da==null?void 0:Da.words)!=null&&jl[0]?(Na==null?void 0:Na[(or=Da==null?void 0:Da.words)==null?void 0:or[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop]):Na==null?void 0:Na[Da==null?void 0:Da.prop])??"")}),Qa.id=(kl=aa==null?void 0:aa[0])==null?void 0:kl.id,delete Qa.sort,delete Qa.relatedId,{tableName:"content_"+(G==null?void 0:G.id),tableContents:[Qa]}}else return}))==null?void 0:te.filter(G=>G);ae=[...ae,...Ca],await Y.pageBatchUpdateApi({platId:parseInt((Te=bl==null?void 0:bl.value)==null?void 0:Te.plat_id),changeContents:ae});let qe=[];ae==null||ae.forEach(G=>{var aa;(aa=G==null?void 0:G.tableContents)==null||aa.forEach(Ge=>{qe.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:G==null?void 0:G.tableName,request_type:"update"})})}),await Y.pageBatchAddApi({platId:parseInt((Ee=bl==null?void 0:bl.value)==null?void 0:Ee.plat_id),changeContents:[{tableName:"log",tableContents:qe}]})}if((l==null?void 0:l.buttonName)==="删除"){let _a=[{tableName:(Q=l==null?void 0:l.relatedContents)==null?void 0:Q.find(pe=>pe==null?void 0:pe.includes("content")),tableContents:l==null?void 0:l.fixContent}],Ra=await Y.quoteApi({platId:parseInt((be=bl==null?void 0:bl.value)==null?void 0:be.plat_id),type:"fatherSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});Ra=(Z=Ra==null?void 0:Ra.data)==null?void 0:Z.result,Ra=Ra==null?void 0:Ra.filter(pe=>{var Ca,qe;return!((pe==null?void 0:pe.fatherPath)!==""&&((qe=(Ca=pe==null?void 0:pe.quote)==null?void 0:Ca[0])==null?void 0:qe.menus)===(wl==null?void 0:wl.value))});let Va=(je=(de=l==null?void 0:l.fixContent)==null?void 0:de[0])==null?void 0:je.id,qa=(wa=Ra==null?void 0:Ra.map(pe=>{var qe,G,aa,Ge,Be,El;let Ca=(qe=pe==null?void 0:pe.contents)==null?void 0:qe.filter(sl=>{var kl,Ga,Qa;return JSON.stringify(sl==null?void 0:sl.relatedId)!=="{}"&&(sl==null?void 0:sl.relatedId)!==""&&(sl!=null&&sl.relatedId)?(kl=sl==null?void 0:sl.relatedId)==null?void 0:kl.includes(parseInt(Va)):(sl==null?void 0:sl.sort)===((Qa=(Ga=l==null?void 0:l.fixContent)==null?void 0:Ga[0])==null?void 0:Qa.sort)});if((Ca==null?void 0:Ca.length)>0){let sl=(G=l==null?void 0:l.fixContent)==null?void 0:G[0];sl={...sl,id:(aa=Ca==null?void 0:Ca[0])==null?void 0:aa.id};let kl={},Ga=sl,Qa;return Array.isArray((Ge=pe==null?void 0:pe.struct)==null?void 0:Ge[0])?Qa=oa.getColumnChild((Be=pe==null?void 0:pe.struct)==null?void 0:Be[0]):Qa=pe==null?void 0:pe.struct,Qa=Qa==null?void 0:Qa.filter(Na=>(Na==null?void 0:Na.prop)!=="relatedId"),Qa==null||Qa.forEach(Na=>{var he,Da;kl[Na.prop]=((he=Na==null?void 0:Na.words)!=null&&he[0]?(Ga==null?void 0:Ga[(Da=Na==null?void 0:Na.words)==null?void 0:Da[0]])??(Ga==null?void 0:Ga[Na==null?void 0:Na.prop]):Ga==null?void 0:Ga[Na==null?void 0:Na.prop])??""}),kl.id=(El=Ca==null?void 0:Ca[0])==null?void 0:El.id,delete kl.sort,delete kl.relatedId,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[kl]}}else return}))==null?void 0:wa.filter(pe=>pe);_a=[..._a,...qa];let xa=await Y.quoteApi({platId:parseInt((ie=bl==null?void 0:bl.value)==null?void 0:ie.plat_id),type:"sonSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});xa=(j=(P=xa==null?void 0:xa.data)==null?void 0:P.result)==null?void 0:j.filter(pe=>!(_a!=null&&_a.find(Ca=>(Ca==null?void 0:Ca.tableName)==="content_"+(pe==null?void 0:pe.id)))),xa=xa==null?void 0:xa.filter(pe=>{var Ca,qe;return!((pe==null?void 0:pe.fatherPath)!==""&&((qe=(Ca=pe==null?void 0:pe.quote)==null?void 0:Ca[0])==null?void 0:qe.menus)===(wl==null?void 0:wl.value))});let ae=(ye=xa==null?void 0:xa.map(pe=>{var qe,G,aa,Ge,Be,El;let Ca=(qe=pe==null?void 0:pe.contents)==null?void 0:qe.filter(sl=>{var kl,Ga,Qa;return JSON.stringify(sl==null?void 0:sl.relatedId)!=="{}"&&(sl==null?void 0:sl.relatedId)!==""&&(sl!=null&&sl.relatedId)?(kl=sl==null?void 0:sl.relatedId)==null?void 0:kl.includes(parseInt(Va)):(sl==null?void 0:sl.sort)===((Qa=(Ga=l==null?void 0:l.fixContent)==null?void 0:Ga[0])==null?void 0:Qa.sort)});if((Ca==null?void 0:Ca.length)>0){let sl=(G=l==null?void 0:l.fixContent)==null?void 0:G[0];sl={...sl,id:(aa=Ca==null?void 0:Ca[0])==null?void 0:aa.id};let kl={},Ga=sl,Qa;return Array.isArray((Ge=pe==null?void 0:pe.struct)==null?void 0:Ge[0])?Qa=oa.getColumnChild((Be=pe==null?void 0:pe.struct)==null?void 0:Be[0]):Qa=pe==null?void 0:pe.struct,Qa=Qa==null?void 0:Qa.filter(Na=>(Na==null?void 0:Na.prop)!=="relatedId"),Qa==null||Qa.forEach(Na=>{var he,Da;kl[Na.prop]=((he=Na==null?void 0:Na.words)!=null&&he[0]?(Ga==null?void 0:Ga[(Da=Na==null?void 0:Na.words)==null?void 0:Da[0]])??(Ga==null?void 0:Ga[Na==null?void 0:Na.prop]):Ga==null?void 0:Ga[Na==null?void 0:Na.prop])??""}),kl.id=(El=Ca==null?void 0:Ca[0])==null?void 0:El.id,delete kl.sort,delete kl.relatedId,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[kl]}}else return}))==null?void 0:ye.filter(pe=>pe);_a=[..._a,...ae],await Y.pageBatchDeleteApi({platId:parseInt((Se=bl==null?void 0:bl.value)==null?void 0:Se.plat_id),changeContents:_a});let Ye=[];_a==null||_a.forEach(pe=>{var Ca;(Ca=pe==null?void 0:pe.tableContents)==null||Ca.forEach(qe=>{Ye.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(qe),request_result:"{}",is_delete:!1,request_table:pe==null?void 0:pe.tableName,request_type:"delete"})})}),await Y.pageBatchAddApi({platId:parseInt((ke=bl==null?void 0:bl.value)==null?void 0:ke.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let _a=await Y.getPageDataApi({platId:parseInt((Ze=bl==null?void 0:bl.value)==null?void 0:Ze.plat_id),pageName:"menu"});if(_a=(ya=_a==null?void 0:_a.data)==null?void 0:ya.result,_a!=null&&_a.find(Ra=>(Ra==null?void 0:Ra.father_name)===wl.value+"/")){pc.value=l,dc.value=_a==null?void 0:_a.filter(qa=>(qa==null?void 0:qa.father_name)===wl.value+"/");let Ra=(re=(Ha=l==null?void 0:l.columns)==null?void 0:Ha.find(qa=>qa==null?void 0:qa.mainKey))==null?void 0:re.prop,Va=(Ve=(la=l==null?void 0:l.fixContent)==null?void 0:la[0])==null?void 0:Ve[Ra];Dt.value=!0,qo.value=[{prop:Ra,label:Ra,name:Ra,value:Va}]}else{let Ra=(ba=l==null?void 0:l.fixContent)==null?void 0:ba.map(xa=>{let ae={};for(let Ye in xa)Array.isArray(xa==null?void 0:xa[Ye])?ae[Ye]=JSON.stringify(xa==null?void 0:xa[Ye]):ae[Ye]=xa==null?void 0:xa[Ye];return ae.relatedId="",ae}),Va=[{tableName:(Fe=l==null?void 0:l.relatedContents)==null?void 0:Fe.find(xa=>xa==null?void 0:xa.includes("content")),tableContents:Ra}];await Y.pageBatchAddApi({platId:parseInt((Ie=bl==null?void 0:bl.value)==null?void 0:Ie.plat_id),changeContents:Va});let qa=[];Va==null||Va.forEach(xa=>{var ae;(ae=xa==null?void 0:xa.tableContents)==null||ae.forEach(Ye=>{qa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ye),request_result:"{}",is_delete:!1,request_table:xa==null?void 0:xa.tableName,request_type:"copyAdd"})})}),await Y.pageBatchAddApi({platId:parseInt(($e=bl==null?void 0:bl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:"log",tableContents:qa}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let _a=((Wa=(Xa=(Qe=l==null?void 0:l.columns)==null?void 0:Qe.map(G=>G==null?void 0:G.filter))==null?void 0:Xa.filter(G=>G!==""))==null?void 0:Wa[0])??"";_a=$a.analyzeSplitToContent(_a,","),_a=(_a==null?void 0:_a.find(G=>G==null?void 0:G.includes("@Filter")))??"";let Ra=(V=l==null?void 0:l.fixContent)==null?void 0:V.map(G=>{let aa={};for(let Ge in G)Array.isArray(G==null?void 0:G[Ge])?aa[Ge]=JSON.stringify(G==null?void 0:G[Ge]):aa[Ge]=G==null?void 0:G[Ge];return aa}),Va=await Y.quoteApi({platId:parseInt(($=bl==null?void 0:bl.value)==null?void 0:$.plat_id),type:"fatherSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});Va=(X=Va==null?void 0:Va.data)==null?void 0:X.result,Va=Va==null?void 0:Va.filter(G=>{var aa,Ge;return!((G==null?void 0:G.fatherPath)!==""&&((Ge=(aa=G==null?void 0:G.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(wl==null?void 0:wl.value))});let qa=(ue=(se=l==null?void 0:l.columns)==null?void 0:se[0])==null?void 0:ue.prop,xa=(va=Ra==null?void 0:Ra[0])==null?void 0:va[qa],ae=[{tableName:(ra=l==null?void 0:l.relatedContents)==null?void 0:ra.find(G=>G==null?void 0:G.includes("content")),tableContents:Ra}],Ye=(Le=Va==null?void 0:Va.map(G=>{var Ge,Be,El,sl,kl;let aa=(Ge=G==null?void 0:G.contents)==null?void 0:Ge.filter(Ga=>{var Qa;return(Qa=Object.values(Ga))==null?void 0:Qa.find(Na=>Na===xa)});if((aa==null?void 0:aa.length)>0){let Ga=Ra==null?void 0:Ra[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Na=Ga,he;return Array.isArray((El=G==null?void 0:G.struct)==null?void 0:El[0])?he=oa.getColumnChild((sl=G==null?void 0:G.struct)==null?void 0:sl[0]):he=G==null?void 0:G.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var Sl,Pl;Qa[Da.prop]=((Sl=Da==null?void 0:Da.words)!=null&&Sl[0]?(Na==null?void 0:Na[(Pl=Da==null?void 0:Da.words)==null?void 0:Pl[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop]):Na==null?void 0:Na[Da==null?void 0:Da.prop])??""}),Qa.id=(kl=aa==null?void 0:aa[0])==null?void 0:kl.id,delete Qa.sort,{tableName:"content_"+(G==null?void 0:G.id),tableContents:[Qa]}}else return}))==null?void 0:Le.filter(G=>G);ae=[...ae,...Ye];let pe=await Y.quoteApi({platId:parseInt((Ce=bl==null?void 0:bl.value)==null?void 0:Ce.plat_id),type:"sonSyncs",related:[{menus:o!==""?wl.value+"/"+o:wl.value,groups:l==null?void 0:l.name}]});if(pe=(da=(Sa=pe==null?void 0:pe.data)==null?void 0:Sa.result)==null?void 0:da.filter(G=>!(ae!=null&&ae.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(G==null?void 0:G.id)))),pe=pe==null?void 0:pe.filter(G=>{var aa,Ge;return!((G==null?void 0:G.fatherPath)!==""&&((Ge=(aa=G==null?void 0:G.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(wl==null?void 0:wl.value))}),_a&&_a!==""){(_a==null?void 0:_a[(_a==null?void 0:_a.length)-1])===","&&(_a=_a==null?void 0:_a.slice(0,(_a==null?void 0:_a.length)-1)),_a=(ja=(Fa=_a==null?void 0:_a.replace("(",mi))==null?void 0:Fa.split(mi))==null?void 0:ja[1],_a=_a==null?void 0:_a.slice(0,(_a==null?void 0:_a.length)-1),(_a==null?void 0:_a[0])==="*"&&(_a="{"+((Je=(me=_a==null?void 0:_a.replace("{",mi))==null?void 0:me.split(mi))==null?void 0:Je[1])),_a=(ze=_a==null?void 0:_a.replaceAll("{",""))==null?void 0:ze.replaceAll("}","");let G=oa.calculatorAndToOr(_a);G=G==null?void 0:G[0];let aa;if((Xe=Object.values(G))!=null&&Xe.some(Ge=>(Ge==null?void 0:Ge[0])==="*")){let Ge=(ua=(pa=Gn.value)==null?void 0:pa.find(Be=>(Be==null?void 0:Be.condition)==="child"))!=null&&ua.value?(Qr==null?void 0:Qr.value)+"/"+((za=(Ae=Gn.value)==null?void 0:Ae.find(Be=>(Be==null?void 0:Be.condition)==="child"))==null?void 0:za.value):Qr==null?void 0:Qr.value;aa=await Kr(Ge,!1)}for(let Ge in G)if(((fa=G==null?void 0:G[Ge])==null?void 0:fa[0])==="*"){let Be=(We=(He=(ga=G[Ge])==null?void 0:ga.slice(1,(Ua=G[Ge])==null?void 0:Ua.length))==null?void 0:He.split(":"))==null?void 0:We[0],El=(De=(Ne=G[Ge])==null?void 0:Ne.split(":"))==null?void 0:De[1],sl=(fe=aa==null?void 0:aa.filter(kl=>(kl==null?void 0:kl.name)===Be))==null?void 0:fe[0];sl=(ia=(oe=sl==null?void 0:sl.compData)==null?void 0:oe.find(kl=>(kl==null?void 0:kl.key)==="tableContents"))==null?void 0:ia.contents,sl=(Pa=sl==null?void 0:sl[0])==null?void 0:Pa[El],G[Ge]=sl}_a=((hl=Object.values(G))==null?void 0:hl[0])??""}let Ca=(Ma=pe==null?void 0:pe.map(G=>{var Ge,Be,El,sl,kl;let aa=(Ge=G==null?void 0:G.contents)==null?void 0:Ge.filter(Ga=>{var Qa;return(Qa=Object.values(Ga))==null?void 0:Qa.find(Na=>Na===(_a===""?xa:_a))});if((aa==null?void 0:aa.length)>0){let Ga=Ra==null?void 0:Ra[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Na=Ga,he;return Array.isArray((El=G==null?void 0:G.struct)==null?void 0:El[0])?he=oa.getColumnChild((sl=G==null?void 0:G.struct)==null?void 0:sl[0]):he=G==null?void 0:G.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var Pl,jl,or,gr;let Sl=(Pl=l==null?void 0:l.columns)==null?void 0:Pl.find(Tl=>{var sr,Tr,Rl;return((Tr=(sr=Tl==null?void 0:Tl.words)==null?void 0:sr[0])==null?void 0:Tr.replaceAll("'",""))===(Da==null?void 0:Da.prop)&&((Rl=Tl==null?void 0:Tl.functionRelatedWords)==null?void 0:Rl.length)>0});Sl=(jl=Sl==null?void 0:Sl.prop)==null?void 0:jl.replaceAll("'",""),Qa[Da.prop]=((or=Da==null?void 0:Da.words)!=null&&or[0]?(Na==null?void 0:Na[(gr=Da==null?void 0:Da.words)==null?void 0:gr[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop])??(Na==null?void 0:Na[Sl]):(Na==null?void 0:Na[Da==null?void 0:Da.prop])??(Na==null?void 0:Na[Sl]))??void 0}),Qa.id=(kl=aa==null?void 0:aa[0])==null?void 0:kl.id,delete Qa.sort,{tableName:"content_"+(G==null?void 0:G.id),tableContents:[Qa]}}else return}))==null?void 0:Ma.filter(G=>G);ae=[...ae,...Ca],await Y.pageBatchUpdateApi({platId:parseInt((Ul=bl==null?void 0:bl.value)==null?void 0:Ul.plat_id),changeContents:ae});let qe=[];ae==null||ae.forEach(G=>{var aa;(aa=G==null?void 0:G.tableContents)==null||aa.forEach(Ge=>{qe.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:G==null?void 0:G.tableName,request_type:"method"})})}),await Y.pageBatchAddApi({platId:parseInt((Ea=bl==null?void 0:bl.value)==null?void 0:Ea.plat_id),changeContents:[{tableName:"log",tableContents:qe}]})}Er.setRefreshCurStructure(!0),await xt(l)},kt=async(l,n,r)=>{var s;let o=l==null?void 0:l.find(c=>(c==null?void 0:c.id)===n);if(o){let c=(s=o.compData)==null?void 0:s.map(y=>{var p;if((y==null?void 0:y.key)==="tableContents"){let v={...y,contents:r};return v.contents=(p=(v==null?void 0:v.contents)??[])==null?void 0:p.map(m=>{let u={};for(let w in m)JSON.stringify(m==null?void 0:m[w])==="{}"?u[w]="":u[w]=m==null?void 0:m[w];return u}),v}return y});return o.compData=await Et(c,{}),l=l==null?void 0:l.map(y=>((y==null?void 0:y.id)===(o==null?void 0:o.id)&&(y=o),y)),l}else{let c=l==null?void 0:l.filter(p=>{var v;return(p==null?void 0:p.children)&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0||(p==null?void 0:p.comp)==="Tabs"}),y=c==null?void 0:c.map(async p=>{var v;return p!=null&&p.children&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0?p.children=await kt(p==null?void 0:p.children,n,r):p.compData=await kt(p==null?void 0:p.compData,n,r),p});return c=await Promise.all(y),c}},xt=async l=>{var c,y,p,v,m,u,w;let n=(c=l==null?void 0:l.relatedContents)==null?void 0:c.filter(D=>D==null?void 0:D.includes("content_")),r=await Y.getAllTables({platId:parseInt((y=bl==null?void 0:bl.value)==null?void 0:y.plat_id),tableNames:n});if(r=(v=(p=r==null?void 0:r.data)==null?void 0:p.result)==null?void 0:v[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(D=>{D==null||delete D.source_table;const L={};for(let S in D){const W=D==null?void 0:D[S],I=W&&Object.prototype.toString.call(W)==="[object Object]"&&Object.keys(W).length===0,A=Array.isArray(W)&&W.length===0;W==null||W==="{}"||I||A?L[S]="":L[S]=W}return L});let o=(u=(m=n==null?void 0:n[0])==null?void 0:m.split("_"))==null?void 0:u[1],s=await kt(nr.value,o,r);nr.value=(w=nr.value)==null?void 0:w.map(D=>{var L,S;return(L=s==null?void 0:s[0])!=null&&L.tabInform&&((S=s==null?void 0:s[0])==null?void 0:S.tabInform)===(D==null?void 0:D.tabInform)?D=s==null?void 0:s[0]:(D!=null&&D.name?(D==null?void 0:D.name)===(s==null?void 0:s.name):(D==null?void 0:D.id)===(s==null?void 0:s.id))&&(D=s),D})},p0=l=>{let n=qo.value;qo.value=n==null?void 0:n.map(r=>(r.value=l==null?void 0:l[r==null?void 0:r.prop],r))},f0=async()=>{var D,L,S,W,I,A,ee,C,_,E;let l=pc.value,n=dc.value,r=(L=(D=l==null?void 0:l.columns)==null?void 0:D.find(k=>k==null?void 0:k.mainKey))==null?void 0:L.prop,o=(W=(S=qo.value)==null?void 0:S[0])==null?void 0:W.value,s=(I=l==null?void 0:l.fixContent)==null?void 0:I.map(k=>{var O;let g={};for(let F in k)Array.isArray(k==null?void 0:k[F])?g[F]=JSON.stringify(k==null?void 0:k[F]):g[F]=k==null?void 0:k[F];return(O=l==null?void 0:l.columns)==null||O.forEach(F=>{(F==null?void 0:F.formType)==="Upload"&&(g==null?void 0:g[F==null?void 0:F.prop])===""&&(g[F==null?void 0:F.prop]="{}")}),g[r]=o,g}),c=[{tableName:(A=l==null?void 0:l.relatedContents)==null?void 0:A.find(k=>k==null?void 0:k.includes("content")),tableContents:s}];await Y.pageBatchAddApi({platId:parseInt((ee=bl==null?void 0:bl.value)==null?void 0:ee.plat_id),changeContents:c}),n=n==null?void 0:n.filter(k=>{var g,O,F;return(F=k==null?void 0:k.object_name)==null?void 0:F.includes((O=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:O[r])});let y=[],p=new Map;n==null||n.forEach(k=>{y.push(`content_${k==null?void 0:k.object_id}`),y.push(`struct_${k==null?void 0:k.object_id}`),p.set(k==null?void 0:k.object_id,k)});let v=await Y.getAllTables({platId:parseInt((C=bl==null?void 0:bl.value)==null?void 0:C.plat_id),tableNames:y});v=(_=v==null?void 0:v.data)==null?void 0:_.result;let m=[],u=[];v=$a.chunk(v,2),v==null||v.forEach(k=>{var F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re;let g=p.get((Te=(te=(q=(F=k==null?void 0:k[1])==null?void 0:F[0])==null?void 0:q.source_table)==null?void 0:te.split("_"))==null?void 0:Te[1]),O=(be=(Q=(Ee=g==null?void 0:g.object_name)==null?void 0:Ee.split("/"))==null?void 0:Q.filter((la,Ve)=>{var ba,Fe;return((Fe=(ba=g==null?void 0:g.object_name)==null?void 0:ba.split("/"))==null?void 0:Fe.length)-1!==Ve}))==null?void 0:be.join("/");if(O=O+"/"+o,u!=null&&u.find(la=>(la==null?void 0:la.path)===O)||u.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:O}),((de=(Z=k==null?void 0:k[1])==null?void 0:Z[0])==null?void 0:de.类型)==="Table"){let la=((ie=(wa=(je=k==null?void 0:k[1])==null?void 0:je[0])==null?void 0:wa.结构)==null?void 0:ie.contents)??[],Ve=pl.safeClone(la);Array.isArray(Ve==null?void 0:Ve[0])&&(Ve=oa.getColumnChild(Ve==null?void 0:Ve[0]));let ba=[];if(((P=k==null?void 0:k[0])==null?void 0:P.length)>0&&(ba=(j=k==null?void 0:k[0])==null?void 0:j.map(Fe=>Ve==null?void 0:Ve.map($e=>($e=(Fe==null?void 0:Fe[$e==null?void 0:$e.prop])??"",$e)))),m!=null&&m.find(Fe=>(Fe==null?void 0:Fe.key)===O)){let Fe=(ye=m==null?void 0:m.find($e=>($e==null?void 0:$e.key)===O))==null?void 0:ye.contents;Fe.push({isShow:g==null?void 0:g.is_show,filter:((Ze=(ke=(Se=k==null?void 0:k[1])==null?void 0:Se[0])==null?void 0:ke.引用)==null?void 0:Ze.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:la,tableContents:ba});let Ie=m==null?void 0:m.findIndex($e=>($e==null?void 0:$e.key)===O);m[Ie].contents=Fe}else m.push({key:O,contents:[{isShow:g==null?void 0:g.is_show,filter:((re=(Ha=(ya=k==null?void 0:k[1])==null?void 0:ya[0])==null?void 0:Ha.引用)==null?void 0:re.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:la,tableContents:ba}]})}});let w=[];w.push({key:"menuPath",contents:u}),w=[...w,...m],await Y.createPlatFormDataApi({platId:parseInt((E=bl==null?void 0:bl.value)==null?void 0:E.plat_id),changeData:w}),Dt.value=!1,Er.setRefreshTable(!0)},Ai=async(l,n)=>{},zi=async l=>{nr.value=await oa.getDeepDiffItems(l),Er.setItemData(nr.value),Er.setOriginalData(nr.value)};a.ref();const h0=a.ref(null),v0=()=>{var l,n;console.log("倒计时结束时"),dn.ElMessageBox.alert(`超时未提交,【${(n=(l=wl.value)==null?void 0:l.split("/"))==null?void 0:n[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},mc=a.ref([]),m0=a.computed(()=>{var l,n;return(n=(l=gt.value)==null?void 0:l[wl.value])==null?void 0:n.filter(r=>{var o;return((o=r==null?void 0:r.key)==null?void 0:o.type)==="gridLayout"})});a.watch(()=>[l0.value],()=>{pn.setSelectTitle([]),pn.setChooseTitle([])},{deep:!0});a.watch(()=>Ni.value,async(l,n)=>{var o,s,c,y,p,v;if(JSON.stringify(l)===JSON.stringify(n))return;let r=(o=Ni.value)==null?void 0:o.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==Qr.value);if((r==null?void 0:r.length)>0){Ar.setContentLoading(!0);let m=((s=r==null?void 0:r[0])==null?void 0:s.relatedContent)??(wl==null?void 0:wl.value),u=m+"/"+((c=r==null?void 0:r[0])==null?void 0:c.value),w=!!((y=r==null?void 0:r[0])!=null&&y.parentContent),D=await Kr(u,w,{originPath:m});D=(p=D==null?void 0:D.filter(W=>W))==null?void 0:p.map(W=>(W.isShow=!0,W)),console.log(D,"loadingContents");let L=await oa.getDeepDiffItems(D),S=L==null?void 0:L.filter(W=>W==null?void 0:W.choice);Li.setSelectTab((v=S==null?void 0:S[0])==null?void 0:v.choiceName),L=L==null?void 0:L.filter(W=>{var I;return!(W!=null&&W.choiceName)||(W==null?void 0:W.choiceName)===((I=S==null?void 0:S[0])==null?void 0:I.choiceName)}),nr.value=L,Ar.setContentLoading(!1)}});const y0=(l,n)=>{setTimeout(async()=>{var p,v,m;let r=(p=Ni.value)==null?void 0:p.filter(u=>(u==null?void 0:u.condition)==="child"&&(u==null?void 0:u.value)!==""&&(u==null?void 0:u.parentContent)!==Qr.value),o=wl==null?void 0:wl.value,s=wl==null?void 0:wl.value;(r==null?void 0:r.length)>0&&(s=((v=r==null?void 0:r[0])==null?void 0:v.relatedContent)??(wl==null?void 0:wl.value),o=s+"/"+((m=r==null?void 0:r[0])==null?void 0:m.value));let c=await Kr(o,!1,{originPath:s});c=c==null?void 0:c.map(u=>(u.isShow=!0,u));let y=await oa.getDeepDiffItems(c);nr.value=y==null?void 0:y.filter(u=>!(u!=null&&u.step)||(u==null?void 0:u.step)===(l==null?void 0:l.title))},10)},g0=l=>{setTimeout(async()=>{var y,p,v;let n=(y=Ni.value)==null?void 0:y.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==Qr.value),r=wl==null?void 0:wl.value,o=wl==null?void 0:wl.value;(n==null?void 0:n.length)>0&&(o=((p=n==null?void 0:n[0])==null?void 0:p.relatedContent)??(wl==null?void 0:wl.value),r=o+"/"+((v=n==null?void 0:n[0])==null?void 0:v.value));let s=await Kr(r,!1,{originPath:o});s=s==null?void 0:s.map(m=>(m.isShow=!0,m)),Li.setSelectTab(l);let c=await oa.getDeepDiffItems(s);nr.value=c==null?void 0:c.filter(m=>!(m!=null&&m.choiceName)||(m==null?void 0:m.choiceName)===l)},10)};a.watch(()=>a0.value,l=>{l!=null&&l.length||(nr.value=[])},{immediate:!0});a.watch(()=>[wl.value],async l=>{var c,y,p,v;if(!wl.value)return;if(wl.value==="/"){nr.value=[];return}Ar.setCurrentMenuPath(wl.value),Er.setLockingPage(""),nr.value=[];let n=a.getCurrentInstance();(c=n==null?void 0:n.scope)==null||c.stop(),n=null,To.value=!1,Ar.setContentLoading(!0),uc.value=!0;let r=l==null?void 0:l[0],o=r,s=(y=Gn.value)==null?void 0:y.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==wl.value&&!(m!=null&&m.relatedContent));if((s==null?void 0:s.length)>0&&(r=r+"/"+((p=s==null?void 0:s[0])==null?void 0:p.value)),r==="系统管理/日志管理")nr.value=await Jf("log");else{let m=await Kr(r,!0,{originPath:o});m=m==null?void 0:m.map(D=>(D.isShow=!0,D));let u=await oa.getDeepDiffItems(m),w=u==null?void 0:u.filter(D=>D==null?void 0:D.choice);Li.setSelectTab((v=w==null?void 0:w[0])==null?void 0:v.choiceName),nr.value=u==null?void 0:u.filter(D=>{var L;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((L=w==null?void 0:w[0])==null?void 0:L.choiceName)})}Ar.setContentLoading(!1),Er.setExtraContents([]),pn.setSelectIndex(""),pn.setSelectMenu(""),Er.setItemData(nr.value),Er.setOriginalData(nr.value),Er.setRefreshTable(!1),a.nextTick(()=>{Jn.value=Jn.value++,To.value=!0})},{immediate:!0});a.watch(()=>[vs.value],async()=>{var l,n,r,o;if(vs.value){nr.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,To.value=!1,Ar.setContentLoading(!0),uc.value=!0;let c=Qr==null?void 0:Qr.value,y=c,p=(n=Gn.value)==null?void 0:n.filter(w=>(w==null?void 0:w.condition)==="child"&&(w==null?void 0:w.value)!==""&&(w==null?void 0:w.parentContent)!==(Qr==null?void 0:Qr.value));(p==null?void 0:p.length)>0&&(c=c+"/"+((r=p==null?void 0:p[0])==null?void 0:r.value));let v=await Kr(c,!0,{originPath:y});v=v==null?void 0:v.map(w=>(w.isShow=!0,w));let m=await oa.getDeepDiffItems(v),u=m==null?void 0:m.filter(w=>w==null?void 0:w.choice);if(Li.setSelectTab((o=u==null?void 0:u[0])==null?void 0:o.choiceName),nr.value=m==null?void 0:m.filter(w=>{var D;return!(w!=null&&w.choiceName)||(w==null?void 0:w.choiceName)===((D=u==null?void 0:u[0])==null?void 0:D.choiceName)}),Ar.setContentLoading(!1),Er.setExtraContents([]),pn.setSelectIndex(""),pn.setSelectMenu(""),Er.setItemData(nr.value),Er.setOriginalData(nr.value),Er.setRefreshTable(!1),(p==null?void 0:p.length)>0){let w=[...Gn.value,...p];pn.setSelectTitle(w)}a.nextTick(()=>{Jn.value=Jn.value++,To.value=!0})}},{immediate:!0,deep:!0});const b0=async()=>{Ar.setLinkMenuInfo(null),Ar.setActiveMenuPath(e0.value),nr.value=null,Er.setRouteToChildPath(""),Ar.setChildMenu("")},k0=l=>new RegExp("button","i").test(l),x0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),yc=l=>{if(x0(l)){const n=l==null?void 0:l.split("^");(n==null?void 0:n.length)>0&&(n!=null&&n[0])&&Ar.setLinkMenuInfo({path:n==null?void 0:n[0],data:n==null?void 0:n[1]})}},gc=async(l,n,r)=>{var D,L,S,W,I,A,ee,C,_,E,k,g;let o="",s="";for(let O in n)(n==null?void 0:n[O])===l&&(s=O);r==null||r.forEach(O=>{(O==null?void 0:O.prop)===s&&(o=O==null?void 0:O.fatherPath)});let c=o===""?wl.value:o;o!==""&&Ar.setCurrentMenuPath(c),Ar.setCurrentMenuPath(c+"/"+l),Ar.setContentLoading(!0),await Kr(c+"/"+l,!0,{originPath:c+"/",row:n});let y=await Kr(c,!1),p=(D=y==null?void 0:y.filter(O=>(O==null?void 0:O.comp)==="Table"))==null?void 0:D[0],v=((I=(W=(S=(L=p==null?void 0:p.compData)==null?void 0:L.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:S.contents)==null?void 0:W[0])==null?void 0:I.prop)??((E=(_=(C=(ee=(A=p==null?void 0:p.compData)==null?void 0:A.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:ee.contents)==null?void 0:C[0])==null?void 0:_[0])==null?void 0:E.prop),m=(g=(k=p==null?void 0:p.compData)==null?void 0:k.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:g.contents;m=m==null?void 0:m.map(O=>({label:O==null?void 0:O[v],value:O==null?void 0:O[v]}));let u=Gn.value,w={value:l,condition:"child",options:m,relatedContent:c,isShow:!0};u.push(w),pn.setSelectTitle(u),pn.setChooseTitle([w]),Ar.setContentLoading(!1),Er.setExtraContents([]),pn.setSelectIndex(""),pn.setSelectMenu(""),Er.setItemData(nr.value),Er.setOriginalData(nr.value)},w0=l=>{hc.value=l},Eo=a.reactive({index:0,comp:null}),_0=a.computed(()=>{var l;return(l=nr.value)==null?void 0:l.map((n,r)=>({id:n.id,name:n.name,status:C0(n,r)}))}),bc=(l,n)=>{var v,m,u,w,D;const r=n?l:l-2,o=(v=nr.value)==null?void 0:v[r],s=(u=(m=o==null?void 0:o.compData)==null?void 0:m.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex(L=>(L==null?void 0:L.isMainKey)&&(L==null?void 0:L.label)!=="操作"),y=c===-1?0:c,p=(D=(w=o==null?void 0:o.compData)==null?void 0:w.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:D.contents;return{valid:p==null?void 0:p.every(L=>L==null?void 0:L[y+1]),length:(p==null?void 0:p.length)||0}},C0=(l,n)=>{var o;let r="process";if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){const{valid:s,length:c}=bc(n,!0);Eo.index===n?r="process":c===0?r="wait":r=s?"success":"error"}return r},kc=l=>{var r,o,s,c,y;const n=l+1;if(n>1&&((s=(o=(r=nr.value)==null?void 0:r[l])==null?void 0:o.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:p}=bc(n);p?(Eo.index=n,Eo.comp=(c=nr.value)==null?void 0:c[l]):al.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Eo.index=n,Eo.comp=(y=nr.value)==null?void 0:y[l]},xc=a.computed(()=>{var l,n;return(n=(l=fc.value)==null?void 0:l[0])==null?void 0:n.isStepLayout});a.watch(()=>xc.value,l=>{l&&kc(0)},{immediate:!0});const E0={class:"table-content"},S0={class:"menu-config-wrap"},D0=["onClick"],B0={key:0,class:"viewport-wrap"},N0=["onClick"],T0={title:"选择显示列信息"},A0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},z0=["title"],M0={class:"col-operate-wrap"},I0={key:0,class:"col-operate-radio-wrapper"},O0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},L0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},R0={class:"pop-view"},$0={class:"pop-wrapper"},V0={class:"file-list-pop"},P0=["title","onClick"],F0=["onClick"],j0=["onClick"],H0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},U0={class:"form-content"},q0={key:0,class:"dialog-footer"},W0={class:"dialog-footer"},K0={class:"ocr-dialog-content"},G0={class:"ocr-steps"},Y0={key:0,class:"ocr-action-buttons"},J0={key:1,class:"ocr-preview-area"},X0={class:"ocr-file-grid"},Z0={class:"file-thumbnail"},Q0=["src"],e3={key:1,class:"thumbnail-placeholder"},a3={class:"progress-svg",viewBox:"0 0 36 36"},l3=["stroke","stroke-width","stroke-dasharray"],r3={key:0,class:"progress-icon"},n3={key:1,class:"progress-icon"},o3=["onClick"],i3={class:"file-name"},t3={key:0,class:"ocr-recognize-button"},s3={key:2,class:"ocr-progress-section"},c3={key:3,class:"ocr-confirm-area"},u3={class:"ocr-preview-tip"},d3={class:"ocr-preview-table"},p3={style:{display:"flex","align-items":"center",gap:"8px"}},f3={key:0},h3={key:4,class:"ocr-success-area"},v3={key:0,class:"ocr-dialog-footer"},m3={class:"form-content"},y3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},g3={style:{display:"flex"}},ys="ss-ocr-upload-history",b3="ss-ocr-cert-history-v1",k3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:n}){var Vt;const r=a.ref([]),o=St(ol.pinia),s=a.ref(null),c=a.ref(new Set),y=a.ref(new Map),p=a.ref(new Map),v=new Map,m=a.ref(new Map),u=l,w=a.ref((u==null?void 0:u.allowSelect)??!0),D=a.ref(((Vt=u==null?void 0:u.config)==null?void 0:Vt.showIndex)??!0),L=a.ref(),S=a.ref(!0),W=a.ref(!1),I=a.ref([]),A={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},ee=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),C=oa.useOriginalState(ol.pinia);let _="$R";const{originalPath:E}=ol.storeToRefs(C),k=E.value,g=a.computed(()=>{var h;const d=(h=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:h.filter(N=>(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate");return d.length>0?d.every(N=>!!(N!=null&&N.sortable)):!1});a.computed(()=>{var h;return(h=Ee.value)==null?void 0:h.every(N=>N==null?void 0:N.filterable)}),a.computed(()=>{var h;return(h=Ee.value)==null?void 0:h.every(N=>N==null?void 0:N.operable)});const O=a.ref(!0),F=a.ref([]),q=a.reactive({column:{},status:!1,text:"合计"}),te=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Te=n,Ee=a.ref([]),Q=a.ref([]),be=a.ref([]),Z=a.reactive({prop:"",order:null}),de=a.ref([]),je=a.ref(!1),wa=a.ref(!1),ie=a.ref(null),{isUseBackdrop:P,initTrackFileType:j,getFileExtension:ye,setData:Se,getFileInfo:ke,getFilesInfo:Ze}=Ci.useThreeSystem(),ya=a.ref([]),Ha=a.ref(!1),re=a.ref(),la=Y.useMenuState(),{importLoading:Ve,activeMenuPath:ba,contentLoading:Fe,linkMenuInfo:Ie}=ol.storeToRefs(la),$e=oa.useTableComp(ol.pinia),Qe=ol.useModelComp(ol.pinia),Xa=Xn(ol.pinia),{extraContents:Wa,cacheUpdatingData:V,tableViewContents:$,tableLoading:X,pageMapState:se,lockingPage:ue}=ol.storeToRefs(Qe),{selectTab:va}=ol.storeToRefs(Xa),{compType:ra,hasEditable:Le}=Ks.useRole(),Ce=a.ref([]),Sa=a.ref([]),da=a.ref(new Map);a.ref(!1);const Fa=a.ref("");a.ref();const ja=a.ref(!0),me=a.ref(0),Je=a.ref(!0),ze=a.ref(""),Xe=a.ref(!1),pa=a.ref(null);a.ref([]);const ua=a.ref({label:"查看三维模型"}),Ae=a.ref(!1),za=a.ref(),fa=a.ref([]),Ua=a.ref([]),ga=a.ref(!1),He=a.ref([]),We=a.ref([]),Ne=a.ref([]),De=a.ref([]),fe=a.ref([]),oe=()=>{try{const d=localStorage.getItem(ys),h=d?JSON.parse(d):[];fe.value=Array.isArray(h)?h:[]}catch{fe.value=[]}},ia=()=>{try{localStorage.setItem(ys,JSON.stringify(fe.value||[]))}catch{}},Pa=d=>{var le,ne,H;if(!d)return;const h=d.url||((le=d==null?void 0:d.uploadResult)==null?void 0:le.url)||"",N=d.name||((ne=d==null?void 0:d.uploadResult)==null?void 0:ne.name)||((H=d==null?void 0:d.uploadResult)==null?void 0:H.fileName)||"";if(!h&&!N)return;const z={name:N,url:h,ts:Date.now()},R=String(z.name||"").trim().toLowerCase(),B=(fe.value||[]).findIndex(xe=>String((xe==null?void 0:xe.name)||"").trim().toLowerCase()===R);B>-1&&fe.value.splice(B,1),fe.value.unshift(z),fe.value.length>20&&(fe.value=fe.value.slice(0,20)),ia()};oe();const hl=(d,h)=>`${b3}:${String(d??"")}:${String(h??"")}`,Ma=(d,h)=>{try{const N=sessionStorage.getItem(hl(d,h)),z=N?JSON.parse(N):[];return Array.isArray(z)?z:[]}catch{return[]}},Ul=(d,h,N)=>{try{sessionStorage.setItem(hl(d,h),JSON.stringify(Array.isArray(N)?N:[]))}catch{}},Ea=(d,h,N)=>{if(!h)return;const z=Ma(d,h),R=[N,...z||[]].filter(Boolean).slice(0,1);return Ul(d,h,R),R},_a=(d,h,N)=>{if(!h||!N)return;const z=hl(d,h),R=hl(d,N);try{const B=sessionStorage.getItem(z);if(!B)return;const le=(()=>{try{const xe=JSON.parse(B);return Array.isArray(xe)?xe:[]}catch{return[]}})(),ne=Ma(d,N),H=[...le,...ne||[]].filter(Boolean).sort((xe,_e)=>Number((_e==null?void 0:_e.ts)||0)-Number((xe==null?void 0:xe.ts)||0)).slice(0,1);sessionStorage.setItem(R,JSON.stringify(H)),sessionStorage.removeItem(z)}catch{}},Ra=a.ref(!1),Va=a.ref(!1),qa=a.ref([]),xa=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const ae=a.ref(!1),Ye=a.ref([]),pe=a.ref(1),Ca=a.ref(new Map),qe=a.ref(new Map),G=a.ref(0),aa=a.ref(!1),Ge=a.ref([]),Be=a.ref([]),El=d=>{var h;try{const N=(h=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:h.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return(N==null?void 0:N.find(z=>(z==null?void 0:z.prop)===d||(z==null?void 0:z.label)===d))||null}catch{return null}},sl=d=>{const h=El(d),N=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return pl.getComponent(N)||pl.getComponent("Input")},kl=a.ref([]),Ga=a.ref(null),Qa=a.ref([]),Na=a.ref(null),he=a.ref(""),Da=a.ref(!1),Sl=a.ref([]),Pl=a.ref(""),jl=a.ref(!1),or=a.ref([]),gr=a.ref([]),Tl=a.ref([]),sr=a.ref(null),Tr=a.ref([]),Rl=a.ref("");a.computed(()=>{var d;try{const h=(d=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),N=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&N.set(z.label,z.prop)}),N.get("编号")||""}catch{return""}});const rr=a.computed(()=>{var d;try{const h=(d=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),N=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&N.set(z.label,z.prop)}),N.get("名称")||""}catch{return""}}),en=a.computed(()=>{var d;try{const h=(d=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),N=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&N.set(z.label,z.prop)}),N.get("制造厂")||""}catch{return""}}),Or=()=>{jl.value=!1,or.value=[],gr.value=[],Tl.value=[],sr.value=null,Tr.value=[],Rl.value=""},zr=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Sr=(d,h)=>{const N=(d==null?void 0:d.ocrRow)||{};for(const R of Object.keys(N))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||zr(N[R])&&(h[R]=N[R]);const z=Sa.value.find(R=>R.id===h.id);if(z)for(const R of Object.keys(N))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||zr(N[R])&&(z[R]=N[R]);da.value&&da.value.set(h.id,h),Ea(u==null?void 0:u.index,h.id,d==null?void 0:d.versionItem),gr.value=[...gr.value||[],JSON.parse(JSON.stringify(h))]},Mr=async(d,h=null)=>{var N,z,R,B,le,ne,H;try{const xe=(N=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:N.filter(ma=>(ma==null?void 0:ma.type)!=="operate"&&(ma==null?void 0:ma.label)!=="操作"&&(ma==null?void 0:ma.prop)!=="operate"),_e=new Map;xe==null||xe.forEach(ma=>{ma!=null&&ma.label&&(ma!=null&&ma.prop)&&_e.set(ma.label,ma.prop)});const Pe=_e.get("系统编号")||_e.get("编号");if(!Pe){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Re=h||sr.value;if((Array.isArray(Re==null?void 0:Re.result)?Re.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let ma=0;ma<d.length;ma++){const Ka=d[ma],Za=Ka[Pe];if(!Za){console.warn(`第 ${ma+1} 条匹配行缺少系统编号,跳过`);continue}const sa=`设备管理/试验设备/${Za}`,il=await Y.getPageDataApi({platId:parseInt((z=Vl.value)==null?void 0:z.plat_id),pageName:sa});if(!((R=il==null?void 0:il.data)!=null&&R.result)||!Array.isArray(il.data.result)){console.warn(`未找到详情页数据: ${sa}`);continue}const ka=il.data.result.find(na=>(na==null?void 0:na.property_name)==="校检记录");if(!ka){console.warn(`详情页 ${sa} 中未找到校检记录表`);continue}const Ja=(B=ka.contents)==null?void 0:B.find(na=>(na==null?void 0:na.key)&&na.key.startsWith("content_"));if(!Ja||!Ja.key){console.warn("校检记录表中未找到 content item");continue}const ce=Ja.key,Ta=Array.isArray(Ja.value)?Ja.value:[];if(Ta.length>=5){const ge=[...Ta].sort((ta,Ia)=>{const fl=Number((ta==null?void 0:ta.create_time)||0),ll=Number((Ia==null?void 0:Ia.create_time)||0);return fl-ll})[0];ge!=null&&ge.id&&await Y.pageBatchDeleteApi({platId:parseInt((le=Vl.value)==null?void 0:le.plat_id),changeContents:[{tableName:ce,tableContents:[{id:ge.id}]}]})}const ca=(ne=xe==null?void 0:xe.find(na=>(na==null?void 0:na.label)==="证书附件"))==null?void 0:ne.prop,Ba=String(Date.now()),Aa={id:Ba},T=Ta[0]||{},K=new Date().toISOString().split("T")[0];if(Object.keys(T||{}).forEach(na=>{if(na!=="id"){if(na==="证书附件"){Aa[na]="";return}if(na==="校检日期"||na==="检校日期"){Aa[na]=Ka[na]||Ka.校检日期||Ka.检校日期||K;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(na)){Aa[na]=Ka[na]??"";return}Aa[na]=Ka[na]??""}}),ca&&Ka[ca]){const na=Ka[ca];if(Array.isArray(na)&&na.length>0)Aa.证书附件=JSON.stringify(na.map(ge=>({url:(ge==null?void 0:ge.url)||"",name:(ge==null?void 0:ge.name)||(ge==null?void 0:ge.fileName)||"",fileName:(ge==null?void 0:ge.fileName)||(ge==null?void 0:ge.name)||""})).filter(ge=>ge.url||ge.name));else if(typeof na=="string")try{const ge=JSON.parse(na);Aa.证书附件=na}catch{Aa.证书附件=JSON.stringify([{url:na,name:na,fileName:na}])}}console.log(ce,"tableName","inspectionRecordRow",Aa),await Y.pageBatchAddApi({platId:parseInt((H=Vl.value)==null?void 0:H.plat_id),changeContents:[{tableName:ce,tableContents:[Aa]}]});const Me=ka==null?void 0:ka.object_id;if(Me&&Ba){const na=ca&&Ka[ca]?Ka[ca]:null;let ge=[],ta="",Ia=!1;if(Array.isArray(na)&&na.length>0){ge=na.map(gl=>({name:(gl==null?void 0:gl.name)||(gl==null?void 0:gl.fileName)||"",url:(gl==null?void 0:gl.url)||""})).filter(gl=>gl.url||gl.name);const ll=na[0];ta=(ll==null?void 0:ll.url)||"";const yl=(ll==null?void 0:ll.name)||(ll==null?void 0:ll.fileName)||"";Ia=String(yl).toLowerCase().endsWith(".pdf")||String(ta).toLowerCase().endsWith(".pdf")}else if(typeof na=="string")try{const ll=JSON.parse(na);Array.isArray(ll)?(ge=ll.map(yl=>({name:(yl==null?void 0:yl.name)||(yl==null?void 0:yl.fileName)||"",url:(yl==null?void 0:yl.url)||""})).filter(yl=>yl.url||yl.name),ge.length>0&&(ta=ge[0].url||"",Ia=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(ta).toLowerCase().endsWith(".pdf"))):(ta=na,Ia=String(na).toLowerCase().endsWith(".pdf"))}catch{ta=na,Ia=String(na).toLowerCase().endsWith(".pdf")}const fl={ts:Date.now(),versionId:String(Date.now())+"_"+String(ma),label:new Date().toLocaleString(),certType:Ka.证书类型||"",certNo:Ka.证书编号||"",fileType:Ia?"pdf":"image",sourceUrl:Ia?ta:"",images:ge};Ea(Me,Ba,fl)}}}catch(xe){console.error("向校检记录表插入OCR识别结果失败:",xe),al.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Ir=d=>{const h=Array.isArray(d)?d:or.value||[];if(h.length===0){Or();return}if(h.find(B=>(B==null?void 0:B.__decision)==="replace"&&!(B!=null&&B.selectedTargetId))){al.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(B=>{var ne;const le=B==null?void 0:B.__decision;if(!(!le||le==="skip")){if(le==="add"){Ea(u==null?void 0:u.index,(ne=B==null?void 0:B.ocrRow)==null?void 0:ne.id,B==null?void 0:B.versionItem),Tl.value=[...Tl.value||[],B.ocrRow];return}if(le==="replace"){const H=B==null?void 0:B.selectedTargetId,xe=(Ce.value||[]).find(_e=>String(_e==null?void 0:_e.id)===String(H));if(!xe)return;Sr(B,xe)}}}),(gr.value||[]).length>0&&(Ce.value=[...Ce.value||[]]),(Tl.value||[]).length>0&&(Ce.value=[...Ce.value||[],...Tl.value||[]],Sa.value=[...Sa.value||[],...Tl.value||[]],(Tl.value||[]).forEach(B=>{var le,ne;return(ne=(le=da.value)==null?void 0:le.set)==null?void 0:ne.call(le,B.id,B)})),Yr.value=Ce.value;const z=gr.value||[],R=Tl.value||[];if(z.length>0&&(Te("change",{buttonName:"编辑",singleContent:z,content:Ce.value,relatedContents:u==null?void 0:u.related,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,columns:Ee.value,name:u==null?void 0:u.compName}),Mr(z)),R.length>0){const B=sr.value;Te("change",{buttonName:"OCR批量新增",content:Ce.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:Ee.value,ocrRows:R,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(B==null?void 0:B.result)?B.result:[]).map(le=>(Array.isArray(le==null?void 0:le.图片信息)?le.图片信息:[]).map(ne=>({url:(ne==null?void 0:ne.url)||"",name:(ne==null?void 0:ne.name)||"",fileName:(ne==null?void 0:ne.name)||""})).filter(ne=>ne.url)),ocrResult:B,matchedCount:(z||[]).length,newCount:(R||[]).length})}al.ElMessage.success("已提交候选处理结果"),Or()},Br=sc(),Pr=a.computed(()=>Br.getConfig()),Lr=a.ref(),cr=a.ref(),bn=lc(ol.pinia),Yr=a.ref(),nn=a.ref(0),Tn=Y.useUnit(ol.pinia),{selectIndex:kn,selectMenu:mn,selectTitle:mr}=ol.storeToRefs(Tn),{selectString:ql}=ol.storeToRefs(bn),pr=Y.useLoginState(ol.pinia),{loginUserInfo:Vl}=ol.storeToRefs(pr),Gl=a.ref(720),Ol=a.ref(!1),yr=a.ref(!1),ir=a.ref([]),Hl=a.ref(),Vr=a.ref(!0),Fr=a.ref(!0);a.ref([]);const xn=a.inject("contentRef");a.provide("contentRef",xn),a.provide("getSuggestListForCell",mu),a.provide("getSuggestLoadingForCell",(d,h)=>{const N=`${d==null?void 0:d.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return m.value.get(N)||!1}),a.watch(()=>{var d;return(d=Ce.value)==null?void 0:d.length},d=>{te.total=d}),a.watch(()=>$.value,async()=>{var h,N,z,R,B,le,ne,H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa;if(((h=$.value)==null?void 0:h.length)===0||!((N=u==null?void 0:u.itemData)!=null&&N.find(il=>(il==null?void 0:il.key)==="columnPath"))||!((z=u==null?void 0:u.itemData)!=null&&z.find(il=>(il==null?void 0:il.key)==="pageColumn")))return;let d=(xe=(H=(ne=(le=(B=(R=u==null?void 0:u.itemData)==null?void 0:R.find(il=>(il==null?void 0:il.key)==="pageColumn"))==null?void 0:B.contents)==null?void 0:le.split("["))==null?void 0:ne[1])==null?void 0:H.split("]"))==null?void 0:xe[0];((Ke=(Re=(Pe=(_e=u==null?void 0:u.itemData)==null?void 0:_e.find(il=>(il==null?void 0:il.key)==="pageColumn"))==null?void 0:Pe.contents)==null?void 0:Re.split("["))==null?void 0:Ke[0])+((Ka=(ma=$.value)==null?void 0:ma.find(il=>(il==null?void 0:il.key)===d))==null?void 0:Ka.value),(sa=(Za=u==null?void 0:u.itemData)==null?void 0:Za.find(il=>(il==null?void 0:il.key)==="pageGroup"))==null||sa.contents,$t(compData,u.allMapContents)},{deep:!0});const on=d=>{var N,z,R,B,le;const h=(z=(N=Ee.value)==null?void 0:N.filter(ne=>ne==null?void 0:ne.mainKey))==null?void 0:z.map(ne=>ne==null?void 0:ne.prop);if(h.length===0){const ne=(R=Ee.value)==null?void 0:R.map(H=>H==null?void 0:H.prop);return(B=ne==null?void 0:ne.map(H=>d==null?void 0:d[H]))==null?void 0:B.join("|")}return(le=h==null?void 0:h.map(ne=>d==null?void 0:d[ne]))==null?void 0:le.join("|")},Zn=d=>{var ne,H,xe,_e,Pe;const h=(H=(ne=Ee.value)==null?void 0:ne.filter(Re=>Re==null?void 0:Re.required))==null?void 0:H.map(Re=>Re==null?void 0:Re.prop),N=[];if(d==null||d.forEach(Re=>{h==null||h.forEach(Ke=>{const ma=Re[Ke];(ma==null||ma==="")&&(N.includes(Ke)||N.push(Ke))})}),N.length>0)return al.ElMessage.warning(`请填写必填项:${N.join("、")}`);const z=new Map,R=new Map;(xe=Ce.value)==null||xe.forEach(Re=>{const Ke=on(Re);z.set(Ke,Re)}),d==null||d.forEach(Re=>{const Ke=on(Re);R.set(Ke,Re)});const B=d==null?void 0:d.filter(Re=>z.has(on(Re))),le=(_e=Ce.value)==null?void 0:_e.filter(Re=>R.has(on(Re)));return(B==null?void 0:B.length)>0&&(i.columns=(Pe=Ee.value)==null?void 0:Pe.filter(Re=>(Re==null?void 0:Re.label)!=="操作"),i.existRows=le,i.tableData=B,i.show=!0),d==null?void 0:d.filter(Re=>{const Ke=on(Re);return!z.has(Ke)})},An=a.ref(""),Qn=a.ref(null),wn=async()=>{var d,h,N,z,R,B;try{const le=await Y.quoteApi({related:[{menus:ba.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=Vl.value)==null?void 0:d.plat_id)});if(((h=le==null?void 0:le.data)==null?void 0:h.code)===200){Qn.value=(N=le==null?void 0:le.data)==null?void 0:N.result;const ne=(z=Ee.value)==null?void 0:z.map(_e=>(_e==null?void 0:_e.prop)||(_e==null?void 0:_e.label)),H=zn(ne,(R=le==null?void 0:le.data)==null?void 0:R.result),xe=H==null?void 0:H.flatMap(_e=>_e==null?void 0:_e.quote);(xe==null?void 0:xe.length)>0&&(An.value=(B=xe==null?void 0:xe.map(_e=>_e==null?void 0:_e.menus))==null?void 0:B.join("、"))}}catch(le){throw new Error(le)}};function zn(d,h){var N;return(N=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some(R=>R.words&&Array.isArray(R.words)?R.words.some(B=>d.includes(B)):!1):!1))==null?void 0:N.map(z=>{const R={...z};return R.struct&&Array.isArray(R.struct)&&(R.struct=R.struct.filter(B=>B.words&&Array.isArray(B.words)?B.words.some(le=>d.includes(le)):!1)),R})}const Fn=async(d,h)=>{var N,z,R,B,le,ne,H,xe,_e,Pe;try{Qn.value||await wn();const Re=h==null?void 0:h.map(Ja=>{const ce=Object.keys(Ja),Ta={};return ce.forEach((ca,Ba)=>{Ta[d[Ba]]=Ja[ca]}),Ta}),Ke=Zn(Re);if(!Ke||(Ke==null?void 0:Ke.length)===0)return;const ma=[];let Ka=(Ce.value||[]).slice();(Ke||[]).forEach(Ja=>{const ce={...Ja};try{ce.sort=In(0,Ka)}catch{}ma.push(ce),Ka.unshift(ce)});let Za=await Y.quoteApi({platId:parseInt((N=Vl==null?void 0:Vl.value)==null?void 0:N.plat_id),type:"fatherSyncs",related:[{menus:ba.value,groups:""},{menus:ba.value,groups:u==null?void 0:u.compName}]});Za=(z=Za==null?void 0:Za.data)==null?void 0:z.result;let sa=Za==null?void 0:Za.map(Ja=>({tableName:"content_"+(Ja==null?void 0:Ja.id),tableContents:ma==null?void 0:ma.map((ce,Ta)=>({id:Ta,...ce}))})),il=[{tableName:(R=u==null?void 0:u.related)==null?void 0:R.find(Ja=>Ja==null?void 0:Ja.includes("content")),tableContents:ma==null?void 0:ma.map((Ja,ce)=>({id:ce,...Ja}))}];il=[...il,...sa];const ka=await Y.pageBatchAddApi({platId:parseInt((B=Vl.value)==null?void 0:B.plat_id),changeContents:il});if(((le=ka==null?void 0:ka.data)==null?void 0:le.code)===200){const Ja={buttonName:"新增",columns:Ee.value,fixContent:ma==null?void 0:ma.map((Ta,ca)=>({id:ca,...Ta})),relatedContents:u==null?void 0:u.related};await xt(Ja),((ne=i==null?void 0:i.existRows)==null?void 0:ne.length)>0?al.ElMessage.success("部分数据导入成功"):al.ElMessage.success("数据导入成功");let ce=[];il==null||il.forEach(Ta=>{var ca;(ca=Ta==null?void 0:Ta.tableContents)==null||ca.forEach(Ba=>{ce.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ba),request_result:"{}",is_delete:!1,request_table:Ta==null?void 0:Ta.tableName,request_type:"export"})})}),await Y.pageBatchAddApi({platId:parseInt((H=Vl==null?void 0:Vl.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:ce}]})}else{let Ja=[];il==null||il.forEach(ce=>{var Ta;(Ta=ce==null?void 0:ce.tableContents)==null||Ta.forEach(ca=>{Ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ca),request_result:"{}",is_delete:!1,request_table:ce==null?void 0:ce.tableName,request_type:"error"})})}),await Y.pageBatchAddApi({platId:parseInt((xe=Vl==null?void 0:Vl.value)==null?void 0:xe.plat_id),changeContents:[{tableName:"log",tableContents:Ja}]}),al.ElMessage.error("数据导入响应失败")}}catch(Re){throw al.ElMessage.error("数据导入处理失败"),await Y.pageBatchAddApi({platId:parseInt((_e=Vl==null?void 0:Vl.value)==null?void 0:_e.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(Re),is_delete:!1,request_table:(Pe=u==null?void 0:u.related)==null?void 0:Pe.find(Ke=>Ke==null?void 0:Ke.includes("content")),request_type:"error"}]}]}),new Error(Re)}},an=async d=>{var B,le,ne,H,xe,_e,Pe;let h=be.value;h!=null&&h.find(Re=>(d==null?void 0:d.key)===(Re==null?void 0:Re.key))&&(h=h==null?void 0:h.filter(Re=>(d==null?void 0:d.key)!==(Re==null?void 0:Re.key))),h.push({key:d==null?void 0:d.key,value:[(le=d==null?void 0:d.value)==null?void 0:le[((B=d==null?void 0:d.value)==null?void 0:B.length)-1]]});let N=De.value;N=N==null?void 0:N.map(Re=>{var Ke,ma;return(Re==null?void 0:Re.type)==="Select"&&(d==null?void 0:d.key)===(Re==null?void 0:Re.prop)&&Array.isArray(Re.value)&&(Ke=Re.value)!=null&&Ke.every(Ka=>typeof Ka=="string")&&(Re.selectValue=(ma=h==null?void 0:h.find(Ka=>(Ka==null?void 0:Ka.key)===(Re==null?void 0:Re.prop)))==null?void 0:ma.value),Re});let z=(H=(ne=N==null?void 0:N.find(Re=>(Re==null?void 0:Re.prop)===(d==null?void 0:d.key)))==null?void 0:ne.optionUrl)==null?void 0:H.menuId,R=N==null?void 0:N.find(Re=>(Re==null?void 0:Re.prop)===(d==null?void 0:d.key));if(z){let Re=await yt(R==null?void 0:R.optionUrl,z),Ke,ma=F.value,Ka=(Pe=(_e=(xe=De.value)==null?void 0:xe.find(Za=>{var sa;return(sa=R==null?void 0:R.optionUrl)==null?void 0:sa.menuId}))==null?void 0:_e.selectValue)==null?void 0:Pe[0];if(Re==null||Re.forEach(Za=>{var sa,il,ka,Ja,ce,Ta,ca,Ba,Aa,T;if(z){let K=(il=(sa=De.value)==null?void 0:sa.find(na=>{var ge,ta;return((ge=R==null?void 0:R.optionUrl)==null?void 0:ge.menuId)===((ta=na==null?void 0:na.optionUrl)==null?void 0:ta.menuId)}))==null?void 0:il.prop,Me=(Ja=(ka=N==null?void 0:N.find(na=>(na==null?void 0:na.prop)===K))==null?void 0:ka.selectValue)==null?void 0:Ja[0];K!=null&&K.includes("·")&&(K=(ce=K==null?void 0:K.split("·"))==null?void 0:ce[0],Me=(Aa=(Ba=(ca=d==null?void 0:d.value)==null?void 0:ca[((Ta=d==null?void 0:d.value)==null?void 0:Ta.length)-1])==null?void 0:Ba.split(" "))==null?void 0:Aa[0]),ma!=null&&ma.find(na=>(na==null?void 0:na.value)===Ka)?Ke=(T=ma==null?void 0:ma.find(na=>(na==null?void 0:na.value)===Ka))==null?void 0:T.objectValue:Za[K]===Me&&(Ke=Za)}}),Ke){let Za=N;Za=Za==null?void 0:Za.map(sa=>{var il,ka,Ja,ce,Ta,ca;return z&&(Ke!=null&&Ke[sa==null?void 0:sa.prop])&&ze.value==="新增"&&(sa==null?void 0:sa.prop)!==(R==null?void 0:R.prop)?sa.value=(Ke==null?void 0:Ke[sa==null?void 0:sa.prop])||(Ke==null?void 0:Ke[(ce=(Ja=(ka=(il=sa==null?void 0:sa.optionUrl)==null?void 0:il.groupSelect)==null?void 0:ka[1])==null?void 0:Ja.replaceAll("[",""))==null?void 0:ce.replaceAll("]","")]):sa.value=(ca=(Ta=De.value)==null?void 0:Ta.find(Ba=>(Ba==null?void 0:Ba.prop)===(sa==null?void 0:sa.prop)))==null?void 0:ca.value,sa}),De.value=Za}}be.value=h},Mn=async(d,h)=>{var N,z,R,B,le;if((N=d==null?void 0:d.toString())!=null&&N.includes(".txt")||(z=d==null?void 0:d.toString())!=null&&z.includes(".cpt")||(R=d==null?void 0:d.toString())!=null&&R.includes(".cyd")){const ne=await al.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),H=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});let xe=URL.createObjectURL(H);re.value=[{name:(le=d==null?void 0:d.split("/"))==null?void 0:le[((B=d==null?void 0:d.split("/"))==null?void 0:B.length)-1],blobUrl:xe}],Ha.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Te("routeUrl",{isEdit:!1,routerUrl:h})};a.onBeforeUnmount(()=>{Fr.value=!1;let d=nn.value;nn.value=d+1});const _n=a.reactive({prop:"",order:null}),Gr=a.computed(()=>{const d=(Ce.value??[]).slice(),h=_n.prop||Z.prop,N=_n.order||Z.order;if(!h||!N)return d;const z=N==="ascending",R=le=>{if(h)return le&&Object.prototype.hasOwnProperty.call(le,h)?le[h]:h.includes(".")?h.split(".").reduce((ne,H)=>ne==null?ne:ne[H],le):le==null?void 0:le[h]},B=le=>{if(le==null)return{ok:!1,value:NaN};if(typeof le=="number")return{ok:Number.isFinite(le),value:le};const ne=String(le).trim();if(ne==="")return{ok:!1,value:NaN};const H=ne.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(H))return{ok:!1,value:NaN};const xe=Number(H);return{ok:Number.isFinite(xe),value:xe}};return d.sort((le,ne)=>{const H=R(le),xe=R(ne);if(H==null&&xe==null)return 0;if(H==null)return z?-1:1;if(xe==null)return z?1:-1;const _e=B(H),Pe=B(xe);if(_e.ok&&Pe.ok)return z?_e.value-Pe.value:Pe.value-_e.value;const Re=ce=>{if(ce==null)return{ok:!1,value:NaN};const Ta=String(ce).trim();if(Ta==="")return{ok:!1,value:NaN};const ca=Ta.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ca)return{ok:!1,value:NaN};const Ba=ca[1]?-1:1,Aa=Number(ca[2]),T=Number(ca[3]),K=Number(ca[4]);return[Aa,T,K].some(Me=>Number.isNaN(Me))?{ok:!1,value:NaN}:T>=60||K>=60?{ok:!1,value:NaN}:{ok:!0,value:Ba*(Aa*3600+T*60+K)}},Ke=Re(H),ma=Re(xe);if(Ke.ok&&ma.ok)return z?Ke.value-ma.value:ma.value-Ke.value;const Ka=new Date(H).getTime(),Za=new Date(xe).getTime(),sa=!Number.isNaN(Ka),il=!Number.isNaN(Za);if(sa&&il)return z?Ka-Za:Za-Ka;const ka=String(H),Ja=String(xe);return z?ka.localeCompare(Ja):Ja.localeCompare(ka)})}),jn=a.computed(()=>{var N;const d=(te.currentPage-1)*te.pageSize,h=d+te.pageSize;return Te("getSliceContLength",te),(N=Gr.value)==null?void 0:N.slice(d,h)}),yn=d=>{te.currentPage=d,Te("getSliceContLength",te)},zo=d=>{var z;te.pageSize=d;const h=((z=Ce.value)==null?void 0:z.length)??0,N=d>0?Math.ceil(h/d):1;te.currentPage>N&&(te.currentPage=N||1,al.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Te("getSliceContLength",te)},Ri=({prop:d,order:h})=>{_n.prop=d,_n.order=h,te.currentPage=1};function $i(d){const h=[];function N(z,R=""){z.forEach(B=>{B.children&&B.children.length>0?N(B.children,B.prop):h.push(B.prop)})}return N(d),h}const Cn=(d,h)=>{var ne,H,xe,_e;let N=(H=(ne=Ee.value)==null?void 0:ne.map(Pe=>Pe==null?void 0:Pe.prop))==null?void 0:H.filter(Pe=>Pe!=="operate");((xe=Ee.value)==null?void 0:xe.some(Pe=>{var Re;return((Re=Pe==null?void 0:Pe.children)==null?void 0:Re.length)>0}))&&(N=$i((_e=Ee.value)==null?void 0:_e.filter(Pe=>(Pe==null?void 0:Pe.prop)!=="operate")));let R;if(R=(d==null?void 0:d.length)===(N==null?void 0:N.length)?d:d.slice(0,N==null?void 0:N.length),!(R==null?void 0:R.every(Pe=>N==null?void 0:N.find(Re=>Pe===Re))))return al.ElMessage.error("导入的数据表头不匹配");Fn(R,h)},Vi=(d,h)=>{var R;const N=d==null?void 0:d.filter(B=>B!=="序号"),z=h==null?void 0:h.map(B=>{const le=Object.entries(B);return le.shift(),Object.fromEntries(le)});Qe.setRefreshCurStructure(!1),((R=Ee.value)==null?void 0:R.length)===0||Cn(N,z)},Pi=(d,h,N,z)=>{const R=[],B=[],le=xe=>Object.keys(xe).length;for(const xe in d)if(d[xe]!==void 0){const _e=d[xe],Pe=[];for(const[Re,Ke]of Object.entries(_e))Pe.push(Ke),B.length<le(_e)&&B.push(Re);R.push(Pe)}R.unshift(B);const ne=oa.utils.aoa_to_sheet(R),H=oa.utils.book_new();oa.utils.book_append_sheet(H,ne,z),oa.writeFileSync(H,`${h}.xlsx`),ir.value=[]},Go=async(d,h,N,z=!1,R)=>{try{Qe.setRefreshCurStructure(!1)}catch(B){al.ElMessage.error(B)}},Yo=async(d,h)=>{await Go()},Jo=async(d,h)=>{await Go("columnType",h,d,!1)},jr=async({newRow:d,targetIndex:h})=>{var R;if(!Le(u.config,{type:ra.TABLE}))return;const z=(te.currentPage-1)*te.pageSize+(h??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=In(z,Ce.value||[]))}catch{}Ce.value.splice(z,0,d),await a.nextTick(),y.value.has(d.id)||y.value.set(d.id,Y.cloneDeep(d)),Ce.value=(R=Ce.value)==null?void 0:R.map(B=>({...B,tableEditType:(B==null?void 0:B.id)===d.id?"edit":(B==null?void 0:B.tableEditType)??"text"})),c.value.add(d.id),Ol.value=!0},Fi=(d,h,N,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach(R=>{const B=R==null?void 0:R.prop;if(!B)return;let le=d==null?void 0:d[B];if(le==null||String(le).trim()==="")return;le=String(le);const ne=new Set([...(Array.isArray(N)?N:[]).filter(_e=>(_e==null?void 0:_e.id)!==(d==null?void 0:d.id)).map(_e=>_e==null?void 0:_e[B]).filter(_e=>_e!=null).map(_e=>String(_e)),...(Array.isArray(z)?z:[]).map(_e=>_e==null?void 0:_e[B]).filter(_e=>_e!=null).map(_e=>String(_e))]);if(!ne.has(le))return;let H=1,xe="";for(;xe=`${le}(${H})`,!!ne.has(xe);)H++;d[B]=xe}),d),Mo=async()=>{var R,B,le,ne,H,xe,_e,Pe;const d=Array.from(c.value||[]);if(d.length===0)return;const h=(B=oa.getColumnChild((R=Y.cloneDeep(Ee.value))==null?void 0:R.filter(Re=>(Re==null?void 0:Re.label)!=="操作")))==null?void 0:B.filter(Re=>(Re==null?void 0:Re.required)===!0);if((h==null?void 0:h.length)>0)for(let Re=0;Re<d.length;Re++){const Ke=d[Re],ma=(le=Ce.value)==null?void 0:le.find(Ka=>(Ka==null?void 0:Ka.id)===Ke);if(ma)for(let Ka=0;Ka<h.length;Ka++){const Za=h[Ka],sa=Za==null?void 0:Za.prop,il=(Za==null?void 0:Za.label)??sa,ka=ma==null?void 0:ma[sa];if(ka===""||ka===null||ka===void 0||Array.isArray(ka)&&ka.length===0){al.ElMessage.error(`${il}不能为空`);return}}}const N=[],z=[];if(d.forEach(Re=>{var il;const Ke=(il=Ce.value)==null?void 0:il.find(ka=>(ka==null?void 0:ka.id)===Re);if(!Ke)return;if(Ke!=null&&Ke._isTemp){const Ja=(oa.getAllLeafNodes(Ee.value)||[]).filter(T=>(T==null?void 0:T.mainKey)===!0||(T==null?void 0:T.isMainKey)===!0),ce=Ce.value.findIndex(T=>(T==null?void 0:T.id)===Re),Ta=ce>=0?ce+1:Ce.value.length+1;Fi(Ke,Ja,Ce.value,N);const ca={id:Ta.toString()};(Ke==null?void 0:Ke.sort)!==void 0&&(Ke==null?void 0:Ke.sort)!==null&&String(Ke.sort).trim()!==""?ca.sort=String(Ke.sort):ca.sort=In(ce>=0?ce:Ce.value.length-1,Ce.value||[]),(oa.getAllLeafNodes(Ee.value)||[]).filter(T=>(T==null?void 0:T.type)!=="operate"&&(T==null?void 0:T.label)!=="操作"&&(T==null?void 0:T.prop)!=="operate").forEach(T=>{const K=T==null?void 0:T.prop;if(K){const Me=Ke[K];Me!==void 0?ca[K]=Me??"":ca[K]=""}}),N.push(ca);return}const Ka=(oa.getAllLeafNodes(Ee.value)||[]).filter(ka=>(ka==null?void 0:ka.type)!=="operate"&&(ka==null?void 0:ka.label)!=="操作"&&(ka==null?void 0:ka.prop)!=="operate"),Za=new Set(Ka.map(ka=>ka==null?void 0:ka.prop).filter(Boolean)),sa={};for(const ka of Za)Object.prototype.hasOwnProperty.call(Ke,ka)&&(sa[ka]=Ke[ka]);z.push({id:Ke.id,value:{tableData:sa}})}),Qe.setTableLoading(u==null?void 0:u.index),z.length>0){const Re=z.map(ma=>{const Ka={id:ma.id,...ma.value.tableData};return delete Ka._isOCRRow,delete Ka._ocrTableId,delete Ka._isTemp,delete Ka.tableEditType,delete Ka.index,Ka}),Ke=[{tableName:(ne=u==null?void 0:u.related)==null?void 0:ne.find(ma=>ma==null?void 0:ma.includes("content")),tableContents:Re}];try{await Y.pageBatchUpdateApi({platId:parseInt((H=Vl.value)==null?void 0:H.plat_id),changeContents:Ke})}catch(ma){al.ElMessage.error(((_e=(xe=ma==null?void 0:ma.response)==null?void 0:xe.data)==null?void 0:_e.message)||(ma==null?void 0:ma.message)||"保存失败"),Qe.setTableLoading(!1);return}}if(N.length>0){const Re={fixContent:N,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:Ee.value};Te("change",Re)}al.ElMessage.success("保存成功"),c.value.clear(),y.value.clear(),Ce.value=(Pe=Ce.value)==null?void 0:Pe.map(Re=>({...Re,tableEditType:"text"})),Ol.value=!1,Qe.setRefreshCurStructure(!0)},ji=()=>{var h;const d=Array.from(c.value||[]);if(d.length===0){Ol.value=!1;return}d.forEach(N=>{var B,le;const z=y.value.get(N),R=(B=Ce.value)==null?void 0:B.find(ne=>(ne==null?void 0:ne.id)===N);if(R!=null&&R._isTemp){Ce.value=Ce.value.filter(ne=>(ne==null?void 0:ne.id)!==R.id);return}if(z){const ne=(le=Ce.value)==null?void 0:le.findIndex(H=>(H==null?void 0:H.id)===N);ne!==-1&&(Ce.value[ne]={...Ce.value[ne],...z})}}),c.value.clear(),y.value.clear(),Ce.value=(h=Ce.value)==null?void 0:h.map(N=>({...N,tableEditType:"text"})),Ol.value=!1},Io=a.ref(!1),Xo=async d=>{var R,B,le,ne;if(!Ol.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const h=d==null?void 0:d.target;if(((B=(R=h==null?void 0:h.tagName)==null?void 0:R.toLowerCase)==null?void 0:B.call(R))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(h)||((le=h==null?void 0:h.blur)==null||le.call(h),(ne=d.preventDefault)==null||ne.call(d),await a.nextTick(),await Zo())},Zo=async()=>{if(V.value){Ol.value=!1;return}if(!Io.value){Io.value=!0;try{Array.from(c.value||[]).length>0?await Mo():Ol.value=!1}finally{Promise.resolve().then(()=>{Io.value=!1})}}},Hi=d=>{ir.value=d},Ui=(d,h)=>{Hl.value===h?Vr.value=!1:Vr.value=!0,Hl.value=h==null?void 0:h.changeProp},Qo=d=>{if(!d)return;const{item:h,value:N}=d,z=De.value.find(R=>R.prop==h.prop);z&&z.contents.push({label:N,value:N})},En=a.computed(()=>{var N,z,R;const d=(N=Ee.value)==null?void 0:N.some(B=>B==null?void 0:B.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(R=(z=Ee.value)==null?void 0:z.filter(B=>(B==null?void 0:B.label)!=="操作"))==null?void 0:R.map(B=>({...B,filterable:!!(B!=null&&B.filterable),showSummary:!!(B!=null&&B.showSummary),operable:!!(B!=null&&B.operable),fixed:B==null?void 0:B.fixed}))}),Sn=async(d,h,N)=>{const z=Y.cloneDeep(Ee.value);await a.nextTick();const R=z==null?void 0:z.map(le=>(N==null?void 0:N.label)===(le==null?void 0:le.label)?{...le,[h]:d}:le),B=Hn(R);await ps(u.index,B),Ee.value=R,Q.value=B},Hn=d=>{var R;const h=d||[];return((R=oa.getAllLeafNodes(h)||[])==null?void 0:R.filter(B=>(B==null?void 0:B.prop)&&(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate")).map(B=>{const{prop:le}=B;return jf(le,B)})},qi=async d=>{let h=await Uf(u.index);h||(h=Hn(d)),Q.value=h},ei=async(d,h)=>{const N=Y.cloneDeep(Ee.value),z=le=>Array.isArray(le)?le.map(ne=>{const H=Array.isArray(ne==null?void 0:ne.children)&&ne.children.length>0,xe={...ne};return(xe==null?void 0:xe.prop)==="operate"||(xe==null?void 0:xe.label)==="操作"||(xe==null?void 0:xe.type)==="operate"?(xe.sortable=!1,xe.filterable=!1,xe.operable=!1):xe.sortable=H?!1:!!d,H&&(xe.children=z(xe.children)),xe}):le,R=z(N),B=Hn(R);await ps(u.index,B),Ee.value=R,Q.value=B,await a.nextTick(),nn.value=nn.value+1},ai=()=>{Xe.value=!1},li=d=>{Te("clickTrigger",d)},Un=async d=>{var B,le,ne,H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il,ka;const h=d==null?void 0:d.row,N=d==null?void 0:d.rowData,z=d==null?void 0:d.suffix;if((B=h==null?void 0:h.toString())!=null&&B.includes(".urdf")||d!=null&&d.isUrdf||z!=null&&z.includes(".urdf")){if(h.includes(",")){al.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(P(h)){const ce={files:[ke(h)],data:{}};Se(ce);return}He.value=[{url:h,extension:ye(h)}],wa.value=!0,ie.value={data:Y.cloneDeep(N)},je.value=!0;return}let R=[];if((le=h==null?void 0:h.toString())!=null&&le.includes(".stl")||(ne=h==null?void 0:h.toString())!=null&&ne.includes(".STL")||(H=h==null?void 0:h.toString())!=null&&H.includes(".obj")||(xe=h==null?void 0:h.toString())!=null&&xe.includes(".mtl")){const Ja=(_e=h==null?void 0:h.toString())==null?void 0:_e.split(","),ce=Ze(Ja),Ta=ce==null?void 0:ce[0];if(P(Ta==null?void 0:Ta.extension)){Se({files:ce,data:{}});return}He.value=ce,wa.value=!1,je.value=!0;return}if((Pe=h==null?void 0:h.toString())!=null&&Pe.includes(".stl")||(Re=h==null?void 0:h.toString())!=null&&Re.includes(".STL")||(Ke=h==null?void 0:h.toString())!=null&&Ke.includes(".obj")||(ma=h==null?void 0:h.toString())!=null&&ma.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let Ja,ce=[],Ta={};if(Array.isArray(h)?Ja=h:Ja=h==null?void 0:h.split(","),Ja==null||Ja.forEach(ca=>{ca.includes(".mtl")?ce.push(ca):Ta.blob=Ta.blob?Ta.blob+","+ca:ca}),(ce==null?void 0:ce.length)>0&&(Ta.mtlBlobs=ce),z&&(Ta.suffix=z),(Za=(Ka=Object.values(Ta))==null?void 0:Ka[0])!=null&&Za.includes("http:"))R.push(Ta);else{const ca=new Blob([Ta.blob],{type:"application/octet-stream;charset=UTF-8"});let Ba=URL.createObjectURL(ca),Aa="";(sa=h==null?void 0:h.split("/"))==null||sa.forEach((T,K)=>{var Me;K===((Me=h==null?void 0:h.split("/"))==null?void 0:Me.length)-1&&(Aa=T)}),(il=Ta.blob)!=null&&il.includes(".stl")&&(Aa=(Aa==null?void 0:Aa.replaceAll(">",""))+".urdf"),re.value=[{name:Aa,blobUrl:Ba}],Ha.value=!0}}else{const Ja=await al.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ce=new Blob([Ja.data],{type:"application/octet-stream;charset=UTF-8"});let Ta=URL.createObjectURL(ce),ca="";if((ka=h==null?void 0:h.split("/"))==null||ka.forEach((Ba,Aa)=>{var T;Aa===((T=h==null?void 0:h.split("/"))==null?void 0:T.length)-1&&(ca=Ba)}),P(ca)){const Ba=j(ca),Aa=ke(h);Se({files:[Aa],data:{trackFileType:Ba}});return}re.value=[{name:ca,blobUrl:Ta}],Ha.value=!0}(R==null?void 0:R.length)>0&&o.setBlobUrls(R)},eo=d=>{var z,R,B,le;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const h=(le=(z=d==null?void 0:d.url)==null?void 0:z.split("."))==null?void 0:le[((B=(R=d==null?void 0:d.url)==null?void 0:R.split("."))==null?void 0:B.length)-1];return(d==null?void 0:d.name)+"."+h},ri=d=>{if(!d)return"未知文件";try{const z=eo(d);if(typeof z=="string"&&z.includes("."))return z}catch{}const h=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",N=(d==null?void 0:d.suffix)||"";return h.includes(".")?h:`${h}${N}`},ni=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const h=d.match(/^(\d+)\_(\d+)$/);if(!h)return d;const N=Number(h[1]),z=Number(h[2]);return!Number.isFinite(N)||!Number.isFinite(z)?d:String(N*1e3+z)},ao=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;const N=Number(h);return Number.isFinite(N)?N:null},Wi=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;if(/^\d+$/.test(h)){const R=Number(h);return Number.isFinite(R)?h.length<=10?R*1e3:R:null}const N=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(N);return Number.isFinite(z)?z:null},oi=(d,h=[])=>{const N=Array.isArray(d)?d.slice():[];if(N.length<=1)return N;const z=new Map((h||[]).map((le,ne)=>[String(le),ne])),R=N.some(le=>ao(le==null?void 0:le.sort)!==null),B=N.map((le,ne)=>({r:le,idx:ne,id:String((le==null?void 0:le.id)??""),sortVal:ao(le==null?void 0:le.sort),createTimeMs:Wi(le==null?void 0:le.create_time),prevIdx:z.has(String(le==null?void 0:le.id))?z.get(String(le==null?void 0:le.id)):Number.POSITIVE_INFINITY}));return B.sort((le,ne)=>{if(R){const _e=le.sortVal,Pe=ne.sortVal;if(_e===null&&Pe!==null)return 1;if(_e!==null&&Pe===null)return-1;if(_e!==null&&Pe!==null&&_e!==Pe)return _e-Pe}const H=le.createTimeMs,xe=ne.createTimeMs;return H!==null&&xe!==null&&H!==xe?xe-H:H!==null&&xe===null?-1:H===null&&xe!==null?1:le.prevIdx!==ne.prevIdx?le.prevIdx-ne.prevIdx:le.idx-ne.idx}),B.map(le=>le.r)},In=(d,h=[])=>{const N=h==null?void 0:h[d-1],z=h==null?void 0:h[d],R=ao(N==null?void 0:N.sort),B=ao(z==null?void 0:z.sort);let le=null;R!==null&&B!==null&&B>R?le=(R+B)/2:R!==null?le=R+1:B!==null?le=Math.max(B-1,0):le=(d??0)+1;const ne=Number(le.toFixed(6));return String(Number.isFinite(ne)?ne:le)},Ki=async d=>{let h=null,N=null;if(d!=null&&d.id){const R=Fo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const B=await Y.platformDownloadFile(d);h=URL.createObjectURL(B.data),N=ri(d)}finally{R.close()}}else if(d!=null&&d.downloadUrl){const R=await fo(),B=Fo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),le=await al.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:R,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{B.close()}),ne=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ne),N=d==null?void 0:d.name}else{const R=await Y.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(R.data),N=eo(d)):h=d==null?void 0:d.url}if(P(h)){const R={row:`${h}`,suffix:ye(N)};Un(R);return}const z={name:N,blobUrl:h};re.value=[z],Ha.value=!0},po=async d=>{let h=null,N=null;if(d!=null&&d.id){const B=await Y.platformDownloadFile(d);h=URL.createObjectURL(B.data),N=ri(d)}else if(d!=null&&d.downloadUrl){const B=await fo(),le=await al.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:B,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ne=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ne),N=d==null?void 0:d.name}else{const B=await Y.platformDownloadFile({url:d==null?void 0:d.url});h=URL.createObjectURL(B.data),N=eo(d)}const z={name:N,blobUrl:h},R=document.createElement("a");R.href=z.blobUrl,R.download=z.name,R.style.display="none",document.body.appendChild(R),R.click(),setTimeout(()=>{document.body.removeChild(R)},100)},Gi=(d,h)=>{var z;if(Object.values(h).length===0)return;let N=d;return Object.values(h).find(R=>{var B,le,ne;return((B=R==null?void 0:R.toString())==null?void 0:B.includes(".txt"))||((le=R==null?void 0:R.toString())==null?void 0:le.includes(".cpt"))||((ne=R==null?void 0:R.toString())==null?void 0:ne.includes(".obj"))})?N=[...d,ua.value]:(z=u==null?void 0:u.config)!=null&&z.allowMove&&(N=[...d,{label:"迁移"}]),N},Oo=()=>{W.value=!0},Yi=a.ref([]),Ji=async(d,h,N=!1)=>{var le,ne,H,xe;if(!d)return;if(N){Ce.value=[...da.value.values()].filter(_e=>Object.values(_e).some(Pe=>typeof Pe=="string"?Pe==null?void 0:Pe.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let z={};for(let _e in d)(d==null?void 0:d[_e])!==""&&(z[_e]=d==null?void 0:d[_e]);if(JSON.stringify(z)==="{}"){Ce.value=Array.from(((le=da.value)==null?void 0:le.values())??[]);return}let R=(ne=u==null?void 0:u.related)==null?void 0:ne.find(_e=>_e==null?void 0:_e.includes("content_")),B=await Y.getFillFind({platId:parseInt((H=Vl==null?void 0:Vl.value)==null?void 0:H.plat_id),tableName:R,params:z});B=(xe=B==null?void 0:B.data)==null?void 0:xe.result,Ce.value=B,Qe.setTableLoading(!1)},ii=async d=>{var N,z;if(!Le(u.config,{type:ra.TABLE})||!d)return;((N=Array.from(c.value))==null?void 0:N.length)>0&&await Mo();const h=d==null?void 0:d.id;h!=null&&(c.value.clear(),y.value.clear(),y.value.has(h)||y.value.set(h,Y.cloneDeep(d)),Ce.value=(z=Ce.value)==null?void 0:z.map(R=>({...R,tableEditType:(R==null?void 0:R.id)===h?"edit":"text"})),c.value.add(h),Ol.value=!0)},qn=async(d,h,N,z)=>{z!=null&&z.isExistChild&&Te("clickMainKey",d,N,Ee.value)},Dn=()=>{Ha.value=!1},ti=d=>{Te("rowClick",d)};a.watch(()=>u.changedContent,()=>{var N,z;if(!u.changedContent)return;let d=(N=Ce.value)==null?void 0:N.map(R=>{var B;return R.id===((B=u.changedContent)==null?void 0:B.id)&&(R={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete R.newId),R});const h=(z=u.itemData)==null?void 0:z.map(R=>((R==null?void 0:R.key)==="tableContents"&&(R.contents=d),R));Ce.value=d,Te("contentChange",{contents:h,index:u.index}),Te("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Lo=()=>{},Xi=async()=>{const d=ba.value,h=sessionStorage.getItem("systemKey"),N=await oa.getItemData(d,h,""),z=(N==null?void 0:N.find(ne=>(ne==null?void 0:ne.name)==="方法明细"))||(N==null?void 0:N[0]),R=(z==null?void 0:z.compData)||[],B=R==null?void 0:R.find(ne=>{const H=ne==null?void 0:ne.key;return H==="formContent"||H==="tableContents"});return B==null?void 0:B.contents},fo=async()=>{const h=al.Local.get("access-token");return h?`Bearer ${h}`:""},Zi=async(d,{token:h,inputData:N}={})=>await al.axios.post(d,N,{headers:{Authorization:h}}).catch(R=>(la.setImportLoading(!1),Promise.reject(R))),Qi=d=>{var z;let h={};const N=[];return h.form={},(z=Y.cloneDeep(d))==null||z.forEach((R,B)=>{var le,ne,H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il,ka;if((R==null?void 0:R.comp)==="Table"){(ne=(le=R==null?void 0:R.compData)==null?void 0:le.find(ca=>(ca==null?void 0:ca.key)==="header"))==null||ne.contents;let Ja=(_e=(xe=(H=R==null?void 0:R.compData)==null?void 0:H.find(ca=>(ca==null?void 0:ca.key)==="tableContents"))==null?void 0:xe.contents)==null?void 0:_e.map(ca=>ca.slice(1));(Ka=(ma=(Ke=(Re=(Pe=R==null?void 0:R.compData)==null?void 0:Pe.find(ca=>(ca==null?void 0:ca.key)==="header"))==null?void 0:Re.contents)==null?void 0:Ke[0])==null?void 0:ma[0])==null||Ka.label;let ce=(sa=(Za=R==null?void 0:R.compData)==null?void 0:Za.find(ca=>(ca==null?void 0:ca.key)==="header"))==null?void 0:sa.contents,Ta=[];Ja==null||Ja.forEach(ca=>{let Ba=[];ca==null||ca.forEach((Aa,T)=>{var Me;let K={};((Me=ce[T])==null?void 0:Me.label)!=="操作"&&(K[ce[T].label]=Aa,Ba.push(K))}),Ta.push(Ba)}),h[R.name]=Ta}else{const Ja=(ka=(il=R.compData)==null?void 0:il.find(ce=>(ce==null?void 0:ce.key)==="formContent"))==null?void 0:ka.contents;Ja==null||Ja.forEach(ce=>{var Ta,ca;if(ce.prop!==""){let Ba=ce==null?void 0:ce.value;Array.isArray(Ba)?Ba=((Ta=Ba==null?void 0:Ba[0])==null?void 0:Ta.oldUrl)||"http://222.92.178.198:62001/"+((ca=Ba==null?void 0:Ba[0])==null?void 0:ca.url):Ba=Ba.toString(),ce={key:(ce==null?void 0:ce.prop)??(ce==null?void 0:ce.label),value:Ba},N.push(ce)}})}}),h.form=oa.getFormContents(N),h},et=d=>{const h=[],N=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(N):h.push(z)};return N(d),h},at=async(d,h,N)=>{var ce,Ta,ca,Ba,Aa,T,K,Me,na,ge,ta,Ia,fl,ll,yl,gl,Fl;la.setImportLoading(!0),Qe.setFreshContent(!1);let z=await Xi().catch(el=>(la.setImportLoading(!1),Promise.reject(el)));z=z==null?void 0:z.filter(el=>{var xl;return((xl=el==null?void 0:el.find(Ya=>Ya==null?void 0:Ya.id))==null?void 0:xl.id)===(h==null?void 0:h.id)});let R=oa.getEqualChild([(ce=Ee.value)==null?void 0:ce.filter(el=>(el==null?void 0:el.label)!=="操作")]);const B=(ca=(Ta=oa.tableToForm(z,R))==null?void 0:Ta[0])==null?void 0:ca.find(el=>{const xl=el==null?void 0:el.key;return xl==="Interface"||xl==="方法体"}),le=B==null?void 0:B.value;if(!le){console.log("未搜索到isMain, 缺少算法执行接口"),la.setImportLoading(!1);return}const ne=Ee.value?oa.getEqualChild([Ee.value]):[],H=ne.find(el=>{const xl=el==null?void 0:el.prop;return xl==="Input1"||xl==="输入数据.输入1"||xl==="样本输入数据"}),xe=H==null?void 0:H.prop;let _e=h==null?void 0:h[xe];const Pe=await fo().catch(el=>(la.setImportLoading(!1),Promise.reject(el)));let Re=!0,Ke="";(Ba=Ee.value)==null||Ba.forEach(el=>{(el==null?void 0:el.prop)===xe&&(Re=!!(el!=null&&el.childPath),Ke=el==null?void 0:el.childPath)});let ma="";if(Re){let el=(T=(Aa=Ee.value)==null?void 0:Aa.find(ml=>(ml==null?void 0:ml.isMainKey)===!0))==null?void 0:T.prop;ma=h==null?void 0:h[el];let xl=Ke==null?void 0:Ke.split(k),Ya=[];xl==null||xl.forEach((ml,Dl)=>{(xl==null?void 0:xl.length)-1===Dl&&Ya.push(ma),Ya.push(ml)}),Ya=Ya==null?void 0:Ya[0];let vl=await oa.getItemData(Ya,sessionStorage.getItem("systemKey"),""),nl=vl==null?void 0:vl.filter(ml=>(ml==null?void 0:ml.name)===xe);nl=nl==null?void 0:nl.map(ml=>{var Dl;return ml.compData=(Dl=ml==null?void 0:ml.compData)==null?void 0:Dl.map(zl=>{var xr;return(zl==null?void 0:zl.key)==="tableContents"&&(zl.contents=(xr=zl==null?void 0:zl.contents)==null?void 0:xr.filter($l=>($l==null?void 0:$l[1])===(h==null?void 0:h[xe]))),zl}),ml}),(!nl||(nl==null?void 0:nl.length)===0)&&(nl=vl,nl=nl==null?void 0:nl.map(ml=>{var Dl;return ml.compData=(Dl=ml==null?void 0:ml.compData)==null?void 0:Dl.map(zl=>{var xr;return(zl==null?void 0:zl.key)==="tableContents"&&(zl.contents=(xr=zl==null?void 0:zl.contents)==null?void 0:xr.filter($l=>{var _l,Il;return($l==null?void 0:$l[1])===(h==null?void 0:h[(Il=(_l=Ee==null?void 0:Ee.value)==null?void 0:_l[0])==null?void 0:Il.prop])})),zl}),ml})),_e=Qi(nl)}const Ka=await Zi(le,{token:Pe,inputData:_e}).catch(el=>(la.setImportLoading(!1),Promise.reject(el))),Za=(K=Ka==null?void 0:Ka.data)==null?void 0:K.data,sa=ne.find(el=>(el==null?void 0:el.prop)==="Output1"),il=sa==null?void 0:sa.prop;let ka=[],Ja=[];if(Za&&((Me=Object.values(Za))==null?void 0:Me.length)>0){let el=[];const xl=new FormData,Ya=(na=et(Za))==null?void 0:na.map(async nl=>{var ml,Dl;if(!Array.isArray(nl)&&(nl!=null&&nl.includes("http"))){let zl=await al.axios.get(nl,{responseType:"blob"}),xr=(Dl=nl==null?void 0:nl.split("/"))==null?void 0:Dl[((ml=nl==null?void 0:nl.split("/"))==null?void 0:ml.length)-1];xl.append("files",zl.data,xr)}else el.push(nl)});if(await Promise.all(Ya),!oa.isFormDataEmpty(xl)){let nl=await Eu.uploadAmountApi(xl),ml=(ta=(ge=nl==null?void 0:nl.data)==null?void 0:ge.result)==null?void 0:ta.map(Dl=>{var zl,xr,$l,_l,Il,Jl;return{name:(Jl=(Il=(_l=(zl=Dl==null?void 0:Dl.url)==null?void 0:zl.split("/"))==null?void 0:_l[(($l=(xr=Dl==null?void 0:Dl.url)==null?void 0:xr.split("/"))==null?void 0:$l.length)-1])==null?void 0:Il.split("."))==null?void 0:Jl[0],url:Dl==null?void 0:Dl.url}});el=[...el,...ml]}let vl={};for(let nl in h)nl!=="id"&&(vl[nl]=h[nl]);vl[il]=el,Ja.push({id:h==null?void 0:h.id,value:{tableData:vl}})}if((Ja==null?void 0:Ja.length)>0){const el=Ja.map(Ya=>{const vl={id:Ya.id,...Ya.value.tableData};return delete vl._isOCRRow,delete vl._ocrTableId,delete vl._isTemp,delete vl.tableEditType,delete vl.index,vl}),xl=[{tableName:(Ia=u==null?void 0:u.related)==null?void 0:Ia.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:el}];await Y.pageBatchUpdateApi({platId:parseInt((fl=Vl.value)==null?void 0:fl.plat_id),changeContents:xl})}if((ka==null?void 0:ka.length)>0)try{await Y.pageBatchAddApi({platId:parseInt((ll=Vl.value)==null?void 0:ll.plat_id),changeContents:[{tableName:(yl=u==null?void 0:u.related)==null?void 0:yl.find(el=>el==null?void 0:el.includes("content")),tableContents:ka.map(el=>{var Ya,vl,nl;const xl={id:((Ya=el==null?void 0:el.key)==null?void 0:Ya.id)??((vl=el==null?void 0:el.key)==null?void 0:vl.rowId)??(el==null?void 0:el.id),...((nl=el==null?void 0:el.value)==null?void 0:nl.tableData)||{}};return delete xl._isOCRRow,delete xl._ocrTableId,delete xl._isTemp,delete xl.tableEditType,delete xl.index,Object.keys(xl).forEach(ml=>{ml==="证书附件"&&Array.isArray(xl[ml])&&(xl[ml]=JSON.stringify(xl[ml]))}),xl})}]})}catch(el){al.ElMessage.error(((Fl=(gl=el==null?void 0:el.response)==null?void 0:gl.data)==null?void 0:Fl.message)||(el==null?void 0:el.message)||"保存失败"),Qe.setTableLoading(!1);return}Vo(!0),la.setImportLoading(!1),Qe.setFreshContent(!0)},si=(d,h)=>(d=d==null?void 0:d.map(N=>{var z,R;return N!=null&&N.children&&((z=N.children)!=null&&z.find(B=>B.id===(h==null?void 0:h.id))?N.children=(R=N.children)==null?void 0:R.filter(B=>(B==null?void 0:B.id)!==(h==null?void 0:h.id)):N.children=si(N.children,h)),N}),d),ho=a.ref(!1),lt=()=>{ho.value=!0},rt=async d=>{var N,z,R,B;ho.value=!1;const h=Array.isArray(d)?d:d?[d]:[];if(h.length!==0)for(const le of h){const ne={name:le.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(le),raw:le,uid:Date.now()+Math.random()};qa.value.push(ne),Nl(ne,"uploading"),Ll(ne,0);try{const H=new FormData;H.append("file",le,ne.name);const xe=await Y.platformUploadFile(H);ne.uploadResult=((N=xe==null?void 0:xe.data)==null?void 0:N.result)||{name:ne.name,url:"",fileName:ne.name},Pa({name:((z=ne.uploadResult)==null?void 0:z.name)||ne.name,url:((R=ne.uploadResult)==null?void 0:R.url)||"",id:(B=ne.uploadResult)==null?void 0:B.id}),Nl(ne,"uploaded"),Ll(ne,100)}catch(H){console.error("文件上传失败:",H),al.ElMessage.error(`文件 ${ne.name} 上传失败,请重试`),Nl(ne,"pending"),Ll(ne,0);const xe=qa.value.findIndex(_e=>_e.uid===ne.uid);xe>-1&&qa.value.splice(xe,1)}}},t=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,h,N)=>{h===(u==null?void 0:u.index)?N(new Error("选择源不能和目标源一致")):N()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),i=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),f=()=>{i.show=!1},b=async d=>{var h,N,z,R,B,le,ne,H;try{if(d==="cancel"&&(i.show=!1),d==="replace"&&((h=i==null?void 0:i.existRows)==null?void 0:h.length)>0){await Y.pageBatchDeleteApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:[{tableName:((z=u==null?void 0:u.related)==null?void 0:z.find(_e=>_e==null?void 0:_e.includes("content_")))||((R=u==null?void 0:u.related)==null?void 0:R.find(_e=>_e==null?void 0:_e.includes("content"))),tableContents:i==null?void 0:i.existRows}]});const xe=await Y.pageBatchAddApi({platId:parseInt((B=Vl.value)==null?void 0:B.plat_id),changeContents:[{tableName:(le=u==null?void 0:u.related)==null?void 0:le.find(_e=>_e==null?void 0:_e.includes("content")),tableContents:(()=>{const _e=(Ce.value||[]).filter(ma=>!((i==null?void 0:i.existRows)||[]).some(Ka=>String(Ka==null?void 0:Ka.id)===String(ma==null?void 0:ma.id))),Pe=(i==null?void 0:i.tableData)||[],Re=[];let Ke=_e.slice();return Pe.forEach(ma=>{const Ka={...ma};try{Ka.sort=In(0,Ke)}catch{}Re.push(Ka),Ke.unshift(Ka)}),Re.map((ma,Ka)=>({id:Ka,...ma}))})()}]});((ne=xe==null?void 0:xe.data)==null?void 0:ne.code)===200&&(await xt({buttonName:"新增",columns:Ee.value,fixContent:(H=i==null?void 0:i.tableData)==null?void 0:H.map((_e,Pe)=>({id:Pe,..._e})),relatedContents:u==null?void 0:u.related}),al.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{i.show=!1,i.columns=[],i.tableData=[],i.existRows=[]}},x=()=>{t.show=!1},M=d=>{var h,N;if((d==null?void 0:d.buttonName)==="取消")return t.show=!1;t.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((h=t.to)!=null&&h.groupName))&&(u==null?void 0:u.index)!==((N=t.to)==null?void 0:N.groupName)&&(Te("change",{buttonName:"迁移",value:{from:t.from,to:t.to,data:t.selectRow}}),t.show=!1)},U=async d=>{var h,N,z,R;if(d){if(!Br.validateFileSize(d.raw)){al.ElMessage.warning(`文件大小不能超过 ${Pr.value.maxSize}MB`);const B=qa.value.findIndex(le=>le.uid===d.uid);B>-1&&qa.value.splice(B,1),J();return}if(!Br.validateFileType(d.raw)){al.ElMessage.warning("请上传图片文件");const B=qa.value.findIndex(le=>le.uid===d.uid);B>-1&&qa.value.splice(B,1),J();return}Nl(d,"uploading"),Ll(d,0);try{const B=new FormData;B.append("file",d.raw,d.name);const le=await Y.platformUploadFile(B);d.uploadResult=((h=le==null?void 0:le.data)==null?void 0:h.result)||{name:d.name,url:"",fileName:d.name},Pa({name:((N=d.uploadResult)==null?void 0:N.name)||d.name,url:((z=d.uploadResult)==null?void 0:z.url)||"",id:(R=d.uploadResult)==null?void 0:R.id}),Nl(d,"uploaded"),Ll(d,100)}catch(B){console.error("文件上传失败:",B),al.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Nl(d,"pending"),Ll(d,0);const le=qa.value.findIndex(ne=>ne.uid===d.uid);le>-1&&qa.value.splice(le,1)}finally{J()}}},J=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},ve=async()=>{var N,z;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),qa.value.length===0){al.ElMessage.warning("请先选择要上传的图片");return}if(qa.value.filter(R=>{const B=dl(R);return B!=="uploaded"&&B!=="completed"&&B!=="failed"}).length>0){al.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}Va.value=!0,G.value=0;let h=null;try{qa.value.forEach(sa=>{Nl(sa,"processing")});const R=Math.floor(Math.random()*10)+90;h=setInterval(()=>{G.value<R?G.value+=1:clearInterval(h)},50);const B=qa.value.map(sa=>{var il,ka,Ja;return{name:((il=sa.uploadResult)==null?void 0:il.name)||sa.name,url:((ka=sa.uploadResult)==null?void 0:ka.url)||"",fileName:((Ja=sa.uploadResult)==null?void 0:Ja.fileName)||sa.name}}),le=Br.extractTableHeaders(Ee.value),ne=B.map(sa=>({name:(sa==null?void 0:sa.fileName)||(sa==null?void 0:sa.name),url:(sa==null?void 0:sa.url)||""})),H=await Br.recognize(ne,le);if(console.log(H,"ocrResult"),clearInterval(h),h=null,(H==null?void 0:H.code)===500||(H==null?void 0:H.type)==="error"||!(H!=null&&H.result)){G.value=0,qa.value.forEach(sa=>{Nl(sa,"failed"),Ll(sa,0)}),al.ElMessage.error((H==null?void 0:H.message)||"OCR识别失败,请重试"),Va.value=!1;return}G.value=R;const xe=Array.isArray(H==null?void 0:H.result)?H.result:[];if(xe.length===0){G.value=0,qa.value.forEach(sa=>{Nl(sa,"failed"),Ll(sa,0)}),al.ElMessage.warning("OCR识别未返回有效数据"),Va.value=!1;return}const _e=new Set,Pe=[];xe.forEach((sa,il)=>{const ka=sa!=null&&sa.数据&&typeof(sa==null?void 0:sa.数据)=="object"?sa.数据:{},Ja=Array.isArray(sa==null?void 0:sa.图片信息)?sa.图片信息:[],ce=new Map;Ja.forEach(ca=>{ca!=null&&ca.name&&ce.set(ca.name,ca.url||"")});const Ta={_index:il,_certType:(sa==null?void 0:sa.证书类型)||"",_certNo:(sa==null?void 0:sa.证书编号)||"",_ocrImages:Ja,__ocrFieldMeta:{}};Object.entries(ka).forEach(([ca,Ba])=>{let Aa="",T=0,K=[],Me="";Ba&&typeof Ba=="object"&&!Array.isArray(Ba)?(Aa=(Ba==null?void 0:Ba.value)??"",T=(Ba==null?void 0:Ba.score)??0,K=Array.isArray(Ba==null?void 0:Ba.bboxNorm)?Ba==null?void 0:Ba.bboxNorm:[],Me=(Ba==null?void 0:Ba.imageName)||""):Array.isArray(Ba)&&Ba.length>=2?(Aa=Ba[0]??"",T=Ba[1]??0):(Aa=Ba??"",T=0),Ta[ca]=Aa,Ta[`${ca}_accuracy`]=T,_e.add(ca),Ta.__ocrFieldMeta[ca]={value:Aa,score:T,bboxNorm:K,imageName:Me,imageUrl:Me&&ce.get(Me)||"",images:Ja}}),Pe.push(Ta)});const Re=[],Ke=new Set;Pe.forEach(sa=>{sa&&_e.forEach(il=>{const ka=sa[`${il}_accuracy`];(typeof ka=="number"?ka>0:ka!=null&&String(ka).trim()!==""&&String(ka)!=="0")&&Ke.add(il)})}),_e.forEach(sa=>{Re.push({prop:sa,label:sa,editable:!0,minWidth:230}),Ke.has(sa)&&Re.push({prop:`${sa}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),qa.value.forEach(sa=>{Nl(sa,"completed")}),G.value=100,Be.value=Re,Ge.value=Pe,kl.value=B,Ga.value=H;const ma=["出厂编号","设备名称","制造厂"],Ka=Re.filter(sa=>sa&&!sa.isAccuracy&&typeof sa.prop=="string").map(sa=>sa.prop),Za=["出厂编号","设备名称","制造厂"];Qa.value=Ka.filter(sa=>Za.includes(sa)),console.log("[OCR] 默认勾选字段 props:",Qa.value),pe.value=2,Va.value=!1,aa.value=!1}catch(R){console.error("OCR处理失败:",R),h&&(clearInterval(h),h=null),al.ElMessage.error(((z=(N=R==null?void 0:R.response)==null?void 0:N.data)==null?void 0:z.message)||"OCR识别失败,请重试"),Va.value=!1,G.value=0,qa.value.forEach(B=>{Nl(B,"pending"),Ll(B,0)})}},Oe=d=>{if(d==null)return"";let h=String(d);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,N=>String.fromCharCode(N.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},we=()=>{var sa,il;const d=kl.value,h=Ga.value,N=Ge.value;if(!N||N.length===0){al.ElMessage.warning("暂无数据可添加");return}const z=(sa=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:sa.filter(ka=>(ka==null?void 0:ka.type)!=="operate"&&(ka==null?void 0:ka.label)!=="操作"&&(ka==null?void 0:ka.prop)!=="operate"),R=new Map,B=new Map,le=(il=z==null?void 0:z.find(ka=>(ka==null?void 0:ka.label)==="证书附件"))==null?void 0:il.prop;z==null||z.forEach(ka=>{ka!=null&&ka.label&&(ka!=null&&ka.prop)&&(R.set(ka.label,ka.prop),B.set(ka.prop,ka.label))});const ne=Date.now(),H=ka=>String(ne*1e3+ka),xe=[],_e=[],Pe=ka=>{const Ja=Bi&&Bi[ka]||[ka];for(const ce of Ja){const Ta=R.get(ce);if(Ta)return Ta}return""},Re=Pe("出厂编号"),Ke=Pe("设备名称"),ma=Pe("制造厂"),Ka=[],Za=ka=>{var Aa,T;if(!le)return[];const Ja=(Array.isArray(d)?d[ka]:null)||null,ce=(Ja==null?void 0:Ja.url)||"",Ta=(Ja==null?void 0:Ja.fileName)||(Ja==null?void 0:Ja.name)||"";return(String(Ta).toLowerCase().endsWith(".pdf")||String(ce).toLowerCase().endsWith(".pdf"))&&ce?[{url:ce,name:Ta,fileName:Ta}]:(Array.isArray((T=(Aa=h==null?void 0:h.result)==null?void 0:Aa[ka])==null?void 0:T.图片信息)?h.result[ka].图片信息:[]).map(K=>({url:(K==null?void 0:K.url)||"",name:(K==null?void 0:K.name)||"",fileName:(K==null?void 0:K.name)||""})).filter(K=>K.url)};if(N.forEach((ka,Ja)=>{var fl;const ce={id:H(Ja),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[ll,yl]of R.entries())Object.prototype.hasOwnProperty.call(ka,ll)&&(ce[yl]=ka[ll]);le&&(ce[le]=Za(Ja));const Ta=(Array.isArray(h==null?void 0:h.result)?h.result[Ja]:null)||null,ca=(Array.isArray(d)?d[Ja]:null)||null,Ba=(ca==null?void 0:ca.url)||"",Aa=(ca==null?void 0:ca.fileName)||(ca==null?void 0:ca.name)||"",T=String(Aa).toLowerCase().endsWith(".pdf")||String(Ba).toLowerCase().endsWith(".pdf"),K={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ja),label:new Date().toLocaleString(),certType:(Ta==null?void 0:Ta.证书类型)||"",certNo:(Ta==null?void 0:Ta.证书编号)||"",fileType:T?"pdf":"image",sourceUrl:T?Ba:"",images:Array.isArray(Ta==null?void 0:Ta.图片信息)?Ta.图片信息.map(ll=>({name:(ll==null?void 0:ll.name)||"",url:(ll==null?void 0:ll.url)||""})).filter(ll=>ll.url):[]},Me=ll=>Oe(ll?ce==null?void 0:ce[ll]:""),na=Me(Re),ge=Me(Ke),ta=Me(ma);if(!!(Re&&Ke&&ma&&na&&ge&&ta)){const ll=(Ce.value||[]).find(yl=>{const gl=Oe(Re?yl==null?void 0:yl[Re]:""),Fl=Oe(Ke?yl==null?void 0:yl[Ke]:""),el=Oe(ma?yl==null?void 0:yl[ma]:"");return gl&&Fl&&el&&gl===na&&Fl===ge&&el===ta});if(ll){Ka.push({idx:Ja,ocrRow:ce,versionItem:K,ocrNo:na,candidates:[ll],selectedTargetId:String((ll==null?void 0:ll.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(na&&Re){const ll=(Ce.value||[]).filter(yl=>{const gl=Oe(Re?yl==null?void 0:yl[Re]:"");return gl&&gl===na});if(ll.length>0){Ka.push({idx:Ja,ocrRow:ce,versionItem:K,ocrNo:na,candidates:ll,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ce.sort===void 0||ce.sort===null||String(ce.sort).trim()===""){const ll=(Ce.value||[]).map(gl=>ao(gl==null?void 0:gl.sort)).filter(gl=>gl!==null),yl=ll.length>0?Math.max(...ll):((fl=Ce.value)==null?void 0:fl.length)??0;ce.sort=String(Number((yl+1).toFixed(6)))}}catch{}Ea(u==null?void 0:u.index,ce.id,K),Ka.push({idx:Ja,ocrRow:ce,versionItem:K,ocrNo:na,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ka||[]).length>0){or.value=(Ka||[]).map(ka=>({...ka,selectedTargetId:(ka==null?void 0:ka.selectedTargetId)||""})),jl.value=!0,gr.value=_e,Tl.value=xe,sr.value=h,Tr.value=d,Rl.value=le||"";return}},ea=(d,h,N)=>{Ge.value[d]&&(Ge.value[d][h]=N)},La=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,cl=d=>{if(d==null||d===0)return"#909399";const h=Number(d);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},rl=d=>{var N,z,R,B;if(Na.value===d){Na.value=null,Da.value=!1,he.value="";return}Na.value=d,he.value="";const h=(N=Ge.value)==null?void 0:N[d];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){Sl.value=h._ocrImages.map(H=>({name:(H==null?void 0:H.name)||"",url:(H==null?void 0:H.url)||""})).filter(H=>H.name||H.url);const le=h.__ocrFieldMeta||{},ne=(z=Object.values(le))==null?void 0:z.find(H=>H==null?void 0:H.imageName);Pl.value=(ne==null?void 0:ne.imageName)||((B=(R=Sl.value)==null?void 0:R[0])==null?void 0:B.name)||"",Da.value=Sl.value.length>0}else Sl.value=[],Da.value=!1,Pl.value=""},ul=()=>{Ra.value=!1,qa.value=[],xa.value=null,pe.value=1,Ca.value.clear(),qe.value.clear(),G.value=0,Da.value=!1},Cl=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",dl=d=>{const h=d.uid||d.name;return Ca.value.get(h)||"pending"},Al=d=>{const h=d.uid||d.name;return qe.value.get(h)||0},Ll=(d,h)=>{const N=d.uid||d.name;qe.value.set(N,Math.min(100,Math.max(0,h)))},Zl=d=>{const h=dl(d),N=100.53;if(h==="completed"||h==="uploaded")return`${N} ${N}`;if(h==="failed")return`${N} ${N}`;if(h==="uploading"){const z=Al(d);return`${N*(z/100)} ${N}`}else if(h==="processing")return`${N*.5} ${N}`;return`0 ${N}`},Nl=(d,h)=>{const N=d.uid||d.name;Ca.value.set(N,h),(h==="completed"||h==="uploaded")&&Ll(d,100)},Wl=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const h=document.createElement("input");h.type="file",h.multiple=!0,h.accept="image/*,application/pdf",h.style.display="none",h.onchange=async N=>{const z=Array.from(N.target.files||[]);for(const R of z){const B={name:R.name,raw:R,uid:Date.now()+Math.random()};qa.value.push(B),await U(B)}N.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},Hr=()=>{pe.value>1&&pe.value--},_r=()=>{pe.value===1?qa.value.length>0&&!Va.value&&ve():pe.value===2&&(we(),pe.value=3)},Jr=async d=>{await fn(d==null?void 0:d.row)},tn=async({row:d,prop:h})=>{!d||!h||await fn(d,h)},fn=async(d,h)=>{var R,B;const N=d==null?void 0:d.id;if(!N){al.ElMessage.warning("暂无可预览数据");return}let z=Ma(u==null?void 0:u.index,N);if(!z||z.length===0){const le=sessionStorage.getItem("ocr_root_table_id"),ne=le!==null?Number(le):null;if(ne!=null&&ne!==""&&!Number.isNaN(ne)){const H=Ma(ne,N);Array.isArray(H)&&H.length>0&&(Ul(u==null?void 0:u.index,N,H),z=H)}}if(!z||z.length===0){const le=(R=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:R.filter(H=>(H==null?void 0:H.type)!=="operate"&&(H==null?void 0:H.label)!=="操作"&&(H==null?void 0:H.prop)!=="operate"),ne=h||((B=le==null?void 0:le.find(H=>(H==null?void 0:H.label)==="证书附件"))==null?void 0:B.prop);if(ne&&d[ne]){const H=d[ne];let xe=[],_e="",Pe=!1;if(typeof H=="string")try{const Re=JSON.parse(H);Array.isArray(Re)&&(xe=Re.map(Ke=>({name:(Ke==null?void 0:Ke.name)||(Ke==null?void 0:Ke.fileName)||"",url:(Ke==null?void 0:Ke.url)||""})).filter(Ke=>Ke.url||Ke.name),xe.length>0&&(_e=xe[0].url||"",Pe=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(_e).toLowerCase().endsWith(".pdf")))}catch{_e=H,Pe=String(H).toLowerCase().endsWith(".pdf"),xe=[{name:H,url:H}]}else Array.isArray(H)&&(xe=H.map(Re=>({name:(Re==null?void 0:Re.name)||(Re==null?void 0:Re.fileName)||"",url:(Re==null?void 0:Re.url)||""})).filter(Re=>Re.url||Re.name),xe.length>0&&(_e=xe[0].url||"",Pe=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(_e).toLowerCase().endsWith(".pdf")));if(xe.length>0||_e){const Re={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:Pe?"pdf":"image",sourceUrl:Pe?_e:"",images:xe};z=[Re],Ea(u==null?void 0:u.index,N,Re)}}}if(!z||z.length===0){al.ElMessage.warning("暂无可预览数据");return}Ye.value=z,ae.value=!0},vo=d=>{qa.value=qa.value.filter((h,N)=>N!==d)},On=async(d,h,N)=>{var z,R,B,le,ne,H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il,ka,Ja,ce,Ta,ca;if(Le(u.config,{type:ra.TABLE,tableOperate:d})){if(Fa.value="",ga.value=!0,ja.value=!0,Te("onButtonClick",d,h),F.value=[],d==="删除")dn.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ba,Aa,T,K;(Ba=Ce.value)!=null&&Ba.find(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id))?Ce.value=(Aa=Y.cloneDeep(Ce.value))==null?void 0:Aa.filter(Me=>(Me==null?void 0:Me.id)!==(h==null?void 0:h.id)):Ce.value=si(Y.cloneDeep(Ce.value),h);try{h!=null&&h.id&&((K=(T=da.value)==null?void 0:T.has)!=null&&K.call(T,h==null?void 0:h.id))&&da.value.delete(h.id)}catch{}vf(Yr.value,mn.value,h==null?void 0:h.id),Qe.setTableLoading(u==null?void 0:u.index),Te("change",{content:Ce.value,fixContent:[h],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.groupNames,buttonName:d,columns:Ee.value,relatedContents:u==null?void 0:u.related}),console.log(h,"item")});else if(d==="批量删除"){if(((z=ir.value)==null?void 0:z.length)===0)return al.ElMessage.warning("请先勾选操作的数据");dn.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var T,K,Me,na,ge;const Ba=(T=ir.value)==null?void 0:T.map(ta=>ta.id);Ce.value=(K=Y.cloneDeep(Ce.value))==null?void 0:K.filter(ta=>!(Ba!=null&&Ba.includes(ta.id))),Qe.setTableLoading(u==null?void 0:u.index),Te("change",{content:Ce.value,fixContent:ir.value,index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,relatedContents:u==null?void 0:u.related,columns:Ee.value});const Aa=(Ba||[]).filter(Boolean);if(Aa.length>0&&Aa.every(ta=>ta!=null&&ta!=="")){const ta=(ir.value||[]).map(Ia=>{const fl={...Ia};return delete fl._isOCRRow,delete fl._ocrTableId,delete fl._isTemp,delete fl.tableEditType,delete fl.index,fl});await Y.pageBatchDeleteApi({platId:parseInt((Me=Vl.value)==null?void 0:Me.plat_id),changeContents:[{tableName:((na=u==null?void 0:u.related)==null?void 0:na.find(Ia=>Ia==null?void 0:Ia.includes("content_")))||((ge=u==null?void 0:u.related)==null?void 0:ge.find(Ia=>Ia==null?void 0:Ia.includes("content"))),tableContents:ta}]})}})}else if(d==="复制新增"){ze.value="复制新增",Y.cloneDeep(h);const Ba=(R=Ee.value)==null?void 0:R.find(Aa=>Aa==null?void 0:Aa.isMainKey);Ba||((B=Ee.value)==null||B[0]),cr.value=h,Vo(!0)}else if(d==="新增")ze.value="新增",Ro(""),Xe.value=!0;else if(d==="编辑")ze.value="编辑",Ro(h),Xe.value=!0;else if(d==="查看")ze.value="查看",Ro(h),ga.value=!1,ja.value=!1,Xe.value=!0;else if(d==="查看三维模型"){const Ba={};for(let T in h)T!=="id"&&(Ba[T]=h[T]);let Aa=(le=Object.values(Ba))==null?void 0:le[1];$e.setTableShowThree(Aa)}else if(d==="切换视图")uu();else if(((ne=N==null?void 0:N.extra)==null?void 0:ne.type)==="modelExample")ze.value=d,Ae.value=!0;else if(d==="新建"){let Ba=se.value,Aa=[];for(let ge in Ba)ge!=null&&ge.includes(`loading${((H=Vl.value)==null?void 0:H.account)||((xe=Vl.value)==null?void 0:xe.账号)}`)&&(Aa=[...Aa,...ge]);let T=[];for(let ge in Ba)ge!=null&&ge.includes(`updateLoading${((_e=Vl.value)==null?void 0:_e.account)||((Pe=Vl.value)==null?void 0:Pe.账号)}`)&&(T=[...T,...ge]);let K=Aa==null?void 0:Aa.map(ge=>ge==null?void 0:ge.id);const Me=T==null?void 0:T.map(ge=>ge==null?void 0:ge.id);K=[...Y.cloneDeep(K),...Me],(K==null?void 0:K.length)>0&&(K!=null&&K.every(ge=>ge!==null&&ge))&&await Dr.batchDeleteInsofDataApi({ids:K});const na=(Re=Ne.value)==null?void 0:Re.find(ge=>(ge==null?void 0:ge.label)==="新建");await au(!1,na)}else if(d==="修改模板"){let Ba=Y.cloneDeep(ba).value;Qe.setRouteToChildPath(Ba),la.setActiveMenuPath(Ba+k)}else if(d==="执行")at(d,h);else if(d==="导出paraform"){const Ba=Fo.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Aa=["推力","真空","压力","温度","流量"],T=_l=>{var Il,Jl,Ml;return _l?typeof(_l==null?void 0:_l.value)=="string"?_l.value:((Ml=(Jl=(Il=_l==null?void 0:_l._custom)==null?void 0:Il.value)==null?void 0:Jl.value)==null?void 0:Ml.value)||"":""},K=Array.isArray(mr.value)?mr.value:[],Me=T(K.find(_l=>(_l==null?void 0:_l.condition)==="child")),na=String(Me||"").slice(0,8),ge=_l=>{if(_l==null)return"";const Il=String(_l).trim();if(!Il)return"";if(/^\d{8}$/.test(Il))return Il;const Jl=Il.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Jl){const Yl=Jl[1],er=Jl[2].padStart(2,"0"),Kl=Jl[3].padStart(2,"0");return`${Yl}${er}${Kl}`}const Ml=Il.replace(/\D/g,"");return Ml.length>=8?Ml.slice(0,8):""},ta=async _l=>{var Il,Jl;if(!_l)return"";try{const Ml=await Kr("试验任务/任务管理",!1),Yl=(hr,tr=[])=>{if(!Array.isArray(hr))return tr;for(const ur of hr)(ur==null?void 0:ur.comp)==="Table"&&(ur!=null&&ur.name)&&tr.push(ur),Array.isArray(ur==null?void 0:ur.children)&&Yl(ur.children,tr),Array.isArray(ur==null?void 0:ur.tab)&&Yl(ur.tab,tr),Array.isArray(ur==null?void 0:ur.choice)&&Yl(ur.choice,tr);return tr},Kl=Yl(Ml||[]).find(hr=>(hr==null?void 0:hr.name)==="任务列表"),fr=((Jl=(Il=Kl==null?void 0:Kl.compData)==null?void 0:Il.find(hr=>(hr==null?void 0:hr.key)==="tableContents"))==null?void 0:Jl.contents)||[];if(!Array.isArray(fr)||fr.length===0)return"";const qr=fr.find(hr=>String((hr==null?void 0:hr["试验代号(名称)"])||"").slice(0,8)===_l);return ge(qr==null?void 0:qr.计划试验时间)}catch(Ml){return console.warn("获取任务列表计划试验时间失败:",Ml),""}},Ia=(ba.value||"").replace(/\/+$/,""),fl=Me?`${Ia}/${Me}`:Ia,ll=await Kr(fl||ba.value,!1),yl=String(va.value||"").trim(),gl=_l=>String(_l||"").trim(),Fl=(_l,Il=[],Jl="")=>{if(!Array.isArray(_l))return Il;for(const Ml of _l){const Yl=gl((Ml==null?void 0:Ml.choiceName)||(Ml==null?void 0:Ml.name0)||Jl);(Ml==null?void 0:Ml.comp)==="Table"&&(Ml==null?void 0:Ml.name)&&Aa.includes(Ml.name)&&(!yl||Yl===yl)&&Il.push(Ml),Array.isArray(Ml==null?void 0:Ml.children)&&Fl(Ml.children,Il,Yl),Array.isArray(Ml==null?void 0:Ml.tab)&&Fl(Ml.tab,Il,Yl),Array.isArray(Ml==null?void 0:Ml.choice)&&Fl(Ml.choice,Il,Yl)}return Il},el=Fl(ll||[]),xl=new Map;for(const _l of el)_l!=null&&_l.name&&!xl.has(_l.name)&&xl.set(_l.name,_l);const Ya=Aa.map(_l=>xl.get(_l)).filter(Boolean);if(!Ya||Ya.length===0)return al.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const vl=_l=>{const Il=new Map,Jl=(Ml,Yl=[])=>{if(Array.isArray(Ml))for(const er of Ml){const Kl=((er==null?void 0:er.label)??"").toString().trim(),fr=Kl?[...Yl,Kl]:[...Yl];if(Array.isArray(er==null?void 0:er.children)&&er.children.length>0)Jl(er.children,fr);else{const hr=((er==null?void 0:er.prop)??"").toString();if(!hr)continue;const tr=Kl||hr,ur=(fr.length>0?[...Yl,tr]:[tr]).join(".");Il.set(hr,ur)}}};return Jl(_l,[]),Il},nl=(_l,Il)=>{const Jl=vl(_l||[]),Yl=(oa.getAllLeafNodes(_l||[])||[]).filter(Kl=>(Kl==null?void 0:Kl.prop)&&(Kl==null?void 0:Kl.type)!=="operate"&&(Kl==null?void 0:Kl.label)!=="操作"&&(Kl==null?void 0:Kl.prop)!=="operate"),er=Array.isArray(Il)?Il:[];return er.length===0?[]:er.map(Kl=>{const fr={};return Yl.forEach(qr=>{const hr=String(qr.prop),tr=Jl.get(hr)||String(qr.label||qr.prop);fr[tr]=(Kl==null?void 0:Kl[hr])??""}),fr})},ml=Ya.map(_l=>{var er,Kl;const Il=(_l==null?void 0:_l.compData)||[];let Jl=(er=Il==null?void 0:Il.find(fr=>(fr==null?void 0:fr.key)==="header"))==null?void 0:er.contents;Array.isArray(Jl==null?void 0:Jl[0])&&(Jl=Jl[0]);const Ml=((Kl=Il==null?void 0:Il.find(fr=>(fr==null?void 0:fr.key)==="tableContents"))==null?void 0:Kl.contents)||[];if(!Array.isArray(Jl)||Jl.length===0||!Array.isArray(Ml)||Ml.length===0)return null;const Yl=nl(Jl||[],Ml||[]);return!Array.isArray(Yl)||Yl.length===0?null:{类型:_l==null?void 0:_l.name,数据:Yl}}).filter(Boolean);if(!ml||ml.length===0)return al.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const Dl=await ta(na),zl={试验代号:na,试验日期:Dl,ParaForm:ml},xr=await fo().catch(()=>""),$l=await Y.exportParaformApi(zl,xr);if(((Ke=$l==null?void 0:$l.data)==null?void 0:Ke.code)===200&&((Ka=(ma=$l==null?void 0:$l.data)==null?void 0:ma.result)!=null&&Ka.Excel文件)){const _l=$l.data.result.Excel文件,Il=await Y.platformDownloadFile({url:_l}),Jl=new Blob([Il.data],{type:"application/vnd.ms-excel"}),Ml=URL.createObjectURL(Jl),Yl=Vn.dayjs().format("YYYYMMDD"),Kl=`${(na||"UNKNOWN").trim()||"UNKNOWN"}_${Yl}_paraform.xls`,fr=document.createElement("a");fr.href=Ml,fr.download=Kl,fr.style.display="none",document.body.appendChild(fr),fr.click(),setTimeout(()=>{document.body.removeChild(fr),URL.revokeObjectURL(Ml)},100);const qr=Array.isArray((sa=(Za=$l==null?void 0:$l.data)==null?void 0:Za.result)==null?void 0:sa.warnings)?$l.data.result.warnings:[];if(qr.length>0){const hr=qr.map((tr,ur)=>`${ur+1}. ${(tr==null?void 0:tr.field)||"未知字段"}:${(tr==null?void 0:tr.message)||""}`).join(`
24
- `);al.ElMessage.warning({message:`导出成功,但存在以下提示:
25
- ${hr}`,duration:5e3,showClose:!0})}else al.ElMessage.success("导出成功")}else al.ElMessage.error(((il=$l==null?void 0:$l.data)==null?void 0:il.message)||"导出失败")}catch(Aa){console.error("导出paraform失败:",Aa),al.ElMessage.error("导出失败:"+((Aa==null?void 0:Aa.message)||"未知错误"))}finally{Ba.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((ka=ir.value)==null?void 0:ka.length)===0)return al.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Ja=Ce.value)==null?void 0:Ja.length)===0)return al.ElMessage.warning("暂无数据导出");let Ba=["序号",...(Ta=(ce=Ee.value)==null?void 0:ce.map(Me=>Me==null?void 0:Me.prop))==null?void 0:Ta.filter(Me=>Me!=="操作")],Aa=d==="导出全部"?Ce.value:ir.value;const T=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Aa=Aa==null?void 0:Aa.map(Me=>Object.fromEntries(Object.entries(Me).filter(([na])=>!T.includes(na)))),Ba=["序号",...Ba],Aa=Aa==null?void 0:Aa.map((Me,na)=>({序号:na+1,...Me}));let K=(u==null?void 0:u.compName)||"表格信息";Pi(Aa,K,Ba,K)}else if(d==="OCR识别")Ra.value=!0,qa.value=[],pe.value=1,Ca.value.clear(),qe.value.clear(),G.value=0;else if(d==="迁移")t.selectRow=h,t.show=!0;else if(d==="生成方法"){let Ba=await If(h),Aa;h!==""?Aa=[h]:Aa=Y.cloneDeep(Ce.value),Aa=Aa==null?void 0:Aa.map(K=>(K.输出值=Ba,K));const T={fixContent:Aa,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:Ee.value,name:u==null?void 0:u.groupNames};Te("change",T)}else if(((ca=N==null?void 0:N.extra)==null?void 0:ca.type)==="methodButton"){let Ba;h!==""?Ba=[h]:Ba=Y.cloneDeep(Ce.value);const T={fixContent:await vt(Ba,Ee==null?void 0:Ee.value,"Manual",Ce.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:Ee.value,name:u==null?void 0:u.groupNames};Te("change",T)}}},Qc=async(d,h)=>{var N,z,R,B,le,ne,H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il,ka,Ja,ce;try{let Ta,ca;const Ba=(N=se.value[ba.value+k])==null?void 0:N.filter(Ia=>{var fl;return((fl=Ia==null?void 0:Ia.key)==null?void 0:fl.type)==="structureMethod"}),Aa=(z=se.value[ba.value+k])==null?void 0:z.filter(Ia=>{var fl;return((fl=Ia==null?void 0:Ia.key)==null?void 0:fl.type)==="structure"}),T=Ba==null?void 0:Ba.find(Ia=>{var fl,ll;return((ll=(fl=Ia==null?void 0:Ia.value)==null?void 0:fl.pageData)==null?void 0:ll.method)==="保存"});if(!T)return;const K=(ne=(le=se.value[(B=(R=T==null?void 0:T.value)==null?void 0:R.pageData)==null?void 0:B.path])==null?void 0:le.filter(Ia=>{var fl;return((fl=Ia==null?void 0:Ia.key)==null?void 0:fl.type)==="data"}))==null?void 0:ne.find(Ia=>{var fl,ll,yl,gl;return((ll=(fl=Ia==null?void 0:Ia.value)==null?void 0:fl.tableData)==null?void 0:ll.算法名称)===((gl=(yl=T==null?void 0:T.value)==null?void 0:yl.pageData)==null?void 0:gl.method)});if(!K)return;const Me={buttonName:(xe=(H=T==null?void 0:T.value)==null?void 0:H.pageData)==null?void 0:xe.method,api:(Pe=(_e=K==null?void 0:K.value)==null?void 0:_e.tableData)==null?void 0:Pe.算法体,content:Aa==null?void 0:Aa.map(Ia=>{var fl;return(fl=Ia==null?void 0:Ia.value)==null?void 0:fl.pageData}),extraContent:[],extraValues:(Ke=(Re=T==null?void 0:T.value)==null?void 0:Re.pageData)==null?void 0:Ke.data,methodName:(Ka=(ma=T==null?void 0:T.value)==null?void 0:ma.pageData)==null?void 0:Ka.path};if(!d)return;const na={...d,compData:(Za=d==null?void 0:d.compData)==null?void 0:Za.map(Ia=>{var fl;return(Ia==null?void 0:Ia.key)==="formContent"?{...Ia,contents:(fl=Ia==null?void 0:Ia.contents)==null?void 0:fl.map(ll=>(ll==null?void 0:ll.prop)===h?{...ll,value:""}:ll)}:Ia})},ge={key:{pageKey:ba.value+k,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:na}},ta=await al.axios.post(Me.api,ge,{headers:{"Content-Type":"application/json"}});return((sa=ta==null?void 0:ta.data)==null?void 0:sa.code)===200&&(Ta=(ka=(il=ta==null?void 0:ta.data)==null?void 0:il.result)==null?void 0:ka.latestReportCode,ca=(ce=(Ja=ta==null?void 0:ta.data)==null?void 0:Ja.result)==null?void 0:ce.status),{newMainKeyValue:Ta,newStatus:ca}}catch(Ta){throw al.ElMessage.error(Ta),new Error(Ta)}},Tt=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const eu=async(d,h,N)=>{var H,xe;let z=d==null?void 0:d[h==null?void 0:h.prop],R=1,B,le;const ne=Y.cloneDeep(ba).value+k+z;if(ne){Tt.value="",B=(H=se.value[ne])==null?void 0:H.filter(Re=>{var Ke;return((Ke=Re==null?void 0:Re.key)==null?void 0:Ke.type)==="structure"});const _e=B==null?void 0:B.find(Re=>{var Ke,ma,Ka;return((Ka=(ma=(Ke=Re==null?void 0:Re.value)==null?void 0:Ke.pageData)==null?void 0:ma.comp)==null?void 0:Ka.toUpperCase())==="FORM"});le={...(xe=_e==null?void 0:_e.value)==null?void 0:xe.pageData,id:_e==null?void 0:_e.id};const Pe=await Qc(le,h==null?void 0:h.prop);if(Tt.value=Pe==null?void 0:Pe.newStatus,Pe!=null&&Pe.newMainKeyValue)return Pe==null?void 0:Pe.newMainKeyValue}if(Ce.value.some(_e=>(_e==null?void 0:_e[h==null?void 0:h.prop])===z)){const _e=z;for(;Ce.value.some(Pe=>(Pe==null?void 0:Pe[h==null?void 0:h.prop])===`${_e}(${R})`);)R++;z=`${_e}(${R})`}return z},au=async(d,h,N)=>{var B,le,ne,H;let z,R;if(await eu(N==null?void 0:N.data,N==null?void 0:N.firstCol),z=Y.cloneDeep(ba).value+k,R=Y.cloneDeep(z)+`loading${((B=Vl.value)==null?void 0:B.account)||((le=Vl.value)==null?void 0:le.账号)}`,h){const xe=(H=(ne=se.value[R])==null?void 0:ne.filter(_e=>{var Pe;return((Pe=_e==null?void 0:_e.key)==null?void 0:Pe.parentTable)===""}))==null?void 0:H.map(_e=>{var Pe;return{id:_e==null?void 0:_e.id,...(Pe=_e==null?void 0:_e.value)==null?void 0:Pe.pageData}});(xe==null?void 0:xe.length)>0||await oa.loadingConstruct(z,R,null,null,null),Qe.setRouteToChildPath(Y.cloneDeep(ba).value),la.setActiveMenuPath(R)}else Qe.setRouteToChildPath(Y.cloneDeep(ba).value),la.setActiveMenuPath(R)},lu=()=>{je.value=!1,He.value=[],wa.value=!1},Ro=d=>{var B,le,ne,H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il,ka,Ja,ce,Ta,ca,Ba,Aa;const h=[];de.value=Y.cloneDeep(Ee.value),(le=oa.getColumnChild((B=Y.cloneDeep(Ee.value))==null?void 0:B.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||le.forEach((T,K)=>{var Me,na,ge;T!=null&&T.formType&&((Me=T==null?void 0:T.formType)==null?void 0:Me.toUpperCase())==="SELECT"||T!=null&&T.menuId?h.push({label:(na=T==null?void 0:T.prop)!=null&&na.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+K,prop:T==null?void 0:T.prop,type:"Select",value:(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??K,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,disabled:T==null?void 0:T.disabled,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter}):h.push({label:(ge=T==null?void 0:T.prop)!=null&&ge.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",prop:T==null?void 0:T.prop,name:(T==null?void 0:T.prop)??"t"+K,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(d==null?void 0:d[T==null?void 0:T.prop])??"{}":(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??K,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter})}),d===""||!d||(Fa.value=(d==null?void 0:d.id)??"");let N=oa.getColumnChild((ne=Y.cloneDeep(Ee.value))==null?void 0:ne.filter(T=>(T==null?void 0:T.label)!=="操作"));fa.value&&((H=fa.value)==null?void 0:H.length)>0&&(fa.value=(xe=Y.cloneDeep(fa).value)==null?void 0:xe.map(T=>{var Me;let K=(T==null?void 0:T.prop)||((Me=N==null?void 0:N.find(na=>(na==null?void 0:na.label)===(T==null?void 0:T.label)))==null?void 0:Me.prop);return K&&(T.value=d[K]),T})),De.value=fa.value&&((_e=fa.value)==null?void 0:_e.length)>0?oa.getTableFormToForm(fa.value):h,De.value=((Pe=De.value)==null?void 0:Pe.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??De.value;let z=[],R=((ma=(Ke=(Re=u.itemData)==null?void 0:Re.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Ke[0])==null?void 0:ma.contents)??"";if(R=$a.analyzeSplitToContent(R,","),(R==null?void 0:R.length)>0&&(z=R.flat()),(z==null?void 0:z.length)>0){let T=z==null?void 0:z.filter(ta=>ta==null?void 0:ta.includes("@Type"));if(T=T==null?void 0:T[(T==null?void 0:T.length)-1],(T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T){let ta=(Za=(Ka=T==null?void 0:T.replace("=",_))==null?void 0:Ka.split(_))==null?void 0:Za[1];((sa=ta==null?void 0:ta.trim())==null?void 0:sa.toUpperCase())==="MANUAL"&&(u==null||u.index,De.value=(il=De.value)==null?void 0:il.map((Ia,fl)=>Ia))}let K=(ka=De.value)==null?void 0:ka.filter(ta=>ta==null?void 0:ta.mainKey),Me;K==null||K.forEach(ta=>{var fl;if(Me!==void 0)return;let Ia=ta==null?void 0:ta.menus;((fl=K==null?void 0:K.filter(ll=>ll==null?void 0:ll.mainKey))==null?void 0:fl.length)>1&&(Me=Ia,ta==null||ta.groups)});let na=[],ge=new Map;if(K==null||K.forEach(ta=>{var Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl,nl,ml,Dl;if((Ia=ta==null?void 0:ta.prop)!=null&&Ia.includes(".")){let zl=[];ge.get(((ll=(fl=ta==null?void 0:ta.prop)==null?void 0:fl.split("."))==null?void 0:ll[0])+(ta!=null&&ta.isMainPath?0:1)+((yl=ta==null?void 0:ta.groups)==null?void 0:yl[0]))&&(zl=ge.get(((Fl=(gl=ta==null?void 0:ta.prop)==null?void 0:gl.split("."))==null?void 0:Fl[0])+(ta!=null&&ta.isMainPath?0:1)+((el=ta==null?void 0:ta.groups)==null?void 0:el[0]))),zl.push(ta),ge.set(((Ya=(xl=ta==null?void 0:ta.prop)==null?void 0:xl.split("."))==null?void 0:Ya[0])+(ta!=null&&ta.isMainPath?0:1)+((vl=ta==null?void 0:ta.groups)==null?void 0:vl[0]),zl)}else{let zl=[];ge.get("normal"+(ta!=null&&ta.isMainPath?0:1)+((nl=ta==null?void 0:ta.groups)==null?void 0:nl[0]))&&(zl=ge.get("normal"+(ta!=null&&ta.isMainPath?0:1)+((ml=ta==null?void 0:ta.groups)==null?void 0:ml[0]))),zl.push(ta),ge.set("normal"+(ta!=null&&ta.isMainPath?0:1)+((Dl=ta==null?void 0:ta.groups)==null?void 0:Dl[0]),zl)}}),na=Array.from(ge.values()),(na==null?void 0:na.length)>0)for(let ta in na){let Ia=na==null?void 0:na[ta];if((Ia==null?void 0:Ia.length)!==1){if((Ia==null?void 0:Ia.length)>1){let fl=Ia==null?void 0:Ia.map(vl=>vl==null?void 0:vl.prop),ll=Ia==null?void 0:Ia.map(vl=>vl==null?void 0:vl.label),yl=Ia==null?void 0:Ia.map(vl=>vl==null?void 0:vl.value),gl=(Ja=Y.cloneDeep(Ia))==null?void 0:Ja[0],Fl=(ce=De.value)==null?void 0:ce.findIndex(vl=>(vl==null?void 0:vl.prop)===(gl==null?void 0:gl.prop)),el=(Ta=De.value)==null?void 0:Ta.slice(0,Fl),xl=(Ba=De.value)==null?void 0:Ba.slice(Fl,(ca=De.value)==null?void 0:ca.length);gl.label=ll==null?void 0:ll.join("·"),gl.value=yl==null?void 0:yl.join(" "),gl.value.trim()===""&&(gl.value=""),gl.prop=fl==null?void 0:fl.join("·");let Ya=Ia==null?void 0:Ia.map(vl=>{var nl;return(nl=vl==null?void 0:vl.words)==null?void 0:nl.join(".")});gl.relatedWords=Ya,gl.usingType="parent",xl.unshift(gl),De.value=[...el,...xl],De.value=(Aa=De.value)==null?void 0:Aa.map(vl=>(fl!=null&&fl.find(nl=>nl===(vl==null?void 0:vl.prop))&&(vl.isFormColHidden=!0,vl.relatedWords=Ya),vl))}}}}},ru=()=>{var h;const d=(h=s.value)==null?void 0:h.$el;d&&$a.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:N=>{var le;const{oldIndex:z,newIndex:R}=N;if(z===R)return;const B=En.value.splice(z,1)[0];En.value.splice(R,0,B),Ee.value=(le=Ee.value)==null?void 0:le.slice().sort((ne,H)=>{if(ne.label==="操作")return 1;if(H.label==="操作")return-1;const xe=En.value.findIndex(Pe=>Pe.label===ne.label),_e=En.value.findIndex(Pe=>Pe.label===H.label);return xe-_e})}})};a.onMounted(()=>{za.value=window.innerWidth-240*2,window.addEventListener("keydown",Xo)});const nu=()=>{a.nextTick(()=>{ru()})},nt=(d,h)=>{var z;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let N;return d.children=(z=d.children)==null?void 0:z.map(R=>{var B,le;if((R==null?void 0:R.id)===Fa.value){let ne={};for(let H in R){let xe=(B=h==null?void 0:h.find(_e=>(_e==null?void 0:_e.prop)===H))==null?void 0:B.label;xe?ne[H]=(le=cr.value)==null?void 0:le[xe]:ne[H]=R[H]??""}R=Object.assign(ne,cr.value),N=R}else{let ne=nt(R,h);R=ne==null?void 0:ne.contents,N=ne==null?void 0:ne.currentSelectContents}return R}),{contents:d,currentSelectContents:N}},At=(d,h)=>{let N,z;return d!=null&&d.find(R=>(R==null?void 0:R.id)===Fa.value)?N=d==null?void 0:d.map(R=>{var B,le,ne;if((R==null?void 0:R.id)===Fa.value){let H={};for(let _e in R){let Pe=(B=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===_e))==null?void 0:B.label;Pe?H[_e]=((le=cr.value)==null?void 0:le[Pe])??"":H[_e]=R[_e]??""}let xe=cr.value;for(let _e in H)(ne=cr.value)!=null&&ne[_e]||(xe[_e]=(H==null?void 0:H[_e])??"");R=xe,z=R}return R}):N=d==null?void 0:d.map(R=>{var B,le,ne,H;if((R==null?void 0:R.id)===Fa.value){let xe={};for(let _e in R){let Pe=(B=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===_e))==null?void 0:B.label;Pe?xe[_e]=(le=cr.value)==null?void 0:le[Pe]:xe[_e]=R[_e]??""}R=Object.assign(xe,cr.value),z=R}else R=(ne=nt(R,h))==null?void 0:ne.contents,z=(H=nt(R,h))==null?void 0:H.currentSelectContents;return R}),{newContents:N,currentSelectContents:z}},zt=(d,h,N)=>{var z,R;return d[h==null?void 0:h.prop]=N,typeof d.id=="number"&&(d.id=(z=d.id)==null?void 0:z.toString()),d.children&&((R=d.children)==null?void 0:R.length)>0&&(d.children=d.children.map(zt)),d},Mt=d=>{var N;const h=[];return h.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((N=d.children)==null||N.forEach(z=>{h.push(...Mt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const R={...z};return delete R.children,R}):[]},ci=["Pacific6000数据采集装置.通道号","通道号"],$o=d=>{if(!d)return"";const h=ci.map(N=>d==null?void 0:d[N]).find(N=>N!=null&&String(N).trim()!=="");return h==null?"":String(h).trim()},ot=async(d,h=void 0)=>{if(!d)return!1;try{const N=Ke=>{var ma,Ka,Za;return Ke?typeof(Ke==null?void 0:Ke.value)=="string"?Ke.value:((Za=(Ka=(ma=Ke==null?void 0:Ke._custom)==null?void 0:ma.value)==null?void 0:Ka.value)==null?void 0:Za.value)||"":""},z=Array.isArray(mr.value)?mr.value:[],R=N(z.find(Ke=>(Ke==null?void 0:Ke.condition)==="child")),B=(ba.value||"").replace(/\/+$/,""),le=R?`${B}/${R}`:B,ne=await Kr(le||ba.value,!1),H=String(va.value||"").trim(),xe=Ke=>String(Ke||"").trim(),_e=(Ke,ma=[],Ka="")=>{if(!Array.isArray(Ke))return ma;for(const Za of Ke){const sa=xe((Za==null?void 0:Za.choiceName)||(Za==null?void 0:Za.name0)||Ka);(Za==null?void 0:Za.comp)==="Table"&&(!H||sa===H)&&ma.push(Za),Array.isArray(Za==null?void 0:Za.children)&&_e(Za.children,ma,sa),Array.isArray(Za==null?void 0:Za.tab)&&_e(Za.tab,ma,sa),Array.isArray(Za==null?void 0:Za.choice)&&_e(Za.choice,ma,sa)}return ma},Pe=_e(ne||[]),Re=String((u==null?void 0:u.compName)||"");return Pe.some(Ke=>{var Ka,Za;const ma=((Za=(Ka=Ke==null?void 0:Ke.compData)==null?void 0:Ka.find(sa=>(sa==null?void 0:sa.key)==="tableContents"))==null?void 0:Za.contents)||[];return!Array.isArray(ma)||ma.length===0?!1:ma.some(sa=>{if(String((Ke==null?void 0:Ke.name)||"")===Re&&(sa==null?void 0:sa.id)===h)return!1;const ka=$o(sa);return!!ka&&ka===d})})}catch{return(Ce.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const R=$o(z);return!!R&&R===d})}},Vo=async(d=!0,h,N)=>{var xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il,ka,Ja,ce,Ta,ca,Ba,Aa,T,K,Me,na,ge,ta,Ia,fl,ll,yl,gl,Fl,el,xl;if(cr.value){const Ya=(_e=oa.getColumnChild((xe=Y.cloneDeep(Ee.value))==null?void 0:xe.filter(nl=>(nl==null?void 0:nl.label)!=="操作")))==null?void 0:_e.filter(nl=>(nl==null?void 0:nl.required)===!0);for(let nl=0;nl<((Ya==null?void 0:Ya.length)??0);nl++){const ml=Ya[nl],Dl=ml==null?void 0:ml.prop,zl=(ml==null?void 0:ml.label)??Dl,xr=(Pe=cr.value)==null?void 0:Pe[Dl];if(xr===""||xr===null||xr===void 0||Array.isArray(xr)&&xr.length===0){al.ElMessage.error(`${zl}不能为空`);return}}const vl=$o(cr.value);if(vl&&await ot(vl,Fa.value||void 0)){al.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=oa.getColumnChild((Re=Y.cloneDeep(Ee.value))==null?void 0:Re.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")),R,B=Y.cloneDeep(Ce.value);if(!cr.value){Xe.value=!1;return}if(Fa.value===""){me.value++;let Ya;Ya={id:me.value.toString()};try{Ya.sort=In(0,Ce.value||[])}catch{}Ya!=null&&Ya.children&&(Ya={...Ya,children:(Ke=Ya.children)==null?void 0:Ke.map(nl=>zt(nl,h,N))});const vl=Object.assign(cr.value,Ya);B.unshift(vl),R=vl}else B=(ma=At(B,z))==null?void 0:ma.newContents,R=(Ka=At(B,z))==null?void 0:Ka.currentSelectContents;const le=(Za=u.itemData)==null?void 0:Za.filter(Ya=>(Ya==null?void 0:Ya.key)==="childTree")[0];if(((sa=le==null?void 0:le.contents)==null?void 0:sa.length)>0){ze.value="编辑";const Ya=[];B==null||B.forEach((ml,Dl)=>{var xr;let zl={};if(Array.isArray(ml)){let $l=[];ml==null||ml.filter(_l=>!(_l!=null&&_l.id)).forEach((_l,Il)=>{var Jl,Ml,Yl,er,Kl,fr,qr;if((Ml=(Jl=Lr.value)==null?void 0:Jl[Il])!=null&&Ml.prop&&!Array.isArray(_l)){let hr={};hr[Lr.value[Il].column]=_l,Wa!=null&&Wa.value&&((Yl=Wa==null?void 0:Wa.value)==null?void 0:Yl.length)>0&&((er=Wa==null?void 0:Wa.value)!=null&&er.find(tr=>JSON.stringify(tr==null?void 0:tr[0])===JSON.stringify(hr)))&&($l=(Kl=Wa==null?void 0:Wa.value)==null?void 0:Kl.find(tr=>JSON.stringify(tr==null?void 0:tr[0])===JSON.stringify(hr))),$l&&$l.length>0?zl[Lr.value[Il].prop]=$l!=null&&$l.find(tr=>{var ur;return((ur=Object.keys(tr))==null?void 0:ur[0])===Lr.value[Il].column})?(fr=$l==null?void 0:$l.find(tr=>{var ur;return((ur=Object.keys(tr))==null?void 0:ur[0])===Lr.value[Il].column}))==null?void 0:fr[Lr.value[Il].column]:_l:zl[Lr.value[Il].prop]=_l}else Array.isArray(_l)&&((qr=Lr.value[Il])!=null&&qr.prop?zl[Lr.value[Il].prop]=_l:zl.children=mt(_l,Lr.value))})}else zl=ml;if(Array.isArray(ml)&&ml.some($l=>$l==null?void 0:$l.id)){const $l=(xr=ml==null?void 0:ml.find(_l=>_l.id))==null?void 0:xr.id;Ya.push(Object.assign(zl,{id:ni($l)}))}else zl.id?Ya.push(zl):Ya.push(Object.assign(zl,{id:Dl.toString()}))});const vl=(Ce.value||[]).map(ml=>String(ml==null?void 0:ml.id)),nl=oi(Ya,vl);Ce.value=Rt(nl,le,Ee.value)}Ot(Ce.value),Yr.value=Ce.value;const ne=yf(Yr.value,mn.value,B);let H=[];if(V.value?(H=(il=Y.cloneDeep(V).value.singleContent)==null?void 0:il.filter(Ya=>(Ya==null?void 0:Ya.id)!==(R==null?void 0:R.id)),H.push(R)):H=[R],Ol.value){const Ya={content:ne,singleContent:((ka=le==null?void 0:le.contents)==null?void 0:ka.length)>0?H==null?void 0:H.flatMap(Mt):H,index:u==null?void 0:u.index,buttonName:"编辑",column:Ee.value,parentTableId:u==null?void 0:u.parentTableId};Qe.setCacheUpdatingData(Ya)}if((Ja=Ee.value)==null||Ja.forEach(Ya=>{(Ya==null?void 0:Ya.formType)==="Upload"&&(R[Ya.prop]=R[Ya.prop]===""?"{}":typeof R[Ya.prop]!="string"?JSON.stringify(R[Ya.prop]):R[Ya.prop])}),d){(Ba=(ca=(Ta=(ce=u.itemData)==null?void 0:ce.find(nl=>(nl==null?void 0:nl.key)==="filterAllType"))==null?void 0:Ta.value)==null?void 0:ca.find(nl=>(nl==null?void 0:nl.value)==="onConditionContents"))==null||Ba.content;let Ya=(Aa=u.itemData)==null?void 0:Aa.filter(nl=>(nl==null?void 0:nl.key)==="filterAllType");Ya=Array.from(new Map(Ya.filter(Boolean).map((nl,ml)=>[nl.value,{...nl,_idx:ml}])).values()).sort((nl,ml)=>nl._idx-ml._idx).map(({_idx:nl,...ml})=>ml),Ya=(T=Ya==null?void 0:Ya[(Ya==null?void 0:Ya.length)-1])==null?void 0:T.value;const vl={fixContent:[R],buttonName:ze.value,relatedContents:u==null?void 0:u.related,columns:Ee.value,name:u==null?void 0:u.groupNames};Qe.setTableLoading(u==null?void 0:u.index),Xe.value=!1,cr.value=void 0,Te("change",vl)}if((na=(Me=(K=De.value)==null?void 0:K[0])==null?void 0:Me.optionUrl)!=null&&na.menuId){Xe.value=!1;let Ya=(ge=u.itemData)==null?void 0:ge.filter(vl=>(vl==null?void 0:vl.key)==="filterAllType");if((Ya==null?void 0:Ya.length)>0){let vl=Ya==null?void 0:Ya.map(Dl=>Dl==null?void 0:Dl.value),nl=(fl=(Ia=(ta=vl.flat().find(Dl=>{var zl;return(zl=Dl==null?void 0:Dl.content)==null?void 0:zl.includes("@Num")}))==null?void 0:ta.content)==null?void 0:Ia.split(":"))==null?void 0:fl[1];((gl=(yl=(ll=vl.flat().find(Dl=>{var zl;return(zl=Dl==null?void 0:Dl.content)==null?void 0:zl.includes("@Type:")}))==null?void 0:ll.content)==null?void 0:yl.split(":"))==null?void 0:gl[1])!=="Manual"&&(nl=parseInt(nl),Ce.value=(xl=Ce.value)==null?void 0:xl.slice(((Fl=Ce.value)==null?void 0:Fl.length)-nl,(el=Ce.value)==null?void 0:el.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Xo),Ee.value=[],Ce.value=[],de.value=[],ya.value=[],fa.value=[],Ua.value=[],He.value=[],We.value=[],De.value=[],ir.value=[],s.value=null,An.value=""});const ui=async(d,h,N)=>{var Ke,ma,Ka,Za,sa,il,ka,Ja,ce,Ta,ca,Ba,Aa;Hl.value=(N==null?void 0:N.prop)??(N==null?void 0:N.property);const z=Y.cloneDeep(u.itemData),R=((Ke=z==null?void 0:z.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Ke.contents)??[];let B=R==null?void 0:R.find((T,K)=>{var Me,na,ge;return(T==null?void 0:T.prop)===Hl.value||(T==null?void 0:T.label)===Hl.value||(K==null?void 0:K.toString())===((ge=(na=(Me=Hl.value)==null?void 0:Me.split("a"))==null?void 0:na[1])==null?void 0:ge.toString())});const le=oa.getColumnChild((ma=Y.cloneDeep(Ee.value))==null?void 0:ma.filter(T=>(T==null?void 0:T.label)!=="操作"));if(B||(B=le==null?void 0:le.find(T=>(T==null?void 0:T.prop)===Hl.value||(T==null?void 0:T.label)===Hl.value)),B&&!((Ka=B==null?void 0:B.menus)!=null&&Ka.length)&&!((Za=B==null?void 0:B.groups)!=null&&Za.length)&&!((sa=B==null?void 0:B.words)!=null&&sa.length)){const T=(il=De.value)==null?void 0:il.find(K=>(K==null?void 0:K.prop)===Hl.value);T&&(B={...B,menus:(T==null?void 0:T.menus)??(B==null?void 0:B.menus),groups:(T==null?void 0:T.groups)??(B==null?void 0:B.groups),words:(T==null?void 0:T.words)??(B==null?void 0:B.words),bindMenus:(T==null?void 0:T.bindMenus)??(B==null?void 0:B.bindMenus),isMainPath:(T==null?void 0:T.isMainPath)??(B==null?void 0:B.isMainPath),relatedContents:(T==null?void 0:T.relatedContents)??(B==null?void 0:B.relatedContents),endChildMenu:(T==null?void 0:T.endChildMenu)??(B==null?void 0:B.endChildMenu)})}if(B&&((ka=De==null?void 0:De.value)==null||ka.forEach(T=>{var K,Me,na,ge,ta;(T==null?void 0:T.prop)===(B==null?void 0:B.prop)&&(T!=null&&T.endChildMenu)&&((K=B==null?void 0:B.prop)!=null&&K.includes(".")&&((na=(Me=B==null?void 0:B.prop)==null?void 0:Me.split("."))==null?void 0:na[0])!==((ta=(ge=T==null?void 0:T.prop)==null?void 0:ge.split("."))==null?void 0:ta[0])?B.endChildMenu=T==null?void 0:T.value:B.endChildMenu=T==null?void 0:T.endChildMenu)})),!B)return;const ne=Hl.value,H=(Ja=Ce.value)==null?void 0:Ja.findIndex(T=>(T==null?void 0:T.id)===(h==null?void 0:h.id));H!==-1&&ne&&(Ce.value[H]={...Ce.value[H],[ne]:d});const xe=T=>{Array.isArray(T)&&T.forEach(K=>{Array.isArray(K==null?void 0:K.allSelectionContents)&&K.allSelectionContents.length>0&&(K.contactValue=Ce.value[H]??h),Array.isArray(K==null?void 0:K.children)&&K.children.length>0&&xe(K.children)})};xe(Ee.value),B.value=d,B.endChildMenu=B.endChildMenu||"";let _e=B!=null&&B.isMainPath&&(B!=null&&B.mainKey)?B==null?void 0:B.value:"";const Pe=T=>{Array.isArray(T)&&T.forEach(K=>{var na,ge;if(((K==null?void 0:K.type)==="Select"||(K==null?void 0:K.formType)&&K.formType.toUpperCase()==="SELECT"||(K==null?void 0:K.columnType)&&K.columnType.toUpperCase()==="SELECT")&&Array.isArray(K==null?void 0:K.menus)&&K.menus.length>0&&K.menus[K.menus.length-1]===""&&(B!=null&&B.isMainPath)&&(B!=null&&B.mainKey)){const ta=(na=K==null?void 0:K.prop)!=null&&na.includes(".")?K.prop.split(".")[0]:null,Ia=(ge=B==null?void 0:B.prop)!=null&&ge.includes(".")?B.prop.split(".")[0]:null;(!ta||!Ia||ta===Ia)&&(K.endChildMenu=_e)}Array.isArray(K==null?void 0:K.children)&&K.children.length>0&&Pe(K.children)})};if(Pe(Ee.value),!!(B!=null&&B.mainKey)&&Array.isArray(B==null?void 0:B.menus)&&(B==null?void 0:B.menus.length)>0&&(B!=null&&B.value)&&(B==null?void 0:B.value)!==""){let T=B!=null&&B.relatedContents&&((ce=B==null?void 0:B.relatedContents)==null?void 0:ce.length)>0?(Ta=B==null?void 0:B.relatedContents)==null?void 0:Ta.find(K=>{var Me,na,ge,ta;return(K==null?void 0:K[(ta=(Me=B==null?void 0:B.prop)==null?void 0:Me.split("."))==null?void 0:ta[((ge=(na=B==null?void 0:B.prop)==null?void 0:na.split("."))==null?void 0:ge.length)-1]])===(B==null?void 0:B.value)}):await ts(B);if(T){const K={...h};le==null||le.forEach(Me=>{var na,ge,ta,Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl,nl,ml,Dl;(Me==null?void 0:Me.prop)!==(B==null?void 0:B.prop)&&(B!=null&&B.relatedContents&&((na=B==null?void 0:B.relatedContents)==null?void 0:na.length)>0?(ge=Me==null?void 0:Me.prop)!=null&&ge.includes(".")&&((Ia=(ta=Me==null?void 0:Me.prop)==null?void 0:ta.split("."))==null?void 0:Ia[0])===((ll=(fl=B==null?void 0:B.prop)==null?void 0:fl.split("."))==null?void 0:ll[0])?K[Me.prop]=T[(el=(yl=Me==null?void 0:Me.prop)==null?void 0:yl.split("."))==null?void 0:el[((Fl=(gl=Me==null?void 0:Me.prop)==null?void 0:gl.split("."))==null?void 0:Fl.length)-1]]??K[Me.prop]:K[Me.prop]=(T==null?void 0:T[Me.prop])??K[Me.prop]:$a.same((B==null?void 0:B.menus)??[],(Me==null?void 0:Me.menus)??[])&&$a.same((B==null?void 0:B.groups)??[],(Me==null?void 0:Me.groups)??[])&&!$a.same((B==null?void 0:B.words)??[],(Me==null?void 0:Me.words)??[])?(xl=Me==null?void 0:Me.prop)!=null&&xl.includes(".")&&((vl=(Ya=Me==null?void 0:Me.prop)==null?void 0:Ya.split("."))==null?void 0:vl[0])!==((ml=(nl=B==null?void 0:B.prop)==null?void 0:nl.split("."))==null?void 0:ml[0])||(K[Me.prop]=(T==null?void 0:T[(Dl=Me==null?void 0:Me.words)==null?void 0:Dl.join(".")])??(T==null?void 0:T[Me.prop])??K[Me.prop]):(!(Me!=null&&Me.isMainPath)&&$a.same((B==null?void 0:B.bindMenus)??[],(Me==null?void 0:Me.bindMenus)??[]),K[Me.prop]=(T==null?void 0:T[Me.prop])??K[Me.prop]))}),Ce.value=(ca=Y.cloneDeep(Ce.value))==null?void 0:ca.map(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id)?{...K,id:Me==null?void 0:Me.id}:Me)}}if((Ba=B==null?void 0:B.optionUrl)!=null&&Ba.menuSelect){let T="";le==null||le.forEach(na=>{var ge,ta,Ia,fl,ll;T===""&&((Ia=(ta=(ge=na==null?void 0:na.optionUrl)==null?void 0:ge.groupSelect)==null?void 0:ta[1])!=null&&Ia.includes("["))&&(T=(ll=(fl=na==null?void 0:na.optionUrl)==null?void 0:fl.groupSelect)==null?void 0:ll[1])});let K=await yt(B),Me;if(K==null||K.forEach(na=>{var ge,ta,Ia,fl,ll,yl,gl,Fl,el,xl;T===((ta=(ge=B==null?void 0:B.optionUrl)==null?void 0:ge.groupSelect)==null?void 0:ta[1])&&((ll=(fl=(Ia=B==null?void 0:B.optionUrl)==null?void 0:Ia.groupSelect)==null?void 0:fl[1])!=null&&ll.includes("["))&&((xl=Y.cloneDeep(na))==null?void 0:xl[(el=(Fl=(gl=(yl=B==null?void 0:B.optionUrl)==null?void 0:yl.groupSelect)==null?void 0:gl[1])==null?void 0:Fl.replaceAll("[",""))==null?void 0:el.replaceAll("]","")])===(B==null?void 0:B.value)&&(Me=na)}),Me){const na={...h};le==null||le.forEach(ge=>{var ta,Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl;(Me!=null&&Me[ge==null?void 0:ge.label]||Me!=null&&Me[(ll=(fl=(Ia=(ta=ge==null?void 0:ge.optionUrl)==null?void 0:ta.groupSelect)==null?void 0:Ia[1])==null?void 0:fl.replaceAll("[",""))==null?void 0:ll.replaceAll("]","")])&&((Fl=(gl=(yl=ge==null?void 0:ge.optionUrl)==null?void 0:yl.groupSelect)==null?void 0:gl[1])!=null&&Fl.includes("["))&&(na[ge.prop]=(Me==null?void 0:Me[ge==null?void 0:ge.label])||(Me==null?void 0:Me[(vl=(Ya=(xl=(el=ge==null?void 0:ge.optionUrl)==null?void 0:el.groupSelect)==null?void 0:xl[1])==null?void 0:Ya.replaceAll("[",""))==null?void 0:vl.replaceAll("]","")]))}),Ce.value=(Aa=Y.cloneDeep(Ce.value))==null?void 0:Aa.map(ge=>(ge==null?void 0:ge.id)===(h==null?void 0:h.id)?{...na,id:ge==null?void 0:ge.id}:ge)}}},ou=async d=>{var Ke,ma,Ka,Za,sa,il,ka,Ja,ce,Ta,ca,Ba,Aa,T;if(!d)return;const h=Y.cloneDeep(cr.value||{});cr.value=d;const N=$o(h),z=$o(cr.value);if(z&&z!==N&&await ot(z,Fa.value||void 0)){al.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ci.forEach(Me=>{if(Object.prototype.hasOwnProperty.call(cr.value||{},Me)||Object.prototype.hasOwnProperty.call(h||{},Me)){const na=(h==null?void 0:h[Me])??"";cr.value[Me]=na,d[Me]=na}}),De.value=(De.value||[]).map(Me=>{if(!(Me!=null&&Me.prop)||!ci.includes(Me.prop))return Me;const na=(h==null?void 0:h[Me.prop])??"";return{...Me,value:na,selectValue:na===""?[]:[na]}});return}let R=Y.cloneDeep(u.itemData);R==null||R.map(K=>{var Me,na,ge,ta;return(K==null?void 0:K.key)==="header"&&(Array.isArray((Me=K.contents)==null?void 0:Me[0])?K.contents=(ge=oa.getColumnChild((na=K.contents)==null?void 0:na[0]))==null?void 0:ge.map((Ia,fl)=>{var ll,yl,gl,Fl,el,xl;return((gl=(yl=(ll=De.value)==null?void 0:ll.find(Ya=>(Ya==null?void 0:Ya.prop)===(Ia==null?void 0:Ia.prop)))==null?void 0:yl.optionUrl)==null?void 0:gl.multiple)===!0&&!Array.isArray((Fl=Object.values(d))==null?void 0:Fl[fl])?Ia.value=[(el=Object.values(d))==null?void 0:el[fl]]:Ia.value=(xl=Object.values(d))==null?void 0:xl[fl],Ia}):K.contents=(ta=K.contents)==null?void 0:ta.map((Ia,fl)=>{var ll,yl,gl,Fl,el,xl;return((gl=(yl=(ll=De.value)==null?void 0:ll.find(Ya=>(Ya==null?void 0:Ya.prop)===(Ia==null?void 0:Ia.prop)))==null?void 0:yl.optionUrl)==null?void 0:gl.multiple)===!0&&!Array.isArray((Fl=Object.values(d))==null?void 0:Fl[fl])?Ia.value=[(el=Object.values(d))==null?void 0:el[fl]]:Ia.value=(xl=Object.values(d))==null?void 0:xl[fl],Ia})),K});let B=De.value,le=(Ke=R==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:Ke.contents;if(Hl.value||(B=B==null?void 0:B.map(K=>{var Me;return K.value=K.value??((Me=le==null?void 0:le.find((na,ge)=>(na==null?void 0:na.prop)===(K==null?void 0:K.name)))==null?void 0:Me.value),K})),!Vr.value)return;let ne=Y.cloneDeep(Hl.value);(ma=Hl.value)!=null&&ma.includes("·")&&(Hl.value=(Za=(Ka=Hl.value)==null?void 0:Ka.split("·"))==null?void 0:Za[0]);let H=(il=(sa=R==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:sa.contents)==null?void 0:il.find((K,Me)=>(K==null?void 0:K.prop)===Hl.value);(ka=De==null?void 0:De.value)==null||ka.forEach(K=>{var Me,na,ge,ta,Ia,fl,ll,yl,gl;(K==null?void 0:K.prop)===(H==null?void 0:H.prop)&&(K!=null&&K.endChildMenu)&&((Me=H==null?void 0:H.prop)!=null&&Me.includes(".")&&((ge=(na=H==null?void 0:H.prop)==null?void 0:na.split("."))==null?void 0:ge[0])!==((Ia=(ta=K==null?void 0:K.prop)==null?void 0:ta.split("."))==null?void 0:Ia[0])?H.endChildMenu=(ll=(fl=K==null?void 0:K.value)==null?void 0:fl.split(" "))==null?void 0:ll[0]:H.endChildMenu=(gl=(yl=K==null?void 0:K.endChildMenu)==null?void 0:yl.split(" "))==null?void 0:gl[0])});let xe=H!=null&&H.isMainPath&&(H!=null&&H.mainKey)?H==null?void 0:H.value:"",_e=B,Pe=be.value;if(Pe!=null&&Pe.find(K=>(H==null?void 0:H.prop)===(K==null?void 0:K.key))&&(Pe=Pe==null?void 0:Pe.filter(K=>(H==null?void 0:H.prop)!==(K==null?void 0:K.key))),Pe!=null&&Pe.find(K=>ne===(K==null?void 0:K.key))&&(Pe=Pe==null?void 0:Pe.filter(K=>ne!==(K==null?void 0:K.key))),(H==null?void 0:H.formType)==="Select"&&(_e=_e==null?void 0:_e.map(K=>{var Me,na,ge,ta,Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl,nl,ml;return(K==null?void 0:K.type)==="Select"&&(((Me=K==null?void 0:K.allSelectionContents)==null?void 0:Me.length)>0&&(K.contactValue=d),((H==null?void 0:H.prop)===(K==null?void 0:K.prop)||ne===(K==null?void 0:K.prop))&&H&&(Array.isArray(H.value)&&((na=H.value)==null?void 0:na.length)>0&&((ge=H.value)!=null&&ge.every(Dl=>typeof Dl=="string"))?(Pe.push({key:K==null?void 0:K.prop,value:[(Ia=H.value)==null?void 0:Ia[((ta=H.value)==null?void 0:ta.length)-1]]}),K.selectValue=(fl=Pe==null?void 0:Pe.find(Dl=>(Dl==null?void 0:Dl.key)===(K==null?void 0:K.prop)))==null?void 0:fl.value):Array.isArray(H.value)&&((ll=H.value)==null?void 0:ll.length)===0?(Pe=[],K.selectValue=[],d[K==null?void 0:K.prop]=""):Array.isArray(K.value)&&Pe.push({key:K==null?void 0:K.prop,value:[(yl=K.value)==null?void 0:yl[(K==null?void 0:K.length)-1]]})),((Fl=K==null?void 0:K.menus)==null?void 0:Fl[((gl=K==null?void 0:K.menus)==null?void 0:gl.length)-1])===""&&(H!=null&&H.isMainPath)&&(H!=null&&H.mainKey)&&((el=K==null?void 0:K.prop)!=null&&el.includes(".")&&((Ya=(xl=K==null?void 0:K.prop)==null?void 0:xl.split("."))==null?void 0:Ya[0])!==((nl=(vl=H==null?void 0:H.prop)==null?void 0:vl.split("."))==null?void 0:nl[0])||(K.endChildMenu=(ml=xe==null?void 0:xe.split(" "))==null?void 0:ml[0]))),K.value=(d==null?void 0:d[K==null?void 0:K.prop])??(K==null?void 0:K.value),K})),be.value=Pe,_e!=null&&_e.some(K=>(K==null?void 0:K.functionName)&&(K==null?void 0:K.functionName)!=="")){let K=await vt([d],Ee==null?void 0:Ee.value,"Auto",Ce.value),Me=[];(Ja=_e==null?void 0:_e.filter(ge=>(ge==null?void 0:ge.functionName)&&(ge==null?void 0:ge.functionName)!==""))==null||Ja.forEach(ge=>{var ta;((ta=ge==null?void 0:ge.functionRelatedWords)==null?void 0:ta.length)>0&&(Me=[...Me,...ge==null?void 0:ge.functionRelatedWords])}),Me=Me==null?void 0:Me.filter(ge=>(ge==null?void 0:ge[0])!=="@");let na=[];for(let ge in K==null?void 0:K[0])Me!=null&&Me.find(ta=>ge===ta||(ge==null?void 0:ge.includes("."+ta)))&&na.push(((ce=K==null?void 0:K[0])==null?void 0:ce[ge])!=="");(K==null?void 0:K.length)>0&&na.every(ge=>ge)&&(_e=_e==null?void 0:_e.map(ge=>{var ta;return ge.value=((ta=K==null?void 0:K[0])==null?void 0:ta[ge==null?void 0:ge.prop])??ge.value,ge})),cr.value=K==null?void 0:K[0]}if(De.value=_e,H=Object.assign({},H??{},{relatedWords:(ca=(Ta=De==null?void 0:De.value)==null?void 0:Ta.find(K=>(K==null?void 0:K.prop)===(H==null?void 0:H.prop)))==null?void 0:ca.relatedWords}),(H==null?void 0:H.mainKey)&&(H!=null&&H.value)&&(H==null?void 0:H.value)!==""){let K=H!=null&&H.relatedContents&&((Ba=H==null?void 0:H.relatedContents)==null?void 0:Ba.length)>0?(Aa=H==null?void 0:H.relatedContents)==null?void 0:Aa.find(Me=>{var na,ge,ta,Ia;return(Me==null?void 0:Me[(Ia=(na=H==null?void 0:H.prop)==null?void 0:na.split("."))==null?void 0:Ia[((ta=(ge=H==null?void 0:H.prop)==null?void 0:ge.split("."))==null?void 0:ta.length)-1]])===(H==null?void 0:H.value)}):await ts(H);if(K&&JSON.stringify(K)!=="{}"){let Me=_e;Me=Me==null?void 0:Me.map(ge=>{var ta,Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl,nl,ml,Dl,zl,xr,$l,_l,Il,Jl,Ml;if((H==null?void 0:H.prop)===(ge==null?void 0:ge.prop))ge.value=(K==null?void 0:K[(ta=ge==null?void 0:ge.words)==null?void 0:ta.join(".")])??(K==null?void 0:K[ge==null?void 0:ge.prop])??K[(yl=(Ia=ge==null?void 0:ge.prop)==null?void 0:Ia.split("."))==null?void 0:yl[((ll=(fl=ge==null?void 0:ge.prop)==null?void 0:fl.split("."))==null?void 0:ll.length)-1]];else if(H!=null&&H.relatedContents&&((gl=H==null?void 0:H.relatedContents)==null?void 0:gl.length)>0)ge.value=(Fl=ge==null?void 0:ge.prop)!=null&&Fl.includes(".")&&((xl=(el=ge==null?void 0:ge.prop)==null?void 0:el.split("."))==null?void 0:xl[0])===((vl=(Ya=H==null?void 0:H.prop)==null?void 0:Ya.split("."))==null?void 0:vl[0])?K[(zl=(nl=ge==null?void 0:ge.prop)==null?void 0:nl.split("."))==null?void 0:zl[((Dl=(ml=ge==null?void 0:ge.prop)==null?void 0:ml.split("."))==null?void 0:Dl.length)-1]]:(K==null?void 0:K[ge==null?void 0:ge.prop])??(ge==null?void 0:ge.value);else if($a.same((H==null?void 0:H.menus)??[],(ge==null?void 0:ge.menus)??[])&&$a.same((H==null?void 0:H.groups)??[],(ge==null?void 0:ge.groups)??[])&&!$a.same((H==null?void 0:H.words)??[],(ge==null?void 0:ge.words)??[]))if((xr=ge==null?void 0:ge.prop)!=null&&xr.includes(".")&&((_l=($l=ge==null?void 0:ge.prop)==null?void 0:$l.split("."))==null?void 0:_l[0])!==((Jl=(Il=H==null?void 0:H.prop)==null?void 0:Il.split("."))==null?void 0:Jl[0])){let Yl=Object.keys(K);Yl=Yl==null?void 0:Yl.find(er=>{var Kl;return er==null?void 0:er.includes("."+((Kl=ge==null?void 0:ge.words)==null?void 0:Kl.join(".")))}),ge.value=(K==null?void 0:K[Yl])??(K==null?void 0:K[ge==null?void 0:ge.prop])??ge.value}else{let Yl=Object.keys(K);Yl=Yl==null?void 0:Yl.find(er=>{var Kl;return er==null?void 0:er.includes("."+((Kl=ge==null?void 0:ge.words)==null?void 0:Kl.join(".")))}),ge.value=(K==null?void 0:K[(Ml=ge==null?void 0:ge.words)==null?void 0:Ml.join(".")])??(K==null?void 0:K[Yl])??(K==null?void 0:K[ge==null?void 0:ge.prop])??ge.value}else!(ge!=null&&ge.isMainPath)&&$a.same((H==null?void 0:H.bindMenus)??[],(ge==null?void 0:ge.bindMenus)??[]),ge.value=(K==null?void 0:K[ge==null?void 0:ge.prop])??ge.value;return ge}),De.value=Me;let na={};(T=De.value)==null||T.forEach(ge=>{na[ge.prop]=ge==null?void 0:ge.value}),cr.value=na}}Vr.value=!0,W.value=!1},iu=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",tu=d=>{var B,le;const h=(le=(B=fa.value)==null?void 0:B.find(ne=>(ne==null?void 0:ne.label)===(d==null?void 0:d.label)))==null?void 0:le.multiple,N=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ce.value.forEach(ne=>{const H=ne==null?void 0:ne[N];h&&Ei.isString(H)&&(ne[N]=[H]),!h&&!Ei.isString(H)&&(ne[N]="")})},It=(d,h)=>{var N;return h==null||h.forEach(z=>{d[z==null?void 0:z.prop]=z==null?void 0:z.value}),d.children&&((N=d.children)==null?void 0:N.length)>0&&(d.children=d.children.map(z=>It(z,h))),d},it=d=>{var N,z,R,B,le,ne;Ro("");const h=(N=De.value)==null?void 0:N.reduce((H,xe)=>(H[xe.name]=xe.value,H),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){cr.value=h,Fa.value="",me.value=(R=Ce.value)==null?void 0:R.length,We.value=(B=Ne.value)==null?void 0:B.filter(xe=>(xe==null?void 0:xe.label)!=="新增");const H=(ne=(le=de.value)==null?void 0:le.filter(xe=>(xe==null?void 0:xe.label)!=="操作"))==null?void 0:ne.map(xe=>{var Pe,Re,Ke;const _e=(Re=(Pe=fa.value)==null?void 0:Pe.find(ma=>(ma==null?void 0:ma.label)===(xe==null?void 0:xe.label)))==null?void 0:Re.multiple;return tu(xe),{...xe,contents:(xe==null?void 0:xe.options)??[],optionUrl:xe!=null&&xe.formMenuSelect&&((Ke=xe==null?void 0:xe.formMenuSelect)==null?void 0:Ke.length)>0?{groupSelect:xe==null?void 0:xe.groupSelect,menuSelect:xe==null?void 0:xe.formMenuSelect,selectRelateType:"",type:xe==null?void 0:xe.formType,multiple:_e}:null}});Ee.value=H==null?void 0:H.map(xe=>It(xe,[{prop:"type",value:"edit"},{prop:"columnType",value:iu(xe==null?void 0:xe.formType)||(xe==null?void 0:xe.columnType)}])),d==="createClick"&&(ze.value="新增",Vo(!0))}},mo={START:"开始时间",END:"结束时间",HOURS:"工时"},su=(d,h)=>Number(Vn.dayjs(h).diff(Vn.dayjs(d),"day",!0).toFixed(1)),Ot=d=>{var B;const h=u.itemData,N=(B=h==null?void 0:h.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:B.contents,z=new Map;return N==null||N.forEach((le,ne)=>{const{label:H}=le;z.set(H,ne)}),!z.has(mo.START)||!z.has(mo.END)||!z.has(mo.HOURS)?d:d==null?void 0:d.map(le=>{const ne=le==null?void 0:le[mo.START],H=le==null?void 0:le[mo.END],xe=su(ne,H);return ne&&H&&(le[mo.HOURS]=`${xe}天`),le})},Lt=(d,h,N=0)=>{if(N>((h==null?void 0:h.length)??""))return d;const z=h==null?void 0:h[N],R=new Map;for(const le of d){const ne=le[z];R.has(ne)||R.set(ne,[]),R.get(ne)&&R.get(ne).push(le)}const B=[];for(const[le,ne]of R){const[H,...xe]=ne,_e={...H};N+1===((h==null?void 0:h.length)??"")?_e.children=ne==null?void 0:ne.map(Pe=>(Pe.level=Y.cloneDeep(N)+1,Pe)).filter((Pe,Re)=>Re!==0):xe.length>0&&(_e.children=Lt(xe,h,N+1)),_e.level=N,B.push(_e)}return B},Rt=(d,h,N)=>{var R;if(!(h!=null&&h.contents)||((R=h==null?void 0:h.contents)==null?void 0:R.length)===0)return d;let z=[];return z=Lt(d,h==null?void 0:h.contents,0),z},$t=async(d,h)=>{var Za,sa,il,ka,Ja,ce,Ta,ca,Ba,Aa,T,K,Me,na,ge,ta,Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl,nl,ml,Dl,zl,xr,$l,_l,Il,Jl,Ml,Yl,er,Kl,fr,qr,hr,tr,ur,Pt,Ft,jt;const N=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="header");d==null||d.filter(ha=>(ha==null?void 0:ha.key)==="tableIndexColumn")[0];const z=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="childTree")[0];let R=!0;if((il=(sa=(Za=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:Za.value)==null?void 0:sa.find(ha=>(ha==null?void 0:ha.value)==="onPamButtonContents"))!=null&&il.content){let ha=(ce=(Ja=(ka=d==null?void 0:d.find(Bl=>(Bl==null?void 0:Bl.key)==="filterAllType"))==null?void 0:ka.value)==null?void 0:Ja.find(Bl=>(Bl==null?void 0:Bl.value)==="onPamButtonContents"))==null?void 0:ce.content;ha=(Ta=ha==null?void 0:ha.split(":"))==null?void 0:Ta[1],ha=(ca=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:ca.split(","),R=!!(ha!=null&&ha.find(Bl=>Bl==="操作"))}const B=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="page"),le=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="rowButton"),ne=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="extraButton"),H=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableContents"),xe=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="bottomButton"),_e=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableIndex");fa.value=(Aa=(Ba=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableToForm"))==null?void 0:Ba[0])==null?void 0:Aa.contents,Je.value=(B==null?void 0:B.contents)??!0;let Pe=[];ql.value===""?Pe=N==null?void 0:N[0]:Pe=(N==null?void 0:N.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+ql.value+")"))??(N==null?void 0:N.find(ha=>!(ha!=null&&ha.selectLabel)));let Re=[];ql.value===""?Re=_e==null?void 0:_e[0]:Re=(_e==null?void 0:_e.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+ql.value+")"))??(_e==null?void 0:_e.find(ha=>!(ha!=null&&ha.selectLabel)));let Ke=[],ma=[];if(((T=Pe==null?void 0:Pe.contents)==null?void 0:T.length)>0){let ha=[],Bl=Pe==null?void 0:Pe.contents;if(Array.isArray(Bl==null?void 0:Bl[0])&&((K=Bl==null?void 0:Bl[0])!=null&&K.every(tl=>!(tl!=null&&tl.children)))&&(Bl=Bl==null?void 0:Bl[0]),Bl.some(tl=>Array.isArray(tl)&&(tl==null?void 0:tl.find(Ue=>Ue.children))))ha=(Me=oa.getGradeColumns(Bl,R))==null?void 0:Me[0],ha!=null&&ha.find(tl=>(tl==null?void 0:tl.label)==="操作")||ha.push({label:"操作",prop:"operate",type:"operate"});else{let tl=Bl.some(Ue=>Array.isArray(Ue))?Bl==null?void 0:Bl[0]:Bl;tl!=null&&tl.find(Ue=>(Ue==null?void 0:Ue.label)==="操作")||tl.push({label:"操作",prop:"operate",type:"operate"}),tl==null||tl.forEach((Ue,Ql)=>{var Rr,Nr,$r,Cr,ro,bo,ko,br,gn,Wn,xo,rn,Kn,Wt,Kt,Gt,Yt,Jt,Xt,Zt;if((Nr=(Rr=ba.value)==null?void 0:Rr.split("/"))==null||Nr.forEach(ar=>{var vr,Bn,Qt;ar!==""&&((Qt=(Bn=(vr=ar==null?void 0:ar.split(k+"updateLoading"))==null?void 0:vr[0])==null?void 0:Bn.split(k+"loading"))==null||Qt[0])}),Ue!=null&&Ue.methodContent){let ar=(ro=(Cr=($r=Ue==null?void 0:Ue.methodContent)==null?void 0:$r.replace("@","%%#"))==null?void 0:Cr.split("%%#"))==null?void 0:ro[1];if(ar=ar==null?void 0:ar.slice(0,(ar==null?void 0:ar.length)-1),ar=oa.contentTransArrayToAllNoExtra(ar??"",","),(bo=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("@Button")))!=null&&bo.includes("Prop")&&((ko=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("Type")))!=null&&ko.includes("Manual"))){let vr=(gn=(br=ar==null?void 0:ar.find(Bn=>Bn==null?void 0:Bn.includes("@Button")))==null?void 0:br.split(":"))==null?void 0:gn[1];vr=((rn=(xo=(Wn=vr==null?void 0:vr.replaceAll("[",""))==null?void 0:Wn.replaceAll("]",""))==null?void 0:xo.split(","))==null?void 0:rn[1])??"算法执行",Ke.push(vr)}else if((Kn=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("@Button")))!=null&&Kn.includes("Row")&&((Wt=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("Type")))!=null&&Wt.includes("Manual"))){let vr=(Gt=(Kt=ar==null?void 0:ar.find(Bn=>Bn==null?void 0:Bn.includes("@Button")))==null?void 0:Kt.split(":"))==null?void 0:Gt[1];vr=((Xt=(Jt=(Yt=vr==null?void 0:vr.replaceAll("[",""))==null?void 0:Yt.replaceAll("]",""))==null?void 0:Jt.split(","))==null?void 0:Xt[1])??"算法执行",ma.push(vr)}}(Zt=fa.value)==null||Zt.find(ar=>(ar==null?void 0:ar.prop)===(Ue==null?void 0:Ue.prop)),ha.push({label:(Ue==null?void 0:Ue.label)==="操作"?R?"操作":"":(Ue==null?void 0:Ue.label)??"",prop:(Ue==null?void 0:Ue.label)==="操作"?"operate":(Ue==null?void 0:Ue.prop)??"a"+Ql,width:Ue!=null&&Ue.width?parseInt(Ue.width):"",fixed:(Ue==null?void 0:Ue.fixed)??void 0,sortable:(Ue==null?void 0:Ue.sortable)??!1,filterable:(Ue==null?void 0:Ue.filterable)??!1,operable:(Ue==null?void 0:Ue.operable)??!1,showSummary:(Ue==null?void 0:Ue.showSummary)??!1,align:(Ue==null?void 0:Ue.align)??"left",showOverflowTooltip:(Ue==null?void 0:Ue.showOverflowTooltip)??!0,isNotDrag:(Ue==null?void 0:Ue.isNotDrag)??!1,isEditCol:(Ue==null?void 0:Ue.isEditCol)??!1,isOperate:(Ue==null?void 0:Ue.isOperate)??!1,id:(Ue==null?void 0:Ue.id)??Ql,type:(Ue==null?void 0:Ue.label)==="操作"?"operate":void 0,formType:(Ue==null?void 0:Ue.formType)??(Ue!=null&&Ue.groupSelect?"Select":""),disabled:Ue==null?void 0:Ue.disabled,options:(Ue==null?void 0:Ue.options)??[],value:(Ue==null?void 0:Ue.value)??"",isExistChild:(Ue==null?void 0:Ue.isExistChild)??!1,mainKey:(Ue==null?void 0:Ue.mainKey)??Ql===0,allSelectionContents:(Ue==null?void 0:Ue.allContents)??[],filterContent:Ue==null?void 0:Ue.filterContents,menus:Ue==null?void 0:Ue.menus,groups:Ue==null?void 0:Ue.groups,words:Ue==null?void 0:Ue.words,filter:Ue==null?void 0:Ue.filter,bindMenus:Ue==null?void 0:Ue.bindMenus,fatherPath:Ue==null?void 0:Ue.fatherPath,isMainPath:Ue==null?void 0:Ue.isMainPath,required:(Ue==null?void 0:Ue.required)??!1,relatedContents:Ue==null?void 0:Ue.relatedContents,functionName:Ue==null?void 0:Ue.functionName,functionRelatedWords:Ue==null?void 0:Ue.functionRelatedWords,calculatorFilter:Ue==null?void 0:Ue.calculatorFilter,relatedPages:Ue==null?void 0:Ue.relatedPages,multiple:(Ue==null?void 0:Ue.multiple)??!1})})}I.value=(na=xe==null?void 0:xe[0])==null?void 0:na.contents;const sn=oa.getNewColumnChild(ha),Ht=tl=>Array.isArray(tl)?tl.map(Ue=>(Array.isArray(Ue==null?void 0:Ue.children)&&Ue.children.length>0?(Ue.sortable=!1,Ht(Ue.children)):(Ue==null?void 0:Ue.prop)==="operate"||(Ue==null?void 0:Ue.label)==="操作"||(Ue==null?void 0:Ue.type)==="operate"||(Ue.sortable=!1),Ue)):tl;Ht(sn),await qi(sn),Pf(Q.value,sn),Ee.value=sn,ya.value=sn,r.value=(ge=Ee.value)==null?void 0:ge.map(tl=>tl==null?void 0:tl.label);let cn=(Ia=(ta=oa.getAllLeafNodes(Ee.value))==null?void 0:ta.filter(tl=>(tl==null?void 0:tl.type)!=="operate"))==null?void 0:Ia.map((tl,Ue)=>({prop:(tl==null?void 0:tl.prop)??"a"+Ue,column:tl.label}));Lr.value=cn;let ln=[];ql.value===""?ln=H==null?void 0:H[0]:ln=(H==null?void 0:H.find(tl=>(tl==null?void 0:tl.selectLabel)==="("+ql.value+")"))??(H==null?void 0:H.find(tl=>!(tl!=null&&tl.selectLabel)));let lo=Array.isArray((fl=ln==null?void 0:ln.contents)==null?void 0:fl[0])&&((ll=ln==null?void 0:ln.contents)!=null&&ll[0].every(tl=>Array.isArray(tl)))?(yl=ln==null?void 0:ln.contents)==null?void 0:yl[0]:ln==null?void 0:ln.contents;Re!=null&&Re.contents&&((gl=Re==null?void 0:Re.contents)==null?void 0:gl.length)!==0&&(lo=(Fl=Y.cloneDeep(lo))==null?void 0:Fl.map((tl,Ue)=>{if(!Array.isArray(tl)){let Ql={};for(let Rr in tl)Rr!=="id"&&Rr!=="index"&&(Ql[Rr]=tl[Rr]);tl=Object.values(Ql)}return tl}));const xu=!!((el=Ee.value)!=null&&el.find(tl=>tl.prop==="index"));lo=rc(lo,Re==null?void 0:Re.contents,xu);const yo=[];lo==null||lo.forEach((tl,Ue)=>{var Rr;let Ql={};if(Array.isArray(tl)){let Nr=[];tl==null||tl.filter($r=>!($r!=null&&$r.id)).forEach(($r,Cr)=>{var ro,bo,ko,br,gn,Wn;if((ro=cn==null?void 0:cn[Cr])!=null&&ro.prop&&!Array.isArray($r)){let xo={};xo[cn[Cr].column]=$r,Wa!=null&&Wa.value&&((bo=Wa==null?void 0:Wa.value)==null?void 0:bo.length)>0&&((ko=Wa==null?void 0:Wa.value)!=null&&ko.find(rn=>JSON.stringify(rn==null?void 0:rn[0])===JSON.stringify(xo)))&&(Nr=(br=Wa==null?void 0:Wa.value)==null?void 0:br.find(rn=>JSON.stringify(rn==null?void 0:rn[0])===JSON.stringify(xo))),Nr&&Nr.length>0?Ql[cn[Cr].prop]=Nr!=null&&Nr.find(rn=>{var Kn;return((Kn=Object.keys(rn))==null?void 0:Kn[0])===cn[Cr].column})?(gn=Nr==null?void 0:Nr.find(rn=>{var Kn;return((Kn=Object.keys(rn))==null?void 0:Kn[0])===cn[Cr].column}))==null?void 0:gn[cn[Cr].column]:$r:Ql[cn[Cr].prop]=$r}else Array.isArray($r)&&((Wn=cn[Cr])!=null&&Wn.prop?Ql[cn[Cr].prop]=$r:Ql.children=mt($r,cn))})}else Ql=tl;if(Array.isArray(tl)&&tl.some(Nr=>Nr==null?void 0:Nr.id)){const Nr=(Rr=tl==null?void 0:tl.find($r=>$r.id))==null?void 0:Rr.id;yo.push(Object.assign(Ql,{id:ni(Nr)}))}else Ql.id?yo.push(Ql):yo.push(Object.assign(Ql,{id:Ue.toString()}))});try{const tl=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ue=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Ql=tl==null?void 0:tl.tableId,Rr=tl==null?void 0:tl.compIndex;if(Ql&&Array.isArray(Ue)&&Ue.length>0&&String(Ql)===String(u==null?void 0:u.parentTableId)&&String(Rr)===String(u==null?void 0:u.index)){const Nr=new Set(yo.map(Cr=>String(Cr==null?void 0:Cr.id))),$r=Ue.filter(Cr=>!Nr.has(String(Cr)));if($r.length>0){const Cr=tl==null?void 0:tl.pageKey,ro=Cr!=null&&Cr.startsWith("/")?Cr.substring(1):Cr;((h==null?void 0:h[Cr])||(h==null?void 0:h[ro])||[]).filter(br=>{var gn,Wn;return((gn=br==null?void 0:br.key)==null?void 0:gn.type)==="data"&&String((Wn=br==null?void 0:br.key)==null?void 0:Wn.tableId)===String(Ql)&&$r.includes(br==null?void 0:br.id)}).forEach(br=>{var gn;Nr.has(String(br==null?void 0:br.id))||(yo.push({id:br==null?void 0:br.id,...((gn=br==null?void 0:br.value)==null?void 0:gn.tableData)||{}}),Nr.add(String(br==null?void 0:br.id)))})}}}catch{}let go=null;try{const tl=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,Ue=JSON.parse(sessionStorage.getItem(tl)||"null");Array.isArray(Ue)&&Ue.length>0&&(go=new Set(Ue.map(Ql=>String(Ql))))}catch{}const Ut=Array.from(((xl=da.value)==null?void 0:xl.values())||[]).filter(tl=>!(!(tl!=null&&tl._isOCRRow&&(tl==null?void 0:tl._ocrTableId)===(u==null?void 0:u.index))||go&&go.has(String(tl==null?void 0:tl.id)))),wu=(Ce.value||[]).map(tl=>String(tl==null?void 0:tl.id)),qt=oi(yo,wu);if(Ce.value=Rt(qt,z,Ee.value),Sa.value=qt,(Ya=Sa.value)==null||Ya.forEach(tl=>{var Ue;(Ue=da.value)==null||Ue.set(tl.id,tl)}),go&&go.size>0)try{const tl=new Set(Array.from(go.values()));Ce.value=(Ce.value||[]).filter(Ue=>!tl.has(String(Ue==null?void 0:Ue.id))),Sa.value=(Sa.value||[]).filter(Ue=>!tl.has(String(Ue==null?void 0:Ue.id))),tl.forEach(Ue=>{var Ql,Rr;try{(Rr=(Ql=da.value)==null?void 0:Ql.delete)==null||Rr.call(Ql,Ue)}catch{}})}catch{}const di=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),tt=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(di&&Array.isArray(tt)&&tt.length>0&&String(di==null?void 0:di.compIndex)===String(u==null?void 0:u.index)){const tl=new Set((Sa.value||[]).map(Ue=>String(Ue==null?void 0:Ue.id)));tt.filter(Ue=>!tl.has(String(Ue)))}if(Ut.length>0){const tl=new Set((Ce.value||[]).map(Ql=>Ql==null?void 0:Ql.id)),Ue=Ut.filter(Ql=>!tl.has(Ql.id));Ue.length>0&&(Ce.value=[...Ce.value||[],...Ue],Sa.value=[...Sa.value||[],...Ue],Ue.forEach(Ql=>{var Rr;return(Rr=da.value)==null?void 0:Rr.set(Ql.id,Ql)}))}}else Ee.value=[],de.value=[],Ce.value=[],Sa.value=[],da.value=new Map;if(ma=[...new Set(ma)],ma=ma==null?void 0:ma.map(ha=>({label:ha,type:"methodButton"})),((vl=le==null?void 0:le.contents)==null?void 0:vl.length)>0?Ua.value=le==null?void 0:le.contents:Ua.value=[],Ua.value=[...Ua.value,...ma],Ke=[...new Set(Ke)],Ke=Ke==null?void 0:Ke.map(ha=>({label:ha,type:"methodButton"})),((nl=ne==null?void 0:ne.contents)==null?void 0:nl.length)>0)if((zl=(Dl=(ml=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:ml.value)==null?void 0:Dl.find(ha=>(ha==null?void 0:ha.value)==="onButtonContents"))!=null&&zl.content){let ha=(_l=($l=(xr=d==null?void 0:d.find(Bl=>(Bl==null?void 0:Bl.key)==="filterAllType"))==null?void 0:xr.value)==null?void 0:$l.find(Bl=>(Bl==null?void 0:Bl.value)==="onButtonContents"))==null?void 0:_l.content;if(ha=(Il=ha==null?void 0:ha.split(":"))==null?void 0:Il[1],ha=(Jl=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:Jl.split(","),We.value=(Ml=ne==null?void 0:ne.contents)==null?void 0:Ml.filter(Bl=>ha==null?void 0:ha.find(sn=>sn===(Bl==null?void 0:Bl.label))),Ne.value=(Yl=ne==null?void 0:ne.contents)==null?void 0:Yl.filter(Bl=>ha==null?void 0:ha.find(sn=>sn===(Bl==null?void 0:Bl.label))),(er=ne==null?void 0:ne.contents)!=null&&er.some(Bl=>(Bl==null?void 0:Bl.label)==="OCR识别")&&!((Kl=We.value)!=null&&Kl.some(Bl=>(Bl==null?void 0:Bl.label)==="OCR识别"))){const Bl=(fr=ne==null?void 0:ne.contents)==null?void 0:fr.find(sn=>(sn==null?void 0:sn.label)==="OCR识别");We.value=[...We.value,Bl],Ne.value=[...Ne.value,Bl]}S.value=!!(ha!=null&&ha.find(Bl=>Bl==="搜索")),O.value=!!(ha!=null&&ha.find(Bl=>Bl==="块状显示"))}else We.value=ne==null?void 0:ne.contents,Ne.value=ne==null?void 0:ne.contents;else We.value=[],Ne.value=[];We.value=[...We.value,...Ke],Ne.value=[...Ne.value,...Ke],typeof ba.value=="string"&&ba.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((qr=We.value)!=null&&qr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(We.value=[...We.value||[],{label:"OCR识别"}]),(hr=Ne.value)!=null&&hr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(Ne.value=[...Ne.value||[],{label:"OCR识别"}])):(We.value=(We.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别"),Ne.value=(Ne.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别")),(tr=We.value)!=null&&tr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(We.value=[...We.value||[],{label:"切换视图"}]),(ur=Ne.value)!=null&&ur.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(Ne.value=[...Ne.value||[],{label:"切换视图"}]),me.value=((Pt=Ce==null?void 0:Ce.value)==null?void 0:Pt.length)??0,Ot(Ce.value),Yr.value=Ce.value,Ol.value&&(Ee.value=(jt=(Ft=de.value)==null?void 0:Ft.filter(ha=>(ha==null?void 0:ha.label)!=="操作"))==null?void 0:jt.map(ha=>{var Bl;return{...ha,type:"edit",optionUrl:ha!=null&&ha.formMenuSelect&&((Bl=ha==null?void 0:ha.formMenuSelect)==null?void 0:Bl.length)>0?{groupSelect:ha==null?void 0:ha.groupSelect,menuSelect:ha==null?void 0:ha.formMenuSelect,selectRelateType:"",type:ha==null?void 0:ha.formType}:null}}),it())};a.watch(()=>[u.itemData,ql.value,kn.value,mn.value,Wa==null?void 0:Wa.value],async()=>{var d,h,N,z,R,B;if((d=u==null?void 0:u.itemData)!=null&&d.find(le=>(le==null?void 0:le.key)==="columnPath")&&!((h=$.value)!=null&&h.find(le=>{var ne,H;return(le==null?void 0:le.key)===((H=(ne=u==null?void 0:u.itemData)==null?void 0:ne.find(xe=>(xe==null?void 0:xe.key)==="columnPath"))==null?void 0:H.contents)}))){let le=$.value,ne={key:(z=(N=u==null?void 0:u.itemData)==null?void 0:N.find(H=>(H==null?void 0:H.key)==="columnPath"))==null?void 0:z.contents,value:(B=(R=u==null?void 0:u.itemData)==null?void 0:R.find(H=>(H==null?void 0:H.key)==="columnUsingPath"))==null?void 0:B.contents};le!=null&&le.find(H=>(H==null?void 0:H.key)===(ne==null?void 0:ne.key))?le=le==null?void 0:le.map(H=>((H==null?void 0:H.key)===(ne==null?void 0:ne.key)&&(H.value=ne.value),H)):le.push(ne),Qe.setTableViewContents(le)}await $t(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&(Ro(d==null?void 0:d.form),ze.value=d==null?void 0:d.dialogTitle,ga.value=!0,Xe.value=!0)},{immediate:!0,deep:!0});const cu=()=>{var d;(d=L.value)!=null&&d.includes("read")&&(Ol.value=!Ol.value)},uu=()=>{yr.value=!yr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var h;L.value=d,(d==null?void 0:d.length)===0?Ol.value=!1:(d!=null&&d.includes("read")||(Ol.value=!0),d!=null&&d.includes("edit")||(Ol.value=!1)),D.value=((h=u==null?void 0:u.config)==null?void 0:h.showIndex)||Ol.value},{immediate:!0}),a.watch(()=>Ol.value,d=>{var h;d?(it("viewChange"),Qe.setCacheUpdatingData(null)):(We.value=Ne.value,Ee.value=ya.value,V.value&&(Qe.setTableLoading(u==null?void 0:u.index),Te("change",V.value))),D.value=d||((h=u==null?void 0:u.config)==null?void 0:h.showIndex),ir.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=jn.value)==null?void 0:d.length},d=>{d===0&&(te.currentPage=1)}),a.watch(()=>u==null?void 0:u.compNames,d=>{t.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),a.ref(!1);const du=(d,h)=>{var N;it("createClick"),h===te.pageSize&&(te.currentPage=Math.ceil(((N=Ce.value)==null?void 0:N.length)/te.pageSize))},pu=async(d,h,N)=>{var R,B,le,ne,H;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&ci.includes(z)&&N!==void 0&&N!==null&&String(N).trim()!==""){const xe=String(N).trim();if(await ot(xe,d==null?void 0:d.id)){al.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Pe=(R=Ce.value)==null?void 0:R.findIndex(Ke=>(Ke==null?void 0:Ke.id)===(d==null?void 0:d.id)),Re=Pe!==-1?(le=(B=Ce.value)==null?void 0:B[Pe])==null?void 0:le[z]:void 0;z&&(d[z]=Re??"");return}}if(Ol.value){const xe=d==null?void 0:d.id;xe!=null&&(y.value.has(xe)||y.value.set(xe,Y.cloneDeep(d)),c.value.add(xe));const _e=(ne=Ce.value)==null?void 0:ne.findIndex(Pe=>(Pe==null?void 0:Pe.id)===(d==null?void 0:d.id));_e!==-1&&z&&(Ce.value[_e]={...Ce.value[_e],[z]:N}),ui(N,d,h);return}ui(N,d,h),cr.value=Y.cloneDeep(d),Fa.value=d==null?void 0:d.id,me.value=(H=Ce.value)==null?void 0:H.length,ze.value=d!=null&&d._isTemp?"新增":"编辑",Vo(!1)},fu=async()=>{var d,h;try{const N=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const R=z.split("_")[1];R&&(N.push(`content_${R}`),N.push(`struct_${R}`))}})),N.length===0&&(u!=null&&u.itemData)){const z=(h=(d=u.itemData)==null?void 0:d.find(R=>(R==null?void 0:R.key)==="contentTableId"))==null?void 0:h.contents;z&&(N.push(`content_${z}`),N.push(`struct_${z}`))}return N}catch(N){return console.error("获取 tableNames 失败:",N),[]}},hu=async(d,h,N)=>{var B,le;if(!N||typeof N!="string"||N.trim()===""){const ne=(h==null?void 0:h.property)??(h==null?void 0:h.prop),H=`${d==null?void 0:d.id}:${ne}`;p.value.delete(H),m.value.set(H,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),R=`${d==null?void 0:d.id}:${z}`;m.value.set(R,!0);try{const ne=await fu();if(ne.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete(R),m.value.set(R,!1);return}const H=parseInt((B=Vl.value)==null?void 0:B.plat_id);if(!H){console.warn("platId 无效,跳过全局搜索"),p.value.delete(R),m.value.set(R,!1);return}const xe=await Y.getAllTables({platId:H,tableNames:ne}),_e=((le=xe==null?void 0:xe.data)==null?void 0:le.result)||[],Pe=[],Re=[];for(let Ke=0;Ke<_e.length;Ke+=2)Ke+1<_e.length&&Re.push([_e[Ke],_e[Ke+1]]);Re.forEach(([Ke,ma])=>{var Ja;if(!Array.isArray(Ke)||Ke.length===0||!Array.isArray(ma)||ma.length===0)return;const Ka=ma[0];let Za=((Ja=Ka==null?void 0:Ka.结构)==null?void 0:Ja.contents)??[];if(!Array.isArray(Za)||Za.length===0)return;let sa=Y.cloneDeep(Za);if(Array.isArray(sa==null?void 0:sa[0])&&(sa=oa.getColumnChild(sa[0])),!Array.isArray(sa)||sa.length===0||!sa.some(ce=>(ce==null?void 0:ce.prop)===z))return;[...Ke].sort((ce,Ta)=>{const ca=Number((ce==null?void 0:ce.update_time)??0);return Number((Ta==null?void 0:Ta.update_time)??0)-ca}).slice(0,20).forEach(ce=>{const Ta=ce[z];if(Ta!=null){const ca=String(Ta);ca.toLowerCase().includes(N.toLowerCase())&&Pe.findIndex(Aa=>{var T;return ce.id&&((T=Aa.rowData)==null?void 0:T.id)===ce.id?!0:Aa.label===ca})===-1&&Pe.push({label:ca,rowData:Y.cloneDeep(ce),sourceTable:(Ka==null?void 0:Ka.source_table)||""})}})}),p.value.set(R,Pe)}catch(ne){console.error("全局搜索建议失败:",ne),p.value.delete(R)}finally{m.value.set(R,!1)}},vu=(d,h,N)=>{if(!Ol.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),R=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if(R&&R.toUpperCase()!=="INPUT"&&R!=="")return;const B=`${d==null?void 0:d.id}:${z}`;if(v.has(B)&&clearTimeout(v.get(B)),!N||N.trim()===""){p.value.delete(B),m.value.set(B,!1);return}const le=setTimeout(()=>{hu(d,{prop:z,property:z},N),v.delete(B)},300);v.set(B,le)};function mu(d,h){const N=`${d==null?void 0:d.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return p.value.get(N)||[]}const yu=(d,h,N)=>{var _e;if(!N||!N.rowData)return;const z=N.rowData,R=d==null?void 0:d.id,B=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ne=(oa.getAllLeafNodes(Ee.value)||[]).filter(Pe=>(Pe==null?void 0:Pe.type)!=="operate"&&(Pe==null?void 0:Pe.label)!=="操作"&&(Pe==null?void 0:Pe.prop)!=="operate");ne.forEach(Pe=>{const Re=Pe==null?void 0:Pe.prop;Re&&z[Re]!==void 0&&(d[Re]=z[Re])});const H=(_e=Ce.value)==null?void 0:_e.findIndex(Pe=>(Pe==null?void 0:Pe.id)===R);H!==-1&&ne.forEach(Pe=>{const Re=Pe==null?void 0:Pe.prop;Re&&z[Re]!==void 0&&(Ce.value[H][Re]=z[Re])}),R!=null&&(y.value.has(R)||y.value.set(R,Y.cloneDeep(d)),c.value.add(R));const xe=`${R}:${B}`;p.value.delete(xe),m.value.set(xe,!1),ui(d[B],d,h)},Ur=d=>{var H,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il;const{row:h,column:N,item:z,slotData:R}=d;let B=h!=null&&h[N==null?void 0:N.prop]||(h==null?void 0:h[N==null?void 0:N.prop])===0?((xe=(H=h==null?void 0:h[N==null?void 0:N.prop])==null?void 0:H[0])==null?void 0:xe.contents)??((h==null?void 0:h[N==null?void 0:N.prop])===0?"0":h==null?void 0:h[N==null?void 0:N.prop]):((Pe=(_e=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:_e[0])==null?void 0:Pe.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((Ke=(Re=R==null?void 0:R[z==null?void 0:z.prop])==null?void 0:Re[0])==null?void 0:Ke.contents)??(R==null?void 0:R[z==null?void 0:z.prop])??((Za=(Ka=h==null?void 0:h[(ma=z==null?void 0:z.child)==null?void 0:ma.prop])==null?void 0:Ka[0])==null?void 0:Za.contents)??(h==null?void 0:h[(sa=z==null?void 0:z.child)==null?void 0:sa.prop]),ne=Array.isArray(B)&&!(B!=null&&B.every(ka=>typeof ka=="string"||typeof ka=="number"))?"查看":B;if(ne=Array.isArray(ne)?ne.join(","):ne,(N==null?void 0:N.formType)==="Date")if(!ne||ne===""||ne===null||ne===void 0)ne="";else{const ka=Vn.dayjs(ne,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ne=ka.isValid()?ka.format("YYYYMMDD"):ne??""}return Array.isArray(N==null?void 0:N.relatedPages)&&((il=N==null?void 0:N.relatedPages)==null?void 0:il.length)>0&&(ne="详情页"),ne},gu=d=>{var xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,il;const{row:h,column:N,item:z,slotData:R}=d;let B=h!=null&&h[N==null?void 0:N.prop]?((_e=(xe=h==null?void 0:h[N==null?void 0:N.prop])==null?void 0:xe[0])==null?void 0:_e.contents)??(h==null?void 0:h[N==null?void 0:N.prop]):((Re=(Pe=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:Pe[0])==null?void 0:Re.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((ma=(Ke=R==null?void 0:R[z==null?void 0:z.prop])==null?void 0:Ke[0])==null?void 0:ma.contents)??(R==null?void 0:R[z==null?void 0:z.prop])??((sa=(Za=h==null?void 0:h[(Ka=z==null?void 0:z.child)==null?void 0:Ka.prop])==null?void 0:Za[0])==null?void 0:sa.contents)??(h==null?void 0:h[(il=z==null?void 0:z.child)==null?void 0:il.prop]);const ne=Array.isArray(B)&&!(B!=null&&B.every(ka=>typeof ka=="string"||typeof ka=="number")),H=Array.isArray(B)&&(B==null?void 0:B.find(ka=>ka==null?void 0:ka.url));return ne&&H},bu=d=>{var R,B;if(!(d!=null&&d.column))return!1;const h=ba.value==="试验任务/任务管理",N=(u==null?void 0:u.compName)==="任务列表",z=((R=d==null?void 0:d.column)==null?void 0:R.label)==="任务状态"||((B=d==null?void 0:d.column)==null?void 0:B.prop)==="任务状态";return h&&N&&z},ku=(d,h)=>d.find(N=>Object.values(N).some(z=>z===h));return a.watch(()=>Ie.value,async d=>{if(d){la.setContentLoading(!0),await a.nextTick();const h=ku(Ce.value,d==null?void 0:d.data);if(!h)return la.setContentLoading(!1);await qn(d==null?void 0:d.data,null,h,{data:d==null?void 0:d.data}),la.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.cacheNewData,d=>{var h;d&&(Array.isArray(d)?d.forEach(N=>{var z,R,B,le,ne;if(换,String(N==null?void 0:N.compId)===String(u==null?void 0:u.index)&&(N!=null&&N.resId)&&((z=N==null?void 0:N.data)!=null&&z.id)){const H=(R=N==null?void 0:N.data)==null?void 0:R.id,xe=N==null?void 0:N.resId;if(Ce.value=(B=Ce.value)==null?void 0:B.map(_e=>{if((_e==null?void 0:_e.id)===H){const Pe={..._e,id:xe};return delete Pe._isOCRRow,delete Pe._ocrTableId,Pe}return _e}),(ne=(le=da.value)==null?void 0:le.has)!=null&&ne.call(le,H)){const Pe={...da.value.get(H)||{},id:xe};delete Pe._isOCRRow,delete Pe._ocrTableId,da.value.delete(H),da.value.set(xe,Pe)}_a(u==null?void 0:u.index,H,xe)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ce.value=(h=Ce.value)==null?void 0:h.map(N=>{var z;if((N==null?void 0:N.id)===((z=d==null?void 0:d.data)==null?void 0:z.id)){const R={...N,id:d==null?void 0:d.resId};return delete R._isOCRRow,delete R._ocrTableId,R}return N})))},{immediate:!0,deep:!0}),(d,h)=>{var sa,il,ka,Ja;const N=a.resolveComponent("svg-icon"),z=a.resolveComponent("el-popover"),R=a.resolveComponent("el-switch"),B=a.resolveComponent("el-checkbox"),le=a.resolveComponent("el-radio"),ne=a.resolveComponent("el-radio-group"),H=a.resolveComponent("el-checkbox-group"),xe=a.resolveComponent("el-button"),_e=a.resolveComponent("el-icon"),Pe=a.resolveComponent("el-progress"),Re=a.resolveComponent("el-alert"),Ke=a.resolveComponent("el-table-column"),ma=a.resolveComponent("el-table"),Ka=a.resolveComponent("el-upload"),Za=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",E0,[Fr.value?(a.openBlock(),a.createBlock(pl.ssTable,{id:"excel-table",pageObj:te,showIndex:D.value,isTree:(sa=l.compItem)==null?void 0:sa.isTree,summaryInfo:q,columns:Ee.value,defaultSort:Z,isCardViewport:yr.value,checkedColumns:r.value,key:nn.value+Ee.value,tableData:jn.value,isEditViewport:Ol.value,isShowPagination:Je.value,isShowEdit:!1,isShowDelete:!1,allowSelect:w.value,onDbClickRow:ii,extraButton:We.value,rowButton:Ua.value,cacheExtraButtons:Ne.value,isClearSelection:((il=ir.value)==null?void 0:il.length)===0,onDoCurrentChange:yn,onDoSizeChange:zo,onSortChange:Ri,onContentClick:qn,onRowClick:ti,onSelectChange:Hi,onCellChange:pu,onCellInput:vu,onSelectSuggest:yu,onChange:ui,onPreview:Un,onSubmitEditingTable:Zo,onHandleColEditChange:Yo,onHandleColTypeChange:Jo,onClickButton:On,onAddNewRow:jr,bottomButton:I.value},a.createSlots({headerButton:a.withCtx(ce=>{var Ta,ca,Ba,Aa;return[l.showHeader?(a.openBlock(),a.createBlock(af,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(ue)===a.unref(ba),filterValues:Yi.value,selectNums:(Ta=ir.value)==null?void 0:Ta.length,dataNums:(ca=Ce.value)==null?void 0:ca.length,compName:l.compName,isDevMode:l.isDevMode,buttons:ce.buttons,menuFilter:(Aa=(Ba=l.compItem)==null?void 0:Ba.component)==null?void 0:Aa.menuFilter,onButtonClick:h[1]||(h[1]=(T,K,Me)=>On(T,K,{extra:Me})),columns:Ee.value,onFilter:Ji,onGetImportData:Vi,level:l.level,filterShow:S.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var ce,Ta,ca,Ba;return[((ce=Ce.value)==null?void 0:ce.length)>0&&l.allowOperate&&O.value?(a.openBlock(),a.createElementBlock("div",B0,[(Ta=L.value)!=null&&Ta.includes("read")&&((ca=L.value)!=null&&ca.includes("edit"))&&((Ba=Ua.value)!=null&&Ba.some(Aa=>(Aa==null?void 0:Aa.label)==="编辑"))&&!yr.value&&a.unref(ue)!==a.unref(ba)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:cu},[a.createVNode(N,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:ce,index:Ta})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ca=>du(ce,Ta)},[a.createVNode(N,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,N0)]),operateCol:a.withCtx(()=>[a.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:nu},{reference:a.withCtx(()=>[a.createElementVNode("span",T0,[a.createVNode(N,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",A0,[h[20]||(h[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(R,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=ce=>ei(ce))},null,8,["model-value"]),h[21]||(h[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(H,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=ce=>r.value=ce),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(En.value,ce=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ce.label},[a.createVNode(B,{value:ce.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:ce.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(ce.label),9,z0)]),_:2},1032,["value"]),a.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(N,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Ta;return[a.createElementVNode("div",M0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ta=Object.keys(ce))==null?void 0:Ta.filter(ca=>{var Ba;return(Ba=ee.value)==null?void 0:Ba.find(Aa=>(Aa==null?void 0:Aa.value)===ca)}),ca=>{var Ba,Aa;return a.openBlock(),a.createElementBlock("div",{key:ca},[A[ca]=="radio"?(a.openBlock(),a.createElementBlock("div",I0,[h[19]||(h[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ne,{"model-value":ce==null?void 0:ce[ca],onChange:T=>Sn(T,ca,ce)},{default:a.withCtx(()=>{var T,K;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((K=(T=ee.value)==null?void 0:T.find(Me=>(Me==null?void 0:Me.value)===ca))==null?void 0:K.options,Me=>(a.openBlock(),a.createBlock(le,{key:Me==null?void 0:Me.value,label:Me==null?void 0:Me.value,value:Me==null?void 0:Me.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Me==null?void 0:Me.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),A[ca]=="switch"?(a.openBlock(),a.createBlock(R,{key:1,"model-value":ce==null?void 0:ce[ca],"active-text":(Aa=(Ba=ee.value)==null?void 0:Ba.find(T=>(T==null?void 0:T.value)===ca))==null?void 0:Aa.label,onChange:T=>Sn(T,ca,ce)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",O0,[a.createVNode(N,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(ce=>{var Ta,ca,Ba,Aa,T,K,Me,na,ge,ta,Ia,fl,ll,yl,gl,Fl,el,xl,Ya,vl;return[((Ta=ce==null?void 0:ce.column)==null?void 0:Ta.label)==="证书附件"||((ca=ce==null?void 0:ce.column)==null?void 0:ca.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",L0,[a.createVNode(N,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(nl=>Jr(ce),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):gu(ce)?(a.openBlock(),a.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",R0,a.toDisplayString(Ur(ce)),1)]),default:a.withCtx(()=>{var nl,ml;return[a.createElementVNode("div",$0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ml=ce==null?void 0:ce.row)==null?void 0:ml[(nl=ce==null?void 0:ce.column)==null?void 0:nl.prop],Dl=>(a.openBlock(),a.createElementBlock("div",V0,[a.createElementVNode("div",{class:"prop-url",title:eo(Dl),onClick:zl=>Ki(Dl)},a.toDisplayString(eo(Dl)),9,P0),a.createElementVNode("div",{class:"prop-download",onClick:zl=>po(Dl)}," 下载 ",8,F0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[bu(ce)?(a.openBlock(),a.createBlock(Mu,{key:0,value:Ur(ce)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Ur(ce))&&((Aa=(Ba=Ur(ce))==null?void 0:Ba.toString())!=null&&Aa.includes(".txt")||(K=(T=Ur(ce))==null?void 0:T.toString())!=null&&K.includes(".cpt")||(na=(Me=Ur(ce))==null?void 0:Me.toString())!=null&&na.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ur(ce))&&((ta=(ge=Ur(ce))==null?void 0:ge.toString())!=null&&ta.includes(".txt")||(fl=(Ia=Ur(ce))==null?void 0:Ia.toString())!=null&&fl.includes(".cpt")||(yl=(ll=Ur(ce))==null?void 0:ll.toString())!=null&&yl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ur(ce))&&((Fl=(gl=Ur(ce))==null?void 0:gl.toString())!=null&&Fl.includes(".txt")||(xl=(el=Ur(ce))==null?void 0:el.toString())!=null&&xl.includes(".cpt")||(vl=(Ya=Ur(ce))==null?void 0:Ya.toString())!=null&&vl.includes(".cyd"))?"pointer":"",marginLeft:(ce==null?void 0:ce.colIndex)===0?`${((ce==null?void 0:ce.level)??0)*20}px`:0}),onClick:nl=>{var ml;return Mn(Ur(ce),((ml=ce==null?void 0:ce.column)==null?void 0:ml.relatedPages)??[])}},a.toDisplayString(Ur(ce)===0?"0":Ur(ce)),13,j0))],64))]}),_:2},[((ka=Ua.value)==null?void 0:ka.length)>0?{name:"actions",fn:a.withCtx(({item:ce,fIndex:Ta})=>[a.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(N,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",S0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Gi(Ua.value,ce),(ca,Ba)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Ba,onClick:a.withModifiers(Aa=>On(ca==null?void 0:ca.label,ce,{extra:ca}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ca==null?void 0:ca.textColor}),class:"extra-button-label"},a.toDisplayString(ca==null?void 0:ca.label),5)],8,D0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),Ol.value?(a.openBlock(),a.createElementBlock("div",H0,[a.createVNode(xe,{id:"themeBorderButton",onClick:ji},{default:a.withCtx(()=>h[22]||(h[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(xe,{class:"ok-button",id:"themeButton",onClick:Mo},{default:a.withCtx(()=>h[23]||(h[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(wr.ssDialog,{title:ze.value,visible:Xe.value,width:Gl.value,onBeforeDestroy:ai,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",U0,[a.createVNode(pl.ssForm,{ref_key:"formRef",ref:pa,rowContents:De.value,showOperator:!1,onChange:ou,isEnableWrap:!1,onFixChangeValue:Oo,onClickTrigger:li,isEdit:ja.value,onBlurChange:Ui,onCreate:Qo,onTagChange:an},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[ga.value?(a.openBlock(),a.createElementBlock("div",q0,[a.createVNode(xe,{onClick:h[4]||(h[4]=ce=>Xe.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>h[24]||(h[24]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[24]}),a.createVNode(xe,{class:"ok-button",onClick:h[5]||(h[5]=ce=>Vo(!0)),id:"themeButton"},{default:a.withCtx(()=>h[25]||(h[25]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[25]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(wr.ssDialog,{title:ze.value,visible:Ae.value,width:za.value,onBeforeDestroy:h[7]||(h[7]=ce=>Ae.value=!1)},{default:a.withCtx(()=>[a.createVNode(hf)]),footer:a.withCtx(()=>[a.createElementVNode("div",W0,[a.createVNode(xe,{onClick:h[6]||(h[6]=ce=>Ae.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>h[26]||(h[26]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[26]}),a.createVNode(xe,{class:"ok-button",onClick:Lo,id:"themeButton"},{default:a.withCtx(()=>h[27]||(h[27]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Ha.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:2,fileDataList:re.value,onDestroy:Dn},null,8,["fileDataList"])):a.createCommentVNode("",!0),je.value?(a.openBlock(),a.createBlock(wr.ssDialog,{key:3,visible:je.value,onBeforeDestroy:lu,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(Ci.ThreeViewerHost,{files:He.value,threeData:ie.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(wr.ssDialog,{title:"OCR扫描录入",visible:Ra.value,"close-on-click-modal":!1,onBeforeDestroy:ul,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[h[38]||(h[38]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",K0,[a.createElementVNode("div",G0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:pe.value===1}])},h[28]||(h[28]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:pe.value===2}])},h[29]||(h[29]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:pe.value===3}])},h[30]||(h[30]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),pe.value===1?(a.openBlock(),a.createElementBlock("div",Y0,[a.createVNode(xe,{onClick:lt,class:"ocr-action-btn",disabled:Va.value,size:"default"},{default:a.withCtx(()=>h[33]||(h[33]=[a.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),a.createVNode(xe,{onClick:Wl,class:"ocr-action-btn",disabled:Va.value,size:"default"},{default:a.withCtx(()=>h[34]||(h[34]=[a.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):a.createCommentVNode("",!0),pe.value===1?(a.openBlock(),a.createElementBlock("div",J0,[a.createElementVNode("div",X0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(qa.value,(ce,Ta)=>{var ca;return a.openBlock(),a.createElementBlock("div",{key:Ta,class:"ocr-file-item"},[a.createElementVNode("div",Z0,[ce.raw&&((ca=ce.raw.type)!=null&&ca.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:Cl(ce),alt:"预览",class:"thumbnail-image"},null,8,Q0)):(a.openBlock(),a.createElementBlock("div",e3,[a.createVNode(_e,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(al.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:dl(ce)==="uploading",processing:dl(ce)==="processing",completed:dl(ce)==="completed"||dl(ce)==="uploaded",failed:dl(ce)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",a3,[h[35]||(h[35]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:dl(ce)==="completed"||dl(ce)==="uploaded",uploading:dl(ce)==="uploading",processing:dl(ce)==="processing",failed:dl(ce)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:dl(ce)==="failed"?"#f56c6c":dl(ce)==="completed"||dl(ce)==="uploaded"?"#67c23a":"#409eff","stroke-width":dl(ce)==="completed"||dl(ce)==="uploaded"||dl(ce)==="failed"?3:2,"stroke-dasharray":Zl(ce),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,l3)])),dl(ce)==="completed"||dl(ce)==="uploaded"?(a.openBlock(),a.createElementBlock("div",r3,[a.createVNode(_e,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(al.check_default))]),_:1})])):a.createCommentVNode("",!0),dl(ce)==="failed"?(a.openBlock(),a.createElementBlock("div",n3,[a.createVNode(_e,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(al.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Ba=>vo(Ta)},[a.createVNode(_e,null,{default:a.withCtx(()=>[a.createVNode(a.unref(al.close_default))]),_:1})],8,o3)]),a.createElementVNode("div",i3,a.toDisplayString(ce.name||"文件名123"),1)])}),128))]),qa.value.length>0?(a.openBlock(),a.createElementBlock("div",t3,[a.createVNode(xe,{onClick:ve,class:"ocr-start-recognize-btn",disabled:Va.value||qa.value.length===0,size:"default"},{default:a.withCtx(()=>h[36]||(h[36]=[a.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),pe.value===1?(a.openBlock(),a.createElementBlock("div",s3,[a.createVNode(Pe,{percentage:G.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),pe.value===2?(a.openBlock(),a.createElementBlock("div",c3,[a.createElementVNode("div",u3,[a.createVNode(Re,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",d3,[a.createVNode(ma,{data:Ge.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(Ke,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Be.value,ce=>(a.openBlock(),a.createBlock(Ke,{key:ce.prop,prop:ce.prop,"min-width":ce.minWidth||230,"class-name":ce.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",p3,[a.createElementVNode("span",null,a.toDisplayString(ce.label),1)])]),default:a.withCtx(({row:Ta,$index:ca})=>{var Ba,Aa,T;return[ce.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:cl(Ta[ce.prop]),fontWeight:500})},a.toDisplayString(La(Ta[ce.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Na.value!==ca?(a.openBlock(),a.createElementBlock("span",f3,a.toDisplayString(Ta[ce.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(sl(ce.prop)),{key:1,modelValue:Ta[ce.prop],"onUpdate:modelValue":K=>Ta[ce.prop]=K,size:"small",placeholder:"请输入"+ce.label,content:((Ba=El(ce.prop))==null?void 0:Ba.contents)??((Aa=El(ce.prop))==null?void 0:Aa.options)??[],optionUrl:(T=El(ce.prop))==null?void 0:T.optionUrl,onChange:K=>ea(ca,ce.prop,K),onFocus:K=>he.value=ce.prop,onBlur:h[8]||(h[8]=K=>he.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(Ke,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:ce})=>[Na.value===ce?(a.openBlock(),a.createBlock(_e,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(Ta=>rl(ce),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(al.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(N,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(Ta=>rl(ce),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),pe.value===3?(a.openBlock(),a.createElementBlock("div",h3,[a.createVNode(_e,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(al.check_default))]),_:1}),h[37]||(h[37]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(Ka,{ref:"ocrUploadRef","file-list":qa.value,"onUpdate:fileList":h[9]||(h[9]=ce=>qa.value=ce),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":U,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[pe.value!==3?(a.openBlock(),a.createElementBlock("div",v3,[a.createVNode(xe,{onClick:Hr,class:"ocr-start-recognize-btn",disabled:pe.value===1||Va.value},{default:a.withCtx(()=>h[39]||(h[39]=[a.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),a.createVNode(xe,{onClick:_r,class:"ocr-start-recognize-btn",disabled:Va.value},{default:a.withCtx(()=>h[40]||(h[40]=[a.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(zf,{visible:ho.value,onConfirm:rt,onCancel:h[10]||(h[10]=ce=>ho.value=!1)},null,8,["visible"]),a.createVNode(hd,{visible:ae.value,"onUpdate:visible":h[11]||(h[11]=ce=>ae.value=ce),versions:Ye.value},null,8,["visible","versions"]),a.createVNode(ed,{visible:Da.value,"onUpdate:visible":h[12]||(h[12]=ce=>Da.value=ce),images:Sl.value,"default-image-name":Pl.value,"field-meta":Na.value!==null?((Ja=Ge.value[Na.value])==null?void 0:Ja.__ocrFieldMeta)||{}:{},"focused-field-name":he.value,onClose:h[13]||(h[13]=ce=>Da.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(Dd,{visible:jl.value,"onUpdate:visible":h[14]||(h[14]=ce=>jl.value=ce),candidates:or.value,"name-prop":rr.value,"mfr-prop":en.value,columns:Ee.value,onSubmit:Ir,onPreviewFile:tn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Id,{visible:aa.value,"onUpdate:visible":h[15]||(h[15]=ce=>aa.value=ce),ocrPreviewData:Ge.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=ce=>Ge.value=ce),ocrSelectedFields:Qa.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=ce=>Qa.value=ce),ocrPreviewColumns:Be.value,onConfirm:we,onFieldChange:h[18]||(h[18]=({rowIndex:ce,prop:Ta,value:ca})=>ea(ce,Ta,ca))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(wr.ssDialog,{title:t.title,visible:t.show,width:t.width,onBeforeDestroy:x},{default:a.withCtx(()=>[a.createElementVNode("div",m3,[a.createVNode(pl.ssForm,{rowContents:t==null?void 0:t.contents,formRules:t==null?void 0:t.formRules,showOperator:!1,buttonValue:t.buttonValue,isEdit:ja.value,isStartJustify:!1,onOnButtonClick:M},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(wr.ssDialog,{title:i.title,visible:i.show,width:i.width,alignCenter:!0,onBeforeDestroy:f},{header:a.withCtx(()=>[a.createVNode(Za,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>h[41]||(h[41]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[41]})]),footer:a.withCtx(()=>[a.createElementVNode("div",y3,[a.createVNode(Za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(An.value||"暂无"),1)]),_:1}),a.createElementVNode("div",g3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i==null?void 0:i.buttonValue,ce=>(a.openBlock(),a.createBlock(xe,{key:ce==null?void 0:ce.label,style:a.normalizeStyle({background:ce==null?void 0:ce.background,color:ce==null?void 0:ce.color}),onClick:Ta=>b(ce==null?void 0:ce.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(ce==null?void 0:ce.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(lf,{columns:i==null?void 0:i.columns,tableData:i==null?void 0:i.tableData},{content:a.withCtx(({row:ce,item:Ta,slotData:ca,scope:Ba,column:Aa,columnProp:T,$index:K})=>[a.createTextVNode(a.toDisplayString((ce==null?void 0:ce[(Aa==null?void 0:Aa.prop)||(Aa==null?void 0:Aa.label)])||(ca==null?void 0:ca[Aa==null?void 0:Aa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},wc=Xl._export_sfc(k3,[["__scopeId","data-v-52b21c00"]]),x3={key:1,class:"static-form-body"},w3=["onClick"],_3={key:1},C3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:n}){const r=l,o=n,s=k=>{switch(k){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},c=a.computed(()=>{var F;const k=(F=r.itemData)==null?void 0:F.find(q=>(q==null?void 0:q.key)==="formContent"),g=(k==null?void 0:k.contents)||[];return(r.fields&&r.fields.length>0?r.fields:g).filter(q=>(q==null?void 0:q.label)||(q==null?void 0:q.isHideInForm)).map(q=>{let te=q==null?void 0:q.value;Array.isArray(te)&&(te=te.map(be=>be==null?"":typeof be=="object"?be.label??be.value??be.name??JSON.stringify(be):String(be)).filter(Boolean).join(",")),te!=null&&typeof te=="object"&&(te=te.label??te.value??te.name??JSON.stringify(te));const Te=q.isHideInForm?"":q.label??"",Ee=te==null||te===""?"-":String(te),Q=Te==="使用状态";return{label:Te,value:Ee,isStatus:Q,tagType:Q?s(Ee):"",width:q.width??1,field:q}})}),y=a.ref(null),p=a.ref(null),v=k=>{if(Array.isArray(k)&&k.length>=3){const[g,O,F,q]=k;return q!==void 0?`rgba(${g}, ${O}, ${F}, ${q})`:`rgb(${g}, ${O}, ${F})`}if(typeof k=="string"){const g=k.trim();if(g.startsWith("[")&&g.endsWith("]")){const O=g.slice(1,-1).split(",").map(F=>Number(F.trim()));if(O.length>=3&&O.every(F=>!Number.isNaN(F))){const[F,q,te,Te]=O;return Te!==void 0?`rgba(${F}, ${q}, ${te}, ${Te})`:`rgb(${F}, ${q}, ${te})`}}return g}},m=a.computed(()=>{const k=Number(r==null?void 0:r.textSize),g=v(r==null?void 0:r.textColor),O={},F={},q={},te={};return!Number.isNaN(k)&&k&&(O.fontSize=`${k}px`,F.fontSize=`${k+1}px`,q.fontSize=`${k}px`,te.fontSize=`${k}px`),g&&(F.color=g,q.color=g,te.color=g),{item:O,label:F,value:q,empty:te}}),u=a.ref(""),w=a.ref(""),D=a.ref(!1),L=async k=>{if(k){w.value&&(URL.revokeObjectURL(w.value),w.value="");try{const g=await Y.platformDownloadFile({url:k}),O=new Blob([g==null?void 0:g.data],{type:(g==null?void 0:g.headers["content-type"])||"image/*"});w.value=URL.createObjectURL(O)}catch{w.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,k=>{k&&(u.value=k)},{immediate:!0}),a.watch(u,k=>{L(k)},{immediate:!0});const S=()=>{var k;(k=p.value)==null||k.click()},W=async k=>{var F,q,te;const g=k.target,O=(F=g==null?void 0:g.files)==null?void 0:F[0];if(!O){g.value="";return}D.value=!0;try{const Te=new FormData;Te.append("file",O);const Ee=await Y.platformUploadFile(Te),Q=(te=(q=Ee==null?void 0:Ee.data)==null?void 0:q.result)==null?void 0:te.url;Q?(u.value=Q,o("update:backGroundImage",Q),L(Q),al.ElMessage.success("背景图片上传成功")):al.ElMessage.error("背景图片上传失败")}catch{al.ElMessage.error("背景图片上传失败")}finally{D.value=!1,g.value=""}},I=a.computed(()=>w.value?{backgroundImage:`url(${w.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),A=k=>pl.getComponent(k),ee=k=>{if(!k)return;const g=k.querySelector("input, textarea, .el-input__inner");g&&typeof g.focus=="function"&&g.focus()},C=(k,g,O)=>{r.disabled||(y.value=g,a.nextTick(()=>{ee(O.currentTarget)}))},_=()=>{y.value=null},E=k=>{const g=k!=null&&k.width&&k.width>0?k.width:1,F=`calc((100% - ${(g-1)*48}px) / ${g})`;return{flex:`0 0 ${F}`,maxWidth:F,minWidth:"0",boxSizing:"border-box"}};return(k,g)=>{const O=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",{class:"static-form-card",style:a.normalizeStyle(I.value),onClick:g[2]||(g[2]=F=>(r==null?void 0:r.backGround)==="Yes"&&S())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:g[0]||(g[0]=a.withModifiers(F=>S(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:p,type:"file",accept:"image/*",style:{display:"none"},onChange:W},null,544),g[3]||(g[3]=a.createElementVNode("img",{src:pl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),c.value.length?(a.openBlock(),a.createElementBlock("div",x3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(F,q)=>{var te,Te,Ee,Q,be,Z,de,je;return a.openBlock(),a.createElementBlock("div",{key:q,class:"static-form-item",style:a.normalizeStyle({...E(F),...m.value.item}),onClick:g[1]||(g[1]=a.withModifiers(()=>{},["stop"]))},[F.label?(a.openBlock(),a.createElementBlock("div",{key:0,class:"static-form-label",style:a.normalizeStyle(m.value.label)},a.toDisplayString(F.label)+": ",5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(m.value.value),onClick:wa=>C(F,q,wa)},[y.value===q&&F.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A(((te=F.field)==null?void 0:te.type)??"Input")),{key:0,modelValue:F.field.value,"onUpdate:modelValue":wa=>F.field.value=wa,isEdit:!0,disabled:(Te=F.field)==null?void 0:Te.disabled,content:((Ee=F.field)==null?void 0:Ee.contents)??[],optionUrl:F.field,originalValue:(Q=F.field)==null?void 0:Q.value,config:(be=F.field)==null?void 0:be.config,configModel:((Z=F.field)==null?void 0:Z.prop)??((de=F.field)==null?void 0:de.name),selectedTagList:((je=F.field)==null?void 0:je.selectValue)??[],onBlur:_,onBlurChange:_},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[F.isStatus?(a.openBlock(),a.createBlock(O,{key:0,type:F.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(F.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",_3,a.toDisplayString(F.value??"-"),1))],64))],12,w3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:2,class:"static-form-empty",style:a.normalizeStyle(m.value.empty)}," 暂无数据 ",4))],4)}}}),_c=Xl._export_sfc(C3,[["__scopeId","data-v-f2084144"]]),E3={class:"form-content"},S3={title:"选择标签"},D3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},B3={class:"col-operate-wrap"},N3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},T3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(l,{emit:n}){const r=()=>{y.value=!1,p.value=!1,v.value=[]},o=l;a.computed(()=>{var ze;const me=(ze=ke.value)==null?void 0:ze.split("/");return(me==null?void 0:me.some(Xe=>(Xe==null?void 0:Xe.includes("updateLoading"))||(Xe==null?void 0:Xe.includes("loading"))))?!1:je.value==="view"});const s=n,c=a.ref([]),y=a.ref(!1),p=a.ref(!1),v=a.ref([]),{getFileExtension:m}=Ci.useThreeSystem(),u=a.ref(),w=a.ref(!1),D=a.ref(!1),L=Y.useUnit(ol.pinia),{chooseTitle:S}=ol.storeToRefs(L),W=a.ref([]),I=a.ref(),A=a.ref(!1),ee=a.ref([]),C=lc(ol.pinia),_=St(ol.pinia),E=a.ref(!1),k=a.ref(),g=a.ref(),O=a.ref(),F=a.ref(),q=a.ref(),te=Y.useLoginState(ol.pinia),{loginUserInfo:Te}=ol.storeToRefs(te),Ee=a.ref(),Q=a.ref(!0),be=ol.useModelComp(ol.pinia),{tableViewContents:Z,itemData:de,isEdit:je,routeToChildPath:wa,lockingPage:ie}=ol.storeToRefs(be),P=a.ref(null),j=a.ref(!1),ye=a.ref(!1),Se=Y.useMenuState(),{activeMenuPath:ke}=ol.storeToRefs(Se),Ze=oa.useOriginalState(ol.pinia),{originalPath:ya}=ol.storeToRefs(Ze),{compType:Ha,hasEditable:re}=Ks.useRole(),la=()=>!re(o.config,{type:Ha.FORM});a.computed(()=>ke.value==="设备管理/试验设备"&&o.compName==="设备概要");const Ve=a.ref([]),ba=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Fe=async me=>{ye.value=me,await $("disabled",null,me,!0)},Ie=async me=>{await $("operable",null,me,!0)};a.watch(()=>ke.value,async()=>{c.value=[],v.value=[]},{deep:!0,immediate:!0});const $e=()=>{a.nextTick(()=>{V()})},Qe=me=>{var Je;c.value=(Je=c.value)==null?void 0:Je.map(ze=>({...ze,isFormColHidden:!(me!=null&&me.includes(ze.label))}))};a.onUnmounted(()=>{P.value=null});const Xa=me=>{s("clickTrigger",me)},Wa=async me=>{var Je,ze,Xe,pa,ua,Ae;if(me===""){let za="";(Je=c.value)==null||Je.forEach(He=>{He!=null&&He.isMain&&(za=He==null?void 0:He.value)});let fa=await oa.getItemData(wa.value,sessionStorage.getItem("systemKey"),"");za=((Ae=(ua=(pa=(Xe=(ze=fa==null?void 0:fa[0])==null?void 0:ze.compData)==null?void 0:Xe.find(He=>(He==null?void 0:He.key)==="mainRouters"))==null?void 0:pa.contents)==null?void 0:ua[0])==null?void 0:Ae.routerContent)+ya.value+za;let ga=await oa.getItemData(za,sessionStorage.getItem("systemKey"),"");A.value=!0,ee.value=ga==null?void 0:ga.filter(He=>(He==null?void 0:He.comp)!=="methodButton"),s("routeUrl",ee.value)}},V=()=>{var Je;const me=(Je=P.value)==null?void 0:Je.$el;me&&$a.Sortable.create(me,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:ze=>{const{oldIndex:Xe,newIndex:pa}=ze;if(Xe===pa)return;const ua=c.value.splice(Xe,1)[0];c.value.splice(pa,0,ua)}})},$=async(me,Je,ze,Xe=!1)=>{try{be.setRefreshCurStructure(!1)}catch{al.ElMessage.error("编辑处理失败")}},X=async(me,Je)=>{await $()},se=async(me,Je)=>{me&&await $()},ue=async(me,Je,ze)=>{await $(Je,ze,me,!1)},va=(me,Je)=>{Ee.value===Je?Q.value=!1:Q.value=!0,Ee.value=Je==null?void 0:Je.changeProp},ra=me=>{F.value=me;const Je=o.itemData,ze=Je==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.key)==="backGroundImage");ze?ze.contents=me:Je==null||Je.push({key:"backGroundImage",contents:me}),s("change",{key:"backGroundImage",contents:me})},Le=async me=>{var ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De,fe,oe;let Je=[];if((ze=me==null?void 0:me.toString())!=null&&ze.includes(".urdf")){if(me.includes(",")){al.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:me,extension:m(me)}],p.value=!0,y.value=!0;return}if((Xe=me==null?void 0:me.toString())!=null&&Xe.includes(".stl")||(pa=me==null?void 0:me.toString())!=null&&pa.includes(".STL")||(ua=me==null?void 0:me.toString())!=null&&ua.includes(".obj")||(Ae=me==null?void 0:me.toString())!=null&&Ae.includes(".mtl")){const Pa=((za=me==null?void 0:me.toString())==null?void 0:za.split(",")).map(hl=>({url:hl,extension:m(hl)}));v.value=Pa,p.value=!1,y.value=!0;return}if((fa=me==null?void 0:me.toString())!=null&&fa.includes(".stl")||(Ua=me==null?void 0:me.toString())!=null&&Ua.includes(".STL")||(ga=me==null?void 0:me.toString())!=null&&ga.includes(".obj")||(He=me==null?void 0:me.toString())!=null&&He.includes(".mtl")){let ia,Pa=[],hl={};if(Array.isArray(me)?ia=me:ia=me==null?void 0:me.split(","),ia==null||ia.forEach(Ma=>{Ma.includes(".mtl")?Pa.push(Ma):hl.blob=hl.blob?hl.blob+","+Ma:Ma}),(Pa==null?void 0:Pa.length)>0&&(hl.mtlBlobs=Pa),(Ne=(We=Object.values(hl))==null?void 0:We[0])!=null&&Ne.includes("http:"))Je.push(hl);else{const Ma=new Blob([hl.blob],{type:"application/octet-stream;charset=UTF-8"});let Ul=URL.createObjectURL(Ma),Ea="";(De=me==null?void 0:me.split("/"))==null||De.forEach((_a,Ra)=>{var Va;Ra===((Va=me==null?void 0:me.split("/"))==null?void 0:Va.length)-1&&(Ea=_a)}),(fe=hl.blob)!=null&&fe.includes(".stl")&&(Ea=(Ea==null?void 0:Ea.replaceAll(">",""))+".urdf"),I.value=[{name:Ea,blobUrl:Ul}],D.value=!0}}else{const ia=Fo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Pa=await al.axios.get(me,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ia.close()}),hl=new Blob([Pa.data],{type:"application/octet-stream;charset=UTF-8"});let Ma=URL.createObjectURL(hl),Ul="";(oe=me==null?void 0:me.split("/"))==null||oe.forEach((Ea,_a)=>{var Ra;_a===((Ra=me==null?void 0:me.split("/"))==null?void 0:Ra.length)-1&&(Ul=Ea)}),I.value=[{name:Ul,blobUrl:Ma}],D.value=!0}(Je==null?void 0:Je.length)>0&&_.setBlobUrls(Je)},Ce=()=>{D.value=!1},Sa=me=>{var ua,Ae,za,fa;const Je=(Ae=(ua=pl.safeClone(o.itemData))==null?void 0:ua.find(Ua=>(Ua==null?void 0:Ua.key)==="formContent"))==null?void 0:Ae.contents,ze=pl.safeClone(me.content);let Xe={};ze&&((za=Object.values(ze))==null?void 0:za.length)>0&&((fa=Object.values(ze))==null||fa.forEach((Ua,ga)=>{Xe[Je[ga].key]=Ua}));const pa={content:Xe,index:o==null?void 0:o.index,buttonName:me==null?void 0:me.buttonName};s("change",pa)};a.computed(()=>"http://222.92.178.198:62001");const da=async me=>{var We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul,Ea,_a,Ra,Va,qa,xa;if(!me)return;(Ne=(We=o==null?void 0:o.itemData)==null?void 0:We.find(ae=>(ae==null?void 0:ae.key)==="parentFormPath"))==null||Ne.contents;let Je=Z.value;(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(ae=>{var pe,Ca,qe,G;let Ye=(pe=ae==null?void 0:ae.key)==null?void 0:pe.split("/");return(o==null?void 0:o.compName)===(Ye==null?void 0:Ye[0])&&(Ca=c.value)!=null&&Ca.find(aa=>(aa==null?void 0:aa.prop)===(Ye==null?void 0:Ye[1]))&&(ae.value=(G=(qe=c.value)==null?void 0:qe.find(aa=>(aa==null?void 0:aa.prop)===(Ye==null?void 0:Ye[1])))==null?void 0:G.value),ae}),be.setTableViewContents(Je));const ze=pl.safeClone(o.itemData);let Xe=ze==null?void 0:ze.map(ae=>{var Ye;return(ae==null?void 0:ae.key)==="formContent"&&((Ye=ae.contents)==null||Ye.map((pe,Ca)=>{var qe,G,aa,Ge,Be,El,sl,kl,Ga,Qa,Na,he,Da,Sl,Pl,jl,or,gr,Tl,sr,Tr;return pe.type=(G=(qe=c.value)==null?void 0:qe.find(Rl=>(Rl==null?void 0:Rl.prop)===(pe==null?void 0:pe.prop)))==null?void 0:G.type,pe.options=pe!=null&&pe.options?pe.options:((Be=(Ge=(aa=pe==null?void 0:pe.key)==null?void 0:aa.split("$"))==null?void 0:Ge[1])==null?void 0:Be.length)>0?(Ga=(kl=Tu((sl=(El=pe==null?void 0:pe.key)==null?void 0:El.split("$"))==null?void 0:sl[1]))==null?void 0:kl.split(","))==null?void 0:Ga.map(Rl=>({label:Rl,value:Rl})):[],(Qa=pe==null?void 0:pe.key)!=null&&Qa.includes("$")&&(pe.key=(he=(Na=pe==null?void 0:pe.key)==null?void 0:Na.split("$"))==null?void 0:he[0]),pe.signature=(Sl=(Da=c.value)==null?void 0:Da.find(Rl=>(Rl==null?void 0:Rl.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Sl.signature,pe.isLoginUser=(jl=(Pl=c.value)==null?void 0:Pl.find(Rl=>(Rl==null?void 0:Rl.prop)===(pe==null?void 0:pe.prop)))==null?void 0:jl.isLoginUser,pe.value=(or=Object.values(me))==null?void 0:or[Ca],pe.isFormColHidden=(Tl=(gr=c.value)==null?void 0:gr.find(Rl=>(Rl==null?void 0:Rl.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Tl.isFormColHidden,pe.isHideInForm=(Tr=(sr=c.value)==null?void 0:sr.find(Rl=>(Rl==null?void 0:Rl.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Tr.isHideInForm,pe})),ae}),pa=c.value,ua=(fe=(De=pl.safeClone(Xe))==null?void 0:De.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:fe.contents;if(pa=pa==null?void 0:pa.map(ae=>{var Ye,pe;return(ae==null?void 0:ae.type)==="Select"&&((Ye=ae==null?void 0:ae.allSelectionContents)==null?void 0:Ye.length)>0&&(ae.contactValue=me),ae.value=(pe=ua==null?void 0:ua.find((Ca,qe)=>((Ca==null?void 0:Ca.id)??qe)===(ae==null?void 0:ae.id)))==null?void 0:pe.value,ae}),!Q.value){s("contentChange",{contents:Xe,index:o.index});return}let Ae="",za=(Pa=(ia=(oe=pl.safeClone(Xe))==null?void 0:oe.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:ia.contents)==null?void 0:Pa.find((ae,Ye)=>{var pe,Ca,qe;return(ae==null?void 0:ae.label)===Ee.value||Ye.toString()===((qe=(Ca=(pe=Ee.value)==null?void 0:pe.split("t"))==null?void 0:Ca[1])==null?void 0:qe.toString())}),fa=(hl=za==null?void 0:za.optionUrl)==null?void 0:hl.menuSelect,Ua=!0;if((Ea=(Ul=(Ma=pl.safeClone(Xe))==null?void 0:Ma.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:Ul.contents)==null||Ea.forEach(ae=>{var Ye,pe,Ca,qe,G,aa;Ua&&((Ca=(pe=(Ye=ae==null?void 0:ae.optionUrl)==null?void 0:Ye.groupSelect)==null?void 0:pe[1])!=null&&Ca.includes("["))&&(Ae=(G=(qe=ae==null?void 0:ae.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:G[1],JSON.stringify(fa)===JSON.stringify((aa=ae==null?void 0:ae.optionUrl)==null?void 0:aa.menuSelect)&&(Ua=!1))}),(_a=za==null?void 0:za.optionUrl)!=null&&_a.menuSelect&&Q.value){let ae=await yt(za),Ye,pe=(Ra=za==null?void 0:za.optionUrl)==null?void 0:Ra.menuSelect;if(ae==null||ae.forEach(Ca=>{var qe,G,aa,Ge,Be,El,sl,kl,Ga,Qa;Ae===((G=(qe=za==null?void 0:za.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:G[1])&&((Be=(Ge=(aa=za==null?void 0:za.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])!=null&&Be.includes("["))&&((Qa=pl.safeClone(Ca))==null?void 0:Qa[(Ga=(kl=(sl=(El=za==null?void 0:za.optionUrl)==null?void 0:El.groupSelect)==null?void 0:sl[1])==null?void 0:kl.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])===(za==null?void 0:za.value)&&(Ye=Ca)}),Ye){let Ca=pl.safeClone(pa);Ca=Ca==null?void 0:Ca.map(G=>{var aa,Ge,Be,El,sl,kl,Ga,Qa,Na,he,Da;return(Ye!=null&&Ye[G==null?void 0:G.label]||Ye!=null&&Ye[(El=(Be=(Ge=(aa=G==null?void 0:G.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])==null?void 0:Be.replaceAll("[",""))==null?void 0:El.replaceAll("]","")])&&((Ga=(kl=(sl=G==null?void 0:G.optionUrl)==null?void 0:sl.groupSelect)==null?void 0:kl[1])!=null&&Ga.includes("["))&&pe!=null&&pe.every(Sl=>{var Pl,jl;return(jl=(Pl=G==null?void 0:G.optionUrl)==null?void 0:Pl.menuSelect)==null?void 0:jl.includes(Sl)})&&(G.value=(Ye==null?void 0:Ye[G==null?void 0:G.label])||(Ye==null?void 0:Ye[(Da=(he=(Na=(Qa=G==null?void 0:G.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:Na[1])==null?void 0:he.replaceAll("[",""))==null?void 0:Da.replaceAll("]","")]),Array.isArray(G.value)&&G.value.every(Sl=>(Sl==null?void 0:Sl.url)&&(Sl==null?void 0:Sl.name))&&(G.type="Upload")),G}),Ca=Ca==null?void 0:Ca.map(G=>{var aa,Ge,Be;return(aa=G==null?void 0:G.optionUrl)!=null&&aa.oldMenuSelect&&(G.optionUrl.menuSelect=(Be=(Ge=pl.safeClone(G))==null?void 0:Ge.optionUrl)==null?void 0:Be.oldMenuSelect),G}),c.value=pl.safeClone(Ca);let qe=pl.safeClone(Ca);qe=qe==null?void 0:qe.map(G=>{var aa,Ge,Be,El,sl,kl;return(Ge=(aa=G==null?void 0:G.optionUrl)==null?void 0:aa.menuSelect)!=null&&Ge.some(Ga=>Ga==null?void 0:Ga.includes("["))&&(G.optionUrl.oldMenuSelect=(El=(Be=pl.safeClone(G))==null?void 0:Be.optionUrl)==null?void 0:El.menuSelect,G.optionUrl.menuSelect=(kl=(sl=G==null?void 0:G.optionUrl)==null?void 0:sl.menuSelect)==null?void 0:kl.map(Ga=>{var Qa,Na,he,Da;if(Ga!=null&&Ga.includes("[")){let Sl=(Na=(Qa=Ga==null?void 0:Ga.replaceAll("[","").replaceAll("]",""))==null?void 0:Qa.split(":"))==null?void 0:Na[1];Ga=(Da=(he=pl.safeClone(Ca))==null?void 0:he.find(Pl=>(Pl==null?void 0:Pl.label)===Sl))==null?void 0:Da.value}return Ga})),G}),c.value=qe}else c.value=pa;Xe=Xe==null?void 0:Xe.map(Ca=>{var qe;return(Ca==null?void 0:Ca.key)==="formContent"&&(Ca.contents=(qe=Ca.contents)==null?void 0:qe.map(G=>{var aa,Ge,Be,El;return G.value=((Ge=(aa=c.value)==null?void 0:aa.find(sl=>(sl==null?void 0:sl.label)===(G==null?void 0:G.key)))==null?void 0:Ge.value)??(G==null?void 0:G.value),G.type=((El=(Be=c.value)==null?void 0:Be.find(sl=>(sl==null?void 0:sl.prop)===(G==null?void 0:G.key)))==null?void 0:El.type)??(G==null?void 0:G.type),G})),Ca})}Q.value=!1,s("contentChange",{contents:Xe,index:o.index});let ga=[],He=[];if((qa=pl.safeClone((Va=Xe==null?void 0:Xe.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:Va.contents))==null||qa.forEach(ae=>{var Ye;Array.isArray(ae==null?void 0:ae.value)&&((Ye=ae==null?void 0:ae.value)!=null&&Ye.find(pe=>{var Ca;return(Ca=pe==null?void 0:pe.url)==null?void 0:Ca.includes(".obj")}))&&(He=ae==null?void 0:ae.value)}),(He==null?void 0:He.length)>0){const ae=(xa=pl.safeClone(He))==null?void 0:xa.filter(Ye=>{var pe;return(pe=Ye==null?void 0:Ye.url)==null?void 0:pe.includes(".obj")});ae==null||ae.forEach(Ye=>{var Ca,qe,G,aa;const pe=(Ca=He==null?void 0:He.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ye==null?void 0:Ye.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:Ca.map(Ge=>Ge==null?void 0:Ge.url);ga.push({objUrl:Ye==null?void 0:Ye.url,mtlUrls:((qe=He==null?void 0:He.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ye==null?void 0:Ye.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:qe.length)===1?(aa=(G=He==null?void 0:He.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ye==null?void 0:Ye.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:G[0])==null?void 0:aa.url:pe})}),_.setObjUrl(ga)}},Fa=(me,Je,ze)=>{let Xe="";const pa=Je==null?void 0:Je.map(ua=>{var Ae;return(Ae=ua==null?void 0:ua.value)==null?void 0:Ae.pageData});return pa==null||pa.forEach(ua=>{var Ae;(ua==null?void 0:ua.name)===(me==null?void 0:me[0])&&((Ae=ua==null?void 0:ua.compData)==null||Ae.forEach(za=>{var fa;(za==null?void 0:za.key)==="formContent"&&((fa=za==null?void 0:za.contents)==null||fa.forEach(Ua=>{var ga;(Ua==null?void 0:Ua.prop)===(me==null?void 0:me[1])&&(Xe=(Ua==null?void 0:Ua.value)===""?oa.judgeContents((ga=pl.safeClone(Ua))==null?void 0:ga.optionUrl,ze):Ua==null?void 0:Ua.value)}))}))}),Xe},ja=(me,Je,ze,Xe)=>{var za,fa;let pa="",ua="";(za=pl.safeClone(Je))==null||za.forEach((Ua,ga)=>{Ua!=null&&Ua.includes("[")?ua=ua+ya.value+me[ga]:ua=ua===""?ua+Ua:ua+"/"+Ua});let Ae=(fa=Xe[ua])==null?void 0:fa.map(Ua=>{var ga;return(ga=Ua==null?void 0:Ua.value)==null?void 0:ga.pageData});return Ae==null||Ae.forEach(Ua=>{var ga;(Ua==null?void 0:Ua.name)===(ze==null?void 0:ze[0])&&((ga=Ua==null?void 0:Ua.compData)==null||ga.forEach(He=>{var We;(He==null?void 0:He.key)==="formContent"&&((We=He==null?void 0:He.contents)==null||We.forEach(Ne=>{(Ne==null?void 0:Ne.prop)===(ze==null?void 0:ze[1])&&(pa=Ne==null?void 0:Ne.value)}))}))}),pa};return a.watch(()=>o.itemData,async()=>{var We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul,Ea,_a,Ra,Va,qa,xa,ae,Ye,pe,Ca,qe,G,aa;const me=(We=o.itemData)==null?void 0:We.find(Ge=>(Ge==null?void 0:Ge.key)==="formContent"),Je=(Ne=pl.safeClone(o.itemData))==null?void 0:Ne.find(Ge=>(Ge==null?void 0:Ge.key)==="formButton"),ze=(De=pl.safeClone(o.itemData))==null?void 0:De.find(Ge=>(Ge==null?void 0:Ge.key)==="formFlex"),Xe=(fe=pl.safeClone(o.itemData))==null?void 0:fe.find(Ge=>(Ge==null?void 0:Ge.key)==="formWrap"),pa=(oe=pl.safeClone(o.itemData))==null?void 0:oe.find(Ge=>(Ge==null?void 0:Ge.key)==="enableWrap"),ua=(ia=pl.safeClone(o.itemData))==null?void 0:ia.find(Ge=>(Ge==null?void 0:Ge.key)==="textSize"),Ae=(Pa=pl.safeClone(o.itemData))==null?void 0:Pa.find(Ge=>(Ge==null?void 0:Ge.key)==="textRGBA"),za=(hl=pl.safeClone(o.itemData))==null?void 0:hl.find(Ge=>(Ge==null?void 0:Ge.key)==="backGround"),fa=(Ma=pl.safeClone(o.itemData))==null?void 0:Ma.find(Ge=>(Ge==null?void 0:Ge.key)==="backGroundImage");(Xe==null?void 0:Xe.contents)==="纵向"?w.value=!1:w.value=!0;const Ua=Number(ua==null?void 0:ua.contents);k.value=Number.isNaN(Ua)?void 0:Ua,g.value=Ae==null?void 0:Ae.contents,O.value=za==null?void 0:za.contents,F.value=fa==null?void 0:fa.contents;const ga=pa==null?void 0:pa.contents;if(ga===void 0?E.value=oo.BLOCK:typeof ga=="boolean"?E.value=ga?oo.ORDINARY:oo.BLOCK:E.value=ga,q.value=typeof(ze==null?void 0:ze.contents)!="boolean"?!(!(ze!=null&&ze.contents)===""||((Ul=ze==null?void 0:ze.contents)==null?void 0:Ul.toUpperCase())==="VERTICAL"):ze==null?void 0:ze.contents,((Ea=me==null?void 0:me.contents)==null?void 0:Ea.length)>0&&Array.isArray(me==null?void 0:me.contents)){let Ge=o.allMapContents;const Be=(Ra=(_a=pl.safeClone(me))==null?void 0:_a.contents)==null?void 0:Ra.map((he,Da)=>{var Sr,Mr,Ir,Br,Pr,Lr,cr,bn,Yr,nn,Tn,kn,mn;let Sl=(he==null?void 0:he.label)??(he==null?void 0:he.key)??"";he==null||he.type;let Pl=(he==null?void 0:he.options)??[];if((Sr=he==null?void 0:he.key)!=null&&Sr.includes("$")&&(Sl=(Mr=pl.safeClone(he==null?void 0:he.key).split("$"))==null?void 0:Mr[0],((Br=(Ir=pl.safeClone(he==null?void 0:he.key).split("$"))==null?void 0:Ir[1])==null?void 0:Br.length)>0)){const[mr,ql]=(Lr=(Pr=pl.safeClone(he==null?void 0:he.key).split("$"))==null?void 0:Pr[1])==null?void 0:Lr.split(/[()]/);(cr=oa.FormType.find(pr=>(pr==null?void 0:pr.key)===mr))==null||cr.value,((bn=ql==null?void 0:ql.split(","))==null?void 0:bn.length)>0&&(Pl=(Yr=ql==null?void 0:ql.split(","))==null?void 0:Yr.map(pr=>({label:pr,value:pr})))}let jl=he==null?void 0:he.options;((nn=he==null?void 0:he.optionUrl)==null?void 0:nn.selectRelateType)==="自定义绑定"&&(jl=(kn=(Tn=he==null?void 0:he.optionUrl)==null?void 0:Tn.defaultSelect)==null?void 0:kn.map(mr=>({label:mr,value:mr})));let or=(he==null?void 0:he.menuPath)??[],gr=(he==null?void 0:he.groups)??[],Tl=(he==null?void 0:he.columns)??[],sr=!1,Tr=(he==null?void 0:he.isFormColHidden)??!1,Rl="",rr=he!=null&&he.value?he.value:(jl==null?void 0:jl.length)>0?(mn=jl==null?void 0:jl[0])==null?void 0:mn.value:(he==null?void 0:he.value)??"",en=!1,Or="Input";return((jl==null?void 0:jl.length)>0||(or==null?void 0:or.length)>0)&&(Or="Select"),(Array.isArray(Rl)&&(Rl!=null&&Rl.every(mr=>(mr==null?void 0:mr.name)&&(mr==null?void 0:mr.url)))||Array.isArray(rr)&&(rr!=null&&rr.every(mr=>(mr==null?void 0:mr.name)&&(mr==null?void 0:mr.url))))&&(Or="upload"),he!=null&&he.isMainUrl&&(Or="Url"),{label:Sl??"",name:Sl??"t"+Da,prop:Sl??pl.safeClone(he==null?void 0:he.key),type:(he==null?void 0:he.type)??Or,value:(he==null?void 0:he.type)==="Date"&&rr===""?new Date:rr,id:(he==null?void 0:he.id)??Da,contents:(jl==null?void 0:jl.length)>0?jl:Pl??[],width:(he==null?void 0:he.width)??1,isLoginUser:sr,config:he==null?void 0:he.config,optionUrl:(he==null?void 0:he.optionUrl)??he,isFormColHidden:Tr,isHideInForm:(he==null?void 0:he.isHideInForm)??!1,signature:en,isMain:he==null?void 0:he.isMain,required:(he==null?void 0:he.required)??!1,isMainUrl:he==null?void 0:he.isMainUrl,operable:(he==null?void 0:he.operable)??!1,disabled:(he==null?void 0:he.disabled)??!1,isSync:he==null?void 0:he.isSync,menus:or,groups:gr,words:Tl,allSelectionContents:he==null?void 0:he.allContents,filterContent:he==null?void 0:he.filterContents}}),El=Be==null?void 0:Be.map(he=>he==null?void 0:he.value);let sl="";El==null||El.forEach(he=>{he!==""&&he!==void 0&&(sl=sl===""?he:sl+"/"+he)}),C.setSelectArray(El),C.setSelectString(sl);let kl=(Va=pl.safeClone(Be))==null?void 0:Va.map(he=>(he!=null&&he.value&&oa.IsJson(he==null?void 0:he.value)&&Array.isArray(JSON.parse(he==null?void 0:he.value))&&(he.value=JSON.parse(he.value)),he)),Ga={};kl==null||kl.forEach(he=>{Ga[he.label]=he==null?void 0:he.value}),kl=kl==null?void 0:kl.map(he=>{var Da,Sl,Pl,jl,or,gr,Tl,sr,Tr;if((he==null?void 0:he.type)==="Select"&&((Da=he==null?void 0:he.allSelectionContents)==null?void 0:Da.length)>0&&(he.contactValue=Ga),(Pl=(Sl=he==null?void 0:he.optionUrl)==null?void 0:Sl.menuSelect)!=null&&Pl.some(Rl=>Rl==null?void 0:Rl.includes("["))){let Rl="";he.optionUrl.oldMenuSelect=(or=(jl=pl.safeClone(he))==null?void 0:jl.optionUrl)==null?void 0:or.menuSelect,he.optionUrl.menuSelect=(Tl=(gr=he==null?void 0:he.optionUrl)==null?void 0:gr.menuSelect)==null?void 0:Tl.map(rr=>{var en,Or,zr,Sr,Mr,Ir;if(rr!=null&&rr.includes("[")){let Br=(Or=(en=rr==null?void 0:rr.replaceAll("[","").replaceAll("]",""))==null?void 0:en.split(":"))==null?void 0:Or[1];Rl=Fa((zr=rr==null?void 0:rr.replaceAll("[","").replaceAll("]",""))==null?void 0:zr.split(":"),Ge==null?void 0:Ge[ke.value],Ge),rr=((Mr=(Sr=pl.safeClone(kl))==null?void 0:Sr.find(Pr=>(Pr==null?void 0:Pr.label)===Br))==null?void 0:Mr.value)||Fa((Ir=rr==null?void 0:rr.replaceAll("[","").replaceAll("]",""))==null?void 0:Ir.split(":"),Ge==null?void 0:Ge[ke.value],Ge)}return rr}),Rl!==""&&he.value===""&&(he.value=ja(he.optionUrl.menuSelect,he.optionUrl.oldMenuSelect,(sr=he==null?void 0:he.optionUrl)==null?void 0:sr.groupSelect,Ge),Array.isArray(he.value)&&((Tr=he.value)!=null&&Tr.every(rr=>rr==null?void 0:rr.url))&&(he.type="UPLOAD"))}return he}),c.value=kl,ye.value=((qa=c.value)==null?void 0:qa.every(he=>he==null?void 0:he.disabled))||ie.value===ke.value,j.value=(xa=c.value)==null?void 0:xa.every(he=>he==null?void 0:he.operable),Ve.value=(ae=c.value)==null?void 0:ae.map(he=>he==null?void 0:he.label);let Qa=[],Na=[];if((Ye=pl.safeClone(c.value))==null||Ye.forEach(he=>{var Da;Array.isArray(he==null?void 0:he.value)&&((Da=he==null?void 0:he.value)!=null&&Da.find(Sl=>{var Pl;return(Pl=Sl==null?void 0:Sl.url)==null?void 0:Pl.includes(".obj")}))&&(Na=he==null?void 0:he.value)}),(Na==null?void 0:Na.length)>0){const he=(pe=pl.safeClone(Na))==null?void 0:pe.filter(Da=>{var Sl;return(Sl=Da==null?void 0:Da.url)==null?void 0:Sl.includes(".obj")});he==null||he.forEach(Da=>{var Pl,jl,or,gr;const Sl=(Pl=Na==null?void 0:Na.filter(Tl=>{var sr;return(Tl==null?void 0:Tl.name)===(Da==null?void 0:Da.name)&&((sr=Tl==null?void 0:Tl.url)==null?void 0:sr.includes(".mtl"))}))==null?void 0:Pl.map(Tl=>Tl==null?void 0:Tl.url);Qa.push({objUrl:Da==null?void 0:Da.url,mtlUrls:((jl=Na==null?void 0:Na.filter(Tl=>{var sr;return(Tl==null?void 0:Tl.name)===(Da==null?void 0:Da.name)&&((sr=Tl==null?void 0:Tl.url)==null?void 0:sr.includes(".mtl"))}))==null?void 0:jl.length)===1?(gr=(or=Na==null?void 0:Na.filter(Tl=>{var sr;return(Tl==null?void 0:Tl.name)===(Da==null?void 0:Da.name)&&((sr=Tl==null?void 0:Tl.url)==null?void 0:sr.includes(".mtl"))}))==null?void 0:or[0])==null?void 0:gr.url:Sl})}),_.setObjUrl(Qa)}(Ca=pl.safeClone(c.value))==null||Ca.forEach(he=>{var Da,Sl,Pl,jl,or,gr,Tl,sr,Tr,Rl,rr,en,Or;if((Sl=(Da=he==null?void 0:he.value)==null?void 0:Da.toString())!=null&&Sl.includes(".stl")||(jl=(Pl=he==null?void 0:he.value)==null?void 0:Pl.toString())!=null&&jl.includes(".STL")||(gr=(or=he==null?void 0:he.value)==null?void 0:or.toString())!=null&&gr.includes(".obj")||(sr=(Tl=he==null?void 0:he.value)==null?void 0:Tl.toString())!=null&&sr.includes(".mtl")||(Rl=(Tr=he==null?void 0:he.value)==null?void 0:Tr.toString())!=null&&Rl.includes(".urdf")){let zr={},Sr=[],Mr;Array.isArray(he==null?void 0:he.value)?Mr=he==null?void 0:he.value:Mr=(rr=he==null?void 0:he.value)==null?void 0:rr.split(","),Mr==null||Mr.forEach(Ir=>{Ir.includes(".mtl")?Sr.push(Ir):zr.blob=zr.blob==="undefined"?Ir:zr.blob+","+Ir}),(Sr==null?void 0:Sr.length)>0&&(zr.mtlBlobs=Sr),(Or=(en=Object.values(zr))==null?void 0:en[0])!=null&&Or.includes("http:")}})}else c.value=[];let He=Z.value;if((He==null?void 0:He.length)>0&&(He=He==null?void 0:He.map(Ge=>{var El,sl,kl,Ga;let Be=(El=Ge==null?void 0:Ge.key)==null?void 0:El.split("/");return(o==null?void 0:o.compName)===(Be==null?void 0:Be[0])&&(sl=c.value)!=null&&sl.find(Qa=>(Qa==null?void 0:Qa.prop)===(Be==null?void 0:Be[1]))&&(Ge.value=(Ga=(kl=c.value)==null?void 0:kl.find(Qa=>(Qa==null?void 0:Qa.prop)===(Be==null?void 0:Be[1])))==null?void 0:Ga.value),Ge}),be.setTableViewContents(He)),o!=null&&o.formRules)u.value=o==null?void 0:o.formRules;else{let Ge={};(qe=pl.safeClone(c).value)==null||qe.forEach(Be=>{((Be==null?void 0:Be.isMain)===!0||(Be==null?void 0:Be.required)===!0)&&(Ge[(Be==null?void 0:Be.prop)??(Be==null?void 0:Be.name)]=[{required:!0,message:`${(Be==null?void 0:Be.label)||(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.name)}不能为空`}])}),u.value=Ge}if(((G=Je==null?void 0:Je.contents)==null?void 0:G.length)>0){const Ge=[];(aa=Je==null?void 0:Je.contents)==null||aa.forEach((Be,El)=>{(Be==null?void 0:Be.label)!==""&&Ge.push({label:(Be==null?void 0:Be.label)??"",id:(Be==null?void 0:Be.id)??El,type:(Be==null?void 0:Be.type)??"",background:Be==null?void 0:Be.background})}),W.value=Ge}else W.value=[]},{deep:!0,immediate:!0}),a.watch(()=>ie.value,me=>{ye.value=me===ke.value},{immediate:!0}),(me,Je)=>{var za;const ze=a.resolveComponent("svg-icon"),Xe=a.resolveComponent("el-switch"),pa=a.resolveComponent("el-checkbox"),ua=a.resolveComponent("el-popover"),Ae=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",E3,[E.value===a.unref(oo).TEXT?(a.openBlock(),a.createBlock(_c,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:k.value,textColor:g.value,backGround:O.value,backGroundImage:F.value,disabled:ye.value||la(),"onUpdate:backGroundImage":ra},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):E.value===a.unref(oo).BLOCK?(a.openBlock(),a.createBlock(cf,{key:1,items:(za=c.value)==null?void 0:za.map(fa=>({label:fa!=null&&fa.isHideInForm?"":fa==null?void 0:fa.label,value:fa==null?void 0:fa.value,width:(fa==null?void 0:fa.width)??1,field:fa})),textSize:k.value,textColor:g.value,backGround:O.value,backGroundImage:F.value,disabled:ye.value||la(),"onUpdate:backGroundImage":ra},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":E.value===a.unref(oo).ORDINARY})},[a.createVNode(pl.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:W.value,isRowFlex:!1,isEnableWrap:!0,textSize:k.value,textColor:g.value,backGround:O.value,backGroundImage:F.value,onOnButtonClick:Sa,onChange:da,formDisabled:ye.value||la(),formLabelsOperable:j.value,isButtonRow:w.value,onPreview:Le,onBlurChange:va,onHandleColEditChange:X,onHandleColTypeChange:se,onRouteUrl:Wa,onClickTrigger:Xa,"onUpdate:backGroundImage":ra},{operateCol:a.withCtx(({renderColumns:fa,formDisabled:Ua,formLabelsOperable:ga})=>[a.createVNode(ua,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:$e},{reference:a.withCtx(()=>[a.createElementVNode("span",S3,[a.createVNode(ze,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",D3,[Je[1]||(Je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Xe,{"model-value":Ua,"active-text":"禁用","inactive-text":"",onChange:Fe,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Xe,{"model-value":ga,"active-text":"编辑所有标签","inactive-text":"",onChange:Ie},null,8,["model-value"]),Je[2]||(Je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(Ae,{modelValue:Ve.value,"onUpdate:modelValue":Je[0]||(Je[0]=He=>Ve.value=He),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:P,onChange:Qe},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(fa,He=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:He.label},[a.createVNode(pa,{value:He.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(He.label),1)]),_:2},1032,["value"]),a.createVNode(ua,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(ze,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var We;return[a.createElementVNode("div",B3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((We=Object.keys(He))==null?void 0:We.filter(Ne=>{var De;return(De=ba.value)==null?void 0:De.find(fe=>(fe==null?void 0:fe.value)===Ne)}),Ne=>{var De,fe;return a.openBlock(),a.createElementBlock("div",{key:Ne},[a.createVNode(pl._sfc_main$1,{value:He==null?void 0:He[Ne],"active-text":(fe=(De=ba.value)==null?void 0:De.find(oe=>(oe==null?void 0:oe.value)===Ne))==null?void 0:fe.label,inactiveText:"",onChange:oe=>ue(oe,Ne,He)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",N3,[a.createVNode(ze,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow"])],2)),D.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:3,fileDataList:I.value,onDestroy:Ce},null,8,["fileDataList"])):a.createCommentVNode("",!0),y.value?(a.openBlock(),a.createBlock(wr.ssDialog,{key:4,visible:y.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(Ci.ThreeViewerHost,{files:v.value,onGetAnimationData:me.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},gs=Xl._export_sfc(T3,[["__scopeId","data-v-14c62655"]]),Mi=a.ref(0),Cc=l=>{var n;return!l||(l==null?void 0:l.length)===0?[]:(n=Y.cloneDeep(l))==null?void 0:n.map(o=>(Mi.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Mi.value,children:Cc(o==null?void 0:o.children)},o))},A3=l=>{var r;return(r=Y.cloneDeep(l))==null?void 0:r.map(o=>(Mi.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Mi.value,children:Cc(o==null?void 0:o.children)},o))},Ec=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===n)?(r=Y.cloneDeep(l))==null?void 0:r.filter(s=>(s==null?void 0:s.id)!==n):(l=l==null?void 0:l.map(o=>(o.children=Ec(o==null?void 0:o.children,n),o)),l)},Sc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=Y.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s=n),s)):(l=l==null?void 0:l.map(o=>(o.children=Sc(o==null?void 0:o.children,n),o)),l)},Dc=(l,n)=>{var r;return l!=null&&l.find(o=>{var s;return(o==null?void 0:o.id)===((s=n==null?void 0:n.contents)==null?void 0:s.id)})?(r=Y.cloneDeep(l))==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.id)===((c=n==null?void 0:n.contents)==null?void 0:c.id)&&(s=n==null?void 0:n.contents),s}):(l=l==null?void 0:l.map(o=>(o.children=Dc(o==null?void 0:o.children,n),o)),l)},Bc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=Y.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(n.contents)),s)):(l=l==null?void 0:l.map(o=>(o.children=Bc(o==null?void 0:o.children,n),o)),l)},lr=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],z3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],M3=[{label:"新增",value:"add"}],Rn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:M3},{key:"background",label:"按钮背景色",type:"Color"}],$n=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:z3},{key:"textColor",label:"按钮颜色",type:"Color"}],I3={class:"table-header-child"},O3={class:"table-header-child-main"},L3={class:"table-header-child-content"},R3={class:"table-header-child-content-item"},$3={class:"fix-button"},V3={key:0},P3={class:"form-content"},F3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref(""),y=oa.useTableComp(ol.pinia),{tableIndex:p}=ol.storeToRefs(y);a.ref(0);const v=a.ref(""),m=a.ref([]),u=a.ref([]),w=C=>{var E;s.value=!0;let _=[];lr==null||lr.forEach(k=>{let g=Y.cloneDeep(p.value)+1;y.setTableIndex(g),_.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:C[k.key],id:p.value,contents:k==null?void 0:k.options})}),C!=null&&C.children&&((E=C==null?void 0:C.children)==null?void 0:E.length)>0&&_.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,m.value=_,u.value=_},D=C=>{o("fixChange",Y.cloneDeep(C))},L=C=>{o("deleteChange",Y.cloneDeep(C))},S=C=>{s.value=!0;let _=[];lr==null||lr.forEach(E=>{let k=Y.cloneDeep(p.value)+1;y.setTableIndex(k),_.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:"",id:p.value,contents:E==null?void 0:E.options})}),c.value=C==null?void 0:C.id,m.value=_,u.value=_},W=C=>{let _=Y.cloneDeep(u.value);_=_==null?void 0:_.map(E=>(E.children||(E.value=C==null?void 0:C[E.name]),E)),u.value=_},I=()=>{var _,E;m.value=u.value;let C={};if(v.value!=="")C.id=v.value,(_=m.value)==null||_.forEach(k=>{const g=lr==null?void 0:lr.find(O=>(O==null?void 0:O.label)===(k==null?void 0:k.label));g?C[g.key]=k.value:k!=null&&k.children&&k.children.length>0&&(C.children=k.children)}),s.value=!1,o("fixChange",{contents:Y.cloneDeep(C),id:c.value,type:"fix"});else{let k=Y.cloneDeep(p.value)+1;y.setTableIndex(k),C.id="id"+p.value,(E=m.value)==null||E.forEach(g=>{const O=lr==null?void 0:lr.find(F=>(F==null?void 0:F.label)===(g==null?void 0:g.label));O?C[O.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:Y.cloneDeep(C),id:c.value,type:"add"})}v.value="",m.value=[],u.value=[]},A=()=>{s.value=!1,v.value="",c.value="",m.value=[],u.value=[]},ee=C=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(C,_)=>{const E=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",I3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(k,g)=>(a.openBlock(),a.createElementBlock("div",O3,[a.createElementVNode("div",L3,[a.createElementVNode("div",R3,a.toDisplayString(k.label),1),a.createElementVNode("div",$3,[a.createVNode(E,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>S(k)},null,8,["onClick"]),a.createVNode(E,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>w(k)},null,8,["onClick"]),a.createVNode(E,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:O=>ee(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(a.openBlock(),a.createElementBlock("div",V3,[a.createVNode(Nc,{tableChildContents:k==null?void 0:k.children,onDeleteChange:L,onFixChange:D},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:A,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",P3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:W},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:A,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:I},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},j3=Xl._export_sfc(F3,[["__scopeId","data-v-e0fef72d"]]),H3={class:"table-header-child"},U3={class:"table-header-child-main"},q3={class:"table-header-child-content"},W3={class:"table-header-child-content-item"},K3={class:"fix-button"},G3={key:0},Y3={class:"form-content"},J3={class:"dialog-footer"},X3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref(""),y=oa.useTableComp(ol.pinia),{tableIndex:p}=ol.storeToRefs(y),v=a.ref(""),m=a.ref([]),u=a.ref([]),w=C=>{o("fixChange",Y.cloneDeep(C))},D=C=>{var E;s.value=!0;let _=[];lr==null||lr.forEach(k=>{let g=Y.cloneDeep(p.value)+1;y.setTableIndex(g),_.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:C[k.key],id:p.value,contents:k==null?void 0:k.options})}),C!=null&&C.children&&((E=C==null?void 0:C.children)==null?void 0:E.length)>0&&_.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,m.value=_,u.value=_},L=C=>{s.value=!0;let _=[];lr==null||lr.forEach(E=>{let k=Y.cloneDeep(p.value)+1;y.setTableIndex(k),_.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:"",id:p.value,contents:E==null?void 0:E.options})}),c.value=C==null?void 0:C.id,m.value=_,u.value=_},S=C=>{let _=Y.cloneDeep(u.value);_=_==null?void 0:_.map(E=>(E.children||(E.value=C==null?void 0:C[E.name]),E)),u.value=_},W=()=>{var _,E;m.value=u.value;let C={};if(v.value!=="")C.id=v.value,(_=m.value)==null||_.forEach(k=>{const g=lr==null?void 0:lr.find(O=>(O==null?void 0:O.label)===(k==null?void 0:k.label));g?C[g.key]=k.value:k!=null&&k.children&&k.children.length>0&&(C.children=k.children)}),s.value=!1,o("fixChange",{contents:Y.cloneDeep(C),id:c.value,type:"fix"});else{let k=Y.cloneDeep(p.value)+1;y.setTableIndex(k),C.id="idChild"+p.value,(E=m.value)==null||E.forEach(g=>{const O=lr==null?void 0:lr.find(F=>(F==null?void 0:F.label)===(g==null?void 0:g.label));O?C[O.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:Y.cloneDeep(C),id:c.value,type:"add"})}v.value="",m.value=[],u.value=[]},I=()=>{s.value=!1,v.value="",c.value="",m.value=[],u.value=[]},A=C=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ee=C=>{o("deleteChange",C)};return(C,_)=>{const E=a.resolveComponent("svg-icon"),k=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",H3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(g,O)=>(a.openBlock(),a.createElementBlock("div",U3,[a.createElementVNode("div",q3,[a.createElementVNode("div",W3,a.toDisplayString(g.label),1),a.createElementVNode("div",K3,[a.createVNode(E,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>L(g)},null,8,["onClick"]),a.createVNode(E,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>D(g)},null,8,["onClick"]),a.createVNode(E,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>A(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",G3,[a.createVNode(j3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:ee,onFixChange:w},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:I,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",Y3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:S},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",J3,[a.createVNode(k,{onClick:I,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(k,{class:"ok-button button",onClick:W,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Nc=Xl._export_sfc(X3,[["__scopeId","data-v-ebd68fa1"]]),Z3={class:"table-operate-content"},Q3={class:"table-operate-item"},e1={class:"operate-title"},a1={class:"operate-content"},l1={class:"fix-content"},r1={class:"fix-content-label"},n1={class:"fix-button"},o1={key:0},i1={class:"operate-title"},s1={class:"operate-content"},c1={class:"fix-content"},u1={class:"fix-content-label"},d1={class:"fix-button"},p1={class:"operate-title"},f1={class:"operate-content"},h1={class:"fix-content"},v1={class:"fix-content-label"},m1={class:"fix-button"},y1={class:"operate-title"},g1={class:"operate-content"},b1={class:"fix-content"},k1={class:"fix-content-label"},x1={class:"fix-button"},w1={class:"operate-content"},_1={style:{display:"flex","justify-content":"space-between"}},C1={class:"form-content"},E1={class:"dialog-footer"},S1={class:"form-content"},D1={class:"dialog-footer"},B1={class:"form-content"},N1={class:"dialog-footer"},T1={class:"form-content"},A1={class:"dialog-footer"},z1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref(!1),y=a.ref(!1),p=a.ref([]),v=a.ref(!1),m=a.ref([]),u=a.ref(!1),w=a.ref([]),D=a.ref(""),L=a.ref(""),S=a.ref([]),W=a.ref([]),I=a.ref([]),A=a.ref([]),ee=a.ref(!1),C=a.ref([]),_=a.ref([]),E=a.ref(0),k=a.ref([]),g=a.ref([]),O=a.ref([]),F=()=>{ee.value=!0;let V=[];Rn==null||Rn.forEach($=>{E.value++,V.push({label:$==null?void 0:$.label,name:$==null?void 0:$.label,type:$.type,value:($==null?void 0:$.key)==="background"?"var(--ssComponent-primary-color)":"",id:E.value,contents:$==null?void 0:$.options})}),C.value=V,_.value=V},q=()=>{var $,X,se;y.value=!0;let V=[];(se=(X=($=oa.FormContent)==null?void 0:$.find(ue=>(ue==null?void 0:ue.key)==="Input"))==null?void 0:X.value)==null||se.forEach(ue=>{E.value++,V.push({label:ue==null?void 0:ue.label,name:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.label),type:ue.type,value:(ue==null?void 0:ue.label)==="类型"?"Input":"",id:E.value,contents:ue==null?void 0:ue.options})}),k.value=V,g.value=V},te=V=>{V||(k.value=g.value)},Te=async V=>{var $,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja;if((V==null?void 0:V.类型)!==((X=($=g.value)==null?void 0:$.find(me=>(me==null?void 0:me.label)==="类型"))==null?void 0:X.value)){let me=[],Je=await((va=(ue=(se=oa.FormContent)==null?void 0:se.find(ze=>(ze==null?void 0:ze.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:ue.value)==null?void 0:va.value)?await((da=(Sa=(Ce=oa.FormContent)==null?void 0:Ce.find(ze=>(ze==null?void 0:ze.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:Sa.value)==null?void 0:da.value):(Le=(ra=oa.FormContent)==null?void 0:ra.find(ze=>(ze==null?void 0:ze.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:Le.value;if(Je==null||Je.forEach(ze=>{E.value++,me.push({label:ze==null?void 0:ze.label,name:(ze==null?void 0:ze.name)||(ze==null?void 0:ze.label),type:ze.type,value:ze!=null&&ze.属性名?(V==null?void 0:V.prop)||(V==null?void 0:V.name)||(V==null?void 0:V.label):(V==null?void 0:V[ze.label])??"",id:E.value,contents:ze==null?void 0:ze.options,prop:(ze==null?void 0:ze.prop)||(ze==null?void 0:ze.name)||(ze==null?void 0:ze.label)})}),V!=null&&V.菜单选项&&((Fa=V==null?void 0:V.菜单选项)==null?void 0:Fa.length)>0){const ze=await oa.menuToContentType(V==null?void 0:V.菜单选项);me=me==null?void 0:me.map(Xe=>((Xe==null?void 0:Xe.name)==="组信息选项"&&(Xe.contents=ze),Xe))}g.value=await oa.selectToBase(Y.cloneDeep(me)),k.value=await oa.selectToBase(Y.cloneDeep(me))}else{let me=Y.cloneDeep(k.value);if(me=me==null?void 0:me.map(Je=>(Je.value=V==null?void 0:V[Je.name],Je)),V!=null&&V.菜单选项&&((ja=V==null?void 0:V.菜单选项)==null?void 0:ja.length)>0){const Je=await oa.menuToContentType(V==null?void 0:V.菜单选项);me=me==null?void 0:me.map(ze=>((ze==null?void 0:ze.name)==="组信息选项"&&(ze.contents=Je),ze))}me=oa.formToOptionsContents(me),g.value=await oa.selectToBase(Y.cloneDeep(me))}},Ee=async V=>{await Te(V),k.value=g.value},Q=(V,$)=>{if(($==null?void 0:$.type)=="Select"&&(V==null?void 0:V.key)==="selectRelateType"){const X=$==null?void 0:$.optionUrl;return(X==null?void 0:X.selectRelateType)||$[V.key]}if(($==null?void 0:$.type)=="Select"&&(V==null?void 0:V.key)==="menuSelect"){const X=$==null?void 0:$.optionUrl;return(X==null?void 0:X.menuSelect)||$[V.key]}if(($==null?void 0:$.type)=="Select"&&(V==null?void 0:V.key)==="groupSelect"){const X=$==null?void 0:$.optionUrl;return(X==null?void 0:X.groupSelect)||$[V.key]}if(($==null?void 0:$.type)=="Select"&&(V==null?void 0:V.key)==="originalContent")return($==null?void 0:$.value)||$[V.key];if(($==null?void 0:$.type)=="Select"&&(V==null?void 0:V.key)==="multiple"){const X=$[V.key];return Ys(X)?X:V.default}return(V==null?void 0:V.label)==="类型"&&$[V.key]===""?"Input":(V==null?void 0:V.key)==="isFormColHidden"&&!$[V.key]?!1:$[V.key]},be=async V=>{var se,ue,va,ra,Le,Ce,Sa,da,Fa;y.value=!0;let $=[];const X=await((va=(ue=(se=oa.FormContent)==null?void 0:se.find(ja=>(ja==null?void 0:ja.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:ue.value)==null?void 0:va.value)?await((da=(Sa=(Ce=oa.FormContent)==null?void 0:Ce.find(ja=>(ja==null?void 0:ja.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:Sa.value)==null?void 0:da.value):(Le=(ra=oa.FormContent)==null?void 0:ra.find(ja=>(ja==null?void 0:ja.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:Le.value;if(X==null||X.forEach(ja=>{E.value++,$.push({label:ja==null?void 0:ja.label,name:(ja==null?void 0:ja.name)||(ja==null?void 0:ja.label),type:ja.type,value:(ja==null?void 0:ja.label)==="属性名"?(V==null?void 0:V.prop)||(V==null?void 0:V.name)||(V==null?void 0:V.label):Q(ja,V),id:E.value,contents:ja==null?void 0:ja.options})}),V!=null&&V.menuSelect&&((Fa=V==null?void 0:V.menuSelect)==null?void 0:Fa.length)>0){const ja=await oa.menuToContentType(V==null?void 0:V.menuSelect);$=$==null?void 0:$.map(me=>((me==null?void 0:me.name)==="组信息选项"&&(me.contents=ja),me))}D.value=V==null?void 0:V.id,k.value=await oa.selectToBase(oa.formToOptionsContents($)),g.value=await oa.selectToBase(oa.formToOptionsContents($))},Z=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,X;O.value=($=Y.cloneDeep(O.value))==null?void 0:$.filter(se=>(se==null?void 0:se.id)!==(V==null?void 0:V.id)),o("change",(X=Y.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="tableToForm"&&(se.contents=O.value),se))),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},de=()=>{y.value=!1,k.value=[],D.value=""},je=async()=>{var se,ue,va,ra,Le,Ce,Sa,da,Fa,ja;k.value=g.value;let V={};D.value!==""?V.id=D.value:(E.value++,V.id="id"+E.value);let $=await((va=(ue=(se=oa.FormContent)==null?void 0:se.find(me=>{var Je,ze;return(me==null?void 0:me.key)===(((ze=(Je=k.value)==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.label)==="类型"))==null?void 0:ze.value)??"label")}))==null?void 0:ue.value)==null?void 0:va.value)??((Le=(ra=oa.FormContent)==null?void 0:ra.find(me=>{var Je,ze;return(me==null?void 0:me.key)===(((ze=(Je=k.value)==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.label)==="类型"))==null?void 0:ze.value)??"label")}))==null?void 0:Le.value);if((Ce=k.value)==null||Ce.forEach(me=>{const Je=$==null?void 0:$.find(ze=>(ze==null?void 0:ze.label)===(me==null?void 0:me.label));Je&&(V[Je.key]=me.value)}),V.name=V.label,(Sa=O.value)!=null&&Sa.find(me=>me.id===V.id))O.value=(da=O.value)==null?void 0:da.map(me=>(me.id===V.id&&(me=V),me));else{let me=Y.cloneDeep(O.value);O.value||(O.value=[]),me.push(V),O.value=me}O.value=O.value.map(({id:me,...Je})=>Je),y.value=!1,D.value="";let X=Y.cloneDeep(r.originalItemContents);(Fa=Y.cloneDeep(r.originalItemContents))!=null&&Fa.find(me=>(me==null?void 0:me.key)==="tableToForm")?X=(ja=Y.cloneDeep(r.originalItemContents))==null?void 0:ja.map(me=>((me==null?void 0:me.key)==="tableToForm"&&(me.contents=O.value),me)):X.push({key:"tableToForm",contents:O.value}),o("change",X)},wa=V=>{ee.value=!0;let $=[];Rn==null||Rn.forEach(X=>{E.value++,$.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:V[X.key],id:E.value,contents:X==null?void 0:X.options})}),D.value=V==null?void 0:V.id,C.value=$,_.value=$};a.watch(()=>u.value,()=>{var $,X;let V=Y.cloneDeep(r.originalItemContents);($=Y.cloneDeep(r.originalItemContents))!=null&&$.find(se=>(se==null?void 0:se.key)==="page")?V=(X=Y.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="page"&&(se.contents=u.value),se)):V.push({key:"page",contents:u.value}),o("change",V)},{deep:!0});const ie=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,X;W.value=($=Y.cloneDeep(W.value))==null?void 0:$.filter(se=>(se==null?void 0:se.id)!==(V==null?void 0:V.id)),o("change",(X=Y.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="extraButton"&&(se.contents=W.value),se))),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},P=()=>{var X,se,ue,va,ra;C.value=_.value;let V={};if(D.value!==""?V.id=D.value:(E.value++,V.id="id"+E.value),(X=C.value)==null||X.forEach(Le=>{const Ce=Rn==null?void 0:Rn.find(Sa=>(Sa==null?void 0:Sa.label)===(Le==null?void 0:Le.label));Ce?V[Ce.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(V.children=Le.children)}),(se=W.value)!=null&&se.find(Le=>Le.id===V.id))W.value=(ue=W.value)==null?void 0:ue.map(Le=>(Le.id===V.id&&(Le=V),Le));else{let Le=Y.cloneDeep(W.value)??[];Le.push(V),W.value=Le}ee.value=!1,D.value="";let $=Y.cloneDeep(r.originalItemContents);(va=Y.cloneDeep(r.originalItemContents))!=null&&va.find(Le=>(Le==null?void 0:Le.key)==="extraButton")?$=(ra=Y.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="extraButton"&&(Le.contents=W.value),Le)):$.push({key:"extraButton",contents:W.value}),o("change",$)},j=V=>{let $=Y.cloneDeep(_.value);$=$==null?void 0:$.map(X=>(X.children||(X.value=V==null?void 0:V[X.name]),X)),_.value=$},ye=()=>{ee.value=!1,C.value=[],D.value=""},Se=V=>{v.value=!0;let $=[];$n==null||$n.forEach(X=>{E.value++,$.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:V[X.key],id:E.value,contents:X==null?void 0:X.options})}),D.value=V==null?void 0:V.id,I.value=$,A.value=$},ke=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,X;S.value=($=Y.cloneDeep(S.value))==null?void 0:$.filter(se=>(se==null?void 0:se.id)!==(V==null?void 0:V.id)),o("change",(X=Y.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="rowButton"&&(se.contents=S.value),se))),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Ze=()=>{c.value=!0;let V=[];lr==null||lr.forEach($=>{E.value++,V.push({label:$==null?void 0:$.label,name:$==null?void 0:$.label,type:$.type,value:"",id:E.value,contents:$==null?void 0:$.options})}),m.value=V,w.value=V},ya=()=>{v.value=!0;let V=[];$n==null||$n.forEach($=>{E.value++,V.push({label:$==null?void 0:$.label,name:$==null?void 0:$.label,type:$.type,value:"",id:E.value,contents:$==null?void 0:$.options})}),I.value=V,A.value=V},Ha=V=>{let $=Y.cloneDeep(A.value);$=$==null?void 0:$.map(X=>(X.children||(X.value=V==null?void 0:V[X.name]),X)),A.value=$},re=()=>{var X,se,ue,va,ra;I.value=A.value;let V={};if(D.value!==""?V.id=D.value:(E.value++,V.id="id"+E.value),(X=I.value)==null||X.forEach(Le=>{const Ce=$n==null?void 0:$n.find(Sa=>(Sa==null?void 0:Sa.label)===(Le==null?void 0:Le.label));Ce?V[Ce.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(V.children=Le.children)}),(se=S.value)!=null&&se.find(Le=>Le.id===V.id))S.value=(ue=S.value)==null?void 0:ue.map(Le=>(Le.id===V.id&&(Le=V),Le));else{let Le=Y.cloneDeep(S.value);Le.push(V),S.value=Le}v.value=!1,D.value="";let $=Y.cloneDeep(r.originalItemContents);(va=Y.cloneDeep(r.originalItemContents))!=null&&va.find(Le=>(Le==null?void 0:Le.key)==="rowButton")?$=(ra=Y.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="rowButton"&&(Le.contents=S.value),Le)):$.push({key:"rowButton",contents:S.value}),o("change",$)},la=()=>{v.value=!1,D.value="",A.value=[],I.value=[]},Ve=V=>{c.value=!0;let $=[];lr==null||lr.forEach(X=>{E.value++,$.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:"",id:E.value,contents:X==null?void 0:X.options})}),m.value=$,L.value=V==null?void 0:V.id,w.value=$},ba=V=>{var $;p.value=Ec(Y.cloneDeep(p.value),V==null?void 0:V.id),o("change",($=Y.cloneDeep(r.originalItemContents))==null?void 0:$.map(X=>{var se;return(X==null?void 0:X.key)==="header"&&(X.contents=(se=p.value)!=null&&se.some(ue=>ue==null?void 0:ue.children)?[p.value]:p.value),X}))},Fe=V=>{var X,se,ue;V.type==="fix"?V.id!==""?p.value=Dc(p.value,V):p.value=Sc(p.value,V==null?void 0:V.contents):p.value=Bc(p.value,V),p.value=(X=p.value)!=null&&X.some(va=>va==null?void 0:va.children)?[p.value]:p.value,D.value="";let $=Y.cloneDeep(r.originalItemContents);(se=Y.cloneDeep(r.originalItemContents))!=null&&se.find(va=>(va==null?void 0:va.key)==="header")?$=(ue=Y.cloneDeep(r.originalItemContents))==null?void 0:ue.map(va=>((va==null?void 0:va.key)==="header"&&(va.contents=p.value),va)):$.push({key:"header",contents:p.value}),o("change",$)},Ie=V=>{var X;c.value=!0;let $=[];lr==null||lr.forEach(se=>{E.value++,$.push({label:se==null?void 0:se.label,name:se==null?void 0:se.label,type:se.type,value:V[se.key],id:E.value,contents:se==null?void 0:se.options})}),V!=null&&V.children&&((X=V==null?void 0:V.children)==null?void 0:X.length)>0&&$.push({children:V==null?void 0:V.children,isFormColHidden:!0}),D.value=V==null?void 0:V.id,L.value="",m.value=$,w.value=$},$e=V=>{let $=Y.cloneDeep(w.value);$=$==null?void 0:$.map(X=>(X.children||(X.value=V==null?void 0:V[X.name]),X)),w.value=$},Qe=()=>{c.value=!1,D.value="",L.value="",w.value=[]},Xa=()=>{var X,se,ue,va,ra,Le;m.value=w.value;let V={};if(D.value!==""?V.id=D.value:(E.value++,V.id="id"+E.value),(X=m.value)==null||X.forEach(Ce=>{const Sa=lr==null?void 0:lr.find(da=>(da==null?void 0:da.label)===(Ce==null?void 0:Ce.label));Sa?V[Sa.key]=Ce.value:Ce!=null&&Ce.children&&Ce.children.length>0&&(V.children=Ce.children)}),(se=p.value)!=null&&se.find(Ce=>Ce.id===V.id))p.value=(ue=p.value)==null?void 0:ue.map(Ce=>(Ce.id===V.id&&(Ce=V),Ce));else{let Ce=Y.cloneDeep(p.value)??[];L.value===""?Ce.push(V):Ce=Ce==null?void 0:Ce.map(Sa=>(Sa.id===L.value&&(Sa.children||(Sa.children=[]),Sa.children.push(V)),Sa)),p.value=Ce}p.value=(va=p.value)!=null&&va.some(Ce=>Ce==null?void 0:Ce.children)?[p.value]:p.value,c.value=!1,D.value="",L.value="";let $=Y.cloneDeep(r.originalItemContents);(ra=Y.cloneDeep(r.originalItemContents))!=null&&ra.find(Ce=>(Ce==null?void 0:Ce.key)==="header")?$=(Le=Y.cloneDeep(r.originalItemContents))==null?void 0:Le.map(Ce=>((Ce==null?void 0:Ce.key)==="header"&&(Ce.contents=p.value),Ce)):$.push({key:"header",contents:p.value}),o("change",$)},Wa=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,X;p.value=($=Y.cloneDeep(p.value))==null?void 0:$.filter(se=>(se==null?void 0:se.id)!==(V==null?void 0:V.id)),o("change",(X=Y.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>{var ue;return(se==null?void 0:se.key)==="header"&&(se.contents=(ue=p.value)!=null&&ue.some(va=>va==null?void 0:va.children)?[p.value]:p.value),se})),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>r.originalItemContents,()=>{var V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(s.value=Y.cloneDeep(r.originalItemContents),p.value=($=(V=s.value)==null?void 0:V.find(Ae=>(Ae==null?void 0:Ae.key)==="header"))==null?void 0:$.contents,S.value=(se=(X=s.value)==null?void 0:X.find(Ae=>(Ae==null?void 0:Ae.key)==="rowButton"))==null?void 0:se.contents,W.value=(va=(ue=s.value)==null?void 0:ue.find(Ae=>(Ae==null?void 0:Ae.key)==="extraButton"))==null?void 0:va.contents,u.value=(Le=(ra=s.value)==null?void 0:ra.find(Ae=>(Ae==null?void 0:Ae.key)==="page"))!=null&&Le.contents?!!((Sa=(Ce=s.value)==null?void 0:Ce.find(Ae=>(Ae==null?void 0:Ae.key)==="page"))!=null&&Sa.contents):!1,O.value=(Fa=(da=s.value)==null?void 0:da.find(Ae=>(Ae==null?void 0:Ae.key)==="tableToForm"))==null?void 0:Fa.contents,p.value=(ja=p.value)==null?void 0:ja.map((Ae,za)=>(Array.isArray(Ae)?Ae=A3(Ae):Ae={label:(Ae==null?void 0:Ae.label)??"",prop:(Ae==null?void 0:Ae.label)==="操作"?"operate":Ae==null?void 0:Ae.prop,width:Ae!=null&&Ae.width?parseInt(Ae.width):"",fixed:(Ae==null?void 0:Ae.fixed)??void 0,sortable:(Ae==null?void 0:Ae.sortable)??!1,align:(Ae==null?void 0:Ae.align)??"left",showOverflowTooltip:(Ae==null?void 0:Ae.showOverflowTooltip)??!0,isNotDrag:(Ae==null?void 0:Ae.isNotDrag)??!1,isEditCol:(Ae==null?void 0:Ae.isEditCol)??!1,isOperate:(Ae==null?void 0:Ae.isOperate)??!1,id:(Ae==null?void 0:Ae.id)??za,formMenuSelect:(Ae==null?void 0:Ae.formMenuSelect)??void 0,groupSelect:(Ae==null?void 0:Ae.groupSelect)??void 0},Ae)),p.value=(me=p.value)!=null&&me.every(Ae=>Array.isArray(Ae))?(Je=p.value)==null?void 0:Je[0]:p.value,S.value=(ze=S.value)==null?void 0:ze.map((Ae,za)=>Ae={label:(Ae==null?void 0:Ae.label)??"",type:(Ae==null?void 0:Ae.type)??"",textColor:(Ae==null?void 0:Ae.textColor)??"#000000",id:(Ae==null?void 0:Ae.id)??za}),W.value=(Xe=W.value)==null?void 0:Xe.map((Ae,za)=>Ae={label:(Ae==null?void 0:Ae.label)??"",type:(Ae==null?void 0:Ae.type)??"",background:(Ae==null?void 0:Ae.background)??"var(--ssComponent-primary-color)",id:(Ae==null?void 0:Ae.id)??za}),O.value)O.value=(ua=O.value)==null?void 0:ua.map(Ae=>{E.value++;let za=Ae;return za.id=E.value,za});else{let Ae=[];const za=(pa=oa.getColumnChild(Y.cloneDeep(p.value)))==null?void 0:pa.filter(fa=>(fa==null?void 0:fa.prop)!=="operate");za==null||za.forEach(fa=>{var Ua;E.value++,Ae.push({label:fa==null?void 0:fa.label,name:(fa==null?void 0:fa.prop)||(fa==null?void 0:fa.label),type:fa!=null&&fa.groupSelect?"Select":"Input",value:"",id:E.value,contents:fa==null?void 0:fa.options,menuSelect:fa==null?void 0:fa.formMenuSelect,groupSelect:(Ua=fa==null?void 0:fa.groupSelect)==null?void 0:Ua.split(":"),selectRelateType:"关联绑定列"})}),O.value=Ae}},{deep:!0,immediate:!0}),(V,$)=>{const X=a.resolveComponent("svg-icon"),se=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",Z3,[a.createElementVNode("div",Q3,[a.createElementVNode("div",e1,[$[2]||($[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(se,{class:"icon-content",onClick:Ze,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[$[1]||($[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",a1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",l1,[a.createElementVNode("div",r1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",n1,[a.createVNode(X,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ve(ue)},null,8,["onClick"]),a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ie(ue)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Wa(ue)},null,8,["onClick"])])]),ue!=null&&ue.children&&ue.children.length>0?(a.openBlock(),a.createElementBlock("div",o1,[a.createVNode(Nc,{tableChildContents:ue==null?void 0:ue.children,onDeleteChange:ba,onFixChange:Fe},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",i1,[$[4]||($[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(se,{class:"icon-content",id:"themeButton",onClick:ya},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[$[3]||($[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",s1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",c1,[a.createElementVNode("div",u1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",d1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>Se(ue)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>ke(ue)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",p1,[$[6]||($[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(se,{class:"icon-content",id:"themeButton",onClick:F},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[$[5]||($[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",f1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(W.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",h1,[a.createElementVNode("div",v1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",m1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>wa(ue)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>ie(ue)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",y1,[$[8]||($[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(se,{class:"icon-content",id:"themeButton",onClick:q},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[$[7]||($[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",g1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(O.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",b1,[a.createElementVNode("div",k1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",x1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>be(ue)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Z(ue)},null,8,["onClick"])])])]))),128))]),$[10]||($[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",w1,[a.createElementVNode("div",_1,[$[9]||($[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":$[0]||($[0]=ue=>u.value=ue)},null,8,["modelValue"])])])]),a.createVNode(wr.ssDialog,{visible:c.value,onBeforeDestroy:Qe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",C1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:$e},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",E1,[a.createVNode(se,{onClick:Qe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[11]||($[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(se,{class:"ok-button button",onClick:Xa,id:"themeButton"},{default:a.withCtx(()=>$[12]||($[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:v.value,onBeforeDestroy:la,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",S1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:Ha},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",D1,[a.createVNode(se,{onClick:la,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[13]||($[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(se,{class:"ok-button button",onClick:re,id:"themeButton"},{default:a.withCtx(()=>$[14]||($[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:ee.value,onBeforeDestroy:ye,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",B1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:j},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",N1,[a.createVNode(se,{onClick:ye,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[15]||($[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(se,{class:"ok-button button",onClick:P,id:"themeButton"},{default:a.withCtx(()=>$[16]||($[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:y.value,onBeforeDestroy:de,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",T1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:Te,onChangeVisible:te,onBlurChange:Ee},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",A1,[a.createVNode(se,{onClick:de,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[17]||($[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(se,{class:"ok-button button",onClick:je,id:"themeButton"},{default:a.withCtx(()=>$[18]||($[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},M1=Xl._export_sfc(z1,[["__scopeId","data-v-7a6b87b5"]]),I1=ol.useModelComp(ol.pinia),{pageMapState:O1}=ol.storeToRefs(I1),L1=Y.useMenuState(ol.pinia),{activeMenuPath:R1}=ol.storeToRefs(L1),$1=a.ref(24),V1=a.ref(6),P1=a.ref(70),F1=a.ref(.18),j1=a.ref(45),H1=(l,n,r,o)=>{var s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C;return{x:((c=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:c.x)||n%2*12,y:((p=(y=l==null?void 0:l.value)==null?void 0:y.tableData)==null?void 0:p.y)||n,w:((m=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:m.w)||$1.value,h:((w=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:w.h)||r,minW:((L=(D=l==null?void 0:l.value)==null?void 0:D.tableData)==null?void 0:L.minW)||V1.value,minH:((W=(S=l==null?void 0:l.value)==null?void 0:S.tableData)==null?void 0:W.minH)||F1.value,maxH:((A=(I=l==null?void 0:l.value)==null?void 0:I.tableData)==null?void 0:A.maxH)||j1.value,i:((C=(ee=l==null?void 0:l.value)==null?void 0:ee.tableData)==null?void 0:C.i)||n,id:(l==null?void 0:l.id)||n+"",component:o}},U1=(l,n)=>{var o,s,c,y,p,v,m,u;let r=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){if(((y=(c=(s=l==null?void 0:l.compData)==null?void 0:s.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:c.contents)==null?void 0:y.length)===0)return 2}else((p=l==null?void 0:l.comp)==null?void 0:p.toUpperCase())==="FORM"&&(r=((u=(m=(v=l==null?void 0:l.compData)==null?void 0:v.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:m.contents)==null?void 0:u.length)/5);return r*2},Tc=(l,n,r)=>{var y,p;const o=(p=(y=O1.value)==null?void 0:y[R1.value])==null?void 0:p.filter(v=>{var m;return((m=v==null?void 0:v.key)==null?void 0:m.type)==="gridLayout"}),s=o==null?void 0:o.find(v=>{var m,u,w;return((w=(u=(m=v==null?void 0:v.value)==null?void 0:m.tableData)==null?void 0:u.component)==null?void 0:w.id)===l.id}),c=U1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,m)=>Tc(v,m))),{...H1(s,n,c,l)}},q1=(l,n)=>{if((l==null?void 0:l.length)===0)return[];const r=Y.cloneDeep(l);return Array.isArray(l)?r==null?void 0:r.map((o,s)=>Tc(o,s)):[]},W1=l=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),K1=(l,n)=>l==null?void 0:l.map(r=>{for(const o in n)if(o===(r==null?void 0:r.prop))return{...r,value:n[o]};return r}),G1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]);a.watch(()=>r.compType,p=>{var u;const v=W1(r==null?void 0:r.optionItems),m=p?(u=v[p==null?void 0:p.toUpperCase()])==null?void 0:u[r==null?void 0:r.target]:[];s.value=m==null?void 0:m.map(w=>{for(const[D,L]of Object.entries((r==null?void 0:r.comp)||{}))if((w==null?void 0:w.prop)===D)return{...w,value:L};return w})},{immediate:!0});const c=p=>pl.getComponent(p),y=p=>{var v,m;(p==null?void 0:p.prop)==="layout"&&(p==null?void 0:p.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(u=>{var w;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(w=u==null?void 0:u.options)==null?void 0:w.map(D=>({...D,disabled:!0}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!0}:u}):s.value=(m=s.value)==null?void 0:m.map(u=>{var w;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(w=u==null?void 0:u.options)==null?void 0:w.map(D=>({...D,disabled:!1}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!1}:u}),o("change",{target:r==null?void 0:r.target,styleConfigs:s.value,prop:p==null?void 0:p.prop})};return(p,v)=>{const m=a.resolveComponent("el-col"),u=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,w=>(a.openBlock(),a.createBlock(u,{class:"style-row",key:w==null?void 0:w.prop},{default:a.withCtx(()=>[a.createVNode(m,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(w==null?void 0:w.label)+":",1)]),_:2},1024),a.createVNode(m,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(w.type)),{modelValue:w.value,"onUpdate:modelValue":D=>w.value=D,content:w==null?void 0:w.options,optionUrl:w==null?void 0:w.optionUrl,disabled:w==null?void 0:w.disabled,activeText:w==null?void 0:w.activeText,inactiveText:w==null?void 0:w.inactiveText,onChange:D=>y(w)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),Y1=Xl._export_sfc(G1,[["__scopeId","data-v-6c233914"]]),J1=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:n}){const r=l,o=n,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],c=a.ref([]),y=A=>A==null?void 0:A.reduce((ee,C)=>(ee[C==null?void 0:C.prop]=C==null?void 0:C.rule,ee),{}),p=a.computed(()=>({formRules:y(c.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),v=a.ref([]),m=a.ref(""),u=(A,ee,C)=>{var k;let _=[];(r==null?void 0:r.activeTabName)==="任务配置"?(_=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:A},{label:"按钮名称",value:"按钮名称",children:ee}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(_=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(k=r==null?void 0:r.relatedData)==null?void 0:k.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let E;return C&&(C==null?void 0:C.length)>0?E=[..._,...w(A,ee,C)]:E=_,E},w=(A,ee,C)=>{const _=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return C?_==null?void 0:_.filter(E=>C==null?void 0:C.includes(E==null?void 0:E.prop)):_},D=(A,ee)=>{var g,O,F,q,te,Te,Ee,Q,be;const C=((te=(q=(F=(O=(g=r==null?void 0:r.comp)==null?void 0:g.compData)==null?void 0:O.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:F.contents)==null?void 0:q.filter(Z=>(Z==null?void 0:Z.label)!=="操作"))==null?void 0:te.map(Z=>({value:Z==null?void 0:Z.prop,label:Z.label})))||[],_=/button/i,E=((be=(Q=(Ee=(Te=r==null?void 0:r.comp)==null?void 0:Te.compData)==null?void 0:Ee.filter(Z=>_.test(Z==null?void 0:Z.key)))==null?void 0:Q.flatMap(Z=>Z==null?void 0:Z.contents))==null?void 0:be.map(Z=>({value:Z==null?void 0:Z.label,label:Z.label})))||[],k=u(C,E,A);v.value=ee?K1(k,ee):k,A&&(A==null?void 0:A.length)>0&&c.value.push(...A==null?void 0:A.map(Z=>({prop:Z,rule:s})))};a.onMounted(()=>{D(null,r==null?void 0:r.extendItem)});const L=A=>{const ee=A==null?void 0:A[m.value];if(m.value==="执行任务"){if(!(ee!=null&&ee.join("/")))return;const C=ee==null?void 0:ee.join("/");D(C==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:C==="进度设置/进度条"?["进度关键词"]:null,A)}},S=A=>{o("change",{target:r==null?void 0:r.target,extendConfigs:A})},W=(A,ee)=>{m.value=ee==null?void 0:ee.changeProp,L(A)},I=A=>{o("onButtonClick",A)};return(A,ee)=>(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:p.value.formRules,buttonValue:p.value.buttonValue,onChange:S,onBlurChange:W,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue"]))}}),X1=Xl._export_sfc(J1,[["__scopeId","data-v-7c660c1f"]]),Z1={};function Q1(l,n){return null}const e2=Xl._export_sfc(Z1,[["render",Q1]]),a2={class:"form-operate-content"},l2={class:"form-operate-item"},r2={class:"operate-title"},n2={class:"operate-content"},o2={class:"fix-content"},i2={class:"fix-button"},t2={class:"operate-title"},s2={class:"operate-content"},c2={class:"fix-content"},u2={class:"fix-button"},d2={style:{display:"flex","justify-content":"space-between"}},p2={class:"form-content"},f2={class:"dialog-footer"},h2={class:"form-content"},v2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref([]),y=a.ref([]),p=a.ref(!1),v=a.ref([]),m=a.ref([]),u=a.ref(""),w=a.ref(!1),D=a.ref(0),L=a.ref([]),S=a.ref([]),W=(Q,be)=>{if((be==null?void 0:be.type)=="Select"&&(Q==null?void 0:Q.key)==="selectRelateType"){const Z=be==null?void 0:be.optionUrl;return(Z==null?void 0:Z.selectRelateType)||be[Q.key]}if((be==null?void 0:be.type)=="Select"&&(Q==null?void 0:Q.key)==="menuSelect"){const Z=be==null?void 0:be.optionUrl;return(Z==null?void 0:Z.menuSelect)||be[Q.key]}if((be==null?void 0:be.type)=="Select"&&(Q==null?void 0:Q.key)==="groupSelect"){const Z=be==null?void 0:be.optionUrl;return(Z==null?void 0:Z.groupSelect)||be[Q.key]}if((be==null?void 0:be.type)=="Select"&&(Q==null?void 0:Q.key)==="originalContent")return(be==null?void 0:be.value)||be[Q.key];if((be==null?void 0:be.type)=="Select"&&(Q==null?void 0:Q.key)==="multiple"){const Z=be[Q.key];return Ys(Z)?Z:Q.default}return(Q==null?void 0:Q.label)==="类型"&&be[Q.key]===""?"Input":(Q==null?void 0:Q.key)==="isFormColHidden"&&!be[Q.key]?!1:be[Q.key]},I=async Q=>{var de,je,wa,ie,P,j;s.value=!0;let be=[];const Z=await((wa=(je=(de=oa.FormContent)==null?void 0:de.find(ye=>(ye==null?void 0:ye.key)===((Q==null?void 0:Q.type)===""?"Input":Q==null?void 0:Q.type)))==null?void 0:je.value)==null?void 0:wa.value)??((P=(ie=oa.FormContent)==null?void 0:ie.find(ye=>(ye==null?void 0:ye.key)===((Q==null?void 0:Q.type)===""?"Input":Q==null?void 0:Q.type)))==null?void 0:P.value);if(Z==null||Z.forEach(ye=>{D.value++,be.push({label:ye==null?void 0:ye.label,name:ye==null?void 0:ye.label,type:ye.type,prop:ye==null?void 0:ye.prop,value:W(ye,Q),id:D.value,contents:ye==null?void 0:ye.options,width:(Q==null?void 0:Q.width)??1})}),Q!=null&&Q.menuSelect&&((j=Q==null?void 0:Q.menuSelect)==null?void 0:j.length)>0){const ye=await oa.menuToContentType(Q==null?void 0:Q.menuSelect);be=be==null?void 0:be.map(Se=>((Se==null?void 0:Se.name)==="组信息选项"&&(Se.contents=ye),Se))}u.value=Q==null?void 0:Q.id,c.value=await oa.selectToBase(oa.formToOptionsContents(be)),y.value=await oa.selectToBase(oa.formToOptionsContents(be))},A=Q=>{var Z;p.value=!0;let be=[];(Z=oa.FormButton)==null||Z.forEach(de=>{D.value++,be.push({label:de==null?void 0:de.label,name:de==null?void 0:de.label,type:de.type,value:(de==null?void 0:de.label)==="类型"&&Q[de.key]===""?"normal":Q[de.key],id:D.value,contents:de==null?void 0:de.options})}),L.value=be,S.value=be,u.value=Q==null?void 0:Q.id};a.watch(()=>w.value,()=>{var be,Z;let Q=Y.cloneDeep(r.originalItemContents);(be=Y.cloneDeep(r.originalItemContents))!=null&&be.find(de=>(de==null?void 0:de.key)==="enableWrap")?Q=(Z=Y.cloneDeep(r.originalItemContents))==null?void 0:Z.map(de=>((de==null?void 0:de.key)==="enableWrap"&&(de.contents=!w.value),de)):Q.push({key:"enableWrap",contents:!w.value}),o("change",Q)},{deep:!0});const ee=()=>{var Z,de,je,wa,ie;L.value=S.value;let Q={};if(u.value!==""?Q.id=u.value:(D.value++,Q.id="id"+D.value),(Z=L.value)==null||Z.forEach(P=>{var ye;const j=(ye=oa.FormButton)==null?void 0:ye.find(Se=>(Se==null?void 0:Se.label)===(P==null?void 0:P.label));j&&(Q[j.key]=P.value)}),(de=v.value)!=null&&de.find(P=>P.id===Q.id))v.value=(je=v.value)==null?void 0:je.map(P=>(P.id===Q.id&&(P=Q),P));else{let P=Y.cloneDeep(v.value);v.value||(v.value=[]),P.push(Q),v.value=P}p.value=!1,u.value="";let be=Y.cloneDeep(r.originalItemContents);(wa=Y.cloneDeep(r.originalItemContents))!=null&&wa.find(P=>(P==null?void 0:P.key)==="formButton")?be=(ie=Y.cloneDeep(r.originalItemContents))==null?void 0:ie.map(P=>((P==null?void 0:P.key)==="formButton"&&(P.contents=v.value),P)):be.push({key:"formButton",contents:v.value}),o("change",be)},C=Q=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var be,Z;m.value=(be=Y.cloneDeep(m.value))==null?void 0:be.filter(de=>(de==null?void 0:de.id)!==(Q==null?void 0:Q.id)),o("change",(Z=Y.cloneDeep(r.originalItemContents))==null?void 0:Z.map(de=>((de==null?void 0:de.key)==="formContent"&&(de.contents=m.value),de))),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=Q=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var be,Z;v.value=(be=Y.cloneDeep(v.value))==null?void 0:be.filter(de=>(de==null?void 0:de.id)!==(Q==null?void 0:Q.id)),o("change",(Z=Y.cloneDeep(r.originalItemContents))==null?void 0:Z.map(de=>((de==null?void 0:de.key)==="formButton"&&(de.contents=v.value),de))),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},E=()=>{var be;p.value=!0;let Q=[];(be=oa.FormButton)==null||be.forEach(Z=>{D.value++,Q.push({label:Z==null?void 0:Z.label,name:Z==null?void 0:Z.label,type:Z.type,value:(Z==null?void 0:Z.label)==="类型"?"normal":"",id:D.value,contents:Z==null?void 0:Z.options})}),L.value=Q,S.value=Q},k=()=>{var be,Z,de;s.value=!0;let Q=[];(de=(Z=(be=oa.FormContent)==null?void 0:be.find(je=>(je==null?void 0:je.key)==="Input"))==null?void 0:Z.value)==null||de.forEach(je=>{D.value++,Q.push({label:je==null?void 0:je.label,name:je==null?void 0:je.label,type:je.type,value:(je==null?void 0:je.label)==="类型"?"Input":"",id:D.value,contents:je==null?void 0:je.options})}),c.value=Q,y.value=Q},g=Q=>{let be=Y.cloneDeep(S.value);be=be==null?void 0:be.map(Z=>(Z.value=Q==null?void 0:Q[Z.name],Z)),S.value=be},O=Q=>{const be=Q.find(je=>(je==null?void 0:je.name)==="类型");if((be==null?void 0:be.value)!="Select")return;const Z=Q.find(je=>(je==null?void 0:je.name)==="多选"),de=Q.find(je=>(je==null?void 0:je.name)==="初始值");Z!=null&&Z.value&&Ei.isString(de.value)&&(de.value=[de.value]),!(Z!=null&&Z.value)&&!Ei.isString(de.value)&&(de.value="")},F=async Q=>{var be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze;if((Q==null?void 0:Q.类型)!==((Z=(be=y.value)==null?void 0:be.find(ya=>(ya==null?void 0:ya.label)==="类型"))==null?void 0:Z.value)){let ya=[];const Ha=await((wa=(je=(de=oa.FormContent)==null?void 0:de.find(re=>(re==null?void 0:re.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:je.value)==null?void 0:wa.value)?await((Se=(ye=(j=oa.FormContent)==null?void 0:j.find(re=>(re==null?void 0:re.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:ye.value)==null?void 0:Se.value):(P=(ie=oa.FormContent)==null?void 0:ie.find(re=>(re==null?void 0:re.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:P.value;if(Ha==null||Ha.forEach(re=>{var Ve,ba;D.value++;const la=Nu(re==null?void 0:re.default)?(Q==null?void 0:Q[re.label])??re.value??"":re==null?void 0:re.default;ya.push({label:re==null?void 0:re.label,name:re==null?void 0:re.label,type:re.type,value:la,prop:re==null?void 0:re.prop,id:D.value,contents:re==null?void 0:re.options,width:((ba=(Ve=y.value)==null?void 0:Ve[0])==null?void 0:ba.width)??1})}),Q!=null&&Q.菜单选项&&((ke=Q==null?void 0:Q.菜单选项)==null?void 0:ke.length)>0){const re=await oa.menuToContentType(Q==null?void 0:Q.菜单选项);ya=ya==null?void 0:ya.map(la=>((la==null?void 0:la.name)==="组信息选项"&&(la.contents=re),la))}O(ya),y.value=await oa.selectToBase(Y.cloneDeep(ya)),c.value=await oa.selectToBase(Y.cloneDeep(ya))}else{let ya=Y.cloneDeep(y.value);if(ya=ya==null?void 0:ya.map(Ha=>(Ha.value=Q==null?void 0:Q[Ha.name],Ha)),Q!=null&&Q.菜单选项&&((Ze=Q==null?void 0:Q.菜单选项)==null?void 0:Ze.length)>0){const Ha=await oa.menuToContentType(Q==null?void 0:Q.菜单选项);ya=ya==null?void 0:ya.map(re=>((re==null?void 0:re.name)==="组信息选项"&&(re.contents=Ha),re))}ya=oa.formToOptionsContents(ya),O(ya),y.value=await oa.selectToBase(Y.cloneDeep(ya))}},q=Q=>{Q||(c.value=y.value)},te=async Q=>{await F(Q),c.value=y.value},Te=$a.debounce(async()=>{var de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha;c.value=y.value;let Q={};Q.width=((je=(de=c.value)==null?void 0:de[0])==null?void 0:je.width)??1,u.value!==""?Q.id=u.value:(D.value++,Q.id="id"+D.value);let be=await((P=(ie=(wa=oa.FormContent)==null?void 0:wa.find(re=>{var la,Ve;return(re==null?void 0:re.key)===(((Ve=(la=c.value)==null?void 0:la.find(ba=>(ba==null?void 0:ba.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:ie.value)==null?void 0:P.value)??((ye=(j=oa.FormContent)==null?void 0:j.find(re=>{var la,Ve;return(re==null?void 0:re.key)===(((Ve=(la=c.value)==null?void 0:la.find(ba=>(ba==null?void 0:ba.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:ye.value);if((Se=c.value)==null||Se.forEach(re=>{const la=be==null?void 0:be.find(Ve=>(Ve==null?void 0:Ve.label)===(re==null?void 0:re.label));la&&(Q[la.key]=re.value)}),Q.width=Q.width?Q.width:1,Q.key=Q==null?void 0:Q.label,Q.isFormColHidden=Q==null?void 0:Q.isFormColHidden,(ke=m.value)!=null&&ke.find(re=>re.id===Q.id))m.value=(Ze=m.value)==null?void 0:Ze.map(re=>(re.id===Q.id&&(re=Q),re));else{let re=Y.cloneDeep(m.value);re.push(Q),m.value=re}m.value=m.value.map(({id:re,...la})=>la),s.value=!1,u.value="";let Z=Y.cloneDeep(r.originalItemContents);(ya=Y.cloneDeep(r.originalItemContents))!=null&&ya.find(re=>(re==null?void 0:re.key)==="formContent")?Z=(Ha=Y.cloneDeep(r.originalItemContents))==null?void 0:Ha.map(re=>((re==null?void 0:re.key)==="formContent"&&(re.contents=m.value),re)):Z.push({key:"formContent",contents:m.value}),o("change",Z)},300),Ee=()=>{s.value=!1,p.value=!1,u.value="",y.value=[],S.value=[]};return a.watch(()=>r.originalItemContents,()=>{var be,Z,de,je,wa,ie;if(!r.originalItemContents||r.originalItemContents.length===0)return;const Q=Y.cloneDeep(r.originalItemContents);m.value=((be=Q==null?void 0:Q.find(P=>(P==null?void 0:P.key)==="formContent"))==null?void 0:be.contents)??[],v.value=((Z=Q==null?void 0:Q.find(P=>(P==null?void 0:P.key)==="formButton"))==null?void 0:Z.contents)??[],w.value=(de=Q==null?void 0:Q.find(P=>(P==null?void 0:P.key)==="enableWrap"))!=null&&de.contents?!((je=Q==null?void 0:Q.find(P=>(P==null?void 0:P.key)==="enableWrap"))!=null&&je.contents):!0,m.value=(wa=Y.cloneDeep(m.value))==null?void 0:wa.map((P,j)=>{var Se;let ye=P;return ye.id=(P==null?void 0:P.id)??j,P!=null&&P.label||(P.label=(P==null?void 0:P.key)??(P==null?void 0:P.label)??""),P!=null&&P.type||(P.type=(P==null?void 0:P.type)??""),P.contents=((Se=P==null?void 0:P.options)==null?void 0:Se.length)===0?(P==null?void 0:P.contents)??"":P==null?void 0:P.options,ye}),m.value=oa.formToOptionsContents(m.value),v.value=(ie=v.value)==null?void 0:ie.map((P,j)=>P={label:(P==null?void 0:P.label)??"",type:(P==null?void 0:P.type)??"",background:(P==null?void 0:P.background)??"var(--ssComponent-primary-color)",id:j})},{deep:!0,immediate:!0}),(Q,be)=>{const Z=a.resolveComponent("svg-icon"),de=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",a2,[a.createElementVNode("div",l2,[a.createElementVNode("div",r2,[be[2]||(be[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(de,{class:"icon-content",id:"themeButton",onClick:k},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[be[1]||(be[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",n2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(je,wa)=>(a.openBlock(),a.createElementBlock("div",{key:wa},[a.createElementVNode("div",o2,[a.createElementVNode("div",null,a.toDisplayString(je.label),1),a.createElementVNode("div",i2,[a.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ie=>I(je)},null,8,["onClick"]),a.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ie=>C(je)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",t2,[be[4]||(be[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(de,{class:"icon-content",id:"themeButton",onClick:E},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[be[3]||(be[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",s2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(je,wa)=>(a.openBlock(),a.createElementBlock("div",{key:wa},[a.createElementVNode("div",c2,[a.createElementVNode("div",null,a.toDisplayString(je.label),1),a.createElementVNode("div",u2,[a.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ie=>A(je)},null,8,["onClick"]),a.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ie=>_(je)},null,8,["onClick"])])])]))),128))]),be[6]||(be[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",d2,[be[5]||(be[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:w.value,"onUpdate:modelValue":be[0]||(be[0]=je=>w.value=je)},null,8,["modelValue"])])]),a.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:Ee,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",p2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:F,onChangeVisible:q,onBlurChange:te},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",f2,[a.createVNode(de,{onClick:Ee,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>be[7]||(be[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(de,{class:"ok-button button",onClick:a.unref(Te),id:"themeButton"},{default:a.withCtx(()=>be[8]||(be[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:p.value,onBeforeDestroy:Ee,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",h2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:L.value,key:L.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:Ee,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:ee},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},bs=Xl._export_sfc(v2,[["__scopeId","data-v-20850524"]]),m2={class:"step-module content"},y2={class:"module-data"},g2={class:"step-module layout"},b2={class:"form-content"},k2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),c=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),m=a.ref({}),u=a.ref([]),w=I=>{var A;m.value=I,o("change",(A=S())==null?void 0:A.compData)},D=(I,A)=>{var ee,C;switch(I){case"create":(ee=c.value)==null||ee.forEach(_=>{_.value=""}),v.value="create",p.visible=!0;break;case"update":(C=c.value)==null||C.forEach(_=>{_.value=A[_==null?void 0:_.prop]}),v.value="update",p.visible=!0;break;case"delete":u.value.splice(A,1),v.value="delete";break}},L=I=>{var A,ee,C;if((I==null?void 0:I.buttonName)==="确认"){const _=Y.cloneDeep(I==null?void 0:I.content);switch(Object.keys(_).forEach(E=>{_[E]===""&&delete _[E]}),v.value){case"create":u.value.push({..._,index:((A=u.value)==null?void 0:A.length)+1});break;case"update":u.value=(ee=u.value)==null?void 0:ee.map(E=>E.index===(_==null?void 0:_.index)?{...E,title:_==null?void 0:_.title,description:_==null?void 0:_.description}:E);break}o("change",(C=S())==null?void 0:C.compData),p.visible=!1}else p.visible=!1},S=()=>({comp:"Step",compData:[{key:"stepList",contents:u.value},{key:"stepConfig",contents:m.value}]}),W=()=>{p.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,I=>{var A,ee;I&&(m.value=((A=I==null?void 0:I.find(C=>C.key==="stepConfig"))==null?void 0:A.contents)??{},u.value=((ee=I==null?void 0:I.find(C=>C.key==="stepList"))==null?void 0:ee.contents)??[])},{immediate:!0}),(I,A)=>{const ee=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",m2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=_=>D("create"))},{icon:a.withCtx(()=>[a.createVNode(ee,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",y2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(_,E)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:E},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.title),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>D("update",{..._,index:E+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>D("delete",E)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",g2,[A[5]||(A[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:s.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(wr.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:W,width:p.width},{default:a.withCtx(()=>[a.createElementVNode("div",b2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:L},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),x2=Xl._export_sfc(k2,[["__scopeId","data-v-7dbd17f2"]]),w2={class:"step-module content"},_2={class:"module-data"},C2={class:"step-module layout"},E2={class:"form-content"},S2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref("create"),c=a.ref({}),y=a.ref([]),p=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),m=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),u=a.reactive({visible:!1,width:"40%",title:"时间线"}),w=I=>{var A;c.value=I,o("change",(A=S())==null?void 0:A.compData)},D=(I,A)=>{var ee,C;switch(I){case"create":(ee=v.value)==null||ee.forEach(_=>{_.value=""}),s.value="create",u.visible=!0;break;case"update":(C=v.value)==null||C.forEach(_=>{_.value=A[_==null?void 0:_.prop]}),s.value="update",u.visible=!0;break;case"delete":y.value.splice(A,1),s.value="delete";break}},L=I=>{var A,ee,C,_;if((I==null?void 0:I.buttonName)==="确认"){const E=Y.cloneDeep(I==null?void 0:I.content);switch(Object.keys(E).forEach(k=>{E[k]===""&&delete E[k]}),s.value){case"create":(ee=y.value)==null||ee.push({...E,index:((A=y.value)==null?void 0:A.length)+1});break;case"update":y.value=(C=y.value)==null?void 0:C.map(k=>k.index===(E==null?void 0:E.index)?{...k,content:E==null?void 0:E.content,timestamp:E==null?void 0:E.timestamp}:k);break}o("change",(_=S())==null?void 0:_.compData),u.visible=!1}else u.visible=!1},S=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:y.value},{key:"timeLineConfig",contents:c.value}]}),W=()=>{u.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,I=>{var A,ee;I&&(c.value=((A=I==null?void 0:I.find(C=>C.key==="timeLineConfig"))==null?void 0:A.contents)??{},y.value=((ee=I==null?void 0:I.find(C=>C.key==="timeLineList"))==null?void 0:ee.contents)??[])},{immediate:!0}),(I,A)=>{const ee=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",w2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=_=>D("create"))},{icon:a.withCtx(()=>[a.createVNode(ee,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",_2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(_,E)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:E},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.content),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>D("update",{..._,index:E+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>D("delete",E)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",C2,[A[5]||(A[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:p.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(wr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:W,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",E2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:L},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),D2=Xl._export_sfc(S2,[["__scopeId","data-v-39ffc861"]]),B2={};function N2(l,n){return a.openBlock(),a.createElementBlock("div")}const T2=Xl._export_sfc(B2,[["render",N2]]),A2={class:"extra-content"},z2={key:0},M2={key:1},I2={class:"dialog-footer"},O2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:n}){const r=l,o=a.ref(0),s=a.ref(),c=a.ref(),y=n,p=a.ref(!1),v=a.ref({}),m=a.ref({}),u=a.ref();a.watch(()=>[r.itemData],()=>{var _;const C=Y.cloneDeep(r.itemData);s.value=(_=Y.cloneDeep(C))==null?void 0:_.map(E=>{var k;if(E.key==="extra"){let g=[];(k=E.value)==null||k.forEach(O=>{var F;g.push((F=Object.values(O))==null?void 0:F[0])}),E.value=g}return E})},{deep:!0,immediate:!0});const w=(C,_,E,k)=>{var O;let g={};((O=C==null?void 0:C[0])==null?void 0:O.contents)==="详情"&&(p.value=!0,g[_]=C,c.value=C==null?void 0:C.filter(F=>(F==null?void 0:F.key)!=="tableContentName"),v.value=g,m.value=E,u.value=k.id)},D=C=>{var F,q,te,Te;const _=(q=(F=Object.values(Y.cloneDeep(v.value)))==null?void 0:F[0])==null?void 0:q.filter(Ee=>(Ee==null?void 0:Ee.key)==="tableContentName"),E=(Te=(te=Object.values(Y.cloneDeep(v.value)))==null?void 0:te[0])==null?void 0:Te.filter(Ee=>(Ee==null?void 0:Ee.key)!=="tableContentName"),k=E==null?void 0:E.map((Ee,Q)=>{var be;return Q===C.index&&(Ee==null?void 0:Ee.comp)==="Table"&&(Ee.compData=(be=Ee.compData)==null?void 0:be.map(Z=>{var de,je;return(Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=(je=(de=C.content)==null?void 0:de.map(wa=>{let ie={};for(let P in wa)P!=="id"&&(ie[P]=wa[P]);return ie}))==null?void 0:je.map(wa=>Object.values(wa))),Z})),Ee});k.unshift(_==null?void 0:_[0]);let g=Y.cloneDeep(v.value),O={};for(let Ee in g)O[Ee]=k;v.value=O},L=()=>{p.value=!1,v.value={},m.value={},u.value=void 0,o.value++},S=C=>{var F,q,te,Te;const _=(q=(F=Object.values(Y.cloneDeep(v.value)))==null?void 0:F[0])==null?void 0:q.filter(Ee=>(Ee==null?void 0:Ee.key)==="tableContentName"),E=(Te=(te=Object.values(Y.cloneDeep(v.value)))==null?void 0:te[0])==null?void 0:Te.filter(Ee=>(Ee==null?void 0:Ee.key)!=="tableContentName"),k=E==null?void 0:E.map((Ee,Q)=>(Q===C.index&&(Ee.compData=C.contents),Ee));k.unshift(_==null?void 0:_[0]);let g=Y.cloneDeep(v.value),O={};for(let Ee in g)O[Ee]=k;v.value=O},W=()=>{var _,E;let C={};for(let k in m.value)k===((_=Object.keys(v.value))==null?void 0:_[0])?C[k]=(E=Object.values(v.value))==null?void 0:E[0]:C[k]=m.value[k];y("change",{buttonName:"编辑",index:u.value,singleContent:C},"methodData"),p.value=!1,v.value={},m.value={},u.value=void 0},I=()=>{p.value=!1,v.value={},m.value={},u.value=void 0},A=C=>{y("change",C,"methodData")},ee=C=>Ao(C);return(C,_)=>{const E=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",A2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(k,g)=>(a.openBlock(),a.createElementBlock("div",{key:o.value},[(k==null?void 0:k.key)==="extra"?(a.openBlock(),a.createElementBlock("div",z2)):(a.openBlock(),a.createElementBlock("div",M2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ee(k.comp)),{itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,key:g,index:(k==null?void 0:k.id)??g,onContentClick:w,onChange:A},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(wr.ssDialog,{visible:p.value,onBeforeDestroy:I},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(k,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ee(k.comp)),{itemData:k==null?void 0:k.compData,onChange:D,childItemData:k==null?void 0:k.itemChildData,key:g,onContentChange:S,index:(k==null?void 0:k.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",I2,[a.createVNode(E,{class:"cancel-button footer-button",onClick:L,id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(E,{class:"confirm-button footer-button",onClick:W,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},L2=Xl._export_sfc(O2,[["__scopeId","data-v-2d9c5ab2"]]),R2={key:0,class:"method-content"},$2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const n=a.ref([]),r=oa.useOriginalState(ol.pinia),{originalPath:o}=ol.storeToRefs(r),s=l,c=a.ref(!1),y=a.ref(),p=oa.useTableComp(ol.pinia),{multipleTableConst:v}=ol.storeToRefs(p),m=ol.useModelComp(ol.pinia),u=a.ref(!1),w=Y.useMenuState(ol.pinia),D=Y.useLoginState(ol.pinia),{itemData:L,isEdit:S,routeToChildPath:W,tableViewContents:I,lockingPage:A,payloadTypes:ee}=ol.storeToRefs(m),{activeMenuPath:C,platform:_,childMenu:E}=ol.storeToRefs(w),{loginUserInfo:k}=ol.storeToRefs(D),g=a.ref(!1),O=async()=>{var ie,P;(ie=n.value)!=null&&ie.find(j=>(j==null?void 0:j.buttonName)==="保存")&&await Z((P=n.value)==null?void 0:P.find(j=>(j==null?void 0:j.buttonName)==="保存")),await oa.onSaveBack()};a.watch(()=>L.value,async()=>{S.value==="view"&&!g.value&&await wa(Y.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const F=()=>{c.value=!1,y.value=void 0},q=ie=>ie.map(P=>{const j={};for(const ye in P){const Se=P[ye];if(ye.includes(v.value)){const ke=ye.split(v.value);let Ze=j;ke.forEach((ya,Ha)=>{Ha===ke.length-1?Ze[ya]=Se:(Ze[ya]||(Ze[ya]={}),Ze=Ze[ya])})}else j[ye]=Se}return j}),te=async(ie,P,j=[])=>{var Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa;let ye=(Se=Y.cloneDeep(P))==null?void 0:Se.filter(V=>(V==null?void 0:V.comp)!=="methodButton");if(ie!=null&&ie.includes("[")){let V=(re=(Ha=(ya=(Ze=(ke=Y.cloneDeep(ie))==null?void 0:ke.split("["))==null?void 0:Ze[1])==null?void 0:ya.split("]"))==null?void 0:Ha[0])==null?void 0:re.split(":"),$="";if(V!=null&&V[0]){let X=(la=ye==null?void 0:ye.find(se=>(se==null?void 0:se.name)===(V==null?void 0:V[0])))==null?void 0:la.compData;if(!X){let se=(Ve=ie==null?void 0:ie.split("["))==null?void 0:Ve[0],ue=await oa.getItemData(se,sessionStorage.getItem("systemKey"),"",!1,"","",j);X=(ba=ue==null?void 0:ue.find(va=>(va==null?void 0:va.name)===(V==null?void 0:V[0])))==null?void 0:ba.compData}X==null||X.forEach(se=>{var ue,va,ra,Le,Ce,Sa;if((se==null?void 0:se.key)==="formContent")(ue=se==null?void 0:se.contents)==null||ue.forEach(da=>{var Fa;(da==null?void 0:da.key)===(V==null?void 0:V[1])&&(Array.isArray(da==null?void 0:da.value)?$=da==null?void 0:da.value:$=(Fa=da==null?void 0:da.value)==null?void 0:Fa.toString())});else if((se==null?void 0:se.key)==="tableContents"){let da=[],Fa=(va=X==null?void 0:X.find(me=>(me==null?void 0:me.key)==="header"))==null?void 0:va.contents,ja=(V==null?void 0:V[1])??"";if(Fa!=null&&Fa.every(me=>Array.isArray(me))){let me=oa.getColumnChild((Ce=Fa==null?void 0:Fa[0])==null?void 0:Ce.filter(Je=>(Je==null?void 0:Je.label)!=="操作"));(Sa=se.contents)==null||Sa.forEach(Je=>{let ze={};Je=Je==null?void 0:Je.filter(Xe=>!(Xe!=null&&Xe.id)),me==null||me.forEach((Xe,pa)=>{let ua=Je[pa];typeof Je[pa]=="number"&&(ua=Je[pa].toString()),(ja===""||ja===Xe.prop)&&(ze[Xe.prop]=ua)}),da.push(ze)}),da=q(da)}else{let me=(ra=Fa==null?void 0:Fa.map(Je=>Je==null?void 0:Je.label))==null?void 0:ra.filter(Je=>Je!=="操作");(Le=se.contents)==null||Le.forEach(Je=>{let ze={};Je=Je==null?void 0:Je.filter(Xe=>!(Xe!=null&&Xe.id)),me==null||me.forEach((Xe,pa)=>{let ua=Je[pa];typeof Je[pa]=="number"&&(ua=Je[pa].toString()),(ja===""||ja===Xe)&&(ze[Xe]=ua)}),da.push(ze)})}$=da}})}return $}else if(ie!=null&&ie.includes("/")){let V={};return(Fe=Y.cloneDeep(ye))==null||Fe.forEach(($,X)=>{var se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa;if(($==null?void 0:$.comp)==="Table"){let Ua=Array.isArray((va=(ue=(se=$==null?void 0:$.compData)==null?void 0:se.find(Ne=>(Ne==null?void 0:Ne.key)==="header"))==null?void 0:ue.contents)==null?void 0:va[0])?(Sa=(Ce=(Le=(ra=$==null?void 0:$.compData)==null?void 0:ra.find(Ne=>(Ne==null?void 0:Ne.key)==="header"))==null?void 0:Le.contents)==null?void 0:Ce[0])==null?void 0:Sa.some(Ne=>Ne==null?void 0:Ne.children):[],ga=(ja=(Fa=(da=$==null?void 0:$.compData)==null?void 0:da.find(Ne=>(Ne==null?void 0:Ne.key)==="tableContents"))==null?void 0:Fa.contents)==null?void 0:ja.map(Ne=>(Ne!=null&&Ne.find(De=>De==null?void 0:De.id)&&(Ne=Ne.slice(1)),Ne)),He=(pa=(Xe=(ze=(Je=(me=$==null?void 0:$.compData)==null?void 0:me.find(Ne=>(Ne==null?void 0:Ne.key)==="header"))==null?void 0:Je.contents)==null?void 0:ze[0])==null?void 0:Xe[0])==null?void 0:pa.label,We=(Ae=(ua=$==null?void 0:$.compData)==null?void 0:ua.find(Ne=>(Ne==null?void 0:Ne.key)==="header"))==null?void 0:Ae.contents;if(Ua)(Ua==null?void 0:Ua.length)===0?V[$.name]=V!=null&&V[$.name]?V[$.name]:oa.tableToForm(ga,We):V[He]=oa.tableToForm(ga,We);else{const Ne=[];We=We.slice(1,We.length-1),We==null||We.forEach((De,fe)=>{ga==null||ga.forEach(oe=>{Ne.push({key:De.label+oe[0],value:oe[fe+1]})})}),V["form"+X]=Ne}}else{const Ua=(fa=(za=$.compData)==null?void 0:za.find(He=>(He==null?void 0:He.key)==="formContent"))==null?void 0:fa.contents;V!=null&&V.form||(V.form=[]);const ga=[];Ua==null||Ua.forEach(He=>{He.key!==""&&(He={key:(He==null?void 0:He.key)??(He==null?void 0:He.label),value:He==null?void 0:He.value},ga.push(He))}),V.form=[...ga,...Y.cloneDeep(V==null?void 0:V.form)]}}),V}else{if(ie==="createInsofDataApi"){let V=(Ie=Y.cloneDeep(P))==null?void 0:Ie[0];return V={comp:($e=Y.cloneDeep(V))==null?void 0:$e.comp,compData:(Qe=Y.cloneDeep(V))==null?void 0:Qe.compData,name:(Xa=Y.cloneDeep(V))==null?void 0:Xa.name,isShow:(Wa=Y.cloneDeep(V))==null?void 0:Wa.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:C.value},value:{pageData:V}}}return ie}},Te=async(ie,P,j)=>{var ke,Ze,ya;let ye=await oa.getItemData(P,sessionStorage.getItem("systemKey"),""),Se=ye==null?void 0:ye.find(Ha=>(Ha==null?void 0:Ha.name)===(j==null?void 0:j[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Ha={};for(let $e in Y.cloneDeep(ie))Y.cloneDeep(ie)[$e]!=="loginUser"?Ha[$e]=Y.cloneDeep(ie)[$e]:Ha[$e]=((ke=k.value)==null?void 0:ke.account)||((Ze=k.value)==null?void 0:Ze.账号);let re=[],la=Ha;Array.isArray(ie)||(la=[Ha]),la==null||la.forEach($e=>{re.push({[$e[j[1]]]:$e})});let Ve=[],ba=re==null?void 0:re.map($e=>{var Qe;return(Qe=Object.keys($e))==null?void 0:Qe[0]});ye==null||ye.forEach($e=>{var Qe;($e==null?void 0:$e.name)===(j==null?void 0:j[0])&&((Qe=$e==null?void 0:$e.compData)==null||Qe.forEach(Xa=>{var Wa;(Xa==null?void 0:Xa.key)==="tableContents"&&((Wa=Xa==null?void 0:Xa.contents)==null||Wa.forEach(V=>{V!=null&&V.some($=>ba.includes($))&&Ve.push({[V.find($=>$.id).id]:V.find($=>ba.includes($))})}))}))});let Fe=Ve==null?void 0:Ve.map($e=>{var Qe;return(Qe=Object.keys($e))==null?void 0:Qe[0]}),Ie=[];if(Fe==null||Fe.forEach($e=>{var Wa;let Qe=(Wa=Ve==null?void 0:Ve.find(V=>{var $;return(($=Object.keys(V))==null?void 0:$[0].toString())===$e.toString()}))==null?void 0:Wa[$e],Xa=re==null?void 0:re.find(V=>{var $;return(($=Object.keys(V))==null?void 0:$[0])===Qe});Ie.push({id:parseInt($e),value:{tableData:Xa[Qe]}})}),(Ie==null?void 0:Ie.length)>0)return Ie}else if((Se==null?void 0:Se.comp)==="Form"){let Ha=Y.cloneDeep(Se);Ha.compData=(ya=Ha.compData)==null?void 0:ya.map(Ve=>{var ba;return(Ve==null?void 0:Ve.key)==="formContent"&&(Ve.contents=(ba=Ve.contents)==null?void 0:ba.map(Fe=>((Fe==null?void 0:Fe.key)===(j==null?void 0:j[1])&&(Fe.value=(ie==null?void 0:ie[Fe==null?void 0:Fe.prop])||ie),Fe))),Ve});let re={};for(let Ve in Ha)Ve!=="id"&&(re[Ve]=Ha[Ve]);let la=[];if(la.push({id:Se==null?void 0:Se.id,keyType:j==null?void 0:j[1],value:{pageData:re}}),(la==null?void 0:la.length)>0)return la}}},Ee=async(ie,P,j)=>{var ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie;let ye=await oa.getItemData(P,sessionStorage.getItem("systemKey"),""),Se=ye==null?void 0:ye.find($e=>($e==null?void 0:$e.name)===(j==null?void 0:j[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let $e={};for(let Qe in Y.cloneDeep(ie))Y.cloneDeep(ie)[Qe]!=="loginUser"?$e[Qe]=Y.cloneDeep(ie)[Qe]:$e[Qe]=((ke=k.value)==null?void 0:ke.account)||((Ze=k.value)==null?void 0:Ze.账号);await Dr.createInsofDataApi({key:{type:"data",pageKey:P,tableId:Se==null?void 0:Se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:$e}})}else if((Se==null?void 0:Se.comp)==="Form"){let $e=Y.cloneDeep(Se),Qe=Object.keys(ie),Xa="";(Ha=(ya=Y.cloneDeep($e))==null?void 0:ya.compData)==null||Ha.forEach(ue=>{var va,ra;(ue==null?void 0:ue.key)==="formContent"&&((ra=(va=Y.cloneDeep(ue))==null?void 0:va.contents)==null||ra.forEach(Le=>{var Ce;Qe.includes(Le==null?void 0:Le.key)&&(Le==null?void 0:Le.value)===((Ce=k.value)==null?void 0:Ce.姓名)&&(Xa=Le==null?void 0:Le.key)}))});let Wa=[];(re=Object.values(ie[Xa]))==null||re.forEach(ue=>{ue!=null&&ue.includes("(")&&Wa.push(ue)}),Wa=[...new Set(Wa)];const V=Wa==null?void 0:Wa.map(async ue=>{var Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za;let va="";(Je=(me=(ja=(Fa=(da=(Sa=Y.cloneDeep(ue))==null?void 0:Sa.split("("))==null?void 0:da[1])==null?void 0:Fa.split(")"))==null?void 0:ja[0])==null?void 0:me.split(":"))==null||Je.forEach(fa=>{va=va===""?va+fa.replaceAll("'",""):va+"/"+fa.replaceAll("'","")});let ra=[];(za=(Ae=(ua=(pa=(Xe=(ze=Y.cloneDeep(ue))==null?void 0:ze.split("<"))==null?void 0:Xe[1])==null?void 0:pa.split(">"))==null?void 0:ua[0])==null?void 0:Ae.split(":"))==null||za.forEach(fa=>{ra.push(fa.replaceAll("'",""))});const Le=await oa.getItemData(va,sessionStorage.getItem("systemKey"),"");let Ce="";return Le==null||Le.forEach(fa=>{var Ua;fa.name===(ra==null?void 0:ra[0])&&((Ua=fa==null?void 0:fa.compData)==null||Ua.forEach(ga=>{var He;(ga==null?void 0:ga.key)==="formContent"&&((He=ga.contents)==null||He.forEach(We=>{(We==null?void 0:We.key)===(ra==null?void 0:ra[1])&&(Ce=We==null?void 0:We.value)}))}))}),{[ue]:Ce}}),$=await Promise.all(V);$e.compData=(Ve=(la=Y.cloneDeep($e))==null?void 0:la.compData)==null?void 0:Ve.map(ue=>{var va,ra;return(ue==null?void 0:ue.key)==="formContent"&&(ue.contents=(ra=(va=Y.cloneDeep(ue))==null?void 0:va.contents)==null?void 0:ra.map(Le=>{var Ce,Sa,da,Fa;return(Ce=ie[Xa])!=null&&Ce[Le==null?void 0:Le.key]&&(ie[Xa][Le==null?void 0:Le.key].includes("(")?Le.value=(Sa=$==null?void 0:$.find(ja=>{var me;return((me=Object.keys(ja))==null?void 0:me[0])===ie[Xa][Le==null?void 0:Le.key]}))==null?void 0:Sa[ie[Xa][Le==null?void 0:Le.key]]:Le.value=(Fa=(da=Y.cloneDeep(ie))==null?void 0:da[Xa])==null?void 0:Fa[Le==null?void 0:Le.key]),Le})),ue});const X=await Dr.getInsofDataApi({key:{type:"structure",pageKey:P,systemKey:sessionStorage.getItem("systemKey")}});let se="";((ba=X==null?void 0:X.data)==null?void 0:ba.type)==="success"&&((Ie=(Fe=X==null?void 0:X.data)==null?void 0:Fe.result)==null||Ie.forEach(ue=>{var va,ra;((ra=(va=ue==null?void 0:ue.value)==null?void 0:va.pageData)==null?void 0:ra.name)===(j==null?void 0:j[0])&&(se=ue.id)}),await Dr.updateInsofDataApi({id:se,value:{pageData:$e}}))}}},Q=(ie,P="",j={})=>{for(const[ye,Se]of Object.entries(ie)){const ke=P?`${P}.${ye}`:ye;Se!==null&&typeof Se=="object"&&!Array.isArray(Se)&&Object.prototype.toString.call(Se)!=="[object Date]"?Q(Se,ke,j):j[ke]=Se}return j},be=async(ie,P,j,ye)=>{var Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa;let Se=await oa.getItemData(P,sessionStorage.getItem("systemKey"),""),ke=Se==null?void 0:Se.find(ja=>(ja==null?void 0:ja.name)===(j==null?void 0:j[0]));if(ke){if(!(j!=null&&j[1])&&(ke==null?void 0:ke.comp)==="Table"){let ja={},me=[],Je=(ya=(Ze=ke==null?void 0:ke.compData)==null?void 0:Ze.find(pa=>(pa==null?void 0:pa.key)==="header"))==null?void 0:ya.contents;Je!=null&&Je.every(pa=>Array.isArray(pa))?me=(re=oa.getColumnChild((Ha=Je==null?void 0:Je[0])==null?void 0:Ha.filter(pa=>(pa==null?void 0:pa.label)!=="操作")))==null?void 0:re.map(pa=>pa==null?void 0:pa.prop):me=Je==null?void 0:Je.map(pa=>pa==null?void 0:pa.label);for(let pa in Y.cloneDeep(ie))if(Y.cloneDeep(ie)[pa]!=="loginUser"){let ua=Q(Y.cloneDeep(ie)[pa]),Ae={};for(let za in ua)if(me!=null&&me.find(fa=>fa===za))Ae[za]=ua[za];else if(me!=null&&me.find(fa=>(fa==null?void 0:fa.toUpperCase())===(za==null?void 0:za.toUpperCase()))){let fa=me==null?void 0:me.find(Ua=>(Ua==null?void 0:Ua.toUpperCase())===(za==null?void 0:za.toUpperCase()));Ae[fa]=ua[za]}ja[pa]=Ae}else ja[pa]=((la=k.value)==null?void 0:la.account)||((Ve=k.value)==null?void 0:Ve.账号);let ze=await Dr.getInsofDataApi({keyLikes:{tableId:ke==null?void 0:ke.id}});if(((Fe=(ba=ze==null?void 0:ze.data)==null?void 0:ba.result)==null?void 0:Fe.length)>0){let pa=($e=(Ie=ze==null?void 0:ze.data)==null?void 0:Ie.result)==null?void 0:$e.map(ua=>ua==null?void 0:ua.id);(pa==null?void 0:pa.length)>0&&await Dr.batchDeleteInsofDataApi({ids:pa})}let Xe=[];if((Qe=ke==null?void 0:ke.compData)!=null&&Qe.find(pa=>(pa==null?void 0:pa.key)==="pageColumn")&&((V=(Wa=(Xa=ke==null?void 0:ke.compData)==null?void 0:Xa.find(pa=>(pa==null?void 0:pa.key)==="pageColumn"))==null?void 0:Wa.contents)!=null&&V.includes("["))){const pa=await Dr.getInsofDataApi({id:ke==null?void 0:ke.tableId});let ua=((ue=(se=(X=($=pa==null?void 0:pa.data)==null?void 0:$.result)==null?void 0:X[0])==null?void 0:se.key)==null?void 0:ue.pageKey)??"";(va=Object.values(ja))==null||va.forEach(Ae=>{Xe.push({key:{type:"data",pageKey:ua,tableId:ke==null?void 0:ke.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Ae}})})}else(ra=Object.values(ja))==null||ra.forEach(pa=>{Xe.push({key:{type:"data",pageKey:P,tableId:ke==null?void 0:ke.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:pa}})});(Xe==null?void 0:Xe.length)>0&&await Dr.batchAddInsofDataApi({dataList:Xe})}else if(!(j!=null&&j[1])&&(ke==null?void 0:ke.comp)==="Form"){let ja=Y.cloneDeep(ke);ja.compData=(Ce=(Le=Y.cloneDeep(ja))==null?void 0:Le.compData)==null?void 0:Ce.map(ze=>{var Xe,pa;return(ze==null?void 0:ze.key)==="formContent"&&(ze.contents=(pa=(Xe=Y.cloneDeep(ze))==null?void 0:Xe.contents)==null?void 0:pa.map(ua=>{var Ae,za;return(Ae=Y.cloneDeep(ie))!=null&&Ae[ua==null?void 0:ua.key]&&(ua.value=(za=Y.cloneDeep(ie))==null?void 0:za[ua==null?void 0:ua.key]),ua})),ze});const me=await Dr.getInsofDataApi({key:{type:"structure",pageKey:P,systemKey:sessionStorage.getItem("systemKey")}});let Je="";((Sa=me==null?void 0:me.data)==null?void 0:Sa.type)==="success"&&((Fa=(da=me==null?void 0:me.data)==null?void 0:da.result)==null||Fa.forEach(ze=>{var Xe,pa;((pa=(Xe=ze==null?void 0:ze.value)==null?void 0:Xe.pageData)==null?void 0:pa.name)===(j==null?void 0:j[0])&&(Je=ze.id)}),await Dr.updateInsofDataApi({id:Je,value:{pageData:ja}}))}}},Z=async ie=>{var P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie;w.setImportLoading(!0);try{if(ie.api){let $e=new WeakMap,Qe=await oa.getItemData((E==null?void 0:E.value)===""?C.value:E==null?void 0:E.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e),Xa="";if(Qe=Qe==null?void 0:Qe.map(ra=>{var Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua;if((ra==null?void 0:ra.comp)==="Form")ra.compData=(Le=ra.compData)==null?void 0:Le.map(Ae=>{var za;return(Ae==null?void 0:Ae.key)==="formContent"&&(Ae.contents=(za=Ae.contents)==null?void 0:za.map(fa=>{var Ua;if((fa==null?void 0:fa.value)===""&&(fa==null?void 0:fa.type)==="Select"){let ga=oa.judgeContents((Ua=Y.cloneDeep(fa))==null?void 0:Ua.optionUrl,$e);fa.value=fa.value||ga}return fa})),Ae});else if((ra==null?void 0:ra.comp)==="Table"&&(Ce=ra.compData)!=null&&Ce.find(Ae=>(Ae==null?void 0:Ae.key)==="pageColumn")){let Ae=(da=(Sa=ra.compData)==null?void 0:Sa.find(ga=>(ga==null?void 0:ga.key)==="pageColumn"))==null?void 0:da.contents,za=((ja=(Fa=ra.compData)==null?void 0:Fa.find(ga=>(ga==null?void 0:ga.key)==="pageGroup"))==null?void 0:ja.contents)??"",fa=(ze=(Je=(me=Ae==null?void 0:Ae.split("["))==null?void 0:me[1])==null?void 0:Je.split("]"))==null?void 0:ze[0];Xa=((Xe=Ae==null?void 0:Ae.split("["))==null?void 0:Xe[0])+((ua=(pa=I.value)==null?void 0:pa.find(ga=>(ga==null?void 0:ga.key)===fa))==null?void 0:ua.value)}return ra}),!(Xa===""||Xa==="")){const ra=await oa.getItemData(Xa,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Qe=Qe==null?void 0:Qe.map(Le=>{var Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za;if((Le==null?void 0:Le.comp)==="Table"&&(Ce=Le.compData)!=null&&Ce.find(fa=>(fa==null?void 0:fa.key)==="pageColumn")){let fa=(da=(Sa=Le.compData)==null?void 0:Sa.find(Ne=>(Ne==null?void 0:Ne.key)==="pageColumn"))==null?void 0:da.contents,Ua=((ja=(Fa=Le.compData)==null?void 0:Fa.find(Ne=>(Ne==null?void 0:Ne.key)==="pageGroup"))==null?void 0:ja.contents)??"",ga=(ze=(Je=(me=fa==null?void 0:fa.split("["))==null?void 0:me[1])==null?void 0:Je.split("]"))==null?void 0:ze[0],He=((Xe=fa==null?void 0:fa.split("["))==null?void 0:Xe[0])+((ua=(pa=I.value)==null?void 0:pa.find(Ne=>(Ne==null?void 0:Ne.key)===ga))==null?void 0:ua.value),We=(Ae=ra==null?void 0:ra.find(Ne=>(Ne==null?void 0:Ne.name)===(Ua===""?s==null?void 0:s.compName:Ua)))==null?void 0:Ae.compData;Le.compData=(za=Le.compData)==null?void 0:za.map(Ne=>{var De;return(Ne==null?void 0:Ne.key)==="tableContents"&&(Ne.contents=(De=We==null?void 0:We.find(fe=>(fe==null?void 0:fe.key)==="tableContents"))==null?void 0:De.contents),Ne})}return Le})}let Wa={};if(((j=(P=ie==null?void 0:ie.extraValues)==null?void 0:P.input)==null?void 0:j.length)>0){const ra=(Se=(ye=ie==null?void 0:ie.extraValues)==null?void 0:ye.input)==null?void 0:Se.map(async Le=>{var Ce;de!=null&&de.find(Sa=>Sa===Le)?Wa=await te(Le,Qe):Wa[Object.keys(Le)[0]]=await te((Ce=Object.values(Le))==null?void 0:Ce[0],Qe,$e)});await Promise.all(ra)}else Wa=await te("/",Qe);let V=!1;(Ze=(ke=ie==null?void 0:ie.extraValues)==null?void 0:ke.output)==null||Ze.forEach(ra=>{var Le,Ce;(Ce=(Le=Object.values(ra))==null?void 0:Le[0])!=null&&Ce.includes(".doc")&&(V=!0)});let $;if(V){const ra=Fo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});$=await al.axios.post(ie.api,Wa,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ra.close()})}else $=await al.axios.post(ie.api,Wa,{headers:{"Content-Type":"application/json"}});let X=(la=(re=(Ha=(ya=Y.cloneDeep(ie))==null?void 0:ya.extraValues)==null?void 0:Ha.output)==null?void 0:re.map(ra=>{var Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua;if(!((Ce=(Le=Object.values(ra))==null?void 0:Le[0])!=null&&Ce.includes(".doc"))){let ga=(Xe=(ze=(Je=(da=Y.cloneDeep((Sa=Object.values(ra))==null?void 0:Sa[0]))==null?void 0:da.split("["))==null?void 0:Je[((me=(ja=Y.cloneDeep((Fa=Object.values(ra))==null?void 0:Fa[0]))==null?void 0:ja.split("["))==null?void 0:me.length)-1])==null?void 0:ze.split("]"))==null?void 0:Xe[0],He=ga==null?void 0:ga.split(":"),We=(Ae=Y.cloneDeep((pa=Object.values(ra))==null?void 0:pa[0]))==null?void 0:Ae.substring(0,Y.cloneDeep((ua=Object.values(ra))==null?void 0:ua[0]).lastIndexOf("["));if(We=(fa=Y.cloneDeep(We))==null?void 0:fa.slice(0,((za=Y.cloneDeep(We))==null?void 0:za.length)-1),We!=null&&We.includes("[")){let Ne="";if((Ua=oa.contentTransArrayToAll(We,"/"))==null||Ua.forEach(De=>{var fe,oe,ia,Pa,hl,Ma,Ul;if(!(De!=null&&De.includes("[")))Ne=Ne===""?Ne+De.replaceAll("/",""):Ne+"/"+De.replaceAll("/","");else{let Ea=Y.cloneDeep(De).slice(1,((fe=Y.cloneDeep(De))==null?void 0:fe.length)-1),_a=(Ma=(hl=(Pa=(ia=(oe=Y.cloneDeep(Ea))==null?void 0:oe.split("["))==null?void 0:ia[1])==null?void 0:Pa.split("]"))==null?void 0:hl[0])==null?void 0:Ma.split(":"),Ra="",Va=(Ul=Qe==null?void 0:Qe.find(qa=>(qa==null?void 0:qa.name)===(_a==null?void 0:_a[0])))==null?void 0:Ul.compData;Va==null||Va.forEach(qa=>{var xa;(qa==null?void 0:qa.key)==="formContent"&&((xa=qa==null?void 0:qa.contents)==null||xa.forEach(ae=>{(ae==null?void 0:ae.key)===(_a==null?void 0:_a[1])&&(Ra=ae==null?void 0:ae.value)}))}),Ne=Ne===""?Ne+Ra.replaceAll("/",""):Ne+"/"+Ra.replaceAll("/","")}}),We=Ne,We[(We==null?void 0:We.length)-1]!=="/")return We}}}))==null?void 0:la.filter(ra=>ra);X=[...new Set(Y.cloneDeep(X))];let se=X==null?void 0:X.map(async ra=>{let Le=await oa.getItemData(ra,sessionStorage.getItem("systemKey"),"",!1,"","",$e);if((Le==null?void 0:Le.length)===0)return await oa.getParentContents(ra)});await Promise.all(se);let ue=[],va=(Fe=(ba=(Ve=Y.cloneDeep(ie))==null?void 0:Ve.extraValues)==null?void 0:ba.output)==null?void 0:Fe.map(async ra=>{var Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul,Ea,_a,Ra,Va,qa,xa,ae,Ye,pe,Ca,qe,G,aa,Ge,Be,El,sl,kl,Ga,Qa,Na,he,Da,Sl,Pl,jl,or,gr,Tl,sr,Tr,Rl,rr,en,Or,zr,Sr,Mr,Ir,Br,Pr,Lr,cr,bn,Yr,nn,Tn,kn,mn;if((ze=(Je=Object.values(ra))==null?void 0:Je[0])!=null&&ze.includes(".doc")){var Le=new Blob([$.data],{type:"application/octet-stream;charset=UTF-8"}),Ce=$.headers["content-disposition"],Sa=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),da=Sa.exec(Ce),Fa=da==null?void 0:da[1],ja=document.createElement("a"),me=window.URL.createObjectURL(Le);y.value=[{name:Fa,blobUrl:me}],c.value=!0}else{let mr=(ga=(Ua=(fa=(pa=Y.cloneDeep((Xe=Object.values(ra))==null?void 0:Xe[0]))==null?void 0:pa.split("["))==null?void 0:fa[((za=(Ae=Y.cloneDeep((ua=Object.values(ra))==null?void 0:ua[0]))==null?void 0:Ae.split("["))==null?void 0:za.length)-1])==null?void 0:Ua.split("]"))==null?void 0:ga[0],ql=mr==null?void 0:mr.split(":"),pr=(Ne=Y.cloneDeep((He=Object.values(ra))==null?void 0:He[0]))==null?void 0:Ne.substring(0,Y.cloneDeep((We=Object.values(ra))==null?void 0:We[0]).lastIndexOf("["));if(pr!=null&&pr.includes("[")?pr=(fe=Y.cloneDeep(pr))==null?void 0:fe.slice(0,((De=Y.cloneDeep(pr))==null?void 0:De.length)-1):pr===""&&(pr=C.value),pr=pr.replaceAll("<","[").replaceAll(">","]"),pr!=null&&pr.includes("[")){let Gl="";(oe=oa.contentTransArrayToAll(pr,"/"))==null||oe.forEach((Ol,yr)=>{var ir,Hl,Vr,Fr,xn,on,Zn,An,Qn,wn,zn;if(!(Ol!=null&&Ol.includes("[")))Gl=Gl===""?Gl+Ol.replaceAll("/",""):Gl+"/"+Ol.replaceAll("/","");else{let Fn="",an="";(ir=Y.cloneDeep(Ol))!=null&&ir.includes("]")?(Fn=Y.cloneDeep(Ol).slice(1,((Hl=Y.cloneDeep(Ol))==null?void 0:Hl.length)-1),an=(Zn=(on=(xn=(Fr=(Vr=Y.cloneDeep(Fn))==null?void 0:Vr.split("["))==null?void 0:Fr[1])==null?void 0:xn.split("]"))==null?void 0:on[0])==null?void 0:Zn.split(":")):(Fn=Y.cloneDeep(Ol).slice(1,(An=Y.cloneDeep(Ol))==null?void 0:An.length),an=(Qn=Y.cloneDeep(Fn))==null?void 0:Qn.split("/"));let Mn="",_n=(wn=Qe==null?void 0:Qe.find(Gr=>(Gr==null?void 0:Gr.name)===(an==null?void 0:an[0])))==null?void 0:wn.compData;_n==null||_n.forEach(Gr=>{var jn;(Gr==null?void 0:Gr.key)==="formContent"&&((jn=Gr==null?void 0:Gr.contents)==null||jn.forEach(yn=>{(yn==null?void 0:yn.key)===(an==null?void 0:an[1])&&(Mn=yn==null?void 0:yn.value)}))}),((zn=oa.contentTransArrayToAll(pr,"/"))==null?void 0:zn.length)-1!==yr?Gl=Gl===""?Gl+Mn.replaceAll("/",""):Gl+"/"+Mn.replaceAll("/",""):Gl=Gl+o.value+Mn.replaceAll("/","")}}),(ia=C.value)!=null&&ia.includes(Gl)?pr=C.value:pr=Gl}let Vl=Y.cloneDeep((Pa=Object.keys(ra))==null?void 0:Pa[0]);if(((hl=$==null?void 0:$.data)==null?void 0:hl.statusCode)===200||((Ma=$==null?void 0:$.data)==null?void 0:Ma.code)===200){if(((Ea=(Ul=$==null?void 0:$.data)==null?void 0:Ul.data)!=null&&Ea[Vl]||(Ra=(_a=$==null?void 0:$.data)==null?void 0:_a.result)!=null&&Ra[Vl])&&(ql==null?void 0:ql.length)===1)return await be(((qa=(Va=$==null?void 0:$.data)==null?void 0:Va.data)==null?void 0:qa[Vl])||((ae=(xa=$==null?void 0:$.data)==null?void 0:xa.result)==null?void 0:ae[Vl]),Y.cloneDeep(pr),ql,Xa);if((pe=(Ye=$==null?void 0:$.data)==null?void 0:Ye.data)!=null&&pe[Vl]||(qe=(Ca=$==null?void 0:$.data)==null?void 0:Ca.result)!=null&&qe[Vl]){let Gl=await Te(((aa=(G=$==null?void 0:$.data)==null?void 0:G.data)==null?void 0:aa[Vl])||((Be=(Ge=$==null?void 0:$.data)==null?void 0:Ge.result)==null?void 0:Be[Vl]),Y.cloneDeep(pr),ql);return Gl&&(ue=[...ue,...Gl]),Gl}else{if(!((El=$==null?void 0:$.data)!=null&&El.data)){let Gl=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Gl=Gl==null?void 0:Gl.map(yr=>{var ir;return(yr==null?void 0:yr.name)===(ql==null?void 0:ql[0])&&(yr.compData=(ir=yr.compData)==null?void 0:ir.map(Hl=>{var Vr;return(Hl==null?void 0:Hl.key)==="formContent"&&(Hl.contents=(Vr=Hl.contents)==null?void 0:Vr.map(Fr=>{var xn,on;return(Fr==null?void 0:Fr.key)===(ql==null?void 0:ql[1])&&(Fr.value=(on=(xn=$==null?void 0:$.data)==null?void 0:xn.result)==null?void 0:on[Vl==null?void 0:Vl.replaceAll(":","")]),Fr})),Hl})),yr});let Ol=[];(sl=Gl==null?void 0:Gl.filter(yr=>(yr==null?void 0:yr.comp)==="Form"))==null||sl.forEach(async yr=>{let ir={};for(let Hl in yr)Hl!=="id"&&(ir[Hl]=yr[Hl]);Ol.push({id:yr==null?void 0:yr.id,value:{pageData:ir}})}),(Ol==null?void 0:Ol.length)>0&&await Dr.batchUpdateInsofDataApi({dataList:Ol});return}if((ql==null?void 0:ql.length)===1){const Gl=(Qa=(Ga=(kl=$==null?void 0:$.data)==null?void 0:kl.data)==null?void 0:Ga.path)==null?void 0:Qa.path;let Ol="";(Pl=(Sl=(Da=(he=(Na=Gl==null?void 0:Gl.split("("))==null?void 0:Na[1])==null?void 0:he.split(")"))==null?void 0:Da[0])==null?void 0:Sl.split(":"))==null||Pl.forEach(Hl=>{var Vr,Fr;Ol=Ol===""?Ol+((Vr=Hl==null?void 0:Hl.replaceAll("'",""))==null?void 0:Vr.trim()):Ol+"/"+((Fr=Hl==null?void 0:Hl.replaceAll("'",""))==null?void 0:Fr.trim())});let yr=[(sr=(Tl=(gr=(or=(jl=Gl==null?void 0:Gl.split("<"))==null?void 0:jl[1])==null?void 0:or.split(">"))==null?void 0:gr[0])==null?void 0:Tl.replaceAll("'",""))==null?void 0:sr.trim()],ir;return(rr=(Rl=(Tr=$==null?void 0:$.data)==null?void 0:Tr.data)==null?void 0:Rl.data)!=null&&rr[ql==null?void 0:ql[0]]?ir=await be((zr=(Or=(en=$==null?void 0:$.data)==null?void 0:en.data)==null?void 0:Or.data)==null?void 0:zr[ql==null?void 0:ql[0]],Ol,ql,Xa):ir=await Ee((Mr=(Sr=$==null?void 0:$.data)==null?void 0:Sr.data)==null?void 0:Mr.data,Ol,yr,$e),ir}else{const Gl=(Pr=(Br=(Ir=$==null?void 0:$.data)==null?void 0:Ir.data)==null?void 0:Br.path)==null?void 0:Pr.path;let Ol="";return(nn=(Yr=(bn=(cr=(Lr=Gl==null?void 0:Gl.split("("))==null?void 0:Lr[1])==null?void 0:cr.split(")"))==null?void 0:bn[0])==null?void 0:Yr.split(":"))==null||nn.forEach(ir=>{var Hl,Vr;Ol=Ol===""?Ol+((Hl=ir==null?void 0:ir.replaceAll("'",""))==null?void 0:Hl.trim()):Ol+"/"+((Vr=ir==null?void 0:ir.replaceAll("'",""))==null?void 0:Vr.trim())}),await Te((mn=(kn=(Tn=$==null?void 0:$.data)==null?void 0:Tn.data)==null?void 0:kn.data)==null?void 0:mn[ql==null?void 0:ql[0]],Ol,ql)}}}}});if(await Promise.all(va),(ue==null?void 0:ue.length)>0){let ra=[];ue==null||ue.forEach(Sa=>{ra!=null&&ra.find(da=>{var Fa,ja,me,Je;return((ja=(Fa=da==null?void 0:da.value)==null?void 0:Fa.pageData)==null?void 0:ja.name)===((Je=(me=Sa==null?void 0:Sa.value)==null?void 0:me.pageData)==null?void 0:Je.name)})||ra.push(Sa)});let Le=[];ra==null||ra.forEach(Sa=>{var ja,me,Je,ze;let da=Y.cloneDeep(Sa);da.value.pageData.compData=(ja=da.value.pageData.compData)==null?void 0:ja.map(Xe=>{var pa;return(Xe==null?void 0:Xe.key)==="formContent"&&(Xe.contents=(pa=Xe.contents)==null?void 0:pa.map(ua=>{var za,fa,Ua,ga;let Ae=(za=Y.cloneDeep(ue))==null?void 0:za.find(He=>(He==null?void 0:He.keyType)===(ua==null?void 0:ua.key));if(Ae){let He=(ga=(Ua=(fa=Ae.value.pageData.compData)==null?void 0:fa.find(We=>(We==null?void 0:We.key)==="formContent"))==null?void 0:Ua.contents)==null?void 0:ga.find(We=>(We==null?void 0:We.key)===(ua==null?void 0:ua.key));ua.value=He==null?void 0:He.value}return ua})),Xe}),Le.push({id:da==null?void 0:da.id,value:da==null?void 0:da.value});let Fa=[];(ze=(Je=(me=da==null?void 0:da.value)==null?void 0:me.pageData)==null?void 0:Je.compData)==null||ze.forEach(Xe=>{var pa;(Xe==null?void 0:Xe.key)==="formContent"&&((pa=Xe==null?void 0:Xe.contents)==null||pa.forEach(ua=>{var Ae,za,fa,Ua,ga,He;if((za=(Ae=ua==null?void 0:ua.optionUrl)==null?void 0:Ae.menuSelect)!=null&&za.find(We=>We==null?void 0:We.includes("[")))if(Fa!=null&&Fa.find(We=>{var Ne,De,fe;return((Ne=We==null?void 0:We.key)==null?void 0:Ne.join(","))===((fe=(De=ua==null?void 0:ua.optionUrl)==null?void 0:De.menuSelect)==null?void 0:fe.join(","))})){let We=(fa=Fa==null?void 0:Fa.find(Ne=>{var De,fe,oe;return((De=Ne==null?void 0:Ne.key)==null?void 0:De.join(","))===((oe=(fe=ua==null?void 0:ua.optionUrl)==null?void 0:fe.menuSelect)==null?void 0:oe.join(","))}))==null?void 0:fa.value;We.push({key:ua==null?void 0:ua.prop,groups:(Ua=ua==null?void 0:ua.optionUrl)==null?void 0:Ua.groupSelect,value:ua==null?void 0:ua.value}),Fa=Fa==null?void 0:Fa.map(Ne=>{var De,fe,oe;return((De=Ne==null?void 0:Ne.key)==null?void 0:De.join(","))===((oe=(fe=ua==null?void 0:ua.optionUrl)==null?void 0:fe.menuSelect)==null?void 0:oe.join(","))&&(Ne.value=We),Ne})}else Fa.push({key:(ga=ua==null?void 0:ua.optionUrl)==null?void 0:ga.menuSelect,value:[{key:ua==null?void 0:ua.prop,groups:(He=ua==null?void 0:ua.optionUrl)==null?void 0:He.groupSelect,value:ua==null?void 0:ua.value}]})}))}),(Fa==null?void 0:Fa.length)>0&&(Fa=Fa==null?void 0:Fa.map(Xe=>{var ua;let pa="";return(ua=Xe==null?void 0:Xe.key)==null||ua.forEach(Ae=>{var za;if(!(Ae!=null&&Ae.includes("[")))pa=pa===""?pa+Ae:pa+"/"+Ae;else{let fa="",Ua=(za=Ae==null?void 0:Ae.replaceAll("[","").replaceAll("]",""))==null?void 0:za.split(":");Qe==null||Qe.forEach(ga=>{var He;(ga==null?void 0:ga.name)===(Ua==null?void 0:Ua[0])&&((He=ga==null?void 0:ga.compData)==null||He.forEach(We=>{var Ne;(We==null?void 0:We.key)==="formContent"&&((Ne=We==null?void 0:We.contents)==null||Ne.forEach(De=>{(De==null?void 0:De.prop)===(Ua==null?void 0:Ua[1])&&(fa=De==null?void 0:De.value)}))}))}),pa=pa+o.value+fa}}),Xe.key=pa,Xe})),Fa==null||Fa.forEach(Xe=>{var za,fa,Ua;let pa=(za=$e[Xe.key])==null?void 0:za.find(ga=>{var He,We,Ne,De,fe,oe,ia;return((We=(He=ga==null?void 0:ga.value)==null?void 0:He.pageData)==null?void 0:We.name)===((fe=(De=(Ne=Xe==null?void 0:Xe.value)==null?void 0:Ne[0])==null?void 0:De.groups)==null?void 0:fe[0])&&((ia=(oe=ga==null?void 0:ga.value)==null?void 0:oe.pageData)==null?void 0:ia.name)!==void 0}),ua=pa==null?void 0:pa.id,Ae=(fa=pa==null?void 0:pa.value)==null?void 0:fa.pageData;Ae.compData=(Ua=Ae.compData)==null?void 0:Ua.map(ga=>{var He;return(ga==null?void 0:ga.key)==="formContent"&&(ga.contents=(He=ga.contents)==null?void 0:He.map(We=>{var De;let Ne=(De=Xe.value)==null?void 0:De.find(fe=>(fe==null?void 0:fe.key)===(We==null?void 0:We.prop));return Ne&&(We.value=Ne.value),We})),ga}),Le.push({id:ua,value:{pageData:Ae}})})});let Ce=(Ie=Y.cloneDeep(ue))==null?void 0:Ie[0];(Le==null?void 0:Le.length)>0&&await Dr.batchUpdateInsofDataApi({dataList:Le})}m.setFreshContent(!0)}w.setImportLoading(!1)}catch{al.ElMessage.error("方法执行错误,请查看方法!"),w.setImportLoading(!1)}g.value=!0},de=["createInsofDataApi"],je=$a.debounce(async ie=>{Z(ie)},100),wa=async ie=>{var Ze,ya,Ha;const P=Y.cloneDeep(ie);let j,ye=new WeakMap;ie!=null&&ie[0].path&&(j=await(P==null?void 0:P.map(async(re,la)=>{var Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je;const ba=(Wa=ye[re==null?void 0:re.path])==null?void 0:Wa.filter(ze=>{var Xe;return((Xe=ze==null?void 0:ze.key)==null?void 0:Xe.type)==="data"});let Fe="";const Ie=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye);ba==null||ba.forEach(ze=>{var Xe,pa,ua,Ae,za;((pa=(Xe=ze==null?void 0:ze.value)==null?void 0:Xe.tableData)==null?void 0:pa.算法名称)===((ua=P==null?void 0:P[la])==null?void 0:ua.method)&&(Fe=(za=(Ae=ze==null?void 0:ze.value)==null?void 0:Ae.tableData)==null?void 0:za.算法体)});const $e=await oa.getItemData(re==null?void 0:re.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye);let Qe="",Xa=(se=(X=($=(V=$e==null?void 0:$e[0])==null?void 0:V.compData)==null?void 0:$.find(ze=>(ze==null?void 0:ze.key)==="header"))==null?void 0:X.contents)==null?void 0:se.findIndex(ze=>(ze==null?void 0:ze.prop)==="算法体");return(va=(ue=$e==null?void 0:$e[0])==null?void 0:ue.compData)==null||va.forEach(ze=>{var Xe;(ze==null?void 0:ze.key)==="tableContents"&&((Xe=ze==null?void 0:ze.contents)==null||Xe.forEach(pa=>{pa!=null&&pa.find(ua=>ua===(re==null?void 0:re.method))&&(Qe=pa[Xa])}))}),{buttonName:((ra=P==null?void 0:P[la])==null?void 0:ra.method)||((Sa=(Ce=(Le=ba==null?void 0:ba[0])==null?void 0:Le.value)==null?void 0:Ce.tableData)==null?void 0:Sa.算法名称),api:(Fe===""?(ja=(Fa=(da=ba==null?void 0:ba[0])==null?void 0:da.value)==null?void 0:Fa.tableData)==null?void 0:ja.算法体:Fe)||Qe,content:Ie==null?void 0:Ie.filter(ze=>ze.comp!=="methodButton"),extraContent:(me=Y.cloneDeep(re.value))==null?void 0:me.slice(1),methodName:(re==null?void 0:re.path)??"",extraValues:(Je=P==null?void 0:P[la])==null?void 0:Je.data}})));const Se=P==null?void 0:P.map(async re=>{var $e,Qe,Xa,Wa,V,$;const la=($e=resAll.data.result)==null?void 0:$e.filter(X=>{var se,ue,va;return((se=X==null?void 0:X.key)==null?void 0:se.parentTable)===""&&((ue=X==null?void 0:X.key)==null?void 0:ue.type)==="method"&&((va=X==null?void 0:X.key)==null?void 0:va.methodName)===X.method}),Ve=la==null?void 0:la[0],ba=(Qe=resAll.data.result)==null?void 0:Qe.filter(X=>{var se,ue;return((se=X==null?void 0:X.key)==null?void 0:se.type)==="methodData"&&((ue=X==null?void 0:X.key)==null?void 0:ue.tableId)===(Ve==null?void 0:Ve.id)}),Fe=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye),Ie=ba==null?void 0:ba[0];return{buttonName:(Xa=Ve==null?void 0:Ve.key)==null?void 0:Xa.methodKey,api:(V=(Wa=Ie==null?void 0:Ie.value)==null?void 0:Wa.tableData)==null?void 0:V[0],content:Fe==null?void 0:Fe.filter(X=>X.comp!=="methodButton"),extraContent:($=Y.cloneDeep(re.value))==null?void 0:$.slice(1),methodName:(re==null?void 0:re.method)??""}}),ke=(Ze=ie==null?void 0:ie[0])!=null&&Ze.path&&((ya=ie==null?void 0:ie[0])==null?void 0:ya.path)!==""?await Promise.all(j):await Promise.all(Se);n.value=ke==null?void 0:ke.filter(re=>re==null?void 0:re.extraContent),(Ha=n.value)==null||Ha.forEach(re=>{var la;re.api===""&&((la=re.content)==null||la.forEach(Ve=>{var ba;Ve.comp=="Table"&&m.setExtraContents(oa.methodTableToContent(Ve.compData,(ba=re.extraContent)==null?void 0:ba[0]))}))})};return a.watch(()=>s.itemData,async()=>{S.value=="view"&&!g.value&&await wa(Y.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(ie,P)=>{var j,ye,Se;return a.unref(S)!=="edit"?(a.openBlock(),a.createElementBlock("div",R2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((j=n.value)==null?void 0:j.filter(ke=>(ke==null?void 0:ke.buttonName)!=="保存"),ke=>{var Ze;return a.openBlock(),a.createElementBlock("div",null,[ke.api!==""?(a.openBlock(),a.createBlock(a.unref(as._sfc_main),{key:0,disabled:a.unref(A)===a.unref(C)&&!((Ze=ke==null?void 0:ke.buttonName)!=null&&Ze.includes("预览")),class:"calculator-content",modelValue:ke.buttonName,onClickTrigger:ya=>a.unref(je)(ke),loading:u.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(W)!==""&&((Se=a.unref(C))==null?void 0:Se[((ye=a.unref(C))==null?void 0:ye.length)-1])!==a.unref(o)?(a.openBlock(),a.createBlock(a.unref(as._sfc_main),{key:0,class:"calculator-content",onClickTrigger:O,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:F},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},V2=Xl._export_sfc($2,[["__scopeId","data-v-063aa9af"]]),P2={};function F2(l,n){return" 567 "}const j2=Xl._export_sfc(P2,[["render",F2]]),H2={class:"module content"},U2={class:"module data"},q2={class:"module layout"},W2={class:"form-content"},K2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),c=a.ref("create"),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),m=a.ref({}),u=a.ref([]),w=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:u.value},{key:"signConfig",contents:m.value}]}),D=I=>{var A;m.value=Y.cloneDeep(I),o("change",(A=w())==null?void 0:A.compData)},L=I=>{var A,ee;if((I==null?void 0:I.buttonName)==="确认"){const C=Y.cloneDeep(I==null?void 0:I.content);switch(c.value){case"create":u.value.push({...C,index:((A=u.value)==null?void 0:A.length)+1});break}o("change",(ee=w())==null?void 0:ee.compData),s.visible=!1}else s.visible=!1},S=(I,A)=>{var ee,C;switch(I){case"create":(ee=v.value)==null||ee.forEach(_=>{_.value=""}),c.value="create",s.visible=!0;break;case"update":(C=v.value)==null||C.forEach(_=>{_.value=A[_==null?void 0:_.prop]}),c.value="update",s.visible=!0;break;case"delete":u.value.splice(A,1),c.value="delete";break}},W=()=>{s.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,I=>{var A,ee;I&&(m.value=((A=I==null?void 0:I.find(C=>C.key==="signConfig"))==null?void 0:A.contents)??{},u.value=((ee=I==null?void 0:I.find(C=>C.key==="signTypeList"))==null?void 0:ee.contents)??[])},{immediate:!0}),(I,A)=>{const ee=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",H2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=_=>S("create"))},{icon:a.withCtx(()=>[a.createVNode(ee,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",U2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(_,E)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:E},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.label),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>S("update",{..._,index:E+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>S("delete",E)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",q2,[a.createVNode(pl.ssForm,{rowContents:p.value,onChange:D},null,8,["rowContents"])])]),a.createVNode(wr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:W,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",W2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:L},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),G2=Xl._export_sfc(K2,[["__scopeId","data-v-487e0536"]]),Y2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(0),c=a.computed(()=>{var w,D;return(w=r==null?void 0:r.stepConfig)!=null&&w.allowTrigger?s.value:(D=r==null?void 0:r.stepConfig)==null?void 0:D.active}),y=(w,D)=>{s.value=D-1,o("clickStep",w,D)};a.onMounted(()=>{var w;o("clickStep",(w=r==null?void 0:r.stepList)==null?void 0:w[0],0)});const p=w=>pl.getComponent(w),v=()=>{var D;const w=(D=r==null?void 0:r.stepList)==null?void 0:D.find((L,S)=>S+1===c.value);return console.log("findStep",w),w?w==null?void 0:w.children:[]},m=w=>{o("clickTrigger",w)},u=w=>{o("changeTrigger",w)};return(w,D)=>{var W,I,A,ee,C;const L=a.resolveComponent("el-step"),S=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(S,{direction:(W=l.stepConfig)==null?void 0:W.direction,active:c.value,"finish-status":"success",simple:(I=l.stepConfig)==null?void 0:I.simple,"align-center":((A=l.stepConfig)==null?void 0:A.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(_,E)=>(a.openBlock(),a.createBlock(L,{key:E,class:"step-item",onClick:k=>y(_,E+1)},{title:a.withCtx(()=>[a.renderSlot(w.$slots,"title",{title:_==null?void 0:_.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(w.$slots,"description",{descriptions:_==null?void 0:_.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(ee=l.stepConfig)!=null&&ee.allowTrigger&&((C=l.stepConfig)!=null&&C.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),(_,E)=>(a.openBlock(),a.createElementBlock("div",{key:E,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(_==null?void 0:_.type)),{modelValue:_.value,"onUpdate:modelValue":k=>_.value=k,onClickTrigger:m,onChangeTrigger:u,content:_==null?void 0:_.content},a.createSlots({_:2},[a.renderList(w.$slots,(k,g)=>({name:g,fn:a.withCtx(O=>[a.renderSlot(w.$slots,g,a.mergeProps({ref_for:!0},O||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),J2=Xl._export_sfc(Y2,[["__scopeId","data-v-fdbd6832"]]),X2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:n}){const r=l,o=n,s=a.ref({}),c=a.ref([]),y=(p,v)=>{o("clickStep",p,v)};return a.watch(()=>r==null?void 0:r.itemData,p=>{var w,D,L,S;s.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let v=((w=p==null?void 0:p.find(W=>(W==null?void 0:W.key)==="stepName"))==null?void 0:w.contents)??[],m=[];(L=(D=p==null?void 0:p.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:D.contents)==null||L.forEach(W=>{m.push({label:W==null?void 0:W.label,prop:W==null?void 0:W.prop,name:W==null?void 0:W.prop,type:"text",disabled:!0})});let u=((S=p==null?void 0:p.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:S.contents)??[];v=v==null?void 0:v.map((W,I)=>{let A=m==null?void 0:m.map(ee=>{var C;return{...ee,value:(C=u==null?void 0:u[I])==null?void 0:C[ee==null?void 0:ee.prop]}});return{title:W,description:A}}),c.value=v},{immediate:!0,deep:!0}),(p,v)=>{const m=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(J2,{stepConfig:s.value,stepList:c.value,onClickStep:y},{icon:a.withCtx(()=>[a.createVNode(m,{name:"import"})]),title:a.withCtx(({title:u})=>[a.createTextVNode(a.toDisplayString(u),1)]),description:a.withCtx(({descriptions:u})=>[a.createVNode(pl.ssForm,{ref:"formRef",rowContents:u,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),Z2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(n,r)=>{const o=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(c,y)=>(a.openBlock(),a.createBlock(o,{key:y,timestamp:c.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"content",{content:c==null?void 0:c.content,timestamp:c==null?void 0:c.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),Q2=Xl._export_sfc(Z2,[["__scopeId","data-v-4172a886"]]),eh={class:"line-content"},ah={class:"line-time"},lh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const n=l,r=a.ref({}),o=a.ref([]);return a.watch(()=>n==null?void 0:n.itemData,s=>{var c,y;o.value=(c=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineList"))==null?void 0:c.contents,r.value=(y=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineConfig"))==null?void 0:y.contents},{immediate:!0}),(s,c)=>(a.openBlock(),a.createBlock(Q2,{activities:o.value,timeLineConfig:r.value},{content:a.withCtx(({content:y,timestamp:p})=>[a.createElementVNode("span",eh,a.toDisplayString(y),1),a.createElementVNode("span",ah,a.toDisplayString(p),1)]),_:1},8,["activities","timeLineConfig"]))}}),rh=Xl._export_sfc(lh,[["__scopeId","data-v-b4d9deed"]]),nh={class:"tabs-content"},oh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:n}){const r=l,o=n,s=a.ref();a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const c=D=>{o("change",D)},y=(D,L)=>{o("contentChange",D,L)},p=D=>{o("pageChange",D)},v=D=>{o("rowClick",D)},m=(D,L)=>{o("routeUrl",D,L)},u=D=>{o("clickTrigger",D)},w=(D,L)=>{o("clickMainKey",D,L)};return(D,L)=>{var S,W;return a.openBlock(),a.createElementBlock("div",nh,[(S=s.value)!=null&&S.length?(a.openBlock(),a.createBlock(pl.ssTab,{tabsContents:s.value,key:(W=s.value)==null?void 0:W.length},{pane:a.withCtx(({tab:I,index:A})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Wo)(I==null?void 0:I.comp)),{related:I==null?void 0:I.relatedTables,compNames:r==null?void 0:r.compNames,compName:I==null?void 0:I.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:l.isDevMode,itemData:I==null?void 0:I.compData,childItemData:I==null?void 0:I.itemChildData,onChange:c,index:(I==null?void 0:I.id)??A,config:{showIndex:I==null?void 0:I.showIndex,allowMove:I==null?void 0:I.allowMove,viewport:I==null?void 0:I.viewport},onContentChange:y,onPageChange:p,onRowClick:v,onRouteUrl:m,parentTableId:I==null?void 0:I.tableId,allMapContents:l.allMapContents,children:I==null?void 0:I.children,level:1,onClickTrigger:u,onClickMainKey:w},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),ih=Xl._export_sfc(oh,[["__scopeId","data-v-ded4e0d9"]]),th={class:"type-select"},sh=["onClick"],ch={class:"list-icon"},uh={__name:"modelSelect",setup(l){const n=Xn(ol.pinia),{itemData:r}=ol.storeToRefs(n),o=s=>{const c=Y.cloneDeep(r.value);c.push({comp:s.comp,name:s.name,compData:[]}),n.setItemData(c)};return(s,c)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",th,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Zc),(p,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:m=>o(p)},[a.createElementVNode("div",ch,[a.createVNode(y,{name:p.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(p.name),1)],8,sh)]))),128))])}}},dh=Xl._export_sfc(uh,[["__scopeId","data-v-91799bf8"]]),ph={class:"fill-content"},fh={class:"operate-content"},hh={class:"collapse-title-content"},vh={class:"collapse-title-item"},mh={key:1},yh=["onClick"],gh={class:"icon-content"},bh={key:0,class:"edit-content"},kh=["onClick"],xh={class:"comp-child"},wh={__name:"modelFill",setup(l){const n=Xn(ol.pinia),{itemData:r,originalData:o}=ol.storeToRefs(n),s=a.ref([]);a.ref([]);const c=a.ref([]),y=a.ref([]),p=L=>{var W;let S=(W=Y.cloneDeep(y.value))==null?void 0:W.map((I,A)=>(L===A&&(I.content=!0),I));y.value=S},v=L=>{var W;let S=(W=Y.cloneDeep(y.value))==null?void 0:W.map((I,A)=>(L===A&&(I.content=!1),I));y.value=S,s.value=Y.cloneDeep(r.value)},m=(L,S)=>{var ee;let W=(ee=Y.cloneDeep(y.value))==null?void 0:ee.map((C,_)=>(L===_&&(C.content=!1),C));y.value=W;const I=Y.cloneDeep(r.value),A=I==null?void 0:I.filter((C,_)=>(_===L&&(C.name=S),C));n.setOriginalData(A),n.setItemData(A)};a.watch(()=>r.value,()=>{var L,S,W;!r.value||((L=r.value)==null?void 0:L.length)===0?s.value=[]:s.value=(S=Y.cloneDeep(r.value))==null?void 0:S.filter(I=>(I==null?void 0:I.comp)!=="methodButton"),c.value=s.value,y.value=(W=Y.cloneDeep(c.value))==null?void 0:W.map((I,A)=>({id:A,content:!1}))},{deep:!0,immediate:!0});const u=L=>Ao(L),w=(L,S,W)=>{var A,ee;if(!L)return;let I=Y.cloneDeep(r.value);I=(A=I==null?void 0:I.map((C,_)=>(_===W&&(C.compData=L),C)))==null?void 0:A.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),y.value=(ee=Y.cloneDeep(I))==null?void 0:ee.map((C,_)=>({id:_,content:!1})),n.setOriginalData(I),n.setItemData(I)},D=L=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const S=Y.cloneDeep(r.value),W=S==null?void 0:S.filter((I,A)=>A!==L);n.setOriginalData(W),n.setItemData(W),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(L,S)=>{const W=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",ph,[S[1]||(S[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",fh,[a.createVNode(Gs.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:I,index:A})=>{var ee,C,_,E,k,g,O,F,q,te;return[a.createElementVNode("div",hh,[a.createElementVNode("div",vh,[(C=(ee=y.value)==null?void 0:ee.find(Te=>Te.id===A))!=null&&C.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:I.name&&I.name!==""?"8px":"0px"})},a.toDisplayString(I.name),5)),(E=(_=y.value)==null?void 0:_.find(Te=>Te.id===A))!=null&&E.content?(a.openBlock(),a.createElementBlock("div",mh,[a.createVNode(pl.ssInput,{modelValue:I.name,"onUpdate:modelValue":Te=>I.name=Te,onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(k=y.value)==null?void 0:k.find(Te=>Te.id===A))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Te=>p(A),["stop"]),class:"icon-content"},[a.createVNode(W,{name:"Edit",style:{width:"16px",height:"16px"}})],8,yh))]),a.createElementVNode("div",gh,[(F=(O=y.value)==null?void 0:O.find(Te=>Te.id===A))!=null&&F.content?(a.openBlock(),a.createElementBlock("div",bh,[a.createVNode(W,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Te=>v(A),["stop"])},null,8,["onClick"]),a.createVNode(W,{name:"Save",onClick:a.withModifiers(Te=>m(A,I.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(te=(q=y.value)==null?void 0:q.find(Te=>Te.id===A))!=null&&te.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Te=>D(A),["stop"]),class:"icon-content"},[a.createVNode(W,{name:"Delete",style:{width:"16px",height:"16px"}})],8,kh))])])]}),content:a.withCtx(({item:I,index:A})=>{var ee,C;return[a.createElementVNode("div",xh,[a.createTextVNode(a.toDisplayString(u(I.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(I.comp+"Operate")),{itemContents:I==null?void 0:I.compData,originalItemContents:(C=(ee=c.value)==null?void 0:ee.find((_,E)=>E===A))==null?void 0:C.compData,onChange:_=>w(_,I,A)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},_h=Xl._export_sfc(wh,[["__scopeId","data-v-a46a44b9"]]),Ch={key:0,class:"show-content"},Eh={style:{display:"flex"}},Sh={__name:"modelShow",setup(l){const n=Xn(ol.pinia),{itemData:r}=ol.storeToRefs(n),o=a.ref([]);a.watch(()=>r.value,()=>{var c;!r.value||((c=r.value)==null?void 0:c.length)===0?o.value=[]:o.value=Y.cloneDeep(r.value)},{deep:!0,immediate:!0});const s=c=>Ao(c);return(c,y)=>{var p;return((p=o.value)==null?void 0:p.length)>0?(a.openBlock(),a.createElementBlock("div",Ch,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(v,m)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:m},[a.createElementVNode("div",Eh,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:m},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},Dh=Xl._export_sfc(Sh,[["__scopeId","data-v-3f3e863e"]]),Bh={class:"tabs-header"},Nh={class:"tabs-list"},Th={class:"tab-name"},Ah={class:"tab-actions"},zh=["onClick"],Mh=["onClick"],Ih=["onClick"],Oh={class:"model-operate"},Lh={class:"model-select",style:{display:"unset"}},Rh={class:"existing-components"},$h={class:"component-list"},Vh=["onClick"],Ph={class:"component-info"},Fh={class:"component-type"},jh={class:"component-name"},Hh={class:"model-fill"},Uh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref(!1),y=a.ref(""),p=a.ref({title:""}),v=a.ref(-1),m=a.ref(!1),u=a.ref(-1),w=a.ref(new WeakMap),D=a.ref(null),L=Xn(ol.pinia),{itemData:S}=ol.storeToRefs(L),W=()=>{y.value="新增标签页",p.value.title="",v.value=-1,c.value=!0},I=ie=>{y.value="修改标签页",p.value.title=s.value[ie].title,v.value=ie,c.value=!0},A=ie=>{const P=_(ie);w.value.delete(P),s.value.splice(ie,1),wa()},ee=()=>{if(p.value.title.trim()){if(v.value===-1){const ie={title:p.value.title,value:p.value.title,label:p.value.title,children:[],id:C()};s.value.push(ie)}else s.value[v.value].title=p.value.title,s.value[v.value].value=p.value.title,s.value[v.value].label=p.value.title;c.value=!1,wa()}},C=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,_=ie=>{const P=s.value[ie];return P.id||(P.id=C()),P.id},E=ie=>{var ye;u.value=ie;const P=_(ie);D.value=Y.cloneDeep(S.value);let j=w.value.get(P);!j&&((ye=s.value[ie].children)==null?void 0:ye.length)>0&&(j=F(s.value[ie].children)),j?L.setItemData(Y.cloneDeep(j)):L.setItemData([]),m.value=!0},k=a.computed(()=>{const ie=ol.useModelComp(ol.pinia),P=ol.storeToRefs(ie).itemData.value;return console.log("可用组件数据",P),!P||!Array.isArray(P)?[]:P.filter(j=>{var ye;if(j.comp==="Tabs"&&u.value>=0){const Se=_(u.value);if((ye=j.compData)==null?void 0:ye.some(Ze=>{var ya;return Ze.key==="stepList"&&((ya=Ze.contents)==null?void 0:ya.some(Ha=>Ha.id===Se))}))return!1}return!0})}),g=ie=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ie]||ie,O=ie=>{var P;try{const j=Y.cloneDeep(ie);j.id=Date.now()+Math.random(),j.comp==="Tabs"&&((P=j.compData)==null||P.forEach(Se=>{Se.key==="stepList"&&Se.contents&&Se.contents.forEach(ke=>{ke.id=C()})}));const ye=Y.cloneDeep(S.value);ye.push(j),L.setItemData(ye)}catch(j){console.error("添加组件失败:",j)}},F=ie=>ie.map(P=>{var j;switch(P.type){case"form":return{comp:"Form",name:P.value||"表单",compData:q(P.content)};case"table":return{comp:"Table",name:P.value||"表格",compData:te(P.content)};default:return{comp:"Unknown",name:P.value||"",compData:((j=P.content)==null?void 0:j.originalData)||[]}}}),q=ie=>{if(!ie)return[];const P=[];return ie.rowContents&&P.push({key:"formContent",contents:ie.rowContents}),ie.buttonValue&&P.push({key:"formButton",contents:ie.buttonValue}),typeof ie.isEnableWrap<"u"&&P.push({key:"enableWrap",contents:ie.isEnableWrap}),P},te=ie=>[],Te=()=>{if(u.value>=0&&u.value<s.value.length){const ie=_(u.value);w.value.set(ie,Y.cloneDeep(S.value)),s.value[u.value].children=be(S.value),console.log("保存后的数据",be(S.value))}m.value=!1,u.value=-1,D.value=null,wa()},Ee=()=>{D.value&&L.setItemData(Y.cloneDeep(D.value)),m.value=!1,u.value=-1,D.value=null},Q=()=>{m.value&&Ee()},be=ie=>{if(!Array.isArray(ie))throw new Error("sourceData must be an array");return ie.map((P,j)=>{if(!P||typeof P!="object")return P;const{comp:ye,name:Se,compData:ke}=P;switch(ye){case"Form":return{type:"form",content:Z(ke||[]),value:"表单"};case"Table":return{type:"table",content:de(ke||[]),value:"表格"};default:return{type:"xxx",content:je(ke||[]),value:""}}})},Z=ie=>{const P={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},j={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ie.forEach((ye,Se)=>{if(!ye||typeof ye!="object"){console.warn(`Invalid config at index ${Se}:`,ye);return}const{key:ke,contents:Ze}=ye,ya=j[ke];if(!ya){console.warn(`Unknown Form config key: ${ke}`);return}ke==="enableWrap"?P[ya]=!!Ze:P[ya]=Array.isArray(Ze)?Ze:[]}),P},de=ie=>{const P={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},j={header:"columns",tableContents:"tableData"};return ie.forEach((ye,Se)=>{if(!ye||typeof ye!="object"){console.warn(`Invalid config at index ${Se}:`,ye);return}const{key:ke,contents:Ze}=ye,ya=j[ke];if(!ya){console.warn(`Unknown Table config key: ${ke}`);return}P[ya]=Array.isArray(Ze)?Ze:[]}),P},je=ie=>(console.log("Default conversion logic - to be implemented"),{originalData:ie,processed:!1,componentType:"unknown"}),wa=()=>{const ie=[{key:"stepList",contents:s.value}];o("change",ie)};return a.watch(()=>r.itemContents,ie=>{if(ie&&ie.length>0){const P=ie.find(j=>j.key==="stepList");P&&P.contents&&(s.value=P.contents.map(j=>({title:j.title||"",value:j.value||j.title||"",label:j.label||j.title||"",children:j.children||[],id:j.id||C()})))}},{immediate:!0,deep:!0}),(ie,P)=>{const j=a.resolveComponent("svg-icon"),ye=a.resolveComponent("el-input"),Se=a.resolveComponent("el-form-item"),ke=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Bh,[P[6]||(P[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:W},[a.createVNode(j,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),P[5]||(P[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",Nh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(Ze,ya)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:ya},[a.createElementVNode("span",Th,a.toDisplayString(Ze.title),1),a.createElementVNode("div",Ah,[a.createElementVNode("button",{onClick:Ha=>I(ya)},"修改标题",8,zh),a.createElementVNode("button",{onClick:Ha=>E(ya)},"布局调整",8,Mh),a.createElementVNode("button",{onClick:Ha=>A(ya)},"删除",8,Ih)])]))),128))]),a.createVNode(wr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":P[2]||(P[2]=Ze=>c.value=Ze),title:y.value,onBeforeDestroy:P[3]||(P[3]=Ze=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:P[1]||(P[1]=Ze=>c.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:ee},"确定")]),default:a.withCtx(()=>[a.createVNode(ke,{model:p.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(Se,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ye,{modelValue:p.value.title,"onUpdate:modelValue":P[0]||(P[0]=Ze=>p.value.title=Ze),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(wr.ssDialog,{modelValue:m.value,"onUpdate:modelValue":P[4]||(P[4]=Ze=>m.value=Ze),title:"布局调整",fullScreen:"",onBeforeDestroy:Q},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:Ee},"取消"),a.createElementVNode("button",{onClick:Te},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",Oh,[a.createElementVNode("div",Lh,[a.createVNode(dh),a.createElementVNode("div",Rh,[P[8]||(P[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",$h,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,Ze=>(a.openBlock(),a.createElementBlock("div",{key:Ze.id,class:"component-item",onClick:ya=>O(Ze)},[a.createElementVNode("div",Ph,[a.createElementVNode("span",Fh,a.toDisplayString(g(Ze.comp)),1),a.createElementVNode("span",jh,a.toDisplayString(Ze.name),1)]),P[7]||(P[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Vh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:ie.innerWidth},[a.createVNode(Dh)])),a.createElementVNode("div",Hh,[a.createVNode(_h)])])]),_:1},8,["modelValue"])])}}},qh=Xl._export_sfc(Uh,[["__scopeId","data-v-9096ed0d"]]);function Wh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}function Kh(l){return{type:"line",...l}}function Gh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function Yh(l){return{type:"bar",barWidth:"60%",...l}}function Jh(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Xh(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Pn={line:{initBaseoptions:Wh,initSeries:Kh},bar:{initBaseoptions:Gh,initSeries:Yh},pie:{initBaseoptions:Jh,initSeries:Xh}},ks=Y.useMenuState(ol.pinia),Ac=(l,n)=>{var u;const r=[],o=[],{group:s,nameCol:c,valueCol:y}=n||{},p=l==null?void 0:l.find(w=>{const{name:D}=w;return D===s});if(!p)return{names:r,values:o};const v=(u=p==null?void 0:p.compData)==null?void 0:u.find(w=>{const{key:D}=w;return D==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(w=>{const D=w==null?void 0:w[0];let L=!1;al.isObject(D)&&(D!=null&&D.id)&&(L=!0);let S=c,W=y;L&&(S=S+1,W=W+1);const I=w==null?void 0:w[S],A=w==null?void 0:w[W];r.push(I),o.push(A)}),{names:r,values:o}},Zh=async l=>{const{menu:n,mainKey:r,detailGroup:o,detailNameCol:s,detailValueCol:c,isSelfDetail:y}=l||{};let p=null;const v=sessionStorage.getItem("systemKey");if(y&&ks.activeMenuPath&&(p=await oa.getItemData(`${ks.activeMenuPath}`,v,"")),!y){const m=n==null?void 0:n.join("/");p=await oa.getItemData(`${m}^${r}`,v,"")}return Ac(p,{group:o,nameCol:s,valueCol:c})},Qh=async l=>{const{menu:n,group:r,nameCol:o,valueCol:s}=l||{},c=n==null?void 0:n.join("/"),y=sessionStorage.getItem("systemKey"),p=await oa.getItemData(c,y,"");return Ac(p,{group:r,nameCol:o,valueCol:s})},Bt=async(l,n)=>{const r={names:[],values:[]},{menu:o,group:s,nameCol:c,valueCol:y}=l||{};if(!o.length||!s)return r;const{mainKey:p,group:v,nameCol:m,valueCol:u,isSelfDetail:w}=n||{};return p&&v&&pl.isNumber(m)&&pl.isNumber(u)?await Zh({menu:o,mainKey:p,detailGroup:v,detailNameCol:m,detailValueCol:u,isSelfDetail:w}):pl.isNumber(c)&&pl.isNumber(y)?await Qh({menu:o,group:s,nameCol:c,valueCol:y}):r},e4=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Pn==null?void 0:Pn[o];if(!c)return;const{initBaseoptions:y,initSeries:p}=c,v=y();v.title.text=s??"";const{names:m,values:u}=await Bt(n,r);if(!m||!u)return v;v.xAxis.data=m;const w=p({data:u});return v.series.push(w),v},a4=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Pn==null?void 0:Pn[o];if(!c)return;const{initBaseoptions:y,initSeries:p}=c,v=y();v.title.text=s??"";const{names:m,values:u}=await Bt(n,r);if(!m||!u)return v;v.xAxis.data=m;const w=p({data:u});return v.series.push(w),v},l4=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Pn==null?void 0:Pn[o];if(!c)return;const{initBaseoptions:y,initSeries:p}=c,v=y();v.title.text=s??"";const{names:m,values:u}=await Bt(n,r);if(!m||!u)return v;const w=[];for(let L=0;L<m.length;L++){const S=m[L],W=u[L];w.push({name:S,value:W})}const D=p({data:w});return v.series.push(D),v},r4=async(l=[])=>{var y,p,v;const n=((y=l==null?void 0:l.find(m=>m.key==="chartBaseConfig"))==null?void 0:y.contents)??{},r=((p=l==null?void 0:l.find(m=>m.key==="chartDataConfig"))==null?void 0:p.contents)??{},o=((v=l==null?void 0:l.find(m=>m.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=n;let c={};return s==="line"&&(c=await e4({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),s==="bar"&&(c=await a4({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),s==="pie"&&(c=await l4({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),c},n4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const n=l,r=a.ref({});a.onMounted(async()=>{const s=n==null?void 0:n.itemData;r.value=await r4(s)});const o=a.computed(()=>(n==null?void 0:n.height)||"300px");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:o.value})},[a.createVNode(Su.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),o4=Xl._export_sfc(n4,[["__scopeId","data-v-d4c081e8"]]),i4={class:"chart-module layout"},t4={class:"chart-module content"},s4={class:"chart-module content"},c4={class:"form-content"},u4={class:"dialog-footer"},d4={class:"form-content"},p4={class:"dialog-footer"},f4={class:"form-content"},h4={class:"dialog-footer"},v4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),c=a.ref([]),y=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],p=a.ref({}),v=()=>{var Fe;c.value=y(),(Fe=c.value)==null||Fe.forEach(Ie=>{var Qe;const $e=Ie==null?void 0:Ie.prop;Ie.value=(Qe=p==null?void 0:p.value)==null?void 0:Qe[$e]}),s.visible=!0},m=Fe=>{p.value=Fe},u=()=>{var Fe;s.visible=!1,o("change",(Fe=Ve())==null?void 0:Fe.compData)},w=a.reactive({visible:!1,width:"840",title:"数据配置"}),D=a.ref([]),L=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],S=a.ref({}),W=()=>{const Fe=D.value,Ie=Y.cloneDeep(Fe);return Ie==null||Ie.forEach($e=>{var Xa;const Qe=$e==null?void 0:$e.prop;$e.value=(Xa=S.value)==null?void 0:Xa[Qe]}),Ie},I=Fe=>{var $e;S.value=Fe;const Ie=W();D.value=Ie,o("change",($e=Ve())==null?void 0:$e.compData)},A=async()=>{const Fe=await oa.getMenusContent(),Ie=W();Ie==null||Ie.forEach($e=>{($e==null?void 0:$e.prop)==="menu"&&($e.contents=Fe)}),D.value=Ie,w.visible=!0,await Ze(S.value.menu),await re(S.value.group)},ee=a.reactive({visible:!1,width:"840",title:"详情页配置"}),C=a.ref([]),_=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],E=a.ref({}),k=()=>{const Fe=C.value,Ie=Y.cloneDeep(Fe);return Ie==null||Ie.forEach($e=>{var Xa;const Qe=$e==null?void 0:$e.prop;$e.value=(Xa=E.value)==null?void 0:Xa[Qe]}),Ie},g=Fe=>{var $e;E.value=Fe;const Ie=k();C.value=Ie,o("change",($e=Ve())==null?void 0:$e.compData)},O=async()=>{await Q();const Fe=Y.cloneDeep(F.value),Ie=k();Ie==null||Ie.forEach($e=>{var Xa;const Qe=$e==null?void 0:$e.prop;$e.value=(Xa=E==null?void 0:E.value)==null?void 0:Xa[Qe],Qe==="mainKey"&&($e.contents=Fe)}),C.value=Ie,ee.visible=!0},F=a.ref([]),q=a.ref([]),te=a.ref({}),Te=a.ref({}),Ee=()=>{const{compData:Fe}=ye.value||{},Ie=Fe==null?void 0:Fe.find(X=>{const{key:se}=X;return se==="header"}),$e=(Ie==null?void 0:Ie.contents)||[],Qe=$e==null?void 0:$e.filter((X,se)=>{const{label:ue}=X;return ue!=="操作"}),Xa=Qe==null?void 0:Qe.findIndex((X,se)=>{const{isMainKey:ue}=X;return ue});if(Xa<0)return[];const Wa=Fe==null?void 0:Fe.find(X=>{const{key:se}=X;return se==="tableContents"}),V=(Wa==null?void 0:Wa.contents)||[];return V==null?void 0:V.map(X=>{const se=X==null?void 0:X[0];let ue=Xa;al.isObject(se)&&(se!=null&&se.id)&&(ue=ue+1);const va=X==null?void 0:X[ue];return{label:va,value:va}})},Q=async()=>{const Fe=await Ee();F.value=Fe},be=async Fe=>{const Ie=sessionStorage.getItem("systemKey");return await oa.getItemData(Fe,Ie,"")},Z=async Fe=>{const Ie=Fe;q.value=Ie==null?void 0:Ie.map($e=>{const{name:Qe}=$e;return te.value[Qe]=$e,{label:Qe,value:Qe}})},de=Fe=>{const{comp:Ie,compData:$e}=Te.value||{};if(Ie==="Table"){let Qe=k();Qe=Qe.filter(Xa=>{const{prop:Wa}=Xa;return Wa!=="formItems"}),ya(Qe,$e),C.value=Qe}},je=async()=>{var $e,Qe;const Fe=($e=E==null?void 0:E.value)==null?void 0:$e.mainKey,Ie=(Qe=S==null?void 0:S.value)==null?void 0:Qe.menu;if(Fe){const Wa=`${Ie==null?void 0:Ie.join("/")}^${Fe}`,V=await be(Wa);await Z(V);const $=k();$==null||$.forEach(X=>{(X==null?void 0:X.prop)==="group"&&(X.contents=q.value)}),C.value=$}};a.watch(()=>{var Fe;return(Fe=E==null?void 0:E.value)==null?void 0:Fe.mainKey},async(Fe,Ie)=>{Fe!=Ie&&Fe&&await je()});const wa=async Fe=>{const Ie=te.value[Fe];Te.value=Ie,await de()};a.watch(()=>{var Fe;return(Fe=E==null?void 0:E.value)==null?void 0:Fe.group},async(Fe,Ie)=>{Fe!=Ie&&Fe&&wa(Fe)});const ie=async()=>{var Ie;await je();const Fe=(Ie=E.value)==null?void 0:Ie.group;await wa(Fe)},P=a.ref([]),j=a.ref({}),ye=a.ref({}),Se=async Fe=>{const Ie=Fe==null?void 0:Fe.join("/"),$e=sessionStorage.getItem("systemKey");return await oa.getItemData(Ie,$e,"")},ke=async Fe=>{const Ie=await Se(Fe);P.value=Ie==null?void 0:Ie.map($e=>{const{name:Qe}=$e;return j.value[Qe]=$e,{label:Qe,value:Qe}})},Ze=async(Fe,Ie)=>{await ke(Fe);const $e=W();$e==null||$e.forEach(Qe=>{(Qe==null?void 0:Qe.prop)==="group"&&(Qe.contents=P.value)}),D.value=$e};a.watch(()=>{var Fe;return(Fe=S==null?void 0:S.value)==null?void 0:Fe.menu},async(Fe,Ie)=>{const $e=Fe==null?void 0:Fe.join("/"),Qe=Ie==null?void 0:Ie.join("/");$e!=Qe&&await Ze(Fe)});const ya=(Fe,Ie)=>{const $e=Ie==null?void 0:Ie.find(V=>{const{key:$}=V;return $==="header"}),Qe=($e==null?void 0:$e.contents)||[],Xa=Qe==null?void 0:Qe.filter((V,$)=>{const{label:X}=V;return X!=="操作"}),Wa=Xa==null?void 0:Xa.map((V,$)=>{const{label:X}=V;return{label:X,value:$}});Fe==null||Fe.forEach(V=>{const $=V==null?void 0:V.prop;($==="nameCol"||$==="valueCol")&&(V.contents=Wa)})},Ha=Fe=>{const{comp:Ie,compData:$e}=ye.value||{};if(Ie==="Table"){S.value.formItems=[];let Qe=W();Qe=Qe.filter(Xa=>{const{prop:Wa}=Xa;return Wa!=="formItems"}),ya(Qe,$e),D.value=Qe}},re=async Fe=>{const Ie=j.value[Fe];ye.value=Ie,await Ha()};a.watch(()=>{var Fe;return(Fe=S==null?void 0:S.value)==null?void 0:Fe.group},async(Fe,Ie)=>{Fe!=Ie&&re(Fe)});const la=async()=>{var $e,Qe;const Fe=($e=S.value)==null?void 0:$e.menu;await Ze(Fe);const Ie=(Qe=S.value)==null?void 0:Qe.group;await re(Ie)},Ve=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:p.value},{key:"chartDataConfig",contents:S.value},{key:"chartDetailConfig",contents:E.value}]}),ba=()=>{s.visible=!1,w.visible=!1,ee.visible=!1};return a.onMounted(async()=>{var Ie,$e,Qe;D.value=L(),C.value=_();const Fe=r==null?void 0:r.itemContents;p.value=((Ie=Fe==null?void 0:Fe.find(Xa=>Xa.key==="chartBaseConfig"))==null?void 0:Ie.contents)??{},S.value=(($e=Fe==null?void 0:Fe.find(Xa=>Xa.key==="chartDataConfig"))==null?void 0:$e.contents)??{},await la(),E.value=((Qe=Fe==null?void 0:Fe.find(Xa=>Xa.key==="chartDetailConfig"))==null?void 0:Qe.contents)??{},await ie()}),(Fe,Ie)=>{const $e=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",i4,[Ie[4]||(Ie[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode($e,{id:"themeButton",onClick:Ie[0]||(Ie[0]=Qe=>v())},{default:a.withCtx(()=>Ie[3]||(Ie[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",t4,[Ie[6]||(Ie[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:Ie[1]||(Ie[1]=Qe=>A())},{default:a.withCtx(()=>Ie[5]||(Ie[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",s4,[Ie[8]||(Ie[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:Ie[2]||(Ie[2]=Qe=>O())},{default:a.withCtx(()=>Ie[7]||(Ie[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(wr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:ba,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",c4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",u4,[a.createVNode($e,{class:"cancel-button button",onClick:ba,id:"themeBorderButton"},{default:a.withCtx(()=>Ie[9]||(Ie[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode($e,{class:"ok-button button",onClick:u,id:"themeButton"},{default:a.withCtx(()=>Ie[10]||(Ie[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(wr.ssDialog,{visible:w.visible,title:w.title,onBeforeDestroy:ba,width:w.width},{default:a.withCtx(()=>[a.createElementVNode("div",d4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:I},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",p4,[a.createVNode($e,{class:"cancel-button button",onClick:ba,id:"themeBorderButton"},{default:a.withCtx(()=>Ie[11]||(Ie[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode($e,{class:"ok-button button",onClick:ba,id:"themeButton"},{default:a.withCtx(()=>Ie[12]||(Ie[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(wr.ssDialog,{visible:ee.visible,title:ee.title,onBeforeDestroy:ba,width:ee.width},{default:a.withCtx(()=>[a.createElementVNode("div",f4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",h4,[a.createVNode($e,{class:"cancel-button button",onClick:ba,id:"themeBorderButton"},{default:a.withCtx(()=>Ie[13]||(Ie[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode($e,{class:"ok-button button",onClick:ba,id:"themeButton"},{default:a.withCtx(()=>Ie[14]||(Ie[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),m4=Xl._export_sfc(v4,[["__scopeId","data-v-fe119645"]]),y4={class:"layout"},g4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:n}){const r=n,o=l;a.onMounted(async()=>{});const s=a.computed(()=>Y.cloneDeep(o==null?void 0:o.itemData)||[]),c=a.computed(()=>{var u;const m=(u=s==null?void 0:s.value)==null?void 0:u.find(w=>{const{key:D}=w;return D==="baseConfig"});return m==null?void 0:m.contents}),y=a.computed(()=>{var u;const m=(u=s==null?void 0:s.value)==null?void 0:u.find(w=>{const{key:D}=w;return D==="children"});return m==null?void 0:m.contents}),p=a.computed(()=>{let m=Y.cloneDeep(y.value)||[];const u=m.length;let w=0;const D=[];if(m=m.map(L=>{const S=L.span;return S?(L.span=Number(S),w=w+L.span):D.push(L),L}),w<24){const L=Math.floor((24-w)/u);D.forEach(S=>{S.span=L})}return m}),v=m=>{r("rowClick",m)};return(m,u)=>{var L;const w=a.resolveComponent("el-col"),D=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",y4,[a.createVNode(D,{style:a.normalizeStyle({height:(L=c.value)==null?void 0:L.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(S,W)=>(a.openBlock(),a.createBlock(w,{span:S==null?void 0:S.span},{default:a.withCtx(()=>{var I;return[a.unref(To)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Wo)(S.comp)),{key:a.unref(Jn),compName:S.name,index:(S==null?void 0:S.id)??W,height:(I=c.value)==null?void 0:I.height,itemData:S==null?void 0:S.compData,childItemData:S==null?void 0:S.itemChildData,onChange:a.unref(Ti),onContentChange:a.unref(Ai),onPageChange:a.unref(zi),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),b4=Xl._export_sfc(g4,[["__scopeId","data-v-ab9a36ed"]]),k4={class:"layout-operate"},x4={class:"layout-module"},w4={class:"collapse-title-item"},_4={class:"collapse-title"},C4={class:"icon-content"},E4=["onClick"],S4={class:"comp-child"},D4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n;a.onMounted(()=>{W()});const s=a.ref({}),c=a.ref({}),y=a.ref([]),p=E=>[{label:"高度",prop:"height",type:"input",value:E==null?void 0:E.height}],v=E=>{c.value=E,o("change",_(),!0)},m=a.ref([]),u=a.ref([]),w=E=>[{label:"占比",prop:"span",type:"input",value:E==null?void 0:E.span}],D=a.computed(()=>{const E=r==null?void 0:r.itemContents;return Y.cloneDeep(E)}),L=a.computed(()=>{const E=D==null?void 0:D.value,k=E==null?void 0:E.find(g=>{const{key:O}=g;return O==="baseConfig"});return k==null?void 0:k.contents}),S=a.computed(()=>{const E=D==null?void 0:D.value,k=E==null?void 0:E.find(g=>{const{key:O}=g;return O==="children"});return k==null?void 0:k.contents}),W=()=>{var E;s.value=D.value||{},m.value=(S==null?void 0:S.value)||[],y.value=p(),y.value=(E=y.value)==null?void 0:E.map(k=>{var O;const{prop:g}=k;return k.value=(O=L.value)==null?void 0:O[g],k})};a.watch(()=>{var E;return(E=S==null?void 0:S.value)==null?void 0:E.length},()=>{var E;m.value=(S==null?void 0:S.value)||[],u.value=(E=S.value)==null?void 0:E.map(k=>w(k))},{immediate:!0});const I=(E,k)=>{const g=Y.cloneDeep(S==null?void 0:S.value);g[k].span=E.span,m.value=g,o("change",_(),!0)},A=E=>Ao(E),ee=(E,k,g)=>{if(!E)return;const O=Y.cloneDeep(S==null?void 0:S.value);O[g]&&(O[g].compData=E,m.value=O,o("change",_(),!0))},C=E=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let k=Y.cloneDeep(S==null?void 0:S.value);k=k==null?void 0:k.filter((g,O)=>E!==O),m.value=k,o("change",_(),!0),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>({compData:[{key:"baseConfig",contents:c.value},{key:"children",contents:m==null?void 0:m.value}]});return(E,k)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",k4,[a.createElementVNode("div",x4,[k[1]||(k[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(pl.ssForm,{rowContents:y.value,isEnableWrap:!0,onChange:k[0]||(k[0]=O=>v(O))},null,8,["rowContents"])])]),a.createVNode(Gs.default,{class:"collapse-content",collapseContents:S.value},{title:a.withCtx(({item:O,index:F})=>[a.createElementVNode("div",w4,[a.createElementVNode("div",_4,a.toDisplayString(O.name),1),a.createElementVNode("div",C4,[a.createElementVNode("div",{onClick:a.withModifiers(q=>C(F),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,E4)])])]),content:a.withCtx(({item:O,index:F})=>[a.createElementVNode("div",S4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:u.value[F],key:F,isEnableWrap:!0,onChange:q=>I(q,F)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A(O.comp+"Operate")),{itemContents:O==null?void 0:O.compData,originalItemContents:O.compData,onChange:q=>ee(q,O,F)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),B4=Xl._export_sfc(D4,[["__scopeId","data-v-ba05456e"]]),N4=typeof window<"u";var xs;N4&&((xs=window==null?void 0:window.navigator)!=null&&xs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function un(l){return l==null}function zc(){}const T4=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(T4)));function A4(){const l=new Map;return{on(n,r){const o=l.get(n);o!=null&&o.add(r)||l.set(n,new Set([r]))},off(n,r){const o=l.get(n);o&&o.delete(r)},clear(n){const r=l.get(n);r&&r.clear()},clearAll(){l.clear()},emit(n,...r){const o=l.get(n);o&&o.forEach(s=>{s(...r)})}}}function ws(l,n=16){if(typeof l!="function")return zc;const r=(...c)=>{l(...c)};if(n<=0)return Mc(r);let o=0,s;return function(...c){const y=Date.now(),p=y-o;clearTimeout(s),p>=n?(o=y,r(...c)):s=setTimeout(()=>{o=Date.now(),r(...c)},Math.max(0,n-p))}}function z4(l,n=100){if(typeof l!="function")return zc;const r=(...s)=>{l(...s)};if(n<=0)return Mc(r);let o;return function(...s){clearTimeout(o),o=setTimeout(()=>{r(...s)},n)}}function Mc(l){if(typeof l!="function")return l;let n=!1,r,o;return function(...s){return r=s,n||(n=!0,o=Promise.resolve().then(()=>(n=!1,o=void 0,l(...r)))),o}}const jo=new Set,Ic=new WeakMap;function M4(){jo.forEach(l=>{l(...Ic.get(l))}),jo.clear()}function Xr(l,...n){if(typeof l!="function")return l;Ic.set(l,n),!jo.has(l)&&(jo.add(l),jo.size===1&&Promise.resolve().then(M4))}const Oc=Symbol("LAYOUT_KEY"),Lc=Symbol("EMITTER_KEY");function I4(l){let n=0,r;for(let o=0,s=l.length;o<s;o++)r=l[o].y+l[o].h,r>n&&(n=r);return n}function wt(l){const n=Array(l.length);for(let r=0,o=l.length;r<o;r++)n[r]=O4(l[r]);return n}function O4(l){return{...l}}function Rc(l,n){return!(l===n||l.x+l.w<=n.x||l.x>=n.x+n.w||l.y+l.h<=n.y||l.y>=n.y+n.h)}function Co(l,n,r){const o=Vc(l),s=Pc(l),c=Array(l.length);for(let y=0,p=s.length;y<p;y++){let v=s[y];v.static||(v=L4(o,v,n,r),o.push(v)),c[l.findIndex(m=>m.i===v.i)]=v,v.moved=!1}return c}function L4(l,n,r,o){if(r)for(;n.y>0&&!Ho(l,n);)n.y--;else if(o){const c=o[n.i].y;for(;n.y>c&&!Ho(l,n);)n.y--}let s;for(;s=Ho(l,n);)n.y=s.y+s.h;return n}function R4(l,n){const r=Vc(l);for(let o=0,s=l.length;o<s;o++){const c=l[o];if(c.x+c.w>n.cols&&(c.x=n.cols-c.w),c.x<0&&(c.x=0,c.w=n.cols),!c.static)r.push(c);else for(;Ho(r,c);)c.y++}return l}function _s(l,n){for(let r=0,o=l.length;r<o;r++)if(l[r].i===n)return l[r]}function Ho(l,n){for(let r=0,o=l.length;r<o;r++)if(Rc(l[r],n))return l[r]}function $c(l,n){return l.filter(r=>Rc(r,n))}function Vc(l){return l.filter(n=>n.static)}function _t(l,n,r,o,s=!1,c=!1){if(n.static)return l;const y=n.x,p=n.y,v=o&&n.y>o;typeof r=="number"&&(n.x=r),typeof o=="number"&&(n.y=o),n.moved=!0;let m=Pc(l);v&&(m=m.reverse());const u=$c(m,n);if(c&&u.length)return n.x=y,n.y=p,n.moved=!1,l;for(let w=0,D=u.length;w<D;w++){const L=u[w];L.moved||n.y>L.y&&n.y-L.y>L.h/4||(L.static?l=Cs(l,L,n,s):l=Cs(l,n,L,s))}return l}function Cs(l,n,r,o){if(o){const s={x:r.x,y:r.y,w:r.w,h:r.h};if(s.y=Math.max(n.y-r.h,0),!Ho(l,s))return _t(l,r,void 0,s.y,!1)}return _t(l,r,void 0,r.y+1,!1)}function $4(l,n,r,o){const s="translate3d("+n+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:o+"px",position:"absolute"}}function V4(l,n,r,o){const s="translate3d("+n*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:o+"px",position:"absolute"}}function P4(l,n,r,o){return{top:l+"px",left:n+"px",width:r+"px",height:o+"px",position:"absolute"}}function F4(l,n,r,o){return{top:l+"px",right:n+"px",width:r+"px",height:o+"px",position:"absolute"}}function Pc(l){return Array.from(l).sort(function(n,r){return n.y===r.y&&n.x===r.x?0:n.y>r.y||n.y===r.y&&n.x>r.x?1:-1})}function j4(l,n){n=n||"Layout";const r=["x","y","w","h"],o=[];if(!Array.isArray(l))throw new Error(n+" must be an array!");for(let s=0,c=l.length;s<c;s++){const y=l[s];for(let p=0;p<r.length;p++)if(typeof y[r[p]]!="number")throw new Error("VueGridLayout: "+n+"["+s+"]."+r[p]+" must be a number!");if(y.i===void 0||y.i===null)throw new Error("VueGridLayout: "+n+"["+s+"].i cannot be null!");if(typeof y.i!="number"&&typeof y.i!="string")throw new Error("VueGridLayout: "+n+"["+s+"].i must be a string or number!");if(o.indexOf(y.i)>=0)throw new Error("VueGridLayout: "+n+"["+s+"].i must be unique!");if(o.push(y.i),y.static!==void 0&&typeof y.static!="boolean")throw new Error("VueGridLayout: "+n+"["+s+"].static must be a boolean!")}}function H4(l,n="vgl"){const r=()=>`${n}-${l}`;return{b:r,be:o=>`${r()}__${o}`,bm:o=>`${r()}--${o}`,bem:(o,s)=>`${r()}__${o}--${s}`}}function Es(l){return U4(l)}function U4(l){var n;const r=((n=l.target)==null?void 0:n.offsetParent)||document.body,o=l.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),s=l.clientX+r.scrollLeft-o.left,c=l.clientY+r.scrollTop-o.top;return{x:s,y:c}}function Ss(l,n,r,o){return q4(l)?{deltaX:r-l,deltaY:o-n,lastX:l,lastY:n,x:r,y:o}:{deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}}function q4(l){return typeof l=="number"&&!Number.isNaN(l)}function W4(l,n){const r=jc(l);let o=r[0];for(let s=1,c=r.length;s<c;s++){const y=r[s];n>l[y]&&(o=y)}return o}function Fc(l,n){if(!n[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return n[l]}function K4(l,n,r,o,s,c,y){if(n[o])return wt(n[o]);let p=l;const v=jc(r),m=v.slice(v.indexOf(o));for(let u=0,w=m.length;u<w;u++){const D=m[u];if(n[D]){p=n[D];break}}return p=wt(p||[]),Co(R4(p,{cols:c}),y)}function jc(l){return Object.keys(l).sort((n,r)=>l[n]-l[r])}let G4="auto";function Y4(){return typeof document<"u"}function Ds(){return Y4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):G4}var Po={exports:{}},J4=Po.exports,Bs;function X4(){return Bs||(Bs=1,function(l,n){(function(r,o){l.exports=o()})(J4,function(){function r(t,i){var f=Object.keys(t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(t);i&&(b=b.filter(function(x){return Object.getOwnPropertyDescriptor(t,x).enumerable})),f.push.apply(f,b)}return f}function o(t){for(var i=1;i<arguments.length;i++){var f=arguments[i]!=null?arguments[i]:{};i%2?r(Object(f),!0).forEach(function(b){v(t,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(b){Object.defineProperty(t,b,Object.getOwnPropertyDescriptor(f,b))})}return t}function s(t){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s(t)}function c(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function y(t,i){for(var f=0;f<i.length;f++){var b=i[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(t,W(b.key),b)}}function p(t,i,f){return i&&y(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t,i,f){return(i=W(i))in t?Object.defineProperty(t,i,{value:f,enumerable:!0,configurable:!0,writable:!0}):t[i]=f,t}function m(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&w(t,i)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},u(t)}function w(t,i){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},w(t,i)}function D(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(t){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var f,b=u(t);if(i){var x=u(this).constructor;f=Reflect.construct(b,arguments,x)}else f=b.apply(this,arguments);return function(M,U){if(U&&(typeof U=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(M)}(this,f)}}function S(){return S=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,f){var b=function(M,U){for(;!Object.prototype.hasOwnProperty.call(M,U)&&(M=u(M))!==null;);return M}(t,i);if(b){var x=Object.getOwnPropertyDescriptor(b,i);return x.get?x.get.call(arguments.length<3?t:f):x.value}},S.apply(this,arguments)}function W(t){var i=function(f,b){if(typeof f!="object"||f===null)return f;var x=f[Symbol.toPrimitive];if(x!==void 0){var M=x.call(f,b);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(t,"string");return typeof i=="symbol"?i:i+""}var I=function(t){return!(!t||!t.Window)&&t instanceof t.Window},A=void 0,ee=void 0;function C(t){A=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),ee=t}function _(t){return I(t)?t:(t.ownerDocument||t).defaultView||ee.window}typeof window<"u"&&window&&C(window);var E=function(t){return!!t&&s(t)==="object"},k=function(t){return typeof t=="function"},g={window:function(t){return t===ee||I(t)},docFrag:function(t){return E(t)&&t.nodeType===11},object:E,func:k,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||s(t)!=="object")return!1;var i=_(t)||ee;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?t instanceof Element||t instanceof i.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return E(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return E(t)&&t.length!==void 0&&k(t.splice)}};function O(t){var i=t.interaction;if(i.prepared.name==="drag"){var f=i.prepared.axis;f==="x"?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):f==="y"&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function F(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="drag"){var b=f.prepared.axis;if(b==="x"||b==="y"){var x=b==="x"?"y":"x";i.page[x]=f.coords.start.page[x],i.client[x]=f.coords.start.client[x],i.delta[x]=0}}}var q={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,b=t.defaults;f.prototype.draggable=q.draggable,i.map.drag=q,i.methodDict.drag="draggable",b.actions.drag=q.defaults},listeners:{"interactions:before-action-move":O,"interactions:action-resume":O,"interactions:action-move":F,"auto-start:check":function(t){var i=t.interaction,f=t.interactable,b=t.buttons,x=f.options.drag;if(x&&x.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(b&f.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:x.lockAxis==="start"?x.startAxis:x.lockAxis},!1}},draggable:function(t){return g.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):g.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:O,move:F,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},te=q,Te={init:function(t){var i=t;Te.document=i.document,Te.DocumentFragment=i.DocumentFragment||Ee,Te.SVGElement=i.SVGElement||Ee,Te.SVGSVGElement=i.SVGSVGElement||Ee,Te.SVGElementInstance=i.SVGElementInstance||Ee,Te.Element=i.Element||Ee,Te.HTMLElement=i.HTMLElement||Te.Element,Te.Event=i.Event,Te.Touch=i.Touch||Ee,Te.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Ee(){}var Q=Te,be={init:function(t){var i=Q.Element,f=t.navigator||{};be.supportsTouch="ontouchstart"in t||g.func(t.DocumentTouch)&&Q.document instanceof t.DocumentTouch,be.supportsPointerEvent=f.pointerEnabled!==!1&&!!Q.PointerEvent,be.isIOS=/iP(hone|od|ad)/.test(f.platform),be.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),be.isIe9=/MSIE 9/.test(f.userAgent),be.isOperaMobile=f.appName==="Opera"&&be.supportsTouch&&/Presto/.test(f.userAgent),be.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",be.pEventTypes=be.supportsPointerEvent?Q.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,be.wheelEvent=Q.document&&"onmousewheel"in Q.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Z=be;function de(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function je(t,i){for(;g.element(t);){if(ie(t,i))return t;t=wa(t)}return null}function wa(t){var i=t.parentNode;if(g.docFrag(i)){for(;(i=i.host)&&g.docFrag(i););return i}return i}function ie(t,i){return ee!==A&&(i=i.replace(/\/deep\//g," ")),t[Z.prefixedMatchesSelector](i)}var P=function(t){return t.parentNode||t.host};function j(t,i){for(var f,b=[],x=t;(f=P(x))&&x!==i&&f!==x.ownerDocument;)b.unshift(x),x=f;return b}function ye(t,i,f){for(;g.element(t);){if(ie(t,i))return!0;if((t=wa(t))===f)return ie(t,i)}return!1}function Se(t){return t.correspondingUseElement||t}function ke(t){var i=t instanceof Q.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function Ze(t){var i,f=ke(t);if(!Z.isIOS7&&f){var b={x:(i=(i=_(t))||ee).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};f.left+=b.x,f.right+=b.x,f.top+=b.y,f.bottom+=b.y}return f}function ya(t){for(var i=[];t;)i.push(t),t=wa(t);return i}function Ha(t){return!!g.string(t)&&(Q.document.querySelector(t),!0)}function re(t,i){for(var f in i)t[f]=i[f];return t}function la(t,i,f){return t==="parent"?wa(f):t==="self"?i.getRect(f):je(f,t)}function Ve(t,i,f,b){var x=t;return g.string(x)?x=la(x,i,f):g.func(x)&&(x=x.apply(void 0,b)),g.element(x)&&(x=Ze(x)),x}function ba(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Fe(t){return!t||"x"in t&&"y"in t||((t=re({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function Ie(t,i,f){t.left&&(i.left+=f.x),t.right&&(i.right+=f.x),t.top&&(i.top+=f.y),t.bottom&&(i.bottom+=f.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function $e(t,i,f){var b=f&&t.options[f];return ba(Ve(b&&b.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Qe(t,i){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(ve){return!0},b=arguments.length>3?arguments[3]:void 0;if(b=b||{},g.string(t)&&t.search(" ")!==-1&&(t=Xa(t)),g.array(t))return t.forEach(function(ve){return Qe(ve,i,f,b)}),b;if(g.object(t)&&(i=t,t=""),g.func(i)&&f(t))b[t]=b[t]||[],b[t].push(i);else if(g.array(i))for(var x=0,M=i;x<M.length;x++){var U=M[x];Qe(t,U,f,b)}else if(g.object(i))for(var J in i)Qe(Xa(J).map(function(ve){return"".concat(t).concat(ve)}),i[J],f,b);return b}function Xa(t){return t.trim().split(/ +/)}var Wa=function(t,i){return Math.sqrt(t*t+i*i)},V=["webkit","moz"];function $(t,i){t.__set||(t.__set={});var f=function(x){if(V.some(function(M){return x.indexOf(M)===0}))return 1;typeof t[x]!="function"&&x!=="__set"&&Object.defineProperty(t,x,{get:function(){return x in t.__set?t.__set[x]:t.__set[x]=i[x]},set:function(M){t.__set[x]=M},configurable:!0})};for(var b in i)f(b);return t}function X(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function se(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function ue(t){return t instanceof Q.Event||t instanceof Q.Touch}function va(t,i,f){return t=t||"page",(f=f||{}).x=i[t+"X"],f.y=i[t+"Y"],f}function ra(t,i){return i=i||{x:0,y:0},Z.isOperaMobile&&ue(t)?(va("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):va("page",t,i),i}function Le(t){return g.number(t.pointerId)?t.pointerId:t.identifier}function Ce(t,i,f){var b=i.length>1?da(i):i[0];ra(b,t.page),function(x,M){M=M||{},Z.isOperaMobile&&ue(x)?va("screen",x,M):va("client",x,M)}(b,t.client),t.timeStamp=f}function Sa(t){var i=[];return g.array(t)?(i[0]=t[0],i[1]=t[1]):t.type==="touchend"?t.touches.length===1?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):t.touches.length===0&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function da(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<t.length;f++){var b=t[f];for(var x in i)i[x]+=b[x]}for(var M in i)i[M]/=t.length;return i}function Fa(t){if(!t.length)return null;var i=Sa(t),f=Math.min(i[0].pageX,i[1].pageX),b=Math.min(i[0].pageY,i[1].pageY),x=Math.max(i[0].pageX,i[1].pageX),M=Math.max(i[0].pageY,i[1].pageY);return{x:f,y:b,left:f,top:b,right:x,bottom:M,width:x-f,height:M-b}}function ja(t,i){var f=i+"X",b=i+"Y",x=Sa(t),M=x[0][f]-x[1][f],U=x[0][b]-x[1][b];return Wa(M,U)}function me(t,i){var f=i+"X",b=i+"Y",x=Sa(t),M=x[1][f]-x[0][f],U=x[1][b]-x[0][b];return 180*Math.atan2(U,M)/Math.PI}function Je(t){return g.string(t.pointerType)?t.pointerType:g.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof Q.Touch?"touch":"mouse"}function ze(t){var i=g.func(t.composedPath)?t.composedPath():t.path;return[Se(i?i[0]:t.target),Se(t.currentTarget)]}var Xe=function(){function t(i){c(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return p(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Xe.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var pa=function(t,i){for(var f=0;f<i.length;f++){var b=i[f];t.push(b)}return t},ua=function(t){return pa([],t)},Ae=function(t,i){for(var f=0;f<t.length;f++)if(i(t[f],f,t))return f;return-1},za=function(t,i){return t[Ae(t,i)]},fa=function(t){m(f,t);var i=L(f);function f(b,x,M){var U;c(this,f),(U=i.call(this,x._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var J=M==="dragleave"?b.prev:b.cur,ve=J.element,Oe=J.dropzone;return U.type=M,U.target=ve,U.currentTarget=ve,U.dropzone=Oe,U.dragEvent=x,U.relatedTarget=x.target,U.draggable=x.interactable,U.timeStamp=x.timeStamp,U}return p(f,[{key:"reject",value:function(){var b=this,x=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&x.cur.dropzone===this.dropzone&&x.cur.element===this.target)if(x.prev.dropzone=this.dropzone,x.prev.element=this.target,x.rejected=!0,x.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var M=x.activeDrops,U=Ae(M,function(ve){var Oe=ve.dropzone,we=ve.element;return Oe===b.dropzone&&we===b.target});x.activeDrops.splice(U,1);var J=new f(x,this.dragEvent,"dropdeactivate");J.dropzone=this.dropzone,J.target=this.target,this.dropzone.fire(J)}else this.dropzone.fire(new f(x,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}(Xe);function Ua(t,i){for(var f=0,b=t.slice();f<b.length;f++){var x=b[f],M=x.dropzone,U=x.element;i.dropzone=M,i.target=U,M.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function ga(t,i){for(var f=function(M,U){for(var J=[],ve=0,Oe=M.interactables.list;ve<Oe.length;ve++){var we=Oe[ve];if(we.options.drop.enabled){var ea=we.options.drop.accept;if(!(g.element(ea)&&ea!==U||g.string(ea)&&!ie(U,ea)||g.func(ea)&&!ea({dropzone:we,draggableElement:U})))for(var La=0,cl=we.getAllElements();La<cl.length;La++){var rl=cl[La];rl!==U&&J.push({dropzone:we,element:rl,rect:we.getRect(rl)})}}}return J}(t,i),b=0;b<f.length;b++){var x=f[b];x.rect=x.dropzone.getRect(x.element)}return f}function He(t,i,f){for(var b=t.dropState,x=t.interactable,M=t.element,U=[],J=0,ve=b.activeDrops;J<ve.length;J++){var Oe=ve[J],we=Oe.dropzone,ea=Oe.element,La=Oe.rect,cl=we.dropCheck(i,f,x,M,ea,La);U.push(cl?ea:null)}var rl=function(ul){for(var Cl,dl,Al,Ll=[],Zl=0;Zl<ul.length;Zl++){var Nl=ul[Zl],Wl=ul[Cl];if(Nl&&Zl!==Cl)if(Wl){var Hr=P(Nl),_r=P(Wl);if(Hr!==Nl.ownerDocument)if(_r!==Nl.ownerDocument)if(Hr!==_r){Ll=Ll.length?Ll:j(Wl);var Jr=void 0;if(Wl instanceof Q.HTMLElement&&Nl instanceof Q.SVGElement&&!(Nl instanceof Q.SVGSVGElement)){if(Nl===_r)continue;Jr=Nl.ownerSVGElement}else Jr=Nl;for(var tn=j(Jr,Wl.ownerDocument),fn=0;tn[fn]&&tn[fn]===Ll[fn];)fn++;var vo=[tn[fn-1],tn[fn],Ll[fn]];if(vo[0])for(var On=vo[0].lastChild;On;){if(On===vo[1]){Cl=Zl,Ll=tn;break}if(On===vo[2])break;On=On.previousSibling}}else Al=Wl,(parseInt(_(dl=Nl).getComputedStyle(dl).zIndex,10)||0)>=(parseInt(_(Al).getComputedStyle(Al).zIndex,10)||0)&&(Cl=Zl);else Cl=Zl}else Cl=Zl}return Cl}(U);return b.activeDrops[rl]||null}function We(t,i,f){var b=t.dropState,x={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(x.activate=new fa(b,f,"dropactivate"),x.activate.target=null,x.activate.dropzone=null),f.type==="dragend"&&(x.deactivate=new fa(b,f,"dropdeactivate"),x.deactivate.target=null,x.deactivate.dropzone=null),b.rejected||(b.cur.element!==b.prev.element&&(b.prev.dropzone&&(x.leave=new fa(b,f,"dragleave"),f.dragLeave=x.leave.target=b.prev.element,f.prevDropzone=x.leave.dropzone=b.prev.dropzone),b.cur.dropzone&&(x.enter=new fa(b,f,"dragenter"),f.dragEnter=b.cur.element,f.dropzone=b.cur.dropzone)),f.type==="dragend"&&b.cur.dropzone&&(x.drop=new fa(b,f,"drop"),f.dropzone=b.cur.dropzone,f.relatedTarget=b.cur.element),f.type==="dragmove"&&b.cur.dropzone&&(x.move=new fa(b,f,"dropmove"),f.dropzone=b.cur.dropzone)),x}function Ne(t,i){var f=t.dropState,b=f.activeDrops,x=f.cur,M=f.prev;i.leave&&M.dropzone.fire(i.leave),i.enter&&x.dropzone.fire(i.enter),i.move&&x.dropzone.fire(i.move),i.drop&&x.dropzone.fire(i.drop),i.deactivate&&Ua(b,i.deactivate),f.prev.dropzone=x.dropzone,f.prev.element=x.element}function De(t,i){var f=t.interaction,b=t.iEvent,x=t.event;if(b.type==="dragmove"||b.type==="dragend"){var M=f.dropState;i.dynamicDrop&&(M.activeDrops=ga(i,f.element));var U=b,J=He(f,U,x);M.rejected=M.rejected&&!!J&&J.dropzone===M.cur.dropzone&&J.element===M.cur.element,M.cur.dropzone=J&&J.dropzone,M.cur.element=J&&J.element,M.events=We(f,0,U)}}var fe={id:"actions/drop",install:function(t){var i=t.actions,f=t.interactStatic,b=t.Interactable,x=t.defaults;t.usePlugin(te),b.prototype.dropzone=function(M){return function(U,J){if(g.object(J)){if(U.options.drop.enabled=J.enabled!==!1,J.listeners){var ve=Qe(J.listeners),Oe=Object.keys(ve).reduce(function(ea,La){return ea[/^(enter|leave)/.test(La)?"drag".concat(La):/^(activate|deactivate|move)/.test(La)?"drop".concat(La):La]=ve[La],ea},{}),we=U.options.drop.listeners;we&&U.off(we),U.on(Oe),U.options.drop.listeners=Oe}return g.func(J.ondrop)&&U.on("drop",J.ondrop),g.func(J.ondropactivate)&&U.on("dropactivate",J.ondropactivate),g.func(J.ondropdeactivate)&&U.on("dropdeactivate",J.ondropdeactivate),g.func(J.ondragenter)&&U.on("dragenter",J.ondragenter),g.func(J.ondragleave)&&U.on("dragleave",J.ondragleave),g.func(J.ondropmove)&&U.on("dropmove",J.ondropmove),/^(pointer|center)$/.test(J.overlap)?U.options.drop.overlap=J.overlap:g.number(J.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,J.overlap),0)),"accept"in J&&(U.options.drop.accept=J.accept),"checker"in J&&(U.options.drop.checker=J.checker),U}return g.bool(J)?(U.options.drop.enabled=J,U):U.options.drop}(this,M)},b.prototype.dropCheck=function(M,U,J,ve,Oe,we){return function(ea,La,cl,rl,ul,Cl,dl){var Al=!1;if(!(dl=dl||ea.getRect(Cl)))return!!ea.options.drop.checker&&ea.options.drop.checker(La,cl,Al,ea,Cl,rl,ul);var Ll=ea.options.drop.overlap;if(Ll==="pointer"){var Zl=$e(rl,ul,"drag"),Nl=ra(La);Nl.x+=Zl.x,Nl.y+=Zl.y;var Wl=Nl.x>dl.left&&Nl.x<dl.right,Hr=Nl.y>dl.top&&Nl.y<dl.bottom;Al=Wl&&Hr}var _r=rl.getRect(ul);if(_r&&Ll==="center"){var Jr=_r.left+_r.width/2,tn=_r.top+_r.height/2;Al=Jr>=dl.left&&Jr<=dl.right&&tn>=dl.top&&tn<=dl.bottom}return _r&&g.number(Ll)&&(Al=Math.max(0,Math.min(dl.right,_r.right)-Math.max(dl.left,_r.left))*Math.max(0,Math.min(dl.bottom,_r.bottom)-Math.max(dl.top,_r.top))/(_r.width*_r.height)>=Ll),ea.options.drop.checker&&(Al=ea.options.drop.checker(La,cl,Al,ea,Cl,rl,ul)),Al}(this,M,U,J,ve,Oe,we)},f.dynamicDrop=function(M){return g.bool(M)?(t.dynamicDrop=M,f):t.dynamicDrop},re(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,x.actions.drop=fe.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;i.prepared.name==="drag"&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var f=t.interaction,b=(t.event,t.iEvent);if(f.prepared.name==="drag"){var x=f.dropState;x.activeDrops=[],x.events={},x.activeDrops=ga(i,f.element),x.events=We(f,0,b),x.events.activate&&(Ua(x.activeDrops,x.events.activate),i.fire("actions/drop:start",{interaction:f,dragEvent:b}))}},"interactions:action-move":De,"interactions:after-action-move":function(t,i){var f=t.interaction,b=t.iEvent;if(f.prepared.name==="drag"){var x=f.dropState;Ne(f,x.events),i.fire("actions/drop:move",{interaction:f,dragEvent:b}),x.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var f=t.interaction,b=t.iEvent;De(t,i),Ne(f,f.dropState.events),i.fire("actions/drop:end",{interaction:f,dragEvent:b})}},"interactions:stop":function(t){var i=t.interaction;if(i.prepared.name==="drag"){var f=i.dropState;f&&(f.activeDrops=null,f.events=null,f.cur.dropzone=null,f.cur.element=null,f.prev.dropzone=null,f.prev.element=null,f.rejected=!1)}}},getActiveDrops:ga,getDrop:He,getDropEvents:We,fireDropEvents:Ne,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oe=fe;function ia(t){var i=t.interaction,f=t.iEvent,b=t.phase;if(i.prepared.name==="gesture"){var x=i.pointers.map(function(Oe){return Oe.pointer}),M=b==="start",U=b==="end",J=i.interactable.options.deltaSource;if(f.touches=[x[0],x[1]],M)f.distance=ja(x,J),f.box=Fa(x),f.scale=1,f.ds=0,f.angle=me(x,J),f.da=0,i.gesture.startDistance=f.distance,i.gesture.startAngle=f.angle;else if(U||i.pointers.length<2){var ve=i.prevEvent;f.distance=ve.distance,f.box=ve.box,f.scale=ve.scale,f.ds=0,f.angle=ve.angle,f.da=0}else f.distance=ja(x,J),f.box=Fa(x),f.scale=f.distance/i.gesture.startDistance,f.angle=me(x,J),f.ds=f.scale-i.gesture.scale,f.da=f.angle-i.gesture.angle;i.gesture.distance=f.distance,i.gesture.angle=f.angle,g.number(f.scale)&&f.scale!==1/0&&!isNaN(f.scale)&&(i.gesture.scale=f.scale)}}var Pa={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,f=t.Interactable,b=t.defaults;f.prototype.gesturable=function(x){return g.object(x)?(this.options.gesture.enabled=x.enabled!==!1,this.setPerAction("gesture",x),this.setOnEvents("gesture",x),this):g.bool(x)?(this.options.gesture.enabled=x,this):this.options.gesture},i.map.gesture=Pa,i.methodDict.gesture="gesturable",b.actions.gesture=Pa.defaults},listeners:{"interactions:action-start":ia,"interactions:action-move":ia,"interactions:action-end":ia,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},hl=Pa;function Ma(t,i,f,b,x,M,U){if(!i)return!1;if(i===!0){var J=g.number(M.width)?M.width:M.right-M.left,ve=g.number(M.height)?M.height:M.bottom-M.top;if(U=Math.min(U,Math.abs((t==="left"||t==="right"?J:ve)/2)),J<0&&(t==="left"?t="right":t==="right"&&(t="left")),ve<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var Oe=J>=0?M.left:M.right;return f.x<Oe+U}if(t==="top"){var we=ve>=0?M.top:M.bottom;return f.y<we+U}if(t==="right")return f.x>(J>=0?M.right:M.left)-U;if(t==="bottom")return f.y>(ve>=0?M.bottom:M.top)-U}return!!g.element(b)&&(g.element(i)?i===b:ye(b,i,x))}function Ul(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var b=i;f.interactable.options.resize.square?(f.resizeAxes==="y"?b.delta.x=b.delta.y:b.delta.y=b.delta.x,b.axes="xy"):(b.axes=f.resizeAxes,f.resizeAxes==="x"?b.delta.y=0:f.resizeAxes==="y"&&(b.delta.x=0))}}var Ea,_a,Ra={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,f=t.browser,b=t.Interactable,x=t.defaults;Ra.cursors=function(M){return M.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(f),Ra.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,b.prototype.resizable=function(M){return function(U,J,ve){return g.object(J)?(U.options.resize.enabled=J.enabled!==!1,U.setPerAction("resize",J),U.setOnEvents("resize",J),g.string(J.axis)&&/^x$|^y$|^xy$/.test(J.axis)?U.options.resize.axis=J.axis:J.axis===null&&(U.options.resize.axis=ve.defaults.actions.resize.axis),g.bool(J.preserveAspectRatio)?U.options.resize.preserveAspectRatio=J.preserveAspectRatio:g.bool(J.square)&&(U.options.resize.square=J.square),U):g.bool(J)?(U.options.resize.enabled=J,U):U.options.resize}(this,M,t)},i.map.resize=Ra,i.methodDict.resize="resizable",x.actions.resize=Ra.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var f=i.iEvent,b=i.interaction;if(b.prepared.name==="resize"&&b.prepared.edges){var x=f,M=b.rect;b._rects={start:re({},M),corrected:re({},M),previous:re({},M),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},x.edges=b.prepared.edges,x.rect=b._rects.corrected,x.deltaRect=b._rects.delta}})(t),Ul(t)},"interactions:action-move":function(t){(function(i){var f=i.iEvent,b=i.interaction;if(b.prepared.name==="resize"&&b.prepared.edges){var x=f,M=b.interactable.options.resize.invert,U=M==="reposition"||M==="negate",J=b.rect,ve=b._rects,Oe=ve.start,we=ve.corrected,ea=ve.delta,La=ve.previous;if(re(La,we),U){if(re(we,J),M==="reposition"){if(we.top>we.bottom){var cl=we.top;we.top=we.bottom,we.bottom=cl}if(we.left>we.right){var rl=we.left;we.left=we.right,we.right=rl}}}else we.top=Math.min(J.top,Oe.bottom),we.bottom=Math.max(J.bottom,Oe.top),we.left=Math.min(J.left,Oe.right),we.right=Math.max(J.right,Oe.left);for(var ul in we.width=we.right-we.left,we.height=we.bottom-we.top,we)ea[ul]=we[ul]-La[ul];x.edges=b.prepared.edges,x.rect=we,x.deltaRect=ea}})(t),Ul(t)},"interactions:action-end":function(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var b=i;b.edges=f.prepared.edges,b.rect=f._rects.corrected,b.deltaRect=f._rects.delta}},"auto-start:check":function(t){var i=t.interaction,f=t.interactable,b=t.element,x=t.rect,M=t.buttons;if(x){var U=re({},i.coords.cur.page),J=f.options.resize;if(J&&J.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(M&J.mouseButtons)!=0)){if(g.object(J.edges)){var ve={left:!1,right:!1,top:!1,bottom:!1};for(var Oe in ve)ve[Oe]=Ma(Oe,J.edges[Oe],U,i._latestPointer.eventTarget,b,x,J.margin||Ra.defaultMargin);ve.left=ve.left&&!ve.right,ve.top=ve.top&&!ve.bottom,(ve.left||ve.right||ve.top||ve.bottom)&&(t.action={name:"resize",edges:ve})}else{var we=J.axis!=="y"&&U.x>x.right-Ra.defaultMargin,ea=J.axis!=="x"&&U.y>x.bottom-Ra.defaultMargin;(we||ea)&&(t.action={name:"resize",axes:(we?"x":"")+(ea?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,f=t.axis,b=t.name,x=Ra.cursors,M=null;if(f)M=x[b+f];else if(i){for(var U="",J=0,ve=["top","bottom","left","right"];J<ve.length;J++){var Oe=ve[J];i[Oe]&&(U+=Oe)}M=x[U]}return M},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},Va=Ra,qa={id:"actions",install:function(t){t.usePlugin(hl),t.usePlugin(Va),t.usePlugin(te),t.usePlugin(oe)}},xa=0,ae={request:function(t){return Ea(t)},cancel:function(t){return _a(t)},init:function(t){if(Ea=t.requestAnimationFrame,_a=t.cancelAnimationFrame,!Ea)for(var i=["ms","moz","webkit","o"],f=0;f<i.length;f++){var b=i[f];Ea=t["".concat(b,"RequestAnimationFrame")],_a=t["".concat(b,"CancelAnimationFrame")]||t["".concat(b,"CancelRequestAnimationFrame")]}Ea=Ea&&Ea.bind(t),_a=_a&&_a.bind(t),Ea||(Ea=function(x){var M=Date.now(),U=Math.max(0,16-(M-xa)),J=t.setTimeout(function(){x(M+U)},U);return xa=M+U,J},_a=function(x){return clearTimeout(x)})}},Ye={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Ye.isScrolling=!0,ae.cancel(Ye.i),t.autoScroll=Ye,Ye.interaction=t,Ye.prevTime=Ye.now(),Ye.i=ae.request(Ye.scroll)},stop:function(){Ye.isScrolling=!1,Ye.interaction&&(Ye.interaction.autoScroll=null),ae.cancel(Ye.i)},scroll:function(){var t=Ye.interaction,i=t.interactable,f=t.element,b=t.prepared.name,x=i.options[b].autoScroll,M=pe(x.container,i,f),U=Ye.now(),J=(U-Ye.prevTime)/1e3,ve=x.speed*J;if(ve>=1){var Oe={x:Ye.x*ve,y:Ye.y*ve};if(Oe.x||Oe.y){var we=Ca(M);g.window(M)?M.scrollBy(Oe.x,Oe.y):M&&(M.scrollLeft+=Oe.x,M.scrollTop+=Oe.y);var ea=Ca(M),La={x:ea.x-we.x,y:ea.y-we.y};(La.x||La.y)&&i.fire({type:"autoscroll",target:f,interactable:i,delta:La,interaction:t,container:M})}Ye.prevTime=U}Ye.isScrolling&&(ae.cancel(Ye.i),Ye.i=ae.request(Ye.scroll))},check:function(t,i){var f;return(f=t.options[i].autoScroll)==null?void 0:f.enabled},onInteractionMove:function(t){var i=t.interaction,f=t.pointer;if(i.interacting()&&Ye.check(i.interactable,i.prepared.name))if(i.simulation)Ye.x=Ye.y=0;else{var b,x,M,U,J=i.interactable,ve=i.element,Oe=i.prepared.name,we=J.options[Oe].autoScroll,ea=pe(we.container,J,ve);if(g.window(ea))U=f.clientX<Ye.margin,b=f.clientY<Ye.margin,x=f.clientX>ea.innerWidth-Ye.margin,M=f.clientY>ea.innerHeight-Ye.margin;else{var La=ke(ea);U=f.clientX<La.left+Ye.margin,b=f.clientY<La.top+Ye.margin,x=f.clientX>La.right-Ye.margin,M=f.clientY>La.bottom-Ye.margin}Ye.x=x?1:U?-1:0,Ye.y=M?1:b?-1:0,Ye.isScrolling||(Ye.margin=we.margin,Ye.speed=we.speed,Ye.start(i))}}};function pe(t,i,f){return(g.string(t)?la(t,i,f):t)||_(f)}function Ca(t){return g.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var qe={id:"auto-scroll",install:function(t){var i=t.defaults,f=t.actions;t.autoScroll=Ye,Ye.now=function(){return t.now()},f.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ye.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ye.stop(),Ye.interaction&&(Ye.interaction=null)},"interactions:stop":Ye.stop,"interactions:action-move":function(t){return Ye.onInteractionMove(t)}}},G=qe;function aa(t,i){var f=!1;return function(){return f||(ee.console.warn(i),f=!0),t.apply(this,arguments)}}function Ge(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Be(t){return g.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function El(t){return g.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var sl={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,b,x,M){var U=function(J,ve,Oe,we,ea){var La=J.getRect(we),cl=ve.buttons||{0:1,1:4,3:8,4:16}[ve.button],rl={action:null,interactable:J,interaction:Oe,element:we,rect:La,buttons:cl};return ea.fire("auto-start:check",rl),rl.action}(this,b,x,M,t);return this.options.actionChecker?this.options.actionChecker(f,b,U,this,M,x):U},i.prototype.ignoreFrom=aa(function(f){return this._backCompatOption("ignoreFrom",f)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=aa(function(f){return this._backCompatOption("allowFrom",f)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=El,i.prototype.styleCursor=Be}};function kl(t,i,f,b,x){return i.testIgnoreAllow(i.options[t.name],f,b)&&i.options[t.name].enabled&&he(i,f,t,x)?t:null}function Ga(t,i,f,b,x,M,U){for(var J=0,ve=b.length;J<ve;J++){var Oe=b[J],we=x[J],ea=Oe.getAction(i,f,t,we);if(ea){var La=kl(ea,Oe,we,M,U);if(La)return{action:La,interactable:Oe,element:we}}}return{action:null,interactable:null,element:null}}function Qa(t,i,f,b,x){var M=[],U=[],J=b;function ve(we){M.push(we),U.push(J)}for(;g.element(J);){M=[],U=[],x.interactables.forEachMatch(J,ve);var Oe=Ga(t,i,f,M,U,b,x);if(Oe.action&&!Oe.interactable.options[Oe.action.name].manualStart)return Oe;J=wa(J)}return{action:null,interactable:null,element:null}}function Na(t,i,f){var b=i.action,x=i.interactable,M=i.element;b=b||{name:null},t.interactable=x,t.element=M,Ge(t.prepared,b),t.rect=x&&b.name?x.getRect(M):null,Pl(t,f),f.fire("autoStart:prepared",{interaction:t})}function he(t,i,f,b){var x=t.options,M=x[f.name].max,U=x[f.name].maxPerElement,J=b.autoStart.maxInteractions,ve=0,Oe=0,we=0;if(!(M&&U&&J))return!1;for(var ea=0,La=b.interactions.list;ea<La.length;ea++){var cl=La[ea],rl=cl.prepared.name;if(cl.interacting()&&(++ve>=J||cl.interactable===t&&((Oe+=rl===f.name?1:0)>=M||cl.element===i&&(we++,rl===f.name&&we>=U))))return!1}return J>0}function Da(t,i){return g.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function Sl(t,i,f){var b=f.autoStart.cursorElement;b&&b!==t&&(b.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,f.autoStart.cursorElement=i?t:null}function Pl(t,i){var f=t.interactable,b=t.element,x=t.prepared;if(t.pointerType==="mouse"&&f&&f.options.styleCursor){var M="";if(x.name){var U=f.options[x.name].cursorChecker;M=g.func(U)?U(x,f,b,t._interacting):i.actions.map[x.name].getCursor(x)}Sl(t.element,M||"",i)}else i.autoStart.cursorElement&&Sl(i.autoStart.cursorElement,"",i)}var jl={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(sl),f.base.actionChecker=null,f.base.styleCursor=!0,re(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(b){return Da(b,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:he,cursorElement:null}},listeners:{"interactions:down":function(t,i){var f=t.interaction,b=t.pointer,x=t.event,M=t.eventTarget;f.interacting()||Na(f,Qa(f,b,x,M,i),i)},"interactions:move":function(t,i){(function(f,b){var x=f.interaction,M=f.pointer,U=f.event,J=f.eventTarget;x.pointerType!=="mouse"||x.pointerIsDown||x.interacting()||Na(x,Qa(x,M,U,J,b),b)})(t,i),function(f,b){var x=f.interaction;if(x.pointerIsDown&&!x.interacting()&&x.pointerWasMoved&&x.prepared.name){b.fire("autoStart:before-start",f);var M=x.interactable,U=x.prepared.name;U&&M&&(M.options[U].manualStart||!he(M,x.element,x.prepared,b)?x.stop():(x.start(x.prepared,M,x.element),Pl(x,b)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,b=f.interactable;b&&b.options.styleCursor&&Sl(f.element,"",i)}},maxInteractions:Da,withinInteractionLimit:he,validateAction:kl},or=jl,gr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var f=t.interaction,b=t.eventTarget,x=t.dx,M=t.dy;if(f.prepared.name==="drag"){var U=Math.abs(x),J=Math.abs(M),ve=f.interactable.options.drag,Oe=ve.startAxis,we=U>J?"x":U<J?"y":"xy";if(f.prepared.axis=ve.lockAxis==="start"?we[0]:ve.lockAxis,we!=="xy"&&Oe!=="xy"&&Oe!==we){f.prepared.name=null;for(var ea=b,La=function(rl){if(rl!==f.interactable){var ul=f.interactable.options.drag;if(!ul.manualStart&&rl.testIgnoreAllow(ul,ea,b)){var Cl=rl.getAction(f.downPointer,f.downEvent,f,ea);if(Cl&&Cl.name==="drag"&&function(dl,Al){if(!Al)return!1;var Ll=Al.options.drag.startAxis;return dl==="xy"||Ll==="xy"||Ll===dl}(we,rl)&&or.validateAction(Cl,rl,ea,b,i))return rl}}};g.element(ea);){var cl=i.interactables.forEachMatch(ea,La);if(cl){f.prepared.name="drag",f.interactable=cl,f.element=ea;break}ea=wa(ea)}}}}}};function Tl(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var f=t.interactable.options;return f[i].hold||f[i].delay}var sr={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(or),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,f=Tl(i);f>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},f))},"interactions:move":function(t){var i=t.interaction,f=t.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!f&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;Tl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Tl},Tr=sr,Rl={id:"auto-start",install:function(t){t.usePlugin(or),t.usePlugin(Tr),t.usePlugin(gr)}},rr=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):g.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function en(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var Or={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=rr,i.prototype.checkAndPreventDefault=function(f){return function(b,x,M){var U=b.options.preventDefault;if(U!=="never")if(U!=="always"){if(x.events.supportsPassive&&/^touch(start|move)$/.test(M.type)){var J=_(M.target).document,ve=x.getDocOptions(J);if(!ve||!ve.events||ve.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(M.type)||g.element(M.target)&&ie(M.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||M.preventDefault()}else M.preventDefault()}(this,t,f)},t.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var b=0,x=t.interactions.list;b<x.length;b++){var M=x[b];if(M.element&&(M.element===f.target||de(M.element,f.target)))return void M.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=en,t},{})};function zr(t,i){if(i.phaselessTypes[t])return!0;for(var f in i.map)if(t.indexOf(f)===0&&t.substr(f.length)in i.phases)return!0;return!1}function Sr(t){var i={};for(var f in t){var b=t[f];g.plainObject(b)?i[f]=Sr(b):g.array(b)?i[f]=ua(b):i[f]=b}return i}var Mr=function(){function t(i){c(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=Ir(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return p(t,[{key:"start",value:function(i,f){var b,x,M=i.phase,U=this.interaction,J=function(Oe){var we=Oe.interactable.options[Oe.prepared.name],ea=we.modifiers;return ea&&ea.length?ea:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(La){var cl=we[La];return cl&&cl.enabled&&{options:cl,methods:cl._methods}}).filter(function(La){return!!La})}(U);this.prepareStates(J),this.startEdges=re({},U.edges),this.edges=re({},this.startEdges),this.startOffset=(b=U.rect,x=f,b?{left:x.x-b.left,top:x.y-b.top,right:b.right-x.x,bottom:b.bottom-x.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var ve=this.fillArg({phase:M,pageCoords:f,preEnd:!1});return this.result=Ir(),this.startAll(ve),this.result=this.setAll(ve)}},{key:"fillArg",value:function(i){var f=this.interaction;return i.interaction=f,i.interactable=f.interactable,i.element=f.element,i.rect||(i.rect=f.rect),i.edges||(i.edges=this.startEdges),i.startOffset=this.startOffset,i}},{key:"startAll",value:function(i){for(var f=0,b=this.states;f<b.length;f++){var x=b[f];x.methods.start&&(i.state=x,x.methods.start(i))}}},{key:"setAll",value:function(i){var f=i.phase,b=i.preEnd,x=i.skipModifiers,M=i.rect,U=i.edges;i.coords=re({},i.pageCoords),i.rect=re({},M),i.edges=re({},U);for(var J=x?this.states.slice(x):this.states,ve=Ir(i.coords,i.rect),Oe=0;Oe<J.length;Oe++){var we,ea=J[Oe],La=ea.options,cl=re({},i.coords),rl=null;(we=ea.methods)!=null&&we.set&&this.shouldDo(La,b,f)&&(i.state=ea,rl=ea.methods.set(i),Ie(i.edges,i.rect,{x:i.coords.x-cl.x,y:i.coords.y-cl.y})),ve.eventProps.push(rl)}re(this.edges,i.edges),ve.delta.x=i.coords.x-i.pageCoords.x,ve.delta.y=i.coords.y-i.pageCoords.y,ve.rectDelta.left=i.rect.left-M.left,ve.rectDelta.right=i.rect.right-M.right,ve.rectDelta.top=i.rect.top-M.top,ve.rectDelta.bottom=i.rect.bottom-M.bottom;var ul=this.result.coords,Cl=this.result.rect;if(ul&&Cl){var dl=ve.rect.left!==Cl.left||ve.rect.right!==Cl.right||ve.rect.top!==Cl.top||ve.rect.bottom!==Cl.bottom;ve.changed=dl||ul.x!==ve.coords.x||ul.y!==ve.coords.y}return ve}},{key:"applyToInteraction",value:function(i){var f=this.interaction,b=i.phase,x=f.coords.cur,M=f.coords.start,U=this.result,J=this.startDelta,ve=U.delta;b==="start"&&re(this.startDelta,U.delta);for(var Oe=0,we=[[M,J],[x,ve]];Oe<we.length;Oe++){var ea=we[Oe],La=ea[0],cl=ea[1];La.page.x+=cl.x,La.page.y+=cl.y,La.client.x+=cl.x,La.client.y+=cl.y}var rl=this.result.rectDelta,ul=i.rect||f.rect;ul.left+=rl.left,ul.right+=rl.right,ul.top+=rl.top,ul.bottom+=rl.bottom,ul.width=ul.right-ul.left,ul.height=ul.bottom-ul.top}},{key:"setAndApply",value:function(i){var f=this.interaction,b=i.phase,x=i.preEnd,M=i.skipModifiers,U=this.setAll(this.fillArg({preEnd:x,phase:b,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=U,!U.changed&&(!M||M<this.states.length)&&f.interacting())return!1;if(i.modifiedCoords){var J=f.coords.cur.page,ve={x:i.modifiedCoords.x-J.x,y:i.modifiedCoords.y-J.y};U.coords.x+=ve.x,U.coords.y+=ve.y,U.delta.x+=ve.x,U.delta.y+=ve.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var f=i.interaction,b=i.event,x=this.states;if(x&&x.length){for(var M=!1,U=0;U<x.length;U++){var J=x[U];i.state=J;var ve=J.options,Oe=J.methods,we=Oe.beforeEnd&&Oe.beforeEnd(i);if(we)return this.endResult=we,!1;M=M||!M&&this.shouldDo(ve,!0,i.phase,!0)}M&&f.move({event:b,preEnd:!0})}}},{key:"stop",value:function(i){var f=i.interaction;if(this.states&&this.states.length){var b=re({states:this.states,interactable:f.interactable,element:f.element,rect:null},i);this.fillArg(b);for(var x=0,M=this.states;x<M.length;x++){var U=M[x];b.state=U,U.methods.stop&&U.methods.stop(b)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var f=0;f<i.length;f++){var b=i[f],x=b.options,M=b.methods,U=b.name;this.states.push({options:x,methods:M,index:f,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var f=i.interaction,b=f.coords,x=f.rect,M=f.modification;if(M.result){for(var U=M.startDelta,J=M.result,ve=J.delta,Oe=J.rectDelta,we=0,ea=[[b.start,U],[b.cur,ve]];we<ea.length;we++){var La=ea[we],cl=La[0],rl=La[1];cl.page.x-=rl.x,cl.page.y-=rl.y,cl.client.x-=rl.x,cl.client.y-=rl.y}x.left-=Oe.left,x.right-=Oe.right,x.top-=Oe.top,x.bottom-=Oe.bottom}}},{key:"shouldDo",value:function(i,f,b,x){return!(!i||i.enabled===!1||x&&!i.endOnly||i.endOnly&&!f||b==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(f){return Sr(f)}),this.result=Ir(re({},i.result.coords),re({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Ir(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Br(t,i){var f=t.defaults,b={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},x=function(M){var U=M||{};for(var J in U.enabled=U.enabled!==!1,f)J in U||(U[J]=f[J]);var ve={options:U,methods:b,name:i,enable:function(){return U.enabled=!0,ve},disable:function(){return U.enabled=!1,ve}};return ve};return i&&typeof i=="string"&&(x._defaults=f,x._methods=b),x}function Pr(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var Lr={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new Mr(i)},"interactions:before-action-start":function(t){var i=t.interaction,f=t.interaction.modification;f.start(t,i.coords.start.page),i.edges=f.edges,f.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,f=i.modification,b=f.setAndApply(t);return i.edges=f.edges,b},"interactions:before-action-end":function(t){var i=t.interaction,f=i.modification,b=f.beforeEnd(t);return i.edges=f.startEdges,b},"interactions:action-start":Pr,"interactions:action-move":Pr,"interactions:action-end":Pr,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},cr=Lr,bn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Yr=function(t){m(f,t);var i=L(f);function f(b,x,M,U,J,ve,Oe){var we;c(this,f),(we=i.call(this,b)).relatedTarget=null,we.screenX=void 0,we.screenY=void 0,we.button=void 0,we.buttons=void 0,we.ctrlKey=void 0,we.shiftKey=void 0,we.altKey=void 0,we.metaKey=void 0,we.page=void 0,we.client=void 0,we.delta=void 0,we.rect=void 0,we.x0=void 0,we.y0=void 0,we.t0=void 0,we.dt=void 0,we.duration=void 0,we.clientX0=void 0,we.clientY0=void 0,we.velocity=void 0,we.speed=void 0,we.swipe=void 0,we.axes=void 0,we.preEnd=void 0,J=J||b.element;var ea=b.interactable,La=(ea&&ea.options||bn).deltaSource,cl=$e(ea,J,M),rl=U==="start",ul=U==="end",Cl=rl?D(we):b.prevEvent,dl=rl?b.coords.start:ul?{page:Cl.page,client:Cl.client,timeStamp:b.coords.cur.timeStamp}:b.coords.cur;return we.page=re({},dl.page),we.client=re({},dl.client),we.rect=re({},b.rect),we.timeStamp=dl.timeStamp,ul||(we.page.x-=cl.x,we.page.y-=cl.y,we.client.x-=cl.x,we.client.y-=cl.y),we.ctrlKey=x.ctrlKey,we.altKey=x.altKey,we.shiftKey=x.shiftKey,we.metaKey=x.metaKey,we.button=x.button,we.buttons=x.buttons,we.target=J,we.currentTarget=J,we.preEnd=ve,we.type=Oe||M+(U||""),we.interactable=ea,we.t0=rl?b.pointers[b.pointers.length-1].downTime:Cl.t0,we.x0=b.coords.start.page.x-cl.x,we.y0=b.coords.start.page.y-cl.y,we.clientX0=b.coords.start.client.x-cl.x,we.clientY0=b.coords.start.client.y-cl.y,we.delta=rl||ul?{x:0,y:0}:{x:we[La].x-Cl[La].x,y:we[La].y-Cl[La].y},we.dt=b.coords.delta.timeStamp,we.duration=we.timeStamp-we.t0,we.velocity=re({},b.coords.velocity[La]),we.speed=Wa(we.velocity.x,we.velocity.y),we.swipe=ul||U==="inertiastart"?we.getSwipe():null,we}return p(f,[{key:"getSwipe",value:function(){var b=this._interaction;if(b.prevEvent.speed<600||this.timeStamp-b.prevEvent.timeStamp>150)return null;var x=180*Math.atan2(b.prevEvent.velocityY,b.prevEvent.velocityX)/Math.PI;x<0&&(x+=360);var M=112.5<=x&&x<247.5,U=202.5<=x&&x<337.5;return{up:U,down:!U&&22.5<=x&&x<157.5,left:M,right:!M&&(292.5<=x||x<67.5),angle:x,speed:b.prevEvent.speed,velocity:{x:b.prevEvent.velocityX,y:b.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f}(Xe);Object.defineProperties(Yr.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var nn=p(function t(i,f,b,x,M){c(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=f,this.event=b,this.downTime=x,this.downTarget=M}),Tn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),kn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),mn=0,mr=function(){function t(i){var f=this,b=i.pointerType,x=i.scopeFire;c(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=aa(function(we){this.move(we)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=mn++,this._scopeFire=x,this.pointerType=b;var M=this;this._proxy={};var U=function(we){Object.defineProperty(f._proxy,we,{get:function(){return M[we]}})};for(var J in Tn)U(J);var ve=function(we){Object.defineProperty(f._proxy,we,{value:function(){return M[we].apply(M,arguments)}})};for(var Oe in kn)ve(Oe);this._scopeFire("interactions:new",{interaction:this})}return p(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,f,b){var x=this.updatePointer(i,f,b,!0),M=this.pointers[x];this._scopeFire("interactions:down",{pointer:i,event:f,eventTarget:b,pointerIndex:x,pointerInfo:M,type:"down",interaction:this})}},{key:"start",value:function(i,f,b){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!f.options[i.name].enabled)&&(Ge(this.prepared,i),this.interactable=f,this.element=b,this.rect=f.getRect(b),this.edges=this.prepared.edges?re({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(i,f,b){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,f,b,!1);var x,M,U=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(x=this.coords.cur.client.x-this.coords.start.client.x,M=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Wa(x,M)>this.pointerMoveTolerance);var J,ve,Oe,we=this.getPointerIndex(i),ea={pointer:i,pointerIndex:we,pointerInfo:this.pointers[we],event:f,type:"move",eventTarget:b,dx:x,dy:M,duplicate:U,interaction:this};U||(J=this.coords.velocity,ve=this.coords.delta,Oe=Math.max(ve.timeStamp/1e3,.001),J.page.x=ve.page.x/Oe,J.page.y=ve.page.y/Oe,J.client.x=ve.client.x/Oe,J.client.y=ve.client.y/Oe,J.timeStamp=Oe),this._scopeFire("interactions:move",ea),U||this.simulation||(this.interacting()&&(ea.type=null,this.move(ea)),this.pointerWasMoved&&X(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||se(this.coords.delta),(i=re({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},i||{})).phase="move",this._doPhase(i)}},{key:"pointerUp",value:function(i,f,b,x){var M=this.getPointerIndex(i);M===-1&&(M=this.updatePointer(i,f,b,!1));var U=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:i,pointerIndex:M,pointerInfo:this.pointers[M],event:f,eventTarget:b,type:U,curEventTarget:x,interaction:this}),this.simulation||this.end(f),this.removePointer(i,f)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var f;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(f=this._doPhase({event:i,interaction:this,phase:"end"})),this._ending=!1,f===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(i){var f=Le(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Ae(this.pointers,function(b){return b.id===f})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,f,b,x){var M,U,J,ve=Le(i),Oe=this.getPointerIndex(i),we=this.pointers[Oe];return x=x!==!1&&(x||/(down|start)$/i.test(f.type)),we?we.pointer=i:(we=new nn(ve,i,f,null,null),Oe=this.pointers.length,this.pointers.push(we)),Ce(this.coords.cur,this.pointers.map(function(ea){return ea.pointer}),this._now()),M=this.coords.delta,U=this.coords.prev,J=this.coords.cur,M.page.x=J.page.x-U.page.x,M.page.y=J.page.y-U.page.y,M.client.x=J.client.x-U.client.x,M.client.y=J.client.y-U.client.y,M.timeStamp=J.timeStamp-U.timeStamp,x&&(this.pointerIsDown=!0,we.downTime=this.coords.cur.timeStamp,we.downTarget=b,$(this.downPointer,i),this.interacting()||(X(this.coords.start,this.coords.cur),X(this.coords.prev,this.coords.cur),this.downEvent=f,this.pointerWasMoved=!1)),this._updateLatestPointer(i,f,b),this._scopeFire("interactions:update-pointer",{pointer:i,event:f,eventTarget:b,down:x,pointerInfo:we,pointerIndex:Oe,interaction:this}),Oe}},{key:"removePointer",value:function(i,f){var b=this.getPointerIndex(i);if(b!==-1){var x=this.pointers[b];this._scopeFire("interactions:remove-pointer",{pointer:i,event:f,eventTarget:null,pointerIndex:b,pointerInfo:x,interaction:this}),this.pointers.splice(b,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,f,b){this._latestPointer.pointer=i,this._latestPointer.event=f,this._latestPointer.eventTarget=b}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,f,b,x){return new Yr(this,i,this.prepared.name,f,this.element,b,x)}},{key:"_fireEvent",value:function(i){var f;(f=this.interactable)==null||f.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var f=i.event,b=i.phase,x=i.preEnd,M=i.type,U=this.rect;if(U&&b==="move"&&(Ie(this.edges,U,this.coords.delta[this.interactable.options.deltaSource]),U.width=U.right-U.left,U.height=U.bottom-U.top),this._scopeFire("interactions:before-action-".concat(b),i)===!1)return!1;var J=i.iEvent=this._createPreparedEvent(f,b,x,M);return this._scopeFire("interactions:action-".concat(b),i),b==="start"&&(this.prevEvent=J),this._fireEvent(J),this._scopeFire("interactions:after-action-".concat(b),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function ql(t){pr(t.interaction)}function pr(t){if(!function(f){return!(!f.offset.pending.x&&!f.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Gl(t.coords.cur,i),Gl(t.coords.delta,i),Ie(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Vl(t){var i=t.x,f=t.y;this.offset.pending.x+=i,this.offset.pending.y+=f,this.offset.total.x+=i,this.offset.total.y+=f}function Gl(t,i){var f=t.page,b=t.client,x=i.x,M=i.y;f.x+=x,f.y+=M,b.x+=x,b.y+=M}kn.offsetBy="";var Ol={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Vl},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(i){i.pointerIsDown&&(Gl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":ql,"interactions:before-action-move":ql,"interactions:before-action-end":function(t){var i=t.interaction;if(pr(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},yr=Ol,ir=function(){function t(i){c(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return p(t,[{key:"start",value:function(i){var f=this.interaction,b=Hl(f);if(!b||!b.enabled)return!1;var x=f.coords.velocity.client,M=Wa(x.x,x.y),U=this.modification||(this.modification=new Mr(f));if(U.copyFrom(f.modification),this.t0=f._now(),this.allowResume=b.allowResume,this.v0=M,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&M>b.minSpeed&&M>b.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.result.changed)return!1;this.startSmoothEnd()}return f.modification.result.rect=null,f.offsetBy(this.targetOffset),f._doPhase({interaction:f,event:i,phase:"inertiastart"}),f.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),f.modification.result.rect=null,this.active=!0,f.simulation=this,!0}},{key:"startInertia",value:function(){var i=this,f=this.interaction.coords.velocity.client,b=Hl(this.interaction),x=b.resistance,M=-Math.log(b.endSpeed/this.v0)/x;this.targetOffset={x:(f.x-M)/x,y:(f.y-M)/x},this.te=M,this.lambda_v0=x/this.v0,this.one_ve_v0=1-b.endSpeed/this.v0;var U=this.modification,J=this.modifierArg;J.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(J),U.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+U.result.delta.x,y:this.targetOffset.y+U.result.delta.y}),this.onNextFrame(function(){return i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var f=this;this.timeout=ae.request(function(){f.active&&i()})}},{key:"inertiaTick",value:function(){var i,f,b,x,M,U,J,ve=this,Oe=this.interaction,we=Hl(Oe).resistance,ea=(Oe._now()-this.t0)/1e3;if(ea<this.te){var La,cl=1-(Math.exp(-we*ea)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,f=0,b=this.targetOffset.x,x=this.targetOffset.y,M=this.modifiedOffset.x,U=this.modifiedOffset.y,La={x:Fr(J=cl,i,b,M),y:Fr(J,f,x,U)}):La={x:this.targetOffset.x*cl,y:this.targetOffset.y*cl};var rl={x:La.x-this.currentOffset.x,y:La.y-this.currentOffset.y};this.currentOffset.x+=rl.x,this.currentOffset.y+=rl.y,Oe.offsetBy(rl),Oe.move(),this.onNextFrame(function(){return ve.inertiaTick()})}else Oe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,f=this.interaction,b=f._now()-this.t0,x=Hl(f).smoothEndDuration;if(b<x){var M={x:xn(b,0,this.targetOffset.x,x),y:xn(b,0,this.targetOffset.y,x)},U={x:M.x-this.currentOffset.x,y:M.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,f.offsetBy(U),f.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return i.smoothEndTick()})}else f.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(i){var f=i.pointer,b=i.event,x=i.eventTarget,M=this.interaction;M.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),M.updatePointer(f,b,x,!0),M._doPhase({interaction:M,event:b,phase:"resume"}),X(M.coords.prev,M.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,ae.cancel(this.timeout)}}]),t}();function Hl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var Vr={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(yr),t.usePlugin(cr),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new ir(i)},"interactions:before-action-end":function(t){var i=t.interaction,f=t.event;return(!i._interacting||i.simulation||!i.inertia.start(f))&&null},"interactions:down":function(t){var i=t.interaction,f=t.eventTarget,b=i.inertia;if(b.active)for(var x=f;g.element(x);){if(x===i.element){b.resume(t);break}x=wa(x)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Pr,"interactions:action-inertiastart":Pr,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Fr(t,i,f,b){var x=1-t;return x*x*i+2*x*t*f+t*t*b}function xn(t,i,f,b){return-f*(t/=b)*(t-2)+i}var on=Vr;function Zn(t,i){for(var f=0;f<i.length;f++){var b=i[f];if(t.immediatePropagationStopped)break;b(t)}}var An=function(){function t(i){c(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=re({},i||{})}return p(t,[{key:"fire",value:function(i){var f,b=this.global;(f=this.types[i.type])&&Zn(i,f),!i.propagationStopped&&b&&(f=b[i.type])&&Zn(i,f)}},{key:"on",value:function(i,f){var b=Qe(i,f);for(i in b)this.types[i]=pa(this.types[i]||[],b[i])}},{key:"off",value:function(i,f){var b=Qe(i,f);for(i in b){var x=this.types[i];if(x&&x.length)for(var M=0,U=b[i];M<U.length;M++){var J=U[M],ve=x.indexOf(J);ve!==-1&&x.splice(ve,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Qn=function(){function t(i){c(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,$(this,i)}return p(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function wn(t){return g.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function zn(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Fn={id:"events",install:function(t){var i,f=[],b={},x=[],M={add:U,remove:J,addDelegate:function(we,ea,La,cl,rl){var ul=wn(rl);if(!b[La]){b[La]=[];for(var Cl=0;Cl<x.length;Cl++){var dl=x[Cl];U(dl,La,ve),U(dl,La,Oe,!0)}}var Al=b[La],Ll=za(Al,function(Zl){return Zl.selector===we&&Zl.context===ea});Ll||(Ll={selector:we,context:ea,listeners:[]},Al.push(Ll)),Ll.listeners.push({func:cl,options:ul})},removeDelegate:function(we,ea,La,cl,rl){var ul,Cl=wn(rl),dl=b[La],Al=!1;if(dl)for(ul=dl.length-1;ul>=0;ul--){var Ll=dl[ul];if(Ll.selector===we&&Ll.context===ea){for(var Zl=Ll.listeners,Nl=Zl.length-1;Nl>=0;Nl--){var Wl=Zl[Nl];if(Wl.func===cl&&zn(Wl.options,Cl)){Zl.splice(Nl,1),Zl.length||(dl.splice(ul,1),J(ea,La,ve),J(ea,La,Oe,!0)),Al=!0;break}}if(Al)break}}},delegateListener:ve,delegateUseCapture:Oe,delegatedEvents:b,documents:x,targets:f,supportsOptions:!1,supportsPassive:!1};function U(we,ea,La,cl){if(we.addEventListener){var rl=wn(cl),ul=za(f,function(Cl){return Cl.eventTarget===we});ul||(ul={eventTarget:we,events:{}},f.push(ul)),ul.events[ea]||(ul.events[ea]=[]),za(ul.events[ea],function(Cl){return Cl.func===La&&zn(Cl.options,rl)})||(we.addEventListener(ea,La,M.supportsOptions?rl:rl.capture),ul.events[ea].push({func:La,options:rl}))}}function J(we,ea,La,cl){if(we.addEventListener&&we.removeEventListener){var rl=Ae(f,function(Hr){return Hr.eventTarget===we}),ul=f[rl];if(ul&&ul.events)if(ea!=="all"){var Cl=!1,dl=ul.events[ea];if(dl){if(La==="all"){for(var Al=dl.length-1;Al>=0;Al--){var Ll=dl[Al];J(we,ea,Ll.func,Ll.options)}return}for(var Zl=wn(cl),Nl=0;Nl<dl.length;Nl++){var Wl=dl[Nl];if(Wl.func===La&&zn(Wl.options,Zl)){we.removeEventListener(ea,La,M.supportsOptions?Zl:Zl.capture),dl.splice(Nl,1),dl.length===0&&(delete ul.events[ea],Cl=!0);break}}}Cl&&!Object.keys(ul.events).length&&f.splice(rl,1)}else for(ea in ul.events)ul.events.hasOwnProperty(ea)&&J(we,ea,"all")}}function ve(we,ea){for(var La=wn(ea),cl=new Qn(we),rl=b[we.type],ul=ze(we)[0],Cl=ul;g.element(Cl);){for(var dl=0;dl<rl.length;dl++){var Al=rl[dl],Ll=Al.selector,Zl=Al.context;if(ie(Cl,Ll)&&de(Zl,ul)&&de(Zl,Cl)){var Nl=Al.listeners;cl.currentTarget=Cl;for(var Wl=0;Wl<Nl.length;Wl++){var Hr=Nl[Wl];zn(Hr.options,La)&&Hr.func(cl)}}}Cl=wa(Cl)}}function Oe(we){return ve(we,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return M.supportsOptions=!0},get passive(){return M.supportsPassive=!0}}),t.events=M,M}},an={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=an.methodOrder;i<f.length;i++){var b=f[i],x=an[b](t);if(x)return x}return null},simulationResume:function(t){var i=t.pointerType,f=t.eventType,b=t.eventTarget,x=t.scope;if(!/down|start/i.test(f))return null;for(var M=0,U=x.interactions.list;M<U.length;M++){var J=U[M],ve=b;if(J.simulation&&J.simulation.allowResume&&J.pointerType===i)for(;ve;){if(ve===J.element)return J;ve=wa(ve)}}return null},mouseOrPen:function(t){var i,f=t.pointerId,b=t.pointerType,x=t.eventType,M=t.scope;if(b!=="mouse"&&b!=="pen")return null;for(var U=0,J=M.interactions.list;U<J.length;U++){var ve=J[U];if(ve.pointerType===b){if(ve.simulation&&!Mn(ve,f))continue;if(ve.interacting())return ve;i||(i=ve)}}if(i)return i;for(var Oe=0,we=M.interactions.list;Oe<we.length;Oe++){var ea=we[Oe];if(!(ea.pointerType!==b||/down/i.test(x)&&ea.simulation))return ea}return null},hasPointer:function(t){for(var i=t.pointerId,f=0,b=t.scope.interactions.list;f<b.length;f++){var x=b[f];if(Mn(x,i))return x}return null},idle:function(t){for(var i=t.pointerType,f=0,b=t.scope.interactions.list;f<b.length;f++){var x=b[f];if(x.pointers.length===1){var M=x.interactable;if(M&&(!M.options.gesture||!M.options.gesture.enabled))continue}else if(x.pointers.length>=2)continue;if(!x.interacting()&&i===x.pointerType)return x}return null}};function Mn(t,i){return t.pointers.some(function(f){return f.id===i})}var _n=an,Gr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function jn(t,i){return function(f){var b=i.interactions.list,x=Je(f),M=ze(f),U=M[0],J=M[1],ve=[];if(/^touch/.test(f.type)){i.prevTouchTime=i.now();for(var Oe=0,we=f.changedTouches;Oe<we.length;Oe++){var ea=we[Oe],La={pointer:ea,pointerId:Le(ea),pointerType:x,eventType:f.type,eventTarget:U,curEventTarget:J,scope:i},cl=yn(La);ve.push([La.pointer,La.eventTarget,La.curEventTarget,cl])}}else{var rl=!1;if(!Z.supportsPointerEvent&&/mouse/.test(f.type)){for(var ul=0;ul<b.length&&!rl;ul++)rl=b[ul].pointerType!=="mouse"&&b[ul].pointerIsDown;rl=rl||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!rl){var Cl={pointer:f,pointerId:Le(f),pointerType:x,eventType:f.type,curEventTarget:J,eventTarget:U,scope:i},dl=yn(Cl);ve.push([Cl.pointer,Cl.eventTarget,Cl.curEventTarget,dl])}}for(var Al=0;Al<ve.length;Al++){var Ll=ve[Al],Zl=Ll[0],Nl=Ll[1],Wl=Ll[2];Ll[3][t](Zl,f,Nl,Wl)}}}function yn(t){var i=t.pointerType,f=t.scope,b={interaction:_n.search(t),searchDetails:t};return f.fire("interactions:find",b),b.interaction||f.interactions.new({pointerType:i})}function zo(t,i){var f=t.doc,b=t.scope,x=t.options,M=b.interactions.docEvents,U=b.events,J=U[i];for(var ve in b.browser.isIOS&&!x.events&&(x.events={passive:!1}),U.delegatedEvents)J(f,ve,U.delegateListener),J(f,ve,U.delegateUseCapture,!0);for(var Oe=x&&x.events,we=0;we<M.length;we++){var ea=M[we];J(f,ea.type,ea.listener,Oe)}}var Ri={id:"core/interactions",install:function(t){for(var i={},f=0;f<Gr.length;f++){var b=Gr[f];i[b]=jn(b,t)}var x,M=Z.pEventTypes;function U(){for(var J=0,ve=t.interactions.list;J<ve.length;J++){var Oe=ve[J];if(Oe.pointerIsDown&&Oe.pointerType==="touch"&&!Oe._interacting)for(var we=function(){var cl=La[ea];t.documents.some(function(rl){return de(rl.doc,cl.downTarget)})||Oe.removePointer(cl.pointer,cl.event)},ea=0,La=Oe.pointers;ea<La.length;ea++)we()}}(x=Q.PointerEvent?[{type:M.down,listener:U},{type:M.down,listener:i.pointerDown},{type:M.move,listener:i.pointerMove},{type:M.up,listener:i.pointerUp},{type:M.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:U},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(J){for(var ve=0,Oe=t.interactions.list;ve<Oe.length;ve++)Oe[ve].documentBlur(J)}}),t.prevTouchTime=0,t.Interaction=function(J){m(Oe,J);var ve=L(Oe);function Oe(){return c(this,Oe),ve.apply(this,arguments)}return p(Oe,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(we){t.interactions.pointerMoveTolerance=we}},{key:"_now",value:function(){return t.now()}}]),Oe}(mr),t.interactions={list:[],new:function(J){J.scopeFire=function(Oe,we){return t.fire(Oe,we)};var ve=new t.Interaction(J);return t.interactions.list.push(ve),ve},listeners:i,docEvents:x,pointerMoveTolerance:1},t.usePlugin(Or)},listeners:{"scope:add-document":function(t){return zo(t,"add")},"scope:remove-document":function(t){return zo(t,"remove")},"interactable:unset":function(t,i){for(var f=t.interactable,b=i.interactions.list.length-1;b>=0;b--){var x=i.interactions.list[b];x.interactable===f&&(x.stop(),i.fire("interactions:destroy",{interaction:x}),x.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(b,1))}}},onDocSignal:zo,doOnInteractions:jn,methodNames:Gr},$i=Ri,Cn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(Cn||{}),Vi=function(){function t(i,f,b,x){c(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new An,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=i,this._context=f.context||b,this._win=_(Ha(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=x,this.set(f)}return p(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,f){return g.func(f.onstart)&&this.on("".concat(i,"start"),f.onstart),g.func(f.onmove)&&this.on("".concat(i,"move"),f.onmove),g.func(f.onend)&&this.on("".concat(i,"end"),f.onend),g.func(f.oninertiastart)&&this.on("".concat(i,"inertiastart"),f.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,f,b){var x,M=this,U=(x=this._actions.map[i])==null?void 0:x.filterEventType,J=function(ve){return(U==null||U(ve))&&zr(ve,M._actions)};(g.array(f)||g.object(f))&&this._onOff(Cn.Off,i,f,void 0,J),(g.array(b)||g.object(b))&&this._onOff(Cn.On,i,b,void 0,J)}},{key:"setPerAction",value:function(i,f){var b=this._defaults;for(var x in f){var M=x,U=this.options[i],J=f[M];M==="listeners"&&this.updatePerActionListeners(i,U.listeners,J),g.array(J)?U[M]=ua(J):g.plainObject(J)?(U[M]=re(U[M]||{},Sr(J)),g.object(b.perAction[M])&&"enabled"in b.perAction[M]&&(U[M].enabled=J.enabled!==!1)):g.bool(J)&&g.object(b.perAction[M])?U[M].enabled=J:U[M]=J}}},{key:"getRect",value:function(i){return i=i||(g.element(this.target)?this.target:null),g.string(this.target)&&(i=i||this._context.querySelector(this.target)),Ze(i)}},{key:"rectChecker",value:function(i){var f=this;return g.func(i)?(this.getRect=function(b){var x=re({},i.apply(f,b));return"width"in x||(x.width=x.right-x.left,x.height=x.bottom-x.top),x},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,f){if(Ha(f)||g.object(f)){for(var b in this.options[i]=f,this._actions.map)this.options[b][i]=f;return this}return this.options[i]}},{key:"origin",value:function(i){return this._backCompatOption("origin",i)}},{key:"deltaSource",value:function(i){return i==="page"||i==="client"?(this.options.deltaSource=i,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var i=this.target;return g.string(i)?Array.from(this._context.querySelectorAll(i)):g.func(i)&&i.getAllElements?i.getAllElements():g.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||de(this._context,i)}},{key:"testIgnoreAllow",value:function(i,f,b){return!this.testIgnore(i.ignoreFrom,f,b)&&this.testAllow(i.allowFrom,f,b)}},{key:"testAllow",value:function(i,f,b){return!i||!!g.element(b)&&(g.string(i)?ye(b,i,f):!!g.element(i)&&de(i,b))}},{key:"testIgnore",value:function(i,f,b){return!(!i||!g.element(b))&&(g.string(i)?ye(b,i,f):!!g.element(i)&&de(i,b))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,f,b,x,M){g.object(f)&&!g.array(f)&&(x=b,b=null);var U=Qe(f,b,M);for(var J in U){J==="wheel"&&(J=Z.wheelEvent);for(var ve=0,Oe=U[J];ve<Oe.length;ve++){var we=Oe[ve];zr(J,this._actions)?this.events[i===Cn.On?"on":"off"](J,we):g.string(this.target)?this._scopeEvents[i===Cn.On?"addDelegate":"removeDelegate"](this.target,this._context,J,we,x):this._scopeEvents[i===Cn.On?"add":"remove"](this.target,J,we,x)}}return this}},{key:"on",value:function(i,f,b){return this._onOff(Cn.On,i,f,b)}},{key:"off",value:function(i,f,b){return this._onOff(Cn.Off,i,f,b)}},{key:"set",value:function(i){var f=this._defaults;for(var b in g.object(i)||(i={}),this.options=Sr(f.base),this._actions.methodDict){var x=b,M=this._actions.methodDict[x];this.options[x]={},this.setPerAction(x,re(re({},f.perAction),f.actions[x])),this[M](i[x])}for(var U in i)U!=="getRect"?g.func(this[U])&&this[U](i[U]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[i],b=f.length-1;b>=0;b--){var x=f[b],M=x.selector,U=x.context,J=x.listeners;M===this.target&&U===this._context&&f.splice(b,1);for(var ve=J.length-1;ve>=0;ve--)this._scopeEvents.removeDelegate(this.target,this._context,i,J[ve][0],J[ve][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),Pi=function(){function t(i){var f=this;c(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(b){var x=b.interactable,M=x.target,U=g.string(M)?f.selectorMap[M]:M[f.scope.id],J=Ae(U,function(ve){return ve===x});U.splice(J,1)}})}return p(t,[{key:"new",value:function(i,f){f=re(f||{},{actions:this.scope.actions});var b=new this.scope.Interactable(i,f,this.scope.document,this.scope.events);return this.scope.addDocument(b._doc),this.list.push(b),g.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(b)):(b.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(b)),this.scope.fire("interactable:new",{target:i,options:f,interactable:b,win:this.scope._win}),b}},{key:"getExisting",value:function(i,f){var b=f&&f.context||this.scope.document,x=g.string(i),M=x?this.selectorMap[i]:i[this.scope.id];if(M)return za(M,function(U){return U._context===b&&(x||U.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var b=0,x=this.list;b<x.length;b++){var M=x[b],U=void 0;if((g.string(M.target)?g.element(i)&&ie(i,M.target):i===M.target)&&M.inContext(i)&&(U=f(M)),U!==void 0)return U}}}]),t}(),Go=function(){function t(){var i=this;c(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Z,this.defaults=Sr(bn),this.Eventable=An,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(b){var x=function M(U,J){var ve=b.interactables.getExisting(U,J);return ve||((ve=b.interactables.new(U,J)).events.global=M.globalEvents),ve};return x.getPointerAverage=da,x.getTouchBBox=Fa,x.getTouchDistance=ja,x.getTouchAngle=me,x.getElementRect=Ze,x.getElementClientRect=ke,x.matchesSelector=ie,x.closest=je,x.globalEvents={},x.version="1.10.27",x.scope=b,x.use=function(M,U){return this.scope.usePlugin(M,U),this},x.isSet=function(M,U){return!!this.scope.interactables.get(M,U&&U.context)},x.on=aa(function(M,U,J){if(g.string(M)&&M.search(" ")!==-1&&(M=M.trim().split(/ +/)),g.array(M)){for(var ve=0,Oe=M;ve<Oe.length;ve++){var we=Oe[ve];this.on(we,U,J)}return this}if(g.object(M)){for(var ea in M)this.on(ea,M[ea],U);return this}return zr(M,this.scope.actions)?this.globalEvents[M]?this.globalEvents[M].push(U):this.globalEvents[M]=[U]:this.scope.events.add(this.scope.document,M,U,{options:J}),this},"The interact.on() method is being deprecated"),x.off=aa(function(M,U,J){if(g.string(M)&&M.search(" ")!==-1&&(M=M.trim().split(/ +/)),g.array(M)){for(var ve=0,Oe=M;ve<Oe.length;ve++){var we=Oe[ve];this.off(we,U,J)}return this}if(g.object(M)){for(var ea in M)this.off(ea,M[ea],U);return this}var La;return zr(M,this.scope.actions)?M in this.globalEvents&&(La=this.globalEvents[M].indexOf(U))!==-1&&this.globalEvents[M].splice(La,1):this.scope.events.remove(this.scope.document,M,U,J),this},"The interact.off() method is being deprecated"),x.debug=function(){return this.scope},x.supportsTouch=function(){return Z.supportsTouch},x.supportsPointerEvent=function(){return Z.supportsPointerEvent},x.stop=function(){for(var M=0,U=this.scope.interactions.list;M<U.length;M++)U[M].stop();return this},x.pointerMoveTolerance=function(M){return g.number(M)?(this.scope.interactions.pointerMoveTolerance=M,this):this.scope.interactions.pointerMoveTolerance},x.addDocument=function(M,U){this.scope.addDocument(M,U)},x.removeDocument=function(M){this.scope.removeDocument(M)},x}(this),this.InteractEvent=Yr,this.Interactable=void 0,this.interactables=new Pi(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(b){return i.removeDocument(b.target)};var f=this;this.Interactable=function(b){m(M,b);var x=L(M);function M(){return c(this,M),x.apply(this,arguments)}return p(M,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(U){return S(u(M.prototype),"set",this).call(this,U),f.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){S(u(M.prototype),"unset",this).call(this);var U=f.interactables.list.indexOf(this);U<0||(f.interactables.list.splice(U,1),f.fire("interactable:unset",{interactable:this}))}}]),M}(Vi)}return p(t,[{key:"addListeners",value:function(i,f){this.listenerMaps.push({id:f,map:i})}},{key:"fire",value:function(i,f){for(var b=0,x=this.listenerMaps;b<x.length;b++){var M=x[b].map[i];if(M&&M(f,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(f,b){return f.isInitialized=!0,g.window(b)&&C(b),Q.init(b),Z.init(b),ae.init(b),f.window=b,f.document=b.document,f.usePlugin($i),f.usePlugin(Fn),f}(this,i)}},{key:"pluginIsInstalled",value:function(i){var f=i.id;return f?!!this._plugins.map[f]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,f){if(!this.isInitialized)return this;if(this.pluginIsInstalled(i))return this;if(i.id&&(this._plugins.map[i.id]=i),this._plugins.list.push(i),i.install&&i.install(this,f),i.listeners&&i.before){for(var b=0,x=this.listenerMaps.length,M=i.before.reduce(function(J,ve){return J[ve]=!0,J[Yo(ve)]=!0,J},{});b<x;b++){var U=this.listenerMaps[b].id;if(U&&(M[U]||M[Yo(U)]))break}this.listenerMaps.splice(b,0,{id:i.id,map:i.listeners})}else i.listeners&&this.listenerMaps.push({id:i.id,map:i.listeners});return this}},{key:"addDocument",value:function(i,f){if(this.getDocIndex(i)!==-1)return!1;var b=_(i);f=f?re({},f):{},this.documents.push({doc:i,options:f}),this.events.documents.push(i),i!==this.document&&this.events.add(b,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:b,scope:this,options:f})}},{key:"removeDocument",value:function(i){var f=this.getDocIndex(i),b=_(i),x=this.documents[f].options;this.events.remove(b,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:i,window:b,scope:this,options:x})}},{key:"getDocIndex",value:function(i){for(var f=0;f<this.documents.length;f++)if(this.documents[f].doc===i)return f;return-1}},{key:"getDocOptions",value:function(i){var f=this.getDocIndex(i);return f===-1?null:this.documents[f].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function Yo(t){return t&&t.replace(/\/.*$/,"")}var Jo=new Go,jr=Jo.interactStatic,Fi=typeof globalThis<"u"?globalThis:window;Jo.init(Fi);var Mo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(b){var x=b[0],M=b[1];return x in t||M in t}),f=function(b,x){for(var M=t.range,U=t.limits,J=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,ve=t.offset,Oe=ve===void 0?{x:0,y:0}:ve,we={range:M,grid:t,x:null,y:null},ea=0;ea<i.length;ea++){var La=i[ea],cl=La[0],rl=La[1],ul=Math.round((b-Oe.x)/t[cl]),Cl=Math.round((x-Oe.y)/t[rl]);we[cl]=Math.max(J.left,Math.min(J.right,ul*t[cl]+Oe.x)),we[rl]=Math.max(J.top,Math.min(J.bottom,Cl*t[rl]+Oe.y))}return we};return f.grid=t,f.coordFields=i,f}}),ji={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=re(i.snappers||{},Mo),i.createSnapGrid=i.snappers.grid}},Io=ji,Xo={start:function(t){var i=t.state,f=t.rect,b=t.edges,x=t.pageCoords,M=i.options,U=M.ratio,J=M.enabled,ve=i.options,Oe=ve.equalDelta,we=ve.modifiers;U==="preserve"&&(U=f.width/f.height),i.startCoords=re({},x),i.startRect=re({},f),i.ratio=U,i.equalDelta=Oe;var ea=i.linkedEdges={top:b.top||b.left&&!b.bottom,left:b.left||b.top&&!b.right,bottom:b.bottom||b.right&&!b.top,right:b.right||b.bottom&&!b.left};if(i.xIsPrimaryAxis=!(!b.left&&!b.right),i.equalDelta){var La=(ea.left?1:-1)*(ea.top?1:-1);i.edgeSign={x:La,y:La}}else i.edgeSign={x:ea.left?-1:1,y:ea.top?-1:1};if(J!==!1&&re(b,ea),we!=null&&we.length){var cl=new Mr(t.interaction);cl.copyFrom(t.interaction.modification),cl.prepareStates(we),i.subModification=cl,cl.startAll(o({},t))}},set:function(t){var i=t.state,f=t.rect,b=t.coords,x=i.linkedEdges,M=re({},b),U=i.equalDelta?Zo:Hi;if(re(t.edges,x),U(i,i.xIsPrimaryAxis,b,f),!i.subModification)return null;var J=re({},f);Ie(x,J,{x:b.x-M.x,y:b.y-M.y});var ve=i.subModification.setAll(o(o({},t),{},{rect:J,edges:x,pageCoords:b,prevCoords:b,prevRect:J})),Oe=ve.delta;return ve.changed&&(U(i,Math.abs(Oe.x)>Math.abs(Oe.y),ve.coords,ve.rect),re(b,ve.coords)),ve.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Zo(t,i,f){var b=t.startCoords,x=t.edgeSign;i?f.y=b.y+(f.x-b.x)*x.y:f.x=b.x+(f.y-b.y)*x.x}function Hi(t,i,f,b){var x=t.startRect,M=t.startCoords,U=t.ratio,J=t.edgeSign;if(i){var ve=b.width/U;f.y=M.y+(ve-x.height)*J.y}else{var Oe=b.height*U;f.x=M.x+(Oe-x.width)*J.x}}var Ui=Br(Xo,"aspectRatio"),Qo=function(){};Qo._defaults={};var En=Qo;function Sn(t,i,f){return g.func(t)?Ve(t,i.interactable,i.element,[f.x,f.y,i]):Ve(t,i.interactable,i.element)}var Hn={start:function(t){var i=t.rect,f=t.startOffset,b=t.state,x=t.interaction,M=t.pageCoords,U=b.options,J=U.elementRect,ve=re({left:0,top:0,right:0,bottom:0},U.offset||{});if(i&&J){var Oe=Sn(U.restriction,x,M);if(Oe){var we=Oe.right-Oe.left-i.width,ea=Oe.bottom-Oe.top-i.height;we<0&&(ve.left+=we,ve.right+=we),ea<0&&(ve.top+=ea,ve.bottom+=ea)}ve.left+=f.left-i.width*J.left,ve.top+=f.top-i.height*J.top,ve.right+=f.right-i.width*(1-J.right),ve.bottom+=f.bottom-i.height*(1-J.bottom)}b.offset=ve},set:function(t){var i=t.coords,f=t.interaction,b=t.state,x=b.options,M=b.offset,U=Sn(x.restriction,f,i);if(U){var J=function(ve){return!ve||"left"in ve&&"top"in ve||((ve=re({},ve)).left=ve.x||0,ve.top=ve.y||0,ve.right=ve.right||ve.left+ve.width,ve.bottom=ve.bottom||ve.top+ve.height),ve}(U);i.x=Math.max(Math.min(J.right-M.right,i.x),J.left+M.left),i.y=Math.max(Math.min(J.bottom-M.bottom,i.y),J.top+M.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},qi=Br(Hn,"restrict"),ei={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ai={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function li(t,i){for(var f=0,b=["top","left","bottom","right"];f<b.length;f++){var x=b[f];x in t||(t[x]=i[x])}return t}var Un={noInner:ei,noOuter:ai,start:function(t){var i,f=t.interaction,b=t.startOffset,x=t.state,M=x.options;M&&(i=ba(Sn(M.offset,f,f.coords.start.page))),i=i||{x:0,y:0},x.offset={top:i.y+b.top,left:i.x+b.left,bottom:i.y-b.bottom,right:i.x-b.right}},set:function(t){var i=t.coords,f=t.edges,b=t.interaction,x=t.state,M=x.offset,U=x.options;if(f){var J=re({},i),ve=Sn(U.inner,b,J)||{},Oe=Sn(U.outer,b,J)||{};li(ve,ei),li(Oe,ai),f.top?i.y=Math.min(Math.max(Oe.top+M.top,J.y),ve.top+M.top):f.bottom&&(i.y=Math.max(Math.min(Oe.bottom+M.bottom,J.y),ve.bottom+M.bottom)),f.left?i.x=Math.min(Math.max(Oe.left+M.left,J.x),ve.left+M.left):f.right&&(i.x=Math.max(Math.min(Oe.right+M.right,J.x),ve.right+M.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},eo=Br(Un,"restrictEdges"),ri=re({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Hn.defaults),ni=Br({start:Hn.start,set:Hn.set,defaults:ri},"restrictRect"),ao={width:-1/0,height:-1/0},Wi={width:1/0,height:1/0},oi=Br({start:function(t){return Un.start(t)},set:function(t){var i=t.interaction,f=t.state,b=t.rect,x=t.edges,M=f.options;if(x){var U=Fe(Sn(M.min,i,t.coords))||ao,J=Fe(Sn(M.max,i,t.coords))||Wi;f.options={endOnly:M.endOnly,inner:re({},Un.noInner),outer:re({},Un.noOuter)},x.top?(f.options.inner.top=b.bottom-U.height,f.options.outer.top=b.bottom-J.height):x.bottom&&(f.options.inner.bottom=b.top+U.height,f.options.outer.bottom=b.top+J.height),x.left?(f.options.inner.left=b.right-U.width,f.options.outer.left=b.right-J.width):x.right&&(f.options.inner.right=b.left+U.width,f.options.outer.right=b.left+J.width),Un.set(t),f.options=M}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),In={start:function(t){var i,f=t.interaction,b=t.interactable,x=t.element,M=t.rect,U=t.state,J=t.startOffset,ve=U.options,Oe=ve.offsetWithOrigin?function(La){var cl=La.interaction.element,rl=ba(Ve(La.state.options.origin,null,null,[cl])),ul=rl||$e(La.interactable,cl,La.interaction.prepared.name);return ul}(t):{x:0,y:0};if(ve.offset==="startCoords")i={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var we=Ve(ve.offset,b,x,[f]);(i=ba(we)||{x:0,y:0}).x+=Oe.x,i.y+=Oe.y}var ea=ve.relativePoints;U.offsets=M&&ea&&ea.length?ea.map(function(La,cl){return{index:cl,relativePoint:La,x:J.left-M.width*La.x+i.x,y:J.top-M.height*La.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,f=t.coords,b=t.state,x=b.options,M=b.offsets,U=$e(i.interactable,i.element,i.prepared.name),J=re({},f),ve=[];x.offsetWithOrigin||(J.x-=U.x,J.y-=U.y);for(var Oe=0,we=M;Oe<we.length;Oe++)for(var ea=we[Oe],La=J.x-ea.x,cl=J.y-ea.y,rl=0,ul=x.targets.length;rl<ul;rl++){var Cl=x.targets[rl],dl=void 0;(dl=g.func(Cl)?Cl(La,cl,i._proxy,ea,rl):Cl)&&ve.push({x:(g.number(dl.x)?dl.x:La)+ea.x,y:(g.number(dl.y)?dl.y:cl)+ea.y,range:g.number(dl.range)?dl.range:x.range,source:Cl,index:rl,offset:ea})}for(var Al={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ll=0;Ll<ve.length;Ll++){var Zl=ve[Ll],Nl=Zl.range,Wl=Zl.x-J.x,Hr=Zl.y-J.y,_r=Wa(Wl,Hr),Jr=_r<=Nl;Nl===1/0&&Al.inRange&&Al.range!==1/0&&(Jr=!1),Al.target&&!(Jr?Al.inRange&&Nl!==1/0?_r/Nl<Al.distance/Al.range:Nl===1/0&&Al.range!==1/0||_r<Al.distance:!Al.inRange&&_r<Al.distance)||(Al.target=Zl,Al.distance=_r,Al.range=Nl,Al.inRange=Jr,Al.delta.x=Wl,Al.delta.y=Hr)}return Al.inRange&&(f.x=Al.target.x,f.y=Al.target.y),b.closest=Al,Al},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ki=Br(In,"snap"),po={start:function(t){var i=t.state,f=t.edges,b=i.options;if(!f)return null;t.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:b.offset||"self",origin:{x:0,y:0},range:b.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],In.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,f=t.state,b=t.coords,x=f.options,M=f.offsets,U={x:b.x-M[0].x,y:b.y-M[0].y};f.options=re({},x),f.options.targets=[];for(var J=0,ve=x.targets||[];J<ve.length;J++){var Oe=ve[J],we=void 0;if(we=g.func(Oe)?Oe(U.x,U.y,i):Oe){for(var ea=0,La=f.targetFields;ea<La.length;ea++){var cl=La[ea],rl=cl[0],ul=cl[1];if(rl in we||ul in we){we.x=we[rl],we.y=we[ul];break}}f.options.targets.push(we)}}var Cl=In.set(t);return f.options=x,Cl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Gi=Br(po,"snapSize"),Oo={aspectRatio:Ui,restrictEdges:eo,restrict:qi,restrictRect:ni,restrictSize:oi,snapEdges:Br({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],po.start(t)):null},set:po.set,defaults:re(Sr(po.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ki,snapSize:Gi,spring:En,avoid:En,transform:En,rubberband:En},Yi={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(cr),t.usePlugin(Io),i.modifiers=Oo,Oo){var b=Oo[f],x=b._defaults,M=b._methods;x._methods=M,t.defaults.perAction[f]=x}}},Ji=Yi,ii=function(t){m(f,t);var i=L(f);function f(b,x,M,U,J,ve){var Oe;if(c(this,f),$(D(Oe=i.call(this,J)),M),M!==x&&$(D(Oe),x),Oe.timeStamp=ve,Oe.originalEvent=M,Oe.type=b,Oe.pointerId=Le(x),Oe.pointerType=Je(x),Oe.target=U,Oe.currentTarget=null,b==="tap"){var we=J.getPointerIndex(x);Oe.dt=Oe.timeStamp-J.pointers[we].downTime;var ea=Oe.timeStamp-J.tapTime;Oe.double=!!J.prevTap&&J.prevTap.type!=="doubletap"&&J.prevTap.target===Oe.target&&ea<500}else b==="doubletap"&&(Oe.dt=x.timeStamp-J.tapTime,Oe.double=!0);return Oe}return p(f,[{key:"_subtractOrigin",value:function(b){var x=b.x,M=b.y;return this.pageX-=x,this.pageY-=M,this.clientX-=x,this.clientY-=M,this}},{key:"_addOrigin",value:function(b){var x=b.x,M=b.y;return this.pageX+=x,this.pageY+=M,this.clientX+=x,this.clientY+=M,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f}(Xe),qn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=qn,t.defaults.actions.pointerEvents=qn.defaults,re(t.actions.phaselessTypes,qn.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.down,f=t.pointerInfo;!i&&f.hold||(f.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var f=t.interaction,b=t.pointer,x=t.event,M=t.eventTarget;t.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Lo(t),Dn({interaction:f,pointer:b,event:x,eventTarget:M,type:"move"},i))},"interactions:down":function(t,i){(function(f,b){for(var x=f.interaction,M=f.pointer,U=f.event,J=f.eventTarget,ve=f.pointerIndex,Oe=x.pointers[ve].hold,we=ya(J),ea={interaction:x,pointer:M,event:U,eventTarget:J,type:"hold",targets:[],path:we,node:null},La=0;La<we.length;La++){var cl=we[La];ea.node=cl,b.fire("pointerEvents:collect-targets",ea)}if(ea.targets.length){for(var rl=1/0,ul=0,Cl=ea.targets;ul<Cl.length;ul++){var dl=Cl[ul].eventable.options.holdDuration;dl<rl&&(rl=dl)}Oe.duration=rl,Oe.timeout=setTimeout(function(){Dn({interaction:x,eventTarget:J,pointer:M,event:U,type:"hold"},b)},rl)}})(t,i),Dn(t,i)},"interactions:up":function(t,i){Lo(t),Dn(t,i),function(f,b){var x=f.interaction,M=f.pointer,U=f.event,J=f.eventTarget;x.pointerWasMoved||Dn({interaction:x,eventTarget:J,pointer:M,event:U,type:"tap"},b)}(t,i)},"interactions:cancel":function(t,i){Lo(t),Dn(t,i)}},PointerEvent:ii,fire:Dn,collectEventTargets:ti,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Dn(t,i){var f=t.interaction,b=t.pointer,x=t.event,M=t.eventTarget,U=t.type,J=t.targets,ve=J===void 0?ti(t,i):J,Oe=new ii(U,b,x,M,f,i.now());i.fire("pointerEvents:new",{pointerEvent:Oe});for(var we={interaction:f,pointer:b,event:x,eventTarget:M,targets:ve,type:U,pointerEvent:Oe},ea=0;ea<ve.length;ea++){var La=ve[ea];for(var cl in La.props||{})Oe[cl]=La.props[cl];var rl=$e(La.eventable,La.node);if(Oe._subtractOrigin(rl),Oe.eventable=La.eventable,Oe.currentTarget=La.node,La.eventable.fire(Oe),Oe._addOrigin(rl),Oe.immediatePropagationStopped||Oe.propagationStopped&&ea+1<ve.length&&ve[ea+1].node!==Oe.currentTarget)break}if(i.fire("pointerEvents:fired",we),U==="tap"){var ul=Oe.double?Dn({interaction:f,pointer:b,event:x,eventTarget:M,type:"doubletap"},i):Oe;f.prevTap=ul,f.tapTime=ul.timeStamp}return Oe}function ti(t,i){var f=t.interaction,b=t.pointer,x=t.event,M=t.eventTarget,U=t.type,J=f.getPointerIndex(b),ve=f.pointers[J];if(U==="tap"&&(f.pointerWasMoved||!ve||ve.downTarget!==M))return[];for(var Oe=ya(M),we={interaction:f,pointer:b,event:x,eventTarget:M,type:U,path:Oe,targets:[],node:null},ea=0;ea<Oe.length;ea++){var La=Oe[ea];we.node=La,i.fire("pointerEvents:collect-targets",we)}return U==="hold"&&(we.targets=we.targets.filter(function(cl){var rl,ul;return cl.eventable.options.holdDuration===((rl=f.pointers[J])==null||(ul=rl.hold)==null?void 0:ul.duration)})),we.targets}function Lo(t){var i=t.interaction,f=t.pointerIndex,b=i.pointers[f].hold;b&&b.timeout&&(clearTimeout(b.timeout),b.timeout=null)}var Xi=Object.freeze({__proto__:null,default:qn});function fo(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Zi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(qn);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(t,i){return t["pointerEvents:".concat(i)]=fo,t},{"pointerEvents:new":function(t){var i=t.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var f=t.interaction,b=t.pointerEvent,x=t.eventTarget,M=t.targets;if(b.type==="hold"&&M.length){var U=M[0].eventable.options.holdRepeatInterval;U<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:x,type:"hold",pointer:b,event:b},i)},U))}}})},Qi=Zi,et={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(b){return re(this.events.options,b),this};var f=i.prototype._backCompatOption;i.prototype._backCompatOption=function(b,x){var M=f.call(this,b,x);return M===this&&(this.events.options[b]=x),M}},listeners:{"pointerEvents:collect-targets":function(t,i){var f=t.targets,b=t.node,x=t.type,M=t.eventTarget;i.interactables.forEachMatch(b,function(U){var J=U.events,ve=J.options;J.types[x]&&J.types[x].length&&U.testIgnoreAllow(ve,b,M)&&f.push({node:b,eventable:J,props:{interactable:U}})})},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(f){return i.getRect(f)}},"interactable:set":function(t,i){var f=t.interactable,b=t.options;re(f.events.options,i.pointerEvents.defaults),re(f.events.options,b.pointerEvents||{})}}},at=et,si={id:"pointer-events",install:function(t){t.usePlugin(Xi),t.usePlugin(Qi),t.usePlugin(at)}},ho=si,lt={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(f){return function(b,x,M){for(var U=b.getAllElements(),J=M.window.Promise,ve=J?[]:null,Oe=function(){var ea=U[we],La=b.getRect(ea);if(!La)return 1;var cl,rl=za(M.interactions.list,function(dl){return dl.interacting()&&dl.interactable===b&&dl.element===ea&&dl.prepared.name===x.name});if(rl)rl.move(),ve&&(cl=rl._reflowPromise||new J(function(dl){rl._reflowResolve=dl}));else{var ul=Fe(La),Cl=function(dl){return{coords:dl,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:ul.x,y:ul.y},client:{x:ul.x,y:ul.y},timeStamp:M.now()});cl=function(dl,Al,Ll,Zl,Nl){var Wl=dl.interactions.new({pointerType:"reflow"}),Hr={interaction:Wl,event:Nl,pointer:Nl,eventTarget:Ll,phase:"reflow"};Wl.interactable=Al,Wl.element=Ll,Wl.prevEvent=Nl,Wl.updatePointer(Nl,Nl,Ll,!0),se(Wl.coords.delta),Ge(Wl.prepared,Zl),Wl._doPhase(Hr);var _r=dl.window,Jr=_r.Promise,tn=Jr?new Jr(function(fn){Wl._reflowResolve=fn}):void 0;return Wl._reflowPromise=tn,Wl.start(Zl,Al,Ll),Wl._interacting?(Wl.move(Hr),Wl.end(Nl)):(Wl.stop(),Wl._reflowResolve()),Wl.removePointer(Nl,Nl),tn}(M,b,ea,x,Cl)}ve&&ve.push(cl)},we=0;we<U.length&&!Oe();we++);return ve&&J.all(ve).then(function(){return b})}(this,f,t)}},listeners:{"interactions:stop":function(t,i){var f=t.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),function(b,x){b.splice(b.indexOf(x),1)}(i.interactions.list,f))}}},rt=lt;if(jr.use(Or),jr.use(yr),jr.use(ho),jr.use(on),jr.use(Ji),jr.use(Rl),jr.use(qa),jr.use(G),jr.use(rt),jr.default=jr,s(l)==="object"&&l)try{l.exports=jr}catch{}return jr.default=jr,jr})}(Po,Po.exports)),Po.exports}var Z4=X4();const Ns=Vn.getDefaultExportFromCjs(Z4),Ii=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:n,emit:r}){const o=l,s=r,c=a.inject(Oc),y=a.inject(Lc);if(!c)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const p=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let m=!1,u=!1,w=NaN,D=NaN,L=NaN,S=NaN,W=-1,I=-1,A=-1,ee=-1,C=o.x,_=o.y,E=o.w,k=o.h;const g=a.ref(),O=a.reactive({i:a.toRef(o,"i"),state:v,wrapper:g,calcXY:Ve});function F(ue){Qe(ue)}function q(){Xa()}function te(ue){un(o.isDraggable)&&(v.draggable=ue)}function Te(ue){un(o.isResizable)&&(v.resizable=ue)}function Ee(ue){un(o.isBounded)&&(v.bounded=ue)}function Q(ue){v.transformScale=ue}function be(ue){v.rowHeight=ue}function Z(ue){v.maxRows=ue}function de(){v.rtl=Ds()==="rtl",Xa()}function je(ue){v.cols=Math.floor(ue)}c.increaseItem(O),a.onBeforeMount(()=>{v.rtl=Ds()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?v.cols=Fc(c.lastBreakpoint,c.cols):v.cols=c.colNum,v.rowHeight=c.rowHeight,v.containerWidth=c.width!==null?c.width:100,v.margin=c.margin!==void 0?c.margin.map(Number):[10,10],v.maxRows=c.maxRows,un(o.isDraggable)?v.draggable=c.isDraggable:v.draggable=o.isDraggable,un(o.isResizable)?v.resizable=c.isResizable:v.resizable=o.isResizable,un(o.isBounded)?v.bounded=c.isBounded:v.bounded=o.isBounded,v.transformScale=c.transformScale,v.useCssTransforms=c.useCssTransforms,v.useStyleCursor=c.useStyleCursor,a.watchEffect(()=>{C=o.x,_=o.y,k=o.h,E=o.w,Xr(Ze)}),y.on("updateWidth",F),y.on("compact",q),y.on("setDraggable",te),y.on("setResizable",Te),y.on("setBounded",Ee),y.on("setTransformScale",Q),y.on("setRowHeight",be),y.on("setMaxRows",Z),y.on("directionchange",de),y.on("setColNum",je)}),a.onBeforeUnmount(()=>{y.off("updateWidth",F),y.off("compact",q),y.off("setDraggable",te),y.off("setResizable",Te),y.off("setBounded",Ee),y.off("setTransformScale",Q),y.off("setRowHeight",be),y.off("setMaxRows",Z),y.off("directionchange",de),y.off("setColNum",je),p.value&&(p.value.unset(),p.value=null),c.decreaseItem(O)}),n({state:v,wrapper:g});const wa=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ie=a.computed(()=>v.resizable&&!o.static),P=a.computed(()=>c.isMirrored?!v.rtl:v.rtl),j=a.computed(()=>(v.draggable||v.resizable)&&!o.static),ye=H4("item"),Se=a.computed(()=>({[ye.b()]:!0,[ye.bm("resizable")]:ie.value,[ye.bm("static")]:o.static,[ye.bm("resizing")]:v.isResizing,[ye.bm("dragging")]:v.isDragging,[ye.bm("transform")]:v.useCssTransforms,[ye.bm("rtl")]:P.value,[ye.bm("no-touch")]:wa&&j.value})),ke=a.computed(()=>[ye.be("resizer"),P.value&&ye.bem("resizer","rtl")].filter(Boolean));a.watch(()=>o.isDraggable,ue=>{v.draggable=ue}),a.watch(()=>o.static,()=>{Xr($),Xr(se)}),a.watch(()=>v.draggable,()=>{Xr($)}),a.watch(()=>o.isResizable,ue=>{v.resizable=ue}),a.watch(()=>o.isBounded,ue=>{v.bounded=ue}),a.watch(()=>v.resizable,()=>{Xr(se)}),a.watch(()=>v.rowHeight,()=>{Xr(Ze),Xr(ya)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{Xr(se),Xr(Ze),Xr(ya)}),a.watch([()=>o.minH,()=>o.maxH,()=>o.minW,()=>o.maxW],()=>{Xr(se)}),a.watch(P,()=>{Xr(se),Xr(Ze)}),a.watch([()=>c.margin,()=>c.margin[0],()=>c.margin[1]],()=>{const ue=c.margin;!ue||ue[0]===v.margin[0]&&ue[1]===v.margin[1]||(v.margin=ue.map(Number),Xr(Ze),Xr(ya))});function Ze(){o.x+o.w>v.cols?(C=0,E=o.w>v.cols?v.cols:o.w):(C=o.x,E=o.w);const ue=la(C,_,E,k);v.isDragging&&(ue.top=v.dragging.top,P.value?ue.right=v.dragging.left:ue.left=v.dragging.left),v.isResizing&&(ue.width=v.resizing.width,ue.height=v.resizing.height);let va;v.useCssTransforms?P.value?va=V4(ue.top,ue.right,ue.width,ue.height):va=$4(ue.top,ue.left,ue.width,ue.height):P.value?va=F4(ue.top,ue.right,ue.width,ue.height):va=P4(ue.top,ue.left,ue.width,ue.height),v.style=va}function ya(){const ue={};for(const va of["width","height"]){const ra=v.style[va].match(/^(\d+)px$/);if(!ra)return;ue[va]=ra[1]}s("container-resized",o.i,o.h,o.w,ue.height,ue.width)}function Ha(ue){if(o.static)return;const va=ue.type;if(va==="resizestart"&&v.isResizing||va!=="resizestart"&&!v.isResizing)return;const ra=Es(ue);if(un(ra))return;const{x:Le,y:Ce}=ra,Sa={width:0,height:0};let da;switch(va){case"resizestart":{se(),W=E,I=k,da=la(C,_,E,k),Sa.width=da.width,Sa.height=da.height,v.resizing=Sa,v.isResizing=!0;break}case"resizemove":{!ue.edges.right&&!ue.edges.left&&(L=Le),!ue.edges.top&&!ue.edges.bottom&&(S=Ce);const Fa=Ss(L,S,Le,Ce);P.value?Sa.width=v.resizing.width-Fa.deltaX/v.transformScale:Sa.width=v.resizing.width+Fa.deltaX/v.transformScale,Sa.height=v.resizing.height+Fa.deltaY/v.transformScale,v.resizing=Sa;break}case"resizeend":{da=la(C,_,E,k),Sa.width=da.width,Sa.height=da.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}da=$e(Sa.height,Sa.width),da.w<o.minW&&(da.w=o.minW),da.w>o.maxW&&(da.w=o.maxW),da.h<o.minH&&(da.h=o.minH),da.h>o.maxH&&(da.h=o.maxH),da.h<1&&(da.h=1),da.w<1&&(da.w=1),L=Le,S=Ce,(E!==da.w||k!==da.h)&&s("resize",o.i,da.h,da.w,Sa.height,Sa.width),ue.type==="resizeend"&&(W!==E||I!==k)&&s("resized",o.i,da.h,da.w,Sa.height,Sa.width),y.emit("resizeEvent",ue.type,o.i,C,_,da.h,da.w)}function re(ue){if(o.static||v.isResizing)return;const va=ue.type;if(va==="dragstart"&&v.isDragging||va!=="dragstart"&&!v.isDragging)return;const ra=Es(ue);if(un(ra))return;const{x:Le,y:Ce}=ra,Sa=ue.target;if(!Sa.offsetParent)return;const da={top:0,left:0};switch(va){case"dragstart":{A=C,ee=_;const ja=Sa.offsetParent.getBoundingClientRect(),me=Sa.getBoundingClientRect(),Je=me.left/v.transformScale,ze=ja.left/v.transformScale,Xe=me.right/v.transformScale,pa=ja.right/v.transformScale,ua=me.top/v.transformScale,Ae=ja.top/v.transformScale;P.value?da.left=(Xe-pa)*-1:da.left=Je-ze,da.top=ua-Ae,v.dragging=da,v.isDragging=!0;break}case"dragmove":{const ja=Ss(w,D,Le,Ce);if(P.value?da.left=v.dragging.left-ja.deltaX/v.transformScale:da.left=v.dragging.left+ja.deltaX/v.transformScale,da.top=v.dragging.top+ja.deltaY/v.transformScale,v.bounded){const me=Sa.offsetParent.clientHeight-Fe(o.h,v.rowHeight,v.margin[1]);da.top=Ie(da.top,0,me);const Je=ba(),ze=v.containerWidth-Fe(o.w,Je,v.margin[0]);da.left=Ie(da.left,0,ze)}v.dragging=da;break}case"dragend":{const ja=Sa.offsetParent.getBoundingClientRect(),me=Sa.getBoundingClientRect(),Je=me.left/v.transformScale,ze=ja.left/v.transformScale,Xe=me.right/v.transformScale,pa=ja.right/v.transformScale,ua=me.top/v.transformScale,Ae=ja.top/v.transformScale;P.value?da.left=(Xe-pa)*-1:da.left=Je-ze,da.top=ua-Ae,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Fa;P.value,Fa=Ve(da.top,da.left),w=Le,D=Ce,(C!==Fa.x||_!==Fa.y)&&s("move",o.i,Fa.x,Fa.y),ue.type==="dragend"&&(A!==C||ee!==_)&&s("moved",o.i,Fa.x,Fa.y),y.emit("dragEvent",ue.type,o.i,Fa.x,Fa.y,k,E)}function la(ue,va,ra,Le){const Ce=ba();let Sa;return P.value?Sa={right:Math.round(Ce*ue+(ue+1)*v.margin[0]),top:Math.round(v.rowHeight*va+(va+1)*v.margin[1]),width:ra===1/0?ra:Math.round(Ce*ra+Math.max(0,ra-1)*v.margin[0]),height:Le===1/0?Le:Math.round(v.rowHeight*Le+Math.max(0,Le-1)*v.margin[1])}:Sa={left:Math.round(Ce*ue+(ue+1)*v.margin[0]),top:Math.round(v.rowHeight*va+(va+1)*v.margin[1]),width:ra===1/0?ra:Math.round(Ce*ra+Math.max(0,ra-1)*v.margin[0]),height:Le===1/0?Le:Math.round(v.rowHeight*Le+Math.max(0,Le-1)*v.margin[1])},Sa}function Ve(ue,va){const ra=ba();let Le=Math.round((va-v.margin[0])/(ra+v.margin[0])),Ce=Math.round((ue-v.margin[1])/(v.rowHeight+v.margin[1]));return Le=Math.max(Math.min(Le,v.cols-E),0),Ce=Math.max(Math.min(Ce,v.maxRows-k),0),{x:Le,y:Ce}}function ba(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function Fe(ue,va,ra){return Number.isFinite(ue)?Math.round(va*ue+Math.max(0,ue-1)*ra):ue}function Ie(ue,va,ra){return Math.max(Math.min(ue,ra),va)}function $e(ue,va,ra=!1){const Le=ba();let Ce=Math.round((va+v.margin[0])/(Le+v.margin[0])),Sa=0;return ra?Sa=Math.ceil((ue+v.margin[1])/(v.rowHeight+v.margin[1])):Sa=Math.round((ue+v.margin[1])/(v.rowHeight+v.margin[1])),Ce=Math.max(Math.min(Ce,v.cols-C),0),Sa=Math.max(Math.min(Sa,v.maxRows-_),0),{w:Ce,h:Sa}}function Qe(ue,va){v.containerWidth=ue}function Xa(){Ze()}function Wa(){!p.value&&g.value&&(p.value=Ns(g.value),v.useStyleCursor||p.value.styleCursor(!1))}const V=ws(re);function $(){if(Wa(),!!p.value)if(v.draggable&&!o.static){const ue={ignoreFrom:o.dragIgnoreFrom,allowFrom:o.dragAllowFrom,...o.dragOption};p.value.draggable(ue),m||(m=!0,p.value.on("dragstart dragmove dragend",va=>{va.type==="dragmove"?V(va):re(va)}))}else p.value.draggable({enabled:!1})}const X=ws(Ha);function se(){if(Wa(),!!p.value)if(v.resizable&&!o.static){const ue=la(0,0,o.maxW,o.maxH),va=la(0,0,o.minW,o.minH),ra={edges:{left:P.value?`.${ke.value[0]}`:!1,right:P.value?!1:`.${ke.value[0]}`,bottom:`.${ke.value[0]}`,top:!1},ignoreFrom:o.resizeIgnoreFrom,restrictSize:{min:{height:va.height*v.transformScale,width:va.width*v.transformScale},max:{height:ue.height*v.transformScale,width:ue.width*v.transformScale}},...o.resizeOption};o.preserveAspectRatio&&(ra.modifiers=[Ns.modifiers.aspectRatio({ratio:"preserve"})]),p.value.resizable(ra),u||(u=!0,p.value.on("resizestart resizemove resizeend",Le=>{Le.type==="resizemove"?X(Le):Ha(Le)}))}else p.value.resizable({enabled:!1})}return(ue,va)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(Se.value),style:a.normalizeStyle(v.style)},[a.renderSlot(ue.$slots,"default"),ie.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(ke.value)},null,2)):a.createCommentVNode("",!0)],6))}}),uo=typeof window<"u";var Ts;uo&&(Ts=window==null?void 0:window.navigator)!=null&&Ts.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function As(l){return l!=null}function zs(){}const Q4=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Q4)));const e6=uo&&("ontouchstart"in window||l6()>0),a6=e6?"pointerdown":"click";function l6(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function r6(l,n,r=window.Event){const{type:o,bubbles:s=!1,cancelable:c=!1,...y}=n;if(!As(o)||o==="")return!1;let p;return As(r)?p=new r(o,{bubbles:s,cancelable:c}):(p=document.createEvent("HTMLEvents"),p.initEvent(o,s,c)),Object.assign(p,y),l.dispatchEvent(p)}const n6="clickoutside",o6=new Set;uo&&document.addEventListener(a6,l=>{const n=l.target,r=l.composedPath&&l.composedPath();o6.forEach(o=>{o!==n&&(r?!r.includes(o):!o.contains(n))&&(!o.__transferElement||o.__transferElement!==n&&!o.__transferElement.contains(n))&&r6(o,{type:n6})})},!0);const i6=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let wi;if(uo){for(const l of i6)if(l[1]in document){wi=l;break}}a.computed(()=>!1);const t6=new Set,s6=new WeakMap;if(uo&&wi){const l=wi[2],n=wi[4];document.addEventListener(n,()=>{if(t6.forEach(r=>{r.value=!1}),document[l]){const r=s6.get(document[l]);r&&(r.value=!0)}},!1)}const Hc=new Map;Hc.set("x",0);Hc.set("y",0);var so=[],c6=function(){return so.some(function(l){return l.activeTargets.length>0})},u6=function(){return so.some(function(l){return l.skippedTargets.length>0})},Ms="ResizeObserver loop completed with undelivered notifications.",d6=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:Ms}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=Ms),window.dispatchEvent(l)},Ko;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ko||(Ko={}));var co=function(l){return Object.freeze(l)},p6=function(){function l(n,r){this.inlineSize=n,this.blockSize=r,co(this)}return l}(),Uc=function(){function l(n,r,o,s){return this.x=n,this.y=r,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,co(this)}return l.prototype.toJSON=function(){var n=this,r=n.x,o=n.y,s=n.top,c=n.right,y=n.bottom,p=n.left,v=n.width,m=n.height;return{x:r,y:o,top:s,right:c,bottom:y,left:p,width:v,height:m}},l.fromRect=function(n){return new l(n.x,n.y,n.width,n.height)},l}(),Nt=function(l){return l instanceof SVGElement&&"getBBox"in l},qc=function(l){if(Nt(l)){var n=l.getBBox(),r=n.width,o=n.height;return!r&&!o}var s=l,c=s.offsetWidth,y=s.offsetHeight;return!(c||y||l.getClientRects().length)},Is=function(l){var n;if(l instanceof Element)return!0;var r=(n=l==null?void 0:l.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&l instanceof r.Element)},f6=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Uo=typeof window<"u"?window:{},gi=new WeakMap,Os=/auto|scroll/,h6=/^tb|vertical/,v6=/msie|trident/i.test(Uo.navigator&&Uo.navigator.userAgent),Nn=function(l){return parseFloat(l||"0")},Bo=function(l,n,r){return l===void 0&&(l=0),n===void 0&&(n=0),r===void 0&&(r=!1),new p6((r?n:l)||0,(r?l:n)||0)},Ls=co({devicePixelContentBoxSize:Bo(),borderBoxSize:Bo(),contentBoxSize:Bo(),contentRect:new Uc(0,0,0,0)}),Wc=function(l,n){if(n===void 0&&(n=!1),gi.has(l)&&!n)return gi.get(l);if(qc(l))return gi.set(l,Ls),Ls;var r=getComputedStyle(l),o=Nt(l)&&l.ownerSVGElement&&l.getBBox(),s=!v6&&r.boxSizing==="border-box",c=h6.test(r.writingMode||""),y=!o&&Os.test(r.overflowY||""),p=!o&&Os.test(r.overflowX||""),v=o?0:Nn(r.paddingTop),m=o?0:Nn(r.paddingRight),u=o?0:Nn(r.paddingBottom),w=o?0:Nn(r.paddingLeft),D=o?0:Nn(r.borderTopWidth),L=o?0:Nn(r.borderRightWidth),S=o?0:Nn(r.borderBottomWidth),W=o?0:Nn(r.borderLeftWidth),I=w+m,A=v+u,ee=W+L,C=D+S,_=p?l.offsetHeight-C-l.clientHeight:0,E=y?l.offsetWidth-ee-l.clientWidth:0,k=s?I+ee:0,g=s?A+C:0,O=o?o.width:Nn(r.width)-k-E,F=o?o.height:Nn(r.height)-g-_,q=O+I+E+ee,te=F+A+_+C,Te=co({devicePixelContentBoxSize:Bo(Math.round(O*devicePixelRatio),Math.round(F*devicePixelRatio),c),borderBoxSize:Bo(q,te,c),contentBoxSize:Bo(O,F,c),contentRect:new Uc(w,v,O,F)});return gi.set(l,Te),Te},Kc=function(l,n,r){var o=Wc(l,r),s=o.borderBoxSize,c=o.contentBoxSize,y=o.devicePixelContentBoxSize;switch(n){case Ko.DEVICE_PIXEL_CONTENT_BOX:return y;case Ko.BORDER_BOX:return s;default:return c}},m6=function(){function l(n){var r=Wc(n);this.target=n,this.contentRect=r.contentRect,this.borderBoxSize=co([r.borderBoxSize]),this.contentBoxSize=co([r.contentBoxSize]),this.devicePixelContentBoxSize=co([r.devicePixelContentBoxSize])}return l}(),Gc=function(l){if(qc(l))return 1/0;for(var n=0,r=l.parentNode;r;)n+=1,r=r.parentNode;return n},y6=function(){var l=1/0,n=[];so.forEach(function(c){if(c.activeTargets.length!==0){var y=[];c.activeTargets.forEach(function(p){var v=new m6(p.target),m=Gc(p.target);y.push(v),p.lastReportedSize=Kc(p.target,p.observedBox),m<l&&(l=m)}),n.push(function(){c.callback.call(c.observer,y,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var r=0,o=n;r<o.length;r++){var s=o[r];s()}return l},Rs=function(l){so.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Gc(r.target)>l?n.activeTargets.push(r):n.skippedTargets.push(r))})})},g6=function(){var l=0;for(Rs(l);c6();)l=y6(),Rs(l);return u6()&&d6(),l>0},ut,Yc=[],b6=function(){return Yc.splice(0).forEach(function(l){return l()})},k6=function(l){if(!ut){var n=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return b6()}).observe(r,o),ut=function(){r.textContent="".concat(n?n--:n++)}}Yc.push(l),ut()},x6=function(l){k6(function(){requestAnimationFrame(l)})},_i=0,w6=function(){return!!_i},_6=250,C6={attributes:!0,characterData:!0,childList:!0,subtree:!0},$s=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Vs=function(l){return l===void 0&&(l=0),Date.now()+l},dt=!1,E6=function(){function l(){var n=this;this.stopped=!0,this.listener=function(){return n.schedule()}}return l.prototype.run=function(n){var r=this;if(n===void 0&&(n=_6),!dt){dt=!0;var o=Vs(n);x6(function(){var s=!1;try{s=g6()}finally{if(dt=!1,n=o-Vs(),!w6())return;s?r.run(1e3):n>0?r.run(n):r.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var n=this,r=function(){return n.observer&&n.observer.observe(document.body,C6)};document.body?r():Uo.addEventListener("DOMContentLoaded",r)},l.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),$s.forEach(function(r){return Uo.addEventListener(r,n.listener,!0)}))},l.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),$s.forEach(function(r){return Uo.removeEventListener(r,n.listener,!0)}),this.stopped=!0)},l}(),Ct=new E6,Ps=function(l){!_i&&l>0&&Ct.start(),_i+=l,!_i&&Ct.stop()},S6=function(l){return!Nt(l)&&!f6(l)&&getComputedStyle(l).display==="inline"},D6=function(){function l(n,r){this.target=n,this.observedBox=r||Ko.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var n=Kc(this.target,this.observedBox,!0);return S6(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},l}(),B6=function(){function l(n,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=n,this.callback=r}return l}(),bi=new WeakMap,Fs=function(l,n){for(var r=0;r<l.length;r+=1)if(l[r].target===n)return r;return-1},ki=function(){function l(){}return l.connect=function(n,r){var o=new B6(n,r);bi.set(n,o)},l.observe=function(n,r,o){var s=bi.get(n),c=s.observationTargets.length===0;Fs(s.observationTargets,r)<0&&(c&&so.push(s),s.observationTargets.push(new D6(r,o&&o.box)),Ps(1),Ct.schedule())},l.unobserve=function(n,r){var o=bi.get(n),s=Fs(o.observationTargets,r),c=o.observationTargets.length===1;s>=0&&(c&&so.splice(so.indexOf(o),1),o.observationTargets.splice(s,1),Ps(-1))},l.disconnect=function(n){var r=this,o=bi.get(n);o.observationTargets.slice().forEach(function(s){return r.unobserve(n,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},l}(),N6=function(){function l(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ki.connect(this,n)}return l.prototype.observe=function(n,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Is(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ki.observe(this,n,r)},l.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Is(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ki.unobserve(this,n)},l.prototype.disconnect=function(){ki.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const Oi=new WeakMap;function T6(l){var n;for(let r=0,o=l.length;r<o;++r){const s=l[r],c=Oi.get(s.target);if(typeof c=="function"){const{inlineSize:y,blockSize:p}=((n=s.borderBoxSize)==null?void 0:n[0])??{},{offsetWidth:v,offsetHeight:m}=s.target;c(Object.assign(s,{offsetWidth:v,offsetHeight:m,width:y??v,height:p??m}))}}}const Jc=new(uo&&window.ResizeObserver||N6)(T6);function js(l,n){Oi.set(l,n),Jc.observe(l)}function Hs(l){Oi.has(l)&&(Jc.unobserve(l),Oi.delete(l))}function A6(l={}){let n=zs;const r=a.watch(()=>a.unref(l.target),s=>{n(),!(!s||typeof l.onResize!="function")&&(js(s,l.onResize),n=()=>{Hs(s),n=zs})},{immediate:!0}),o=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(o),{observeResize:js,unobserveResize:Hs,unobserve:o}}const z6=a.ref(!1);a.computed(()=>z6.value);const Us="__theme_style__",pt="__theme_observer__",qs=a.reactive(new Map),Ws=new Map;a.watch(qs,()=>{if(!uo)return;Ws.clear();const l=document.head.querySelector(`#${Us}`);l&&document.head.removeChild(l);const n=document.createElement("style");let r=`.${pt} { width: 1px }`,o=1;for(const[s,[c,y]]of qs.entries())r+=` html.${c} .${pt}, .${y} .${pt} { width: ${++o}px }`,Ws.set(o,s);n.textContent=r,n.id=Us,document.head.appendChild(n)});const Xc=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:n,emit:r}){const o=l,s=r,c=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),y=new Map,p=a.ref(o.layout),v=a.ref(),{observeResize:m,unobserveResize:u}=A6(),w=A4();w.on("resizeEvent",D),w.on("dragEvent",L),a.onBeforeMount(()=>{s("layout-before-mount",p.value)}),a.onMounted(()=>{s("layout-mounted",p.value),a.nextTick(()=>{j4(p.value),c.originalLayout=p.value,a.nextTick(()=>{F(),v.value&&m(v.value,z4(C,16)),Co(p.value,o.verticalCompact),s("layout-updated",p.value),ee(),C()})})}),a.onBeforeUnmount(()=>{w.clearAll(),v.value&&u(v.value)});function D(te,Te,Ee,Q,be,Z){g(te,Te,Ee,Q,be,Z)}function L(te,Te,Ee,Q,be,Z){k(te,Te,Ee,Q,be,Z)}a.watch(()=>c.width,(te,Te)=>{a.nextTick(()=>{w.emit("updateWidth",te),Te===-1&&a.nextTick(()=>{s("layout-ready",p.value)}),ee()})}),a.watch(()=>[o.layout,o.layout.length],()=>{p.value=o.layout,A()}),a.watch(()=>o.colNum,te=>{w.emit("setColNum",te)}),a.watch(()=>o.rowHeight,te=>{w.emit("setRowHeight",te)}),a.watch(()=>o.isDraggable,te=>{w.emit("setDraggable",te)}),a.watch(()=>o.isResizable,te=>{w.emit("setResizable",te)}),a.watch(()=>o.isBounded,te=>{w.emit("setBounded",te)}),a.watch(()=>o.transformScale,te=>{w.emit("setTransformScale",te)}),a.watch(()=>o.responsive,te=>{te||(s("update:layout",c.originalLayout),w.emit("setColNum",o.colNum)),C()}),a.watch(()=>o.maxRows,te=>{w.emit("setMaxRows",te)}),a.watch([()=>o.margin,()=>o.margin[1]],ee),a.provide(Oc,a.reactive({...a.toRefs(o),...a.toRefs(c),increaseItem:S,decreaseItem:W})),a.provide(Lc,w),n({state:c,getItem:I,resizeEvent:g,dragEvent:k,layoutUpdate:A});function S(te){y.set(te.i,te)}function W(te){y.delete(te.i)}function I(te){return y.get(te)}function A(){if(!un(p.value)&&!un(c.originalLayout)){if(p.value.length!==c.originalLayout.length){const te=q(p.value,c.originalLayout);if(te.length>0)if(p.value.length>c.originalLayout.length)c.originalLayout=c.originalLayout.concat(te);else{const Te=new Set(te.map(Ee=>Ee.i));c.originalLayout=c.originalLayout.filter(Ee=>!Te.has(Ee.i))}c.lastLayoutLength=p.value.length,F()}Co(p.value,o.verticalCompact),w.emit("updateWidth",c.width),ee(),s("layout-updated",p.value)}}function ee(){c.mergedStyle={height:_()}}function C(){v.value&&(c.width=v.value.offsetWidth),w.emit("resizeEvent")}function _(){if(!o.autoSize)return;const te=parseFloat(o.margin[1]);return I4(p.value)*(o.rowHeight+te)+te+"px"}let E;function k(te,Te,Ee,Q,be,Z){let de=_s(p.value,Te);un(de)&&(de={h:0,w:0,x:0,y:0,i:""}),te==="dragstart"&&!o.verticalCompact&&(E=p.value.reduce((je,{i:wa,x:ie,y:P})=>({...je,[wa]:{x:ie,y:P}}),{})),te==="dragmove"||te==="dragstart"?(c.placeholder.i=Te,c.placeholder.x=de.x,c.placeholder.y=de.y,c.placeholder.w=Z,c.placeholder.h=be,a.nextTick(()=>{c.isDragging=!0}),w.emit("updateWidth",c.width)):a.nextTick(()=>{c.isDragging=!1}),p.value=_t(p.value,de,Ee,Q,!0,o.preventCollision),o.restoreOnDrag?(de.static=!0,Co(p.value,o.verticalCompact,E),de.static=!1):Co(p.value,o.verticalCompact),w.emit("compact"),ee(),te==="dragend"&&(E=void 0,s("layout-updated",p.value))}function g(te,Te,Ee,Q,be,Z){let de=_s(p.value,Te);un(de)&&(de={h:0,w:0,x:0,y:0,i:""});let je;if(o.preventCollision){const wa=$c(p.value,{...de,w:Z,h:be}).filter(ie=>ie.i!==de.i);if(je=wa.length>0,je){let ie=1/0,P=1/0;wa.forEach(j=>{j.x>de.x&&(ie=Math.min(ie,j.x)),j.y>de.y&&(P=Math.min(P,j.y))}),Number.isFinite(ie)&&(de.w=ie-de.x),Number.isFinite(P)&&(de.h=P-de.y)}}je||(de.w=Z,de.h=be),te==="resizestart"||te==="resizemove"?(c.placeholder.i=Te,c.placeholder.x=Ee,c.placeholder.y=Q,c.placeholder.w=de.w,c.placeholder.h=de.h,a.nextTick(()=>{c.isDragging=!0}),w.emit("updateWidth",c.width)):te&&a.nextTick(()=>{c.isDragging=!1}),o.responsive&&O(),Co(p.value,o.verticalCompact),w.emit("compact"),ee(),te==="resizeend"&&s("layout-updated",p.value)}function O(){const te=W4(o.breakpoints,c.width);if(te===c.lastBreakpoint)return;const Te=Fc(te,o.cols);!un(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=wt(p.value));const Ee=K4(c.originalLayout,c.layouts,o.breakpoints,te,c.lastBreakpoint,Te,o.verticalCompact);c.layouts[te]=Ee,c.lastBreakpoint!==te&&s("breakpoint-changed",te,Ee),p.value=Ee,s("update:layout",Ee),c.lastBreakpoint=te,w.emit("setColNum",Te)}function F(){c.layouts=Object.assign({},o.responsiveLayouts)}function q(te,Te){const Ee=new Set(Te.map(de=>de.i)),Q=new Set(te.map(de=>de.i)),be=te.filter(de=>!Ee.has(de.i)),Z=Te.filter(de=>!Q.has(de.i));return be.concat(Z)}return(te,Te)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(c.mergedStyle)},[te.$slots.default?a.renderSlot(te.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,Ee=>(a.openBlock(),a.createBlock(Ii,a.mergeProps({key:Ee.i,ref_for:!0},Ee),{default:a.withCtx(()=>[a.renderSlot(te.$slots,"item",{item:Ee})]),_:2},1040))),128)),a.withDirectives(a.createVNode(Ii,{class:"vgl-item--placeholder",x:c.placeholder.x,y:c.placeholder.y,w:c.placeholder.w,h:c.placeholder.h,i:c.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,c.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const M6={key:0,class:"item-view-group"},I6={key:0,class:"item-view-group"},O6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:n}){const r=ol.useModelComp(ol.pinia),{isEdit:o}=ol.storeToRefs(r),s=Xn(ol.pinia),c=n,y=l,p=a.ref(""),v=a.computed(()=>y==null?void 0:y.children),m=a.computed(()=>{var ee,C,_,E;return((ee=y==null?void 0:y.children)==null?void 0:ee.length)>0&&((C=y==null?void 0:y.children)!=null&&C.every(k=>k==null?void 0:k.layout))?(E=(_=y==null?void 0:y.children)==null?void 0:_[0])==null?void 0:E.layout:"vertical"}),u=ee=>{p.value=ee,c("radioChange",ee)},w=a.computed(()=>{var ee,C;return((C=(ee=y==null?void 0:y.children)==null?void 0:ee[0])==null?void 0:C.isGridLayout)||!1}),D=a.ref((y==null?void 0:y.level)+1),L=a.computed(()=>{if(!(y!=null&&y.children)||!Array.isArray(y.children)||y.children.length<2)return!1;const ee=y.children.some(_=>(_==null?void 0:_.name)==="测量系统配置表"&&(_==null?void 0:_.comp)==="ParentItem"),C=y.children.some(_=>(_==null?void 0:_.name)==="测量系统传递表"&&(_==null?void 0:_.comp)==="ParentItem");return ee&&C}),S=a.computed(()=>{var C,_,E,k,g,O;let ee=(C=y==null?void 0:y.children)==null?void 0:C.filter(F=>F==null?void 0:F.choice);if(s.setSelectTab((_=ee==null?void 0:ee[0])==null?void 0:_.choiceName),(p==null?void 0:p.value)!=="")return(E=y==null?void 0:y.children)==null?void 0:E.filter(F=>!(F!=null&&F.choiceName)||(F==null?void 0:F.choiceName)===(p==null?void 0:p.value));{let F=(g=(k=y==null?void 0:y.children)==null?void 0:k.find(q=>q==null?void 0:q.choice))==null?void 0:g.choiceName;return(O=y==null?void 0:y.children)==null?void 0:O.filter(q=>!(q!=null&&q.choiceName)||(q==null?void 0:q.choiceName)===F)}}),W=ee=>{const C=(ee==null?void 0:ee.menuFilter)||[];return Array.isArray(C)&&(C==null?void 0:C.some(_=>{const E=typeof _=="string"?_:JSON.stringify(_);return E==null?void 0:E.includes("@InterfaceHide=Yes")}))};a.watch(()=>y==null?void 0:y.children,()=>{L.value},{deep:!0});const I=ee=>{c("rowClick",ee)},A=(ee,C)=>{c("routeUrl",ee,C)};return(ee,C)=>w.value?(a.openBlock(),a.createBlock(a.unref(Xc),{key:0,layout:v.value,"onUpdate:layout":C[0]||(C[0]=_=>v.value=_),"is-draggable":a.unref(o)==="edit","is-resizable":a.unref(o)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(_,E)=>(a.openBlock(),a.createBlock(a.unref(Ii),{key:_.i,x:_.x,y:_.y,"min-h":_.minH,"max-h":_.maxH,"min-w":_.minW,w:_.w,h:_.h,i:_.i},{default:a.withCtx(()=>{var k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:E===((k=y==null?void 0:y.children)==null?void 0:k.length)-1?"0px":"24px"})},[((O=(g=_==null?void 0:_.component)==null?void 0:g.comp)==null?void 0:O.toUpperCase())!=="TABLE"&&((F=_==null?void 0:_.component)!=null&&F.name)?(a.openBlock(),a.createElementBlock("div",M6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(D.value.toString())-1)*12+"px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},a.toDisplayString((q=_==null?void 0:_.component)==null?void 0:q.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Wo)((te=_==null?void 0:_.component)==null?void 0:te.comp)),{pageLayout:m.value,config:{showIndex:(Te=a.unref(nr)[E])==null?void 0:Te.showIndex,allowMove:(Ee=a.unref(nr)[E])==null?void 0:Ee.allowMove,viewport:(Q=a.unref(nr)[E])==null?void 0:Q.viewport,status:(be=a.unref(nr)[E])==null?void 0:be.status},related:_==null?void 0:_.relatedTables,compName:_==null?void 0:_.component.name,compNames:a.unref(mc),itemData:(Z=_==null?void 0:_.component)==null?void 0:Z.compData,childItemData:(de=_==null?void 0:_.component)==null?void 0:de.itemChildData,key:a.unref(Jn),cacheNewData:a.unref(vc),onChange:a.unref(Ti),index:(_==null?void 0:_.id)??E,onContentChange:a.unref(Ai),onPageChange:a.unref(zi),parentTableId:(je=_==null?void 0:_.component)==null?void 0:je.tableId,allMapContents:a.unref(bt),children:(wa=_==null?void 0:_.component)==null?void 0:wa.children,level:D.value,onRowClick:I,onRouteUrl:A,onClickTrigger:a.unref(yc),onClickMainKey:a.unref(gc),onRadioChange:u},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(S.value,(_,E)=>{var k,g;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(_==null?void 0:_.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(E)===((k=y==null?void 0:y.children)==null?void 0:k.length)-1?"0px":"24px"})},[((g=_==null?void 0:_.comp)==null?void 0:g.toUpperCase())!=="TABLE"&&_.name?(a.openBlock(),a.createElementBlock("div",I6,[W(_)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(D.value.toString())>1?"12px":"0px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},a.toDisplayString(_.name),5))])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Wo)(_.comp)),{compName:_.name,groupNames:_==null?void 0:_.nameContents,config:{showIndex:_==null?void 0:_.showIndex,allowMove:_==null?void 0:_.allowMove,viewport:_==null?void 0:_.viewport,status:_==null?void 0:_.status},itemData:_==null?void 0:_.compData,related:_==null?void 0:_.relatedTables,childItemData:_==null?void 0:_.itemChildData,key:a.unref(Jn),onChange:a.unref(Ti),index:(_==null?void 0:_.id)??E,onContentChange:a.unref(Ai),onPageChange:a.unref(zi),parentTableId:_==null?void 0:_.tableId,allMapContents:a.unref(bt),children:_==null?void 0:_.children,level:D.value,onRowClick:I,onRouteUrl:A,onRadioChange:u},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),L6=Xl._export_sfc(O6,[["__scopeId","data-v-de5883fb"]]),R6={class:"radio-group-container"},$6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(),c=Xn(ol.pinia),{selectTab:y}=ol.storeToRefs(c);a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=y.value},{immediate:!0,deep:!0});const p=v=>{s.value=v,o("radioChange",s.value)};return(v,m)=>(a.openBlock(),a.createElementBlock("div",R6,[a.createVNode(pl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=u=>s.value=u),content:r==null?void 0:r.itemData,onChange:p},null,8,["modelValue","content"])]))}}),V6=Xl._export_sfc($6,[["__scopeId","data-v-177d64c3"]]),Zc=a.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),P6={TABLE:wc,FORM:gs,STATICFORM:_c,TABLEOPERATE:M1,TABLESTYLE:Y1,TABLEEXTEND:X1,TABLEINTERACTION:e2,FORMOPERATE:bs,FOLD:T2,CALCULATOR:L2,METHODBUTTON:V2,AVATARUPLOAD:es.ssAvatar,SIGNATURE:es.ssSignature,FORMTOP:gs,STEP:X2,STEPOPERATE:x2,TIMELINE:rh,TIMELINEOPERATE:D2,FORMTOPOPERATE:bs,SIGNATUREOPERATE:G2,AVATARUPLOADOPERATE:j2,TABS:ih,TABSOPERATE:qh,CHART:o4,CHARTOPERATE:m4,LAYOUT:b4,LAYOUTOPERATE:B4,PARENTITEM:L6,RADIO:V6};function Ao(l){return P6[l==null?void 0:l.toUpperCase()]||null}exports.De=Xc;exports.activeStepInfo=Eo;exports.addContents=qo;exports.addVisibleDialog=Dt;exports.affixItems=s0;exports.allMapContents=bt;exports.analyzeFilter=So;exports.analyzeForm=Ld;exports.analyzeQuoteForm=Od;exports.analyzeTable=$d;exports.cacheNewData=vc;exports.clickMainKey=gc;exports.clickSavePage=t0;exports.clickStep=kc;exports.clickTrigger=yc;exports.compId=Jn;exports.compNames=mc;exports.compShow=To;exports.createRobotContent=ic;exports.existLayouts=m0;exports.fixChangeValue=Et;exports.generateLayouts=q1;exports.getComponent=Ao;exports.getComponents=Wo;exports.getPageData=Kr;exports.getSliceContLength=w0;exports.gridRowHeight=P1;exports.isStepLayout=xc;exports.onBack=o0;exports.onButtonChange=p0;exports.onChange=Ti;exports.onClick=i0;exports.onClickStep=y0;exports.onContentChange=Ai;exports.onExtendTaskEnd=v0;exports.onOk=f0;exports.onPageBack=b0;exports.onPageChange=zi;exports.onSelectFixContent=n0;exports.partToQuote=Di;exports.renderShowItems=fc;exports.robotFile=Mf;exports.showItems=nr;exports.sliceTableLength=hc;exports.slotContent=Zc;exports.ssTable=wc;exports.st=Ii;exports.stepItems=_0;exports.tabChange=g0;exports.toolBar=h0;exports.useFormComp=St;exports.useModelLoader=of;exports.verifyButton=k0;