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.
- package/dist/{MTLLoader-C-XJYnXR.js → MTLLoader-Ajg9K91w.js} +1 -1
- package/dist/{MTLLoader-Dx_OCevv.cjs → MTLLoader-PBhLgTVu.cjs} +1 -1
- package/dist/{OrbitControls-B55yzIKX.cjs → OrbitControls-C10-pt6H.cjs} +1 -1
- package/dist/{OrbitControls-BB87FyuR.js → OrbitControls-CgEewitL.js} +1 -1
- package/dist/{URDFLoader-Uh4bBb-n.cjs → URDFLoader-Bj47zJKE.cjs} +1 -1
- package/dist/{URDFLoader-DgP2bMhH.js → URDFLoader-CvMjtZ-x.js} +2 -2
- package/dist/{animationData-CF6benhM.js → animationData-BLdkUJ2X.js} +3 -3
- package/dist/{animationData-BfEyrEkb.cjs → animationData-D9-6Rod5.cjs} +1 -1
- package/dist/array-D7Bu5gb2.cjs +1 -0
- package/dist/{array-Dz0LlM28.js → array-DKwq_BSC.js} +38 -39
- package/dist/clone-BUCnBgnS.js +8 -0
- package/dist/clone-y_gmwkJo.cjs +1 -0
- package/dist/day-BNr9Td9D.cjs +7 -0
- package/dist/day-BV-VjzXX.js +2382 -0
- package/dist/{dayjs.min-bC5IyY3C.js → dayjs.min-B8ub8S6d.js} +4 -4
- package/dist/{dayjs.min-CSW85jLQ.cjs → dayjs.min-Bo5ALhPO.cjs} +1 -1
- package/dist/{iconfont-DV-mBuRs.js → iconfont-Cl-SDAtC.js} +2 -2
- package/dist/{iconfont-rvMUQHIL.cjs → iconfont-DpN6kvUK.cjs} +1 -1
- package/dist/index-6iwwUgL6.cjs +104 -0
- package/dist/{index-Dcp8sI4C.js → index-9V23Nn2F.js} +4 -4
- package/dist/index-9WLF0N-m.cjs +15 -0
- package/dist/{index-Ca3THBbJ.cjs → index-B0V9Wfze.cjs} +1 -1
- package/dist/index-B0cDSro0.cjs +1 -0
- package/dist/index-B4Yau3Cx.cjs +1 -0
- package/dist/index-B4u9cnxn.cjs +1 -0
- package/dist/{index-rW-jQkgq.js → index-B4yv_CI9.js} +9 -10
- package/dist/index-B5u9ckAG.cjs +1 -0
- package/dist/{index-C6gCT4vd.js → index-BGRqQYv0.js} +70 -71
- package/dist/{index-CbBP02RV.js → index-BLHM2RZs.js} +4 -4
- package/dist/{index-C4NN-IA4.js → index-BMt9iXGt.js} +16 -17
- package/dist/index-BO9LCv0L.js +327 -0
- package/dist/index-BTpsNI8m.cjs +1 -0
- package/dist/index-Bb9xuBcN.cjs +1 -0
- package/dist/{index-CHAqLCtD.js → index-Bieh0oMN.js} +8 -8
- package/dist/{index-BWpqDCVF.cjs → index-Bl1R6hLx.cjs} +1 -1
- package/dist/index-BndWdAyT.js +168 -0
- package/dist/index-BqtZ8oXB.cjs +1 -0
- package/dist/{index-CHIMUYG3.js → index-BxSJzmcq.js} +16 -17
- package/dist/{index-D0gKkud0.js → index-C3_fcg5b.js} +8 -20
- package/dist/{index-BSCoLGXF.js → index-CLasTJZ7.js} +318 -318
- package/dist/{index-0VkKesv_.js → index-CPuSbD0o.js} +13 -14
- package/dist/{index-DGwbEHLN.js → index-CUmttoQs.js} +6 -7
- package/dist/index-CWea8Hwx.cjs +2 -0
- package/dist/index-Cjsv9UB2.cjs +1 -0
- package/dist/{index-CHnN0kSC.js → index-CkJ5sZmH.js} +268 -279
- package/dist/{index-BPpYDffY.cjs → index-CyAk6NlY.cjs} +1 -1
- package/dist/index-Cz8oXtNa.cjs +1 -0
- package/dist/index-D0D-8tq3.cjs +1 -0
- package/dist/index-D28carCM.cjs +25 -0
- package/dist/{index-Ijbw1FIL.js → index-D2iun0qB.js} +18 -19
- package/dist/{index-BTgJ9oD-.cjs → index-D8TKh-Ur.cjs} +1 -1
- package/dist/index-DBl4_nFE.cjs +1 -0
- package/dist/{index-DMt7y2yA.js → index-DCBM-gqv.js} +104 -113
- package/dist/{index-COowXWF7.cjs → index-DCHyRwyR.cjs} +1 -1
- package/dist/index-DDz6oLBR.cjs +1 -0
- package/dist/{index-DWP-FYxV.js → index-DGaoFZNU.js} +13 -14
- package/dist/index-DJ3sA4Gm.cjs +1 -0
- package/dist/{index-c1EWDQO1.js → index-DKYHED4o.js} +1 -1
- package/dist/{index-CYgpY06q.js → index-DScuDjxN.js} +4 -4
- package/dist/{index-voXPz7Hq.js → index-DaHM_OEL.js} +251 -260
- package/dist/{index-S2ChvJMP.js → index-Dd6fkS6a.js} +1 -1
- package/dist/{index-D6Zkrpou.js → index-DehN_tZl.js} +13 -14
- package/dist/index-DfxDifWX.cjs +1 -0
- package/dist/{index-Bdh2uHRO.js → index-DimgHus_.js} +44 -45
- package/dist/index-DkR9zIgE.cjs +1 -0
- package/dist/index-DlDpjgK7.cjs +1 -0
- package/dist/{index-DN4OcDlg.js → index-Dmstdf9f.js} +1 -1
- package/dist/index-Ds0ibmGw.cjs +1 -0
- package/dist/{index-DLLST1Nd.js → index-DsfZZrDe.js} +11 -12
- package/dist/{index-Zvul3j_r.cjs → index-Dw5QRbm2.cjs} +1 -1
- package/dist/index-Dz06Dix4.js +21 -0
- package/dist/{index-C3lScvOV.cjs → index-Pmf6bCKe.cjs} +1 -1
- package/dist/index-_aEslAdL.cjs +1 -0
- package/dist/index-bs1KW4Mf.js +10008 -0
- package/dist/{index-CgjHHxqY.js → index-czdl81QC.js} +6 -7
- package/dist/index-fxwUfoBD.cjs +1 -0
- package/dist/index-jFQKdLGf.cjs +1 -0
- package/dist/{index-DyJCopUt.js → index-pfsYhNVv.js} +3 -4
- package/dist/index-qyNzhZ9p.js +68 -0
- package/dist/{index-9nQLsFiY.js → index-zwvfPNTm.js} +2 -2
- 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
- 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
- package/dist/main-BrOVZokA.cjs +11 -0
- package/dist/{main-Cd_mObtH.js → main-GGbIOSca.js} +8 -9
- package/dist/menu-CYazzvub.cjs +12 -0
- package/dist/menu-DGzm1FYA.js +5675 -0
- package/dist/menuIndex-Br2dXQqi.cjs +1 -0
- package/dist/menuIndex-CoVR5ix7.js +134 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +13 -13
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +115 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +10 -5
- package/dist/{threeModel-CIZ5D8Df.js → threeModel-B8afF4RO.js} +4 -4
- package/dist/{threeModel-Dekl17Re.cjs → threeModel-BIcXUfRq.cjs} +1 -1
- package/dist/threePreview-CuXGNvBL.cjs +1 -0
- package/dist/{threePreview-B46ButBi.js → threePreview-DLxW-XYV.js} +6 -7
- package/dist/{threeSceneView-CoQQCgZ3.cjs → threeSceneView-DHahXsWx.cjs} +1 -1
- package/dist/{threeSceneView-D4mxD9hv.js → threeSceneView-RZtjgaQI.js} +14 -16
- package/dist/{threeSceneViewForCPMPIP-BR01ytzC.cjs → threeSceneViewForCPMPIP-0_i3LOfz.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DTtZGOcw.js → threeSceneViewForCPMPIP-DMhM6ZvH.js} +10 -11
- package/dist/threeTrackPathView-CrlluuTz.cjs +1 -0
- package/dist/{threeTrackPathView-BQPS8ajS.js → threeTrackPathView-cclE9z18.js} +87 -88
- package/dist/threeViewerHost-BaEB4k1F.cjs +1 -0
- package/dist/{threeViewerHost-CsMI9jbX.js → threeViewerHost-LoU6OtMI.js} +10 -11
- package/dist/{urdfTree-umPKeRFh.cjs → urdfTree-BTD0A42y.cjs} +1 -1
- package/dist/{urdfTree-B118FC_3.js → urdfTree-RdS14ARy.js} +1 -1
- package/dist/{workpieceTreePanel-CwUXRyn3.cjs → workpieceTreePanel-CfwoCG1K.cjs} +1 -1
- package/dist/{workpieceTreePanel-D9TnLdIy.js → workpieceTreePanel-Q4_hCBXx.js} +4 -4
- package/package.json +1 -1
- package/dist/array-Dk18oefG.cjs +0 -1
- package/dist/clone-BDBSWARv.cjs +0 -1
- package/dist/clone-BqeCvECh.js +0 -8
- package/dist/index--E8u7lHy.cjs +0 -12
- package/dist/index-B38fQMRk.cjs +0 -1
- package/dist/index-BIg-Nt0x.cjs +0 -25
- package/dist/index-BQO25T-T.cjs +0 -1
- package/dist/index-BchGbZ1v.cjs +0 -15
- package/dist/index-Bio1_C_H.cjs +0 -1
- package/dist/index-BmJV5eVh.js +0 -4669
- package/dist/index-BtyugMgY.cjs +0 -1
- package/dist/index-BzeH13wt.cjs +0 -1
- package/dist/index-C3-1AlM-.js +0 -2765
- package/dist/index-C9baGOvW.js +0 -9647
- package/dist/index-CMsGT7Tl.cjs +0 -1
- package/dist/index-COTur3RT.cjs +0 -1
- package/dist/index-CUp0Z80f.cjs +0 -2
- package/dist/index-CoX9mofW.cjs +0 -1
- package/dist/index-CyQV3nI9.cjs +0 -1
- package/dist/index-DBhc2SoQ.cjs +0 -1
- package/dist/index-DBrXonf1.cjs +0 -1
- package/dist/index-DEfKSijb.cjs +0 -7
- package/dist/index-DNyLSjIf.cjs +0 -1
- package/dist/index-DOQApax-.cjs +0 -1
- package/dist/index-DtlQjI5L.cjs +0 -1
- package/dist/index-FJ_oMfF3.cjs +0 -1
- package/dist/index-L9DruvvE.cjs +0 -1
- package/dist/index-T25jN7df.cjs +0 -104
- package/dist/index-W6w3oiQ2.cjs +0 -1
- package/dist/index-ipcwULw-.js +0 -167
- package/dist/main-FOjt8u8O.cjs +0 -11
- package/dist/menu-7kw8Lwp_.cjs +0 -1
- package/dist/menu-CK0ndSHP.js +0 -1132
- package/dist/menuIndex-Ba-9R5jd.cjs +0 -1
- package/dist/menuIndex-DiNvd_FY.js +0 -125
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threePreview-DcCfaIpB.cjs +0 -1
- package/dist/threeTrackPathView-C6IiddAw.cjs +0 -1
- package/dist/threeViewerHost-B3elQtpE.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";var wu=Object.defineProperty;var _u=(l,n,r)=>n in l?wu(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var qr=(l,n,r)=>_u(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),al=require("./request-BC2w2vGr.cjs"),$n=require("./dayjs.min-Bo5ALhPO.cjs"),O=require("./menu-CYazzvub.cjs"),dl=require("./index-9WLF0N-m.cjs"),Jl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DAAbs6bU.cjs"),xr=require("./index-CUw6nGTo.cjs"),_i=require("./threeViewerHost-BaEB4k1F.cjs"),oa=require("./index-6iwwUgL6.cjs"),Cu=require("./index-DsNHJYr-.cjs"),Sr=require("./index-CW4qJdP8.cjs"),Qt=require("./index-jFQKdLGf.cjs"),Ws=require("./index-B5u9ckAG.cjs"),Po=require("./index-W8p89C7t.cjs"),un=require("./day-BNr9Td9D.cjs");;/* empty css */const Ci=require("./isString-DNBlKLZH.cjs"),es=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ks=require("./index-BVaHwt5f.cjs"),Eu=require("./index-D8TKh-Ur.cjs"),On=require("./MTLLoader-PBhLgTVu.cjs"),Su=require("./URDFLoader-Bj47zJKE.cjs");var Du="[object Boolean]";function Gs(l){return l===!0||l===!1||al.isObjectLike(l)&&al.baseGetTag(l)==Du}function Bu(l){return l===void 0}const Nu=l=>l.match(/\((.*)\)/)[1],Tu={__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"])}}},Au={__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)}},zu=Jl._export_sfc(Au,[["__scopeId","data-v-d81f59b4"]]);function Mu(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,R=m.height/w,S=Math.min(D,R),K=u*S,I=w*S,A=(v.width-K)/2,ee=(v.height-I)/2,C=r.map(([E,k])=>{const g=A+E*K,L=ee+k*I;return{x:g,y:L}});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 xo(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function as(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 Iu={key:0,class:"ocr-img-preview-root"},Ou={class:"ocr-img-preview-window"},Lu={key:0,class:"img-preview-body"},Ru={class:"img-preview-header"},$u={class:"img-header-left"},Vu={class:"img-name"},Pu={key:0,class:"img-header-right"},Fu={class:"img-index"},ju={key:0,class:"img-thumb-list"},Hu=["onClick"],Uu={key:1,class:"thumb-placeholder"},qu={class:"thumb-name"},Wu={class:"img-preview-container"},Ku={key:0,class:"img-placeholder"},Gu={key:2,class:"img-placeholder"},Yu={key:0},Ju={key:1},Xu={key:1,class:"img-placeholder"},Zu=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:F=>o("update:visible",F)});let c=!1,y="",p=0,v=0,m=0,u=0,w=0,D=0,R=null;const S=F=>{var ye,Se;const H=(Se=(ye=F==null?void 0:F.target)==null?void 0:ye.closest)==null?void 0:Se.call(ye,".ocr-img-preview-window");return H||document.querySelector(".ocr-img-preview-window")},K=F=>{if(!F||F==="none")return{tx:0,ty:0};let H=F.match(/matrix\(([^)]+)\)/);if(H){const ye=H[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(H=F.match(/matrix3d\(([^)]+)\)/),H){const ye=H[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 H=F.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),H?{tx:Number(H[1])||0,ty:Number(H[2])||0}:{tx:0,ty:0}},I=(F,H,ye)=>{F.style.transform=`translate(${H}px, ${ye}px)`},A=F=>{const H=S(F);if(!H)return;c=!0,R=H,y="move",p=F.clientX,v=F.clientY;const ye=window.getComputedStyle(H),{tx:Se,ty:ke}=K(ye.transform);w=Se,D=ke,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},ee=(F,H)=>{const ye=S(F);if(!ye)return;c=!0,R=ye,y=H,p=F.clientX,v=F.clientY;const Se=ye.getBoundingClientRect();m=Se.width,u=Se.height;const ke=window.getComputedStyle(ye),{tx:Ze,ty:ya}=K(ke.transform);w=Ze,D=ya,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},C=F=>{if(!c||!R)return;const H=F.clientX-p,ye=F.clientY-v,Se=360,ke=420;let Ze=m,ya=u,Ha=w,re=D;if(y==="move"){Ha=w+H,re=D+ye,I(R,Ha,re);return}if(y.includes("right")&&(Ze=Math.max(Se,m+H)),y.includes("bottom")&&(ya=Math.max(ke,u+ye)),y.includes("left")){const la=m-H;la<Se?(Ze=Se,Ha=w+(m-Se)):(Ze=la,Ha=w+H)}if(y.includes("top")){const la=u-ye;la<ke?(ya=ke,re=D+(u-ke)):(ya=la,re=D+ye)}R.style.width=`${Ze}px`,R.style.height=`${ya}px`,I(R,Ha,re)},_=()=>{c=!1,y="",R=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)},E=a.ref([]),k=a.ref(!1);a.watch(()=>r.images,async F=>{if(!Array.isArray(F)||F.length===0){E.value=[];return}k.value=!0;const H=[];for(const ye of F)if(ye.url&&!ye.url.startsWith("blob:")&&!ye.url.startsWith("http"))try{const Se=await $a.downloadFile(ye.url),ke=URL.createObjectURL(Se);H.push({...ye,blobUrl:ke})}catch(Se){console.error(`Failed to load image for preview: ${ye.url}`,Se),H.push({...ye,blobUrl:""})}else H.push({...ye,blobUrl:ye.url});E.value=H,k.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),L=a.ref(null),j=a.ref(null),W=a.computed(()=>E.value[g.value]||null),te=()=>{if(!E.value.length){g.value=0;return}if(r.defaultImageName){const F=E.value.findIndex(H=>(H==null?void 0:H.name)===r.defaultImageName);g.value=F>=0?F:0}else g.value=0},Te=F=>{if(!E.value.length)return;const H=Math.max(0,Math.min(F,E.value.length-1));g.value=H},Ee=()=>Te(g.value-1),Q=()=>Te(g.value+1),be=F=>{if(!F)return;const H=E.value.findIndex(ye=>(ye==null?void 0:ye.name)===F);H>=0&&(g.value=H)},Z=()=>{if(!j.value)return;const F=j.value.parentElement;if(!F)return;const H=F.getBoundingClientRect();j.value.width=H.width,j.value.height=H.height},de=()=>{var Se,ke;if(!j.value||!L.value||!r.focusedFieldName){j.value&&xo(j.value);return}const F=(Se=L.value.$el)==null?void 0:Se.querySelector("img");if(!F)return;if(!F.complete||F.naturalWidth===0){F.onload=()=>{a.nextTick(()=>{de()})};return}const H=((ke=W.value)==null?void 0:ke.name)||"",ye=as(r.fieldMeta,r.focusedFieldName);if(!ye){xo(j.value);return}if(ye.imageName!==H){xo(j.value);return}Z(),Mu(j.value,F,ye.bboxNorm)},je=()=>{a.nextTick(()=>{Z(),de()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const F=as(r.fieldMeta,r.focusedFieldName);F!=null&&F.imageName&&be(F.imageName),a.nextTick(()=>{de()})}),a.watch(()=>{var F;return(F=W.value)==null?void 0:F.name},()=>{s.value&&a.nextTick(()=>{j.value&&xo(j.value),de()})}),a.watch(()=>r.visible,F=>{F?(te(),a.nextTick(()=>{Z(),de()})):j.value&&xo(j.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&te()});let wa=null;a.onMounted(()=>{var F;typeof ResizeObserver<"u"&&(wa=new ResizeObserver(()=>{Z(),a.nextTick(()=>{de()})}),(F=j.value)!=null&&F.parentElement&&wa.observe(j.value.parentElement))}),a.onUnmounted(()=>{wa&&(wa.disconnect(),wa=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)});const ie=()=>{j.value&&xo(j.value),o("update:visible",!1),o("close")};return(F,H)=>{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",Iu,[H[12]||(H[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Ou,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(A,["stop"])},[H[8]||(H[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:H[0]||(H[0]=a.withModifiers(re=>ee(re,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:H[1]||(H[1]=a.withModifiers(re=>ee(re,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:H[2]||(H[2]=a.withModifiers(re=>ee(re,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:H[3]||(H[3]=a.withModifiers(re=>ee(re,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:H[4]||(H[4]=a.withModifiers(re=>ee(re,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:H[5]||(H[5]=a.withModifiers(re=>ee(re,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:H[6]||(H[6]=a.withModifiers(re=>ee(re,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:H[7]||(H[7]=a.withModifiers(re=>ee(re,"bottom-right"),["stop"]))},null,32),W.value?(a.openBlock(),a.createElementBlock("div",Lu,[a.createElementVNode("div",Ru,[a.createElementVNode("div",$u,[a.createElementVNode("span",Vu,a.toDisplayString(W.value.name?W.value.name+(W.value.url&&W.value.url.lastIndexOf(".")!==-1?W.value.url.substring(W.value.url.lastIndexOf(".")):""):""),1)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Pu,[a.createVNode(ye,{size:"small",disabled:g.value===0,onClick:Ee},{default:a.withCtx(()=>H[9]||(H[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Fu,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(()=>H[10]||(H[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",ju,[(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",Uu,"加载失败")),a.createElementVNode("div",qu,a.toDisplayString(re.name||"-"),1)],10,Hu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Wu,[k.value?(a.openBlock(),a.createElementBlock("div",Ku,[a.createVNode(Ze,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(ke)]),_:1}),H[11]||(H[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(ya=W.value)!=null&&ya.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Se,{ref_key:"imageRef",ref:L,src:W.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[W.value.blobUrl],onLoad:je},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:j,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Gu,[(Ha=W.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",Yu,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Ju,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Xu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Qu=Jl._export_sfc(Zu,[["__scopeId","data-v-48a4ecb1"]]),ed={class:"cert-preview-body"},ad={key:0,class:"pdf-preview-container"},ld={class:"thumbs"},rd=["onClick"],nd={class:"thumb-img"},od=["src"],id={key:1,class:"thumb-loading"},td={class:"thumb-title"},sd={class:"viewer"},cd={key:0,class:"viewer-img-wrap"},ud=["src"],dd={key:1,class:"viewer-loading"},pd=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 K=Array.isArray(S.images)?S.images:[];for(const I of K){const A=I==null?void 0:I.url;if(!(!A||p.value[A]))try{const ee=await O.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 K=S.sourceUrl||"";if(!K){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:K,versionId:S==null?void 0:S.versionId,certNo:S==null?void 0:S.certNo});const A=await O.platformDownloadFile({url:K});console.log("[CertificatePreview] PDF响应:",{url:K,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:K,error:A}),v.value=""}};a.watch(()=>r.visible,async S=>{var I;if(!S){u();return}const K=(I=r.versions)==null?void 0:I[0];s.value=(K==null?void 0:K.versionId)||"",await w(K),await D(K)},{immediate:!0}),a.watch(()=>s.value,async()=>{var K,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=(K=S.images)==null?void 0:K[0])==null?void 0:I.url)||"",await w(S)},{immediate:!0});const R=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(S,K)=>{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:R},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:R},{default:a.withCtx(()=>K[1]||(K[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":K[0]||(K[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",ed,[E.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",ad,[v.value?(a.openBlock(),a.createBlock(dl.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",ld,[(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",nd,[p.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[k.url]},null,8,od)):(a.openBlock(),a.createElementBlock("div",id,"加载中"))]),a.createElementVNode("div",td,a.toDisplayString(k.name),1)],10,rd))),128))]),a.createElementVNode("div",sd,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",cd,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,ud)])):(a.openBlock(),a.createElementBlock("div",dd,"加载中"))],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"])}}}),fd=Jl._export_sfc(pd,[["__scopeId","data-v-220703c0"]]),hd={class:"ocr-candidate-wrap"},vd={class:"ocr-candidate-left"},md={key:1},yd={key:0},gd={key:1},bd={key:2},kd={key:3},xd={key:0,class:"ocr-candidate-right"},wd={class:"ocr-candidate-actions"},_d={key:1},Cd={class:"dialog-footer"},Ed={__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 L=[],j=W=>{(W||[]).forEach(te=>{if(!te)return;const Te=te.children||te.childrens||te.columns;Array.isArray(Te)&&Te.length>0?j(Te):L.push(te)})};return j(g),L},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 L=JSON.parse(g);return Array.isArray(L)?L:[]}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 L,j;m.value=(g||[]).map(W=>({...W,...(W==null?void 0:W.ocrRow)||{},selectedTargetId:(W==null?void 0:W.selectedTargetId)||"",__decision:W==null?void 0:W.__decision})),u.value=0,w.value=((j=(L=m.value)==null?void 0:L[0])==null?void 0:j.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,g=>{var L,j;g&&(u.value=0,w.value=((j=(L=m.value)==null?void 0:L[0])==null?void 0:j.selectedTargetId)||"")});const D=a.computed(()=>{var L;const g=Number(u.value||0);return((L=m.value||[])==null?void 0:L[g])||null}),R=a.computed(()=>(r(o.columns||[])||[]).filter(j=>j&&j.prop).filter(j=>j.type!=="operate"&&j.label!=="操作"&&j.prop!=="operate")),S=a.computed(()=>R.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),K=g=>{if(!g)return;const L=(m.value||[]).findIndex(j=>(j==null?void 0:j.idx)===(g==null?void 0:g.idx));L>-1&&(u.value=L,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,L="")=>{const j=Number(u.value||0),W=m.value||[],te=W[j];te&&(te.__decision=g,te.selectedTargetId=L,w.value=L,m.value=[...W])},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(j=>(j==null?void 0:j.__decision)==="replace"&&!(j!=null&&j.selectedTargetId))){al.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,L)=>{const j=a.resolveComponent("el-table-column"),W=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-table"),Te=a.resolveComponent("el-button"),Ee=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(xr.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",hd,[a.createElementVNode("div",vd,[L[0]||(L[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:K},{default:a.withCtx(()=>[a.createVNode(j,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,Z=>(a.openBlock(),a.createBlock(j,{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(W,{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",md,"-"))],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(j,{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(j,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",yd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",gd,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",bd,"跳过")):(a.openBlock(),a.createElementBlock("span",kd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(a.openBlock(),a.createElementBlock("div",xd,[L[4]||(L[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",wd,[a.createVNode(Te,{id:"themeBorderButton",onClick:ee},{default:a.withCtx(()=>L[1]||(L[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Te,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>L[2]||(L[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:_,disabled:!y.value||!w.value},{default:a.withCtx(()=>L[3]||(L[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(j,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(R.value,Z=>(a.openBlock(),a.createBlock(j,{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(W,{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",_d,"-"))],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",Cd,[a.createVNode(Te,{id:"themeBorderButton",onClick:E},{default:a.withCtx(()=>L[5]||(L[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>L[6]||(L[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Sd=Jl._export_sfc(Ed,[["__scopeId","data-v-89e0489c"]]),Dd={class:"ocr-preview-content"},Bd={class:"ocr-preview-tip"},Nd={class:"ocr-preview-table"},Td={style:{display:"flex","align-items":"center",gap:"8px"}},Ad={class:"dialog-footer"},zd={__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,R=>{R&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),y.value=[...r.ocrSelectedFields])});const p=(R,S)=>{const K=[...y.value];if(S)K.includes(R)||K.push(R);else{const I=K.indexOf(R);I>-1&&K.splice(I,1)}y.value=K,o("update:ocrSelectedFields",K)},v=(R,S,K)=>{o("fieldChange",{rowIndex:R,prop:S,value:K})},m=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},w=R=>typeof R!="number"?"-":`${(R*100).toFixed(1)}%`,D=R=>typeof R!="number"?"#606266":R>=.9?"#67c23a":R>=.7?"#e6a23c":"#f56c6c";return(R,S)=>{const K=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(xr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Dd,[a.createElementVNode("div",Bd,[a.createVNode(K,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Nd,[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",Td,[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":L=>k[E.prop]=L,size:"small",placeholder:"请输入"+E.label,onChange:L=>v(g,E.prop,L)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Ad,[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"])}}},Md=Jl._export_sfc(zd,[["__scopeId","data-v-df66eb1f"]]),Eo=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)),Si(s)));return r=r==null?void 0:r.join(","),r};let Oa="$R",io="[Any]";const Id=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(io,""):c=s==null?void 0:s.replaceAll(io,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),n.filter=c,n},Od=l=>{var w,D,R,S,K,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=(R=(D=r==null?void 0:r.replace("(@",Oa))==null?void 0:D.split(Oa))==null?void 0:R[0]:r!=null&&r.includes("@")&&(r=(K=(S=r==null?void 0:r.replace("@",Oa))==null?void 0:S.split(Oa))==null?void 0:K[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=Bo(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,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,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=[],L=[],j="Input",W=[],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=(F=(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:F.filter(ga=>ga!==""),g=(ye=(H=_==null?void 0:_.replace("{",Oa))==null?void 0:H.split(Oa))==null?void 0:ye[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),j="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],j="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)),L=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;W.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=(P=A==null?void 0:A.replace("@",Oa))==null?void 0:P.split(Oa))==null?void 0:V[1]);if(ga=(X=Eo(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")&&(j="Upload"),He!=null&&He.includes("Date")&&(j="Date"),He!=null&&He.includes("DateTime")&&(j="DateTime"),He!=null&&He.includes("Time")&&(j="Time")}}C!=null&&C.includes("(@")||C!=null&&C.includes("@")&&(o.push(O.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:L,type:j,allContents:W,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(io,"");(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(","),j="Select",He==null||He.forEach((De,fe)=>{var oe,ia,Pa;De!=null&&De.includes("(@")||De!=null&&De.includes("@")&&(o.push(O.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:j})})}}),{groupName:r,formContents:u,contents:n,filter:c,formColumn:m,hideContents:o}},Bo=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(Bo(y))}),n=c}return n},pt=(l,n)=>{var I,A,ee,C,_,E,k,g,L,j,W,te,Te,Ee,Q,be,Z,de,je,wa,ie,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,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="",R="",S=[],K="";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)),R=(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!==""&&(K=Eo(Pa))}r=(j=(L=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:L.split(Oa))==null?void 0:j[0];let De=(te=(W=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:W.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=(F=l==null?void 0:l.split("(@"))==null?void 0:F[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ye=(H=De==null?void 0:De.replace("(",Oa))==null?void 0:H.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=(P=(Wa=l==null?void 0:l.replace("=",Oa))==null?void 0:Wa.split(Oa))==null?void 0:P[1])==null?void 0:V.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(io,""),(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 fl=(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];fl&&fl!==""&&(D=Eo(fl))}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)),R=(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!==""&&(K=Eo(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,fl,Ma;if(oe=oe==null?void 0:oe.replaceAll("$",""),oe!=null&&oe.includes("{")){let Hl="";oe=oe==null?void 0:oe.replaceAll("{","");let Ea=oe==null?void 0:oe.split("}");Hl=((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=Hl,oe=oe+":"}if(oe!=null&&oe.includes(io)){let Hl="",Ea=oe==null?void 0:oe.split(io);Hl=((Ma=(fl=Ea==null?void 0:Ea[0])==null?void 0:fl.split(":"))==null?void 0:Ma[0])+":"+(Ea==null?void 0:Ea[1]),oe=Hl,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:R,functionRelatedWords:S,calculatorFilter:K,relatedPages:m}},Ei=(l,n)=>{var o,s,c,y,p,v,m,u,w,D,R,S,K,I,A,ee,C,_,E,k,g,L,j,W,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 F,H;((F=$a.analyzeSplitToContent(ie,"="))==null?void 0:F.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,...Ei(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((H=Ei(ie,n))==null?void 0:H[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=(R=$a.analyzeSplitToContent(Z,"="))==null?void 0:R[1],F=(S=$a.analyzeSplitToContent(ie,"/"))==null?void 0:S.map(H=>((H==null?void 0:H[(H==null?void 0:H.length)-1])==="/"&&(H=H==null?void 0:H.slice(0,(H==null?void 0:H.length)-1)),H));je=F==null?void 0:F.map(H=>(H=Bo(H),H))}let wa=(_=(C=(ee=(A=(I=(K=Z==null?void 0:Z.replace("{",Oa))==null?void 0:K.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,F)=>{(je==null?void 0:je.length)>0&&F===0?r==null||r.push({label:ie,prop:ie,align:"center",formType:"Select",relatedContents:je==null?void 0:je.map(H=>{let ye={};return wa==null||wa.forEach((Se,ke)=>{ye[Se]=H==null?void 0:H[ke]}),ye}),options:je==null?void 0:je.map(H=>({label:H==null?void 0:H[0],value:H==null?void 0:H[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(((L=$a.analyzeSplitToContent(l,"="))==null?void 0:L.length)>=2){let je=(j=$a.analyzeSplitToContent(l,"="))==null?void 0:j[1],wa=(W=$a.analyzeSplitToContent(je,"/"))==null?void 0:W.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=Bo(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 F={};return de==null||de.forEach((H,ye)=>{F[H]=ie==null?void 0:ie[ye]}),F}),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,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,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=[],fl=(de=Ne==null?void 0:Ne.replace("*",Oa))==null?void 0:de.split(Oa),Ma=(fl==null?void 0:fl[0])===""?n==null?void 0:n.value:fl==null?void 0:fl[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=(F=Ma==null?void 0:Ma.replace("{",""))==null?void 0:F.replace("}",":")),Ma=Ma==null?void 0:Ma.replaceAll(io,""),(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===":"&&(Ma=Ma!=null&&Ma.includes("(@")?((H=Ma==null?void 0:Ma.split("(@"))==null?void 0:H[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 Hl=(Ve=(la=fl==null?void 0:fl[1])==null?void 0:la.replace("{",Oa))==null?void 0:Ve.split(Oa);if((Ie=(Fe=(ba=fl==null?void 0:fl[1])==null?void 0:ba.split("(@"))==null?void 0:Fe[0])!=null&&Ie.includes("&&")||(Xa=(Qe=($e=fl==null?void 0:fl[1])==null?void 0:$e.split("@"))==null?void 0:Qe[0])!=null&&Xa.includes("&&")){let qa=(Wa=fl==null?void 0:fl[1])!=null&&Wa.includes("(@")?(X=(V=(P=fl==null?void 0:fl[1])==null?void 0:P.split("(@"))==null?void 0:V[0])==null?void 0:X.split("&&"):(va=(ue=(se=fl==null?void 0:fl[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=Hl==null?void 0:Hl[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=Hl==null?void 0:Hl[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=Eo(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(pt(de,n))})}return r},Ld=(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=Ei(w,n))==null||D.forEach(R=>{s.push(R)}):s.push(pt(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=Ei(w,n))==null||D.forEach(R=>{c.push(R)}):c.push(pt(w,n))})),{columns:s,secondColumns:c}},Si=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}},ls=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},Rd=(l,n,r="")=>{var A,ee,C,_,E,k,g,L,j,W,te,Te,Ee,Q,be,Z,de,je,wa,ie,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,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=(j=(L=o==null?void 0:o.replace("@",Oa))==null?void 0:L.split(Oa))==null?void 0:j[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=O.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=(W=p==null?void 0:p.split("(@"))==null?void 0:W[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=O.cloneDeep(p)+(v??""),p="");let m=v?Bo(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[((H=(F=$a.analyzeSplitToContent(p,"}"))==null?void 0:F[0])==null?void 0:H.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=O.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=(P=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:P.replaceAll("}",""):oe=(X=(V=oe==null?void 0:oe.replace("{",Oa))==null?void 0:V.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+")"),Si(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+")"),Si(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=Ld(p,n),D=p===""?[]:(w==null?void 0:w.columns)??[],R=oa.getColumnChild(D),S=R;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 K=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(fl=>(fl==null?void 0:fl.includes("@QuoteSonSync"))&&(fl==null?void 0:fl.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(fl=>(fl==null?void 0:fl.includes("@QuoteFatherSync"))&&(fl==null?void 0:fl.includes("Yes"))))});if(R=R==null?void 0:R.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=ls(I),K=ls(K),R=R==null?void 0:R.filter(fe=>{var oe;return(fe==null?void 0:fe.menus)&&((oe=fe==null?void 0:fe.menus)==null?void 0:oe.length)>0}),R=R==null?void 0:R.map(fe=>fe==null?void 0:fe.content),R=[...new Set(R)],R=R==null?void 0:R.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((fl,Ma)=>{var Hl,Ea;return fl.unshift((Ea=(Hl=w==null?void 0:w.secondColumns)==null?void 0:Hl[Ma])==null?void 0:Ea.prop),fl}):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=O.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=O.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")&&(K=[...K,...oe])}return{groupName:o,tableColumns:D,tableFilter:u,tableContents:m,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:R,fatherSyncContents:I,sonSyncContents:K}},Ys=(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=Ys(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((R,S)=>{var K,I;return((K=v.menus)==null?void 0:K.length)-1===S&&R===""&&(n==null?void 0:n.parentContent)+"/"!==((I=v.menus)==null?void 0:I.join("/"))&&(R=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),$d=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Ys(r.contents,n)),r)),l),ft=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(o=>(o=ft(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=ft(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 ur="$R";const Vd=O.useUnit(O.pinia),{selectTitle:fn}=O.storeToRefs(Vd),hn=[{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 no=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(no||{});const Pd=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},Fd=l=>{const n=Xs(l==null?void 0:l.filter);return n?Zs(l==null?void 0:l.contents,{position:n}):l==null?void 0:l.contents},jd=l=>{const n=Xs(l==null?void 0:l.filter);return n?Zs(l==null?void 0:l.contents,{size:n}):l==null?void 0:l.contents},Hd=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},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;return n.push({key:"textRGBA",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},qd=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})},Wd=async l=>{var n,r,o,s,c,y,p,v,m,u,w,D,R,S,K,I,A,ee,C,_,E,k,g,L,j,W,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=fn==null?void 0:fn.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=fn==null?void 0:fn.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}),F=je==null?void 0:je.map(Se=>Se==null?void 0:Se.groups),H=ie==null?void 0:ie.map(async Se=>{let ke=await Wr(Se,!1);return{path:Se,contents:ke}});H=await Promise.all(H);let ye=H==null?void 0:H.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=F==null?void 0:F[ke])==null?void 0:Qe[(($e=F==null?void 0:F[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=fn==null?void 0:fn.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=(R=l==null?void 0:l.contents)==null?void 0:R.find(F=>(F==null?void 0:F.key)==="filter"))==null?void 0:S.contents;(de==null?void 0:de[(de==null?void 0:de.length)-1])===")"?de=(I=(K=de==null?void 0:de.replace("(",ur))==null?void 0:K.split(ur))==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("{",ur))==null?void 0:E.split(ur))==null?void 0:k[0])==null?void 0:g.split(":"))??[]);let je=(j=(L=l==null?void 0:l.contents)==null?void 0:L.find(F=>(F==null?void 0:F.key)==="filter"))==null?void 0:j.contents;je=(te=(W=je==null?void 0:je.replace("(",ur))==null?void 0:W.split(ur))==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(F=>{var H,ye,Se,ke,Ze,ya,Ha,re,la;return(F==null?void 0:F.key)==="header"&&((H=F==null?void 0:F.contents)!=null&&H.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(F==null?void 0:F.contents)&&!Array.isArray((ye=F==null?void 0:F.contents)==null?void 0:ye[0])?F.contents=(Se=F==null?void 0:F.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=F==null?void 0:F.contents)==null?void 0:ke[0])&&((Ha=(ya=(Ze=F==null?void 0:F.contents)==null?void 0:Ze[0])==null?void 0:ya.filter(()=>(be==null?void 0:be.length)>0))==null?void 0:Ha.length)>0&&(F.contents[0]=(la=(re=F==null?void 0:F.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}))),F}),ie=(Ee=wa==null?void 0:wa.find(F=>(F==null?void 0:F.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(F=>{var H,ye;return((ye=F==null?void 0:F.menus)==null?void 0:ye[((H=F==null?void 0:F.menus)==null?void 0:H.length)-1])===""})){let F=(Q=fn==null?void 0:fn.value)==null?void 0:Q.find(H=>(H==null?void 0:H.condition)==="child");wa=$d(wa,F)}return wa}return l==null?void 0:l.contents},Kd=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},Gd=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("{",ur))==null?void 0:o.split(ur))==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,R;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=(R=oa.getEqualChild(u))==null?void 0:R.filter(S=>(S==null?void 0:S.label)!=="操作"),(m==null?void 0:m.key)==="tableContents"){let K=oa.tableToForm(m==null?void 0:m.contents,u);p==null||p.forEach(I=>{var A,ee;for(let C in I)!((A=K==null?void 0:K[0])!=null&&A.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))&&!(K!=null&&K.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])!=="!"?K=K==null?void 0:K.filter(_=>{var E,k;return((E=_==null?void 0:_.find(g=>{var L;return(g==null?void 0:g.key)===C||((L=g==null?void 0:g.key)==null?void 0:L.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 L;return((L=_==null?void 0:_.find(j=>{var W;return(j==null?void 0:j.key)===C||((W=j==null?void 0:j.key)==null?void 0:W.includes(C))}))==null?void 0:L.value)===g}))}):K=K==null?void 0:K.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]}))}),(K==null?void 0:K.length)===0?m.contents=[]:m.contents=K==null?void 0:K.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},Yd=l=>l==null?void 0:l.contents,Jd=l=>l==null?void 0:l.contents,Xd=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=ft(p.contents,c)),p))}return l==null?void 0:l.contents},Zd=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},Qd=l=>l==null?void 0:l.contents,ep=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},ap=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},lp=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=Bo(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 R=0,S=0;for(let I=0;I<y.length;I++){if(S+=y[I],D<=S){R=I;break}I===y.length-1&&(R=y.length-1)}const K=y[R]||y[y.length-1]||1;return u.width=K,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},rp=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},np=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},op=async l=>{var o,s,c,y,p,v,m,u,w,D,R,S,K,I,A,ee,C;const n=O.useUnit(O.pinia),{chooseTitle:r}=O.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let _=await Wr(((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(j=>(j==null?void 0:j.key)==="header")?_=(w=_==null?void 0:_[0])==null?void 0:w.compData:_=(R=(D=_==null?void 0:_.filter(j=>{var W;return(W=j==null?void 0:j.compData)==null?void 0:W.find(te=>(te==null?void 0:te.key)==="header")}))==null?void 0:D[0])==null?void 0:R.compData;let k=(S=_==null?void 0:_.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:S.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((K=k==null?void 0:k.find(j=>j==null?void 0:j.isMainKey))==null?void 0:K.prop)??((I=k==null?void 0:k[0])==null?void 0:I.prop);let g=(ee=(A=_==null?void 0:_.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:ee.find(j=>(j==null?void 0:j[k])===E);return(C=l==null?void 0:l.contents)==null?void 0:C.map(j=>{var W;return(j==null?void 0:j.key)==="formContent"&&(j.contents=(W=j.contents)==null?void 0:W.map(te=>(te.value=g==null?void 0:g[te==null?void 0:te.prop],te))),j})}return l==null?void 0:l.contents},ip=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("{",ur))==null?void 0:r.split(ur))==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},tp=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},sp=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},cp=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},up=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},dp=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},Js={onNumSlice:qd,onRandomContents:Wd,onConditionContents:Gd,onFatherPaceContents:Yd,onPaceContents:Jd,onMainTagContents:Xd,onButtonContents:Zd,onPamButtonContents:Qd,onRowButtonContents:ep,onRelated:op,onRowNum:lp,onFixRow:rp,onReqItem:np,onBottomButtonContents:ap,onConditionContent:ip,onTabs:tp,onSinChoice:sp,onTextSize:Hd,onTextRGBA:Ud,onPosition:Fd,onSize:jd,onShowType:cp,onStepName:up,onStep:dp,onInterfaceTypeContents:Kd,onBackGround:Pd},pp=async(l,n)=>{var c,y,p,v,m,u,w,D,R,S,K,I,A,ee,C,_,E,k,g;let r="";if(((c=l==null?void 0:l.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(y=l==null?void 0:l.find(L=>(L==null?void 0:L.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("(",ur))==null?void 0:p.split(ur))==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(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L!=null&&L.includes("(")||(L=L==null?void 0:L.replaceAll(":","=")),L)),s=l;for(let L in o){let j,W="";(u=o==null?void 0:o[L])!=null&&u.includes("(")?(j=(R=(D=(w=o==null?void 0:o[L])==null?void 0:w.replace("(",ur))==null?void 0:D.split(ur))==null?void 0:R[0],W="("+((I=(K=(S=o==null?void 0:o[L])==null?void 0:S.replace("(",ur))==null?void 0:K.split(ur))==null?void 0:I[1])):(j=(C=(ee=(A=o==null?void 0:o[L])==null?void 0:A.replace("=",ur))==null?void 0:ee.split(ur))==null?void 0:C[0],W=(k=(E=(_=o==null?void 0:o[L])==null?void 0:_.replace("=",ur))==null?void 0:E.split(ur))==null?void 0:k[1]);let te=(g=hn==null?void 0:hn.find(Te=>(Te==null?void 0:Te.key)===j))==null?void 0:g.value;if(te){const Te=Js[te];s=await Te({contents:s,filter:W})}}return s},Ct=async(l,n)=>{var y,p,v,m,u,w,D,R,S,K,I,A,ee,C,_,E,k,g,L,j;let r="";if(((y=l==null?void 0:l.find(W=>(W==null?void 0:W.key)==="filter"))==null?void 0:y.contents)!==""&&(r=(p=l==null?void 0:l.find(W=>(W==null?void 0:W.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("(",ur))==null?void 0:v.split(ur))==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(W=>((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&&W.includes("(")||(W=W==null?void 0:W.replaceAll(":","=")),W)),s=l,c=new Map;o==null||o.forEach(W=>{var Te,Ee,Q;let te=(Te=W==null?void 0:W.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=W==null?void 0:W.replace("{",ur))==null?void 0:Ee.split(ur))==null?void 0:Q[1];Z=be+","+Z,c.set(te,Z)}else c.set(te,W)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((W,te)=>{var Te,Ee;return((Te=hn==null?void 0:hn.find(Q=>te==null?void 0:te.includes(Q==null?void 0:Q.key)))==null?void 0:Te.order)-((Ee=hn==null?void 0:hn.find(Q=>W==null?void 0:W.includes(Q==null?void 0:Q.key)))==null?void 0:Ee.order)});for(let W in o){let te,Te="";(w=o==null?void 0:o[W])!=null&&w.includes("(")&&((D=o==null?void 0:o[W])!=null&&D.includes("@Filter"))?(te=(K=(S=(R=o==null?void 0:o[W])==null?void 0:R.replace("(",ur))==null?void 0:S.split(ur))==null?void 0:K[0],Te="("+((ee=(A=(I=o==null?void 0:o[W])==null?void 0:I.replace("(",ur))==null?void 0:A.split(ur))==null?void 0:ee[1])):(te=(E=(_=(C=o==null?void 0:o[W])==null?void 0:C.replace("=",ur))==null?void 0:_.split(ur))==null?void 0:E[0],Te=(L=(g=(k=o==null?void 0:o[W])==null?void 0:k.replace("=",ur))==null?void 0:g.split(ur))==null?void 0:L[1]);let Ee=(j=hn==null?void 0:hn.find(Q=>(Q==null?void 0:Q.key)===te))==null?void 0:j.value;if(Ee){const Q=Js[Ee];s=await Q({contents:s,filter:Te,extra:n})}}return s},Xs=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]]},Zs=(l,n)=>{var K,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=((K=r.find(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"))==null?void 0:K.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 R=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 R.some(_=>(_==null?void 0:_.key)==="_gridLayoutMeta")?R=R.map(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"?{..._,contents:S}:_):R.push({key:"_gridLayoutMeta",contents:S}),R};let di="$R";const fp=O.useUnit(O.pinia),{selectTitle:hp}=O.storeToRefs(fp);let vp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],mp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],yp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],gp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const rs=async(l,n,r=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var w,D,R,S,K,I,A,ee,C,_,E,k,g,L,j,W,te,Te,Ee,Q,be,Z,de,je,wa,ie,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,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,fl,Ma,Hl;let y=(S=(R=(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:R[0])==null?void 0:S.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(K=c==null?void 0:c.contents)==null?void 0:K.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:(_=O.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=(j=(L=Ea==null?void 0:Ea.replace("(",di))==null?void 0:L.split(di))==null?void 0:j[1],Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1),Ea!=null&&Ea.includes("*")&&(Ea=(te=(W=Ea==null?void 0:Ea.replace("{",di))==null?void 0:W.split(di))==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 Wr(_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=hp.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)&&((F=n==null?void 0:n.originPath)==null?void 0:F[((ie=n==null?void 0:n.originPath)==null?void 0:ie.length)-1])!=="/")return}if(y==="Table"||y==="Method"){let Ea=((H=c==null?void 0:c.contents)==null?void 0:H.find(qe=>{var Y;return(Y=qe==null?void 0:qe.key)==null?void 0:Y.includes("content")}))||[],_a=[];m.comp="Table",Ea.value=(ye=Ea==null?void 0:Ea.value)==null?void 0:ye.sort((qe,Y)=>parseInt(qe==null?void 0:qe.id)-parseInt(Y==null?void 0:Y.id)),Ea.value=(Se=Ea==null?void 0:Ea.value)==null?void 0:Se.map(qe=>{let Y={};for(let aa in qe)JSON.stringify(qe==null?void 0:qe[aa])==="{}"?Y[aa]="":Y[aa]=qe==null?void 0:qe[aa];return Y}),_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 Y;return(Y=qe==null?void 0:qe.key)==null?void 0:Y.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 Y;return(Y=qe==null?void 0:qe.key)==null?void 0:Y.includes("struct")}))==null?void 0:ba.value)==null?void 0:Fe[0])==null?void 0:Ie.引用)==null?void 0:$e.contents});let Va=vp,qa=O.cloneDeep(mp);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=yp,qa=gp);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 Y;return(qe==null?void 0:qe.calculatorFilter)&&((Y=qe==null?void 0:qe.calculatorFilter)==null?void 0:Y.includes("Manual"))}))){let qe=(Xa=Ra==null?void 0:Ra.map(Y=>Y==null?void 0:Y.calculatorFilter))==null?void 0:Xa.filter(Y=>Y&&(Y==null?void 0:Y.includes("Manual")));qe==null||qe.forEach(Y=>{var Ge;let aa=$a.analyzeSplitToContent(Y,",");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(Cl=>Cl==null?void 0:Cl.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(Y=>({label:Y,prop:Y,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 Y;return(qe==null?void 0:qe.calculatorFilter)&&((Y=qe==null?void 0:qe.calculatorFilter)==null?void 0:Y.includes("Manual"))}))){let qe=(V=(P=oa.getColumnChild(Ra==null?void 0:Ra[0]))==null?void 0:P.map(Y=>Y==null?void 0:Y.calculatorFilter))==null?void 0:V.filter(Y=>Y&&(Y==null?void 0:Y.includes("Manual")));qe==null||qe.forEach(Y=>{var Ge;let aa=$a.analyzeSplitToContent(Y,",");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(Cl=>Cl==null?void 0:Cl.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(Y=>({label:Y,prop:Y,type:"methodButton"}))}_a.push({key:"extraButton",contents:Va}),_a.push({key:"rowButton",contents:[...qa,...Ye]}),m.compData=await Ct(_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 pp(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),(fl=m.compData)!=null&&fl.find(ae=>(ae==null?void 0:ae.key)==="step")&&(m.step=(Hl=(Ma=m.compData)==null?void 0:Ma.find(ae=>(ae==null?void 0:ae.key)==="step"))==null?void 0:Hl.contents)}return m});return o=await Promise.all(s),o},bp=O.useLoginState(O.pinia),{loginUserInfo:wo}=O.storeToRefs(bp),ht=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 Ep(m,y,c,r,s,o),m));return p=await Promise.all(p),p},kp=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},br=l=>{const[n,r,o]=O.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(o??0)},Gn=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))}`},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=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,R,S,K,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=br(p.toString())+br((D=n==null?void 0:n[v])==null?void 0:D.toString()),p=Gn(p)}else if(c==="Row"){let ee=(R=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:R.prop;if(!((K=Number.isNaN(n==null?void 0:n[ee])?"":(S=n==null?void 0:n[ee])==null?void 0:S.toString())!=null&&K.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=br(p==null?void 0:p.toString())+br((A=(n==null?void 0:n[ee])??0)==null?void 0:A.toString()),p=Gn(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(R=>(R==null?void 0:R.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},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,R,S,K;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?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())-br(n==null?void 0:n[v].toString()),p=Gn(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])?"":(R=n==null?void 0:n[I])==null?void 0:R.toString())!=null&&S.includes(":"))&&!((K=p==null?void 0:p.toString())!=null&&K.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p-A}else p=p===0?br(p.toString())+br(((n==null?void 0:n[I])??0).toString()):br(p.toString())-br(((n==null?void 0:n[I])??0).toString()),p=Gn(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(R=>(R==null?void 0:R.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,R,S,K;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?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())*br(n==null?void 0:n[v].toString()),p=Gn(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])?"":(R=n==null?void 0:n[I])==null?void 0:R.toString())!=null&&S.includes(":"))&&!((K=p==null?void 0:p.toString())!=null&&K.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p*A}else p=p===0?br(p.toString())+br(((n==null?void 0:n[I])??0).toString()):br(p.toString())*br(((n==null?void 0:n[I])??0).toString()),p=Gn(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(R=>(R==null?void 0:R.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,R,S,K;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?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())/br(n==null?void 0:n[v].toString()),p=Gn(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])?"":(R=n==null?void 0:n[I])==null?void 0:R.toString())!=null&&S.includes(":"))&&!((K=p==null?void 0:p.toString())!=null&&K.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p/A}else p=p===0?br(p.toString())+br(((n==null?void 0:n[I])??0).toString()):br(p.toString())/br(((n==null?void 0:n[I])??0).toString()),p=Gn(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(R=>(R==null?void 0:R.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},pi={Sum:xp,Substract:wp,Multiple:_p,Divide:Cp,Compare:kp},Ep=async(l,n,r,o="Auto",s,c=[])=>{var u,w,D,R,S,K,I,A,ee,C,_,E,k,g,L,j,W,te,Te,Ee,Q;let y=l,p=[],v=await O.getPageDataApi({platId:parseInt((u=wo==null?void 0:wo.value)==null?void 0:u.plat_id),pageName:"menu"});v=(R=(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:R[0];let m=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let be=await O.getPageDataApi({platId:parseInt((S=wo==null?void 0:wo.value)==null?void 0:S.plat_id),pageName:v});be=(C=(ee=(A=(I=(K=be==null?void 0:be.data)==null?void 0:K.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),pi[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=pi==null?void 0:pi[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=((W=(j=(L=je==null?void 0:je.find(ie=>ie==null?void 0:ie.includes("@FunctionExtent")))==null?void 0:L.replace(":","="))==null?void 0:j.split("="))==null?void 0:W[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(ie=>ie===Z)){let ie="";try{let H=(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);H=H==null?void 0:H.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(...H)}catch(H){al.ElMessage.warning("关联数据出现错误,"+H.message)}let F=(Te=n==null?void 0:n[be])==null?void 0:Te.prop;y[F]=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},Sp=O.useLoginState(O.pinia),{loginUserInfo:Xr}=O.storeToRefs(Sp),Dp=O.useMenuState(O.pinia),{activeMenuPath:ns,currentMenuPath:fi}=O.storeToRefs(Dp),Qs=O.useUnit(O.pinia);let os="$R";const{selectTitle:So}=O.storeToRefs(Qs),ec=async(l,n)=>{var y,p,v,m,u,w,D,R,S,K,I,A,ee;let r=ns.value,o="",s=((y=So==null?void 0:So.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 Wr(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=(R=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:S.map(g=>({label:g==null?void 0:g[E],value:g==null?void 0:g[E]}));c=(K=o==null?void 0:o.split("/"))==null?void 0:K.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)!==ns.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),Qs.setSelectTitle(c)},Bp=async l=>{var c,y,p,v,m,u,w,D,R;let n=await O.getPageDataApi({platId:parseInt((c=Xr==null?void 0:Xr.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=(R=(D=(w=o==null?void 0:o.replace("(",os))==null?void 0:w.split(os))==null?void 0:D[0])==null?void 0:R.replaceAll(":","/");let s=r==null?void 0:r.filter(S=>{var K;return(S==null?void 0:S.object_name)===fi.value+"/"||((K=fi.value)==null?void 0:K.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 K;return(S==null?void 0:S.comp)==="Table"&&(S.compData=(K=S==null?void 0:S.compData)==null?void 0:K.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=fi.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=fi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_})),I})),S})),l},Wr=async(l,n,r={})=>{var y,p,v,m,u,w,D,R,S,K,I,A;let o=await O.getPageDataApi({platId:parseInt((y=Xr==null?void 0:Xr.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 O.getPageDataApi({platId:parseInt((v=Xr==null?void 0:Xr.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 rs((w=ee==null?void 0:ee.data)==null?void 0:w.result,r,!1);C=C==null?void 0:C.map(async k=>{var j,W,te,Te,Ee,Q,be,Z,de,je,wa,ie,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa;let g=[],L=(j=Object.keys(k))==null?void 0:j.filter(P=>(P==null?void 0:P.includes("name"))&&P!=="nameContents");for(let P in k)L!=null&&L.find(V=>V===P)&&g.push(k==null?void 0:k[P]);if(g=g.reverse(),(k==null?void 0:k.comp)==="Table"){let P=(Te=(te=(W=k==null?void 0:k.compData)==null?void 0:W.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}),V=(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(V==null?void 0:V[0])?(V[0].push({label:"排序",prop:"sort"}),V[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(be=V[0])!=null&&be.find(X=>(X==null?void 0:X.prop)==="disabled")&&(V[0]=(Z=V[0])==null?void 0:Z.filter(X=>(X==null?void 0:X.prop)!=="disabled"),V[0].unshift({label:"",prop:"disabled",sortable:!1}))):(V.push({label:"排序",prop:"sort"}),V.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),V!=null&&V.find(X=>(X==null?void 0:X.prop)==="disabled")&&(V=V==null?void 0:V.filter(X=>(X==null?void 0:X.prop)!=="disabled"),V.unshift({label:"",prop:"disabled",sortable:!1}))),V!=null&&V.some(X=>{var se;return(X==null?void 0:X.calculatorFilter)&&((se=X==null?void 0:X.calculatorFilter)==null?void 0:se.includes("Auto"))})&&(P=await ht(P,V,"Auto"),P=P==null?void 0:P.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=So.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((F=k==null?void 0:k.sonSyncContents)==null?void 0:F[0])&&(k.sonSyncContents=(H=k==null?void 0:k.sonSyncContents)==null?void 0:H[0]);let X=(ye=So.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=So.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:V,tableContents:P,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 P=(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)??"");P=[P];let V=(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:P,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:V,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=(R=(D=ee==null?void 0:ee.data)==null?void 0:D.result)==null?void 0:R[0])==null?void 0:S.father_name,isShow:!1}]},{key:l,contents:C}];await O.createPlatFormDataApi({platId:parseInt((K=Xr==null?void 0:Xr.value)==null?void 0:K.plat_id),changeData:_});let E=await O.getPageDataApi({platId:parseInt((I=Xr==null?void 0:Xr.value)==null?void 0:I.plat_id),pageName:l});s=(A=E==null?void 0:E.data)==null?void 0:A.result}}n&&await ec(s,!!(r!=null&&r.originPath));let c=await rs(s,r);return n&&(c=await Bp(c)),c==null?void 0:c.filter(ee=>ee)},is=async l=>{var o,s,c,y,p,v,m,u,w,D,R;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 Wr(n,!1);if(r=(y=r==null?void 0:r.filter(S=>{var K,I;return(S==null?void 0:S.name)===((I=l==null?void 0:l.groups)==null?void 0:I[((K=l==null?void 0:l.groups)==null?void 0:K.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(K=>(K==null?void 0:K.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(K=>{var I,A,ee,C;return(K==null?void 0:K[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=(R=(D=r==null?void 0:r.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:R.contents,K={};return S==null||S.forEach(I=>{K[I.prop]=I.value}),K}},Np={key:0,class:"extra-button-content"},Tp={class:"table-operator-wrap"},Ap={key:0,class:"extra-button-filter"},zp={key:1,class:"extra-header"},Mp=["onClick"],Ip={class:"table-op-text"},Op={class:"table-op-text"},Lp={class:"drop-menu",style:{width:"120px"}},Rp=["onClick"],$p={key:0},Vp={key:1},Pp=["onClick"],Fp={class:"table-op-text"},jp={key:1,class:"extra-button-content tabs-button-wrapper"},Hp={class:"table-operator-wrap"},Up={class:"extra-button-filter"},qp={key:0,class:"extra-header"},Wp={class:"table-op-action"},Kp={class:"table-op-text"},Gp={class:"drop-menu",style:{width:"120px"}},Yp={key:0},Jp={key:1},Xp=["onClick"],Zp={class:"table-op-text"},Qp={__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(L=>{const j=typeof L=="string"?L:JSON.stringify(L);return j==null?void 0:j.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,L){return g.map(j=>{const W={...j};return L.forEach(te=>{delete W[te]}),W})}function w(g){if(!g||g.t!=="n")return(g==null?void 0:g.v)??"";const L=g.v;if(g.z){const j=String(g.z).toLowerCase(),W=["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 W)if(j.includes(Ee))return D(L);const te=/[ymdhms]/.test(j),Te=/^[0#\.\,\s]+$/.test(j.replace(/[\\\/\-:]/g,""));if(te&&!Te)return D(L)}if(L>=1&&L<=73050){if(L<5e3)return L;if(L>=5e3&&L<4e4){const j=Math.floor((L-25569)/365.25)+1970;return j>=1970&&j<=2e3&&g.z&&/[ymd]/.test(String(g.z).toLowerCase())?D(L):L}if(L>=4e4)return D(L)}return L}function D(g){if(typeof g!="number")return g;try{const L=new Date((g-25569)*86400*1e3);if(isNaN(L.getTime()))return g;const j=L.getFullYear(),W=String(L.getMonth()+1).padStart(2,"0"),te=String(L.getDate()).padStart(2,"0");return`${j}-${W}-${te}`}catch{return g}}const R=g=>{const L=g.raw;if(!L)return;const j=new FileReader;j.onload=W=>{try{const te=new Uint8Array(W.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,F;(wa==null?void 0:wa.length)>0?(al.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),ie=de.filter((ye,Se)=>!wa.includes(Se)),F=u(je,wa==null?void 0:wa.map(ye=>`col_${ye}`))):(ie=de,F=je);const H=je==null?void 0:je[0];if(!(H!=null&&H.hasOwnProperty("col_0")))return al.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",ie,F)}catch(te){throw al.ElMessage.error(te.message),new Error(te.message)}},j.readAsArrayBuffer(L)},S=g=>{var j;const L=(j=p.value)==null?void 0:j.reduce((W,te,Te)=>(Te===0?W[te.label]=g:W[te.label]=te==null?void 0:te.value,W),{});r("filter",L,g,!0)},K=(g,L={})=>{r("buttonClick",g,"",L)},I=g=>{var L,j;p.value=(j=(L=oa.getColumnChild(O.cloneDeep(g)))==null?void 0:L.filter(W=>(W==null?void 0:W.label)!==""&&(W==null?void 0:W.label)!=="操作"))==null?void 0:j.map(W=>({label:(W==null?void 0:W.label)??"",value:"",name:(W==null?void 0:W.prop)??"",isFormColHidden:W==null?void 0:W.isTableColHidden,width:2,prop:(W==null?void 0:W.prop)??""}))},A=a.ref(!1),ee=g=>{var L;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 j=O.cloneDeep(g==null?void 0:g.content);for(const W in j)j[W]="";p.value=(L=p.value)==null?void 0:L.map(W=>({...W,value:""})),r("filter",j),A.value=!1}y.value=!1},C=()=>{y.value=!y.value},_=()=>{var L,j;p.value=(L=p.value)==null?void 0:L.map(W=>({...W,value:""}));const g=(j=p.value)==null?void 0:j.reduce((W,te)=>(W[te.label]=te.value,W),{});r("filter",g)},E=a.ref(null);let k;return k=g=>{var te;if(!y.value)return;const L=(te=E==null?void 0:E.value)==null?void 0:te.$el,j=L==null?void 0:L.contains(g.target);let W=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Te=>{Te.contains(g.target)&&(W=!0)}),!j&&!W&&(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,L)=>{var Q,be,Z,de,je,wa,ie,F;const j=a.resolveComponent("el-icon"),W=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",Np,[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",Tp,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",Ap,[a.createVNode(Tu,{trigger:"contextmenu",ref_key:"popOverRef",ref:E,title:"",width:800,placement:"bottom-start",isVisible:y.value,"onUpdate:isVisible":L[4]||(L[4]=H=>y.value=H)},{reference:a.withCtx(()=>{var H,ye,Se,ke;return[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":L[0]||(L[0]=Ze=>c.value=Ze),style:{"min-width":"80px"},placeholder:A.value?(Se=(ye=(H=l.filterValues)==null?void 0:H.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(j,{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(W,{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:L[1]||(L[1]=a.withModifiers(()=>{},["stop"])),onKeyup:L[2]||(L[2]=a.withModifiers(()=>{},["stop"])),onKeypress:L[3]||(L[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(dl.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",zp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((be=l.buttons)==null?void 0:be.filter(H=>l.isDevMode||(H==null?void 0:H.label)!=="修改模板"),(H,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(H==null?void 0:H.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":R,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=>K(H==null?void 0:H.label)},[a.createVNode(W,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(H==null?void 0:H.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Ip,a.toDisplayString(H==null?void 0:H.label),1)],10,Mp)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(H==null?void 0:H.type)==="popover"?(a.openBlock(),a.createBlock(dl._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(W,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(H==null?void 0:H.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Op,a.toDisplayString(H==null?void 0:H.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Lp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H==null?void 0:H.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&&K(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",$p,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Vp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Rp)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(H!=null&&H.type)||(H==null?void 0:H.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&&K(H==null?void 0:H.label,H)},[a.createVNode(W,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(H==null?void 0:H.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",Fp,a.toDisplayString(H==null?void 0:H.label),1)],10,Pp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",jp,[a.createElementVNode("div",Hp,[a.createElementVNode("div",Up,[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":L[5]||(L[5]=H=>c.value=H),style:{"min-width":"80px"},placeholder:A.value?(je=(de=(Z=l.filterValues)==null?void 0:Z.filter(H=>H))==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 H,ye;return[!c.value&&((ye=(H=l.filterValues)==null?void 0:H.filter(Se=>Se))!=null&&ye.join("/"))?(a.openBlock(),a.createBlock(j,{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(W,{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",qp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((F=l.buttons)==null?void 0:F.filter(H=>l.isDevMode||(H==null?void 0:H.label)!=="修改模板"),(H,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(H==null?void 0:H.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":R,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",Wp,[a.createVNode(W,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(H==null?void 0:H.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Kp,a.toDisplayString(H==null?void 0:H.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(H==null?void 0:H.type)==="popover"?(a.openBlock(),a.createBlock(dl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(H==null?void 0:H.type)==="popover"?(a.openBlock(),a.createBlock(Ee,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ke;return[a.createVNode(W,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(H==null?void 0:H.label)))==null?void 0:ke.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(H==null?void 0:H.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Gp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H==null?void 0:H.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=>K(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",Yp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Jp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(H!=null&&H.type)||(H==null?void 0:H.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&&K(H==null?void 0:H.label,H)},[a.createVNode(W,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(H==null?void 0:H.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",Zp,a.toDisplayString(H==null?void 0:H.label),1)],10,Xp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},ef=Jl._export_sfc(Qp,[["__scopeId","data-v-a6997ec1"]]),af={__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(dl._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:R,item:S,column:K})=>[a.renderSlot(n.$slots,w,a.mergeProps({ref_for:!0},R??D,{item:S??v,slotData:R??D,row:D,column:K,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class lf 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(R,S){const K=R.length,I=new Uint8Array(S);let A=0,ee=0,C,_,E;do if(C=R[A++],C<32){if(C++,ee+C>S)throw new Error("Output buffer is not large enough");if(A+C>K)throw new Error("Invalid compressed data");do I[ee++]=R[A++];while(--C)}else{if(_=C>>5,E=ee-((C&31)<<8)-1,A>=K)throw new Error("Invalid compressed data");if(_===7&&(_+=R[A++],A>=K))throw new Error("Invalid compressed data");if(E-=R[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<K);return I}function o(R){const S={},K=new Uint8Array(R);let I="",A="",ee=0,C=!1;const _=K.length;for(;ee<_&&C===!1;){const L=String.fromCharCode(K[ee++]);L===`
|
|
2
|
+
`||L==="\r"?(A.trim().toLowerCase().startsWith("data")&&(C=!0),A=""):A+=L,I+=L}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(L){return parseInt(L,10)})),S.count!==null)S.count=S.count[1].split(" ").map(function(L){return parseInt(L,10)});else{S.count=[];for(let L=0,j=S.fields.length;L<j;L++)S.count.push(1)}S.offset={};let g=0;for(let L=0,j=S.fields.length;L<j;L++)S.data==="ascii"?S.offset[S.fields[L]]=L:(S.offset[S.fields[L]]=g,g+=S.size[L]*S.count[L]);return S.rowSize=g,S}const s=o(n),c=[],y=[],p=[],v=[],m=[],u=new $a.Color;if(s.data==="ascii"){const R=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(R.x!==void 0&&(c.push(parseFloat(C[R.x])),c.push(parseFloat(C[R.y])),c.push(parseFloat(C[R.z]))),R.rgb!==void 0){const _=s.fields.findIndex(te=>te==="rgb"),E=s.type[_],k=parseFloat(C[R.rgb]);let g=k;if(E==="F"){const te=new Float32Array(1);te[0]=k,g=new Int32Array(te.buffer)[0]}const L=(g>>16&255)/255,j=(g>>8&255)/255,W=(g>>0&255)/255;u.setRGB(L,j,W,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}R.normal_x!==void 0&&(y.push(parseFloat(C[R.normal_x])),y.push(parseFloat(C[R.normal_y])),y.push(parseFloat(C[R.normal_z]))),R.intensity!==void 0&&v.push(parseFloat(C[R.intensity])),R.label!==void 0&&m.push(parseInt(C[R.label]))}}if(s.data==="binary_compressed"){const R=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),S=R[0],K=R[1],I=r(new Uint8Array(n,s.headerLen+8,S),K),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 R=new DataView(n,s.headerLen),S=s.offset;for(let K=0,I=0;K<s.points;K++,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(R,I+S.x,s.type[A],s.size[A])),c.push(this._getDataView(R,I+S.y,s.type[ee],s.size[ee])),c.push(this._getDataView(R,I+S.z,s.type[C],s.size[C]))}if(S.rgb!==void 0){const A=R.getUint8(I+S.rgb+2)/255,ee=R.getUint8(I+S.rgb+1)/255,C=R.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(R,I+S.normal_x,s.type[A],s.size[A])),y.push(this._getDataView(R,I+S.normal_y,s.type[ee],s.size[ee])),y.push(this._getDataView(R,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(R,I+S.intensity,s.type[A],s.size[A]))}S.label!==void 0&&m.push(R.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 rf=O.useModelComp(O.pinia),{systemPath:ts}=O.storeToRefs(rf),hi=a.ref(),ss=new WeakMap;function nf(l,n,r,o,s){const c=async D=>{try{const R=await O.platformDownloadFile({url:D});if(R.status!==200)throw new Error(`下载失败: ${R.status}`);return R.data}catch(R){throw console.error("addModelFromUrl失败:",R),R}},y=D=>new Promise((R,S)=>{const K=new FileReader;K.onload=I=>{try{const A=I.target.result,C=new On.MTLLoader().parse(A);C.preload(),R(C)}catch(A){S(A)}},K.onerror=()=>{S(new Error("MTL文件读取失败"))},K.readAsText(D)}),p=async D=>{const R={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 K in this.materials)S.push(this.materials[K]);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 K=await y(S);Object.assign(R.materials,K.materials)}return R.preload(),R},v=async(D,R=[])=>new Promise((S,K)=>{const I=new FileReader;I.onload=async A=>{try{const ee=A.target.result;let C=null;R&&R.length>0&&(R.length===1?C=await y(R[0]):C=await p(R));const _=new On.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){K(ee)}},I.onerror=()=>{K(new Error("OBJ文件读取失败"))},I.readAsText(D)}),m=async D=>{var R;try{r.value=!0;const{scene:S}=l();if(!S)throw new Error("Scene not initialized");s();const K=[];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=((R=A.objUrl)==null?void 0:R.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 L=0;L<g.length;L++){const j=g[L],W=await c(j),te=(j==null?void 0:j.split("/").pop())||`material_${I}_${L}.mtl`,Te=new File([W],te,{type:W.type});E.push(Te)}}const k=await v(_,E);S.add(k),n.value.push(k),K.push(k)}return r.value=!1,K}catch(S){throw console.error("加载模型失败:",S),r.value=!1,S}},u=async(D,R,S=[],K=[])=>{let I;const A=D.toLowerCase();switch(A){case".txt":case".cpt":case".obj":const ee=await R.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 On.OBJLoader;if(S&&S.length>0){const la=new On.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 R.arrayBuffer(),E=new On.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"],L={"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)"},j=new $a.Group,W=g.map(re=>new Promise((la,Ve)=>{new On.STLLoader().load(ts.value===""?`/model/${re}`:`${ts.value}\\${re}`,Fe=>{const Ie=new $a.MeshPhongMaterial({color:L[re]||"#B3B3D4",side:$a.DoubleSide}),$e=new $a.Mesh(Fe,Ie);la($e)},void 0,Ve)}));try{(await Promise.all(W)).forEach(la=>j.add(la)),I=j}catch(re){throw console.error("加载NC文件对应的STL文件失败:",re),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const te=new lf,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 P=new Float32Array(Wa.geometry.attributes.position.count*3);for(let V=0;V<Wa.geometry.attributes.position.count;V++)P[V*3]=1,P[V*3+1]=0,P[V*3+2]=0;Wa.geometry.setAttribute("color",new $a.BufferAttribute(P,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 P=new Float32Array(Wa.geometry.attributes.position.count*3);for(let V=0;V<Wa.geometry.attributes.position.count;V++)P[V*3]=0,P[V*3+1]=1,P[V*3+2]=0;Wa.geometry.setAttribute("color",new $a.BufferAttribute(P,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(R),Q=new Su.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}`)}},F=(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},H=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,F())}const Fe=await re.arrayBuffer();let $e=new On.STLLoader(Ve).parse(Fe);return $e=H($e),wa.set(ba,$e),new $a.Mesh($e,F())},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 On.OBJLoader(Ve),$e=la.replace(".obj",".mtl");try{const Wa=await(await ie($e)).text(),V=new On.MTLLoader(Ve).parse(Wa);V.preload(),Ie.setMaterials(V)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${$e}`)}const Qe=Ie.parse(Fe);return Qe.traverse(Xa=>{Xa.isMesh&&(Xa.geometry=H(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 P=await ie(Ie);if(!P||P.size===0)throw new Error(`文件为空: ${Ie}`);const V=Ie.split(".").pop().toLowerCase();let X;switch(V){case"stl":X=await ye(P,Ie,la);break;case"obj":X=await Se(P,Ie,la);break;default:throw new Error(`不支持的文件格式: ${V}`)}Z.enableLOD&&X.isMesh&&(X=ke(X,Ie)),$e(X),ya++,ba&&ba({loaded:ya,total:Ze,progress:ya/Ze}),Xa(X)}catch(P){console.error(`mesh文件加载失败: ${Ie}`,P);const V=new $a.Group;$e(V),Xa(V);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){hi.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,ss.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())}),hi.value=I,console.log("URDF模型加载完成并优化")}catch(re){console.error("URDF加载失败:",re),hi.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:R}=l();if(!R)throw new Error("Scene not initialized");s(),await new Promise(K=>setTimeout(K,100));const S=[];for(let K=0;K<D.length;K++){const I=D[K],A=await u(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);A&&(R.add(A),n.value.push(A),S.push(A))}return r.value=!1,o.value="",S}catch(R){throw console.error("加载模型失败:",R),r.value=!1,o.value="",R}},urdfModel:hi,modelBoundingBoxes:ss}}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 of=["onClick"],tf=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,L,j]=E;return j!==void 0?`rgba(${k}, ${g}, ${L}, ${j})`:`rgb(${k}, ${g}, ${L})`}if(typeof E=="string"){const k=E.trim();if(k.startsWith("[")&&k.endsWith("]")){const g=k.slice(1,-1).split(",").map(L=>Number(L.trim()));if(g.length>=3&&g.every(L=>!Number.isNaN(L))){const[L,j,W,te]=g;return te!==void 0?`rgba(${L}, ${j}, ${W}, ${te})`:`rgb(${L}, ${j}, ${W})`}}return k}},p=a.computed(()=>{const E=Number(r==null?void 0:r.textSize),k=y(r==null?void 0:r.textColor),g={},L={};return!Number.isNaN(E)&&E&&(g.fontSize=`${E}px`,L.fontSize=`${E}px`),k&&(g.color=k,L.color=k),{label:g,value:L}}),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 O.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()},R=async E=>{var L,j,W;const k=E.target,g=(L=k==null?void 0:k.files)==null?void 0:L[0];if(!g){k.value="";return}u.value=!0;try{const te=new FormData;te.append("file",g);const Te=await O.platformUploadFile(te),Ee=(W=(j=Te==null?void 0:Te.data)==null?void 0:j.result)==null?void 0:W.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"}:{}),K=E=>dl.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,L=`calc((100% - ${(k-1)*16}px) / ${k})`;return{flex:`0 0 ${L}`,maxWidth:L,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:R},null,544),k[3]||(k[3]=a.createElementVNode("img",{src:dl._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,L)=>{var j,W,te,Te,Ee,Q,be,Z;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:L,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,L,de)},[s.value===L&&g.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(K(((j=g.field)==null?void 0:j.type)??"Input")),{key:0,modelValue:g.field.value,"onUpdate:modelValue":de=>g.field.value=de,isEdit:!0,disabled:(W=g.field)==null?void 0:W.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,of)],4)}),128))],4))}}),sf=Jl._export_sfc(tf,[["__scopeId","data-v-babf8f2a"]]),ac=O.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),cf={class:"calculator-content"},uf={class:"calculator-child"},df={class:"calculator-child"},pf=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",cf,[a.createElementVNode("div",uf,[a.createVNode(dl.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",df,[a.createVNode(dl.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),ff=Jl._export_sfc(pf,[["__scopeId","data-v-73db0fe7"]]),vt=(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=vt(p,o))}),Object.assign(y,{id:c})}else return s})),r},lc=(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=lc(m,(u=s==null?void 0:s[y])==null?void 0:u.children,r)),m}))),c}),o},hf=(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 vf(l,o,r)}},vf=(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=rc(c,s,r)),c)),o},rc=(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=rc(p,s,r)),p)),o},mf=(l,n,r)=>{if(n==="")return r;{const o=n.split("-");return yf(l,o,r)}},yf=(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=nc(c,s,r)),c)),o},nc=(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=nc(y,s,r)),y)),o};class gf{constructor(n={}){qr(this,"url");qr(this,"heartbeatInterval");qr(this,"socket",null);qr(this,"isConnected",!1);qr(this,"heartTimer",null);qr(this,"canvas",null);qr(this,"ctx",null);qr(this,"mainCamCutMode",0);qr(this,"pMainShowStartX",0);qr(this,"pMainShowStartY",0);qr(this,"onLog");qr(this,"onDevCount");qr(this,"onResolution");qr(this,"onCameraStatus");qr(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 K=0;K<w;K++)D[K]=r[4+K];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 R=(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:R,height:S,text:`${R}*${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 R="";if(w>0){const I=new Uint8Array(w);for(let A=0;A<w;A++)I[A]=r[9+A];R=decodeURIComponent(this.byteToString(I))}const S=new Uint8Array(D);for(let I=0;I<D;I++)S[I]=r[9+w+I];const K=this.uint8ArrayToString(S);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:R,base64:K})}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 R=11;for(let S=0;S<D.data.length;S+=4)D.data[S+0]=r[R],D.data[S+1]=r[R+1],D.data[S+2]=r[R+2],D.data[S+3]=255,R+=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 bf={style:{display:"flex",gap:"16px",height:"100%"}},kf={key:0,style:{color:"var(--el-text-color-secondary)"}},xf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},wf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},_f={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"}},Cf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Ef={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Sf=["src","onClick"],Df=["onClick"],Bf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Nf={class:"dialog-footer"},Tf=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 gf({url:"ws://127.0.0.1:22225"});function w(j,W){var Z;const te=j.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],W,{type:Te})}function D(){u.onLog=j=>{console.log("[GPY]",j)},u.onDevCount=(j,W)=>{if(p.value+=`设备数量=${j},设备=${W.join(",")}
|
|
4
|
+
`,j>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=(j,W)=>{if(j<=0||!Array.isArray(W)||W.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(W);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=j=>{j==="opened"?(c.value=!0,p.value+=`摄像头已打开
|
|
15
|
+
`):(c.value=!1,p.value+=`摄像头已关闭
|
|
16
|
+
`)},u.onPhoto=j=>{if(j.flag===0&&j.base64){const W=`data:image/jpeg;base64,${j.base64}`,te=w(W,`gpy-capture-${Date.now()}.jpg`);y.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:W,file:te}),p.value+=`拍照完成,已接收图片(当前 ${y.value.length} 张)
|
|
17
|
+
`}else p.value+=`拍照失败 flag=${j.flag}
|
|
18
|
+
`}}const R=async()=>{if(await a.nextTick(),!s.value)return;S(),D();const j=s.value.getBoundingClientRect();u.init(s.value,Math.floor(j.width),Math.floor(j.height)),p.value+=`正在连接设备服务...
|
|
19
|
+
`,await u.connect(),p.value+=`正在获取设备数量...
|
|
20
|
+
`,u.getDevCount()},S=()=>{try{u.destroy()}catch(j){console.error(j)}c.value=!1,y.value=[],p.value="",v.value=!1,m.value=[]};a.watch(()=>r.visible,j=>{j?R():S()});const K=()=>{try{u.bestSize()}catch(j){console.error(j)}},I=()=>{try{u.rotateLeft()}catch(j){console.error(j)}},A=()=>{try{u.rotateRight()}catch(j){console.error(j)}},ee=()=>{try{u.focus()}catch(j){console.error(j)}},C=()=>{p.value+=`正在拍照...
|
|
21
|
+
`;try{u.photo()}catch(j){p.value+=`拍照调用失败:${(j==null?void 0:j.message)??j}
|
|
22
|
+
`}},_=()=>{y.value.length>0?o("confirm",y.value.map(j=>j.file)):o("confirm",[])},E=j=>{j<0||j>=y.value.length||(y.value.splice(j,1),p.value+=`已删除一张图片(剩余 ${y.value.length} 张)
|
|
23
|
+
`)},k=j=>{if(!j)return;const W=`gpy-preview-${Date.now()}.jpg`;m.value=[{name:W,blobUrl:j}],v.value=!0},g=()=>{v.value=!1},L=()=>{S(),o("cancel")};return(j,W)=>{const te=a.resolveComponent("el-input"),Te=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(xr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:L,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",bf,[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",kf,"初始化摄像头..."))],512),a.createElementVNode("div",xf,[a.createElementVNode("div",wf,[W[0]||(W[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",_f,[y.value.length===0?(a.openBlock(),a.createElementBlock("div",Cf,"暂无图片")):(a.openBlock(),a.createElementBlock("div",Ef,[(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,Sf),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,Df)]))),128))]))],512)]),a.createElementVNode("div",Bf,[W[1]||(W[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",Nf,[a.createVNode(Te,{onClick:K,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>W[2]||(W[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{onClick:I,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>W[3]||(W[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Te,{onClick:A,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>W[4]||(W[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Te,{onClick:ee,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>W[5]||(W[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Te,{onClick:C,disabled:!c.value,id:"themeButton"},{default:a.withCtx(()=>W[6]||(W[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),W[9]||(W[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Te,{onClick:_,disabled:y.value.length===0,id:"themeButton"},{default:a.withCtx(()=>W[7]||(W[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Te,{onClick:L,id:"themeBorderButton"},{default:a.withCtx(()=>W[8]||(W[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),Af=Jl._export_sfc(Tf,[["__scopeId","data-v-24a2050a"]]);function oc(l){return al.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function zf(l){return al.axios.get(l,{responseType:"blob"})}const cs=O.useMenuState(O.pinia),Mf=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"))){cs.setContentLoading(!0);const w=await O.platformDownloadFile({url:o});let D=w==null?void 0:w.data;const R=new FormData;R.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])),R.append("query",r);let S=await oc(R);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,cs.setContentLoading(!1)}return s},Et=O.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),If=O.useLoginState(O.pinia),{extraUrl:oo}=O.storeToRefs(If);let ic=oo.value===""||!oo.value?"http://139.196.154.85:20015":oo.value;a.watch(()=>oo.value,()=>{ic=oo.value===""||!oo.value?"http://139.196.154.85:20015":oo.value},{deep:!0,immediate:!0});const Di={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},us={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:ic+"/api/public/paddleOCR"};class Of{constructor(n){qr(this,"config");this.config={...us,...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||us.apiUrl||"";return(await al.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:o}})).data}getFieldAliases(n){return Di[n]?Di[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 tc(l){return new Of(l)}tc();const mt=async(l,n)=>{var y,p,v,m,u,w,D,R,S,K,I,A,ee,C,_,E,k;let r=(p=(y=O.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 L,j,W,te;(g==null?void 0:g.name)===(((te=(W=(j=(L=O.cloneDeep(l))==null?void 0:L.optionUrl)==null?void 0:j.groupSelect)==null?void 0:W[0])==null?void 0:te.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),n){s=n;const g=await Sr.getInsofDataApi({id:s}),L=(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(L,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;n?g=(D=c==null?void 0:c.find(W=>(W==null?void 0:W.id)===n))==null?void 0:D.compData:g=(R=c==null?void 0:c.find(W=>{var te,Te,Ee,Q;return(W==null?void 0:W.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:R.compData;let L=(K=(S=g==null?void 0:g.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:S.contents)==null?void 0:K.map(W=>W==null?void 0:W.label);(A=(I=g==null?void 0:g.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:I.contents)!=null&&A.every(W=>Array.isArray(W))&&(L=(_=oa.getColumnChild((C=(ee=g==null?void 0:g.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:ee.contents)==null?void 0:C[0]))==null?void 0:_.map(W=>W==null?void 0:W.prop));let j=(k=(E=g==null?void 0:g.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:E.contents)==null?void 0:k.map(W=>{if(Array.isArray(W))W=W==null?void 0:W.filter(te=>!(te!=null&&te.id));else{let te={};for(let Te in W)Te!=="id"&&(te[Te]=W==null?void 0:W[Te]);W=te}return W});j==null||j.forEach(W=>{Array.isArray(W)?o.push(oa.getValueToObjectValue(W,L)):o.push(W)})}return o},Lf=O.useMenuState(O.pinia),{activeMenuPath:j6}=O.storeToRefs(Lf),Rf=O.useUnit(O.pinia),{chooseTitle:H6}=O.storeToRefs(Rf),$f="col-operate",sc=l=>`${$f}-${l}`,Vf=(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);Pf(p,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&o(c.children)})};return o(n),n},Pf=(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),Ff=(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}},jf=async l=>{var c,y;if(!l)return;const n=sc(l),r=await Sr.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]},Hf=async l=>{if(l)return[]},Uf=async(l,n)=>{if(!l||!n)return;const r=sc(l);return await Sr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:n}})},qf=async(l,n)=>!l||!n?void 0:await Sr.updateInsofDataApi({id:l,value:{columns:n}}),ds=async(l,n)=>{const r=sessionStorage.getItem("systemKey");if(!l||!n||!r)return;const o=await jf(l);return o?await qf(o==null?void 0:o.id,n):await Uf(l,n)};var ki={exports:{}},Wf=ki.exports,ps;function Kf(){return ps||(ps=1,function(l,n){(function(r,o){o()})(Wf,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 $n.commonjsGlobal=="object"&&$n.commonjsGlobal.global===$n.commonjsGlobal?$n.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,R=document.createElement("a");u=u||m.name||"download",R.download=u,R.rel="noopener",typeof m=="string"?(R.href=m,R.origin===location.origin?c(R):s(R.href)?o(m,u,w):c(R,R.target="_blank")):(R.href=D.createObjectURL(m),setTimeout(function(){D.revokeObjectURL(R.href)},4e4),setTimeout(function(){c(R)},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 R=m.type==="application/octet-stream",S=/constructor/i.test(y.HTMLElement)||y.safari,K=/CriOS\/[\d]+/.test(navigator.userAgent);if((K||R&&S||p)&&typeof FileReader<"u"){var I=new FileReader;I.onloadend=function(){var C=I.result;C=K?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})}(ki)),ki.exports}Kf();const Jn=O.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}}}),Gf=O.useLoginState(O.pinia),{loginUserInfo:tt}=O.storeToRefs(Gf),Yf=async l=>{var o,s,c;let n=await O.getAllTables({platId:parseInt((o=tt==null?void 0:tt.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 ec(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}]}]},Jf=O.useLoginState(),{loginUserInfo:gl}=O.storeToRefs(Jf);let vi="$R";const Cr=O.useModelComp(O.pinia),cc=a.ref(!1),{itemData:Xf,itemGridData:ro,curStructureCompIds:fs,isSubmitCurStructure:Zf,routeToChildPath:Qf,pageMapState:yt,itemExtendData:mi,refreshTable:hs}=O.storeToRefs(Cr),Oi=Jn(O.pinia),Tr=O.useMenuState(O.pinia),rr=a.shallowRef([]),{asideMenus:e0,activeTopMenuPath:a0,activeMenuPath:xl,platform:U6,buttonTriggerType:l0,currentMenuPath:Zr}=O.storeToRefs(Tr),dn=O.useUnit(O.pinia),{selectTitle:Kn,chooseTitle:Bi}=O.storeToRefs(dn);a.ref();const No=a.ref(!0),Yn=a.ref(0),gt=a.ref([]);a.ref(!1);const St=a.ref(!1),Uo=a.ref(),uc=a.ref(),dc=a.ref(),r0=()=>{Cr.setItemGridData([]),Cr.setIsEdit("edit"),Cr.setSubmitCurStructure(xl.value!=="/平台管理/菜单管理")},n0=()=>{Cr.setIsEdit("view"),Cr.setRefreshCurStructure(!0)},o0=async l=>{var s;let n=Kn.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);dn.setSelectTitle(dl.safeClone(o)),o=(s=o==null?void 0:o.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Tr.setActiveMenuPath(null),Tr.setActiveMenuPath(o)},st=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=Sr.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=Sr.batchUpdateInsofDataApi):n==="delete"&&(c={ids:l},y=Sr.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("保存响应失败")}},vs=async(l,n,r,o)=>{var s,c,y,p,v,m,u,w,D,R,S;try{const K=(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=yt.value)==null?void 0:m[xl.value])==null?void 0:u.filter(E=>{var k,g,L;return((k=E==null?void 0:E.key)==null?void 0:k.type)===n&&((L=(g=E==null?void 0:E.key)==null?void 0:g.relatedInfo)==null?void 0:L.target)===o}))==null?void 0:w.map(E=>E==null?void 0:E.id):C=(S=(R=(D=yt.value)==null?void 0:D[xl.value])==null?void 0:R.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");(K==null?void 0:K.length)>0&&await Sr.batchAddInsofDataApi({dataList:K}),(I==null?void 0:I.length)>0&&await Sr.batchUpdateInsofDataApi({dataList:I}),(_==null?void 0:_.length)>0&&await Sr.batchDeleteInsofDataApi({ids:_})}catch(K){throw new Error(K)}},i0=async l=>{var m,u,w,D,R,S,K,I,A,ee;Tr.setContentLoading(!0);const n=JSON.parse(JSON.stringify(Xf.value));if(!Zf.value)return Tr.setCacheStructures({key:l0.value,data:n}),al.ElMessage.success("已暂存");const r=n==null?void 0:n.map(C=>C.id),o=r.filter(C=>{var _;return!((_=fs.value)!=null&&_.includes(C))}),s=(m=fs.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(st(c,"delete",l)),y&&(y==null?void 0:y.length)>0&&v.push(st(y,"create",l)),p&&(p==null?void 0:p.length)>0&&v.push(st(p,"update",l)),ro.value&&((u=ro.value)!=null&&u.isDelete&&((D=(w=ro.value)==null?void 0:w.results)==null?void 0:D.length)>0&&((S=(R=ro.value)==null?void 0:R.results)!=null&&S.every(C=>typeof C=="number"))?await Sr.batchDeleteInsofDataApi({ids:(K=ro.value)==null?void 0:K.results}):(console.log("itemGridData.value",ro.value),v.push(await vs(ro.value,"gridLayout")))),mi.value)for(const C in mi.value)v.push(await vs((I=mi.value)==null?void 0:I[C],"extend",{target:C,compId:(ee=(A=mi.value)==null?void 0:A[C])==null?void 0:ee.compId},C));await Promise.all(v).then(()=>{al.ElMessage.success("保存成功"),Cr.setRefreshCurStructure(!0)}).catch(C=>{al.ElMessage.success(C)}),Tr.setContentLoading(!1)},qo=l=>To(l),t0=a.computed(()=>{var l;return(l=rr.value)==null?void 0:l.filter(n=>(n==null?void 0:n.affix)&&(n==null?void 0:n.affix)!=="default")}),pc=a.computed(()=>{var l;return(l=rr.value)==null?void 0:l.filter(n=>!(n!=null&&n.affix&&(n==null?void 0:n.affix)!=="default"))}),fc=a.ref(0),hc=a.ref(null),s0="ocr_committed_temp_ids_v1",c0=(l,n)=>`${s0}:${String(l??"")}:${String(n??"")}`,u0=(l,n,r)=>{try{const o=c0(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{}},Ni=async(l,n="data",r)=>{var s,c,y,p,v,m,u,w,D,R,S,K,I,A,ee,C,_,E,k,g,L,j,W,te,Te,Ee,Q,be,Z,de,je,wa,ie,F,H,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,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,fl,Ma,Hl,Ea;let o=((y=(c=(s=Kn.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 O.quoteApi({platId:parseInt((v=gl==null?void 0:gl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.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)===(xl==null?void 0:xl.value))});let Va=Ra==null?void 0:Ra.map(pe=>{var aa,Ge;let Ca={},qe=_a==null?void 0:_a[0],Y;return Array.isArray((aa=pe==null?void 0:pe.struct)==null?void 0:aa[0])?Y=oa.getColumnChild((Ge=pe==null?void 0:pe.struct)==null?void 0:Ge[0]):Y=pe==null?void 0:pe.struct,Y=Y==null?void 0:Y.filter(Be=>(Be==null?void 0:Be.prop)!=="relatedId"),Y==null||Y.forEach(Be=>{var Cl,tl;Ca[Be.prop]=((Cl=Be==null?void 0:Be.words)!=null&&Cl[0]?(qe==null?void 0:qe[(tl=Be==null?void 0:Be.words)==null?void 0:tl[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 O.quoteApi({platId:parseInt((w=gl==null?void 0:gl.value)==null?void 0:w.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});xa=(R=(D=xa==null?void 0:xa.data)==null?void 0:D.result)==null?void 0:R.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)===(xl==null?void 0:xl.value))});let ae=xa==null?void 0:xa.map(pe=>{var aa,Ge,Be,Cl,tl,bl,Ga;let Ca={},qe=_a==null?void 0:_a[0],Y;return Array.isArray((aa=pe==null?void 0:pe.struct)==null?void 0:aa[0])?Y=oa.getColumnChild((Ge=pe==null?void 0:pe.struct)==null?void 0:Ge[0]):Y=pe==null?void 0:pe.struct,Y=Y==null?void 0:Y.filter(Qa=>(Qa==null?void 0:Qa.prop)!=="relatedId"),((Cl=(Be=Y==null?void 0:Y[0])==null?void 0:Be.words)!=null&&Cl[0]?qe!=null&&qe[(bl=(tl=Y==null?void 0:Y[0])==null?void 0:tl.words)==null?void 0:bl[0]]:qe!=null&&qe[(Ga=Y==null?void 0:Y[0])==null?void 0:Ga.prop])?(Y==null||Y.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 O.pageBatchAddApi({platId:parseInt((S=gl==null?void 0:gl.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 O.pageBatchAddApi({platId:parseInt((K=gl==null?void 0:gl.value)==null?void 0:K.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 O.pageBatchAddApi({platId:parseInt((A=gl==null?void 0:gl.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 O.pageBatchAddApi({platId:parseInt((ee=gl==null?void 0:gl.value)==null?void 0:ee.plat_id),changeContents:[{tableName:"log",tableContents:qa}]}),u0(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(Y=>{const aa={...Y};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(Y=>{let aa={};for(let Ge in Y)Array.isArray(Y==null?void 0:Y[Ge])?aa[Ge]=JSON.stringify(Y==null?void 0:Y[Ge]):aa[Ge]=Y==null?void 0:Y[Ge];return aa}),qa=await O.quoteApi({platId:parseInt((C=gl==null?void 0:gl.value)==null?void 0:C.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.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(Y=>{var aa,Ge;return!((Y==null?void 0:Y.fatherPath)!==""&&((Ge=(aa=Y==null?void 0:Y.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.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(Y=>Y==null?void 0:Y.includes("content")),tableContents:Va}],Ye=(g=qa==null?void 0:qa.map(Y=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=Y==null?void 0:Y.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((Cl=Y==null?void 0:Y.struct)==null?void 0:Cl[0])?he=oa.getColumnChild((tl=Y==null?void 0:Y.struct)==null?void 0:tl[0]):he=Y==null?void 0:Y.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var El,Vl;Qa[Da.prop]=((El=Da==null?void 0:Da.words)!=null&&El[0]?(Na==null?void 0:Na[(Vl=Da==null?void 0:Da.words)==null?void 0:Vl[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=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,delete Qa.relatedId,{tableName:"content_"+(Y==null?void 0:Y.id),tableContents:[Qa]}}else return}))==null?void 0:g.filter(Y=>Y);ae=[...ae,...Ye];let pe=await O.quoteApi({platId:parseInt((L=gl==null?void 0:gl.value)==null?void 0:L.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});pe=(W=(j=pe==null?void 0:pe.data)==null?void 0:j.result)==null?void 0:W.filter(Y=>!(ae!=null&&ae.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(Y==null?void 0:Y.id)))),pe=pe==null?void 0:pe.filter(Y=>{var aa,Ge;return!((Y==null?void 0:Y.fatherPath)!==""&&((Ge=(aa=Y==null?void 0:Y.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Ca=(te=pe==null?void 0:pe.map(Y=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=Y==null?void 0:Y.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((Cl=Y==null?void 0:Y.struct)==null?void 0:Cl[0])?he=oa.getColumnChild((tl=Y==null?void 0:Y.struct)==null?void 0:tl[0]):he=Y==null?void 0:Y.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var El,Vl,Fl,nr;((El=Da==null?void 0:Da.words)!=null&&El[0]?(Na==null?void 0:Na[(Vl=Da==null?void 0:Da.words)==null?void 0:Vl[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop]):Na!=null&&Na[Da==null?void 0:Da.prop])&&(Qa[Da.prop]=((Fl=Da==null?void 0:Da.words)!=null&&Fl[0]?(Na==null?void 0:Na[(nr=Da==null?void 0:Da.words)==null?void 0:nr[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=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,delete Qa.relatedId,{tableName:"content_"+(Y==null?void 0:Y.id),tableContents:[Qa]}}else return}))==null?void 0:te.filter(Y=>Y);ae=[...ae,...Ca],await O.pageBatchUpdateApi({platId:parseInt((Te=gl==null?void 0:gl.value)==null?void 0:Te.plat_id),changeContents:ae});let qe=[];ae==null||ae.forEach(Y=>{var aa;(aa=Y==null?void 0:Y.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:Y==null?void 0:Y.tableName,request_type:"update"})})}),await O.pageBatchAddApi({platId:parseInt((Ee=gl==null?void 0:gl.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 O.quoteApi({platId:parseInt((be=gl==null?void 0:gl.value)==null?void 0:be.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.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)===(xl==null?void 0:xl.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,Y,aa,Ge,Be,Cl;let Ca=(qe=pe==null?void 0:pe.contents)==null?void 0:qe.filter(tl=>{var bl,Ga,Qa;return JSON.stringify(tl==null?void 0:tl.relatedId)!=="{}"&&(tl==null?void 0:tl.relatedId)!==""&&(tl!=null&&tl.relatedId)?(bl=tl==null?void 0:tl.relatedId)==null?void 0:bl.includes(parseInt(Va)):(tl==null?void 0:tl.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 tl=(Y=l==null?void 0:l.fixContent)==null?void 0:Y[0];tl={...tl,id:(aa=Ca==null?void 0:Ca[0])==null?void 0:aa.id};let bl={},Ga=tl,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;bl[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])??""}),bl.id=(Cl=Ca==null?void 0:Ca[0])==null?void 0:Cl.id,delete bl.sort,delete bl.relatedId,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[bl]}}else return}))==null?void 0:wa.filter(pe=>pe);_a=[..._a,...qa];let xa=await O.quoteApi({platId:parseInt((ie=gl==null?void 0:gl.value)==null?void 0:ie.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});xa=(H=(F=xa==null?void 0:xa.data)==null?void 0:F.result)==null?void 0:H.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)===(xl==null?void 0:xl.value))});let ae=(ye=xa==null?void 0:xa.map(pe=>{var qe,Y,aa,Ge,Be,Cl;let Ca=(qe=pe==null?void 0:pe.contents)==null?void 0:qe.filter(tl=>{var bl,Ga,Qa;return JSON.stringify(tl==null?void 0:tl.relatedId)!=="{}"&&(tl==null?void 0:tl.relatedId)!==""&&(tl!=null&&tl.relatedId)?(bl=tl==null?void 0:tl.relatedId)==null?void 0:bl.includes(parseInt(Va)):(tl==null?void 0:tl.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 tl=(Y=l==null?void 0:l.fixContent)==null?void 0:Y[0];tl={...tl,id:(aa=Ca==null?void 0:Ca[0])==null?void 0:aa.id};let bl={},Ga=tl,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;bl[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])??""}),bl.id=(Cl=Ca==null?void 0:Ca[0])==null?void 0:Cl.id,delete bl.sort,delete bl.relatedId,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[bl]}}else return}))==null?void 0:ye.filter(pe=>pe);_a=[..._a,...ae],await O.pageBatchDeleteApi({platId:parseInt((Se=gl==null?void 0:gl.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 O.pageBatchAddApi({platId:parseInt((ke=gl==null?void 0:gl.value)==null?void 0:ke.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let _a=await O.getPageDataApi({platId:parseInt((Ze=gl==null?void 0:gl.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)===xl.value+"/")){dc.value=l,uc.value=_a==null?void 0:_a.filter(qa=>(qa==null?void 0:qa.father_name)===xl.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];St.value=!0,Uo.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 O.pageBatchAddApi({platId:parseInt((Ie=gl==null?void 0:gl.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 O.pageBatchAddApi({platId:parseInt(($e=gl==null?void 0:gl.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(Y=>Y==null?void 0:Y.filter))==null?void 0:Xa.filter(Y=>Y!==""))==null?void 0:Wa[0])??"";_a=$a.analyzeSplitToContent(_a,","),_a=(_a==null?void 0:_a.find(Y=>Y==null?void 0:Y.includes("@Filter")))??"";let Ra=(P=l==null?void 0:l.fixContent)==null?void 0:P.map(Y=>{let aa={};for(let Ge in Y)Array.isArray(Y==null?void 0:Y[Ge])?aa[Ge]=JSON.stringify(Y==null?void 0:Y[Ge]):aa[Ge]=Y==null?void 0:Y[Ge];return aa}),Va=await O.quoteApi({platId:parseInt((V=gl==null?void 0:gl.value)==null?void 0:V.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.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(Y=>{var aa,Ge;return!((Y==null?void 0:Y.fatherPath)!==""&&((Ge=(aa=Y==null?void 0:Y.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.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(Y=>Y==null?void 0:Y.includes("content")),tableContents:Ra}],Ye=(Le=Va==null?void 0:Va.map(Y=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=Y==null?void 0:Y.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((Cl=Y==null?void 0:Y.struct)==null?void 0:Cl[0])?he=oa.getColumnChild((tl=Y==null?void 0:Y.struct)==null?void 0:tl[0]):he=Y==null?void 0:Y.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var El,Vl;Qa[Da.prop]=((El=Da==null?void 0:Da.words)!=null&&El[0]?(Na==null?void 0:Na[(Vl=Da==null?void 0:Da.words)==null?void 0:Vl[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=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,{tableName:"content_"+(Y==null?void 0:Y.id),tableContents:[Qa]}}else return}))==null?void 0:Le.filter(Y=>Y);ae=[...ae,...Ye];let pe=await O.quoteApi({platId:parseInt((Ce=gl==null?void 0:gl.value)==null?void 0:Ce.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.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(Y=>!(ae!=null&&ae.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(Y==null?void 0:Y.id)))),pe=pe==null?void 0:pe.filter(Y=>{var aa,Ge;return!((Y==null?void 0:Y.fatherPath)!==""&&((Ge=(aa=Y==null?void 0:Y.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.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("(",vi))==null?void 0:Fa.split(vi))==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("{",vi))==null?void 0:me.split(vi))==null?void 0:Je[1])),_a=(ze=_a==null?void 0:_a.replaceAll("{",""))==null?void 0:ze.replaceAll("}","");let Y=oa.calculatorAndToOr(_a);Y=Y==null?void 0:Y[0];let aa;if((Xe=Object.values(Y))!=null&&Xe.some(Ge=>(Ge==null?void 0:Ge[0])==="*")){let Ge=(ua=(pa=Kn.value)==null?void 0:pa.find(Be=>(Be==null?void 0:Be.condition)==="child"))!=null&&ua.value?(Zr==null?void 0:Zr.value)+"/"+((za=(Ae=Kn.value)==null?void 0:Ae.find(Be=>(Be==null?void 0:Be.condition)==="child"))==null?void 0:za.value):Zr==null?void 0:Zr.value;aa=await Wr(Ge,!1)}for(let Ge in Y)if(((fa=Y==null?void 0:Y[Ge])==null?void 0:fa[0])==="*"){let Be=(We=(He=(ga=Y[Ge])==null?void 0:ga.slice(1,(Ua=Y[Ge])==null?void 0:Ua.length))==null?void 0:He.split(":"))==null?void 0:We[0],Cl=(De=(Ne=Y[Ge])==null?void 0:Ne.split(":"))==null?void 0:De[1],tl=(fe=aa==null?void 0:aa.filter(bl=>(bl==null?void 0:bl.name)===Be))==null?void 0:fe[0];tl=(ia=(oe=tl==null?void 0:tl.compData)==null?void 0:oe.find(bl=>(bl==null?void 0:bl.key)==="tableContents"))==null?void 0:ia.contents,tl=(Pa=tl==null?void 0:tl[0])==null?void 0:Pa[Cl],Y[Ge]=tl}_a=((fl=Object.values(Y))==null?void 0:fl[0])??""}let Ca=(Ma=pe==null?void 0:pe.map(Y=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=Y==null?void 0:Y.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((Cl=Y==null?void 0:Y.struct)==null?void 0:Cl[0])?he=oa.getColumnChild((tl=Y==null?void 0:Y.struct)==null?void 0:tl[0]):he=Y==null?void 0:Y.struct,he=he==null?void 0:he.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),he==null||he.forEach(Da=>{var Vl,Fl,nr,yr;let El=(Vl=l==null?void 0:l.columns)==null?void 0:Vl.find(Nl=>{var tr,Nr,Ll;return((Nr=(tr=Nl==null?void 0:Nl.words)==null?void 0:tr[0])==null?void 0:Nr.replaceAll("'",""))===(Da==null?void 0:Da.prop)&&((Ll=Nl==null?void 0:Nl.functionRelatedWords)==null?void 0:Ll.length)>0});El=(Fl=El==null?void 0:El.prop)==null?void 0:Fl.replaceAll("'",""),Qa[Da.prop]=((nr=Da==null?void 0:Da.words)!=null&&nr[0]?(Na==null?void 0:Na[(yr=Da==null?void 0:Da.words)==null?void 0:yr[0]])??(Na==null?void 0:Na[Da==null?void 0:Da.prop])??(Na==null?void 0:Na[El]):(Na==null?void 0:Na[Da==null?void 0:Da.prop])??(Na==null?void 0:Na[El]))??void 0}),Qa.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,{tableName:"content_"+(Y==null?void 0:Y.id),tableContents:[Qa]}}else return}))==null?void 0:Ma.filter(Y=>Y);ae=[...ae,...Ca],await O.pageBatchUpdateApi({platId:parseInt((Hl=gl==null?void 0:gl.value)==null?void 0:Hl.plat_id),changeContents:ae});let qe=[];ae==null||ae.forEach(Y=>{var aa;(aa=Y==null?void 0:Y.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:Y==null?void 0:Y.tableName,request_type:"method"})})}),await O.pageBatchAddApi({platId:parseInt((Ea=gl==null?void 0:gl.value)==null?void 0:Ea.plat_id),changeContents:[{tableName:"log",tableContents:qe}]})}Cr.setRefreshCurStructure(!0),await kt(l)},bt=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 Ct(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 bt(p==null?void 0:p.children,n,r):p.compData=await bt(p==null?void 0:p.compData,n,r),p});return c=await Promise.all(y),c}},kt=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 O.getAllTables({platId:parseInt((y=gl==null?void 0:gl.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 R={};for(let S in D){const K=D==null?void 0:D[S],I=K&&Object.prototype.toString.call(K)==="[object Object]"&&Object.keys(K).length===0,A=Array.isArray(K)&&K.length===0;K==null||K==="{}"||I||A?R[S]="":R[S]=K}return R});let o=(u=(m=n==null?void 0:n[0])==null?void 0:m.split("_"))==null?void 0:u[1],s=await bt(rr.value,o,r);rr.value=(w=rr.value)==null?void 0:w.map(D=>{var R,S;return(R=s==null?void 0:s[0])!=null&&R.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})},d0=l=>{let n=Uo.value;Uo.value=n==null?void 0:n.map(r=>(r.value=l==null?void 0:l[r==null?void 0:r.prop],r))},p0=async()=>{var D,R,S,K,I,A,ee,C,_,E;let l=dc.value,n=uc.value,r=(R=(D=l==null?void 0:l.columns)==null?void 0:D.find(k=>k==null?void 0:k.mainKey))==null?void 0:R.prop,o=(K=(S=Uo.value)==null?void 0:S[0])==null?void 0:K.value,s=(I=l==null?void 0:l.fixContent)==null?void 0:I.map(k=>{var L;let g={};for(let j in k)Array.isArray(k==null?void 0:k[j])?g[j]=JSON.stringify(k==null?void 0:k[j]):g[j]=k==null?void 0:k[j];return(L=l==null?void 0:l.columns)==null||L.forEach(j=>{(j==null?void 0:j.formType)==="Upload"&&(g==null?void 0:g[j==null?void 0:j.prop])===""&&(g[j==null?void 0:j.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 O.pageBatchAddApi({platId:parseInt((ee=gl==null?void 0:gl.value)==null?void 0:ee.plat_id),changeContents:c}),n=n==null?void 0:n.filter(k=>{var g,L,j;return(j=k==null?void 0:k.object_name)==null?void 0:j.includes((L=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:L[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 O.getAllTables({platId:parseInt((C=gl==null?void 0:gl.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 j,W,te,Te,Ee,Q,be,Z,de,je,wa,ie,F,H,ye,Se,ke,Ze,ya,Ha,re;let g=p.get((Te=(te=(W=(j=k==null?void 0:k[1])==null?void 0:j[0])==null?void 0:W.source_table)==null?void 0:te.split("_"))==null?void 0:Te[1]),L=(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(L=L+"/"+o,u!=null&&u.find(la=>(la==null?void 0:la.path)===L)||u.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:L}),((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=dl.safeClone(la);Array.isArray(Ve==null?void 0:Ve[0])&&(Ve=oa.getColumnChild(Ve==null?void 0:Ve[0]));let ba=[];if(((F=k==null?void 0:k[0])==null?void 0:F.length)>0&&(ba=(H=k==null?void 0:k[0])==null?void 0:H.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)===L)){let Fe=(ye=m==null?void 0:m.find($e=>($e==null?void 0:$e.key)===L))==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)===L);m[Ie].contents=Fe}else m.push({key:L,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 O.createPlatFormDataApi({platId:parseInt((E=gl==null?void 0:gl.value)==null?void 0:E.plat_id),changeData:w}),St.value=!1,Cr.setRefreshTable(!0)},Ti=async(l,n)=>{},Ai=async l=>{rr.value=await oa.getDeepDiffItems(l),Cr.setItemData(rr.value),Cr.setOriginalData(rr.value)};a.ref();const f0=a.ref(null),h0=()=>{var l,n;console.log("倒计时结束时"),un.ElMessageBox.alert(`超时未提交,【${(n=(l=xl.value)==null?void 0:l.split("/"))==null?void 0:n[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},vc=a.ref([]),v0=a.computed(()=>{var l,n;return(n=(l=yt.value)==null?void 0:l[xl.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(()=>[a0.value],()=>{dn.setSelectTitle([]),dn.setChooseTitle([])},{deep:!0});a.watch(()=>Bi.value,async(l,n)=>{var o,s,c,y,p,v;if(JSON.stringify(l)===JSON.stringify(n))return;let r=(o=Bi.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)!==Zr.value);if((r==null?void 0:r.length)>0){Tr.setContentLoading(!0);let m=((s=r==null?void 0:r[0])==null?void 0:s.relatedContent)??(xl==null?void 0:xl.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 Wr(u,w,{originPath:m});D=(p=D==null?void 0:D.filter(K=>K))==null?void 0:p.map(K=>(K.isShow=!0,K)),console.log(D,"loadingContents");let R=await oa.getDeepDiffItems(D),S=R==null?void 0:R.filter(K=>K==null?void 0:K.choice);Oi.setSelectTab((v=S==null?void 0:S[0])==null?void 0:v.choiceName),R=R==null?void 0:R.filter(K=>{var I;return!(K!=null&&K.choiceName)||(K==null?void 0:K.choiceName)===((I=S==null?void 0:S[0])==null?void 0:I.choiceName)}),rr.value=R,Tr.setContentLoading(!1)}});const m0=(l,n)=>{setTimeout(async()=>{var p,v,m;let r=(p=Bi.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)!==Zr.value),o=xl==null?void 0:xl.value,s=xl==null?void 0:xl.value;(r==null?void 0:r.length)>0&&(s=((v=r==null?void 0:r[0])==null?void 0:v.relatedContent)??(xl==null?void 0:xl.value),o=s+"/"+((m=r==null?void 0:r[0])==null?void 0:m.value));let c=await Wr(o,!1,{originPath:s});c=c==null?void 0:c.map(u=>(u.isShow=!0,u));let y=await oa.getDeepDiffItems(c);rr.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)},y0=l=>{setTimeout(async()=>{var y,p,v;let n=(y=Bi.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)!==Zr.value),r=xl==null?void 0:xl.value,o=xl==null?void 0:xl.value;(n==null?void 0:n.length)>0&&(o=((p=n==null?void 0:n[0])==null?void 0:p.relatedContent)??(xl==null?void 0:xl.value),r=o+"/"+((v=n==null?void 0:n[0])==null?void 0:v.value));let s=await Wr(r,!1,{originPath:o});s=s==null?void 0:s.map(m=>(m.isShow=!0,m)),Oi.setSelectTab(l);let c=await oa.getDeepDiffItems(s);rr.value=c==null?void 0:c.filter(m=>!(m!=null&&m.choiceName)||(m==null?void 0:m.choiceName)===l)},10)};a.watch(()=>e0.value,l=>{l!=null&&l.length||(rr.value=[])},{immediate:!0});a.watch(()=>[xl.value],async l=>{var c,y,p,v;if(!xl.value)return;if(xl.value==="/"){rr.value=[];return}Tr.setCurrentMenuPath(xl.value),Cr.setLockingPage(""),rr.value=[];let n=a.getCurrentInstance();(c=n==null?void 0:n.scope)==null||c.stop(),n=null,No.value=!1,Tr.setContentLoading(!0),cc.value=!0;let r=l==null?void 0:l[0],o=r,s=(y=Kn.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)!==xl.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==="系统管理/日志管理")rr.value=await Yf("log");else{let m=await Wr(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);Oi.setSelectTab((v=w==null?void 0:w[0])==null?void 0:v.choiceName),rr.value=u==null?void 0:u.filter(D=>{var R;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((R=w==null?void 0:w[0])==null?void 0:R.choiceName)})}Tr.setContentLoading(!1),Cr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Cr.setItemData(rr.value),Cr.setOriginalData(rr.value),Cr.setRefreshTable(!1),a.nextTick(()=>{Yn.value=Yn.value++,No.value=!0})},{immediate:!0});a.watch(()=>[hs.value],async()=>{var l,n,r,o;if(hs.value){rr.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,No.value=!1,Tr.setContentLoading(!0),cc.value=!0;let c=Zr==null?void 0:Zr.value,y=c,p=(n=Kn.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)!==(Zr==null?void 0:Zr.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 Wr(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(Oi.setSelectTab((o=u==null?void 0:u[0])==null?void 0:o.choiceName),rr.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)}),Tr.setContentLoading(!1),Cr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Cr.setItemData(rr.value),Cr.setOriginalData(rr.value),Cr.setRefreshTable(!1),(p==null?void 0:p.length)>0){let w=[...Kn.value,...p];dn.setSelectTitle(w)}a.nextTick(()=>{Yn.value=Yn.value++,No.value=!0})}},{immediate:!0,deep:!0});const g0=async()=>{Tr.setLinkMenuInfo(null),Tr.setActiveMenuPath(Qf.value),rr.value=null,Cr.setRouteToChildPath(""),Tr.setChildMenu("")},b0=l=>new RegExp("button","i").test(l),k0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),mc=l=>{if(k0(l)){const n=l==null?void 0:l.split("^");(n==null?void 0:n.length)>0&&(n!=null&&n[0])&&Tr.setLinkMenuInfo({path:n==null?void 0:n[0],data:n==null?void 0:n[1]})}},yc=async(l,n,r)=>{var D,R,S,K,I,A,ee,C,_,E,k,g;let o="",s="";for(let L in n)(n==null?void 0:n[L])===l&&(s=L);r==null||r.forEach(L=>{(L==null?void 0:L.prop)===s&&(o=L==null?void 0:L.fatherPath)});let c=o===""?xl.value:o;o!==""&&Tr.setCurrentMenuPath(c),Tr.setCurrentMenuPath(c+"/"+l),Tr.setContentLoading(!0),await Wr(c+"/"+l,!0,{originPath:c+"/",row:n});let y=await Wr(c,!1),p=(D=y==null?void 0:y.filter(L=>(L==null?void 0:L.comp)==="Table"))==null?void 0:D[0],v=((I=(K=(S=(R=p==null?void 0:p.compData)==null?void 0:R.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:S.contents)==null?void 0:K[0])==null?void 0:I.prop)??((E=(_=(C=(ee=(A=p==null?void 0:p.compData)==null?void 0:A.find(L=>(L==null?void 0:L.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(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:g.contents;m=m==null?void 0:m.map(L=>({label:L==null?void 0:L[v],value:L==null?void 0:L[v]}));let u=Kn.value,w={value:l,condition:"child",options:m,relatedContent:c,isShow:!0};u.push(w),dn.setSelectTitle(u),dn.setChooseTitle([w]),Tr.setContentLoading(!1),Cr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Cr.setItemData(rr.value),Cr.setOriginalData(rr.value)},x0=l=>{fc.value=l},Co=a.reactive({index:0,comp:null}),w0=a.computed(()=>{var l;return(l=rr.value)==null?void 0:l.map((n,r)=>({id:n.id,name:n.name,status:_0(n,r)}))}),gc=(l,n)=>{var v,m,u,w,D;const r=n?l:l-2,o=(v=rr.value)==null?void 0:v[r],s=(u=(m=o==null?void 0:o.compData)==null?void 0:m.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex(R=>(R==null?void 0:R.isMainKey)&&(R==null?void 0:R.label)!=="操作"),y=c===-1?0:c,p=(D=(w=o==null?void 0:o.compData)==null?void 0:w.find(R=>(R==null?void 0:R.key)==="tableContents"))==null?void 0:D.contents;return{valid:p==null?void 0:p.every(R=>R==null?void 0:R[y+1]),length:(p==null?void 0:p.length)||0}},_0=(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}=gc(n,!0);Co.index===n?r="process":c===0?r="wait":r=s?"success":"error"}return r},bc=l=>{var r,o,s,c,y;const n=l+1;if(n>1&&((s=(o=(r=rr.value)==null?void 0:r[l])==null?void 0:o.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:p}=gc(n);p?(Co.index=n,Co.comp=(c=rr.value)==null?void 0:c[l]):al.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Co.index=n,Co.comp=(y=rr.value)==null?void 0:y[l]},kc=a.computed(()=>{var l,n;return(n=(l=pc.value)==null?void 0:l[0])==null?void 0:n.isStepLayout});a.watch(()=>kc.value,l=>{l&&bc(0)},{immediate:!0});const C0={class:"table-content"},E0={class:"menu-config-wrap"},S0=["onClick"],D0={key:0,class:"viewport-wrap"},B0=["onClick"],N0={title:"选择显示列信息"},T0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},A0=["title"],z0={class:"col-operate-wrap"},M0={key:0,class:"col-operate-radio-wrapper"},I0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},O0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},L0={class:"pop-view"},R0={class:"pop-wrapper"},$0={class:"file-list-pop"},V0=["title","onClick"],P0=["onClick"],F0=["onClick"],j0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},H0={class:"form-content"},U0={key:0,class:"dialog-footer"},q0={class:"dialog-footer"},W0={class:"ocr-dialog-content"},K0={class:"ocr-steps"},G0={key:0,class:"ocr-action-buttons"},Y0={key:1,class:"ocr-preview-area"},J0={class:"ocr-file-grid"},X0={class:"file-thumbnail"},Z0=["src"],Q0={key:1,class:"thumbnail-placeholder"},e3={class:"progress-svg",viewBox:"0 0 36 36"},a3=["stroke","stroke-width","stroke-dasharray"],l3={key:0,class:"progress-icon"},r3={key:1,class:"progress-icon"},n3=["onClick"],o3={class:"file-name"},i3={key:0,class:"ocr-recognize-button"},t3={key:2,class:"ocr-progress-section"},s3={key:3,class:"ocr-confirm-area"},c3={class:"ocr-preview-tip"},u3={class:"ocr-preview-table"},d3={style:{display:"flex","align-items":"center",gap:"8px"}},p3={key:0},f3={key:4,class:"ocr-success-area"},h3={key:0,class:"ocr-dialog-footer"},v3={class:"form-content"},m3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},y3={style:{display:"flex"}},ms="ss-ocr-upload-history",g3="ss-ocr-cert-history-v1",b3={__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 $t;const r=a.ref([]),o=Et(O.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((($t=u==null?void 0:u.config)==null?void 0:$t.showIndex)??!0),R=a.ref(),S=a.ref(!0),K=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(O.pinia);let _="$R";const{originalPath:E}=O.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 L=a.ref(!0),j=a.ref([]),W=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:F,initTrackFileType:H,getFileExtension:ye,setData:Se,getFileInfo:ke,getFilesInfo:Ze}=_i.useThreeSystem(),ya=a.ref([]),Ha=a.ref(!1),re=a.ref(),la=O.useMenuState(),{importLoading:Ve,activeMenuPath:ba,contentLoading:Fe,linkMenuInfo:Ie}=O.storeToRefs(la),$e=oa.useTableComp(O.pinia),Qe=O.useModelComp(O.pinia),Xa=Jn(O.pinia),{extraContents:Wa,cacheUpdatingData:P,tableViewContents:V,tableLoading:X,pageMapState:se,lockingPage:ue}=O.storeToRefs(Qe),{selectTab:va}=O.storeToRefs(Xa),{compType:ra,hasEditable:Le}=Ws.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(ms),h=d?JSON.parse(d):[];fe.value=Array.isArray(h)?h:[]}catch{fe.value=[]}},ia=()=>{try{localStorage.setItem(ms,JSON.stringify(fe.value||[]))}catch{}},Pa=d=>{var le,ne,U;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)||((U=d==null?void 0:d.uploadResult)==null?void 0:U.fileName)||"";if(!h&&!N)return;const z={name:N,url:h,ts:Date.now()},$=String(z.name||"").trim().toLowerCase(),B=(fe.value||[]).findIndex(xe=>String((xe==null?void 0:xe.name)||"").trim().toLowerCase()===$);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 fl=(d,h)=>`${g3}:${String(d??"")}:${String(h??"")}`,Ma=(d,h)=>{try{const N=sessionStorage.getItem(fl(d,h)),z=N?JSON.parse(N):[];return Array.isArray(z)?z:[]}catch{return[]}},Hl=(d,h,N)=>{try{sessionStorage.setItem(fl(d,h),JSON.stringify(Array.isArray(N)?N:[]))}catch{}},Ea=(d,h,N)=>{if(!h)return;const z=Ma(d,h),$=[N,...z||[]].filter(Boolean).slice(0,1);return Hl(d,h,$),$},_a=(d,h,N)=>{if(!h||!N)return;const z=fl(d,h),$=fl(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),U=[...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($,JSON.stringify(U)),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),Y=a.ref(0),aa=a.ref(!1),Ge=a.ref([]),Be=a.ref([]),Cl=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}},tl=d=>{const h=Cl(d),N=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return dl.getComponent(N)||dl.getComponent("Input")},bl=a.ref([]),Ga=a.ref(null),Qa=a.ref([]),Na=a.ref(null),he=a.ref(""),Da=a.ref(!1),El=a.ref([]),Vl=a.ref(""),Fl=a.ref(!1),nr=a.ref([]),yr=a.ref([]),Nl=a.ref([]),tr=a.ref(null),Nr=a.ref([]),Ll=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 lr=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""}}),Qr=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""}}),Ir=()=>{Fl.value=!1,nr.value=[],yr.value=[],Nl.value=[],tr.value=null,Nr.value=[],Ll.value=""},Ar=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Er=(d,h)=>{const N=(d==null?void 0:d.ocrRow)||{};for(const $ of Object.keys(N))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Ar(N[$])&&(h[$]=N[$]);const z=Sa.value.find($=>$.id===h.id);if(z)for(const $ of Object.keys(N))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Ar(N[$])&&(z[$]=N[$]);da.value&&da.value.set(h.id,h),Ea(u==null?void 0:u.index,h.id,d==null?void 0:d.versionItem),yr.value=[...yr.value||[],JSON.parse(JSON.stringify(h))]},zr=async(d,h=null)=>{var N,z,$,B,le,ne,U;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||tr.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}`,ol=await O.getPageDataApi({platId:parseInt((z=$l.value)==null?void 0:z.plat_id),pageName:sa});if(!(($=ol==null?void 0:ol.data)!=null&&$.result)||!Array.isArray(ol.data.result)){console.warn(`未找到详情页数据: ${sa}`);continue}const ka=ol.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 pl=Number((ta==null?void 0:ta.create_time)||0),ll=Number((Ia==null?void 0:Ia.create_time)||0);return pl-ll})[0];ge!=null&&ge.id&&await O.pageBatchDeleteApi({platId:parseInt((le=$l.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]||{},G=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.检校日期||G;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 O.pageBatchAddApi({platId:parseInt((U=$l.value)==null?void 0:U.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(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);const ll=na[0];ta=(ll==null?void 0:ll.url)||"";const ml=(ll==null?void 0:ll.name)||(ll==null?void 0:ll.fileName)||"";Ia=String(ml).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(ml=>({name:(ml==null?void 0:ml.name)||(ml==null?void 0:ml.fileName)||"",url:(ml==null?void 0:ml.url)||""})).filter(ml=>ml.url||ml.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 pl={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,pl)}}}catch(xe){console.error("向校检记录表插入OCR识别结果失败:",xe),al.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Mr=d=>{const h=Array.isArray(d)?d:nr.value||[];if(h.length===0){Ir();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),Nl.value=[...Nl.value||[],B.ocrRow];return}if(le==="replace"){const U=B==null?void 0:B.selectedTargetId,xe=(Ce.value||[]).find(_e=>String(_e==null?void 0:_e.id)===String(U));if(!xe)return;Er(B,xe)}}}),(yr.value||[]).length>0&&(Ce.value=[...Ce.value||[]]),(Nl.value||[]).length>0&&(Ce.value=[...Ce.value||[],...Nl.value||[]],Sa.value=[...Sa.value||[],...Nl.value||[]],(Nl.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)})),Gr.value=Ce.value;const z=yr.value||[],$=Nl.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}),zr(z)),$.length>0){const B=tr.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:$,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:($||[]).length})}al.ElMessage.success("已提交候选处理结果"),Ir()},Dr=tc(),Vr=a.computed(()=>Dr.getConfig()),Or=a.ref(),sr=a.ref(),gn=ac(O.pinia),Gr=a.ref(),rn=a.ref(0),Nn=O.useUnit(O.pinia),{selectIndex:bn,selectMenu:vn,selectTitle:vr}=O.storeToRefs(Nn),{selectString:Ul}=O.storeToRefs(gn),dr=O.useLoginState(O.pinia),{loginUserInfo:$l}=O.storeToRefs(dr),Kl=a.ref(720),Il=a.ref(!1),mr=a.ref(!1),or=a.ref([]),jl=a.ref(),$r=a.ref(!0),Pr=a.ref(!0);a.ref([]);const kn=a.inject("contentRef");a.provide("contentRef",kn),a.provide("getSuggestListForCell",vu),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(()=>V.value,async()=>{var h,N,z,$,B,le,ne,U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa;if(((h=V.value)==null?void 0:h.length)===0||!((N=u==null?void 0:u.itemData)!=null&&N.find(ol=>(ol==null?void 0:ol.key)==="columnPath"))||!((z=u==null?void 0:u.itemData)!=null&&z.find(ol=>(ol==null?void 0:ol.key)==="pageColumn")))return;let d=(xe=(U=(ne=(le=(B=($=u==null?void 0:u.itemData)==null?void 0:$.find(ol=>(ol==null?void 0:ol.key)==="pageColumn"))==null?void 0:B.contents)==null?void 0:le.split("["))==null?void 0:ne[1])==null?void 0:U.split("]"))==null?void 0:xe[0];((Ke=(Re=(Pe=(_e=u==null?void 0:u.itemData)==null?void 0:_e.find(ol=>(ol==null?void 0:ol.key)==="pageColumn"))==null?void 0:Pe.contents)==null?void 0:Re.split("["))==null?void 0:Ke[0])+((Ka=(ma=V.value)==null?void 0:ma.find(ol=>(ol==null?void 0:ol.key)===d))==null?void 0:Ka.value),(sa=(Za=u==null?void 0:u.itemData)==null?void 0:Za.find(ol=>(ol==null?void 0:ol.key)==="pageGroup"))==null||sa.contents,Rt(compData,u.allMapContents)},{deep:!0});const nn=d=>{var N,z,$,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=($=Ee.value)==null?void 0:$.map(U=>U==null?void 0:U.prop);return(B=ne==null?void 0:ne.map(U=>d==null?void 0:d[U]))==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("|")},Xn=d=>{var ne,U,xe,_e,Pe;const h=(U=(ne=Ee.value)==null?void 0:ne.filter(Re=>Re==null?void 0:Re.required))==null?void 0:U.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,$=new Map;(xe=Ce.value)==null||xe.forEach(Re=>{const Ke=nn(Re);z.set(Ke,Re)}),d==null||d.forEach(Re=>{const Ke=nn(Re);$.set(Ke,Re)});const B=d==null?void 0:d.filter(Re=>z.has(nn(Re))),le=(_e=Ce.value)==null?void 0:_e.filter(Re=>$.has(nn(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=nn(Re);return!z.has(Ke)})},Tn=a.ref(""),Zn=a.ref(null),xn=async()=>{var d,h,N,z,$,B;try{const le=await O.quoteApi({related:[{menus:ba.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=$l.value)==null?void 0:d.plat_id)});if(((h=le==null?void 0:le.data)==null?void 0:h.code)===200){Zn.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)),U=An(ne,($=le==null?void 0:le.data)==null?void 0:$.result),xe=U==null?void 0:U.flatMap(_e=>_e==null?void 0:_e.quote);(xe==null?void 0:xe.length)>0&&(Tn.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 An(d,h){var N;return(N=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some($=>$.words&&Array.isArray($.words)?$.words.some(B=>d.includes(B)):!1):!1))==null?void 0:N.map(z=>{const $={...z};return $.struct&&Array.isArray($.struct)&&($.struct=$.struct.filter(B=>B.words&&Array.isArray(B.words)?B.words.some(le=>d.includes(le)):!1)),$})}const Pn=async(d,h)=>{var N,z,$,B,le,ne,U,xe,_e,Pe;try{Zn.value||await xn();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=Xn(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=Mn(0,Ka)}catch{}ma.push(ce),Ka.unshift(ce)});let Za=await O.quoteApi({platId:parseInt((N=$l==null?void 0:$l.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}))})),ol=[{tableName:($=u==null?void 0:u.related)==null?void 0:$.find(Ja=>Ja==null?void 0:Ja.includes("content")),tableContents:ma==null?void 0:ma.map((Ja,ce)=>({id:ce,...Ja}))}];ol=[...ol,...sa];const ka=await O.pageBatchAddApi({platId:parseInt((B=$l.value)==null?void 0:B.plat_id),changeContents:ol});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 kt(Ja),((ne=i==null?void 0:i.existRows)==null?void 0:ne.length)>0?al.ElMessage.success("部分数据导入成功"):al.ElMessage.success("数据导入成功");let ce=[];ol==null||ol.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 O.pageBatchAddApi({platId:parseInt((U=$l==null?void 0:$l.value)==null?void 0:U.plat_id),changeContents:[{tableName:"log",tableContents:ce}]})}else{let Ja=[];ol==null||ol.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 O.pageBatchAddApi({platId:parseInt((xe=$l==null?void 0:$l.value)==null?void 0:xe.plat_id),changeContents:[{tableName:"log",tableContents:Ja}]}),al.ElMessage.error("数据导入响应失败")}}catch(Re){throw al.ElMessage.error("数据导入处理失败"),await O.pageBatchAddApi({platId:parseInt((_e=$l==null?void 0:$l.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)}},en=async d=>{var B,le,ne,U,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=(U=(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:U.menuId,$=N==null?void 0:N.find(Re=>(Re==null?void 0:Re.prop)===(d==null?void 0:d.key));if(z){let Re=await mt($==null?void 0:$.optionUrl,z),Ke,ma=j.value,Ka=(Pe=(_e=(xe=De.value)==null?void 0:xe.find(Za=>{var sa;return(sa=$==null?void 0:$.optionUrl)==null?void 0:sa.menuId}))==null?void 0:_e.selectValue)==null?void 0:Pe[0];if(Re==null||Re.forEach(Za=>{var sa,ol,ka,Ja,ce,Ta,ca,Ba,Aa,T;if(z){let G=(ol=(sa=De.value)==null?void 0:sa.find(na=>{var ge,ta;return((ge=$==null?void 0:$.optionUrl)==null?void 0:ge.menuId)===((ta=na==null?void 0:na.optionUrl)==null?void 0:ta.menuId)}))==null?void 0:ol.prop,Me=(Ja=(ka=N==null?void 0:N.find(na=>(na==null?void 0:na.prop)===G))==null?void 0:ka.selectValue)==null?void 0:Ja[0];G!=null&&G.includes("·")&&(G=(ce=G==null?void 0:G.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[G]===Me&&(Ke=Za)}}),Ke){let Za=N;Za=Za==null?void 0:Za.map(sa=>{var ol,ka,Ja,ce,Ta,ca;return z&&(Ke!=null&&Ke[sa==null?void 0:sa.prop])&&ze.value==="新增"&&(sa==null?void 0:sa.prop)!==($==null?void 0:$.prop)?sa.value=(Ke==null?void 0:Ke[sa==null?void 0:sa.prop])||(Ke==null?void 0:Ke[(ce=(Ja=(ka=(ol=sa==null?void 0:sa.optionUrl)==null?void 0:ol.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},zn=async(d,h)=>{var N,z,$,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")||($=d==null?void 0:d.toString())!=null&&$.includes(".cyd")){const ne=await al.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),U=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});let xe=URL.createObjectURL(U);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(()=>{Pr.value=!1;let d=rn.value;rn.value=d+1});const wn=a.reactive({prop:"",order:null}),Kr=a.computed(()=>{const d=(Ce.value??[]).slice(),h=wn.prop||Z.prop,N=wn.order||Z.order;if(!h||!N)return d;const z=N==="ascending",$=le=>{if(h)return le&&Object.prototype.hasOwnProperty.call(le,h)?le[h]:h.includes(".")?h.split(".").reduce((ne,U)=>ne==null?ne:ne[U],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 U=ne.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(U))return{ok:!1,value:NaN};const xe=Number(U);return{ok:Number.isFinite(xe),value:xe}};return d.sort((le,ne)=>{const U=$(le),xe=$(ne);if(U==null&&xe==null)return 0;if(U==null)return z?-1:1;if(xe==null)return z?1:-1;const _e=B(U),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]),G=Number(ca[4]);return[Aa,T,G].some(Me=>Number.isNaN(Me))?{ok:!1,value:NaN}:T>=60||G>=60?{ok:!1,value:NaN}:{ok:!0,value:Ba*(Aa*3600+T*60+G)}},Ke=Re(U),ma=Re(xe);if(Ke.ok&&ma.ok)return z?Ke.value-ma.value:ma.value-Ke.value;const Ka=new Date(U).getTime(),Za=new Date(xe).getTime(),sa=!Number.isNaN(Ka),ol=!Number.isNaN(Za);if(sa&&ol)return z?Ka-Za:Za-Ka;const ka=String(U),Ja=String(xe);return z?ka.localeCompare(Ja):Ja.localeCompare(ka)})}),Fn=a.computed(()=>{var N;const d=(te.currentPage-1)*te.pageSize,h=d+te.pageSize;return Te("getSliceContLength",te),(N=Kr.value)==null?void 0:N.slice(d,h)}),mn=d=>{te.currentPage=d,Te("getSliceContLength",te)},Ao=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)},Li=({prop:d,order:h})=>{wn.prop=d,wn.order=h,te.currentPage=1};function Ri(d){const h=[];function N(z,$=""){z.forEach(B=>{B.children&&B.children.length>0?N(B.children,B.prop):h.push(B.prop)})}return N(d),h}const _n=(d,h)=>{var ne,U,xe,_e;let N=(U=(ne=Ee.value)==null?void 0:ne.map(Pe=>Pe==null?void 0:Pe.prop))==null?void 0:U.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=Ri((_e=Ee.value)==null?void 0:_e.filter(Pe=>(Pe==null?void 0:Pe.prop)!=="operate")));let $;if($=(d==null?void 0:d.length)===(N==null?void 0:N.length)?d:d.slice(0,N==null?void 0:N.length),!($==null?void 0:$.every(Pe=>N==null?void 0:N.find(Re=>Pe===Re))))return al.ElMessage.error("导入的数据表头不匹配");Pn($,h)},$i=(d,h)=>{var $;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),(($=Ee.value)==null?void 0:$.length)===0||_n(N,z)},Vi=(d,h,N,z)=>{const $=[],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);$.push(Pe)}$.unshift(B);const ne=oa.utils.aoa_to_sheet($),U=oa.utils.book_new();oa.utils.book_append_sheet(U,ne,z),oa.writeFileSync(U,`${h}.xlsx`),or.value=[]},Ko=async(d,h,N,z=!1,$)=>{try{Qe.setRefreshCurStructure(!1)}catch(B){al.ElMessage.error(B)}},Go=async(d,h)=>{await Ko()},Yo=async(d,h)=>{await Ko("columnType",h,d,!1)},Fr=async({newRow:d,targetIndex:h})=>{var $;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=Mn(z,Ce.value||[]))}catch{}Ce.value.splice(z,0,d),await a.nextTick(),y.value.has(d.id)||y.value.set(d.id,O.cloneDeep(d)),Ce.value=($=Ce.value)==null?void 0:$.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),Il.value=!0},Pi=(d,h,N,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach($=>{const B=$==null?void 0:$.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 U=1,xe="";for(;xe=`${le}(${U})`,!!ne.has(xe);)U++;d[B]=xe}),d),zo=async()=>{var $,B,le,ne,U,xe,_e,Pe;const d=Array.from(c.value||[]);if(d.length===0)return;const h=(B=oa.getColumnChild(($=O.cloneDeep(Ee.value))==null?void 0:$.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,ol=(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(`${ol}不能为空`);return}}}const N=[],z=[];if(d.forEach(Re=>{var ol;const Ke=(ol=Ce.value)==null?void 0:ol.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;Pi(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=Mn(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 G=T==null?void 0:T.prop;if(G){const Me=Ke[G];Me!==void 0?ca[G]=Me??"":ca[G]=""}}),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 O.pageBatchUpdateApi({platId:parseInt((U=$l.value)==null?void 0:U.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"})),Il.value=!1,Qe.setRefreshCurStructure(!0)},Fi=()=>{var h;const d=Array.from(c.value||[]);if(d.length===0){Il.value=!1;return}d.forEach(N=>{var B,le;const z=y.value.get(N),$=(B=Ce.value)==null?void 0:B.find(ne=>(ne==null?void 0:ne.id)===N);if($!=null&&$._isTemp){Ce.value=Ce.value.filter(ne=>(ne==null?void 0:ne.id)!==$.id);return}if(z){const ne=(le=Ce.value)==null?void 0:le.findIndex(U=>(U==null?void 0:U.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"})),Il.value=!1},Mo=a.ref(!1),Jo=async d=>{var $,B,le,ne;if(!Il.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const h=d==null?void 0:d.target;if(((B=($=h==null?void 0:h.tagName)==null?void 0:$.toLowerCase)==null?void 0:B.call($))==="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 Xo())},Xo=async()=>{if(P.value){Il.value=!1;return}if(!Mo.value){Mo.value=!0;try{Array.from(c.value||[]).length>0?await zo():Il.value=!1}finally{Promise.resolve().then(()=>{Mo.value=!1})}}},ji=d=>{or.value=d},Hi=(d,h)=>{jl.value===h?$r.value=!1:$r.value=!0,jl.value=h==null?void 0:h.changeProp},Zo=d=>{if(!d)return;const{item:h,value:N}=d,z=De.value.find($=>$.prop==h.prop);z&&z.contents.push({label:N,value:N})},Cn=a.computed(()=>{var N,z,$;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"),($=(z=Ee.value)==null?void 0:z.filter(B=>(B==null?void 0:B.label)!=="操作"))==null?void 0:$.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}))}),En=async(d,h,N)=>{const z=O.cloneDeep(Ee.value);await a.nextTick();const $=z==null?void 0:z.map(le=>(N==null?void 0:N.label)===(le==null?void 0:le.label)?{...le,[h]:d}:le),B=jn($);await ds(u.index,B),Ee.value=$,Q.value=B},jn=d=>{var $;const h=d||[];return(($=oa.getAllLeafNodes(h)||[])==null?void 0:$.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 Ff(le,B)})},Ui=async d=>{let h=await Hf(u.index);h||(h=jn(d)),Q.value=h},Qo=async(d,h)=>{const N=O.cloneDeep(Ee.value),z=le=>Array.isArray(le)?le.map(ne=>{const U=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=U?!1:!!d,U&&(xe.children=z(xe.children)),xe}):le,$=z(N),B=jn($);await ds(u.index,B),Ee.value=$,Q.value=B,await a.nextTick(),rn.value=rn.value+1},ei=()=>{Xe.value=!1},ai=d=>{Te("clickTrigger",d)},Hn=async d=>{var B,le,ne,U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol,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(F(h)){const ce={files:[ke(h)],data:{}};Se(ce);return}He.value=[{url:h,extension:ye(h)}],wa.value=!0,ie.value={data:O.cloneDeep(N)},je.value=!0;return}let $=[];if((le=h==null?void 0:h.toString())!=null&&le.includes(".stl")||(ne=h==null?void 0:h.toString())!=null&&ne.includes(".STL")||(U=h==null?void 0:h.toString())!=null&&U.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(F(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:"))$.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,G)=>{var Me;G===((Me=h==null?void 0:h.split("/"))==null?void 0:Me.length)-1&&(Aa=T)}),(ol=Ta.blob)!=null&&ol.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)}),F(ca)){const Ba=H(ca),Aa=ke(h);Se({files:[Aa],data:{trackFileType:Ba}});return}re.value=[{name:ca,blobUrl:Ta}],Ha.value=!0}($==null?void 0:$.length)>0&&o.setBlobUrls($)},Qn=d=>{var z,$,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=($=d==null?void 0:d.url)==null?void 0:$.split("."))==null?void 0:B.length)-1];return(d==null?void 0:d.name)+"."+h},li=d=>{if(!d)return"未知文件";try{const z=Qn(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}`},ri=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)},eo=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},qi=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;if(/^\d+$/.test(h)){const $=Number(h);return Number.isFinite($)?h.length<=10?$*1e3:$:null}const N=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(N);return Number.isFinite(z)?z:null},ni=(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])),$=N.some(le=>eo(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:eo(le==null?void 0:le.sort),createTimeMs:qi(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($){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 U=le.createTimeMs,xe=ne.createTimeMs;return U!==null&&xe!==null&&U!==xe?xe-U:U!==null&&xe===null?-1:U===null&&xe!==null?1:le.prevIdx!==ne.prevIdx?le.prevIdx-ne.prevIdx:le.idx-ne.idx}),B.map(le=>le.r)},Mn=(d,h=[])=>{const N=h==null?void 0:h[d-1],z=h==null?void 0:h[d],$=eo(N==null?void 0:N.sort),B=eo(z==null?void 0:z.sort);let le=null;$!==null&&B!==null&&B>$?le=($+B)/2:$!==null?le=$+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)},Wi=async d=>{let h=null,N=null;if(d!=null&&d.id){const $=Po.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const B=await O.platformDownloadFile(d);h=URL.createObjectURL(B.data),N=li(d)}finally{$.close()}}else if(d!=null&&d.downloadUrl){const $=await po(),B=Po.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:$,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 $=await O.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($.data),N=Qn(d)):h=d==null?void 0:d.url}if(F(h)){const $={row:`${h}`,suffix:ye(N)};Hn($);return}const z={name:N,blobUrl:h};re.value=[z],Ha.value=!0},uo=async d=>{let h=null,N=null;if(d!=null&&d.id){const B=await O.platformDownloadFile(d);h=URL.createObjectURL(B.data),N=li(d)}else if(d!=null&&d.downloadUrl){const B=await po(),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 O.platformDownloadFile({url:d==null?void 0:d.url});h=URL.createObjectURL(B.data),N=Qn(d)}const z={name:N,blobUrl:h},$=document.createElement("a");$.href=z.blobUrl,$.download=z.name,$.style.display="none",document.body.appendChild($),$.click(),setTimeout(()=>{document.body.removeChild($)},100)},Ki=(d,h)=>{var z;if(Object.values(h).length===0)return;let N=d;return Object.values(h).find($=>{var B,le,ne;return((B=$==null?void 0:$.toString())==null?void 0:B.includes(".txt"))||((le=$==null?void 0:$.toString())==null?void 0:le.includes(".cpt"))||((ne=$==null?void 0:$.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},Io=()=>{K.value=!0},Gi=a.ref([]),Yi=async(d,h,N=!1)=>{var le,ne,U,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 $=(ne=u==null?void 0:u.related)==null?void 0:ne.find(_e=>_e==null?void 0:_e.includes("content_")),B=await O.getFillFind({platId:parseInt((U=$l==null?void 0:$l.value)==null?void 0:U.plat_id),tableName:$,params:z});B=(xe=B==null?void 0:B.data)==null?void 0:xe.result,Ce.value=B,Qe.setTableLoading(!1)},oi=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 zo();const h=d==null?void 0:d.id;h!=null&&(c.value.clear(),y.value.clear(),y.value.has(h)||y.value.set(h,O.cloneDeep(d)),Ce.value=(z=Ce.value)==null?void 0:z.map($=>({...$,tableEditType:($==null?void 0:$.id)===h?"edit":"text"})),c.value.add(h),Il.value=!0)},Un=async(d,h,N,z)=>{z!=null&&z.isExistChild&&Te("clickMainKey",d,N,Ee.value)},Sn=()=>{Ha.value=!1},ii=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($=>{var B;return $.id===((B=u.changedContent)==null?void 0:B.id)&&($={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete $.newId),$});const h=(z=u.itemData)==null?void 0:z.map($=>(($==null?void 0:$.key)==="tableContents"&&($.contents=d),$));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 Oo=()=>{},Ji=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]),$=(z==null?void 0:z.compData)||[],B=$==null?void 0:$.find(ne=>{const U=ne==null?void 0:ne.key;return U==="formContent"||U==="tableContents"});return B==null?void 0:B.contents},po=async()=>{const h=al.Local.get("access-token");return h?`Bearer ${h}`:""},Xi=async(d,{token:h,inputData:N}={})=>await al.axios.post(d,N,{headers:{Authorization:h}}).catch($=>(la.setImportLoading(!1),Promise.reject($))),Zi=d=>{var z;let h={};const N=[];return h.form={},(z=O.cloneDeep(d))==null||z.forEach(($,B)=>{var le,ne,U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol,ka;if(($==null?void 0:$.comp)==="Table"){(ne=(le=$==null?void 0:$.compData)==null?void 0:le.find(ca=>(ca==null?void 0:ca.key)==="header"))==null||ne.contents;let Ja=(_e=(xe=(U=$==null?void 0:$.compData)==null?void 0:U.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=$==null?void 0:$.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=$==null?void 0:$.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 G={};((Me=ce[T])==null?void 0:Me.label)!=="操作"&&(G[ce[T].label]=Aa,Ba.push(G))}),Ta.push(Ba)}),h[$.name]=Ta}else{const Ja=(ka=(ol=$.compData)==null?void 0:ol.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},Qi=d=>{const h=[],N=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(N):h.push(z)};return N(d),h},et=async(d,h,N)=>{var ce,Ta,ca,Ba,Aa,T,G,Me,na,ge,ta,Ia,pl,ll,ml,yl,Pl;la.setImportLoading(!0),Qe.setFreshContent(!1);let z=await Ji().catch(el=>(la.setImportLoading(!1),Promise.reject(el)));z=z==null?void 0:z.filter(el=>{var kl;return((kl=el==null?void 0:el.find(Ya=>Ya==null?void 0:Ya.id))==null?void 0:kl.id)===(h==null?void 0:h.id)});let $=oa.getEqualChild([(ce=Ee.value)==null?void 0:ce.filter(el=>(el==null?void 0:el.label)!=="操作")]);const B=(ca=(Ta=oa.tableToForm(z,$))==null?void 0:Ta[0])==null?void 0:ca.find(el=>{const kl=el==null?void 0:el.key;return kl==="Interface"||kl==="方法体"}),le=B==null?void 0:B.value;if(!le){console.log("未搜索到isMain, 缺少算法执行接口"),la.setImportLoading(!1);return}const ne=Ee.value?oa.getEqualChild([Ee.value]):[],U=ne.find(el=>{const kl=el==null?void 0:el.prop;return kl==="Input1"||kl==="输入数据.输入1"||kl==="样本输入数据"}),xe=U==null?void 0:U.prop;let _e=h==null?void 0:h[xe];const Pe=await po().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(vl=>(vl==null?void 0:vl.isMainKey)===!0))==null?void 0:T.prop;ma=h==null?void 0:h[el];let kl=Ke==null?void 0:Ke.split(k),Ya=[];kl==null||kl.forEach((vl,Sl)=>{(kl==null?void 0:kl.length)-1===Sl&&Ya.push(ma),Ya.push(vl)}),Ya=Ya==null?void 0:Ya[0];let hl=await oa.getItemData(Ya,sessionStorage.getItem("systemKey"),""),nl=hl==null?void 0:hl.filter(vl=>(vl==null?void 0:vl.name)===xe);nl=nl==null?void 0:nl.map(vl=>{var Sl;return vl.compData=(Sl=vl==null?void 0:vl.compData)==null?void 0:Sl.map(Al=>{var kr;return(Al==null?void 0:Al.key)==="tableContents"&&(Al.contents=(kr=Al==null?void 0:Al.contents)==null?void 0:kr.filter(Rl=>(Rl==null?void 0:Rl[1])===(h==null?void 0:h[xe]))),Al}),vl}),(!nl||(nl==null?void 0:nl.length)===0)&&(nl=hl,nl=nl==null?void 0:nl.map(vl=>{var Sl;return vl.compData=(Sl=vl==null?void 0:vl.compData)==null?void 0:Sl.map(Al=>{var kr;return(Al==null?void 0:Al.key)==="tableContents"&&(Al.contents=(kr=Al==null?void 0:Al.contents)==null?void 0:kr.filter(Rl=>{var wl,Ml;return(Rl==null?void 0:Rl[1])===(h==null?void 0:h[(Ml=(wl=Ee==null?void 0:Ee.value)==null?void 0:wl[0])==null?void 0:Ml.prop])})),Al}),vl})),_e=Zi(nl)}const Ka=await Xi(le,{token:Pe,inputData:_e}).catch(el=>(la.setImportLoading(!1),Promise.reject(el))),Za=(G=Ka==null?void 0:Ka.data)==null?void 0:G.data,sa=ne.find(el=>(el==null?void 0:el.prop)==="Output1"),ol=sa==null?void 0:sa.prop;let ka=[],Ja=[];if(Za&&((Me=Object.values(Za))==null?void 0:Me.length)>0){let el=[];const kl=new FormData,Ya=(na=Qi(Za))==null?void 0:na.map(async nl=>{var vl,Sl;if(!Array.isArray(nl)&&(nl!=null&&nl.includes("http"))){let Al=await al.axios.get(nl,{responseType:"blob"}),kr=(Sl=nl==null?void 0:nl.split("/"))==null?void 0:Sl[((vl=nl==null?void 0:nl.split("/"))==null?void 0:vl.length)-1];kl.append("files",Al.data,kr)}else el.push(nl)});if(await Promise.all(Ya),!oa.isFormDataEmpty(kl)){let nl=await Cu.uploadAmountApi(kl),vl=(ta=(ge=nl==null?void 0:nl.data)==null?void 0:ge.result)==null?void 0:ta.map(Sl=>{var Al,kr,Rl,wl,Ml,Yl;return{name:(Yl=(Ml=(wl=(Al=Sl==null?void 0:Sl.url)==null?void 0:Al.split("/"))==null?void 0:wl[((Rl=(kr=Sl==null?void 0:Sl.url)==null?void 0:kr.split("/"))==null?void 0:Rl.length)-1])==null?void 0:Ml.split("."))==null?void 0:Yl[0],url:Sl==null?void 0:Sl.url}});el=[...el,...vl]}let hl={};for(let nl in h)nl!=="id"&&(hl[nl]=h[nl]);hl[ol]=el,Ja.push({id:h==null?void 0:h.id,value:{tableData:hl}})}if((Ja==null?void 0:Ja.length)>0){const el=Ja.map(Ya=>{const hl={id:Ya.id,...Ya.value.tableData};return delete hl._isOCRRow,delete hl._ocrTableId,delete hl._isTemp,delete hl.tableEditType,delete hl.index,hl}),kl=[{tableName:(Ia=u==null?void 0:u.related)==null?void 0:Ia.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:el}];await O.pageBatchUpdateApi({platId:parseInt((pl=$l.value)==null?void 0:pl.plat_id),changeContents:kl})}if((ka==null?void 0:ka.length)>0)try{await O.pageBatchAddApi({platId:parseInt((ll=$l.value)==null?void 0:ll.plat_id),changeContents:[{tableName:(ml=u==null?void 0:u.related)==null?void 0:ml.find(el=>el==null?void 0:el.includes("content")),tableContents:ka.map(el=>{var Ya,hl,nl;const kl={id:((Ya=el==null?void 0:el.key)==null?void 0:Ya.id)??((hl=el==null?void 0:el.key)==null?void 0:hl.rowId)??(el==null?void 0:el.id),...((nl=el==null?void 0:el.value)==null?void 0:nl.tableData)||{}};return delete kl._isOCRRow,delete kl._ocrTableId,delete kl._isTemp,delete kl.tableEditType,delete kl.index,Object.keys(kl).forEach(vl=>{vl==="证书附件"&&Array.isArray(kl[vl])&&(kl[vl]=JSON.stringify(kl[vl]))}),kl})}]})}catch(el){al.ElMessage.error(((Pl=(yl=el==null?void 0:el.response)==null?void 0:yl.data)==null?void 0:Pl.message)||(el==null?void 0:el.message)||"保存失败"),Qe.setTableLoading(!1);return}$o(!0),la.setImportLoading(!1),Qe.setFreshContent(!0)},ti=(d,h)=>(d=d==null?void 0:d.map(N=>{var z,$;return N!=null&&N.children&&((z=N.children)!=null&&z.find(B=>B.id===(h==null?void 0:h.id))?N.children=($=N.children)==null?void 0:$.filter(B=>(B==null?void 0:B.id)!==(h==null?void 0:h.id)):N.children=ti(N.children,h)),N}),d),fo=a.ref(!1),at=()=>{fo.value=!0},lt=async d=>{var N,z,$,B;fo.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),Bl(ne,"uploading"),Ol(ne,0);try{const U=new FormData;U.append("file",le,ne.name);const xe=await O.platformUploadFile(U);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:(($=ne.uploadResult)==null?void 0:$.url)||"",id:(B=ne.uploadResult)==null?void 0:B.id}),Bl(ne,"uploaded"),Ol(ne,100)}catch(U){console.error("文件上传失败:",U),al.ElMessage.error(`文件 ${ne.name} 上传失败,请重试`),Bl(ne,"pending"),Ol(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,$,B,le,ne,U;try{if(d==="cancel"&&(i.show=!1),d==="replace"&&((h=i==null?void 0:i.existRows)==null?void 0:h.length)>0){await O.pageBatchDeleteApi({platId:parseInt((N=$l.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_")))||(($=u==null?void 0:u.related)==null?void 0:$.find(_e=>_e==null?void 0:_e.includes("content"))),tableContents:i==null?void 0:i.existRows}]});const xe=await O.pageBatchAddApi({platId:parseInt((B=$l.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=Mn(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 kt({buttonName:"新增",columns:Ee.value,fixContent:(U=i==null?void 0:i.tableData)==null?void 0:U.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)},q=async d=>{var h,N,z,$;if(d){if(!Dr.validateFileSize(d.raw)){al.ElMessage.warning(`文件大小不能超过 ${Vr.value.maxSize}MB`);const B=qa.value.findIndex(le=>le.uid===d.uid);B>-1&&qa.value.splice(B,1),J();return}if(!Dr.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}Bl(d,"uploading"),Ol(d,0);try{const B=new FormData;B.append("file",d.raw,d.name);const le=await O.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:($=d.uploadResult)==null?void 0:$.id}),Bl(d,"uploaded"),Ol(d,100)}catch(B){console.error("文件上传失败:",B),al.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Bl(d,"pending"),Ol(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($=>{const B=ul($);return B!=="uploaded"&&B!=="completed"&&B!=="failed"}).length>0){al.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}Va.value=!0,Y.value=0;let h=null;try{qa.value.forEach(sa=>{Bl(sa,"processing")});const $=Math.floor(Math.random()*10)+90;h=setInterval(()=>{Y.value<$?Y.value+=1:clearInterval(h)},50);const B=qa.value.map(sa=>{var ol,ka,Ja;return{name:((ol=sa.uploadResult)==null?void 0:ol.name)||sa.name,url:((ka=sa.uploadResult)==null?void 0:ka.url)||"",fileName:((Ja=sa.uploadResult)==null?void 0:Ja.fileName)||sa.name}}),le=Dr.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)||""})),U=await Dr.recognize(ne,le);if(console.log(U,"ocrResult"),clearInterval(h),h=null,(U==null?void 0:U.code)===500||(U==null?void 0:U.type)==="error"||!(U!=null&&U.result)){Y.value=0,qa.value.forEach(sa=>{Bl(sa,"failed"),Ol(sa,0)}),al.ElMessage.error((U==null?void 0:U.message)||"OCR识别失败,请重试"),Va.value=!1;return}Y.value=$;const xe=Array.isArray(U==null?void 0:U.result)?U.result:[];if(xe.length===0){Y.value=0,qa.value.forEach(sa=>{Bl(sa,"failed"),Ol(sa,0)}),al.ElMessage.warning("OCR识别未返回有效数据"),Va.value=!1;return}const _e=new Set,Pe=[];xe.forEach((sa,ol)=>{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:ol,_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,G=[],Me="";Ba&&typeof Ba=="object"&&!Array.isArray(Ba)?(Aa=(Ba==null?void 0:Ba.value)??"",T=(Ba==null?void 0:Ba.score)??0,G=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:G,imageName:Me,imageUrl:Me&&ce.get(Me)||"",images:Ja}}),Pe.push(Ta)});const Re=[],Ke=new Set;Pe.forEach(sa=>{sa&&_e.forEach(ol=>{const ka=sa[`${ol}_accuracy`];(typeof ka=="number"?ka>0:ka!=null&&String(ka).trim()!==""&&String(ka)!=="0")&&Ke.add(ol)})}),_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=>{Bl(sa,"completed")}),Y.value=100,Be.value=Re,Ge.value=Pe,bl.value=B,Ga.value=U;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($){console.error("OCR处理失败:",$),h&&(clearInterval(h),h=null),al.ElMessage.error(((z=(N=$==null?void 0:$.response)==null?void 0:N.data)==null?void 0:z.message)||"OCR识别失败,请重试"),Va.value=!1,Y.value=0,qa.value.forEach(B=>{Bl(B,"pending"),Ol(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,ol;const d=bl.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"),$=new Map,B=new Map,le=(ol=z==null?void 0:z.find(ka=>(ka==null?void 0:ka.label)==="证书附件"))==null?void 0:ol.prop;z==null||z.forEach(ka=>{ka!=null&&ka.label&&(ka!=null&&ka.prop)&&($.set(ka.label,ka.prop),B.set(ka.prop,ka.label))});const ne=Date.now(),U=ka=>String(ne*1e3+ka),xe=[],_e=[],Pe=ka=>{const Ja=Di&&Di[ka]||[ka];for(const ce of Ja){const Ta=$.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(G=>({url:(G==null?void 0:G.url)||"",name:(G==null?void 0:G.name)||"",fileName:(G==null?void 0:G.name)||""})).filter(G=>G.url)};if(N.forEach((ka,Ja)=>{var pl;const ce={id:U(Ja),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[ll,ml]of $.entries())Object.prototype.hasOwnProperty.call(ka,ll)&&(ce[ml]=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"),G={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(ml=>{const yl=Oe(Re?ml==null?void 0:ml[Re]:""),Pl=Oe(Ke?ml==null?void 0:ml[Ke]:""),el=Oe(ma?ml==null?void 0:ml[ma]:"");return yl&&Pl&&el&&yl===na&&Pl===ge&&el===ta});if(ll){Ka.push({idx:Ja,ocrRow:ce,versionItem:G,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(ml=>{const yl=Oe(Re?ml==null?void 0:ml[Re]:"");return yl&&yl===na});if(ll.length>0){Ka.push({idx:Ja,ocrRow:ce,versionItem:G,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(yl=>eo(yl==null?void 0:yl.sort)).filter(yl=>yl!==null),ml=ll.length>0?Math.max(...ll):((pl=Ce.value)==null?void 0:pl.length)??0;ce.sort=String(Number((ml+1).toFixed(6)))}}catch{}Ea(u==null?void 0:u.index,ce.id,G),Ka.push({idx:Ja,ocrRow:ce,versionItem:G,ocrNo:na,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ka||[]).length>0){nr.value=(Ka||[]).map(ka=>({...ka,selectedTargetId:(ka==null?void 0:ka.selectedTargetId)||""})),Fl.value=!0,yr.value=_e,Nl.value=xe,tr.value=h,Nr.value=d,Ll.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)}%`,sl=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,$,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){El.value=h._ocrImages.map(U=>({name:(U==null?void 0:U.name)||"",url:(U==null?void 0:U.url)||""})).filter(U=>U.name||U.url);const le=h.__ocrFieldMeta||{},ne=(z=Object.values(le))==null?void 0:z.find(U=>U==null?void 0:U.imageName);Vl.value=(ne==null?void 0:ne.imageName)||((B=($=El.value)==null?void 0:$[0])==null?void 0:B.name)||"",Da.value=El.value.length>0}else El.value=[],Da.value=!1,Vl.value=""},cl=()=>{Ra.value=!1,qa.value=[],xa.value=null,pe.value=1,Ca.value.clear(),qe.value.clear(),Y.value=0,Da.value=!1},_l=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",ul=d=>{const h=d.uid||d.name;return Ca.value.get(h)||"pending"},Tl=d=>{const h=d.uid||d.name;return qe.value.get(h)||0},Ol=(d,h)=>{const N=d.uid||d.name;qe.value.set(N,Math.min(100,Math.max(0,h)))},Xl=d=>{const h=ul(d),N=100.53;if(h==="completed"||h==="uploaded")return`${N} ${N}`;if(h==="failed")return`${N} ${N}`;if(h==="uploading"){const z=Tl(d);return`${N*(z/100)} ${N}`}else if(h==="processing")return`${N*.5} ${N}`;return`0 ${N}`},Bl=(d,h)=>{const N=d.uid||d.name;Ca.value.set(N,h),(h==="completed"||h==="uploaded")&&Ol(d,100)},ql=()=>{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 $ of z){const B={name:$.name,raw:$,uid:Date.now()+Math.random()};qa.value.push(B),await q(B)}N.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},jr=()=>{pe.value>1&&pe.value--},wr=()=>{pe.value===1?qa.value.length>0&&!Va.value&&ve():pe.value===2&&(we(),pe.value=3)},Yr=async d=>{await pn(d==null?void 0:d.row)},on=async({row:d,prop:h})=>{!d||!h||await pn(d,h)},pn=async(d,h)=>{var $,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 U=Ma(ne,N);Array.isArray(U)&&U.length>0&&(Hl(u==null?void 0:u.index,N,U),z=U)}}if(!z||z.length===0){const le=($=oa.getAllLeafNodes(Ee.value)||[])==null?void 0:$.filter(U=>(U==null?void 0:U.type)!=="operate"&&(U==null?void 0:U.label)!=="操作"&&(U==null?void 0:U.prop)!=="operate"),ne=h||((B=le==null?void 0:le.find(U=>(U==null?void 0:U.label)==="证书附件"))==null?void 0:B.prop);if(ne&&d[ne]){const U=d[ne];let xe=[],_e="",Pe=!1;if(typeof U=="string")try{const Re=JSON.parse(U);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=U,Pe=String(U).toLowerCase().endsWith(".pdf"),xe=[{name:U,url:U}]}else Array.isArray(U)&&(xe=U.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},ho=d=>{qa.value=qa.value.filter((h,N)=>N!==d)},In=async(d,h,N)=>{var z,$,B,le,ne,U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol,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),j.value=[],d==="删除")un.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ba,Aa,T,G;(Ba=Ce.value)!=null&&Ba.find(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id))?Ce.value=(Aa=O.cloneDeep(Ce.value))==null?void 0:Aa.filter(Me=>(Me==null?void 0:Me.id)!==(h==null?void 0:h.id)):Ce.value=ti(O.cloneDeep(Ce.value),h);try{h!=null&&h.id&&((G=(T=da.value)==null?void 0:T.has)!=null&&G.call(T,h==null?void 0:h.id))&&da.value.delete(h.id)}catch{}hf(Gr.value,vn.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=or.value)==null?void 0:z.length)===0)return al.ElMessage.warning("请先勾选操作的数据");un.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var T,G,Me,na,ge;const Ba=(T=or.value)==null?void 0:T.map(ta=>ta.id);Ce.value=(G=O.cloneDeep(Ce.value))==null?void 0:G.filter(ta=>!(Ba!=null&&Ba.includes(ta.id))),Qe.setTableLoading(u==null?void 0:u.index),Te("change",{content:Ce.value,fixContent:or.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=(or.value||[]).map(Ia=>{const pl={...Ia};return delete pl._isOCRRow,delete pl._ocrTableId,delete pl._isTemp,delete pl.tableEditType,delete pl.index,pl});await O.pageBatchDeleteApi({platId:parseInt((Me=$l.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="复制新增",O.cloneDeep(h);const Ba=($=Ee.value)==null?void 0:$.find(Aa=>Aa==null?void 0:Aa.isMainKey);Ba||((B=Ee.value)==null||B[0]),sr.value=h,$o(!0)}else if(d==="新增")ze.value="新增",Lo(""),Xe.value=!0;else if(d==="编辑")ze.value="编辑",Lo(h),Xe.value=!0;else if(d==="查看")ze.value="查看",Lo(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==="切换视图")cu();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${((U=$l.value)==null?void 0:U.account)||((xe=$l.value)==null?void 0:xe.账号)}`)&&(Aa=[...Aa,...ge]);let T=[];for(let ge in Ba)ge!=null&&ge.includes(`updateLoading${((_e=$l.value)==null?void 0:_e.account)||((Pe=$l.value)==null?void 0:Pe.账号)}`)&&(T=[...T,...ge]);let G=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);G=[...O.cloneDeep(G),...Me],(G==null?void 0:G.length)>0&&(G!=null&&G.every(ge=>ge!==null&&ge))&&await Sr.batchDeleteInsofDataApi({ids:G});const na=(Re=Ne.value)==null?void 0:Re.find(ge=>(ge==null?void 0:ge.label)==="新建");await eu(!1,na)}else if(d==="修改模板"){let Ba=O.cloneDeep(ba).value;Qe.setRouteToChildPath(Ba),la.setActiveMenuPath(Ba+k)}else if(d==="执行")et(d,h);else if(d==="导出paraform"){const Ba=Po.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Aa=["推力","真空","压力","温度","流量"],T=wl=>{var Ml,Yl,zl;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((zl=(Yl=(Ml=wl==null?void 0:wl._custom)==null?void 0:Ml.value)==null?void 0:Yl.value)==null?void 0:zl.value)||"":""},G=Array.isArray(vr.value)?vr.value:[],Me=T(G.find(wl=>(wl==null?void 0:wl.condition)==="child")),na=String(Me||"").slice(0,8),ge=wl=>{if(wl==null)return"";const Ml=String(wl).trim();if(!Ml)return"";if(/^\d{8}$/.test(Ml))return Ml;const Yl=Ml.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Yl){const Gl=Yl[1],Ql=Yl[2].padStart(2,"0"),Wl=Yl[3].padStart(2,"0");return`${Gl}${Ql}${Wl}`}const zl=Ml.replace(/\D/g,"");return zl.length>=8?zl.slice(0,8):""},ta=async wl=>{var Ml,Yl;if(!wl)return"";try{const zl=await Wr("试验任务/任务管理",!1),Gl=(fr,ir=[])=>{if(!Array.isArray(fr))return ir;for(const cr of fr)(cr==null?void 0:cr.comp)==="Table"&&(cr!=null&&cr.name)&&ir.push(cr),Array.isArray(cr==null?void 0:cr.children)&&Gl(cr.children,ir),Array.isArray(cr==null?void 0:cr.tab)&&Gl(cr.tab,ir),Array.isArray(cr==null?void 0:cr.choice)&&Gl(cr.choice,ir);return ir},Wl=Gl(zl||[]).find(fr=>(fr==null?void 0:fr.name)==="任务列表"),pr=((Yl=(Ml=Wl==null?void 0:Wl.compData)==null?void 0:Ml.find(fr=>(fr==null?void 0:fr.key)==="tableContents"))==null?void 0:Yl.contents)||[];if(!Array.isArray(pr)||pr.length===0)return"";const Ur=pr.find(fr=>String((fr==null?void 0:fr["试验代号(名称)"])||"").slice(0,8)===wl);return ge(Ur==null?void 0:Ur.计划试验时间)}catch(zl){return console.warn("获取任务列表计划试验时间失败:",zl),""}},Ia=(ba.value||"").replace(/\/+$/,""),pl=Me?`${Ia}/${Me}`:Ia,ll=await Wr(pl||ba.value,!1),ml=String(va.value||"").trim(),yl=wl=>String(wl||"").trim(),Pl=(wl,Ml=[],Yl="")=>{if(!Array.isArray(wl))return Ml;for(const zl of wl){const Gl=yl((zl==null?void 0:zl.choiceName)||(zl==null?void 0:zl.name0)||Yl);(zl==null?void 0:zl.comp)==="Table"&&(zl==null?void 0:zl.name)&&Aa.includes(zl.name)&&(!ml||Gl===ml)&&Ml.push(zl),Array.isArray(zl==null?void 0:zl.children)&&Pl(zl.children,Ml,Gl),Array.isArray(zl==null?void 0:zl.tab)&&Pl(zl.tab,Ml,Gl),Array.isArray(zl==null?void 0:zl.choice)&&Pl(zl.choice,Ml,Gl)}return Ml},el=Pl(ll||[]),kl=new Map;for(const wl of el)wl!=null&&wl.name&&!kl.has(wl.name)&&kl.set(wl.name,wl);const Ya=Aa.map(wl=>kl.get(wl)).filter(Boolean);if(!Ya||Ya.length===0)return al.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const hl=wl=>{const Ml=new Map,Yl=(zl,Gl=[])=>{if(Array.isArray(zl))for(const Ql of zl){const Wl=((Ql==null?void 0:Ql.label)??"").toString().trim(),pr=Wl?[...Gl,Wl]:[...Gl];if(Array.isArray(Ql==null?void 0:Ql.children)&&Ql.children.length>0)Yl(Ql.children,pr);else{const fr=((Ql==null?void 0:Ql.prop)??"").toString();if(!fr)continue;const ir=Wl||fr,cr=(pr.length>0?[...Gl,ir]:[ir]).join(".");Ml.set(fr,cr)}}};return Yl(wl,[]),Ml},nl=(wl,Ml)=>{const Yl=hl(wl||[]),Gl=(oa.getAllLeafNodes(wl||[])||[]).filter(Wl=>(Wl==null?void 0:Wl.prop)&&(Wl==null?void 0:Wl.type)!=="operate"&&(Wl==null?void 0:Wl.label)!=="操作"&&(Wl==null?void 0:Wl.prop)!=="operate"),Ql=Array.isArray(Ml)?Ml:[];return Ql.length===0?[]:Ql.map(Wl=>{const pr={};return Gl.forEach(Ur=>{const fr=String(Ur.prop),ir=Yl.get(fr)||String(Ur.label||Ur.prop);pr[ir]=(Wl==null?void 0:Wl[fr])??""}),pr})},vl=Ya.map(wl=>{var Ql,Wl;const Ml=(wl==null?void 0:wl.compData)||[];let Yl=(Ql=Ml==null?void 0:Ml.find(pr=>(pr==null?void 0:pr.key)==="header"))==null?void 0:Ql.contents;Array.isArray(Yl==null?void 0:Yl[0])&&(Yl=Yl[0]);const zl=((Wl=Ml==null?void 0:Ml.find(pr=>(pr==null?void 0:pr.key)==="tableContents"))==null?void 0:Wl.contents)||[];if(!Array.isArray(Yl)||Yl.length===0||!Array.isArray(zl)||zl.length===0)return null;const Gl=nl(Yl||[],zl||[]);return!Array.isArray(Gl)||Gl.length===0?null:{类型:wl==null?void 0:wl.name,数据:Gl}}).filter(Boolean);if(!vl||vl.length===0)return al.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const Sl=await ta(na),Al={试验代号:na,试验日期:Sl,ParaForm:vl},kr=await po().catch(()=>""),Rl=await O.exportParaformApi(Al,kr);if(((Ke=Rl==null?void 0:Rl.data)==null?void 0:Ke.code)===200&&((Ka=(ma=Rl==null?void 0:Rl.data)==null?void 0:ma.result)!=null&&Ka.Excel文件)){const wl=Rl.data.result.Excel文件,Ml=await O.platformDownloadFile({url:wl}),Yl=new Blob([Ml.data],{type:"application/vnd.ms-excel"}),zl=URL.createObjectURL(Yl),Gl=$n.dayjs().format("YYYYMMDD"),Wl=`${(na||"UNKNOWN").trim()||"UNKNOWN"}_${Gl}_paraform.xls`,pr=document.createElement("a");pr.href=zl,pr.download=Wl,pr.style.display="none",document.body.appendChild(pr),pr.click(),setTimeout(()=>{document.body.removeChild(pr),URL.revokeObjectURL(zl)},100);const Ur=Array.isArray((sa=(Za=Rl==null?void 0:Rl.data)==null?void 0:Za.result)==null?void 0:sa.warnings)?Rl.data.result.warnings:[];if(Ur.length>0){const fr=Ur.map((ir,cr)=>`${cr+1}. ${(ir==null?void 0:ir.field)||"未知字段"}:${(ir==null?void 0:ir.message)||""}`).join(`
|
|
24
|
+
`);al.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
+
${fr}`,duration:5e3,showClose:!0})}else al.ElMessage.success("导出成功")}else al.ElMessage.error(((ol=Rl==null?void 0:Rl.data)==null?void 0:ol.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=or.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:or.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 G=(u==null?void 0:u.compName)||"表格信息";Vi(Aa,G,Ba,G)}else if(d==="OCR识别")Ra.value=!0,qa.value=[],pe.value=1,Ca.value.clear(),qe.value.clear(),Y.value=0;else if(d==="迁移")t.selectRow=h,t.show=!0;else if(d==="生成方法"){let Ba=await Mf(h),Aa;h!==""?Aa=[h]:Aa=O.cloneDeep(Ce.value),Aa=Aa==null?void 0:Aa.map(G=>(G.输出值=Ba,G));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=O.cloneDeep(Ce.value);const T={fixContent:await ht(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)}}},Zc=async(d,h)=>{var N,z,$,B,le,ne,U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol,ka,Ja,ce;try{let Ta,ca;const Ba=(N=se.value[ba.value+k])==null?void 0:N.filter(Ia=>{var pl;return((pl=Ia==null?void 0:Ia.key)==null?void 0:pl.type)==="structureMethod"}),Aa=(z=se.value[ba.value+k])==null?void 0:z.filter(Ia=>{var pl;return((pl=Ia==null?void 0:Ia.key)==null?void 0:pl.type)==="structure"}),T=Ba==null?void 0:Ba.find(Ia=>{var pl,ll;return((ll=(pl=Ia==null?void 0:Ia.value)==null?void 0:pl.pageData)==null?void 0:ll.method)==="保存"});if(!T)return;const G=(ne=(le=se.value[(B=($=T==null?void 0:T.value)==null?void 0:$.pageData)==null?void 0:B.path])==null?void 0:le.filter(Ia=>{var pl;return((pl=Ia==null?void 0:Ia.key)==null?void 0:pl.type)==="data"}))==null?void 0:ne.find(Ia=>{var pl,ll,ml,yl;return((ll=(pl=Ia==null?void 0:Ia.value)==null?void 0:pl.tableData)==null?void 0:ll.算法名称)===((yl=(ml=T==null?void 0:T.value)==null?void 0:ml.pageData)==null?void 0:yl.method)});if(!G)return;const Me={buttonName:(xe=(U=T==null?void 0:T.value)==null?void 0:U.pageData)==null?void 0:xe.method,api:(Pe=(_e=G==null?void 0:G.value)==null?void 0:_e.tableData)==null?void 0:Pe.算法体,content:Aa==null?void 0:Aa.map(Ia=>{var pl;return(pl=Ia==null?void 0:Ia.value)==null?void 0:pl.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 pl;return(Ia==null?void 0:Ia.key)==="formContent"?{...Ia,contents:(pl=Ia==null?void 0:Ia.contents)==null?void 0:pl.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=(ol=ta==null?void 0:ta.data)==null?void 0:ol.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)}},Nt=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Qc=async(d,h,N)=>{var U,xe;let z=d==null?void 0:d[h==null?void 0:h.prop],$=1,B,le;const ne=O.cloneDeep(ba).value+k+z;if(ne){Nt.value="",B=(U=se.value[ne])==null?void 0:U.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 Zc(le,h==null?void 0:h.prop);if(Nt.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}(${$})`);)$++;z=`${_e}(${$})`}return z},eu=async(d,h,N)=>{var B,le,ne,U;let z,$;if(await Qc(N==null?void 0:N.data,N==null?void 0:N.firstCol),z=O.cloneDeep(ba).value+k,$=O.cloneDeep(z)+`loading${((B=$l.value)==null?void 0:B.account)||((le=$l.value)==null?void 0:le.账号)}`,h){const xe=(U=(ne=se.value[$])==null?void 0:ne.filter(_e=>{var Pe;return((Pe=_e==null?void 0:_e.key)==null?void 0:Pe.parentTable)===""}))==null?void 0:U.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,$,null,null,null),Qe.setRouteToChildPath(O.cloneDeep(ba).value),la.setActiveMenuPath($)}else Qe.setRouteToChildPath(O.cloneDeep(ba).value),la.setActiveMenuPath($)},au=()=>{je.value=!1,He.value=[],wa.value=!1},Lo=d=>{var B,le,ne,U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol,ka,Ja,ce,Ta,ca,Ba,Aa;const h=[];de.value=O.cloneDeep(Ee.value),(le=oa.getColumnChild((B=O.cloneDeep(Ee.value))==null?void 0:B.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||le.forEach((T,G)=>{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"+G,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)??G,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"+G,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)??G,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=O.cloneDeep(Ee.value))==null?void 0:ne.filter(T=>(T==null?void 0:T.label)!=="操作"));fa.value&&((U=fa.value)==null?void 0:U.length)>0&&(fa.value=(xe=O.cloneDeep(fa).value)==null?void 0:xe.map(T=>{var Me;let G=(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 G&&(T.value=d[G]),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=[],$=((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($=$a.analyzeSplitToContent($,","),($==null?void 0:$.length)>0&&(z=$.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=(ol=De.value)==null?void 0:ol.map((Ia,pl)=>Ia))}let G=(ka=De.value)==null?void 0:ka.filter(ta=>ta==null?void 0:ta.mainKey),Me;G==null||G.forEach(ta=>{var pl;if(Me!==void 0)return;let Ia=ta==null?void 0:ta.menus;((pl=G==null?void 0:G.filter(ll=>ll==null?void 0:ll.mainKey))==null?void 0:pl.length)>1&&(Me=Ia,ta==null||ta.groups)});let na=[],ge=new Map;if(G==null||G.forEach(ta=>{var Ia,pl,ll,ml,yl,Pl,el,kl,Ya,hl,nl,vl,Sl;if((Ia=ta==null?void 0:ta.prop)!=null&&Ia.includes(".")){let Al=[];ge.get(((ll=(pl=ta==null?void 0:ta.prop)==null?void 0:pl.split("."))==null?void 0:ll[0])+(ta!=null&&ta.isMainPath?0:1)+((ml=ta==null?void 0:ta.groups)==null?void 0:ml[0]))&&(Al=ge.get(((Pl=(yl=ta==null?void 0:ta.prop)==null?void 0:yl.split("."))==null?void 0:Pl[0])+(ta!=null&&ta.isMainPath?0:1)+((el=ta==null?void 0:ta.groups)==null?void 0:el[0]))),Al.push(ta),ge.set(((Ya=(kl=ta==null?void 0:ta.prop)==null?void 0:kl.split("."))==null?void 0:Ya[0])+(ta!=null&&ta.isMainPath?0:1)+((hl=ta==null?void 0:ta.groups)==null?void 0:hl[0]),Al)}else{let Al=[];ge.get("normal"+(ta!=null&&ta.isMainPath?0:1)+((nl=ta==null?void 0:ta.groups)==null?void 0:nl[0]))&&(Al=ge.get("normal"+(ta!=null&&ta.isMainPath?0:1)+((vl=ta==null?void 0:ta.groups)==null?void 0:vl[0]))),Al.push(ta),ge.set("normal"+(ta!=null&&ta.isMainPath?0:1)+((Sl=ta==null?void 0:ta.groups)==null?void 0:Sl[0]),Al)}}),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 pl=Ia==null?void 0:Ia.map(hl=>hl==null?void 0:hl.prop),ll=Ia==null?void 0:Ia.map(hl=>hl==null?void 0:hl.label),ml=Ia==null?void 0:Ia.map(hl=>hl==null?void 0:hl.value),yl=(Ja=O.cloneDeep(Ia))==null?void 0:Ja[0],Pl=(ce=De.value)==null?void 0:ce.findIndex(hl=>(hl==null?void 0:hl.prop)===(yl==null?void 0:yl.prop)),el=(Ta=De.value)==null?void 0:Ta.slice(0,Pl),kl=(Ba=De.value)==null?void 0:Ba.slice(Pl,(ca=De.value)==null?void 0:ca.length);yl.label=ll==null?void 0:ll.join("·"),yl.value=ml==null?void 0:ml.join(" "),yl.value.trim()===""&&(yl.value=""),yl.prop=pl==null?void 0:pl.join("·");let Ya=Ia==null?void 0:Ia.map(hl=>{var nl;return(nl=hl==null?void 0:hl.words)==null?void 0:nl.join(".")});yl.relatedWords=Ya,yl.usingType="parent",kl.unshift(yl),De.value=[...el,...kl],De.value=(Aa=De.value)==null?void 0:Aa.map(hl=>(pl!=null&&pl.find(nl=>nl===(hl==null?void 0:hl.prop))&&(hl.isFormColHidden=!0,hl.relatedWords=Ya),hl))}}}}},lu=()=>{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:$}=N;if(z===$)return;const B=Cn.value.splice(z,1)[0];Cn.value.splice($,0,B),Ee.value=(le=Ee.value)==null?void 0:le.slice().sort((ne,U)=>{if(ne.label==="操作")return 1;if(U.label==="操作")return-1;const xe=Cn.value.findIndex(Pe=>Pe.label===ne.label),_e=Cn.value.findIndex(Pe=>Pe.label===U.label);return xe-_e})}})};a.onMounted(()=>{za.value=window.innerWidth-240*2,window.addEventListener("keydown",Jo)});const ru=()=>{a.nextTick(()=>{lu()})},rt=(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($=>{var B,le;if(($==null?void 0:$.id)===Fa.value){let ne={};for(let U in $){let xe=(B=h==null?void 0:h.find(_e=>(_e==null?void 0:_e.prop)===U))==null?void 0:B.label;xe?ne[U]=(le=sr.value)==null?void 0:le[xe]:ne[U]=$[U]??""}$=Object.assign(ne,sr.value),N=$}else{let ne=rt($,h);$=ne==null?void 0:ne.contents,N=ne==null?void 0:ne.currentSelectContents}return $}),{contents:d,currentSelectContents:N}},Tt=(d,h)=>{let N,z;return d!=null&&d.find($=>($==null?void 0:$.id)===Fa.value)?N=d==null?void 0:d.map($=>{var B,le,ne;if(($==null?void 0:$.id)===Fa.value){let U={};for(let _e in $){let Pe=(B=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===_e))==null?void 0:B.label;Pe?U[_e]=((le=sr.value)==null?void 0:le[Pe])??"":U[_e]=$[_e]??""}let xe=sr.value;for(let _e in U)(ne=sr.value)!=null&&ne[_e]||(xe[_e]=(U==null?void 0:U[_e])??"");$=xe,z=$}return $}):N=d==null?void 0:d.map($=>{var B,le,ne,U;if(($==null?void 0:$.id)===Fa.value){let xe={};for(let _e in $){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=sr.value)==null?void 0:le[Pe]:xe[_e]=$[_e]??""}$=Object.assign(xe,sr.value),z=$}else $=(ne=rt($,h))==null?void 0:ne.contents,z=(U=rt($,h))==null?void 0:U.currentSelectContents;return $}),{newContents:N,currentSelectContents:z}},At=(d,h,N)=>{var z,$;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&&(($=d.children)==null?void 0:$.length)>0&&(d.children=d.children.map(At)),d},zt=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(...zt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const $={...z};return delete $.children,$}):[]},si=["Pacific6000数据采集装置.通道号","通道号"],Ro=d=>{if(!d)return"";const h=si.map(N=>d==null?void 0:d[N]).find(N=>N!=null&&String(N).trim()!=="");return h==null?"":String(h).trim()},nt=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(vr.value)?vr.value:[],$=N(z.find(Ke=>(Ke==null?void 0:Ke.condition)==="child")),B=(ba.value||"").replace(/\/+$/,""),le=$?`${B}/${$}`:B,ne=await Wr(le||ba.value,!1),U=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"&&(!U||sa===U)&&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=Ro(sa);return!!ka&&ka===d})})}catch{return(Ce.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const $=Ro(z);return!!$&&$===d})}},$o=async(d=!0,h,N)=>{var xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol,ka,Ja,ce,Ta,ca,Ba,Aa,T,G,Me,na,ge,ta,Ia,pl,ll,ml,yl,Pl,el,kl;if(sr.value){const Ya=(_e=oa.getColumnChild((xe=O.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 vl=Ya[nl],Sl=vl==null?void 0:vl.prop,Al=(vl==null?void 0:vl.label)??Sl,kr=(Pe=sr.value)==null?void 0:Pe[Sl];if(kr===""||kr===null||kr===void 0||Array.isArray(kr)&&kr.length===0){al.ElMessage.error(`${Al}不能为空`);return}}const hl=Ro(sr.value);if(hl&&await nt(hl,Fa.value||void 0)){al.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=oa.getColumnChild((Re=O.cloneDeep(Ee.value))==null?void 0:Re.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")),$,B=O.cloneDeep(Ce.value);if(!sr.value){Xe.value=!1;return}if(Fa.value===""){me.value++;let Ya;Ya={id:me.value.toString()};try{Ya.sort=Mn(0,Ce.value||[])}catch{}Ya!=null&&Ya.children&&(Ya={...Ya,children:(Ke=Ya.children)==null?void 0:Ke.map(nl=>At(nl,h,N))});const hl=Object.assign(sr.value,Ya);B.unshift(hl),$=hl}else B=(ma=Tt(B,z))==null?void 0:ma.newContents,$=(Ka=Tt(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((vl,Sl)=>{var kr;let Al={};if(Array.isArray(vl)){let Rl=[];vl==null||vl.filter(wl=>!(wl!=null&&wl.id)).forEach((wl,Ml)=>{var Yl,zl,Gl,Ql,Wl,pr,Ur;if((zl=(Yl=Or.value)==null?void 0:Yl[Ml])!=null&&zl.prop&&!Array.isArray(wl)){let fr={};fr[Or.value[Ml].column]=wl,Wa!=null&&Wa.value&&((Gl=Wa==null?void 0:Wa.value)==null?void 0:Gl.length)>0&&((Ql=Wa==null?void 0:Wa.value)!=null&&Ql.find(ir=>JSON.stringify(ir==null?void 0:ir[0])===JSON.stringify(fr)))&&(Rl=(Wl=Wa==null?void 0:Wa.value)==null?void 0:Wl.find(ir=>JSON.stringify(ir==null?void 0:ir[0])===JSON.stringify(fr))),Rl&&Rl.length>0?Al[Or.value[Ml].prop]=Rl!=null&&Rl.find(ir=>{var cr;return((cr=Object.keys(ir))==null?void 0:cr[0])===Or.value[Ml].column})?(pr=Rl==null?void 0:Rl.find(ir=>{var cr;return((cr=Object.keys(ir))==null?void 0:cr[0])===Or.value[Ml].column}))==null?void 0:pr[Or.value[Ml].column]:wl:Al[Or.value[Ml].prop]=wl}else Array.isArray(wl)&&((Ur=Or.value[Ml])!=null&&Ur.prop?Al[Or.value[Ml].prop]=wl:Al.children=vt(wl,Or.value))})}else Al=vl;if(Array.isArray(vl)&&vl.some(Rl=>Rl==null?void 0:Rl.id)){const Rl=(kr=vl==null?void 0:vl.find(wl=>wl.id))==null?void 0:kr.id;Ya.push(Object.assign(Al,{id:ri(Rl)}))}else Al.id?Ya.push(Al):Ya.push(Object.assign(Al,{id:Sl.toString()}))});const hl=(Ce.value||[]).map(vl=>String(vl==null?void 0:vl.id)),nl=ni(Ya,hl);Ce.value=Lt(nl,le,Ee.value)}It(Ce.value),Gr.value=Ce.value;const ne=mf(Gr.value,vn.value,B);let U=[];if(P.value?(U=(ol=O.cloneDeep(P).value.singleContent)==null?void 0:ol.filter(Ya=>(Ya==null?void 0:Ya.id)!==($==null?void 0:$.id)),U.push($)):U=[$],Il.value){const Ya={content:ne,singleContent:((ka=le==null?void 0:le.contents)==null?void 0:ka.length)>0?U==null?void 0:U.flatMap(zt):U,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"&&($[Ya.prop]=$[Ya.prop]===""?"{}":typeof $[Ya.prop]!="string"?JSON.stringify($[Ya.prop]):$[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,vl)=>[nl.value,{...nl,_idx:vl}])).values()).sort((nl,vl)=>nl._idx-vl._idx).map(({_idx:nl,...vl})=>vl),Ya=(T=Ya==null?void 0:Ya[(Ya==null?void 0:Ya.length)-1])==null?void 0:T.value;const hl={fixContent:[$],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,sr.value=void 0,Te("change",hl)}if((na=(Me=(G=De.value)==null?void 0:G[0])==null?void 0:Me.optionUrl)!=null&&na.menuId){Xe.value=!1;let Ya=(ge=u.itemData)==null?void 0:ge.filter(hl=>(hl==null?void 0:hl.key)==="filterAllType");if((Ya==null?void 0:Ya.length)>0){let hl=Ya==null?void 0:Ya.map(Sl=>Sl==null?void 0:Sl.value),nl=(pl=(Ia=(ta=hl.flat().find(Sl=>{var Al;return(Al=Sl==null?void 0:Sl.content)==null?void 0:Al.includes("@Num")}))==null?void 0:ta.content)==null?void 0:Ia.split(":"))==null?void 0:pl[1];((yl=(ml=(ll=hl.flat().find(Sl=>{var Al;return(Al=Sl==null?void 0:Sl.content)==null?void 0:Al.includes("@Type:")}))==null?void 0:ll.content)==null?void 0:ml.split(":"))==null?void 0:yl[1])!=="Manual"&&(nl=parseInt(nl),Ce.value=(kl=Ce.value)==null?void 0:kl.slice(((Pl=Ce.value)==null?void 0:Pl.length)-nl,(el=Ce.value)==null?void 0:el.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Jo),Ee.value=[],Ce.value=[],de.value=[],ya.value=[],fa.value=[],Ua.value=[],He.value=[],We.value=[],De.value=[],or.value=[],s.value=null,Tn.value=""});const ci=async(d,h,N)=>{var Ke,ma,Ka,Za,sa,ol,ka,Ja,ce,Ta,ca,Ba,Aa;jl.value=(N==null?void 0:N.prop)??(N==null?void 0:N.property);const z=O.cloneDeep(u.itemData),$=((Ke=z==null?void 0:z.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Ke.contents)??[];let B=$==null?void 0:$.find((T,G)=>{var Me,na,ge;return(T==null?void 0:T.prop)===jl.value||(T==null?void 0:T.label)===jl.value||(G==null?void 0:G.toString())===((ge=(na=(Me=jl.value)==null?void 0:Me.split("a"))==null?void 0:na[1])==null?void 0:ge.toString())});const le=oa.getColumnChild((ma=O.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)===jl.value||(T==null?void 0:T.label)===jl.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=(ol=De.value)==null?void 0:ol.find(G=>(G==null?void 0:G.prop)===jl.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 G,Me,na,ge,ta;(T==null?void 0:T.prop)===(B==null?void 0:B.prop)&&(T!=null&&T.endChildMenu)&&((G=B==null?void 0:B.prop)!=null&&G.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=jl.value,U=(Ja=Ce.value)==null?void 0:Ja.findIndex(T=>(T==null?void 0:T.id)===(h==null?void 0:h.id));U!==-1&&ne&&(Ce.value[U]={...Ce.value[U],[ne]:d});const xe=T=>{Array.isArray(T)&&T.forEach(G=>{Array.isArray(G==null?void 0:G.allSelectionContents)&&G.allSelectionContents.length>0&&(G.contactValue=Ce.value[U]??h),Array.isArray(G==null?void 0:G.children)&&G.children.length>0&&xe(G.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(G=>{var na,ge;if(((G==null?void 0:G.type)==="Select"||(G==null?void 0:G.formType)&&G.formType.toUpperCase()==="SELECT"||(G==null?void 0:G.columnType)&&G.columnType.toUpperCase()==="SELECT")&&Array.isArray(G==null?void 0:G.menus)&&G.menus.length>0&&G.menus[G.menus.length-1]===""&&(B!=null&&B.isMainPath)&&(B!=null&&B.mainKey)){const ta=(na=G==null?void 0:G.prop)!=null&&na.includes(".")?G.prop.split(".")[0]:null,Ia=(ge=B==null?void 0:B.prop)!=null&&ge.includes(".")?B.prop.split(".")[0]:null;(!ta||!Ia||ta===Ia)&&(G.endChildMenu=_e)}Array.isArray(G==null?void 0:G.children)&&G.children.length>0&&Pe(G.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(G=>{var Me,na,ge,ta;return(G==null?void 0:G[(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 is(B);if(T){const G={...h};le==null||le.forEach(Me=>{var na,ge,ta,Ia,pl,ll,ml,yl,Pl,el,kl,Ya,hl,nl,vl,Sl;(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=(pl=B==null?void 0:B.prop)==null?void 0:pl.split("."))==null?void 0:ll[0])?G[Me.prop]=T[(el=(ml=Me==null?void 0:Me.prop)==null?void 0:ml.split("."))==null?void 0:el[((Pl=(yl=Me==null?void 0:Me.prop)==null?void 0:yl.split("."))==null?void 0:Pl.length)-1]]??G[Me.prop]:G[Me.prop]=(T==null?void 0:T[Me.prop])??G[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)??[])?(kl=Me==null?void 0:Me.prop)!=null&&kl.includes(".")&&((hl=(Ya=Me==null?void 0:Me.prop)==null?void 0:Ya.split("."))==null?void 0:hl[0])!==((vl=(nl=B==null?void 0:B.prop)==null?void 0:nl.split("."))==null?void 0:vl[0])||(G[Me.prop]=(T==null?void 0:T[(Sl=Me==null?void 0:Me.words)==null?void 0:Sl.join(".")])??(T==null?void 0:T[Me.prop])??G[Me.prop]):(!(Me!=null&&Me.isMainPath)&&$a.same((B==null?void 0:B.bindMenus)??[],(Me==null?void 0:Me.bindMenus)??[]),G[Me.prop]=(T==null?void 0:T[Me.prop])??G[Me.prop]))}),Ce.value=(ca=O.cloneDeep(Ce.value))==null?void 0:ca.map(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id)?{...G,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,pl,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=(pl=na==null?void 0:na.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:ll[1])});let G=await mt(B),Me;if(G==null||G.forEach(na=>{var ge,ta,Ia,pl,ll,ml,yl,Pl,el,kl;T===((ta=(ge=B==null?void 0:B.optionUrl)==null?void 0:ge.groupSelect)==null?void 0:ta[1])&&((ll=(pl=(Ia=B==null?void 0:B.optionUrl)==null?void 0:Ia.groupSelect)==null?void 0:pl[1])!=null&&ll.includes("["))&&((kl=O.cloneDeep(na))==null?void 0:kl[(el=(Pl=(yl=(ml=B==null?void 0:B.optionUrl)==null?void 0:ml.groupSelect)==null?void 0:yl[1])==null?void 0:Pl.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,pl,ll,ml,yl,Pl,el,kl,Ya,hl;(Me!=null&&Me[ge==null?void 0:ge.label]||Me!=null&&Me[(ll=(pl=(Ia=(ta=ge==null?void 0:ge.optionUrl)==null?void 0:ta.groupSelect)==null?void 0:Ia[1])==null?void 0:pl.replaceAll("[",""))==null?void 0:ll.replaceAll("]","")])&&((Pl=(yl=(ml=ge==null?void 0:ge.optionUrl)==null?void 0:ml.groupSelect)==null?void 0:yl[1])!=null&&Pl.includes("["))&&(na[ge.prop]=(Me==null?void 0:Me[ge==null?void 0:ge.label])||(Me==null?void 0:Me[(hl=(Ya=(kl=(el=ge==null?void 0:ge.optionUrl)==null?void 0:el.groupSelect)==null?void 0:kl[1])==null?void 0:Ya.replaceAll("[",""))==null?void 0:hl.replaceAll("]","")]))}),Ce.value=(Aa=O.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)}}},nu=async d=>{var Ke,ma,Ka,Za,sa,ol,ka,Ja,ce,Ta,ca,Ba,Aa,T;if(!d)return;const h=O.cloneDeep(sr.value||{});sr.value=d;const N=Ro(h),z=Ro(sr.value);if(z&&z!==N&&await nt(z,Fa.value||void 0)){al.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),si.forEach(Me=>{if(Object.prototype.hasOwnProperty.call(sr.value||{},Me)||Object.prototype.hasOwnProperty.call(h||{},Me)){const na=(h==null?void 0:h[Me])??"";sr.value[Me]=na,d[Me]=na}}),De.value=(De.value||[]).map(Me=>{if(!(Me!=null&&Me.prop)||!si.includes(Me.prop))return Me;const na=(h==null?void 0:h[Me.prop])??"";return{...Me,value:na,selectValue:na===""?[]:[na]}});return}let $=O.cloneDeep(u.itemData);$==null||$.map(G=>{var Me,na,ge,ta;return(G==null?void 0:G.key)==="header"&&(Array.isArray((Me=G.contents)==null?void 0:Me[0])?G.contents=(ge=oa.getColumnChild((na=G.contents)==null?void 0:na[0]))==null?void 0:ge.map((Ia,pl)=>{var ll,ml,yl,Pl,el,kl;return((yl=(ml=(ll=De.value)==null?void 0:ll.find(Ya=>(Ya==null?void 0:Ya.prop)===(Ia==null?void 0:Ia.prop)))==null?void 0:ml.optionUrl)==null?void 0:yl.multiple)===!0&&!Array.isArray((Pl=Object.values(d))==null?void 0:Pl[pl])?Ia.value=[(el=Object.values(d))==null?void 0:el[pl]]:Ia.value=(kl=Object.values(d))==null?void 0:kl[pl],Ia}):G.contents=(ta=G.contents)==null?void 0:ta.map((Ia,pl)=>{var ll,ml,yl,Pl,el,kl;return((yl=(ml=(ll=De.value)==null?void 0:ll.find(Ya=>(Ya==null?void 0:Ya.prop)===(Ia==null?void 0:Ia.prop)))==null?void 0:ml.optionUrl)==null?void 0:yl.multiple)===!0&&!Array.isArray((Pl=Object.values(d))==null?void 0:Pl[pl])?Ia.value=[(el=Object.values(d))==null?void 0:el[pl]]:Ia.value=(kl=Object.values(d))==null?void 0:kl[pl],Ia})),G});let B=De.value,le=(Ke=$==null?void 0:$.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:Ke.contents;if(jl.value||(B=B==null?void 0:B.map(G=>{var Me;return G.value=G.value??((Me=le==null?void 0:le.find((na,ge)=>(na==null?void 0:na.prop)===(G==null?void 0:G.name)))==null?void 0:Me.value),G})),!$r.value)return;let ne=O.cloneDeep(jl.value);(ma=jl.value)!=null&&ma.includes("·")&&(jl.value=(Za=(Ka=jl.value)==null?void 0:Ka.split("·"))==null?void 0:Za[0]);let U=(ol=(sa=$==null?void 0:$.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:sa.contents)==null?void 0:ol.find((G,Me)=>(G==null?void 0:G.prop)===jl.value);(ka=De==null?void 0:De.value)==null||ka.forEach(G=>{var Me,na,ge,ta,Ia,pl,ll,ml,yl;(G==null?void 0:G.prop)===(U==null?void 0:U.prop)&&(G!=null&&G.endChildMenu)&&((Me=U==null?void 0:U.prop)!=null&&Me.includes(".")&&((ge=(na=U==null?void 0:U.prop)==null?void 0:na.split("."))==null?void 0:ge[0])!==((Ia=(ta=G==null?void 0:G.prop)==null?void 0:ta.split("."))==null?void 0:Ia[0])?U.endChildMenu=(ll=(pl=G==null?void 0:G.value)==null?void 0:pl.split(" "))==null?void 0:ll[0]:U.endChildMenu=(yl=(ml=G==null?void 0:G.endChildMenu)==null?void 0:ml.split(" "))==null?void 0:yl[0])});let xe=U!=null&&U.isMainPath&&(U!=null&&U.mainKey)?U==null?void 0:U.value:"",_e=B,Pe=be.value;if(Pe!=null&&Pe.find(G=>(U==null?void 0:U.prop)===(G==null?void 0:G.key))&&(Pe=Pe==null?void 0:Pe.filter(G=>(U==null?void 0:U.prop)!==(G==null?void 0:G.key))),Pe!=null&&Pe.find(G=>ne===(G==null?void 0:G.key))&&(Pe=Pe==null?void 0:Pe.filter(G=>ne!==(G==null?void 0:G.key))),(U==null?void 0:U.formType)==="Select"&&(_e=_e==null?void 0:_e.map(G=>{var Me,na,ge,ta,Ia,pl,ll,ml,yl,Pl,el,kl,Ya,hl,nl,vl;return(G==null?void 0:G.type)==="Select"&&(((Me=G==null?void 0:G.allSelectionContents)==null?void 0:Me.length)>0&&(G.contactValue=d),((U==null?void 0:U.prop)===(G==null?void 0:G.prop)||ne===(G==null?void 0:G.prop))&&U&&(Array.isArray(U.value)&&((na=U.value)==null?void 0:na.length)>0&&((ge=U.value)!=null&&ge.every(Sl=>typeof Sl=="string"))?(Pe.push({key:G==null?void 0:G.prop,value:[(Ia=U.value)==null?void 0:Ia[((ta=U.value)==null?void 0:ta.length)-1]]}),G.selectValue=(pl=Pe==null?void 0:Pe.find(Sl=>(Sl==null?void 0:Sl.key)===(G==null?void 0:G.prop)))==null?void 0:pl.value):Array.isArray(U.value)&&((ll=U.value)==null?void 0:ll.length)===0?(Pe=[],G.selectValue=[],d[G==null?void 0:G.prop]=""):Array.isArray(G.value)&&Pe.push({key:G==null?void 0:G.prop,value:[(ml=G.value)==null?void 0:ml[(G==null?void 0:G.length)-1]]})),((Pl=G==null?void 0:G.menus)==null?void 0:Pl[((yl=G==null?void 0:G.menus)==null?void 0:yl.length)-1])===""&&(U!=null&&U.isMainPath)&&(U!=null&&U.mainKey)&&((el=G==null?void 0:G.prop)!=null&&el.includes(".")&&((Ya=(kl=G==null?void 0:G.prop)==null?void 0:kl.split("."))==null?void 0:Ya[0])!==((nl=(hl=U==null?void 0:U.prop)==null?void 0:hl.split("."))==null?void 0:nl[0])||(G.endChildMenu=(vl=xe==null?void 0:xe.split(" "))==null?void 0:vl[0]))),G.value=(d==null?void 0:d[G==null?void 0:G.prop])??(G==null?void 0:G.value),G})),be.value=Pe,_e!=null&&_e.some(G=>(G==null?void 0:G.functionName)&&(G==null?void 0:G.functionName)!=="")){let G=await ht([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 G==null?void 0:G[0])Me!=null&&Me.find(ta=>ge===ta||(ge==null?void 0:ge.includes("."+ta)))&&na.push(((ce=G==null?void 0:G[0])==null?void 0:ce[ge])!=="");(G==null?void 0:G.length)>0&&na.every(ge=>ge)&&(_e=_e==null?void 0:_e.map(ge=>{var ta;return ge.value=((ta=G==null?void 0:G[0])==null?void 0:ta[ge==null?void 0:ge.prop])??ge.value,ge})),sr.value=G==null?void 0:G[0]}if(De.value=_e,U=Object.assign({},U??{},{relatedWords:(ca=(Ta=De==null?void 0:De.value)==null?void 0:Ta.find(G=>(G==null?void 0:G.prop)===(U==null?void 0:U.prop)))==null?void 0:ca.relatedWords}),(U==null?void 0:U.mainKey)&&(U!=null&&U.value)&&(U==null?void 0:U.value)!==""){let G=U!=null&&U.relatedContents&&((Ba=U==null?void 0:U.relatedContents)==null?void 0:Ba.length)>0?(Aa=U==null?void 0:U.relatedContents)==null?void 0:Aa.find(Me=>{var na,ge,ta,Ia;return(Me==null?void 0:Me[(Ia=(na=U==null?void 0:U.prop)==null?void 0:na.split("."))==null?void 0:Ia[((ta=(ge=U==null?void 0:U.prop)==null?void 0:ge.split("."))==null?void 0:ta.length)-1]])===(U==null?void 0:U.value)}):await is(U);if(G&&JSON.stringify(G)!=="{}"){let Me=_e;Me=Me==null?void 0:Me.map(ge=>{var ta,Ia,pl,ll,ml,yl,Pl,el,kl,Ya,hl,nl,vl,Sl,Al,kr,Rl,wl,Ml,Yl,zl;if((U==null?void 0:U.prop)===(ge==null?void 0:ge.prop))ge.value=(G==null?void 0:G[(ta=ge==null?void 0:ge.words)==null?void 0:ta.join(".")])??(G==null?void 0:G[ge==null?void 0:ge.prop])??G[(ml=(Ia=ge==null?void 0:ge.prop)==null?void 0:Ia.split("."))==null?void 0:ml[((ll=(pl=ge==null?void 0:ge.prop)==null?void 0:pl.split("."))==null?void 0:ll.length)-1]];else if(U!=null&&U.relatedContents&&((yl=U==null?void 0:U.relatedContents)==null?void 0:yl.length)>0)ge.value=(Pl=ge==null?void 0:ge.prop)!=null&&Pl.includes(".")&&((kl=(el=ge==null?void 0:ge.prop)==null?void 0:el.split("."))==null?void 0:kl[0])===((hl=(Ya=U==null?void 0:U.prop)==null?void 0:Ya.split("."))==null?void 0:hl[0])?G[(Al=(nl=ge==null?void 0:ge.prop)==null?void 0:nl.split("."))==null?void 0:Al[((Sl=(vl=ge==null?void 0:ge.prop)==null?void 0:vl.split("."))==null?void 0:Sl.length)-1]]:(G==null?void 0:G[ge==null?void 0:ge.prop])??(ge==null?void 0:ge.value);else if($a.same((U==null?void 0:U.menus)??[],(ge==null?void 0:ge.menus)??[])&&$a.same((U==null?void 0:U.groups)??[],(ge==null?void 0:ge.groups)??[])&&!$a.same((U==null?void 0:U.words)??[],(ge==null?void 0:ge.words)??[]))if((kr=ge==null?void 0:ge.prop)!=null&&kr.includes(".")&&((wl=(Rl=ge==null?void 0:ge.prop)==null?void 0:Rl.split("."))==null?void 0:wl[0])!==((Yl=(Ml=U==null?void 0:U.prop)==null?void 0:Ml.split("."))==null?void 0:Yl[0])){let Gl=Object.keys(G);Gl=Gl==null?void 0:Gl.find(Ql=>{var Wl;return Ql==null?void 0:Ql.includes("."+((Wl=ge==null?void 0:ge.words)==null?void 0:Wl.join(".")))}),ge.value=(G==null?void 0:G[Gl])??(G==null?void 0:G[ge==null?void 0:ge.prop])??ge.value}else{let Gl=Object.keys(G);Gl=Gl==null?void 0:Gl.find(Ql=>{var Wl;return Ql==null?void 0:Ql.includes("."+((Wl=ge==null?void 0:ge.words)==null?void 0:Wl.join(".")))}),ge.value=(G==null?void 0:G[(zl=ge==null?void 0:ge.words)==null?void 0:zl.join(".")])??(G==null?void 0:G[Gl])??(G==null?void 0:G[ge==null?void 0:ge.prop])??ge.value}else!(ge!=null&&ge.isMainPath)&&$a.same((U==null?void 0:U.bindMenus)??[],(ge==null?void 0:ge.bindMenus)??[]),ge.value=(G==null?void 0:G[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}),sr.value=na}}$r.value=!0,K.value=!1},ou=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",iu=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 U=ne==null?void 0:ne[N];h&&Ci.isString(U)&&(ne[N]=[U]),!h&&!Ci.isString(U)&&(ne[N]="")})},Mt=(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=>Mt(z,h))),d},ot=d=>{var N,z,$,B,le,ne;Lo("");const h=(N=De.value)==null?void 0:N.reduce((U,xe)=>(U[xe.name]=xe.value,U),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){sr.value=h,Fa.value="",me.value=($=Ce.value)==null?void 0:$.length,We.value=(B=Ne.value)==null?void 0:B.filter(xe=>(xe==null?void 0:xe.label)!=="新增");const U=(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 iu(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=U==null?void 0:U.map(xe=>Mt(xe,[{prop:"type",value:"edit"},{prop:"columnType",value:ou(xe==null?void 0:xe.formType)||(xe==null?void 0:xe.columnType)}])),d==="createClick"&&(ze.value="新增",$o(!0))}},vo={START:"开始时间",END:"结束时间",HOURS:"工时"},tu=(d,h)=>Number($n.dayjs(h).diff($n.dayjs(d),"day",!0).toFixed(1)),It=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:U}=le;z.set(U,ne)}),!z.has(vo.START)||!z.has(vo.END)||!z.has(vo.HOURS)?d:d==null?void 0:d.map(le=>{const ne=le==null?void 0:le[vo.START],U=le==null?void 0:le[vo.END],xe=tu(ne,U);return ne&&U&&(le[vo.HOURS]=`${xe}天`),le})},Ot=(d,h,N=0)=>{if(N>((h==null?void 0:h.length)??""))return d;const z=h==null?void 0:h[N],$=new Map;for(const le of d){const ne=le[z];$.has(ne)||$.set(ne,[]),$.get(ne)&&$.get(ne).push(le)}const B=[];for(const[le,ne]of $){const[U,...xe]=ne,_e={...U};N+1===((h==null?void 0:h.length)??"")?_e.children=ne==null?void 0:ne.map(Pe=>(Pe.level=O.cloneDeep(N)+1,Pe)).filter((Pe,Re)=>Re!==0):xe.length>0&&(_e.children=Ot(xe,h,N+1)),_e.level=N,B.push(_e)}return B},Lt=(d,h,N)=>{var $;if(!(h!=null&&h.contents)||(($=h==null?void 0:h.contents)==null?void 0:$.length)===0)return d;let z=[];return z=Ot(d,h==null?void 0:h.contents,0),z},Rt=async(d,h)=>{var Za,sa,ol,ka,Ja,ce,Ta,ca,Ba,Aa,T,G,Me,na,ge,ta,Ia,pl,ll,ml,yl,Pl,el,kl,Ya,hl,nl,vl,Sl,Al,kr,Rl,wl,Ml,Yl,zl,Gl,Ql,Wl,pr,Ur,fr,ir,cr,Vt,Pt,Ft;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 $=!0;if((ol=(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&&ol.content){let ha=(ce=(Ja=(ka=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:ka.value)==null?void 0:Ja.find(Dl=>(Dl==null?void 0:Dl.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(","),$=!!(ha!=null&&ha.find(Dl=>Dl==="操作"))}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"),U=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=[];Ul.value===""?Pe=N==null?void 0:N[0]:Pe=(N==null?void 0:N.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+Ul.value+")"))??(N==null?void 0:N.find(ha=>!(ha!=null&&ha.selectLabel)));let Re=[];Ul.value===""?Re=_e==null?void 0:_e[0]:Re=(_e==null?void 0:_e.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+Ul.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=[],Dl=Pe==null?void 0:Pe.contents;if(Array.isArray(Dl==null?void 0:Dl[0])&&((G=Dl==null?void 0:Dl[0])!=null&&G.every(il=>!(il!=null&&il.children)))&&(Dl=Dl==null?void 0:Dl[0]),Dl.some(il=>Array.isArray(il)&&(il==null?void 0:il.find(Ue=>Ue.children))))ha=(Me=oa.getGradeColumns(Dl,$))==null?void 0:Me[0],ha!=null&&ha.find(il=>(il==null?void 0:il.label)==="操作")||ha.push({label:"操作",prop:"operate",type:"operate"});else{let il=Dl.some(Ue=>Array.isArray(Ue))?Dl==null?void 0:Dl[0]:Dl;il!=null&&il.find(Ue=>(Ue==null?void 0:Ue.label)==="操作")||il.push({label:"操作",prop:"operate",type:"operate"}),il==null||il.forEach((Ue,Zl)=>{var Lr,Br,Rr,_r,lo,go,bo,gr,yn,qn,ko,ln,Wn,qt,Wt,Kt,Gt,Yt,Jt,Xt;if((Br=(Lr=ba.value)==null?void 0:Lr.split("/"))==null||Br.forEach(er=>{var hr,Dn,Zt;er!==""&&((Zt=(Dn=(hr=er==null?void 0:er.split(k+"updateLoading"))==null?void 0:hr[0])==null?void 0:Dn.split(k+"loading"))==null||Zt[0])}),Ue!=null&&Ue.methodContent){let er=(lo=(_r=(Rr=Ue==null?void 0:Ue.methodContent)==null?void 0:Rr.replace("@","%%#"))==null?void 0:_r.split("%%#"))==null?void 0:lo[1];if(er=er==null?void 0:er.slice(0,(er==null?void 0:er.length)-1),er=oa.contentTransArrayToAllNoExtra(er??"",","),(go=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("@Button")))!=null&&go.includes("Prop")&&((bo=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("Type")))!=null&&bo.includes("Manual"))){let hr=(yn=(gr=er==null?void 0:er.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:gr.split(":"))==null?void 0:yn[1];hr=((ln=(ko=(qn=hr==null?void 0:hr.replaceAll("[",""))==null?void 0:qn.replaceAll("]",""))==null?void 0:ko.split(","))==null?void 0:ln[1])??"算法执行",Ke.push(hr)}else if((Wn=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("@Button")))!=null&&Wn.includes("Row")&&((qt=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("Type")))!=null&&qt.includes("Manual"))){let hr=(Kt=(Wt=er==null?void 0:er.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:Wt.split(":"))==null?void 0:Kt[1];hr=((Jt=(Yt=(Gt=hr==null?void 0:hr.replaceAll("[",""))==null?void 0:Gt.replaceAll("]",""))==null?void 0:Yt.split(","))==null?void 0:Jt[1])??"算法执行",ma.push(hr)}}(Xt=fa.value)==null||Xt.find(er=>(er==null?void 0:er.prop)===(Ue==null?void 0:Ue.prop)),ha.push({label:(Ue==null?void 0:Ue.label)==="操作"?$?"操作":"":(Ue==null?void 0:Ue.label)??"",prop:(Ue==null?void 0:Ue.label)==="操作"?"operate":(Ue==null?void 0:Ue.prop)??"a"+Zl,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)??Zl,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)??Zl===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 tn=oa.getNewColumnChild(ha),jt=il=>Array.isArray(il)?il.map(Ue=>(Array.isArray(Ue==null?void 0:Ue.children)&&Ue.children.length>0?(Ue.sortable=!1,jt(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)):il;jt(tn),await Ui(tn),Vf(Q.value,tn),Ee.value=tn,ya.value=tn,r.value=(ge=Ee.value)==null?void 0:ge.map(il=>il==null?void 0:il.label);let sn=(Ia=(ta=oa.getAllLeafNodes(Ee.value))==null?void 0:ta.filter(il=>(il==null?void 0:il.type)!=="operate"))==null?void 0:Ia.map((il,Ue)=>({prop:(il==null?void 0:il.prop)??"a"+Ue,column:il.label}));Or.value=sn;let an=[];Ul.value===""?an=U==null?void 0:U[0]:an=(U==null?void 0:U.find(il=>(il==null?void 0:il.selectLabel)==="("+Ul.value+")"))??(U==null?void 0:U.find(il=>!(il!=null&&il.selectLabel)));let ao=Array.isArray((pl=an==null?void 0:an.contents)==null?void 0:pl[0])&&((ll=an==null?void 0:an.contents)!=null&&ll[0].every(il=>Array.isArray(il)))?(ml=an==null?void 0:an.contents)==null?void 0:ml[0]:an==null?void 0:an.contents;Re!=null&&Re.contents&&((yl=Re==null?void 0:Re.contents)==null?void 0:yl.length)!==0&&(ao=(Pl=O.cloneDeep(ao))==null?void 0:Pl.map((il,Ue)=>{if(!Array.isArray(il)){let Zl={};for(let Lr in il)Lr!=="id"&&Lr!=="index"&&(Zl[Lr]=il[Lr]);il=Object.values(Zl)}return il}));const ku=!!((el=Ee.value)!=null&&el.find(il=>il.prop==="index"));ao=lc(ao,Re==null?void 0:Re.contents,ku);const mo=[];ao==null||ao.forEach((il,Ue)=>{var Lr;let Zl={};if(Array.isArray(il)){let Br=[];il==null||il.filter(Rr=>!(Rr!=null&&Rr.id)).forEach((Rr,_r)=>{var lo,go,bo,gr,yn,qn;if((lo=sn==null?void 0:sn[_r])!=null&&lo.prop&&!Array.isArray(Rr)){let ko={};ko[sn[_r].column]=Rr,Wa!=null&&Wa.value&&((go=Wa==null?void 0:Wa.value)==null?void 0:go.length)>0&&((bo=Wa==null?void 0:Wa.value)!=null&&bo.find(ln=>JSON.stringify(ln==null?void 0:ln[0])===JSON.stringify(ko)))&&(Br=(gr=Wa==null?void 0:Wa.value)==null?void 0:gr.find(ln=>JSON.stringify(ln==null?void 0:ln[0])===JSON.stringify(ko))),Br&&Br.length>0?Zl[sn[_r].prop]=Br!=null&&Br.find(ln=>{var Wn;return((Wn=Object.keys(ln))==null?void 0:Wn[0])===sn[_r].column})?(yn=Br==null?void 0:Br.find(ln=>{var Wn;return((Wn=Object.keys(ln))==null?void 0:Wn[0])===sn[_r].column}))==null?void 0:yn[sn[_r].column]:Rr:Zl[sn[_r].prop]=Rr}else Array.isArray(Rr)&&((qn=sn[_r])!=null&&qn.prop?Zl[sn[_r].prop]=Rr:Zl.children=vt(Rr,sn))})}else Zl=il;if(Array.isArray(il)&&il.some(Br=>Br==null?void 0:Br.id)){const Br=(Lr=il==null?void 0:il.find(Rr=>Rr.id))==null?void 0:Lr.id;mo.push(Object.assign(Zl,{id:ri(Br)}))}else Zl.id?mo.push(Zl):mo.push(Object.assign(Zl,{id:Ue.toString()}))});try{const il=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ue=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Zl=il==null?void 0:il.tableId,Lr=il==null?void 0:il.compIndex;if(Zl&&Array.isArray(Ue)&&Ue.length>0&&String(Zl)===String(u==null?void 0:u.parentTableId)&&String(Lr)===String(u==null?void 0:u.index)){const Br=new Set(mo.map(_r=>String(_r==null?void 0:_r.id))),Rr=Ue.filter(_r=>!Br.has(String(_r)));if(Rr.length>0){const _r=il==null?void 0:il.pageKey,lo=_r!=null&&_r.startsWith("/")?_r.substring(1):_r;((h==null?void 0:h[_r])||(h==null?void 0:h[lo])||[]).filter(gr=>{var yn,qn;return((yn=gr==null?void 0:gr.key)==null?void 0:yn.type)==="data"&&String((qn=gr==null?void 0:gr.key)==null?void 0:qn.tableId)===String(Zl)&&Rr.includes(gr==null?void 0:gr.id)}).forEach(gr=>{var yn;Br.has(String(gr==null?void 0:gr.id))||(mo.push({id:gr==null?void 0:gr.id,...((yn=gr==null?void 0:gr.value)==null?void 0:yn.tableData)||{}}),Br.add(String(gr==null?void 0:gr.id)))})}}}catch{}let yo=null;try{const il=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,Ue=JSON.parse(sessionStorage.getItem(il)||"null");Array.isArray(Ue)&&Ue.length>0&&(yo=new Set(Ue.map(Zl=>String(Zl))))}catch{}const Ht=Array.from(((kl=da.value)==null?void 0:kl.values())||[]).filter(il=>!(!(il!=null&&il._isOCRRow&&(il==null?void 0:il._ocrTableId)===(u==null?void 0:u.index))||yo&&yo.has(String(il==null?void 0:il.id)))),xu=(Ce.value||[]).map(il=>String(il==null?void 0:il.id)),Ut=ni(mo,xu);if(Ce.value=Lt(Ut,z,Ee.value),Sa.value=Ut,(Ya=Sa.value)==null||Ya.forEach(il=>{var Ue;(Ue=da.value)==null||Ue.set(il.id,il)}),yo&&yo.size>0)try{const il=new Set(Array.from(yo.values()));Ce.value=(Ce.value||[]).filter(Ue=>!il.has(String(Ue==null?void 0:Ue.id))),Sa.value=(Sa.value||[]).filter(Ue=>!il.has(String(Ue==null?void 0:Ue.id))),il.forEach(Ue=>{var Zl,Lr;try{(Lr=(Zl=da.value)==null?void 0:Zl.delete)==null||Lr.call(Zl,Ue)}catch{}})}catch{}const ui=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),it=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(ui&&Array.isArray(it)&&it.length>0&&String(ui==null?void 0:ui.compIndex)===String(u==null?void 0:u.index)){const il=new Set((Sa.value||[]).map(Ue=>String(Ue==null?void 0:Ue.id)));it.filter(Ue=>!il.has(String(Ue)))}if(Ht.length>0){const il=new Set((Ce.value||[]).map(Zl=>Zl==null?void 0:Zl.id)),Ue=Ht.filter(Zl=>!il.has(Zl.id));Ue.length>0&&(Ce.value=[...Ce.value||[],...Ue],Sa.value=[...Sa.value||[],...Ue],Ue.forEach(Zl=>{var Lr;return(Lr=da.value)==null?void 0:Lr.set(Zl.id,Zl)}))}}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"})),((hl=le==null?void 0:le.contents)==null?void 0:hl.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((Al=(Sl=(vl=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:vl.value)==null?void 0:Sl.find(ha=>(ha==null?void 0:ha.value)==="onButtonContents"))!=null&&Al.content){let ha=(wl=(Rl=(kr=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:kr.value)==null?void 0:Rl.find(Dl=>(Dl==null?void 0:Dl.value)==="onButtonContents"))==null?void 0:wl.content;if(ha=(Ml=ha==null?void 0:ha.split(":"))==null?void 0:Ml[1],ha=(Yl=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:Yl.split(","),We.value=(zl=ne==null?void 0:ne.contents)==null?void 0:zl.filter(Dl=>ha==null?void 0:ha.find(tn=>tn===(Dl==null?void 0:Dl.label))),Ne.value=(Gl=ne==null?void 0:ne.contents)==null?void 0:Gl.filter(Dl=>ha==null?void 0:ha.find(tn=>tn===(Dl==null?void 0:Dl.label))),(Ql=ne==null?void 0:ne.contents)!=null&&Ql.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别")&&!((Wl=We.value)!=null&&Wl.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别"))){const Dl=(pr=ne==null?void 0:ne.contents)==null?void 0:pr.find(tn=>(tn==null?void 0:tn.label)==="OCR识别");We.value=[...We.value,Dl],Ne.value=[...Ne.value,Dl]}S.value=!!(ha!=null&&ha.find(Dl=>Dl==="搜索")),L.value=!!(ha!=null&&ha.find(Dl=>Dl==="块状显示"))}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)==="设备列表"?((Ur=We.value)!=null&&Ur.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(We.value=[...We.value||[],{label:"OCR识别"}]),(fr=Ne.value)!=null&&fr.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识别")),(ir=We.value)!=null&&ir.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(We.value=[...We.value||[],{label:"切换视图"}]),(cr=Ne.value)!=null&&cr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(Ne.value=[...Ne.value||[],{label:"切换视图"}]),me.value=((Vt=Ce==null?void 0:Ce.value)==null?void 0:Vt.length)??0,It(Ce.value),Gr.value=Ce.value,Il.value&&(Ee.value=(Ft=(Pt=de.value)==null?void 0:Pt.filter(ha=>(ha==null?void 0:ha.label)!=="操作"))==null?void 0:Ft.map(ha=>{var Dl;return{...ha,type:"edit",optionUrl:ha!=null&&ha.formMenuSelect&&((Dl=ha==null?void 0:ha.formMenuSelect)==null?void 0:Dl.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}}),ot())};a.watch(()=>[u.itemData,Ul.value,bn.value,vn.value,Wa==null?void 0:Wa.value],async()=>{var d,h,N,z,$,B;if((d=u==null?void 0:u.itemData)!=null&&d.find(le=>(le==null?void 0:le.key)==="columnPath")&&!((h=V.value)!=null&&h.find(le=>{var ne,U;return(le==null?void 0:le.key)===((U=(ne=u==null?void 0:u.itemData)==null?void 0:ne.find(xe=>(xe==null?void 0:xe.key)==="columnPath"))==null?void 0:U.contents)}))){let le=V.value,ne={key:(z=(N=u==null?void 0:u.itemData)==null?void 0:N.find(U=>(U==null?void 0:U.key)==="columnPath"))==null?void 0:z.contents,value:(B=($=u==null?void 0:u.itemData)==null?void 0:$.find(U=>(U==null?void 0:U.key)==="columnUsingPath"))==null?void 0:B.contents};le!=null&&le.find(U=>(U==null?void 0:U.key)===(ne==null?void 0:ne.key))?le=le==null?void 0:le.map(U=>((U==null?void 0:U.key)===(ne==null?void 0:ne.key)&&(U.value=ne.value),U)):le.push(ne),Qe.setTableViewContents(le)}await Rt(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&(Lo(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 su=()=>{var d;(d=R.value)!=null&&d.includes("read")&&(Il.value=!Il.value)},cu=()=>{mr.value=!mr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var h;R.value=d,(d==null?void 0:d.length)===0?Il.value=!1:(d!=null&&d.includes("read")||(Il.value=!0),d!=null&&d.includes("edit")||(Il.value=!1)),D.value=((h=u==null?void 0:u.config)==null?void 0:h.showIndex)||Il.value},{immediate:!0}),a.watch(()=>Il.value,d=>{var h;d?(ot("viewChange"),Qe.setCacheUpdatingData(null)):(We.value=Ne.value,Ee.value=ya.value,P.value&&(Qe.setTableLoading(u==null?void 0:u.index),Te("change",P.value))),D.value=d||((h=u==null?void 0:u.config)==null?void 0:h.showIndex),or.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Fn.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 uu=(d,h)=>{var N;ot("createClick"),h===te.pageSize&&(te.currentPage=Math.ceil(((N=Ce.value)==null?void 0:N.length)/te.pageSize))},du=async(d,h,N)=>{var $,B,le,ne,U;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&si.includes(z)&&N!==void 0&&N!==null&&String(N).trim()!==""){const xe=String(N).trim();if(await nt(xe,d==null?void 0:d.id)){al.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Pe=($=Ce.value)==null?void 0:$.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(Il.value){const xe=d==null?void 0:d.id;xe!=null&&(y.value.has(xe)||y.value.set(xe,O.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}),ci(N,d,h);return}ci(N,d,h),sr.value=O.cloneDeep(d),Fa.value=d==null?void 0:d.id,me.value=(U=Ce.value)==null?void 0:U.length,ze.value=d!=null&&d._isTemp?"新增":"编辑",$o(!1)},pu=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 $=z.split("_")[1];$&&(N.push(`content_${$}`),N.push(`struct_${$}`))}})),N.length===0&&(u!=null&&u.itemData)){const z=(h=(d=u.itemData)==null?void 0:d.find($=>($==null?void 0:$.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),[]}},fu=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),U=`${d==null?void 0:d.id}:${ne}`;p.value.delete(U),m.value.set(U,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),$=`${d==null?void 0:d.id}:${z}`;m.value.set($,!0);try{const ne=await pu();if(ne.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete($),m.value.set($,!1);return}const U=parseInt((B=$l.value)==null?void 0:B.plat_id);if(!U){console.warn("platId 无效,跳过全局搜索"),p.value.delete($),m.value.set($,!1);return}const xe=await O.getAllTables({platId:U,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=O.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:O.cloneDeep(ce),sourceTable:(Ka==null?void 0:Ka.source_table)||""})}})}),p.value.set($,Pe)}catch(ne){console.error("全局搜索建议失败:",ne),p.value.delete($)}finally{m.value.set($,!1)}},hu=(d,h,N)=>{if(!Il.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),$=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if($&&$.toUpperCase()!=="INPUT"&&$!=="")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(()=>{fu(d,{prop:z,property:z},N),v.delete(B)},300);v.set(B,le)};function vu(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 mu=(d,h,N)=>{var _e;if(!N||!N.rowData)return;const z=N.rowData,$=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 U=(_e=Ce.value)==null?void 0:_e.findIndex(Pe=>(Pe==null?void 0:Pe.id)===$);U!==-1&&ne.forEach(Pe=>{const Re=Pe==null?void 0:Pe.prop;Re&&z[Re]!==void 0&&(Ce.value[U][Re]=z[Re])}),$!=null&&(y.value.has($)||y.value.set($,O.cloneDeep(d)),c.value.add($));const xe=`${$}:${B}`;p.value.delete(xe),m.value.set(xe,!1),ci(d[B],d,h)},Hr=d=>{var U,xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol;const{row:h,column:N,item:z,slotData:$}=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=(U=h==null?void 0:h[N==null?void 0:N.prop])==null?void 0:U[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=$==null?void 0:$[z==null?void 0:z.prop])==null?void 0:Re[0])==null?void 0:Ke.contents)??($==null?void 0:$[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=$n.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)&&((ol=N==null?void 0:N.relatedPages)==null?void 0:ol.length)>0&&(ne="详情页"),ne},yu=d=>{var xe,_e,Pe,Re,Ke,ma,Ka,Za,sa,ol;const{row:h,column:N,item:z,slotData:$}=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=$==null?void 0:$[z==null?void 0:z.prop])==null?void 0:Ke[0])==null?void 0:ma.contents)??($==null?void 0:$[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[(ol=z==null?void 0:z.child)==null?void 0:ol.prop]);const ne=Array.isArray(B)&&!(B!=null&&B.every(ka=>typeof ka=="string"||typeof ka=="number")),U=Array.isArray(B)&&(B==null?void 0:B.find(ka=>ka==null?void 0:ka.url));return ne&&U},gu=d=>{var $,B;if(!(d!=null&&d.column))return!1;const h=ba.value==="试验任务/任务管理",N=(u==null?void 0:u.compName)==="任务列表",z=(($=d==null?void 0:d.column)==null?void 0:$.label)==="任务状态"||((B=d==null?void 0:d.column)==null?void 0:B.prop)==="任务状态";return h&&N&&z},bu=(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=bu(Ce.value,d==null?void 0:d.data);if(!h)return la.setContentLoading(!1);await Un(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,$,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 U=($=N==null?void 0:N.data)==null?void 0:$.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)===U){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,U)){const Pe={...da.value.get(U)||{},id:xe};delete Pe._isOCRRow,delete Pe._ocrTableId,da.value.delete(U),da.value.set(xe,Pe)}_a(u==null?void 0:u.index,U,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 $={...N,id:d==null?void 0:d.resId};return delete $._isOCRRow,delete $._ocrTableId,$}return N})))},{immediate:!0,deep:!0}),(d,h)=>{var sa,ol,ka,Ja;const N=a.resolveComponent("svg-icon"),z=a.resolveComponent("el-popover"),$=a.resolveComponent("el-switch"),B=a.resolveComponent("el-checkbox"),le=a.resolveComponent("el-radio"),ne=a.resolveComponent("el-radio-group"),U=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",C0,[Pr.value?(a.openBlock(),a.createBlock(dl.ssTable,{id:"excel-table",pageObj:te,showIndex:D.value,isTree:(sa=l.compItem)==null?void 0:sa.isTree,summaryInfo:W,columns:Ee.value,defaultSort:Z,isCardViewport:mr.value,checkedColumns:r.value,key:rn.value+Ee.value,tableData:Fn.value,isEditViewport:Il.value,isShowPagination:Je.value,isShowEdit:!1,isShowDelete:!1,allowSelect:w.value,onDbClickRow:oi,extraButton:We.value,rowButton:Ua.value,cacheExtraButtons:Ne.value,isClearSelection:((ol=or.value)==null?void 0:ol.length)===0,onDoCurrentChange:mn,onDoSizeChange:Ao,onSortChange:Li,onContentClick:Un,onRowClick:ii,onSelectChange:ji,onCellChange:du,onCellInput:hu,onSelectSuggest:mu,onChange:ci,onPreview:Hn,onSubmitEditingTable:Xo,onHandleColEditChange:Go,onHandleColTypeChange:Yo,onClickButton:In,onAddNewRow:Fr,bottomButton:I.value},a.createSlots({headerButton:a.withCtx(ce=>{var Ta,ca,Ba,Aa;return[l.showHeader?(a.openBlock(),a.createBlock(ef,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(ue)===a.unref(ba),filterValues:Gi.value,selectNums:(Ta=or.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,G,Me)=>In(T,G,{extra:Me})),columns:Ee.value,onFilter:Yi,onGetImportData:$i,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&&L.value?(a.openBlock(),a.createElementBlock("div",D0,[(Ta=R.value)!=null&&Ta.includes("read")&&((ca=R.value)!=null&&ca.includes("edit"))&&((Ba=Ua.value)!=null&&Ba.some(Aa=>(Aa==null?void 0:Aa.label)==="编辑"))&&!mr.value&&a.unref(ue)!==a.unref(ba)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:su},[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=>uu(ce,Ta)},[a.createVNode(N,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,B0)]),operateCol:a.withCtx(()=>[a.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:ru},{reference:a.withCtx(()=>[a.createElementVNode("span",N0,[a.createVNode(N,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",T0,[h[20]||(h[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode($,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=ce=>Qo(ce))},null,8,["model-value"]),h[21]||(h[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(U,{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(Cn.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,A0)]),_: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",z0,[(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",M0,[h[19]||(h[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ne,{"model-value":ce==null?void 0:ce[ca],onChange:T=>En(T,ca,ce)},{default:a.withCtx(()=>{var T,G;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((G=(T=ee.value)==null?void 0:T.find(Me=>(Me==null?void 0:Me.value)===ca))==null?void 0:G.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($,{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=>En(T,ca,ce)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",I0,[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,G,Me,na,ge,ta,Ia,pl,ll,ml,yl,Pl,el,kl,Ya,hl;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",O0,[a.createVNode(N,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(nl=>Yr(ce),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):yu(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",L0,a.toDisplayString(Hr(ce)),1)]),default:a.withCtx(()=>{var nl,vl;return[a.createElementVNode("div",R0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((vl=ce==null?void 0:ce.row)==null?void 0:vl[(nl=ce==null?void 0:ce.column)==null?void 0:nl.prop],Sl=>(a.openBlock(),a.createElementBlock("div",$0,[a.createElementVNode("div",{class:"prop-url",title:Qn(Sl),onClick:Al=>Wi(Sl)},a.toDisplayString(Qn(Sl)),9,V0),a.createElementVNode("div",{class:"prop-download",onClick:Al=>uo(Sl)}," 下载 ",8,P0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[gu(ce)?(a.openBlock(),a.createBlock(zu,{key:0,value:Hr(ce)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Hr(ce))&&((Aa=(Ba=Hr(ce))==null?void 0:Ba.toString())!=null&&Aa.includes(".txt")||(G=(T=Hr(ce))==null?void 0:T.toString())!=null&&G.includes(".cpt")||(na=(Me=Hr(ce))==null?void 0:Me.toString())!=null&&na.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Hr(ce))&&((ta=(ge=Hr(ce))==null?void 0:ge.toString())!=null&&ta.includes(".txt")||(pl=(Ia=Hr(ce))==null?void 0:Ia.toString())!=null&&pl.includes(".cpt")||(ml=(ll=Hr(ce))==null?void 0:ll.toString())!=null&&ml.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Hr(ce))&&((Pl=(yl=Hr(ce))==null?void 0:yl.toString())!=null&&Pl.includes(".txt")||(kl=(el=Hr(ce))==null?void 0:el.toString())!=null&&kl.includes(".cpt")||(hl=(Ya=Hr(ce))==null?void 0:Ya.toString())!=null&&hl.includes(".cyd"))?"pointer":"",marginLeft:(ce==null?void 0:ce.colIndex)===0?`${((ce==null?void 0:ce.level)??0)*20}px`:0}),onClick:nl=>{var vl;return zn(Hr(ce),((vl=ce==null?void 0:ce.column)==null?void 0:vl.relatedPages)??[])}},a.toDisplayString(Hr(ce)===0?"0":Hr(ce)),13,F0))],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",E0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Ki(Ua.value,ce),(ca,Ba)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Ba,onClick:a.withModifiers(Aa=>In(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,S0))),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),Il.value?(a.openBlock(),a.createElementBlock("div",j0,[a.createVNode(xe,{id:"themeBorderButton",onClick:Fi},{default:a.withCtx(()=>h[22]||(h[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(xe,{class:"ok-button",id:"themeButton",onClick:zo},{default:a.withCtx(()=>h[23]||(h[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(xr.ssDialog,{title:ze.value,visible:Xe.value,width:Kl.value,onBeforeDestroy:ei,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",H0,[a.createVNode(dl.ssForm,{ref_key:"formRef",ref:pa,rowContents:De.value,showOperator:!1,onChange:nu,isEnableWrap:!1,onFixChangeValue:Io,onClickTrigger:ai,isEdit:ja.value,onBlurChange:Hi,onCreate:Zo,onTagChange:en},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[ga.value?(a.openBlock(),a.createElementBlock("div",U0,[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=>$o(!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(xr.ssDialog,{title:ze.value,visible:Ae.value,width:za.value,onBeforeDestroy:h[7]||(h[7]=ce=>Ae.value=!1)},{default:a.withCtx(()=>[a.createVNode(ff)]),footer:a.withCtx(()=>[a.createElementVNode("div",q0,[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:Oo,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(dl.ssFilePreview,{key:2,fileDataList:re.value,onDestroy:Sn},null,8,["fileDataList"])):a.createCommentVNode("",!0),je.value?(a.openBlock(),a.createBlock(xr.ssDialog,{key:3,visible:je.value,onBeforeDestroy:au,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(_i.ThreeViewerHost,{files:He.value,threeData:ie.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(xr.ssDialog,{title:"OCR扫描录入",visible:Ra.value,"close-on-click-modal":!1,onBeforeDestroy:cl,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",W0,[a.createElementVNode("div",K0,[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",G0,[a.createVNode(xe,{onClick:at,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:ql,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",Y0,[a.createElementVNode("div",J0,[(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",X0,[ce.raw&&((ca=ce.raw.type)!=null&&ca.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:_l(ce),alt:"预览",class:"thumbnail-image"},null,8,Z0)):(a.openBlock(),a.createElementBlock("div",Q0,[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:ul(ce)==="uploading",processing:ul(ce)==="processing",completed:ul(ce)==="completed"||ul(ce)==="uploaded",failed:ul(ce)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",e3,[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:ul(ce)==="completed"||ul(ce)==="uploaded",uploading:ul(ce)==="uploading",processing:ul(ce)==="processing",failed:ul(ce)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:ul(ce)==="failed"?"#f56c6c":ul(ce)==="completed"||ul(ce)==="uploaded"?"#67c23a":"#409eff","stroke-width":ul(ce)==="completed"||ul(ce)==="uploaded"||ul(ce)==="failed"?3:2,"stroke-dasharray":Xl(ce),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,a3)])),ul(ce)==="completed"||ul(ce)==="uploaded"?(a.openBlock(),a.createElementBlock("div",l3,[a.createVNode(_e,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(al.check_default))]),_:1})])):a.createCommentVNode("",!0),ul(ce)==="failed"?(a.openBlock(),a.createElementBlock("div",r3,[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=>ho(Ta)},[a.createVNode(_e,null,{default:a.withCtx(()=>[a.createVNode(a.unref(al.close_default))]),_:1})],8,n3)]),a.createElementVNode("div",o3,a.toDisplayString(ce.name||"文件名123"),1)])}),128))]),qa.value.length>0?(a.openBlock(),a.createElementBlock("div",i3,[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",t3,[a.createVNode(Pe,{percentage:Y.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),pe.value===2?(a.openBlock(),a.createElementBlock("div",s3,[a.createElementVNode("div",c3,[a.createVNode(Re,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",u3,[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",d3,[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:sl(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",p3,a.toDisplayString(Ta[ce.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(tl(ce.prop)),{key:1,modelValue:Ta[ce.prop],"onUpdate:modelValue":G=>Ta[ce.prop]=G,size:"small",placeholder:"请输入"+ce.label,content:((Ba=Cl(ce.prop))==null?void 0:Ba.contents)??((Aa=Cl(ce.prop))==null?void 0:Aa.options)??[],optionUrl:(T=Cl(ce.prop))==null?void 0:T.optionUrl,onChange:G=>ea(ca,ce.prop,G),onFocus:G=>he.value=ce.prop,onBlur:h[8]||(h[8]=G=>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",f3,[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":q,"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",h3,[a.createVNode(xe,{onClick:jr,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:wr,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(Af,{visible:fo.value,onConfirm:lt,onCancel:h[10]||(h[10]=ce=>fo.value=!1)},null,8,["visible"]),a.createVNode(fd,{visible:ae.value,"onUpdate:visible":h[11]||(h[11]=ce=>ae.value=ce),versions:Ye.value},null,8,["visible","versions"]),a.createVNode(Qu,{visible:Da.value,"onUpdate:visible":h[12]||(h[12]=ce=>Da.value=ce),images:El.value,"default-image-name":Vl.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(Sd,{visible:Fl.value,"onUpdate:visible":h[14]||(h[14]=ce=>Fl.value=ce),candidates:nr.value,"name-prop":lr.value,"mfr-prop":Qr.value,columns:Ee.value,onSubmit:Mr,onPreviewFile:on},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Md,{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(xr.ssDialog,{title:t.title,visible:t.show,width:t.width,onBeforeDestroy:x},{default:a.withCtx(()=>[a.createElementVNode("div",v3,[a.createVNode(dl.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(xr.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",m3,[a.createVNode(Za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Tn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",y3,[(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(af,{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:G})=>[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"])])}}},xc=Jl._export_sfc(b3,[["__scopeId","data-v-52b21c00"]]),k3={key:1,class:"static-form-body"},x3=["onClick"],w3={key:1},_3=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 j;const k=(j=r.itemData)==null?void 0:j.find(W=>(W==null?void 0:W.key)==="formContent"),g=(k==null?void 0:k.contents)||[];return(r.fields&&r.fields.length>0?r.fields:g).filter(W=>(W==null?void 0:W.label)||(W==null?void 0:W.isHideInForm)).map(W=>{let te=W==null?void 0:W.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=W.isHideInForm?"":W.label??"",Ee=te==null||te===""?"-":String(te),Q=Te==="使用状态";return{label:Te,value:Ee,isStatus:Q,tagType:Q?s(Ee):"",width:W.width??1,field:W}})}),y=a.ref(null),p=a.ref(null),v=k=>{if(Array.isArray(k)&&k.length>=3){const[g,L,j,W]=k;return W!==void 0?`rgba(${g}, ${L}, ${j}, ${W})`:`rgb(${g}, ${L}, ${j})`}if(typeof k=="string"){const g=k.trim();if(g.startsWith("[")&&g.endsWith("]")){const L=g.slice(1,-1).split(",").map(j=>Number(j.trim()));if(L.length>=3&&L.every(j=>!Number.isNaN(j))){const[j,W,te,Te]=L;return Te!==void 0?`rgba(${j}, ${W}, ${te}, ${Te})`:`rgb(${j}, ${W}, ${te})`}}return g}},m=a.computed(()=>{const k=Number(r==null?void 0:r.textSize),g=v(r==null?void 0:r.textColor),L={},j={},W={},te={};return!Number.isNaN(k)&&k&&(L.fontSize=`${k}px`,j.fontSize=`${k+1}px`,W.fontSize=`${k}px`,te.fontSize=`${k}px`),g&&(j.color=g,W.color=g,te.color=g),{item:L,label:j,value:W,empty:te}}),u=a.ref(""),w=a.ref(""),D=a.ref(!1),R=async k=>{if(k){w.value&&(URL.revokeObjectURL(w.value),w.value="");try{const g=await O.platformDownloadFile({url:k}),L=new Blob([g==null?void 0:g.data],{type:(g==null?void 0:g.headers["content-type"])||"image/*"});w.value=URL.createObjectURL(L)}catch{w.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,k=>{k&&(u.value=k)},{immediate:!0}),a.watch(u,k=>{R(k)},{immediate:!0});const S=()=>{var k;(k=p.value)==null||k.click()},K=async k=>{var j,W,te;const g=k.target,L=(j=g==null?void 0:g.files)==null?void 0:j[0];if(!L){g.value="";return}D.value=!0;try{const Te=new FormData;Te.append("file",L);const Ee=await O.platformUploadFile(Te),Q=(te=(W=Ee==null?void 0:Ee.data)==null?void 0:W.result)==null?void 0:te.url;Q?(u.value=Q,o("update:backGroundImage",Q),R(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:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),A=k=>dl.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,L)=>{r.disabled||(y.value=g,a.nextTick(()=>{ee(L.currentTarget)}))},_=()=>{y.value=null},E=k=>{const g=k!=null&&k.width&&k.width>0?k.width:1,j=`calc((100% - ${(g-1)*48}px) / ${g})`;return{flex:`0 0 ${j}`,maxWidth:j,minWidth:"0",boxSizing:"border-box"}};return(k,g)=>{const L=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",{class:"static-form-card",style:a.normalizeStyle(I.value),onClick:g[2]||(g[2]=j=>(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(j=>S(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:p,type:"file",accept:"image/*",style:{display:"none"},onChange:K},null,544),g[3]||(g[3]=a.createElementVNode("img",{src:dl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),c.value.length?(a.openBlock(),a.createElementBlock("div",k3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(j,W)=>{var te,Te,Ee,Q,be,Z,de,je;return a.openBlock(),a.createElementBlock("div",{key:W,class:"static-form-item",style:a.normalizeStyle({...E(j),...m.value.item}),onClick:g[1]||(g[1]=a.withModifiers(()=>{},["stop"]))},[j.label?(a.openBlock(),a.createElementBlock("div",{key:0,class:"static-form-label",style:a.normalizeStyle(m.value.label)},a.toDisplayString(j.label)+": ",5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(m.value.value),onClick:wa=>C(j,W,wa)},[y.value===W&&j.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A(((te=j.field)==null?void 0:te.type)??"Input")),{key:0,modelValue:j.field.value,"onUpdate:modelValue":wa=>j.field.value=wa,isEdit:!0,disabled:(Te=j.field)==null?void 0:Te.disabled,content:((Ee=j.field)==null?void 0:Ee.contents)??[],optionUrl:j.field,originalValue:(Q=j.field)==null?void 0:Q.value,config:(be=j.field)==null?void 0:be.config,configModel:((Z=j.field)==null?void 0:Z.prop)??((de=j.field)==null?void 0:de.name),selectedTagList:((je=j.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},[j.isStatus?(a.openBlock(),a.createBlock(L,{key:0,type:j.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(j.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",w3,a.toDisplayString(j.value??"-"),1))],64))],12,x3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:2,class:"static-form-empty",style:a.normalizeStyle(m.value.empty)}," 暂无数据 ",4))],4)}}}),wc=Jl._export_sfc(_3,[["__scopeId","data-v-195b0dcc"]]),C3={class:"form-content"},E3={title:"选择标签"},S3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},D3={class:"col-operate-wrap"},B3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},N3={__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}=_i.useThreeSystem(),u=a.ref(),w=a.ref(!1),D=a.ref(!1),R=O.useUnit(O.pinia),{chooseTitle:S}=O.storeToRefs(R),K=a.ref([]),I=a.ref(),A=a.ref(!1),ee=a.ref([]),C=ac(O.pinia),_=Et(O.pinia),E=a.ref(!1),k=a.ref(),g=a.ref(),L=a.ref(),j=a.ref(),W=a.ref(),te=O.useLoginState(O.pinia),{loginUserInfo:Te}=O.storeToRefs(te),Ee=a.ref(),Q=a.ref(!0),be=O.useModelComp(O.pinia),{tableViewContents:Z,itemData:de,isEdit:je,routeToChildPath:wa,lockingPage:ie}=O.storeToRefs(be),F=a.ref(null),H=a.ref(!1),ye=a.ref(!1),Se=O.useMenuState(),{activeMenuPath:ke}=O.storeToRefs(Se),Ze=oa.useOriginalState(O.pinia),{originalPath:ya}=O.storeToRefs(Ze),{compType:Ha,hasEditable:re}=Ws.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 V("disabled",null,me,!0)},Ie=async me=>{await V("operable",null,me,!0)};a.watch(()=>ke.value,async()=>{c.value=[],v.value=[]},{deep:!0,immediate:!0});const $e=()=>{a.nextTick(()=>{P()})},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(()=>{F.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)}},P=()=>{var Je;const me=(Je=F.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)}})},V=async(me,Je,ze,Xe=!1)=>{try{be.setRefreshCurStructure(!1)}catch{al.ElMessage.error("编辑处理失败")}},X=async(me,Je)=>{await V()},se=async(me,Je)=>{me&&await V()},ue=async(me,Je,ze)=>{await V(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=>{j.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(fl=>({url:fl,extension:m(fl)}));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=[],fl={};if(Array.isArray(me)?ia=me:ia=me==null?void 0:me.split(","),ia==null||ia.forEach(Ma=>{Ma.includes(".mtl")?Pa.push(Ma):fl.blob=fl.blob?fl.blob+","+Ma:Ma}),(Pa==null?void 0:Pa.length)>0&&(fl.mtlBlobs=Pa),(Ne=(We=Object.values(fl))==null?void 0:We[0])!=null&&Ne.includes("http:"))Je.push(fl);else{const Ma=new Blob([fl.blob],{type:"application/octet-stream;charset=UTF-8"});let Hl=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=fl.blob)!=null&&fe.includes(".stl")&&(Ea=(Ea==null?void 0:Ea.replaceAll(">",""))+".urdf"),I.value=[{name:Ea,blobUrl:Hl}],D.value=!0}}else{const ia=Po.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()}),fl=new Blob([Pa.data],{type:"application/octet-stream;charset=UTF-8"});let Ma=URL.createObjectURL(fl),Hl="";(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&&(Hl=Ea)}),I.value=[{name:Hl,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=dl.safeClone(o.itemData))==null?void 0:ua.find(Ua=>(Ua==null?void 0:Ua.key)==="formContent"))==null?void 0:Ae.contents,ze=dl.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,fl,Ma,Hl,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,Y;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=(Y=(qe=c.value)==null?void 0:qe.find(aa=>(aa==null?void 0:aa.prop)===(Ye==null?void 0:Ye[1])))==null?void 0:Y.value),ae}),be.setTableViewContents(Je));const ze=dl.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,Y,aa,Ge,Be,Cl,tl,bl,Ga,Qa,Na,he,Da,El,Vl,Fl,nr,yr,Nl,tr,Nr;return pe.type=(Y=(qe=c.value)==null?void 0:qe.find(Ll=>(Ll==null?void 0:Ll.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Y.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=(bl=Nu((tl=(Cl=pe==null?void 0:pe.key)==null?void 0:Cl.split("$"))==null?void 0:tl[1]))==null?void 0:bl.split(","))==null?void 0:Ga.map(Ll=>({label:Ll,value:Ll})):[],(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=(El=(Da=c.value)==null?void 0:Da.find(Ll=>(Ll==null?void 0:Ll.prop)===(pe==null?void 0:pe.prop)))==null?void 0:El.signature,pe.isLoginUser=(Fl=(Vl=c.value)==null?void 0:Vl.find(Ll=>(Ll==null?void 0:Ll.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Fl.isLoginUser,pe.value=(nr=Object.values(me))==null?void 0:nr[Ca],pe.isFormColHidden=(Nl=(yr=c.value)==null?void 0:yr.find(Ll=>(Ll==null?void 0:Ll.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Nl.isFormColHidden,pe.isHideInForm=(Nr=(tr=c.value)==null?void 0:tr.find(Ll=>(Ll==null?void 0:Ll.prop)===(pe==null?void 0:pe.prop)))==null?void 0:Nr.isHideInForm,pe})),ae}),pa=c.value,ua=(fe=(De=dl.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=dl.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=(fl=za==null?void 0:za.optionUrl)==null?void 0:fl.menuSelect,Ua=!0;if((Ea=(Hl=(Ma=dl.safeClone(Xe))==null?void 0:Ma.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:Hl.contents)==null||Ea.forEach(ae=>{var Ye,pe,Ca,qe,Y,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=(Y=(qe=ae==null?void 0:ae.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:Y[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 mt(za),Ye,pe=(Ra=za==null?void 0:za.optionUrl)==null?void 0:Ra.menuSelect;if(ae==null||ae.forEach(Ca=>{var qe,Y,aa,Ge,Be,Cl,tl,bl,Ga,Qa;Ae===((Y=(qe=za==null?void 0:za.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:Y[1])&&((Be=(Ge=(aa=za==null?void 0:za.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])!=null&&Be.includes("["))&&((Qa=dl.safeClone(Ca))==null?void 0:Qa[(Ga=(bl=(tl=(Cl=za==null?void 0:za.optionUrl)==null?void 0:Cl.groupSelect)==null?void 0:tl[1])==null?void 0:bl.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])===(za==null?void 0:za.value)&&(Ye=Ca)}),Ye){let Ca=dl.safeClone(pa);Ca=Ca==null?void 0:Ca.map(Y=>{var aa,Ge,Be,Cl,tl,bl,Ga,Qa,Na,he,Da;return(Ye!=null&&Ye[Y==null?void 0:Y.label]||Ye!=null&&Ye[(Cl=(Be=(Ge=(aa=Y==null?void 0:Y.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])==null?void 0:Be.replaceAll("[",""))==null?void 0:Cl.replaceAll("]","")])&&((Ga=(bl=(tl=Y==null?void 0:Y.optionUrl)==null?void 0:tl.groupSelect)==null?void 0:bl[1])!=null&&Ga.includes("["))&&pe!=null&&pe.every(El=>{var Vl,Fl;return(Fl=(Vl=Y==null?void 0:Y.optionUrl)==null?void 0:Vl.menuSelect)==null?void 0:Fl.includes(El)})&&(Y.value=(Ye==null?void 0:Ye[Y==null?void 0:Y.label])||(Ye==null?void 0:Ye[(Da=(he=(Na=(Qa=Y==null?void 0:Y.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:Na[1])==null?void 0:he.replaceAll("[",""))==null?void 0:Da.replaceAll("]","")]),Array.isArray(Y.value)&&Y.value.every(El=>(El==null?void 0:El.url)&&(El==null?void 0:El.name))&&(Y.type="Upload")),Y}),Ca=Ca==null?void 0:Ca.map(Y=>{var aa,Ge,Be;return(aa=Y==null?void 0:Y.optionUrl)!=null&&aa.oldMenuSelect&&(Y.optionUrl.menuSelect=(Be=(Ge=dl.safeClone(Y))==null?void 0:Ge.optionUrl)==null?void 0:Be.oldMenuSelect),Y}),c.value=dl.safeClone(Ca);let qe=dl.safeClone(Ca);qe=qe==null?void 0:qe.map(Y=>{var aa,Ge,Be,Cl,tl,bl;return(Ge=(aa=Y==null?void 0:Y.optionUrl)==null?void 0:aa.menuSelect)!=null&&Ge.some(Ga=>Ga==null?void 0:Ga.includes("["))&&(Y.optionUrl.oldMenuSelect=(Cl=(Be=dl.safeClone(Y))==null?void 0:Be.optionUrl)==null?void 0:Cl.menuSelect,Y.optionUrl.menuSelect=(bl=(tl=Y==null?void 0:Y.optionUrl)==null?void 0:tl.menuSelect)==null?void 0:bl.map(Ga=>{var Qa,Na,he,Da;if(Ga!=null&&Ga.includes("[")){let El=(Na=(Qa=Ga==null?void 0:Ga.replaceAll("[","").replaceAll("]",""))==null?void 0:Qa.split(":"))==null?void 0:Na[1];Ga=(Da=(he=dl.safeClone(Ca))==null?void 0:he.find(Vl=>(Vl==null?void 0:Vl.label)===El))==null?void 0:Da.value}return Ga})),Y}),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(Y=>{var aa,Ge,Be,Cl;return Y.value=((Ge=(aa=c.value)==null?void 0:aa.find(tl=>(tl==null?void 0:tl.label)===(Y==null?void 0:Y.key)))==null?void 0:Ge.value)??(Y==null?void 0:Y.value),Y.type=((Cl=(Be=c.value)==null?void 0:Be.find(tl=>(tl==null?void 0:tl.prop)===(Y==null?void 0:Y.key)))==null?void 0:Cl.type)??(Y==null?void 0:Y.type),Y})),Ca})}Q.value=!1,s("contentChange",{contents:Xe,index:o.index});let ga=[],He=[];if((qa=dl.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=dl.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,Y,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=(Y=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:Y[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=dl.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=dl.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,fl,Ma,Hl,Ea,_a,Ra,Va,qa,xa,ae,Ye,pe,Ca,qe,Y,aa;const me=(We=o.itemData)==null?void 0:We.find(Ge=>(Ge==null?void 0:Ge.key)==="formContent"),Je=(Ne=dl.safeClone(o.itemData))==null?void 0:Ne.find(Ge=>(Ge==null?void 0:Ge.key)==="formButton"),ze=(De=dl.safeClone(o.itemData))==null?void 0:De.find(Ge=>(Ge==null?void 0:Ge.key)==="formFlex"),Xe=(fe=dl.safeClone(o.itemData))==null?void 0:fe.find(Ge=>(Ge==null?void 0:Ge.key)==="formWrap"),pa=(oe=dl.safeClone(o.itemData))==null?void 0:oe.find(Ge=>(Ge==null?void 0:Ge.key)==="enableWrap"),ua=(ia=dl.safeClone(o.itemData))==null?void 0:ia.find(Ge=>(Ge==null?void 0:Ge.key)==="textSize"),Ae=(Pa=dl.safeClone(o.itemData))==null?void 0:Pa.find(Ge=>(Ge==null?void 0:Ge.key)==="textRGBA"),za=(fl=dl.safeClone(o.itemData))==null?void 0:fl.find(Ge=>(Ge==null?void 0:Ge.key)==="backGround"),fa=(Ma=dl.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,L.value=za==null?void 0:za.contents,j.value=fa==null?void 0:fa.contents;const ga=pa==null?void 0:pa.contents;if(ga===void 0?E.value=no.BLOCK:typeof ga=="boolean"?E.value=ga?no.ORDINARY:no.BLOCK:E.value=ga,W.value=typeof(ze==null?void 0:ze.contents)!="boolean"?!(!(ze!=null&&ze.contents)===""||((Hl=ze==null?void 0:ze.contents)==null?void 0:Hl.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=dl.safeClone(me))==null?void 0:_a.contents)==null?void 0:Ra.map((he,Da)=>{var Er,zr,Mr,Dr,Vr,Or,sr,gn,Gr,rn,Nn,bn,vn;let El=(he==null?void 0:he.label)??(he==null?void 0:he.key)??"";he==null||he.type;let Vl=(he==null?void 0:he.options)??[];if((Er=he==null?void 0:he.key)!=null&&Er.includes("$")&&(El=(zr=dl.safeClone(he==null?void 0:he.key).split("$"))==null?void 0:zr[0],((Dr=(Mr=dl.safeClone(he==null?void 0:he.key).split("$"))==null?void 0:Mr[1])==null?void 0:Dr.length)>0)){const[vr,Ul]=(Or=(Vr=dl.safeClone(he==null?void 0:he.key).split("$"))==null?void 0:Vr[1])==null?void 0:Or.split(/[()]/);(sr=oa.FormType.find(dr=>(dr==null?void 0:dr.key)===vr))==null||sr.value,((gn=Ul==null?void 0:Ul.split(","))==null?void 0:gn.length)>0&&(Vl=(Gr=Ul==null?void 0:Ul.split(","))==null?void 0:Gr.map(dr=>({label:dr,value:dr})))}let Fl=he==null?void 0:he.options;((rn=he==null?void 0:he.optionUrl)==null?void 0:rn.selectRelateType)==="自定义绑定"&&(Fl=(bn=(Nn=he==null?void 0:he.optionUrl)==null?void 0:Nn.defaultSelect)==null?void 0:bn.map(vr=>({label:vr,value:vr})));let nr=(he==null?void 0:he.menuPath)??[],yr=(he==null?void 0:he.groups)??[],Nl=(he==null?void 0:he.columns)??[],tr=!1,Nr=(he==null?void 0:he.isFormColHidden)??!1,Ll="",lr=he!=null&&he.value?he.value:(Fl==null?void 0:Fl.length)>0?(vn=Fl==null?void 0:Fl[0])==null?void 0:vn.value:(he==null?void 0:he.value)??"",Qr=!1,Ir="Input";return((Fl==null?void 0:Fl.length)>0||(nr==null?void 0:nr.length)>0)&&(Ir="Select"),(Array.isArray(Ll)&&(Ll!=null&&Ll.every(vr=>(vr==null?void 0:vr.name)&&(vr==null?void 0:vr.url)))||Array.isArray(lr)&&(lr!=null&&lr.every(vr=>(vr==null?void 0:vr.name)&&(vr==null?void 0:vr.url))))&&(Ir="upload"),he!=null&&he.isMainUrl&&(Ir="Url"),{label:El??"",name:El??"t"+Da,prop:El??dl.safeClone(he==null?void 0:he.key),type:(he==null?void 0:he.type)??Ir,value:(he==null?void 0:he.type)==="Date"&&lr===""?new Date:lr,id:(he==null?void 0:he.id)??Da,contents:(Fl==null?void 0:Fl.length)>0?Fl:Vl??[],width:(he==null?void 0:he.width)??1,isLoginUser:tr,config:he==null?void 0:he.config,optionUrl:(he==null?void 0:he.optionUrl)??he,isFormColHidden:Nr,isHideInForm:(he==null?void 0:he.isHideInForm)??!1,signature:Qr,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:nr,groups:yr,words:Nl,allSelectionContents:he==null?void 0:he.allContents,filterContent:he==null?void 0:he.filterContents}}),Cl=Be==null?void 0:Be.map(he=>he==null?void 0:he.value);let tl="";Cl==null||Cl.forEach(he=>{he!==""&&he!==void 0&&(tl=tl===""?he:tl+"/"+he)}),C.setSelectArray(Cl),C.setSelectString(tl);let bl=(Va=dl.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={};bl==null||bl.forEach(he=>{Ga[he.label]=he==null?void 0:he.value}),bl=bl==null?void 0:bl.map(he=>{var Da,El,Vl,Fl,nr,yr,Nl,tr,Nr;if((he==null?void 0:he.type)==="Select"&&((Da=he==null?void 0:he.allSelectionContents)==null?void 0:Da.length)>0&&(he.contactValue=Ga),(Vl=(El=he==null?void 0:he.optionUrl)==null?void 0:El.menuSelect)!=null&&Vl.some(Ll=>Ll==null?void 0:Ll.includes("["))){let Ll="";he.optionUrl.oldMenuSelect=(nr=(Fl=dl.safeClone(he))==null?void 0:Fl.optionUrl)==null?void 0:nr.menuSelect,he.optionUrl.menuSelect=(Nl=(yr=he==null?void 0:he.optionUrl)==null?void 0:yr.menuSelect)==null?void 0:Nl.map(lr=>{var Qr,Ir,Ar,Er,zr,Mr;if(lr!=null&&lr.includes("[")){let Dr=(Ir=(Qr=lr==null?void 0:lr.replaceAll("[","").replaceAll("]",""))==null?void 0:Qr.split(":"))==null?void 0:Ir[1];Ll=Fa((Ar=lr==null?void 0:lr.replaceAll("[","").replaceAll("]",""))==null?void 0:Ar.split(":"),Ge==null?void 0:Ge[ke.value],Ge),lr=((zr=(Er=dl.safeClone(bl))==null?void 0:Er.find(Vr=>(Vr==null?void 0:Vr.label)===Dr))==null?void 0:zr.value)||Fa((Mr=lr==null?void 0:lr.replaceAll("[","").replaceAll("]",""))==null?void 0:Mr.split(":"),Ge==null?void 0:Ge[ke.value],Ge)}return lr}),Ll!==""&&he.value===""&&(he.value=ja(he.optionUrl.menuSelect,he.optionUrl.oldMenuSelect,(tr=he==null?void 0:he.optionUrl)==null?void 0:tr.groupSelect,Ge),Array.isArray(he.value)&&((Nr=he.value)!=null&&Nr.every(lr=>lr==null?void 0:lr.url))&&(he.type="UPLOAD"))}return he}),c.value=bl,ye.value=((qa=c.value)==null?void 0:qa.every(he=>he==null?void 0:he.disabled))||ie.value===ke.value,H.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=dl.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(El=>{var Vl;return(Vl=El==null?void 0:El.url)==null?void 0:Vl.includes(".obj")}))&&(Na=he==null?void 0:he.value)}),(Na==null?void 0:Na.length)>0){const he=(pe=dl.safeClone(Na))==null?void 0:pe.filter(Da=>{var El;return(El=Da==null?void 0:Da.url)==null?void 0:El.includes(".obj")});he==null||he.forEach(Da=>{var Vl,Fl,nr,yr;const El=(Vl=Na==null?void 0:Na.filter(Nl=>{var tr;return(Nl==null?void 0:Nl.name)===(Da==null?void 0:Da.name)&&((tr=Nl==null?void 0:Nl.url)==null?void 0:tr.includes(".mtl"))}))==null?void 0:Vl.map(Nl=>Nl==null?void 0:Nl.url);Qa.push({objUrl:Da==null?void 0:Da.url,mtlUrls:((Fl=Na==null?void 0:Na.filter(Nl=>{var tr;return(Nl==null?void 0:Nl.name)===(Da==null?void 0:Da.name)&&((tr=Nl==null?void 0:Nl.url)==null?void 0:tr.includes(".mtl"))}))==null?void 0:Fl.length)===1?(yr=(nr=Na==null?void 0:Na.filter(Nl=>{var tr;return(Nl==null?void 0:Nl.name)===(Da==null?void 0:Da.name)&&((tr=Nl==null?void 0:Nl.url)==null?void 0:tr.includes(".mtl"))}))==null?void 0:nr[0])==null?void 0:yr.url:El})}),_.setObjUrl(Qa)}(Ca=dl.safeClone(c.value))==null||Ca.forEach(he=>{var Da,El,Vl,Fl,nr,yr,Nl,tr,Nr,Ll,lr,Qr,Ir;if((El=(Da=he==null?void 0:he.value)==null?void 0:Da.toString())!=null&&El.includes(".stl")||(Fl=(Vl=he==null?void 0:he.value)==null?void 0:Vl.toString())!=null&&Fl.includes(".STL")||(yr=(nr=he==null?void 0:he.value)==null?void 0:nr.toString())!=null&&yr.includes(".obj")||(tr=(Nl=he==null?void 0:he.value)==null?void 0:Nl.toString())!=null&&tr.includes(".mtl")||(Ll=(Nr=he==null?void 0:he.value)==null?void 0:Nr.toString())!=null&&Ll.includes(".urdf")){let Ar={},Er=[],zr;Array.isArray(he==null?void 0:he.value)?zr=he==null?void 0:he.value:zr=(lr=he==null?void 0:he.value)==null?void 0:lr.split(","),zr==null||zr.forEach(Mr=>{Mr.includes(".mtl")?Er.push(Mr):Ar.blob=Ar.blob==="undefined"?Mr:Ar.blob+","+Mr}),(Er==null?void 0:Er.length)>0&&(Ar.mtlBlobs=Er),(Ir=(Qr=Object.values(Ar))==null?void 0:Qr[0])!=null&&Ir.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 Cl,tl,bl,Ga;let Be=(Cl=Ge==null?void 0:Ge.key)==null?void 0:Cl.split("/");return(o==null?void 0:o.compName)===(Be==null?void 0:Be[0])&&(tl=c.value)!=null&&tl.find(Qa=>(Qa==null?void 0:Qa.prop)===(Be==null?void 0:Be[1]))&&(Ge.value=(Ga=(bl=c.value)==null?void 0:bl.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=dl.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(((Y=Je==null?void 0:Je.contents)==null?void 0:Y.length)>0){const Ge=[];(aa=Je==null?void 0:Je.contents)==null||aa.forEach((Be,Cl)=>{(Be==null?void 0:Be.label)!==""&&Ge.push({label:(Be==null?void 0:Be.label)??"",id:(Be==null?void 0:Be.id)??Cl,type:(Be==null?void 0:Be.type)??"",background:Be==null?void 0:Be.background})}),K.value=Ge}else K.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",C3,[E.value===a.unref(no).TEXT?(a.openBlock(),a.createBlock(wc,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:k.value,textColor:g.value,backGround:L.value,backGroundImage:j.value,disabled:ye.value||la(),"onUpdate:backGroundImage":ra},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):E.value===a.unref(no).BLOCK?(a.openBlock(),a.createBlock(sf,{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:L.value,backGroundImage:j.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(no).ORDINARY})},[a.createVNode(dl.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:K.value,isRowFlex:!1,isEnableWrap:!0,textSize:k.value,textColor:g.value,backGround:L.value,backGroundImage:j.value,onOnButtonClick:Sa,onChange:da,formDisabled:ye.value||la(),formLabelsOperable:H.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",E3,[a.createVNode(ze,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",S3,[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:F,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",D3,[(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(dl._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",B3,[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(dl.ssFilePreview,{key:3,fileDataList:I.value,onDestroy:Ce},null,8,["fileDataList"])):a.createCommentVNode("",!0),y.value?(a.openBlock(),a.createBlock(xr.ssDialog,{key:4,visible:y.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(_i.ThreeViewerHost,{files:v.value,onGetAnimationData:me.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},ys=Jl._export_sfc(N3,[["__scopeId","data-v-752d82ac"]]),zi=a.ref(0),_c=l=>{var n;return!l||(l==null?void 0:l.length)===0?[]:(n=O.cloneDeep(l))==null?void 0:n.map(o=>(zi.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)??zi.value,children:_c(o==null?void 0:o.children)},o))},T3=l=>{var r;return(r=O.cloneDeep(l))==null?void 0:r.map(o=>(zi.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)??zi.value,children:_c(o==null?void 0:o.children)},o))},Cc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===n)?(r=O.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=Cc(o==null?void 0:o.children,n),o)),l)},Ec=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=O.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=Ec(o==null?void 0:o.children,n),o)),l)},Sc=(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=O.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=Sc(o==null?void 0:o.children,n),o)),l)},Dc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=O.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=Dc(o==null?void 0:o.children,n),o)),l)},ar=[{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"}],A3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],z3=[{label:"新增",value:"add"}],Ln=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:z3},{key:"background",label:"按钮背景色",type:"Color"}],Rn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:A3},{key:"textColor",label:"按钮颜色",type:"Color"}],M3={class:"table-header-child"},I3={class:"table-header-child-main"},O3={class:"table-header-child-content"},L3={class:"table-header-child-content-item"},R3={class:"fix-button"},$3={key:0},V3={class:"form-content"},P3={__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(O.pinia),{tableIndex:p}=O.storeToRefs(y);a.ref(0);const v=a.ref(""),m=a.ref([]),u=a.ref([]),w=C=>{var E;s.value=!0;let _=[];ar==null||ar.forEach(k=>{let g=O.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",O.cloneDeep(C))},R=C=>{o("deleteChange",O.cloneDeep(C))},S=C=>{s.value=!0;let _=[];ar==null||ar.forEach(E=>{let k=O.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=_},K=C=>{let _=O.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=ar==null?void 0:ar.find(L=>(L==null?void 0:L.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:O.cloneDeep(C),id:c.value,type:"fix"});else{let k=O.cloneDeep(p.value)+1;y.setTableIndex(k),C.id="id"+p.value,(E=m.value)==null||E.forEach(g=>{const L=ar==null?void 0:ar.find(j=>(j==null?void 0:j.label)===(g==null?void 0:g.label));L?C[L.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:O.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=>{un.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",M3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(k,g)=>(a.openBlock(),a.createElementBlock("div",I3,[a.createElementVNode("div",O3,[a.createElementVNode("div",L3,a.toDisplayString(k.label),1),a.createElementVNode("div",R3,[a.createVNode(E,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>S(k)},null,8,["onClick"]),a.createVNode(E,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>w(k)},null,8,["onClick"]),a.createVNode(E,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>ee(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(a.openBlock(),a.createElementBlock("div",$3,[a.createVNode(Bc,{tableChildContents:k==null?void 0:k.children,onDeleteChange:R,onFixChange:D},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:A,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",V3,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:K},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"])])}}},F3=Jl._export_sfc(P3,[["__scopeId","data-v-e0fef72d"]]),j3={class:"table-header-child"},H3={class:"table-header-child-main"},U3={class:"table-header-child-content"},q3={class:"table-header-child-content-item"},W3={class:"fix-button"},K3={key:0},G3={class:"form-content"},Y3={class:"dialog-footer"},J3={__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(O.pinia),{tableIndex:p}=O.storeToRefs(y),v=a.ref(""),m=a.ref([]),u=a.ref([]),w=C=>{o("fixChange",O.cloneDeep(C))},D=C=>{var E;s.value=!0;let _=[];ar==null||ar.forEach(k=>{let g=O.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=_},R=C=>{s.value=!0;let _=[];ar==null||ar.forEach(E=>{let k=O.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 _=O.cloneDeep(u.value);_=_==null?void 0:_.map(E=>(E.children||(E.value=C==null?void 0:C[E.name]),E)),u.value=_},K=()=>{var _,E;m.value=u.value;let C={};if(v.value!=="")C.id=v.value,(_=m.value)==null||_.forEach(k=>{const g=ar==null?void 0:ar.find(L=>(L==null?void 0:L.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:O.cloneDeep(C),id:c.value,type:"fix"});else{let k=O.cloneDeep(p.value)+1;y.setTableIndex(k),C.id="idChild"+p.value,(E=m.value)==null||E.forEach(g=>{const L=ar==null?void 0:ar.find(j=>(j==null?void 0:j.label)===(g==null?void 0:g.label));L?C[L.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:O.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=>{un.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",j3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(g,L)=>(a.openBlock(),a.createElementBlock("div",H3,[a.createElementVNode("div",U3,[a.createElementVNode("div",q3,a.toDisplayString(g.label),1),a.createElementVNode("div",W3,[a.createVNode(E,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>R(g)},null,8,["onClick"]),a.createVNode(E,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>D(g)},null,8,["onClick"]),a.createVNode(E,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>A(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",K3,[a.createVNode(F3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:ee,onFixChange:w},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:I,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",G3,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:S},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Y3,[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:K,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Bc=Jl._export_sfc(J3,[["__scopeId","data-v-ebd68fa1"]]),X3={class:"table-operate-content"},Z3={class:"table-operate-item"},Q3={class:"operate-title"},e1={class:"operate-content"},a1={class:"fix-content"},l1={class:"fix-content-label"},r1={class:"fix-button"},n1={key:0},o1={class:"operate-title"},i1={class:"operate-content"},s1={class:"fix-content"},c1={class:"fix-content-label"},u1={class:"fix-button"},d1={class:"operate-title"},p1={class:"operate-content"},f1={class:"fix-content"},h1={class:"fix-content-label"},v1={class:"fix-button"},m1={class:"operate-title"},y1={class:"operate-content"},g1={class:"fix-content"},b1={class:"fix-content-label"},k1={class:"fix-button"},x1={class:"operate-content"},w1={style:{display:"flex","justify-content":"space-between"}},_1={class:"form-content"},C1={class:"dialog-footer"},E1={class:"form-content"},S1={class:"dialog-footer"},D1={class:"form-content"},B1={class:"dialog-footer"},N1={class:"form-content"},T1={class:"dialog-footer"},A1={__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(""),R=a.ref(""),S=a.ref([]),K=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([]),L=a.ref([]),j=()=>{ee.value=!0;let P=[];Ln==null||Ln.forEach(V=>{E.value++,P.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:(V==null?void 0:V.key)==="background"?"var(--ssComponent-primary-color)":"",id:E.value,contents:V==null?void 0:V.options})}),C.value=P,_.value=P},W=()=>{var V,X,se;y.value=!0;let P=[];(se=(X=(V=oa.FormContent)==null?void 0:V.find(ue=>(ue==null?void 0:ue.key)==="Input"))==null?void 0:X.value)==null||se.forEach(ue=>{E.value++,P.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=P,g.value=P},te=P=>{P||(k.value=g.value)},Te=async P=>{var V,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja;if((P==null?void 0:P.类型)!==((X=(V=g.value)==null?void 0:V.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)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==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)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==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)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==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.属性名?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):(P==null?void 0:P[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)})}),P!=null&&P.菜单选项&&((Fa=P==null?void 0:P.菜单选项)==null?void 0:Fa.length)>0){const ze=await oa.menuToContentType(P==null?void 0:P.菜单选项);me=me==null?void 0:me.map(Xe=>((Xe==null?void 0:Xe.name)==="组信息选项"&&(Xe.contents=ze),Xe))}g.value=await oa.selectToBase(O.cloneDeep(me)),k.value=await oa.selectToBase(O.cloneDeep(me))}else{let me=O.cloneDeep(k.value);if(me=me==null?void 0:me.map(Je=>(Je.value=P==null?void 0:P[Je.name],Je)),P!=null&&P.菜单选项&&((ja=P==null?void 0:P.菜单选项)==null?void 0:ja.length)>0){const Je=await oa.menuToContentType(P==null?void 0:P.菜单选项);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(O.cloneDeep(me))}},Ee=async P=>{await Te(P),k.value=g.value},Q=(P,V)=>{if((V==null?void 0:V.type)=="Select"&&(P==null?void 0:P.key)==="selectRelateType"){const X=V==null?void 0:V.optionUrl;return(X==null?void 0:X.selectRelateType)||V[P.key]}if((V==null?void 0:V.type)=="Select"&&(P==null?void 0:P.key)==="menuSelect"){const X=V==null?void 0:V.optionUrl;return(X==null?void 0:X.menuSelect)||V[P.key]}if((V==null?void 0:V.type)=="Select"&&(P==null?void 0:P.key)==="groupSelect"){const X=V==null?void 0:V.optionUrl;return(X==null?void 0:X.groupSelect)||V[P.key]}if((V==null?void 0:V.type)=="Select"&&(P==null?void 0:P.key)==="originalContent")return(V==null?void 0:V.value)||V[P.key];if((V==null?void 0:V.type)=="Select"&&(P==null?void 0:P.key)==="multiple"){const X=V[P.key];return Gs(X)?X:P.default}return(P==null?void 0:P.label)==="类型"&&V[P.key]===""?"Input":(P==null?void 0:P.key)==="isFormColHidden"&&!V[P.key]?!1:V[P.key]},be=async P=>{var se,ue,va,ra,Le,Ce,Sa,da,Fa;y.value=!0;let V=[];const X=await((va=(ue=(se=oa.FormContent)==null?void 0:se.find(ja=>(ja==null?void 0:ja.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.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)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.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)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:Le.value;if(X==null||X.forEach(ja=>{E.value++,V.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)==="属性名"?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):Q(ja,P),id:E.value,contents:ja==null?void 0:ja.options})}),P!=null&&P.menuSelect&&((Fa=P==null?void 0:P.menuSelect)==null?void 0:Fa.length)>0){const ja=await oa.menuToContentType(P==null?void 0:P.menuSelect);V=V==null?void 0:V.map(me=>((me==null?void 0:me.name)==="组信息选项"&&(me.contents=ja),me))}D.value=P==null?void 0:P.id,k.value=await oa.selectToBase(oa.formToOptionsContents(V)),g.value=await oa.selectToBase(oa.formToOptionsContents(V))},Z=P=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,X;L.value=(V=O.cloneDeep(L.value))==null?void 0:V.filter(se=>(se==null?void 0:se.id)!==(P==null?void 0:P.id)),o("change",(X=O.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="tableToForm"&&(se.contents=L.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 P={};D.value!==""?P.id=D.value:(E.value++,P.id="id"+E.value);let V=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=V==null?void 0:V.find(ze=>(ze==null?void 0:ze.label)===(me==null?void 0:me.label));Je&&(P[Je.key]=me.value)}),P.name=P.label,(Sa=L.value)!=null&&Sa.find(me=>me.id===P.id))L.value=(da=L.value)==null?void 0:da.map(me=>(me.id===P.id&&(me=P),me));else{let me=O.cloneDeep(L.value);L.value||(L.value=[]),me.push(P),L.value=me}L.value=L.value.map(({id:me,...Je})=>Je),y.value=!1,D.value="";let X=O.cloneDeep(r.originalItemContents);(Fa=O.cloneDeep(r.originalItemContents))!=null&&Fa.find(me=>(me==null?void 0:me.key)==="tableToForm")?X=(ja=O.cloneDeep(r.originalItemContents))==null?void 0:ja.map(me=>((me==null?void 0:me.key)==="tableToForm"&&(me.contents=L.value),me)):X.push({key:"tableToForm",contents:L.value}),o("change",X)},wa=P=>{ee.value=!0;let V=[];Ln==null||Ln.forEach(X=>{E.value++,V.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:P[X.key],id:E.value,contents:X==null?void 0:X.options})}),D.value=P==null?void 0:P.id,C.value=V,_.value=V};a.watch(()=>u.value,()=>{var V,X;let P=O.cloneDeep(r.originalItemContents);(V=O.cloneDeep(r.originalItemContents))!=null&&V.find(se=>(se==null?void 0:se.key)==="page")?P=(X=O.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="page"&&(se.contents=u.value),se)):P.push({key:"page",contents:u.value}),o("change",P)},{deep:!0});const ie=P=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,X;K.value=(V=O.cloneDeep(K.value))==null?void 0:V.filter(se=>(se==null?void 0:se.id)!==(P==null?void 0:P.id)),o("change",(X=O.cloneDeep(r.originalItemContents))==null?void 0:X.map(se=>((se==null?void 0:se.key)==="extraButton"&&(se.contents=K.value),se))),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},F=()=>{var X,se,ue,va,ra;C.value=_.value;let P={};if(D.value!==""?P.id=D.value:(E.value++,P.id="id"+E.value),(X=C.value)==null||X.forEach(Le=>{const Ce=Ln==null?void 0:Ln.find(Sa=>(Sa==null?void 0:Sa.label)===(Le==null?void 0:Le.label));Ce?P[Ce.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(P.children=Le.children)}),(se=K.value)!=null&&se.find(Le=>Le.id===P.id))K.value=(ue=K.value)==null?void 0:ue.map(Le=>(Le.id===P.id&&(Le=P),Le));else{let Le=O.cloneDeep(K.value)??[];Le.push(P),K.value=Le}ee.value=!1,D.value="";let V=O.cloneDeep(r.originalItemContents);(va=O.cloneDeep(r.originalItemContents))!=null&&va.find(Le=>(Le==null?void 0:Le.key)==="extraButton")?V=(ra=O.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="extraButton"&&(Le.contents=K.value),Le)):V.push({key:"extraButton",contents:K.value}),o("change",V)},H=P=>{let V=O.cloneDeep(_.value);V=V==null?void 0:V.map(X=>(X.children||(X.value=P==null?void 0:P[X.name]),X)),_.value=V},ye=()=>{ee.value=!1,C.value=[],D.value=""},Se=P=>{v.value=!0;let V=[];Rn==null||Rn.forEach(X=>{E.value++,V.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:P[X.key],id:E.value,contents:X==null?void 0:X.options})}),D.value=P==null?void 0:P.id,I.value=V,A.value=V},ke=P=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,X;S.value=(V=O.cloneDeep(S.value))==null?void 0:V.filter(se=>(se==null?void 0:se.id)!==(P==null?void 0:P.id)),o("change",(X=O.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 P=[];ar==null||ar.forEach(V=>{E.value++,P.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:"",id:E.value,contents:V==null?void 0:V.options})}),m.value=P,w.value=P},ya=()=>{v.value=!0;let P=[];Rn==null||Rn.forEach(V=>{E.value++,P.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:"",id:E.value,contents:V==null?void 0:V.options})}),I.value=P,A.value=P},Ha=P=>{let V=O.cloneDeep(A.value);V=V==null?void 0:V.map(X=>(X.children||(X.value=P==null?void 0:P[X.name]),X)),A.value=V},re=()=>{var X,se,ue,va,ra;I.value=A.value;let P={};if(D.value!==""?P.id=D.value:(E.value++,P.id="id"+E.value),(X=I.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?P[Ce.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(P.children=Le.children)}),(se=S.value)!=null&&se.find(Le=>Le.id===P.id))S.value=(ue=S.value)==null?void 0:ue.map(Le=>(Le.id===P.id&&(Le=P),Le));else{let Le=O.cloneDeep(S.value);Le.push(P),S.value=Le}v.value=!1,D.value="";let V=O.cloneDeep(r.originalItemContents);(va=O.cloneDeep(r.originalItemContents))!=null&&va.find(Le=>(Le==null?void 0:Le.key)==="rowButton")?V=(ra=O.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="rowButton"&&(Le.contents=S.value),Le)):V.push({key:"rowButton",contents:S.value}),o("change",V)},la=()=>{v.value=!1,D.value="",A.value=[],I.value=[]},Ve=P=>{c.value=!0;let V=[];ar==null||ar.forEach(X=>{E.value++,V.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=V,R.value=P==null?void 0:P.id,w.value=V},ba=P=>{var V;p.value=Cc(O.cloneDeep(p.value),P==null?void 0:P.id),o("change",(V=O.cloneDeep(r.originalItemContents))==null?void 0:V.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=P=>{var X,se,ue;P.type==="fix"?P.id!==""?p.value=Sc(p.value,P):p.value=Ec(p.value,P==null?void 0:P.contents):p.value=Dc(p.value,P),p.value=(X=p.value)!=null&&X.some(va=>va==null?void 0:va.children)?[p.value]:p.value,D.value="";let V=O.cloneDeep(r.originalItemContents);(se=O.cloneDeep(r.originalItemContents))!=null&&se.find(va=>(va==null?void 0:va.key)==="header")?V=(ue=O.cloneDeep(r.originalItemContents))==null?void 0:ue.map(va=>((va==null?void 0:va.key)==="header"&&(va.contents=p.value),va)):V.push({key:"header",contents:p.value}),o("change",V)},Ie=P=>{var X;c.value=!0;let V=[];ar==null||ar.forEach(se=>{E.value++,V.push({label:se==null?void 0:se.label,name:se==null?void 0:se.label,type:se.type,value:P[se.key],id:E.value,contents:se==null?void 0:se.options})}),P!=null&&P.children&&((X=P==null?void 0:P.children)==null?void 0:X.length)>0&&V.push({children:P==null?void 0:P.children,isFormColHidden:!0}),D.value=P==null?void 0:P.id,R.value="",m.value=V,w.value=V},$e=P=>{let V=O.cloneDeep(w.value);V=V==null?void 0:V.map(X=>(X.children||(X.value=P==null?void 0:P[X.name]),X)),w.value=V},Qe=()=>{c.value=!1,D.value="",R.value="",w.value=[]},Xa=()=>{var X,se,ue,va,ra,Le;m.value=w.value;let P={};if(D.value!==""?P.id=D.value:(E.value++,P.id="id"+E.value),(X=m.value)==null||X.forEach(Ce=>{const Sa=ar==null?void 0:ar.find(da=>(da==null?void 0:da.label)===(Ce==null?void 0:Ce.label));Sa?P[Sa.key]=Ce.value:Ce!=null&&Ce.children&&Ce.children.length>0&&(P.children=Ce.children)}),(se=p.value)!=null&&se.find(Ce=>Ce.id===P.id))p.value=(ue=p.value)==null?void 0:ue.map(Ce=>(Ce.id===P.id&&(Ce=P),Ce));else{let Ce=O.cloneDeep(p.value)??[];R.value===""?Ce.push(P):Ce=Ce==null?void 0:Ce.map(Sa=>(Sa.id===R.value&&(Sa.children||(Sa.children=[]),Sa.children.push(P)),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="",R.value="";let V=O.cloneDeep(r.originalItemContents);(ra=O.cloneDeep(r.originalItemContents))!=null&&ra.find(Ce=>(Ce==null?void 0:Ce.key)==="header")?V=(Le=O.cloneDeep(r.originalItemContents))==null?void 0:Le.map(Ce=>((Ce==null?void 0:Ce.key)==="header"&&(Ce.contents=p.value),Ce)):V.push({key:"header",contents:p.value}),o("change",V)},Wa=P=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,X;p.value=(V=O.cloneDeep(p.value))==null?void 0:V.filter(se=>(se==null?void 0:se.id)!==(P==null?void 0:P.id)),o("change",(X=O.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 P,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=O.cloneDeep(r.originalItemContents),p.value=(V=(P=s.value)==null?void 0:P.find(Ae=>(Ae==null?void 0:Ae.key)==="header"))==null?void 0:V.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,K.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,L.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=T3(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}),K.value=(Xe=K.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}),L.value)L.value=(ua=L.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(O.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:"关联绑定列"})}),L.value=Ae}},{deep:!0,immediate:!0}),(P,V)=>{const X=a.resolveComponent("svg-icon"),se=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",X3,[a.createElementVNode("div",Z3,[a.createElementVNode("div",Q3,[V[2]||(V[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(()=>[V[1]||(V[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",e1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",a1,[a.createElementVNode("div",l1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",r1,[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",n1,[a.createVNode(Bc,{tableChildContents:ue==null?void 0:ue.children,onDeleteChange:ba,onFixChange:Fe},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",o1,[V[4]||(V[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(()=>[V[3]||(V[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",i1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",s1,[a.createElementVNode("div",c1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",u1,[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",d1,[V[6]||(V[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(se,{class:"icon-content",id:"themeButton",onClick:j},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[V[5]||(V[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",p1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(K.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",f1,[a.createElementVNode("div",h1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",v1,[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",m1,[V[8]||(V[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(se,{class:"icon-content",id:"themeButton",onClick:W},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[V[7]||(V[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",y1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.value,(ue,va)=>(a.openBlock(),a.createElementBlock("div",{key:va},[a.createElementVNode("div",g1,[a.createElementVNode("div",b1,a.toDisplayString(ue==null?void 0:ue.label),1),a.createElementVNode("div",k1,[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))]),V[10]||(V[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",x1,[a.createElementVNode("div",w1,[V[9]||(V[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(dl._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":V[0]||(V[0]=ue=>u.value=ue)},null,8,["modelValue"])])])]),a.createVNode(xr.ssDialog,{visible:c.value,onBeforeDestroy:Qe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",_1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:$e},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",C1,[a.createVNode(se,{onClick:Qe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>V[11]||(V[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(se,{class:"ok-button button",onClick:Xa,id:"themeButton"},{default:a.withCtx(()=>V[12]||(V[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:v.value,onBeforeDestroy:la,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",E1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:Ha},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",S1,[a.createVNode(se,{onClick:la,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>V[13]||(V[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(se,{class:"ok-button button",onClick:re,id:"themeButton"},{default:a.withCtx(()=>V[14]||(V[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:ee.value,onBeforeDestroy:ye,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",D1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:H},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",B1,[a.createVNode(se,{onClick:ye,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>V[15]||(V[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(se,{class:"ok-button button",onClick:F,id:"themeButton"},{default:a.withCtx(()=>V[16]||(V[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:y.value,onBeforeDestroy:de,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",N1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:Te,onChangeVisible:te,onBlurChange:Ee},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",T1,[a.createVNode(se,{onClick:de,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>V[17]||(V[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(se,{class:"ok-button button",onClick:je,id:"themeButton"},{default:a.withCtx(()=>V[18]||(V[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},z1=Jl._export_sfc(A1,[["__scopeId","data-v-7a6b87b5"]]),M1=O.useModelComp(O.pinia),{pageMapState:I1}=O.storeToRefs(M1),O1=O.useMenuState(O.pinia),{activeMenuPath:L1}=O.storeToRefs(O1),R1=a.ref(24),$1=a.ref(6),V1=a.ref(10),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,R,S,K,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)||R1.value,h:((w=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:w.h)||r,minW:((R=(D=l==null?void 0:l.value)==null?void 0:D.tableData)==null?void 0:R.minW)||$1.value,minH:((K=(S=l==null?void 0:l.value)==null?void 0:S.tableData)==null?void 0:K.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},Nc=(l,n,r)=>{var y,p;const o=(p=(y=I1.value)==null?void 0:y[L1.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)=>Nc(v,m))),{...H1(s,n,c,l)}},q1=(l,n)=>{if((l==null?void 0:l.length)===0)return[];const r=O.cloneDeep(l);return Array.isArray(l)?r==null?void 0:r.map((o,s)=>Nc(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,R]of Object.entries((r==null?void 0:r.comp)||{}))if((w==null?void 0:w.prop)===D)return{...w,value:R};return w})},{immediate:!0});const c=p=>dl.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=Jl._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,L,j,W,te,Te,Ee,Q,be;const C=((te=(W=(j=(L=(g=r==null?void 0:r.comp)==null?void 0:g.compData)==null?void 0:L.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:j.contents)==null?void 0:W.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 R=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})},K=(A,ee)=>{m.value=ee==null?void 0:ee.changeProp,R(A)},I=A=>{o("onButtonClick",A)};return(A,ee)=>(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:p.value.formRules,buttonValue:p.value.buttonValue,onChange:S,onBlurChange:K,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue"]))}}),X1=Jl._export_sfc(J1,[["__scopeId","data-v-7c660c1f"]]),Z1={};function Q1(l,n){return null}const e2=Jl._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),R=a.ref([]),S=a.ref([]),K=(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 Gs(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,F,H;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)??((F=(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:F.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:K(ye,Q),id:D.value,contents:ye==null?void 0:ye.options,width:(Q==null?void 0:Q.width)??1})}),Q!=null&&Q.menuSelect&&((H=Q==null?void 0:Q.menuSelect)==null?void 0:H.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})}),R.value=be,S.value=be,u.value=Q==null?void 0:Q.id};a.watch(()=>w.value,()=>{var be,Z;let Q=O.cloneDeep(r.originalItemContents);(be=O.cloneDeep(r.originalItemContents))!=null&&be.find(de=>(de==null?void 0:de.key)==="enableWrap")?Q=(Z=O.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;R.value=S.value;let Q={};if(u.value!==""?Q.id=u.value:(D.value++,Q.id="id"+D.value),(Z=R.value)==null||Z.forEach(F=>{var ye;const H=(ye=oa.FormButton)==null?void 0:ye.find(Se=>(Se==null?void 0:Se.label)===(F==null?void 0:F.label));H&&(Q[H.key]=F.value)}),(de=v.value)!=null&&de.find(F=>F.id===Q.id))v.value=(je=v.value)==null?void 0:je.map(F=>(F.id===Q.id&&(F=Q),F));else{let F=O.cloneDeep(v.value);v.value||(v.value=[]),F.push(Q),v.value=F}p.value=!1,u.value="";let be=O.cloneDeep(r.originalItemContents);(wa=O.cloneDeep(r.originalItemContents))!=null&&wa.find(F=>(F==null?void 0:F.key)==="formButton")?be=(ie=O.cloneDeep(r.originalItemContents))==null?void 0:ie.map(F=>((F==null?void 0:F.key)==="formButton"&&(F.contents=v.value),F)):be.push({key:"formButton",contents:v.value}),o("change",be)},C=Q=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var be,Z;m.value=(be=O.cloneDeep(m.value))==null?void 0:be.filter(de=>(de==null?void 0:de.id)!==(Q==null?void 0:Q.id)),o("change",(Z=O.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=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var be,Z;v.value=(be=O.cloneDeep(v.value))==null?void 0:be.filter(de=>(de==null?void 0:de.id)!==(Q==null?void 0:Q.id)),o("change",(Z=O.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})}),R.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=O.cloneDeep(S.value);be=be==null?void 0:be.map(Z=>(Z.value=Q==null?void 0:Q[Z.name],Z)),S.value=be},L=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&&Ci.isString(de.value)&&(de.value=[de.value]),!(Z!=null&&Z.value)&&!Ci.isString(de.value)&&(de.value="")},j=async Q=>{var be,Z,de,je,wa,ie,F,H,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=(H=oa.FormContent)==null?void 0:H.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):(F=(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:F.value;if(Ha==null||Ha.forEach(re=>{var Ve,ba;D.value++;const la=Bu(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))}L(ya),y.value=await oa.selectToBase(O.cloneDeep(ya)),c.value=await oa.selectToBase(O.cloneDeep(ya))}else{let ya=O.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),L(ya),y.value=await oa.selectToBase(O.cloneDeep(ya))}},W=Q=>{Q||(c.value=y.value)},te=async Q=>{await j(Q),c.value=y.value},Te=$a.debounce(async()=>{var de,je,wa,ie,F,H,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((F=(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:F.value)??((ye=(H=oa.FormContent)==null?void 0:H.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=O.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=O.cloneDeep(r.originalItemContents);(ya=O.cloneDeep(r.originalItemContents))!=null&&ya.find(re=>(re==null?void 0:re.key)==="formContent")?Z=(Ha=O.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=O.cloneDeep(r.originalItemContents);m.value=((be=Q==null?void 0:Q.find(F=>(F==null?void 0:F.key)==="formContent"))==null?void 0:be.contents)??[],v.value=((Z=Q==null?void 0:Q.find(F=>(F==null?void 0:F.key)==="formButton"))==null?void 0:Z.contents)??[],w.value=(de=Q==null?void 0:Q.find(F=>(F==null?void 0:F.key)==="enableWrap"))!=null&&de.contents?!((je=Q==null?void 0:Q.find(F=>(F==null?void 0:F.key)==="enableWrap"))!=null&&je.contents):!0,m.value=(wa=O.cloneDeep(m.value))==null?void 0:wa.map((F,H)=>{var Se;let ye=F;return ye.id=(F==null?void 0:F.id)??H,F!=null&&F.label||(F.label=(F==null?void 0:F.key)??(F==null?void 0:F.label)??""),F!=null&&F.type||(F.type=(F==null?void 0:F.type)??""),F.contents=((Se=F==null?void 0:F.options)==null?void 0:Se.length)===0?(F==null?void 0:F.contents)??"":F==null?void 0:F.options,ye}),m.value=oa.formToOptionsContents(m.value),v.value=(ie=v.value)==null?void 0:ie.map((F,H)=>F={label:(F==null?void 0:F.label)??"",type:(F==null?void 0:F.type)??"",background:(F==null?void 0:F.background)??"var(--ssComponent-primary-color)",id:H})},{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(dl._sfc_main$1,{modelValue:w.value,"onUpdate:modelValue":be[0]||(be[0]=je=>w.value=je)},null,8,["modelValue"])])]),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:Ee,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",p2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:j,onChangeVisible:W,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(xr.ssDialog,{visible:p.value,onBeforeDestroy:Ee,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",h2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:R.value,key:R.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"])])}}},gs=Jl._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}},R=I=>{var A,ee,C;if((I==null?void 0:I.buttonName)==="确认"){const _=O.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}]}),K=()=>{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(dl.ssForm,{rowContents:s.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:K,width:p.width},{default:a.withCtx(()=>[a.createElementVNode("div",b2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),x2=Jl._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}},R=I=>{var A,ee,C,_;if((I==null?void 0:I.buttonName)==="确认"){const E=O.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}]}),K=()=>{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(dl.ssForm,{rowContents:p.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:K,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",E2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),D2=Jl._export_sfc(S2,[["__scopeId","data-v-39ffc861"]]),B2={};function N2(l,n){return a.openBlock(),a.createElementBlock("div")}const T2=Jl._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=O.cloneDeep(r.itemData);s.value=(_=O.cloneDeep(C))==null?void 0:_.map(E=>{var k;if(E.key==="extra"){let g=[];(k=E.value)==null||k.forEach(L=>{var j;g.push((j=Object.values(L))==null?void 0:j[0])}),E.value=g}return E})},{deep:!0,immediate:!0});const w=(C,_,E,k)=>{var L;let g={};((L=C==null?void 0:C[0])==null?void 0:L.contents)==="详情"&&(p.value=!0,g[_]=C,c.value=C==null?void 0:C.filter(j=>(j==null?void 0:j.key)!=="tableContentName"),v.value=g,m.value=E,u.value=k.id)},D=C=>{var j,W,te,Te;const _=(W=(j=Object.values(O.cloneDeep(v.value)))==null?void 0:j[0])==null?void 0:W.filter(Ee=>(Ee==null?void 0:Ee.key)==="tableContentName"),E=(Te=(te=Object.values(O.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 F in wa)F!=="id"&&(ie[F]=wa[F]);return ie}))==null?void 0:je.map(wa=>Object.values(wa))),Z})),Ee});k.unshift(_==null?void 0:_[0]);let g=O.cloneDeep(v.value),L={};for(let Ee in g)L[Ee]=k;v.value=L},R=()=>{p.value=!1,v.value={},m.value={},u.value=void 0,o.value++},S=C=>{var j,W,te,Te;const _=(W=(j=Object.values(O.cloneDeep(v.value)))==null?void 0:j[0])==null?void 0:W.filter(Ee=>(Ee==null?void 0:Ee.key)==="tableContentName"),E=(Te=(te=Object.values(O.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=O.cloneDeep(v.value),L={};for(let Ee in g)L[Ee]=k;v.value=L},K=()=>{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=>To(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(xr.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:R,id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(E,{class:"confirm-button footer-button",onClick:K,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},L2=Jl._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(O.pinia),{originalPath:o}=O.storeToRefs(r),s=l,c=a.ref(!1),y=a.ref(),p=oa.useTableComp(O.pinia),{multipleTableConst:v}=O.storeToRefs(p),m=O.useModelComp(O.pinia),u=a.ref(!1),w=O.useMenuState(O.pinia),D=O.useLoginState(O.pinia),{itemData:R,isEdit:S,routeToChildPath:K,tableViewContents:I,lockingPage:A,payloadTypes:ee}=O.storeToRefs(m),{activeMenuPath:C,platform:_,childMenu:E}=O.storeToRefs(w),{loginUserInfo:k}=O.storeToRefs(D),g=a.ref(!1),L=async()=>{var ie,F;(ie=n.value)!=null&&ie.find(H=>(H==null?void 0:H.buttonName)==="保存")&&await Z((F=n.value)==null?void 0:F.find(H=>(H==null?void 0:H.buttonName)==="保存")),await oa.onSaveBack()};a.watch(()=>R.value,async()=>{S.value==="view"&&!g.value&&await wa(O.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const j=()=>{c.value=!1,y.value=void 0},W=ie=>ie.map(F=>{const H={};for(const ye in F){const Se=F[ye];if(ye.includes(v.value)){const ke=ye.split(v.value);let Ze=H;ke.forEach((ya,Ha)=>{Ha===ke.length-1?Ze[ya]=Se:(Ze[ya]||(Ze[ya]={}),Ze=Ze[ya])})}else H[ye]=Se}return H}),te=async(ie,F,H=[])=>{var Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa;let ye=(Se=O.cloneDeep(F))==null?void 0:Se.filter(P=>(P==null?void 0:P.comp)!=="methodButton");if(ie!=null&&ie.includes("[")){let P=(re=(Ha=(ya=(Ze=(ke=O.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(":"),V="";if(P!=null&&P[0]){let X=(la=ye==null?void 0:ye.find(se=>(se==null?void 0:se.name)===(P==null?void 0:P[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,"","",H);X=(ba=ue==null?void 0:ue.find(va=>(va==null?void 0:va.name)===(P==null?void 0:P[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)===(P==null?void 0:P[1])&&(Array.isArray(da==null?void 0:da.value)?V=da==null?void 0:da.value:V=(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=(P==null?void 0:P[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=W(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)})}V=da}})}return V}else if(ie!=null&&ie.includes("/")){let P={};return(Fe=O.cloneDeep(ye))==null||Fe.forEach((V,X)=>{var se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa;if((V==null?void 0:V.comp)==="Table"){let Ua=Array.isArray((va=(ue=(se=V==null?void 0:V.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=V==null?void 0:V.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=V==null?void 0:V.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=V==null?void 0:V.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=V==null?void 0:V.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?P[V.name]=P!=null&&P[V.name]?P[V.name]:oa.tableToForm(ga,We):P[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]})})}),P["form"+X]=Ne}}else{const Ua=(fa=(za=V.compData)==null?void 0:za.find(He=>(He==null?void 0:He.key)==="formContent"))==null?void 0:fa.contents;P!=null&&P.form||(P.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))}),P.form=[...ga,...O.cloneDeep(P==null?void 0:P.form)]}}),P}else{if(ie==="createInsofDataApi"){let P=(Ie=O.cloneDeep(F))==null?void 0:Ie[0];return P={comp:($e=O.cloneDeep(P))==null?void 0:$e.comp,compData:(Qe=O.cloneDeep(P))==null?void 0:Qe.compData,name:(Xa=O.cloneDeep(P))==null?void 0:Xa.name,isShow:(Wa=O.cloneDeep(P))==null?void 0:Wa.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:C.value},value:{pageData:P}}}return ie}},Te=async(ie,F,H)=>{var ke,Ze,ya;let ye=await oa.getItemData(F,sessionStorage.getItem("systemKey"),""),Se=ye==null?void 0:ye.find(Ha=>(Ha==null?void 0:Ha.name)===(H==null?void 0:H[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Ha={};for(let $e in O.cloneDeep(ie))O.cloneDeep(ie)[$e]!=="loginUser"?Ha[$e]=O.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[H[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)===(H==null?void 0:H[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(P=>{P!=null&&P.some(V=>ba.includes(V))&&Ve.push({[P.find(V=>V.id).id]:P.find(V=>ba.includes(V))})}))}))});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(P=>{var V;return((V=Object.keys(P))==null?void 0:V[0].toString())===$e.toString()}))==null?void 0:Wa[$e],Xa=re==null?void 0:re.find(P=>{var V;return((V=Object.keys(P))==null?void 0:V[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=O.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)===(H==null?void 0:H[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:H==null?void 0:H[1],value:{pageData:re}}),(la==null?void 0:la.length)>0)return la}}},Ee=async(ie,F,H)=>{var ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie;let ye=await oa.getItemData(F,sessionStorage.getItem("systemKey"),""),Se=ye==null?void 0:ye.find($e=>($e==null?void 0:$e.name)===(H==null?void 0:H[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let $e={};for(let Qe in O.cloneDeep(ie))O.cloneDeep(ie)[Qe]!=="loginUser"?$e[Qe]=O.cloneDeep(ie)[Qe]:$e[Qe]=((ke=k.value)==null?void 0:ke.account)||((Ze=k.value)==null?void 0:Ze.账号);await Sr.createInsofDataApi({key:{type:"data",pageKey:F,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=O.cloneDeep(Se),Qe=Object.keys(ie),Xa="";(Ha=(ya=O.cloneDeep($e))==null?void 0:ya.compData)==null||Ha.forEach(ue=>{var va,ra;(ue==null?void 0:ue.key)==="formContent"&&((ra=(va=O.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 P=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=O.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=O.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}}),V=await Promise.all(P);$e.compData=(Ve=(la=O.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=O.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=V==null?void 0:V.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=O.cloneDeep(ie))==null?void 0:da[Xa])==null?void 0:Fa[Le==null?void 0:Le.key]),Le})),ue});const X=await Sr.getInsofDataApi({key:{type:"structure",pageKey:F,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)===(H==null?void 0:H[0])&&(se=ue.id)}),await Sr.updateInsofDataApi({id:se,value:{pageData:$e}}))}}},Q=(ie,F="",H={})=>{for(const[ye,Se]of Object.entries(ie)){const ke=F?`${F}.${ye}`:ye;Se!==null&&typeof Se=="object"&&!Array.isArray(Se)&&Object.prototype.toString.call(Se)!=="[object Date]"?Q(Se,ke,H):H[ke]=Se}return H},be=async(ie,F,H,ye)=>{var Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,P,V,X,se,ue,va,ra,Le,Ce,Sa,da,Fa;let Se=await oa.getItemData(F,sessionStorage.getItem("systemKey"),""),ke=Se==null?void 0:Se.find(ja=>(ja==null?void 0:ja.name)===(H==null?void 0:H[0]));if(ke){if(!(H!=null&&H[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 O.cloneDeep(ie))if(O.cloneDeep(ie)[pa]!=="loginUser"){let ua=Q(O.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 Sr.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 Sr.batchDeleteInsofDataApi({ids:pa})}let Xe=[];if((Qe=ke==null?void 0:ke.compData)!=null&&Qe.find(pa=>(pa==null?void 0:pa.key)==="pageColumn")&&((P=(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&&P.includes("["))){const pa=await Sr.getInsofDataApi({id:ke==null?void 0:ke.tableId});let ua=((ue=(se=(X=(V=pa==null?void 0:pa.data)==null?void 0:V.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:F,tableId:ke==null?void 0:ke.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:pa}})});(Xe==null?void 0:Xe.length)>0&&await Sr.batchAddInsofDataApi({dataList:Xe})}else if(!(H!=null&&H[1])&&(ke==null?void 0:ke.comp)==="Form"){let ja=O.cloneDeep(ke);ja.compData=(Ce=(Le=O.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=O.cloneDeep(ze))==null?void 0:Xe.contents)==null?void 0:pa.map(ua=>{var Ae,za;return(Ae=O.cloneDeep(ie))!=null&&Ae[ua==null?void 0:ua.key]&&(ua.value=(za=O.cloneDeep(ie))==null?void 0:za[ua==null?void 0:ua.key]),ua})),ze});const me=await Sr.getInsofDataApi({key:{type:"structure",pageKey:F,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)===(H==null?void 0:H[0])&&(Je=ze.id)}),await Sr.updateInsofDataApi({id:Je,value:{pageData:ja}}))}}},Z=async ie=>{var F,H,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=O.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(((H=(F=ie==null?void 0:ie.extraValues)==null?void 0:F.input)==null?void 0:H.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 P=!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")&&(P=!0)});let V;if(P){const ra=Po.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});V=await al.axios.post(ie.api,Wa,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ra.close()})}else V=await al.axios.post(ie.api,Wa,{headers:{"Content-Type":"application/json"}});let X=(la=(re=(Ha=(ya=O.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=O.cloneDeep((Sa=Object.values(ra))==null?void 0:Sa[0]))==null?void 0:da.split("["))==null?void 0:Je[((me=(ja=O.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=O.cloneDeep((pa=Object.values(ra))==null?void 0:pa[0]))==null?void 0:Ae.substring(0,O.cloneDeep((ua=Object.values(ra))==null?void 0:ua[0]).lastIndexOf("["));if(We=(fa=O.cloneDeep(We))==null?void 0:fa.slice(0,((za=O.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,fl,Ma,Hl;if(!(De!=null&&De.includes("[")))Ne=Ne===""?Ne+De.replaceAll("/",""):Ne+"/"+De.replaceAll("/","");else{let Ea=O.cloneDeep(De).slice(1,((fe=O.cloneDeep(De))==null?void 0:fe.length)-1),_a=(Ma=(fl=(Pa=(ia=(oe=O.cloneDeep(Ea))==null?void 0:oe.split("["))==null?void 0:ia[1])==null?void 0:Pa.split("]"))==null?void 0:fl[0])==null?void 0:Ma.split(":"),Ra="",Va=(Hl=Qe==null?void 0:Qe.find(qa=>(qa==null?void 0:qa.name)===(_a==null?void 0:_a[0])))==null?void 0:Hl.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(O.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=O.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,fl,Ma,Hl,Ea,_a,Ra,Va,qa,xa,ae,Ye,pe,Ca,qe,Y,aa,Ge,Be,Cl,tl,bl,Ga,Qa,Na,he,Da,El,Vl,Fl,nr,yr,Nl,tr,Nr,Ll,lr,Qr,Ir,Ar,Er,zr,Mr,Dr,Vr,Or,sr,gn,Gr,rn,Nn,bn,vn;if((ze=(Je=Object.values(ra))==null?void 0:Je[0])!=null&&ze.includes(".doc")){var Le=new Blob([V.data],{type:"application/octet-stream;charset=UTF-8"}),Ce=V.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 vr=(ga=(Ua=(fa=(pa=O.cloneDeep((Xe=Object.values(ra))==null?void 0:Xe[0]))==null?void 0:pa.split("["))==null?void 0:fa[((za=(Ae=O.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],Ul=vr==null?void 0:vr.split(":"),dr=(Ne=O.cloneDeep((He=Object.values(ra))==null?void 0:He[0]))==null?void 0:Ne.substring(0,O.cloneDeep((We=Object.values(ra))==null?void 0:We[0]).lastIndexOf("["));if(dr!=null&&dr.includes("[")?dr=(fe=O.cloneDeep(dr))==null?void 0:fe.slice(0,((De=O.cloneDeep(dr))==null?void 0:De.length)-1):dr===""&&(dr=C.value),dr=dr.replaceAll("<","[").replaceAll(">","]"),dr!=null&&dr.includes("[")){let Kl="";(oe=oa.contentTransArrayToAll(dr,"/"))==null||oe.forEach((Il,mr)=>{var or,jl,$r,Pr,kn,nn,Xn,Tn,Zn,xn,An;if(!(Il!=null&&Il.includes("[")))Kl=Kl===""?Kl+Il.replaceAll("/",""):Kl+"/"+Il.replaceAll("/","");else{let Pn="",en="";(or=O.cloneDeep(Il))!=null&&or.includes("]")?(Pn=O.cloneDeep(Il).slice(1,((jl=O.cloneDeep(Il))==null?void 0:jl.length)-1),en=(Xn=(nn=(kn=(Pr=($r=O.cloneDeep(Pn))==null?void 0:$r.split("["))==null?void 0:Pr[1])==null?void 0:kn.split("]"))==null?void 0:nn[0])==null?void 0:Xn.split(":")):(Pn=O.cloneDeep(Il).slice(1,(Tn=O.cloneDeep(Il))==null?void 0:Tn.length),en=(Zn=O.cloneDeep(Pn))==null?void 0:Zn.split("/"));let zn="",wn=(xn=Qe==null?void 0:Qe.find(Kr=>(Kr==null?void 0:Kr.name)===(en==null?void 0:en[0])))==null?void 0:xn.compData;wn==null||wn.forEach(Kr=>{var Fn;(Kr==null?void 0:Kr.key)==="formContent"&&((Fn=Kr==null?void 0:Kr.contents)==null||Fn.forEach(mn=>{(mn==null?void 0:mn.key)===(en==null?void 0:en[1])&&(zn=mn==null?void 0:mn.value)}))}),((An=oa.contentTransArrayToAll(dr,"/"))==null?void 0:An.length)-1!==mr?Kl=Kl===""?Kl+zn.replaceAll("/",""):Kl+"/"+zn.replaceAll("/",""):Kl=Kl+o.value+zn.replaceAll("/","")}}),(ia=C.value)!=null&&ia.includes(Kl)?dr=C.value:dr=Kl}let $l=O.cloneDeep((Pa=Object.keys(ra))==null?void 0:Pa[0]);if(((fl=V==null?void 0:V.data)==null?void 0:fl.statusCode)===200||((Ma=V==null?void 0:V.data)==null?void 0:Ma.code)===200){if(((Ea=(Hl=V==null?void 0:V.data)==null?void 0:Hl.data)!=null&&Ea[$l]||(Ra=(_a=V==null?void 0:V.data)==null?void 0:_a.result)!=null&&Ra[$l])&&(Ul==null?void 0:Ul.length)===1)return await be(((qa=(Va=V==null?void 0:V.data)==null?void 0:Va.data)==null?void 0:qa[$l])||((ae=(xa=V==null?void 0:V.data)==null?void 0:xa.result)==null?void 0:ae[$l]),O.cloneDeep(dr),Ul,Xa);if((pe=(Ye=V==null?void 0:V.data)==null?void 0:Ye.data)!=null&&pe[$l]||(qe=(Ca=V==null?void 0:V.data)==null?void 0:Ca.result)!=null&&qe[$l]){let Kl=await Te(((aa=(Y=V==null?void 0:V.data)==null?void 0:Y.data)==null?void 0:aa[$l])||((Be=(Ge=V==null?void 0:V.data)==null?void 0:Ge.result)==null?void 0:Be[$l]),O.cloneDeep(dr),Ul);return Kl&&(ue=[...ue,...Kl]),Kl}else{if(!((Cl=V==null?void 0:V.data)!=null&&Cl.data)){let Kl=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Kl=Kl==null?void 0:Kl.map(mr=>{var or;return(mr==null?void 0:mr.name)===(Ul==null?void 0:Ul[0])&&(mr.compData=(or=mr.compData)==null?void 0:or.map(jl=>{var $r;return(jl==null?void 0:jl.key)==="formContent"&&(jl.contents=($r=jl.contents)==null?void 0:$r.map(Pr=>{var kn,nn;return(Pr==null?void 0:Pr.key)===(Ul==null?void 0:Ul[1])&&(Pr.value=(nn=(kn=V==null?void 0:V.data)==null?void 0:kn.result)==null?void 0:nn[$l==null?void 0:$l.replaceAll(":","")]),Pr})),jl})),mr});let Il=[];(tl=Kl==null?void 0:Kl.filter(mr=>(mr==null?void 0:mr.comp)==="Form"))==null||tl.forEach(async mr=>{let or={};for(let jl in mr)jl!=="id"&&(or[jl]=mr[jl]);Il.push({id:mr==null?void 0:mr.id,value:{pageData:or}})}),(Il==null?void 0:Il.length)>0&&await Sr.batchUpdateInsofDataApi({dataList:Il});return}if((Ul==null?void 0:Ul.length)===1){const Kl=(Qa=(Ga=(bl=V==null?void 0:V.data)==null?void 0:bl.data)==null?void 0:Ga.path)==null?void 0:Qa.path;let Il="";(Vl=(El=(Da=(he=(Na=Kl==null?void 0:Kl.split("("))==null?void 0:Na[1])==null?void 0:he.split(")"))==null?void 0:Da[0])==null?void 0:El.split(":"))==null||Vl.forEach(jl=>{var $r,Pr;Il=Il===""?Il+(($r=jl==null?void 0:jl.replaceAll("'",""))==null?void 0:$r.trim()):Il+"/"+((Pr=jl==null?void 0:jl.replaceAll("'",""))==null?void 0:Pr.trim())});let mr=[(tr=(Nl=(yr=(nr=(Fl=Kl==null?void 0:Kl.split("<"))==null?void 0:Fl[1])==null?void 0:nr.split(">"))==null?void 0:yr[0])==null?void 0:Nl.replaceAll("'",""))==null?void 0:tr.trim()],or;return(lr=(Ll=(Nr=V==null?void 0:V.data)==null?void 0:Nr.data)==null?void 0:Ll.data)!=null&&lr[Ul==null?void 0:Ul[0]]?or=await be((Ar=(Ir=(Qr=V==null?void 0:V.data)==null?void 0:Qr.data)==null?void 0:Ir.data)==null?void 0:Ar[Ul==null?void 0:Ul[0]],Il,Ul,Xa):or=await Ee((zr=(Er=V==null?void 0:V.data)==null?void 0:Er.data)==null?void 0:zr.data,Il,mr,$e),or}else{const Kl=(Vr=(Dr=(Mr=V==null?void 0:V.data)==null?void 0:Mr.data)==null?void 0:Dr.path)==null?void 0:Vr.path;let Il="";return(rn=(Gr=(gn=(sr=(Or=Kl==null?void 0:Kl.split("("))==null?void 0:Or[1])==null?void 0:sr.split(")"))==null?void 0:gn[0])==null?void 0:Gr.split(":"))==null||rn.forEach(or=>{var jl,$r;Il=Il===""?Il+((jl=or==null?void 0:or.replaceAll("'",""))==null?void 0:jl.trim()):Il+"/"+(($r=or==null?void 0:or.replaceAll("'",""))==null?void 0:$r.trim())}),await Te((vn=(bn=(Nn=V==null?void 0:V.data)==null?void 0:Nn.data)==null?void 0:bn.data)==null?void 0:vn[Ul==null?void 0:Ul[0]],Il,Ul)}}}}});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=O.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=O.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=O.cloneDeep(ue))==null?void 0:Ie[0];(Le==null?void 0:Le.length)>0&&await Sr.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 F=O.cloneDeep(ie);let H,ye=new WeakMap;ie!=null&&ie[0].path&&(H=await(F==null?void 0:F.map(async(re,la)=>{var Wa,P,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=F==null?void 0:F[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=(P=$e==null?void 0:$e[0])==null?void 0:P.compData)==null?void 0:V.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=F==null?void 0:F[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=O.cloneDeep(re.value))==null?void 0:me.slice(1),methodName:(re==null?void 0:re.path)??"",extraValues:(Je=F==null?void 0:F[la])==null?void 0:Je.data}})));const Se=F==null?void 0:F.map(async re=>{var $e,Qe,Xa,Wa,P,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:(P=(Wa=Ie==null?void 0:Ie.value)==null?void 0:Wa.tableData)==null?void 0:P[0],content:Fe==null?void 0:Fe.filter(X=>X.comp!=="methodButton"),extraContent:(V=O.cloneDeep(re.value))==null?void 0:V.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(H):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(O.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(ie,F)=>{var H,ye,Se;return a.unref(S)!=="edit"?(a.openBlock(),a.createElementBlock("div",R2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((H=n.value)==null?void 0:H.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(es._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(K)!==""&&((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(es._sfc_main),{key:0,class:"calculator-content",onClickTrigger:L,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:j},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},V2=Jl._export_sfc($2,[["__scopeId","data-v-063aa9af"]]),P2={};function F2(l,n){return" 567 "}const j2=Jl._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=O.cloneDeep(I),o("change",(A=w())==null?void 0:A.compData)},R=I=>{var A,ee;if((I==null?void 0:I.buttonName)==="确认"){const C=O.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}},K=()=>{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(dl.ssForm,{rowContents:p.value,onChange:D},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:K,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",W2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),G2=Jl._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=>dl.getComponent(w),v=()=>{var D;const w=(D=r==null?void 0:r.stepList)==null?void 0:D.find((R,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 K,I,A,ee,C;const R=a.resolveComponent("el-step"),S=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(S,{direction:(K=l.stepConfig)==null?void 0:K.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(R,{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(L=>[a.renderSlot(w.$slots,g,a.mergeProps({ref_for:!0},L||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),J2=Jl._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,R,S;s.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let v=((w=p==null?void 0:p.find(K=>(K==null?void 0:K.key)==="stepName"))==null?void 0:w.contents)??[],m=[];(R=(D=p==null?void 0:p.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:D.contents)==null||R.forEach(K=>{m.push({label:K==null?void 0:K.label,prop:K==null?void 0:K.prop,name:K==null?void 0:K.prop,type:"text",disabled:!0})});let u=((S=p==null?void 0:p.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:S.contents)??[];v=v==null?void 0:v.map((K,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:K,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(dl.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=Jl._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=Jl._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,R)=>{o("contentChange",D,R)},p=D=>{o("pageChange",D)},v=D=>{o("rowClick",D)},m=(D,R)=>{o("routeUrl",D,R)},u=D=>{o("clickTrigger",D)},w=(D,R)=>{o("clickMainKey",D,R)};return(D,R)=>{var S,K;return a.openBlock(),a.createElementBlock("div",nh,[(S=s.value)!=null&&S.length?(a.openBlock(),a.createBlock(dl.ssTab,{tabsContents:s.value,key:(K=s.value)==null?void 0:K.length},{pane:a.withCtx(({tab:I,index:A})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(qo)(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=Jl._export_sfc(oh,[["__scopeId","data-v-ded4e0d9"]]),th={class:"type-select"},sh=["onClick"],ch={class:"list-icon"},uh={__name:"modelSelect",setup(l){const n=Jn(O.pinia),{itemData:r}=O.storeToRefs(n),o=s=>{const c=O.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(Xc),(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=Jl._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=Jn(O.pinia),{itemData:r,originalData:o}=O.storeToRefs(n),s=a.ref([]);a.ref([]);const c=a.ref([]),y=a.ref([]),p=R=>{var K;let S=(K=O.cloneDeep(y.value))==null?void 0:K.map((I,A)=>(R===A&&(I.content=!0),I));y.value=S},v=R=>{var K;let S=(K=O.cloneDeep(y.value))==null?void 0:K.map((I,A)=>(R===A&&(I.content=!1),I));y.value=S,s.value=O.cloneDeep(r.value)},m=(R,S)=>{var ee;let K=(ee=O.cloneDeep(y.value))==null?void 0:ee.map((C,_)=>(R===_&&(C.content=!1),C));y.value=K;const I=O.cloneDeep(r.value),A=I==null?void 0:I.filter((C,_)=>(_===R&&(C.name=S),C));n.setOriginalData(A),n.setItemData(A)};a.watch(()=>r.value,()=>{var R,S,K;!r.value||((R=r.value)==null?void 0:R.length)===0?s.value=[]:s.value=(S=O.cloneDeep(r.value))==null?void 0:S.filter(I=>(I==null?void 0:I.comp)!=="methodButton"),c.value=s.value,y.value=(K=O.cloneDeep(c.value))==null?void 0:K.map((I,A)=>({id:A,content:!1}))},{deep:!0,immediate:!0});const u=R=>To(R),w=(R,S,K)=>{var A,ee;if(!R)return;let I=O.cloneDeep(r.value);I=(A=I==null?void 0:I.map((C,_)=>(_===K&&(C.compData=R),C)))==null?void 0:A.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),y.value=(ee=O.cloneDeep(I))==null?void 0:ee.map((C,_)=>({id:_,content:!1})),n.setOriginalData(I),n.setItemData(I)},D=R=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const S=O.cloneDeep(r.value),K=S==null?void 0:S.filter((I,A)=>A!==R);n.setOriginalData(K),n.setItemData(K),al.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(R,S)=>{const K=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(Ks.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:I,index:A})=>{var ee,C,_,E,k,g,L,j,W,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(dl.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(K,{name:"Edit",style:{width:"16px",height:"16px"}})],8,yh))]),a.createElementVNode("div",gh,[(j=(L=y.value)==null?void 0:L.find(Te=>Te.id===A))!=null&&j.content?(a.openBlock(),a.createElementBlock("div",bh,[a.createVNode(K,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Te=>v(A),["stop"])},null,8,["onClick"]),a.createVNode(K,{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=(W=y.value)==null?void 0:W.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(K,{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=Jl._export_sfc(wh,[["__scopeId","data-v-a46a44b9"]]),Ch={key:0,class:"show-content"},Eh={style:{display:"flex"}},Sh={__name:"modelShow",setup(l){const n=Jn(O.pinia),{itemData:r}=O.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=O.cloneDeep(r.value)},{deep:!0,immediate:!0});const s=c=>To(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=Jl._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),R=Jn(O.pinia),{itemData:S}=O.storeToRefs(R),K=()=>{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 F=_(ie);w.value.delete(F),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 F=s.value[ie];return F.id||(F.id=C()),F.id},E=ie=>{var ye;u.value=ie;const F=_(ie);D.value=O.cloneDeep(S.value);let H=w.value.get(F);!H&&((ye=s.value[ie].children)==null?void 0:ye.length)>0&&(H=j(s.value[ie].children)),H?R.setItemData(O.cloneDeep(H)):R.setItemData([]),m.value=!0},k=a.computed(()=>{const ie=O.useModelComp(O.pinia),F=O.storeToRefs(ie).itemData.value;return console.log("可用组件数据",F),!F||!Array.isArray(F)?[]:F.filter(H=>{var ye;if(H.comp==="Tabs"&&u.value>=0){const Se=_(u.value);if((ye=H.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,L=ie=>{var F;try{const H=O.cloneDeep(ie);H.id=Date.now()+Math.random(),H.comp==="Tabs"&&((F=H.compData)==null||F.forEach(Se=>{Se.key==="stepList"&&Se.contents&&Se.contents.forEach(ke=>{ke.id=C()})}));const ye=O.cloneDeep(S.value);ye.push(H),R.setItemData(ye)}catch(H){console.error("添加组件失败:",H)}},j=ie=>ie.map(F=>{var H;switch(F.type){case"form":return{comp:"Form",name:F.value||"表单",compData:W(F.content)};case"table":return{comp:"Table",name:F.value||"表格",compData:te(F.content)};default:return{comp:"Unknown",name:F.value||"",compData:((H=F.content)==null?void 0:H.originalData)||[]}}}),W=ie=>{if(!ie)return[];const F=[];return ie.rowContents&&F.push({key:"formContent",contents:ie.rowContents}),ie.buttonValue&&F.push({key:"formButton",contents:ie.buttonValue}),typeof ie.isEnableWrap<"u"&&F.push({key:"enableWrap",contents:ie.isEnableWrap}),F},te=ie=>[],Te=()=>{if(u.value>=0&&u.value<s.value.length){const ie=_(u.value);w.value.set(ie,O.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&&R.setItemData(O.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((F,H)=>{if(!F||typeof F!="object")return F;const{comp:ye,name:Se,compData:ke}=F;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 F={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},H={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=H[ke];if(!ya){console.warn(`Unknown Form config key: ${ke}`);return}ke==="enableWrap"?F[ya]=!!Ze:F[ya]=Array.isArray(Ze)?Ze:[]}),F},de=ie=>{const F={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},H={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=H[ke];if(!ya){console.warn(`Unknown Table config key: ${ke}`);return}F[ya]=Array.isArray(Ze)?Ze:[]}),F},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 F=ie.find(H=>H.key==="stepList");F&&F.contents&&(s.value=F.contents.map(H=>({title:H.title||"",value:H.value||H.title||"",label:H.label||H.title||"",children:H.children||[],id:H.id||C()})))}},{immediate:!0,deep:!0}),(ie,F)=>{const H=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,[F[6]||(F[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:K},[a.createVNode(H,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),F[5]||(F[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(xr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":F[2]||(F[2]=Ze=>c.value=Ze),title:y.value,onBeforeDestroy:F[3]||(F[3]=Ze=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:F[1]||(F[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":F[0]||(F[0]=Ze=>p.value.title=Ze),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(xr.ssDialog,{modelValue:m.value,"onUpdate:modelValue":F[4]||(F[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,[F[8]||(F[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=>L(Ze)},[a.createElementVNode("div",Ph,[a.createElementVNode("span",Fh,a.toDisplayString(g(Ze.comp)),1),a.createElementVNode("span",jh,a.toDisplayString(Ze.name),1)]),F[7]||(F[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=Jl._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 Vn={line:{initBaseoptions:Wh,initSeries:Kh},bar:{initBaseoptions:Gh,initSeries:Yh},pie:{initBaseoptions:Jh,initSeries:Xh}},bs=O.useMenuState(O.pinia),Tc=(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 R=!1;al.isObject(D)&&(D!=null&&D.id)&&(R=!0);let S=c,K=y;R&&(S=S+1,K=K+1);const I=w==null?void 0:w[S],A=w==null?void 0:w[K];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&&bs.activeMenuPath&&(p=await oa.getItemData(`${bs.activeMenuPath}`,v,"")),!y){const m=n==null?void 0:n.join("/");p=await oa.getItemData(`${m}^${r}`,v,"")}return Tc(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 Tc(p,{group:r,nameCol:o,valueCol:s})},Dt=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&&dl.isNumber(m)&&dl.isNumber(u)?await Zh({menu:o,mainKey:p,detailGroup:v,detailNameCol:m,detailValueCol:u,isSelfDetail:w}):dl.isNumber(c)&&dl.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=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:y,initSeries:p}=c,v=y();v.title.text=s??"";const{names:m,values:u}=await Dt(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=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:y,initSeries:p}=c,v=y();v.title.text=s??"";const{names:m,values:u}=await Dt(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=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:y,initSeries:p}=c,v=y();v.title.text=s??"";const{names:m,values:u}=await Dt(n,r);if(!m||!u)return v;const w=[];for(let R=0;R<m.length;R++){const S=m[R],K=u[R];w.push({name:S,value:K})}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(Eu.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),o4=Jl._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([]),R=()=>[{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({}),K=()=>{const Fe=D.value,Ie=O.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=K();D.value=Ie,o("change",($e=Ve())==null?void 0:$e.compData)},A=async()=>{const Fe=await oa.getMenusContent(),Ie=K();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=O.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)},L=async()=>{await Q();const Fe=O.cloneDeep(j.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},j=a.ref([]),W=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"}),P=(Wa==null?void 0:Wa.contents)||[];return P==null?void 0:P.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();j.value=Fe},be=async Fe=>{const Ie=sessionStorage.getItem("systemKey");return await oa.getItemData(Fe,Ie,"")},Z=async Fe=>{const Ie=Fe;W.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}`,P=await be(Wa);await Z(P);const V=k();V==null||V.forEach(X=>{(X==null?void 0:X.prop)==="group"&&(X.contents=W.value)}),C.value=V}};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)},F=a.ref([]),H=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);F.value=Ie==null?void 0:Ie.map($e=>{const{name:Qe}=$e;return H.value[Qe]=$e,{label:Qe,value:Qe}})},Ze=async(Fe,Ie)=>{await ke(Fe);const $e=K();$e==null||$e.forEach(Qe=>{(Qe==null?void 0:Qe.prop)==="group"&&(Qe.contents=F.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(P=>{const{key:V}=P;return V==="header"}),Qe=($e==null?void 0:$e.contents)||[],Xa=Qe==null?void 0:Qe.filter((P,V)=>{const{label:X}=P;return X!=="操作"}),Wa=Xa==null?void 0:Xa.map((P,V)=>{const{label:X}=P;return{label:X,value:V}});Fe==null||Fe.forEach(P=>{const V=P==null?void 0:P.prop;(V==="nameCol"||V==="valueCol")&&(P.contents=Wa)})},Ha=Fe=>{const{comp:Ie,compData:$e}=ye.value||{};if(Ie==="Table"){S.value.formItems=[];let Qe=K();Qe=Qe.filter(Xa=>{const{prop:Wa}=Xa;return Wa!=="formItems"}),ya(Qe,$e),D.value=Qe}},re=async Fe=>{const Ie=H.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=R(),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=>L())},{default:a.withCtx(()=>Ie[7]||(Ie[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(xr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:ba,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",c4,[(a.openBlock(),a.createBlock(dl.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(xr.ssDialog,{visible:w.visible,title:w.title,onBeforeDestroy:ba,width:w.width},{default:a.withCtx(()=>[a.createElementVNode("div",d4,[(a.openBlock(),a.createBlock(dl.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(xr.ssDialog,{visible:ee.visible,title:ee.title,onBeforeDestroy:ba,width:ee.width},{default:a.withCtx(()=>[a.createElementVNode("div",f4,[(a.openBlock(),a.createBlock(dl.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=Jl._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(()=>O.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=O.cloneDeep(y.value)||[];const u=m.length;let w=0;const D=[];if(m=m.map(R=>{const S=R.span;return S?(R.span=Number(S),w=w+R.span):D.push(R),R}),w<24){const R=Math.floor((24-w)/u);D.forEach(S=>{S.span=R})}return m}),v=m=>{r("rowClick",m)};return(m,u)=>{var R;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:(R=c.value)==null?void 0:R.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(S,K)=>(a.openBlock(),a.createBlock(w,{span:S==null?void 0:S.span},{default:a.withCtx(()=>{var I;return[a.unref(No)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(qo)(S.comp)),{key:a.unref(Yn),compName:S.name,index:(S==null?void 0:S.id)??K,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(Ni),onContentChange:a.unref(Ti),onPageChange:a.unref(Ai),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),b4=Jl._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(()=>{K()});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 O.cloneDeep(E)}),R=a.computed(()=>{const E=D==null?void 0:D.value,k=E==null?void 0:E.find(g=>{const{key:L}=g;return L==="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:L}=g;return L==="children"});return k==null?void 0:k.contents}),K=()=>{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 L;const{prop:g}=k;return k.value=(L=R.value)==null?void 0:L[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=O.cloneDeep(S==null?void 0:S.value);g[k].span=E.span,m.value=g,o("change",_(),!0)},A=E=>To(E),ee=(E,k,g)=>{if(!E)return;const L=O.cloneDeep(S==null?void 0:S.value);L[g]&&(L[g].compData=E,m.value=L,o("change",_(),!0))},C=E=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let k=O.cloneDeep(S==null?void 0:S.value);k=k==null?void 0:k.filter((g,L)=>E!==L),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(dl.ssForm,{rowContents:y.value,isEnableWrap:!0,onChange:k[0]||(k[0]=L=>v(L))},null,8,["rowContents"])])]),a.createVNode(Ks.default,{class:"collapse-content",collapseContents:S.value},{title:a.withCtx(({item:L,index:j})=>[a.createElementVNode("div",w4,[a.createElementVNode("div",_4,a.toDisplayString(L.name),1),a.createElementVNode("div",C4,[a.createElementVNode("div",{onClick:a.withModifiers(W=>C(j),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,E4)])])]),content:a.withCtx(({item:L,index:j})=>[a.createElementVNode("div",S4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:u.value[j],key:j,isEnableWrap:!0,onChange:W=>I(W,j)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A(L.comp+"Operate")),{itemContents:L==null?void 0:L.compData,originalItemContents:L.compData,onChange:W=>ee(W,L,j)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),B4=Jl._export_sfc(D4,[["__scopeId","data-v-ba05456e"]]),N4=typeof window<"u";var ks;N4&&((ks=window==null?void 0:window.navigator)!=null&&ks.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(l){return l==null}function Ac(){}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 xs(l,n=16){if(typeof l!="function")return Ac;const r=(...c)=>{l(...c)};if(n<=0)return zc(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 Ac;const r=(...s)=>{l(...s)};if(n<=0)return zc(r);let o;return function(...s){clearTimeout(o),o=setTimeout(()=>{r(...s)},n)}}function zc(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 Fo=new Set,Mc=new WeakMap;function M4(){Fo.forEach(l=>{l(...Mc.get(l))}),Fo.clear()}function Jr(l,...n){if(typeof l!="function")return l;Mc.set(l,n),!Fo.has(l)&&(Fo.add(l),Fo.size===1&&Promise.resolve().then(M4))}const Ic=Symbol("LAYOUT_KEY"),Oc=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 xt(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 Lc(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 _o(l,n,r){const o=$c(l),s=Vc(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&&!jo(l,n);)n.y--;else if(o){const c=o[n.i].y;for(;n.y>c&&!jo(l,n);)n.y--}let s;for(;s=jo(l,n);)n.y=s.y+s.h;return n}function R4(l,n){const r=$c(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(;jo(r,c);)c.y++}return l}function ws(l,n){for(let r=0,o=l.length;r<o;r++)if(l[r].i===n)return l[r]}function jo(l,n){for(let r=0,o=l.length;r<o;r++)if(Lc(l[r],n))return l[r]}function Rc(l,n){return l.filter(r=>Lc(r,n))}function $c(l){return l.filter(n=>n.static)}function wt(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=Vc(l);v&&(m=m.reverse());const u=Rc(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 R=u[w];R.moved||n.y>R.y&&n.y-R.y>R.h/4||(R.static?l=_s(l,R,n,s):l=_s(l,n,R,s))}return l}function _s(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),!jo(l,s))return wt(l,r,void 0,s.y,!1)}return wt(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 Vc(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 Cs(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 Es(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=Fc(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 Pc(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 xt(n[o]);let p=l;const v=Fc(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=xt(p||[]),_o(R4(p,{cols:c}),y)}function Fc(l){return Object.keys(l).sort((n,r)=>l[n]-l[r])}let G4="auto";function Y4(){return typeof document<"u"}function Ss(){return Y4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):G4}var Vo={exports:{}},J4=Vo.exports,Ds;function X4(){return Ds||(Ds=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,K(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=K(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 R(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,q){if(q&&(typeof q=="object"||typeof q=="function"))return q;if(q!==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,q){for(;!Object.prototype.hasOwnProperty.call(M,q)&&(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 K(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 L(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 j(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 W={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,b=t.defaults;f.prototype.draggable=W.draggable,i.map.drag=W,i.methodDict.drag="draggable",b.actions.drag=W.defaults},listeners:{"interactions:before-action-move":L,"interactions:action-resume":L,"interactions:action-move":j,"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:L,move:j,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},te=W,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 F=function(t){return t.parentNode||t.host};function H(t,i){for(var f,b=[],x=t;(f=F(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 q=M[x];Qe(t,q,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)},P=["webkit","moz"];function V(t,i){t.__set||(t.__set={});var f=function(x){if(P.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],q=x[0][b]-x[1][b];return Wa(M,q)}function me(t,i){var f=i+"X",b=i+"Y",x=Sa(t),M=x[1][f]-x[0][f],q=x[1][b]-x[0][b];return 180*Math.atan2(q,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=R(f);function f(b,x,M){var q;c(this,f),(q=i.call(this,x._interaction)).dropzone=void 0,q.dragEvent=void 0,q.relatedTarget=void 0,q.draggable=void 0,q.propagationStopped=!1,q.immediatePropagationStopped=!1;var J=M==="dragleave"?b.prev:b.cur,ve=J.element,Oe=J.dropzone;return q.type=M,q.target=ve,q.currentTarget=ve,q.dropzone=Oe,q.dragEvent=x,q.relatedTarget=x.target,q.draggable=x.interactable,q.timeStamp=x.timeStamp,q}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,q=Ae(M,function(ve){var Oe=ve.dropzone,we=ve.element;return Oe===b.dropzone&&we===b.target});x.activeDrops.splice(q,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,q=x.element;i.dropzone=M,i.target=q,M.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function ga(t,i){for(var f=function(M,q){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!==q||g.string(ea)&&!ie(q,ea)||g.func(ea)&&!ea({dropzone:we,draggableElement:q})))for(var La=0,sl=we.getAllElements();La<sl.length;La++){var rl=sl[La];rl!==q&&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,q=[],J=0,ve=b.activeDrops;J<ve.length;J++){var Oe=ve[J],we=Oe.dropzone,ea=Oe.element,La=Oe.rect,sl=we.dropCheck(i,f,x,M,ea,La);q.push(sl?ea:null)}var rl=function(cl){for(var _l,ul,Tl,Ol=[],Xl=0;Xl<cl.length;Xl++){var Bl=cl[Xl],ql=cl[_l];if(Bl&&Xl!==_l)if(ql){var jr=F(Bl),wr=F(ql);if(jr!==Bl.ownerDocument)if(wr!==Bl.ownerDocument)if(jr!==wr){Ol=Ol.length?Ol:H(ql);var Yr=void 0;if(ql instanceof Q.HTMLElement&&Bl instanceof Q.SVGElement&&!(Bl instanceof Q.SVGSVGElement)){if(Bl===wr)continue;Yr=Bl.ownerSVGElement}else Yr=Bl;for(var on=H(Yr,ql.ownerDocument),pn=0;on[pn]&&on[pn]===Ol[pn];)pn++;var ho=[on[pn-1],on[pn],Ol[pn]];if(ho[0])for(var In=ho[0].lastChild;In;){if(In===ho[1]){_l=Xl,Ol=on;break}if(In===ho[2])break;In=In.previousSibling}}else Tl=ql,(parseInt(_(ul=Bl).getComputedStyle(ul).zIndex,10)||0)>=(parseInt(_(Tl).getComputedStyle(Tl).zIndex,10)||0)&&(_l=Xl);else _l=Xl}else _l=Xl}return _l}(q);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 q=b,J=He(f,q,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,q)}}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(q,J){if(g.object(J)){if(q.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=q.options.drop.listeners;we&&q.off(we),q.on(Oe),q.options.drop.listeners=Oe}return g.func(J.ondrop)&&q.on("drop",J.ondrop),g.func(J.ondropactivate)&&q.on("dropactivate",J.ondropactivate),g.func(J.ondropdeactivate)&&q.on("dropdeactivate",J.ondropdeactivate),g.func(J.ondragenter)&&q.on("dragenter",J.ondragenter),g.func(J.ondragleave)&&q.on("dragleave",J.ondragleave),g.func(J.ondropmove)&&q.on("dropmove",J.ondropmove),/^(pointer|center)$/.test(J.overlap)?q.options.drop.overlap=J.overlap:g.number(J.overlap)&&(q.options.drop.overlap=Math.max(Math.min(1,J.overlap),0)),"accept"in J&&(q.options.drop.accept=J.accept),"checker"in J&&(q.options.drop.checker=J.checker),q}return g.bool(J)?(q.options.drop.enabled=J,q):q.options.drop}(this,M)},b.prototype.dropCheck=function(M,q,J,ve,Oe,we){return function(ea,La,sl,rl,cl,_l,ul){var Tl=!1;if(!(ul=ul||ea.getRect(_l)))return!!ea.options.drop.checker&&ea.options.drop.checker(La,sl,Tl,ea,_l,rl,cl);var Ol=ea.options.drop.overlap;if(Ol==="pointer"){var Xl=$e(rl,cl,"drag"),Bl=ra(La);Bl.x+=Xl.x,Bl.y+=Xl.y;var ql=Bl.x>ul.left&&Bl.x<ul.right,jr=Bl.y>ul.top&&Bl.y<ul.bottom;Tl=ql&&jr}var wr=rl.getRect(cl);if(wr&&Ol==="center"){var Yr=wr.left+wr.width/2,on=wr.top+wr.height/2;Tl=Yr>=ul.left&&Yr<=ul.right&&on>=ul.top&&on<=ul.bottom}return wr&&g.number(Ol)&&(Tl=Math.max(0,Math.min(ul.right,wr.right)-Math.max(ul.left,wr.left))*Math.max(0,Math.min(ul.bottom,wr.bottom)-Math.max(ul.top,wr.top))/(wr.width*wr.height)>=Ol),ea.options.drop.checker&&(Tl=ea.options.drop.checker(La,sl,Tl,ea,_l,rl,cl)),Tl}(this,M,q,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",q=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(q||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}},fl=Pa;function Ma(t,i,f,b,x,M,q){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(q=Math.min(q,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+q}if(t==="top"){var we=ve>=0?M.top:M.bottom;return f.y<we+q}if(t==="right")return f.x>(J>=0?M.right:M.left)-q;if(t==="bottom")return f.y>(ve>=0?M.bottom:M.top)-q}return!!g.element(b)&&(g.element(i)?i===b:ye(b,i,x))}function Hl(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(q,J,ve){return g.object(J)?(q.options.resize.enabled=J.enabled!==!1,q.setPerAction("resize",J),q.setOnEvents("resize",J),g.string(J.axis)&&/^x$|^y$|^xy$/.test(J.axis)?q.options.resize.axis=J.axis:J.axis===null&&(q.options.resize.axis=ve.defaults.actions.resize.axis),g.bool(J.preserveAspectRatio)?q.options.resize.preserveAspectRatio=J.preserveAspectRatio:g.bool(J.square)&&(q.options.resize.square=J.square),q):g.bool(J)?(q.options.resize.enabled=J,q):q.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),Hl(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,q=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),q){if(re(we,J),M==="reposition"){if(we.top>we.bottom){var sl=we.top;we.top=we.bottom,we.bottom=sl}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 cl in we.width=we.right-we.left,we.height=we.bottom-we.top,we)ea[cl]=we[cl]-La[cl];x.edges=b.prepared.edges,x.rect=we,x.deltaRect=ea}})(t),Hl(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 q=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],q,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"&&q.x>x.right-Ra.defaultMargin,ea=J.axis!=="x"&&q.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 q="",J=0,ve=["top","bottom","left","right"];J<ve.length;J++){var Oe=ve[J];i[Oe]&&(q+=Oe)}M=x[q]}return M},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},Va=Ra,qa={id:"actions",install:function(t){t.usePlugin(fl),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(),q=Math.max(0,16-(M-xa)),J=t.setTimeout(function(){x(M+q)},q);return xa=M+q,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),q=Ye.now(),J=(q-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=q}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,q,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))q=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);q=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:q?-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)}}},Y=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 Cl(t){return g.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var tl={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,b,x,M){var q=function(J,ve,Oe,we,ea){var La=J.getRect(we),sl=ve.buttons||{0:1,1:4,3:8,4:16}[ve.button],rl={action:null,interactable:J,interaction:Oe,element:we,rect:La,buttons:sl};return ea.fire("auto-start:check",rl),rl.action}(this,b,x,M,t);return this.options.actionChecker?this.options.actionChecker(f,b,q,this,M,x):q},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=Cl,i.prototype.styleCursor=Be}};function bl(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,q){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=bl(ea,Oe,we,M,q);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=[],q=[],J=b;function ve(we){M.push(we),q.push(J)}for(;g.element(J);){M=[],q=[],x.interactables.forEachMatch(J,ve);var Oe=Ga(t,i,f,M,q,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,Vl(t,f),f.fire("autoStart:prepared",{interaction:t})}function he(t,i,f,b){var x=t.options,M=x[f.name].max,q=x[f.name].maxPerElement,J=b.autoStart.maxInteractions,ve=0,Oe=0,we=0;if(!(M&&q&&J))return!1;for(var ea=0,La=b.interactions.list;ea<La.length;ea++){var sl=La[ea],rl=sl.prepared.name;if(sl.interacting()&&(++ve>=J||sl.interactable===t&&((Oe+=rl===f.name?1:0)>=M||sl.element===i&&(we++,rl===f.name&&we>=q))))return!1}return J>0}function Da(t,i){return g.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function El(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 Vl(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 q=f.options[x.name].cursorChecker;M=g.func(q)?q(x,f,b,t._interacting):i.actions.map[x.name].getCursor(x)}El(t.element,M||"",i)}else i.autoStart.cursorElement&&El(i.autoStart.cursorElement,"",i)}var Fl={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(tl),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,q=f.event,J=f.eventTarget;x.pointerType!=="mouse"||x.pointerIsDown||x.interacting()||Na(x,Qa(x,M,q,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,q=x.prepared.name;q&&M&&(M.options[q].manualStart||!he(M,x.element,x.prepared,b)?x.stop():(x.start(x.prepared,M,x.element),Vl(x,b)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,b=f.interactable;b&&b.options.styleCursor&&El(f.element,"",i)}},maxInteractions:Da,withinInteractionLimit:he,validateAction:bl},nr=Fl,yr={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 q=Math.abs(x),J=Math.abs(M),ve=f.interactable.options.drag,Oe=ve.startAxis,we=q>J?"x":q<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 cl=f.interactable.options.drag;if(!cl.manualStart&&rl.testIgnoreAllow(cl,ea,b)){var _l=rl.getAction(f.downPointer,f.downEvent,f,ea);if(_l&&_l.name==="drag"&&function(ul,Tl){if(!Tl)return!1;var Ol=Tl.options.drag.startAxis;return ul==="xy"||Ol==="xy"||Ol===ul}(we,rl)&&nr.validateAction(_l,rl,ea,b,i))return rl}}};g.element(ea);){var sl=i.interactables.forEachMatch(ea,La);if(sl){f.prepared.name="drag",f.interactable=sl,f.element=ea;break}ea=wa(ea)}}}}}};function Nl(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 tr={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(nr),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=Nl(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;Nl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Nl},Nr=tr,Ll={id:"auto-start",install:function(t){t.usePlugin(nr),t.usePlugin(Nr),t.usePlugin(yr)}},lr=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 Qr(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var Ir={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=lr,i.prototype.checkAndPreventDefault=function(f){return function(b,x,M){var q=b.options.preventDefault;if(q!=="never")if(q!=="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)]=Qr,t},{})};function Ar(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 Er(t){var i={};for(var f in t){var b=t[f];g.plainObject(b)?i[f]=Er(b):g.array(b)?i[f]=ua(b):i[f]=b}return i}var zr=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=Mr(),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,q=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 sl=we[La];return sl&&sl.enabled&&{options:sl,methods:sl._methods}}).filter(function(La){return!!La})}(q);this.prepareStates(J),this.startEdges=re({},q.edges),this.edges=re({},this.startEdges),this.startOffset=(b=q.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=Mr(),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,q=i.edges;i.coords=re({},i.pageCoords),i.rect=re({},M),i.edges=re({},q);for(var J=x?this.states.slice(x):this.states,ve=Mr(i.coords,i.rect),Oe=0;Oe<J.length;Oe++){var we,ea=J[Oe],La=ea.options,sl=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-sl.x,y:i.coords.y-sl.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 cl=this.result.coords,_l=this.result.rect;if(cl&&_l){var ul=ve.rect.left!==_l.left||ve.rect.right!==_l.right||ve.rect.top!==_l.top||ve.rect.bottom!==_l.bottom;ve.changed=ul||cl.x!==ve.coords.x||cl.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,q=this.result,J=this.startDelta,ve=q.delta;b==="start"&&re(this.startDelta,q.delta);for(var Oe=0,we=[[M,J],[x,ve]];Oe<we.length;Oe++){var ea=we[Oe],La=ea[0],sl=ea[1];La.page.x+=sl.x,La.page.y+=sl.y,La.client.x+=sl.x,La.client.y+=sl.y}var rl=this.result.rectDelta,cl=i.rect||f.rect;cl.left+=rl.left,cl.right+=rl.right,cl.top+=rl.top,cl.bottom+=rl.bottom,cl.width=cl.right-cl.left,cl.height=cl.bottom-cl.top}},{key:"setAndApply",value:function(i){var f=this.interaction,b=i.phase,x=i.preEnd,M=i.skipModifiers,q=this.setAll(this.fillArg({preEnd:x,phase:b,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=q,!q.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};q.coords.x+=ve.x,q.coords.y+=ve.y,q.delta.x+=ve.x,q.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,q=0;q<x.length;q++){var J=x[q];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 q=M[x];b.state=q,q.methods.stop&&q.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,q=b.name;this.states.push({options:x,methods:M,index:f,name:q})}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 q=M.startDelta,J=M.result,ve=J.delta,Oe=J.rectDelta,we=0,ea=[[b.start,q],[b.cur,ve]];we<ea.length;we++){var La=ea[we],sl=La[0],rl=La[1];sl.page.x-=rl.x,sl.page.y-=rl.y,sl.client.x-=rl.x,sl.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 Er(f)}),this.result=Mr(re({},i.result.coords),re({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Mr(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 Dr(t,i){var f=t.defaults,b={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},x=function(M){var q=M||{};for(var J in q.enabled=q.enabled!==!1,f)J in q||(q[J]=f[J]);var ve={options:q,methods:b,name:i,enable:function(){return q.enabled=!0,ve},disable:function(){return q.enabled=!1,ve}};return ve};return i&&typeof i=="string"&&(x._defaults=f,x._methods=b),x}function Vr(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var Or={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new zr(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":Vr,"interactions:action-move":Vr,"interactions:action-end":Vr,"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)}}},sr=Or,gn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Gr=function(t){m(f,t);var i=R(f);function f(b,x,M,q,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||gn).deltaSource,sl=$e(ea,J,M),rl=q==="start",cl=q==="end",_l=rl?D(we):b.prevEvent,ul=rl?b.coords.start:cl?{page:_l.page,client:_l.client,timeStamp:b.coords.cur.timeStamp}:b.coords.cur;return we.page=re({},ul.page),we.client=re({},ul.client),we.rect=re({},b.rect),we.timeStamp=ul.timeStamp,cl||(we.page.x-=sl.x,we.page.y-=sl.y,we.client.x-=sl.x,we.client.y-=sl.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+(q||""),we.interactable=ea,we.t0=rl?b.pointers[b.pointers.length-1].downTime:_l.t0,we.x0=b.coords.start.page.x-sl.x,we.y0=b.coords.start.page.y-sl.y,we.clientX0=b.coords.start.client.x-sl.x,we.clientY0=b.coords.start.client.y-sl.y,we.delta=rl||cl?{x:0,y:0}:{x:we[La].x-_l[La].x,y:we[La].y-_l[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=cl||q==="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,q=202.5<=x&&x<337.5;return{up:q,down:!q&&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(Gr.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 rn=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}),Nn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),bn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),vn=0,vr=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=vn++,this._scopeFire=x,this.pointerType=b;var M=this;this._proxy={};var q=function(we){Object.defineProperty(f._proxy,we,{get:function(){return M[we]}})};for(var J in Nn)q(J);var ve=function(we){Object.defineProperty(f._proxy,we,{value:function(){return M[we].apply(M,arguments)}})};for(var Oe in bn)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,q=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:q,interaction:this};q||(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),q||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 q=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(q),{pointer:i,pointerIndex:M,pointerInfo:this.pointers[M],event:f,eventTarget:b,type:q,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,q,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 rn(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,q=this.coords.prev,J=this.coords.cur,M.page.x=J.page.x-q.page.x,M.page.y=J.page.y-q.page.y,M.client.x=J.client.x-q.client.x,M.client.y=J.client.y-q.client.y,M.timeStamp=J.timeStamp-q.timeStamp,x&&(this.pointerIsDown=!0,we.downTime=this.coords.cur.timeStamp,we.downTarget=b,V(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 Gr(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,q=this.rect;if(q&&b==="move"&&(Ie(this.edges,q,this.coords.delta[this.interactable.options.deltaSource]),q.width=q.right-q.left,q.height=q.bottom-q.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 Ul(t){dr(t.interaction)}function dr(t){if(!function(f){return!(!f.offset.pending.x&&!f.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Kl(t.coords.cur,i),Kl(t.coords.delta,i),Ie(t.edges,t.rect,i),i.x=0,i.y=0,!0}function $l(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 Kl(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}bn.offsetBy="";var Il={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=$l},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&&(Kl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Ul,"interactions:before-action-move":Ul,"interactions:before-action-end":function(t){var i=t.interaction;if(dr(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}}},mr=Il,or=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=jl(f);if(!b||!b.enabled)return!1;var x=f.coords.velocity.client,M=Wa(x.x,x.y),q=this.modification||(this.modification=new zr(f));if(q.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=q.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(q.result=q.setAll(this.modifierArg),!q.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=jl(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 q=this.modification,J=this.modifierArg;J.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},q.result=q.setAll(J),q.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+q.result.delta.x,y:this.targetOffset.y+q.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,q,J,ve=this,Oe=this.interaction,we=jl(Oe).resistance,ea=(Oe._now()-this.t0)/1e3;if(ea<this.te){var La,sl=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,q=this.modifiedOffset.y,La={x:Pr(J=sl,i,b,M),y:Pr(J,f,x,q)}):La={x:this.targetOffset.x*sl,y:this.targetOffset.y*sl};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=jl(f).smoothEndDuration;if(b<x){var M={x:kn(b,0,this.targetOffset.x,x),y:kn(b,0,this.targetOffset.y,x)},q={x:M.x-this.currentOffset.x,y:M.y-this.currentOffset.y};this.currentOffset.x+=q.x,this.currentOffset.y+=q.y,f.offsetBy(q),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 jl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var $r={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(mr),t.usePlugin(sr),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 or(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":Vr,"interactions:action-inertiastart":Vr,"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 Pr(t,i,f,b){var x=1-t;return x*x*i+2*x*t*f+t*t*b}function kn(t,i,f,b){return-f*(t/=b)*(t-2)+i}var nn=$r;function Xn(t,i){for(var f=0;f<i.length;f++){var b=i[f];if(t.immediatePropagationStopped)break;b(t)}}var Tn=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])&&Xn(i,f),!i.propagationStopped&&b&&(f=b[i.type])&&Xn(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,q=b[i];M<q.length;M++){var J=q[M],ve=x.indexOf(J);ve!==-1&&x.splice(ve,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Zn=function(){function t(i){c(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,V(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 xn(t){return g.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function An(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Pn={id:"events",install:function(t){var i,f=[],b={},x=[],M={add:q,remove:J,addDelegate:function(we,ea,La,sl,rl){var cl=xn(rl);if(!b[La]){b[La]=[];for(var _l=0;_l<x.length;_l++){var ul=x[_l];q(ul,La,ve),q(ul,La,Oe,!0)}}var Tl=b[La],Ol=za(Tl,function(Xl){return Xl.selector===we&&Xl.context===ea});Ol||(Ol={selector:we,context:ea,listeners:[]},Tl.push(Ol)),Ol.listeners.push({func:sl,options:cl})},removeDelegate:function(we,ea,La,sl,rl){var cl,_l=xn(rl),ul=b[La],Tl=!1;if(ul)for(cl=ul.length-1;cl>=0;cl--){var Ol=ul[cl];if(Ol.selector===we&&Ol.context===ea){for(var Xl=Ol.listeners,Bl=Xl.length-1;Bl>=0;Bl--){var ql=Xl[Bl];if(ql.func===sl&&An(ql.options,_l)){Xl.splice(Bl,1),Xl.length||(ul.splice(cl,1),J(ea,La,ve),J(ea,La,Oe,!0)),Tl=!0;break}}if(Tl)break}}},delegateListener:ve,delegateUseCapture:Oe,delegatedEvents:b,documents:x,targets:f,supportsOptions:!1,supportsPassive:!1};function q(we,ea,La,sl){if(we.addEventListener){var rl=xn(sl),cl=za(f,function(_l){return _l.eventTarget===we});cl||(cl={eventTarget:we,events:{}},f.push(cl)),cl.events[ea]||(cl.events[ea]=[]),za(cl.events[ea],function(_l){return _l.func===La&&An(_l.options,rl)})||(we.addEventListener(ea,La,M.supportsOptions?rl:rl.capture),cl.events[ea].push({func:La,options:rl}))}}function J(we,ea,La,sl){if(we.addEventListener&&we.removeEventListener){var rl=Ae(f,function(jr){return jr.eventTarget===we}),cl=f[rl];if(cl&&cl.events)if(ea!=="all"){var _l=!1,ul=cl.events[ea];if(ul){if(La==="all"){for(var Tl=ul.length-1;Tl>=0;Tl--){var Ol=ul[Tl];J(we,ea,Ol.func,Ol.options)}return}for(var Xl=xn(sl),Bl=0;Bl<ul.length;Bl++){var ql=ul[Bl];if(ql.func===La&&An(ql.options,Xl)){we.removeEventListener(ea,La,M.supportsOptions?Xl:Xl.capture),ul.splice(Bl,1),ul.length===0&&(delete cl.events[ea],_l=!0);break}}}_l&&!Object.keys(cl.events).length&&f.splice(rl,1)}else for(ea in cl.events)cl.events.hasOwnProperty(ea)&&J(we,ea,"all")}}function ve(we,ea){for(var La=xn(ea),sl=new Zn(we),rl=b[we.type],cl=ze(we)[0],_l=cl;g.element(_l);){for(var ul=0;ul<rl.length;ul++){var Tl=rl[ul],Ol=Tl.selector,Xl=Tl.context;if(ie(_l,Ol)&&de(Xl,cl)&&de(Xl,_l)){var Bl=Tl.listeners;sl.currentTarget=_l;for(var ql=0;ql<Bl.length;ql++){var jr=Bl[ql];An(jr.options,La)&&jr.func(sl)}}}_l=wa(_l)}}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}},en={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=en.methodOrder;i<f.length;i++){var b=f[i],x=en[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,q=x.interactions.list;M<q.length;M++){var J=q[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 q=0,J=M.interactions.list;q<J.length;q++){var ve=J[q];if(ve.pointerType===b){if(ve.simulation&&!zn(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(zn(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 zn(t,i){return t.pointers.some(function(f){return f.id===i})}var wn=en,Kr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fn(t,i){return function(f){var b=i.interactions.list,x=Je(f),M=ze(f),q=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:q,curEventTarget:J,scope:i},sl=mn(La);ve.push([La.pointer,La.eventTarget,La.curEventTarget,sl])}}else{var rl=!1;if(!Z.supportsPointerEvent&&/mouse/.test(f.type)){for(var cl=0;cl<b.length&&!rl;cl++)rl=b[cl].pointerType!=="mouse"&&b[cl].pointerIsDown;rl=rl||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!rl){var _l={pointer:f,pointerId:Le(f),pointerType:x,eventType:f.type,curEventTarget:J,eventTarget:q,scope:i},ul=mn(_l);ve.push([_l.pointer,_l.eventTarget,_l.curEventTarget,ul])}}for(var Tl=0;Tl<ve.length;Tl++){var Ol=ve[Tl],Xl=Ol[0],Bl=Ol[1],ql=Ol[2];Ol[3][t](Xl,f,Bl,ql)}}}function mn(t){var i=t.pointerType,f=t.scope,b={interaction:wn.search(t),searchDetails:t};return f.fire("interactions:find",b),b.interaction||f.interactions.new({pointerType:i})}function Ao(t,i){var f=t.doc,b=t.scope,x=t.options,M=b.interactions.docEvents,q=b.events,J=q[i];for(var ve in b.browser.isIOS&&!x.events&&(x.events={passive:!1}),q.delegatedEvents)J(f,ve,q.delegateListener),J(f,ve,q.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 Li={id:"core/interactions",install:function(t){for(var i={},f=0;f<Kr.length;f++){var b=Kr[f];i[b]=Fn(b,t)}var x,M=Z.pEventTypes;function q(){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 sl=La[ea];t.documents.some(function(rl){return de(rl.doc,sl.downTarget)})||Oe.removePointer(sl.pointer,sl.event)},ea=0,La=Oe.pointers;ea<La.length;ea++)we()}}(x=Q.PointerEvent?[{type:M.down,listener:q},{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:q},{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=R(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}(vr),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(Ir)},listeners:{"scope:add-document":function(t){return Ao(t,"add")},"scope:remove-document":function(t){return Ao(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:Ao,doOnInteractions:Fn,methodNames:Kr},Ri=Li,_n=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(_n||{}),$i=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 Tn,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,q=(x=this._actions.map[i])==null?void 0:x.filterEventType,J=function(ve){return(q==null||q(ve))&&Ar(ve,M._actions)};(g.array(f)||g.object(f))&&this._onOff(_n.Off,i,f,void 0,J),(g.array(b)||g.object(b))&&this._onOff(_n.On,i,b,void 0,J)}},{key:"setPerAction",value:function(i,f){var b=this._defaults;for(var x in f){var M=x,q=this.options[i],J=f[M];M==="listeners"&&this.updatePerActionListeners(i,q.listeners,J),g.array(J)?q[M]=ua(J):g.plainObject(J)?(q[M]=re(q[M]||{},Er(J)),g.object(b.perAction[M])&&"enabled"in b.perAction[M]&&(q[M].enabled=J.enabled!==!1)):g.bool(J)&&g.object(b.perAction[M])?q[M].enabled=J:q[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 q=Qe(f,b,M);for(var J in q){J==="wheel"&&(J=Z.wheelEvent);for(var ve=0,Oe=q[J];ve<Oe.length;ve++){var we=Oe[ve];Ar(J,this._actions)?this.events[i===_n.On?"on":"off"](J,we):g.string(this.target)?this._scopeEvents[i===_n.On?"addDelegate":"removeDelegate"](this.target,this._context,J,we,x):this._scopeEvents[i===_n.On?"add":"remove"](this.target,J,we,x)}}return this}},{key:"on",value:function(i,f,b){return this._onOff(_n.On,i,f,b)}},{key:"off",value:function(i,f,b){return this._onOff(_n.Off,i,f,b)}},{key:"set",value:function(i){var f=this._defaults;for(var b in g.object(i)||(i={}),this.options=Er(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 q in i)q!=="getRect"?g.func(this[q])&&this[q](i[q]):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,q=x.context,J=x.listeners;M===this.target&&q===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}(),Vi=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,q=g.string(M)?f.selectorMap[M]:M[f.scope.id],J=Ae(q,function(ve){return ve===x});q.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(q){return q._context===b&&(x||q.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var b=0,x=this.list;b<x.length;b++){var M=x[b],q=void 0;if((g.string(M.target)?g.element(i)&&ie(i,M.target):i===M.target)&&M.inContext(i)&&(q=f(M)),q!==void 0)return q}}}]),t}(),Ko=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=Er(gn),this.Eventable=Tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(b){var x=function M(q,J){var ve=b.interactables.getExisting(q,J);return ve||((ve=b.interactables.new(q,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,q){return this.scope.usePlugin(M,q),this},x.isSet=function(M,q){return!!this.scope.interactables.get(M,q&&q.context)},x.on=aa(function(M,q,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,q,J)}return this}if(g.object(M)){for(var ea in M)this.on(ea,M[ea],q);return this}return Ar(M,this.scope.actions)?this.globalEvents[M]?this.globalEvents[M].push(q):this.globalEvents[M]=[q]:this.scope.events.add(this.scope.document,M,q,{options:J}),this},"The interact.on() method is being deprecated"),x.off=aa(function(M,q,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,q,J)}return this}if(g.object(M)){for(var ea in M)this.off(ea,M[ea],q);return this}var La;return Ar(M,this.scope.actions)?M in this.globalEvents&&(La=this.globalEvents[M].indexOf(q))!==-1&&this.globalEvents[M].splice(La,1):this.scope.events.remove(this.scope.document,M,q,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,q=this.scope.interactions.list;M<q.length;M++)q[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,q){this.scope.addDocument(M,q)},x.removeDocument=function(M){this.scope.removeDocument(M)},x}(this),this.InteractEvent=Gr,this.Interactable=void 0,this.interactables=new Vi(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=R(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(q){return S(u(M.prototype),"set",this).call(this,q),f.fire("interactable:set",{options:q,interactable:this}),this}},{key:"unset",value:function(){S(u(M.prototype),"unset",this).call(this);var q=f.interactables.list.indexOf(this);q<0||(f.interactables.list.splice(q,1),f.fire("interactable:unset",{interactable:this}))}}]),M}($i)}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(Ri),f.usePlugin(Pn),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[Go(ve)]=!0,J},{});b<x;b++){var q=this.listenerMaps[b].id;if(q&&(M[q]||M[Go(q)]))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 Go(t){return t&&t.replace(/\/.*$/,"")}var Yo=new Ko,Fr=Yo.interactStatic,Pi=typeof globalThis<"u"?globalThis:window;Yo.init(Pi);var zo=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,q=t.limits,J=q===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:q,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],sl=La[0],rl=La[1],cl=Math.round((b-Oe.x)/t[sl]),_l=Math.round((x-Oe.y)/t[rl]);we[sl]=Math.max(J.left,Math.min(J.right,cl*t[sl]+Oe.x)),we[rl]=Math.max(J.top,Math.min(J.bottom,_l*t[rl]+Oe.y))}return we};return f.grid=t,f.coordFields=i,f}}),Fi={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=re(i.snappers||{},zo),i.createSnapGrid=i.snappers.grid}},Mo=Fi,Jo={start:function(t){var i=t.state,f=t.rect,b=t.edges,x=t.pageCoords,M=i.options,q=M.ratio,J=M.enabled,ve=i.options,Oe=ve.equalDelta,we=ve.modifiers;q==="preserve"&&(q=f.width/f.height),i.startCoords=re({},x),i.startRect=re({},f),i.ratio=q,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 sl=new zr(t.interaction);sl.copyFrom(t.interaction.modification),sl.prepareStates(we),i.subModification=sl,sl.startAll(o({},t))}},set:function(t){var i=t.state,f=t.rect,b=t.coords,x=i.linkedEdges,M=re({},b),q=i.equalDelta?Xo:ji;if(re(t.edges,x),q(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&&(q(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 Xo(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 ji(t,i,f,b){var x=t.startRect,M=t.startCoords,q=t.ratio,J=t.edgeSign;if(i){var ve=b.width/q;f.y=M.y+(ve-x.height)*J.y}else{var Oe=b.height*q;f.x=M.x+(Oe-x.width)*J.x}}var Hi=Dr(Jo,"aspectRatio"),Zo=function(){};Zo._defaults={};var Cn=Zo;function En(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 jn={start:function(t){var i=t.rect,f=t.startOffset,b=t.state,x=t.interaction,M=t.pageCoords,q=b.options,J=q.elementRect,ve=re({left:0,top:0,right:0,bottom:0},q.offset||{});if(i&&J){var Oe=En(q.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,q=En(x.restriction,f,i);if(q){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}(q);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}},Ui=Dr(jn,"restrict"),Qo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ei={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ai(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 Hn={noInner:Qo,noOuter:ei,start:function(t){var i,f=t.interaction,b=t.startOffset,x=t.state,M=x.options;M&&(i=ba(En(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,q=x.options;if(f){var J=re({},i),ve=En(q.inner,b,J)||{},Oe=En(q.outer,b,J)||{};ai(ve,Qo),ai(Oe,ei),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}},Qn=Dr(Hn,"restrictEdges"),li=re({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},jn.defaults),ri=Dr({start:jn.start,set:jn.set,defaults:li},"restrictRect"),eo={width:-1/0,height:-1/0},qi={width:1/0,height:1/0},ni=Dr({start:function(t){return Hn.start(t)},set:function(t){var i=t.interaction,f=t.state,b=t.rect,x=t.edges,M=f.options;if(x){var q=Fe(En(M.min,i,t.coords))||eo,J=Fe(En(M.max,i,t.coords))||qi;f.options={endOnly:M.endOnly,inner:re({},Hn.noInner),outer:re({},Hn.noOuter)},x.top?(f.options.inner.top=b.bottom-q.height,f.options.outer.top=b.bottom-J.height):x.bottom&&(f.options.inner.bottom=b.top+q.height,f.options.outer.bottom=b.top+J.height),x.left?(f.options.inner.left=b.right-q.width,f.options.outer.left=b.right-J.width):x.right&&(f.options.inner.right=b.left+q.width,f.options.outer.right=b.left+J.width),Hn.set(t),f.options=M}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Mn={start:function(t){var i,f=t.interaction,b=t.interactable,x=t.element,M=t.rect,q=t.state,J=t.startOffset,ve=q.options,Oe=ve.offsetWithOrigin?function(La){var sl=La.interaction.element,rl=ba(Ve(La.state.options.origin,null,null,[sl])),cl=rl||$e(La.interactable,sl,La.interaction.prepared.name);return cl}(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;q.offsets=M&&ea&&ea.length?ea.map(function(La,sl){return{index:sl,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,q=$e(i.interactable,i.element,i.prepared.name),J=re({},f),ve=[];x.offsetWithOrigin||(J.x-=q.x,J.y-=q.y);for(var Oe=0,we=M;Oe<we.length;Oe++)for(var ea=we[Oe],La=J.x-ea.x,sl=J.y-ea.y,rl=0,cl=x.targets.length;rl<cl;rl++){var _l=x.targets[rl],ul=void 0;(ul=g.func(_l)?_l(La,sl,i._proxy,ea,rl):_l)&&ve.push({x:(g.number(ul.x)?ul.x:La)+ea.x,y:(g.number(ul.y)?ul.y:sl)+ea.y,range:g.number(ul.range)?ul.range:x.range,source:_l,index:rl,offset:ea})}for(var Tl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ol=0;Ol<ve.length;Ol++){var Xl=ve[Ol],Bl=Xl.range,ql=Xl.x-J.x,jr=Xl.y-J.y,wr=Wa(ql,jr),Yr=wr<=Bl;Bl===1/0&&Tl.inRange&&Tl.range!==1/0&&(Yr=!1),Tl.target&&!(Yr?Tl.inRange&&Bl!==1/0?wr/Bl<Tl.distance/Tl.range:Bl===1/0&&Tl.range!==1/0||wr<Tl.distance:!Tl.inRange&&wr<Tl.distance)||(Tl.target=Xl,Tl.distance=wr,Tl.range=Bl,Tl.inRange=Yr,Tl.delta.x=ql,Tl.delta.y=jr)}return Tl.inRange&&(f.x=Tl.target.x,f.y=Tl.target.y),b.closest=Tl,Tl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Wi=Dr(Mn,"snap"),uo={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"]],Mn.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,q={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(q.x,q.y,i):Oe){for(var ea=0,La=f.targetFields;ea<La.length;ea++){var sl=La[ea],rl=sl[0],cl=sl[1];if(rl in we||cl in we){we.x=we[rl],we.y=we[cl];break}}f.options.targets.push(we)}}var _l=Mn.set(t);return f.options=x,_l},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Ki=Dr(uo,"snapSize"),Io={aspectRatio:Hi,restrictEdges:Qn,restrict:Ui,restrictRect:ri,restrictSize:ni,snapEdges:Dr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],uo.start(t)):null},set:uo.set,defaults:re(Er(uo.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Wi,snapSize:Ki,spring:Cn,avoid:Cn,transform:Cn,rubberband:Cn},Gi={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(sr),t.usePlugin(Mo),i.modifiers=Io,Io){var b=Io[f],x=b._defaults,M=b._methods;x._methods=M,t.defaults.perAction[f]=x}}},Yi=Gi,oi=function(t){m(f,t);var i=R(f);function f(b,x,M,q,J,ve){var Oe;if(c(this,f),V(D(Oe=i.call(this,J)),M),M!==x&&V(D(Oe),x),Oe.timeStamp=ve,Oe.originalEvent=M,Oe.type=b,Oe.pointerId=Le(x),Oe.pointerType=Je(x),Oe.target=q,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),Un={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Un,t.defaults.actions.pointerEvents=Un.defaults,re(t.actions.phaselessTypes,Un.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&&Oo(t),Sn({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,q=f.event,J=f.eventTarget,ve=f.pointerIndex,Oe=x.pointers[ve].hold,we=ya(J),ea={interaction:x,pointer:M,event:q,eventTarget:J,type:"hold",targets:[],path:we,node:null},La=0;La<we.length;La++){var sl=we[La];ea.node=sl,b.fire("pointerEvents:collect-targets",ea)}if(ea.targets.length){for(var rl=1/0,cl=0,_l=ea.targets;cl<_l.length;cl++){var ul=_l[cl].eventable.options.holdDuration;ul<rl&&(rl=ul)}Oe.duration=rl,Oe.timeout=setTimeout(function(){Sn({interaction:x,eventTarget:J,pointer:M,event:q,type:"hold"},b)},rl)}})(t,i),Sn(t,i)},"interactions:up":function(t,i){Oo(t),Sn(t,i),function(f,b){var x=f.interaction,M=f.pointer,q=f.event,J=f.eventTarget;x.pointerWasMoved||Sn({interaction:x,eventTarget:J,pointer:M,event:q,type:"tap"},b)}(t,i)},"interactions:cancel":function(t,i){Oo(t),Sn(t,i)}},PointerEvent:oi,fire:Sn,collectEventTargets:ii,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 Sn(t,i){var f=t.interaction,b=t.pointer,x=t.event,M=t.eventTarget,q=t.type,J=t.targets,ve=J===void 0?ii(t,i):J,Oe=new oi(q,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:q,pointerEvent:Oe},ea=0;ea<ve.length;ea++){var La=ve[ea];for(var sl in La.props||{})Oe[sl]=La.props[sl];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),q==="tap"){var cl=Oe.double?Sn({interaction:f,pointer:b,event:x,eventTarget:M,type:"doubletap"},i):Oe;f.prevTap=cl,f.tapTime=cl.timeStamp}return Oe}function ii(t,i){var f=t.interaction,b=t.pointer,x=t.event,M=t.eventTarget,q=t.type,J=f.getPointerIndex(b),ve=f.pointers[J];if(q==="tap"&&(f.pointerWasMoved||!ve||ve.downTarget!==M))return[];for(var Oe=ya(M),we={interaction:f,pointer:b,event:x,eventTarget:M,type:q,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 q==="hold"&&(we.targets=we.targets.filter(function(sl){var rl,cl;return sl.eventable.options.holdDuration===((rl=f.pointers[J])==null||(cl=rl.hold)==null?void 0:cl.duration)})),we.targets}function Oo(t){var i=t.interaction,f=t.pointerIndex,b=i.pointers[f].hold;b&&b.timeout&&(clearTimeout(b.timeout),b.timeout=null)}var Ji=Object.freeze({__proto__:null,default:Un});function po(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Xi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Un);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)]=po,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 q=M[0].eventable.options.holdRepeatInterval;q<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:x,type:"hold",pointer:b,event:b},i)},q))}}})},Zi=Xi,Qi={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(q){var J=q.events,ve=J.options;J.types[x]&&J.types[x].length&&q.testIgnoreAllow(ve,b,M)&&f.push({node:b,eventable:J,props:{interactable:q}})})},"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||{})}}},et=Qi,ti={id:"pointer-events",install:function(t){t.usePlugin(Ji),t.usePlugin(Zi),t.usePlugin(et)}},fo=ti,at={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 q=b.getAllElements(),J=M.window.Promise,ve=J?[]:null,Oe=function(){var ea=q[we],La=b.getRect(ea);if(!La)return 1;var sl,rl=za(M.interactions.list,function(ul){return ul.interacting()&&ul.interactable===b&&ul.element===ea&&ul.prepared.name===x.name});if(rl)rl.move(),ve&&(sl=rl._reflowPromise||new J(function(ul){rl._reflowResolve=ul}));else{var cl=Fe(La),_l=function(ul){return{coords:ul,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:cl.x,y:cl.y},client:{x:cl.x,y:cl.y},timeStamp:M.now()});sl=function(ul,Tl,Ol,Xl,Bl){var ql=ul.interactions.new({pointerType:"reflow"}),jr={interaction:ql,event:Bl,pointer:Bl,eventTarget:Ol,phase:"reflow"};ql.interactable=Tl,ql.element=Ol,ql.prevEvent=Bl,ql.updatePointer(Bl,Bl,Ol,!0),se(ql.coords.delta),Ge(ql.prepared,Xl),ql._doPhase(jr);var wr=ul.window,Yr=wr.Promise,on=Yr?new Yr(function(pn){ql._reflowResolve=pn}):void 0;return ql._reflowPromise=on,ql.start(Xl,Tl,Ol),ql._interacting?(ql.move(jr),ql.end(Bl)):(ql.stop(),ql._reflowResolve()),ql.removePointer(Bl,Bl),on}(M,b,ea,x,_l)}ve&&ve.push(sl)},we=0;we<q.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))}}},lt=at;if(Fr.use(Ir),Fr.use(mr),Fr.use(fo),Fr.use(nn),Fr.use(Yi),Fr.use(Ll),Fr.use(qa),Fr.use(Y),Fr.use(lt),Fr.default=Fr,s(l)==="object"&&l)try{l.exports=Fr}catch{}return Fr.default=Fr,Fr})}(Vo,Vo.exports)),Vo.exports}var Z4=X4();const Bs=$n.getDefaultExportFromCjs(Z4),Mi=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(Ic),y=a.inject(Oc);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,R=NaN,S=NaN,K=-1,I=-1,A=-1,ee=-1,C=o.x,_=o.y,E=o.w,k=o.h;const g=a.ref(),L=a.reactive({i:a.toRef(o,"i"),state:v,wrapper:g,calcXY:Ve});function j(ue){Qe(ue)}function W(){Xa()}function te(ue){cn(o.isDraggable)&&(v.draggable=ue)}function Te(ue){cn(o.isResizable)&&(v.resizable=ue)}function Ee(ue){cn(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=Ss()==="rtl",Xa()}function je(ue){v.cols=Math.floor(ue)}c.increaseItem(L),a.onBeforeMount(()=>{v.rtl=Ss()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?v.cols=Pc(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,cn(o.isDraggable)?v.draggable=c.isDraggable:v.draggable=o.isDraggable,cn(o.isResizable)?v.resizable=c.isResizable:v.resizable=o.isResizable,cn(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,Jr(Ze)}),y.on("updateWidth",j),y.on("compact",W),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",j),y.off("compact",W),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(L)}),n({state:v,wrapper:g});const wa=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ie=a.computed(()=>v.resizable&&!o.static),F=a.computed(()=>c.isMirrored?!v.rtl:v.rtl),H=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")]:F.value,[ye.bm("no-touch")]:wa&&H.value})),ke=a.computed(()=>[ye.be("resizer"),F.value&&ye.bem("resizer","rtl")].filter(Boolean));a.watch(()=>o.isDraggable,ue=>{v.draggable=ue}),a.watch(()=>o.static,()=>{Jr(V),Jr(se)}),a.watch(()=>v.draggable,()=>{Jr(V)}),a.watch(()=>o.isResizable,ue=>{v.resizable=ue}),a.watch(()=>o.isBounded,ue=>{v.bounded=ue}),a.watch(()=>v.resizable,()=>{Jr(se)}),a.watch(()=>v.rowHeight,()=>{Jr(Ze),Jr(ya)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{Jr(se),Jr(Ze),Jr(ya)}),a.watch([()=>o.minH,()=>o.maxH,()=>o.minW,()=>o.maxW],()=>{Jr(se)}),a.watch(F,()=>{Jr(se),Jr(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),Jr(Ze),Jr(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,F.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?F.value?va=V4(ue.top,ue.right,ue.width,ue.height):va=$4(ue.top,ue.left,ue.width,ue.height):F.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=Cs(ue);if(cn(ra))return;const{x:Le,y:Ce}=ra,Sa={width:0,height:0};let da;switch(va){case"resizestart":{se(),K=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&&(R=Le),!ue.edges.top&&!ue.edges.bottom&&(S=Ce);const Fa=Es(R,S,Le,Ce);F.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),R=Le,S=Ce,(E!==da.w||k!==da.h)&&s("resize",o.i,da.h,da.w,Sa.height,Sa.width),ue.type==="resizeend"&&(K!==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=Cs(ue);if(cn(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;F.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=Es(w,D,Le,Ce);if(F.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;F.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;F.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 F.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=Bs(g.value),v.useStyleCursor||p.value.styleCursor(!1))}const P=xs(re);function V(){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"?P(va):re(va)}))}else p.value.draggable({enabled:!1})}const X=xs(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:F.value?`.${ke.value[0]}`:!1,right:F.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=[Bs.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))}}),co=typeof window<"u";var Ns;co&&(Ns=window==null?void 0:window.navigator)!=null&&Ns.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ts(l){return l!=null}function As(){}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=co&&("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(!Ts(o)||o==="")return!1;let p;return Ts(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;co&&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 xi;if(co){for(const l of i6)if(l[1]in document){xi=l;break}}a.computed(()=>!1);const t6=new Set,s6=new WeakMap;if(co&&xi){const l=xi[2],n=xi[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 jc=new Map;jc.set("x",0);jc.set("y",0);var to=[],c6=function(){return to.some(function(l){return l.activeTargets.length>0})},u6=function(){return to.some(function(l){return l.skippedTargets.length>0})},zs="ResizeObserver loop completed with undelivered notifications.",d6=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:zs}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=zs),window.dispatchEvent(l)},Wo;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Wo||(Wo={}));var so=function(l){return Object.freeze(l)},p6=function(){function l(n,r){this.inlineSize=n,this.blockSize=r,so(this)}return l}(),Hc=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,so(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}(),Bt=function(l){return l instanceof SVGElement&&"getBBox"in l},Uc=function(l){if(Bt(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)},Ms=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},Ho=typeof window<"u"?window:{},yi=new WeakMap,Is=/auto|scroll/,h6=/^tb|vertical/,v6=/msie|trident/i.test(Ho.navigator&&Ho.navigator.userAgent),Bn=function(l){return parseFloat(l||"0")},Do=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)},Os=so({devicePixelContentBoxSize:Do(),borderBoxSize:Do(),contentBoxSize:Do(),contentRect:new Hc(0,0,0,0)}),qc=function(l,n){if(n===void 0&&(n=!1),yi.has(l)&&!n)return yi.get(l);if(Uc(l))return yi.set(l,Os),Os;var r=getComputedStyle(l),o=Bt(l)&&l.ownerSVGElement&&l.getBBox(),s=!v6&&r.boxSizing==="border-box",c=h6.test(r.writingMode||""),y=!o&&Is.test(r.overflowY||""),p=!o&&Is.test(r.overflowX||""),v=o?0:Bn(r.paddingTop),m=o?0:Bn(r.paddingRight),u=o?0:Bn(r.paddingBottom),w=o?0:Bn(r.paddingLeft),D=o?0:Bn(r.borderTopWidth),R=o?0:Bn(r.borderRightWidth),S=o?0:Bn(r.borderBottomWidth),K=o?0:Bn(r.borderLeftWidth),I=w+m,A=v+u,ee=K+R,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,L=o?o.width:Bn(r.width)-k-E,j=o?o.height:Bn(r.height)-g-_,W=L+I+E+ee,te=j+A+_+C,Te=so({devicePixelContentBoxSize:Do(Math.round(L*devicePixelRatio),Math.round(j*devicePixelRatio),c),borderBoxSize:Do(W,te,c),contentBoxSize:Do(L,j,c),contentRect:new Hc(w,v,L,j)});return yi.set(l,Te),Te},Wc=function(l,n,r){var o=qc(l,r),s=o.borderBoxSize,c=o.contentBoxSize,y=o.devicePixelContentBoxSize;switch(n){case Wo.DEVICE_PIXEL_CONTENT_BOX:return y;case Wo.BORDER_BOX:return s;default:return c}},m6=function(){function l(n){var r=qc(n);this.target=n,this.contentRect=r.contentRect,this.borderBoxSize=so([r.borderBoxSize]),this.contentBoxSize=so([r.contentBoxSize]),this.devicePixelContentBoxSize=so([r.devicePixelContentBoxSize])}return l}(),Kc=function(l){if(Uc(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=[];to.forEach(function(c){if(c.activeTargets.length!==0){var y=[];c.activeTargets.forEach(function(p){var v=new m6(p.target),m=Kc(p.target);y.push(v),p.lastReportedSize=Wc(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},Ls=function(l){to.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Kc(r.target)>l?n.activeTargets.push(r):n.skippedTargets.push(r))})})},g6=function(){var l=0;for(Ls(l);c6();)l=y6(),Ls(l);return u6()&&d6(),l>0},ct,Gc=[],b6=function(){return Gc.splice(0).forEach(function(l){return l()})},k6=function(l){if(!ct){var n=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return b6()}).observe(r,o),ct=function(){r.textContent="".concat(n?n--:n++)}}Gc.push(l),ct()},x6=function(l){k6(function(){requestAnimationFrame(l)})},wi=0,w6=function(){return!!wi},_6=250,C6={attributes:!0,characterData:!0,childList:!0,subtree:!0},Rs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],$s=function(l){return l===void 0&&(l=0),Date.now()+l},ut=!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),!ut){ut=!0;var o=$s(n);x6(function(){var s=!1;try{s=g6()}finally{if(ut=!1,n=o-$s(),!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():Ho.addEventListener("DOMContentLoaded",r)},l.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Rs.forEach(function(r){return Ho.addEventListener(r,n.listener,!0)}))},l.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),Rs.forEach(function(r){return Ho.removeEventListener(r,n.listener,!0)}),this.stopped=!0)},l}(),_t=new E6,Vs=function(l){!wi&&l>0&&_t.start(),wi+=l,!wi&&_t.stop()},S6=function(l){return!Bt(l)&&!f6(l)&&getComputedStyle(l).display==="inline"},D6=function(){function l(n,r){this.target=n,this.observedBox=r||Wo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var n=Wc(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}(),gi=new WeakMap,Ps=function(l,n){for(var r=0;r<l.length;r+=1)if(l[r].target===n)return r;return-1},bi=function(){function l(){}return l.connect=function(n,r){var o=new B6(n,r);gi.set(n,o)},l.observe=function(n,r,o){var s=gi.get(n),c=s.observationTargets.length===0;Ps(s.observationTargets,r)<0&&(c&&to.push(s),s.observationTargets.push(new D6(r,o&&o.box)),Vs(1),_t.schedule())},l.unobserve=function(n,r){var o=gi.get(n),s=Ps(o.observationTargets,r),c=o.observationTargets.length===1;s>=0&&(c&&to.splice(to.indexOf(o),1),o.observationTargets.splice(s,1),Vs(-1))},l.disconnect=function(n){var r=this,o=gi.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.");bi.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(!Ms(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");bi.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(!Ms(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");bi.unobserve(this,n)},l.prototype.disconnect=function(){bi.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const Ii=new WeakMap;function T6(l){var n;for(let r=0,o=l.length;r<o;++r){const s=l[r],c=Ii.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 Yc=new(co&&window.ResizeObserver||N6)(T6);function Fs(l,n){Ii.set(l,n),Yc.observe(l)}function js(l){Ii.has(l)&&(Yc.unobserve(l),Ii.delete(l))}function A6(l={}){let n=As;const r=a.watch(()=>a.unref(l.target),s=>{n(),!(!s||typeof l.onResize!="function")&&(Fs(s,l.onResize),n=()=>{js(s),n=As})},{immediate:!0}),o=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(o),{observeResize:Fs,unobserveResize:js,unobserve:o}}const z6=a.ref(!1);a.computed(()=>z6.value);const Hs="__theme_style__",dt="__theme_observer__",Us=a.reactive(new Map),qs=new Map;a.watch(Us,()=>{if(!co)return;qs.clear();const l=document.head.querySelector(`#${Hs}`);l&&document.head.removeChild(l);const n=document.createElement("style");let r=`.${dt} { width: 1px }`,o=1;for(const[s,[c,y]]of Us.entries())r+=` html.${c} .${dt}, .${y} .${dt} { width: ${++o}px }`,qs.set(o,s);n.textContent=r,n.id=Hs,document.head.appendChild(n)});const Jc=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",R),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(()=>{j(),v.value&&m(v.value,z4(C,16)),_o(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 R(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(Ic,a.reactive({...a.toRefs(o),...a.toRefs(c),increaseItem:S,decreaseItem:K})),a.provide(Oc,w),n({state:c,getItem:I,resizeEvent:g,dragEvent:k,layoutUpdate:A});function S(te){y.set(te.i,te)}function K(te){y.delete(te.i)}function I(te){return y.get(te)}function A(){if(!cn(p.value)&&!cn(c.originalLayout)){if(p.value.length!==c.originalLayout.length){const te=W(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,j()}_o(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=ws(p.value,Te);cn(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:F})=>({...je,[wa]:{x:ie,y:F}}),{})),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=wt(p.value,de,Ee,Q,!0,o.preventCollision),o.restoreOnDrag?(de.static=!0,_o(p.value,o.verticalCompact,E),de.static=!1):_o(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=ws(p.value,Te);cn(de)&&(de={h:0,w:0,x:0,y:0,i:""});let je;if(o.preventCollision){const wa=Rc(p.value,{...de,w:Z,h:be}).filter(ie=>ie.i!==de.i);if(je=wa.length>0,je){let ie=1/0,F=1/0;wa.forEach(H=>{H.x>de.x&&(ie=Math.min(ie,H.x)),H.y>de.y&&(F=Math.min(F,H.y))}),Number.isFinite(ie)&&(de.w=ie-de.x),Number.isFinite(F)&&(de.h=F-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&&L(),_o(p.value,o.verticalCompact),w.emit("compact"),ee(),te==="resizeend"&&s("layout-updated",p.value)}function L(){const te=W4(o.breakpoints,c.width);if(te===c.lastBreakpoint)return;const Te=Pc(te,o.cols);!cn(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=xt(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 j(){c.layouts=Object.assign({},o.responsiveLayouts)}function W(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(Mi,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(Mi,{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=O.useModelComp(O.pinia),{isEdit:o}=O.storeToRefs(r),s=Jn(O.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),R=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,L;let ee=(C=y==null?void 0:y.children)==null?void 0:C.filter(j=>j==null?void 0:j.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(j=>!(j!=null&&j.choiceName)||(j==null?void 0:j.choiceName)===(p==null?void 0:p.value));{let j=(g=(k=y==null?void 0:y.children)==null?void 0:k.find(W=>W==null?void 0:W.choice))==null?void 0:g.choiceName;return(L=y==null?void 0:y.children)==null?void 0:L.filter(W=>!(W!=null&&W.choiceName)||(W==null?void 0:W.choiceName)===j)}}),K=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,()=>{R.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(Jc),{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(Mi),{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,L,j,W,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"})},[((L=(g=_==null?void 0:_.component)==null?void 0:g.comp)==null?void 0:L.toUpperCase())!=="TABLE"&&((j=_==null?void 0:_.component)!=null&&j.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((W=_==null?void 0:_.component)==null?void 0:W.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(qo)((te=_==null?void 0:_.component)==null?void 0:te.comp)),{pageLayout:m.value,config:{showIndex:(Te=a.unref(rr)[E])==null?void 0:Te.showIndex,allowMove:(Ee=a.unref(rr)[E])==null?void 0:Ee.allowMove,viewport:(Q=a.unref(rr)[E])==null?void 0:Q.viewport,status:(be=a.unref(rr)[E])==null?void 0:be.status},related:_==null?void 0:_.relatedTables,compName:_==null?void 0:_.component.name,compNames:a.unref(vc),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(Yn),cacheNewData:a.unref(hc),onChange:a.unref(Ni),index:(_==null?void 0:_.id)??E,onContentChange:a.unref(Ti),onPageChange:a.unref(Ai),parentTableId:(je=_==null?void 0:_.component)==null?void 0:je.tableId,allMapContents:a.unref(gt),children:(wa=_==null?void 0:_.component)==null?void 0:wa.children,level:D.value,onRowClick:I,onRouteUrl:A,onClickTrigger:a.unref(mc),onClickMainKey:a.unref(yc),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,[K(_)?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(qo)(_.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(Yn),onChange:a.unref(Ni),index:(_==null?void 0:_.id)??E,onContentChange:a.unref(Ti),onPageChange:a.unref(Ai),parentTableId:_==null?void 0:_.tableId,allMapContents:a.unref(gt),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=Jl._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=Jn(O.pinia),{selectTab:y}=O.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(dl.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=Jl._export_sfc($6,[["__scopeId","data-v-ed48c2f8"]]),Xc=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:xc,FORM:ys,STATICFORM:wc,TABLEOPERATE:z1,TABLESTYLE:Y1,TABLEEXTEND:X1,TABLEINTERACTION:e2,FORMOPERATE:gs,FOLD:T2,CALCULATOR:L2,METHODBUTTON:V2,AVATARUPLOAD:Qt.ssAvatar,SIGNATURE:Qt.ssSignature,FORMTOP:ys,STEP:X2,STEPOPERATE:x2,TIMELINE:rh,TIMELINEOPERATE:D2,FORMTOPOPERATE:gs,SIGNATUREOPERATE:G2,AVATARUPLOADOPERATE:j2,TABS:ih,TABSOPERATE:qh,CHART:o4,CHARTOPERATE:m4,LAYOUT:b4,LAYOUTOPERATE:B4,PARENTITEM:L6,RADIO:V6};function To(l){return P6[l==null?void 0:l.toUpperCase()]||null}exports.De=Jc;exports.activeStepInfo=Co;exports.addContents=Uo;exports.addVisibleDialog=St;exports.affixItems=t0;exports.allMapContents=gt;exports.analyzeFilter=Eo;exports.analyzeForm=Od;exports.analyzeQuoteForm=Id;exports.analyzeTable=Rd;exports.cacheNewData=hc;exports.clickMainKey=yc;exports.clickSavePage=i0;exports.clickStep=bc;exports.clickTrigger=mc;exports.compId=Yn;exports.compNames=vc;exports.compShow=No;exports.createRobotContent=oc;exports.existLayouts=v0;exports.fixChangeValue=Ct;exports.generateLayouts=q1;exports.getComponent=To;exports.getComponents=qo;exports.getPageData=Wr;exports.getSliceContLength=x0;exports.gridRowHeight=P1;exports.gridRowHeightHmPg=V1;exports.isStepLayout=kc;exports.onBack=n0;exports.onButtonChange=d0;exports.onChange=Ni;exports.onClick=o0;exports.onClickStep=m0;exports.onContentChange=Ti;exports.onExtendTaskEnd=h0;exports.onOk=p0;exports.onPageBack=g0;exports.onPageChange=Ai;exports.onSelectFixContent=r0;exports.partToQuote=Si;exports.renderShowItems=pc;exports.robotFile=zf;exports.showItems=rr;exports.sliceTableLength=fc;exports.slotContent=Xc;exports.ssTable=xc;exports.st=Mi;exports.stepItems=w0;exports.tabChange=y0;exports.toolBar=f0;exports.useFormComp=Et;exports.useModelLoader=nf;exports.verifyButton=b0;
|